]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
libstdc++: fix C header include guards
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
200
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
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
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
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233 fi
234 fi
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
244
245
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
266 fi
267
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."
279 fi
280 exit 1
281 fi
282 fi
283 fi
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
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
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 ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
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"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
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 ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
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 ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
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 ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
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
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
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
444 fi
445
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/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
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
471
472
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
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; }
495
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
506 }
507
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;;
517 *)
518 ECHO_N='-n';;
519 esac
520
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
527 fi
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'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
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
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
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'"
560
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'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
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`
574
575 #
576 # Initializations.
577 #
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=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
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"
631
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
761 LD
762 FGREP
763 SED
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
775 ALL
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 EXTRA_GCC_LIBS
813 GNAT_LIBEXC
814 COLLECT2_LIBS
815 CXXDEPMODE
816 DEPDIR
817 am__leading_dot
818 doc_build_sys
819 AR
820 NM
821 HAVE_PYTHON
822 PYTHON
823 BISON
824 FLEX
825 GENERATED_MANPAGES
826 MAKEINFO_TOC_INLINE_FLAG
827 BUILD_INFO
828 MAKEINFO
829 have_mktemp_command
830 make_compare_target
831 INSTALL_DATA
832 INSTALL_PROGRAM
833 INSTALL
834 ranlib_flags
835 RANLIB
836 LN
837 LN_S
838 AWK
839 SET_MAKE
840 omp_device_property_deps
841 omp_device_properties
842 accel_dir_suffix
843 real_target_noncanonical
844 enable_as_accelerator
845 gnat_install_lib
846 REPORT_BUGS_TEXI
847 REPORT_BUGS_TO
848 PKGVERSION
849 CONFIGURE_SPECS
850 enable_gcov
851 enable_shared
852 enable_fixed_point
853 enable_decimal_float
854 DEFAULT_INSNEMIT_PARTITIONS
855 DEFAULT_MATCHPD_PARTITIONS
856 with_float
857 with_cpu
858 enable_multiarch
859 enable_multilib
860 coverage_flags
861 valgrind_command
862 valgrind_path_defines
863 valgrind_path
864 TREECHECKING
865 nocommon_flag
866 noexception_flags
867 warn_cxxflags
868 warn_cflags
869 c_strict_warn
870 strict_warn
871 c_loose_warn
872 loose_warn
873 aliasing_flags
874 CPP
875 EGREP
876 GREP
877 CXXCPP
878 PICFLAG_FOR_TARGET
879 GDCFLAGS
880 GDC
881 GNATMAKE
882 GNATBIND
883 ac_ct_CXX
884 CXXFLAGS
885 CXX
886 OBJEXT
887 EXEEXT
888 ac_ct_CC
889 CPPFLAGS
890 LDFLAGS
891 CFLAGS
892 CC
893 GENINSRC
894 CROSS_SYSTEM_HEADER_DIR
895 TARGET_SYSTEM_ROOT_DEFINE
896 TARGET_SYSTEM_ROOT
897 SYSROOT_CFLAGS_FOR_TARGET
898 target_subdir
899 host_subdir
900 build_subdir
901 build_libsubdir
902 target_noncanonical
903 host_noncanonical
904 target_os
905 target_vendor
906 target_cpu
907 target
908 host_os
909 host_vendor
910 host_cpu
911 host
912 build_os
913 build_vendor
914 build_cpu
915 build
916 target_alias
917 host_alias
918 build_alias
919 LIBS
920 ECHO_T
921 ECHO_N
922 ECHO_C
923 DEFS
924 mandir
925 localedir
926 libdir
927 psdir
928 pdfdir
929 dvidir
930 htmldir
931 infodir
932 docdir
933 oldincludedir
934 includedir
935 localstatedir
936 sharedstatedir
937 sysconfdir
938 datadir
939 datarootdir
940 libexecdir
941 sbindir
942 bindir
943 program_transform_name
944 prefix
945 exec_prefix
946 PACKAGE_URL
947 PACKAGE_BUGREPORT
948 PACKAGE_STRING
949 PACKAGE_VERSION
950 PACKAGE_TARNAME
951 PACKAGE_NAME
952 PATH_SEPARATOR
953 SHELL'
954 ac_subst_files='option_includes
955 language_hooks'
956 ac_user_opts='
957 enable_option_checking
958 with_build_libsubdir
959 with_local_prefix
960 with_native_system_header_dir
961 with_build_sysroot
962 with_sysroot
963 with_gxx_include_dir
964 with_gxx_libcxx_include_dir
965 with_cpp_install_dir
966 enable_generated_files_in_srcdir
967 with_gnu_ld
968 with_ld
969 with_demangler_in_ld
970 with_dsymutil
971 with_gnu_as
972 with_as
973 enable_largefile
974 enable_build_format_warnings
975 enable_werror_always
976 enable_checking
977 enable_coverage
978 enable_gather_detailed_mem_stats
979 enable_valgrind_annotations
980 enable_multilib
981 enable_multiarch
982 with_stack_clash_protection_guard_size
983 with_matchpd_partitions
984 with_insnemit_partitions
985 enable___cxa_atexit
986 enable_decimal_float
987 enable_fixed_point
988 enable_threads
989 enable_tls
990 enable_vtable_verify
991 enable_analyzer
992 enable_objc_gc
993 with_dwarf2
994 enable_shared
995 enable_gcov
996 with_specs
997 with_pkgversion
998 with_bugurl
999 with_documentation_root_url
1000 with_changes_root_url
1001 enable_languages
1002 with_multilib_list
1003 with_multilib_generator
1004 with_zstd
1005 with_zstd_include
1006 with_zstd_lib
1007 enable_rpath
1008 with_libiconv_prefix
1009 with_libiconv_type
1010 enable_sjlj_exceptions
1011 enable_win32_utf8_manifest
1012 with_gcc_major_version_only
1013 enable_nls
1014 with_libintl_prefix
1015 with_libintl_type
1016 enable_secureplt
1017 enable_mingw_wildcard
1018 enable_large_address_aware
1019 enable_leading_mingw64_underscores
1020 enable_cld
1021 enable_frame_pointer
1022 enable_win32_registry
1023 enable_static
1024 with_pic
1025 enable_fast_install
1026 enable_libtool_lock
1027 enable_darwin_at_rpath
1028 with_darwin_extra_rpath
1029 enable_ld
1030 enable_gold
1031 with_plugin_ld
1032 enable_gnu_indirect_function
1033 enable_initfini_array
1034 enable_comdat
1035 enable_newlib_nano_formatted_io
1036 enable_standard_branch_protection
1037 enable_fix_cortex_a53_835769
1038 enable_fix_cortex_a53_843419
1039 with_glibc_version
1040 enable_gnu_unique_object
1041 enable_linker_build_id
1042 enable_libssp
1043 enable_default_ssp
1044 with_long_double_128
1045 with_long_double_format
1046 with_gc
1047 with_system_zlib
1048 enable_maintainer_mode
1049 enable_link_mutex
1050 enable_link_serialization
1051 enable_version_specific_runtime_libs
1052 enable_plugin
1053 enable_host_shared
1054 enable_host_pie
1055 enable_host_bind_now
1056 enable_libquadmath_support
1057 with_linker_hash_style
1058 with_diagnostics_color
1059 with_diagnostics_urls
1060 enable_default_pie
1061 enable_cet
1062 enable_s390_excess_float_precision
1063 '
1064 ac_precious_vars='build_alias
1065 host_alias
1066 target_alias
1067 CC
1068 CFLAGS
1069 LDFLAGS
1070 LIBS
1071 CPPFLAGS
1072 CXX
1073 CXXFLAGS
1074 CCC
1075 CXXCPP
1076 CPP
1077 GMPLIBS
1078 GMPINC
1079 ISLLIBS
1080 ISLINC'
1081
1082
1083 # Initialize some variables set by options.
1084 ac_init_help=
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1091 exec_prefix=NONE
1092 no_create=
1093 no_recursion=
1094 prefix=NONE
1095 program_prefix=NONE
1096 program_suffix=NONE
1097 program_transform_name=s,x,x,
1098 silent=
1099 site=
1100 srcdir=
1101 verbose=
1102 x_includes=NONE
1103 x_libraries=NONE
1104
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE}'
1122 infodir='${datarootdir}/info'
1123 htmldir='${docdir}'
1124 dvidir='${docdir}'
1125 pdfdir='${docdir}'
1126 psdir='${docdir}'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1130
1131 ac_prev=
1132 ac_dashdash=
1133 for ac_option
1134 do
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1138 ac_prev=
1139 continue
1140 fi
1141
1142 case $ac_option in
1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 *=) ac_optarg= ;;
1145 *) ac_optarg=yes ;;
1146 esac
1147
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1149
1150 case $ac_dashdash$ac_option in
1151 --)
1152 ac_dashdash=yes ;;
1153
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155 ac_prev=bindir ;;
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1158
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1163
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1170
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1173
1174 -datadir | --datadir | --datadi | --datad)
1175 ac_prev=datadir ;;
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1178
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1185
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "enable_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval enable_$ac_useropt=no ;;
1201
1202 -docdir | --docdir | --docdi | --doc | --do)
1203 ac_prev=docdir ;;
1204 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205 docdir=$ac_optarg ;;
1206
1207 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208 ac_prev=dvidir ;;
1209 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210 dvidir=$ac_optarg ;;
1211
1212 -enable-* | --enable-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid feature name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "enable_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval enable_$ac_useropt=\$ac_optarg ;;
1227
1228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230 | --exec | --exe | --ex)
1231 ac_prev=exec_prefix ;;
1232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234 | --exec=* | --exe=* | --ex=*)
1235 exec_prefix=$ac_optarg ;;
1236
1237 -gas | --gas | --ga | --g)
1238 # Obsolete; use --with-gas.
1239 with_gas=yes ;;
1240
1241 -help | --help | --hel | --he | -h)
1242 ac_init_help=long ;;
1243 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244 ac_init_help=recursive ;;
1245 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246 ac_init_help=short ;;
1247
1248 -host | --host | --hos | --ho)
1249 ac_prev=host_alias ;;
1250 -host=* | --host=* | --hos=* | --ho=*)
1251 host_alias=$ac_optarg ;;
1252
1253 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1254 ac_prev=htmldir ;;
1255 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1256 | --ht=*)
1257 htmldir=$ac_optarg ;;
1258
1259 -includedir | --includedir | --includedi | --included | --include \
1260 | --includ | --inclu | --incl | --inc)
1261 ac_prev=includedir ;;
1262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263 | --includ=* | --inclu=* | --incl=* | --inc=*)
1264 includedir=$ac_optarg ;;
1265
1266 -infodir | --infodir | --infodi | --infod | --info | --inf)
1267 ac_prev=infodir ;;
1268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269 infodir=$ac_optarg ;;
1270
1271 -libdir | --libdir | --libdi | --libd)
1272 ac_prev=libdir ;;
1273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274 libdir=$ac_optarg ;;
1275
1276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277 | --libexe | --libex | --libe)
1278 ac_prev=libexecdir ;;
1279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280 | --libexe=* | --libex=* | --libe=*)
1281 libexecdir=$ac_optarg ;;
1282
1283 -localedir | --localedir | --localedi | --localed | --locale)
1284 ac_prev=localedir ;;
1285 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286 localedir=$ac_optarg ;;
1287
1288 -localstatedir | --localstatedir | --localstatedi | --localstated \
1289 | --localstate | --localstat | --localsta | --localst | --locals)
1290 ac_prev=localstatedir ;;
1291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293 localstatedir=$ac_optarg ;;
1294
1295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1296 ac_prev=mandir ;;
1297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298 mandir=$ac_optarg ;;
1299
1300 -nfp | --nfp | --nf)
1301 # Obsolete; use --without-fp.
1302 with_fp=no ;;
1303
1304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305 | --no-cr | --no-c | -n)
1306 no_create=yes ;;
1307
1308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1310 no_recursion=yes ;;
1311
1312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314 | --oldin | --oldi | --old | --ol | --o)
1315 ac_prev=oldincludedir ;;
1316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319 oldincludedir=$ac_optarg ;;
1320
1321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1322 ac_prev=prefix ;;
1323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324 prefix=$ac_optarg ;;
1325
1326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327 | --program-pre | --program-pr | --program-p)
1328 ac_prev=program_prefix ;;
1329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331 program_prefix=$ac_optarg ;;
1332
1333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334 | --program-suf | --program-su | --program-s)
1335 ac_prev=program_suffix ;;
1336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338 program_suffix=$ac_optarg ;;
1339
1340 -program-transform-name | --program-transform-name \
1341 | --program-transform-nam | --program-transform-na \
1342 | --program-transform-n | --program-transform- \
1343 | --program-transform | --program-transfor \
1344 | --program-transfo | --program-transf \
1345 | --program-trans | --program-tran \
1346 | --progr-tra | --program-tr | --program-t)
1347 ac_prev=program_transform_name ;;
1348 -program-transform-name=* | --program-transform-name=* \
1349 | --program-transform-nam=* | --program-transform-na=* \
1350 | --program-transform-n=* | --program-transform-=* \
1351 | --program-transform=* | --program-transfor=* \
1352 | --program-transfo=* | --program-transf=* \
1353 | --program-trans=* | --program-tran=* \
1354 | --progr-tra=* | --program-tr=* | --program-t=*)
1355 program_transform_name=$ac_optarg ;;
1356
1357 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1358 ac_prev=pdfdir ;;
1359 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360 pdfdir=$ac_optarg ;;
1361
1362 -psdir | --psdir | --psdi | --psd | --ps)
1363 ac_prev=psdir ;;
1364 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1365 psdir=$ac_optarg ;;
1366
1367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368 | -silent | --silent | --silen | --sile | --sil)
1369 silent=yes ;;
1370
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372 ac_prev=sbindir ;;
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374 | --sbi=* | --sb=*)
1375 sbindir=$ac_optarg ;;
1376
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1380 | --sha | --sh)
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385 | --sha=* | --sh=*)
1386 sharedstatedir=$ac_optarg ;;
1387
1388 -site | --site | --sit)
1389 ac_prev=site ;;
1390 -site=* | --site=* | --sit=*)
1391 site=$ac_optarg ;;
1392
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394 ac_prev=srcdir ;;
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1397
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1404
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1409
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411 verbose=yes ;;
1412
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1415
1416 -with-* | --with-*)
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1424 *"
1425 "with_$ac_useropt"
1426 "*) ;;
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1429 esac
1430 eval with_$ac_useropt=\$ac_optarg ;;
1431
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1440 *"
1441 "with_$ac_useropt"
1442 "*) ;;
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1445 esac
1446 eval with_$ac_useropt=no ;;
1447
1448 --x)
1449 # Obsolete; use --with-x.
1450 with_x=yes ;;
1451
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1458
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1465
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1468 ;;
1469
1470 *=*)
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476 esac
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1479
1480 *)
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1486 ;;
1487
1488 esac
1489 done
1490
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1494 fi
1495
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1498 no) ;;
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501 esac
1502 fi
1503
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1509 do
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1512 case $ac_val in
1513 */ )
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1516 esac
1517 # Be sure to have absolute directory names.
1518 case $ac_val in
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521 esac
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523 done
1524
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1528 build=$build_alias
1529 host=$host_alias
1530 target=$target_alias
1531
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1537 cross_compiling=yes
1538 fi
1539 fi
1540
1541 ac_tool_prefix=
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543
1544 test "$silent" = yes && exec 6>/dev/null
1545
1546
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1553
1554
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566 s//\1/
1567 q
1568 }
1569 /^X\(\/\/\)[^/].*/{
1570 s//\1/
1571 q
1572 }
1573 /^X\(\/\/\)$/{
1574 s//\1/
1575 q
1576 }
1577 /^X\(\/\).*/{
1578 s//\1/
1579 q
1580 }
1581 s/.*/./; q'`
1582 srcdir=$ac_confdir
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1584 srcdir=..
1585 fi
1586 else
1587 ac_srcdir_defaulted=no
1588 fi
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 fi
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 ac_abs_confdir=`(
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596 pwd)`
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 srcdir=.
1600 fi
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1604 case $srcdir in
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 esac
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 done
1613
1614 #
1615 # Report the --help message.
1616 #
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1620 cat <<_ACEOF
1621 \`configure' configures this package to adapt to many kinds of systems.
1622
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1627
1628 Defaults for the options are specified in brackets.
1629
1630 Configuration:
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1645 [PREFIX]
1646
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1651
1652 For better control, use the options below.
1653
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1674 _ACEOF
1675
1676 cat <<\_ACEOF
1677
1678 Program names:
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682
1683 System types:
1684 --build=BUILD configure for building on BUILD [guessed]
1685 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1686 --target=TARGET configure for building compilers for TARGET [HOST]
1687 _ACEOF
1688 fi
1689
1690 if test -n "$ac_init_help"; then
1691
1692 cat <<\_ACEOF
1693
1694 Optional Features:
1695 --disable-option-checking ignore unrecognized --enable/--with options
1696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1698 --enable-generated-files-in-srcdir
1699 put copies of generated files in source dir intended
1700 for creating source tarballs for users without
1701 texinfo bison or flex
1702 --disable-largefile omit support for large files
1703 --disable-build-format-warnings
1704 don't use -Wformat while building GCC
1705 --enable-werror-always enable -Werror despite compiler version
1706 --enable-checking[=LIST]
1707 enable expensive run-time checks. With LIST, enable
1708 only specific categories of checks. Categories are:
1709 yes,no,all,none,release. Flags are:
1710 assert,df,extra,fold,gc,gcac,gimple,misc,
1711 rtlflag,rtl,runtime,tree,valgrind,types
1712 --enable-coverage[=LEVEL]
1713 enable compiler's code coverage collection. Use to
1714 measure compiler performance and locate unused parts
1715 of the compiler. With LEVEL, specify optimization.
1716 Values are opt, noopt, default is noopt
1717 --enable-gather-detailed-mem-stats
1718 enable detailed memory allocation stats gathering
1719 --enable-valgrind-annotations
1720 enable valgrind runtime interaction
1721 --enable-multilib enable library support for multiple ABIs
1722 --enable-multiarch enable support for multiarch paths
1723 --enable-__cxa_atexit enable __cxa_atexit for C++
1724 --enable-decimal-float={no,yes,bid,dpd}
1725 enable decimal float extension to C. Selecting 'bid'
1726 or 'dpd' choses which decimal floating point format
1727 to use
1728 --enable-fixed-point enable fixed-point arithmetic extension to C
1729 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1730 package
1731 --enable-tls enable or disable generation of tls code overriding
1732 the assembler check for tls support
1733 --enable-vtable-verify enable vtable verification feature
1734 --disable-analyzer disable -fanalyzer static analyzer
1735 --enable-objc-gc enable the use of Boehm's garbage collector with the
1736 GNU Objective-C runtime
1737 --disable-shared don't provide a shared libgcc
1738 --disable-gcov don't provide libgcov and related host tools
1739 --enable-languages=LIST specify which front-ends to build
1740 --disable-rpath do not hardcode runtime library paths
1741 --enable-sjlj-exceptions
1742 arrange to use setjmp/longjmp exception handling
1743 --disable-win32-utf8-manifest
1744 disable embedding a utf8 manifest on mingw hosts
1745 --enable-win32-utf8-manifest
1746 enable embedding a utf8 manifest on mingw hosts
1747 (default)
1748 --disable-nls do not use Native Language Support
1749 --enable-secureplt enable -msecure-plt by default for PowerPC
1750 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1751 Default to platform configuration
1752 --enable-large-address-aware
1753 Link mingw executables with --large-address-aware
1754 --enable-leading-mingw64-underscores
1755 enable leading underscores on 64 bit mingw targets
1756 --enable-cld enable -mcld by default for 32bit x86
1757 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1758 --disable-win32-registry
1759 disable lookup of installation paths in the Registry
1760 on Windows hosts
1761 --enable-win32-registry enable registry lookup (default)
1762 --enable-win32-registry=KEY
1763 use KEY instead of GCC version as the last portion
1764 of the registry key
1765 --enable-shared[=PKGS] build shared libraries [default=yes]
1766 --enable-static[=PKGS] build static libraries [default=yes]
1767 --enable-fast-install[=PKGS]
1768 optimize for fast installation [default=yes]
1769 --disable-libtool-lock avoid locking (might break parallel builds)
1770 --enable-darwin-at-rpath
1771 install libraries with @rpath/library-name, requires
1772 rpaths to be added to executables
1773 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1774 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1775 --enable-gnu-indirect-function
1776 enable the use of the @gnu_indirect_function to
1777 glibc systems
1778 --enable-initfini-array use .init_array/.fini_array sections
1779 --enable-comdat enable COMDAT group support
1780 --enable-newlib-nano-formatted-io
1781 Use nano version formatted IO
1782
1783 --enable-standard-branch-protection
1784 enable Branch Target Identification Mechanism and
1785 Return Address Signing by default for AArch64
1786 --disable-standard-branch-protection
1787 disable Branch Target Identification Mechanism and
1788 Return Address Signing by default for AArch64
1789
1790
1791 --enable-fix-cortex-a53-835769
1792 enable workaround for AArch64 Cortex-A53 erratum
1793 835769 by default
1794 --disable-fix-cortex-a53-835769
1795 disable workaround for AArch64 Cortex-A53 erratum
1796 835769 by default
1797
1798
1799 --enable-fix-cortex-a53-843419
1800 enable workaround for AArch64 Cortex-A53 erratum
1801 843419 by default
1802 --disable-fix-cortex-a53-843419
1803 disable workaround for AArch64 Cortex-A53 erratum
1804 843419 by default
1805
1806 --enable-gnu-unique-object
1807 enable the use of the @gnu_unique_object ELF
1808 extension on glibc systems
1809 --enable-linker-build-id
1810 compiler will always pass --build-id to linker
1811 --enable-libssp enable linking against libssp
1812 --enable-default-ssp enable Stack Smashing Protection as default
1813 --enable-maintainer-mode
1814 enable make rules and dependencies not useful (and
1815 sometimes confusing) to the casual installer
1816 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1817 thrashing on the build machine
1818 --enable-link-serialization
1819 avoid linking multiple GCC front-ends at once using
1820 make dependencies to avoid thrashing on the build
1821 machine
1822 --enable-version-specific-runtime-libs
1823 specify that runtime libraries should be installed
1824 in a compiler-specific directory
1825 --enable-plugin enable plugin support
1826 --enable-host-shared build host code as shared libraries
1827 --enable-host-pie build host code as PIE
1828 --enable-host-bind-now link host code as BIND_NOW
1829 --disable-libquadmath-support
1830 disable libquadmath support for Fortran
1831 --enable-default-pie enable Position Independent Executable as default
1832 --enable-cet enable Intel CET in host libraries [default=auto]
1833 --enable-s390-excess-float-precision
1834 on s390 targets, evaluate float with double
1835 precision when in standards-conforming mode
1836
1837 Optional Packages:
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1840 --with-build-libsubdir=DIR Directory where to find libraries for build system
1841 --with-local-prefix=DIR specifies directory to put local include
1842 --with-native-system-header-dir=dir
1843 use dir as the directory to look for standard
1844 system header files in. Defaults to /usr/include.
1845 --with-build-sysroot=sysroot
1846 use sysroot as the system root during the build
1847 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1848 --with-gxx-include-dir=DIR
1849 specifies directory to put g++ header files
1850 --with-gxx-libcxx-include-dir=DIR
1851 specifies directory to find libc++ header files
1852 --with-cpp-install-dir=DIR
1853 install the user visible C preprocessor in DIR
1854 (relative to PREFIX) as well as PREFIX/bin
1855 --with-gnu-ld arrange to work with GNU ld
1856 --with-ld arrange to use the specified ld (full pathname)
1857 --with-demangler-in-ld try to use demangler in GNU ld
1858 --with-dsymutil arrange to use the specified dsymutil (full
1859 pathname)
1860 --with-gnu-as arrange to work with GNU as
1861 --with-as arrange to use the specified as (full pathname)
1862 --with-stack-clash-protection-guard-size=size
1863 Set the default stack clash protection guard size
1864 for specific targets as a power of two in bytes.
1865 --with-matchpd-partitions=num
1866 Set the number of partitions to make for gimple and
1867 generic when splitting match.pd. [default=10]
1868 --with-insnemit-partitions=num
1869 Set the number of partitions of insn-emit.cc for
1870 genemit to create. [default=10]
1871 --with-dwarf2 force the default debug format to be DWARF 2 (or
1872 later)
1873 --with-specs=SPECS add SPECS to driver command-line processing
1874 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1875 --with-bugurl=URL Direct users to URL to report a bug
1876 --with-documentation-root-url=URL
1877 Root for documentation URLs
1878 --with-changes-root-url=URL
1879 Root for GCC changes URLs
1880 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1881 SH and x86-64 only)
1882 --with-multilib-generator
1883 Multi-libs configuration string (RISC-V only)
1884 --with-zstd=PATH specify prefix directory for installed zstd library.
1885 Equivalent to --with-zstd-include=PATH/include plus
1886 --with-zstd-lib=PATH/lib
1887 --with-zstd-include=PATH
1888 specify directory for installed zstd include files
1889 --with-zstd-lib=PATH specify directory for the installed zstd library
1890 --with-gnu-ld assume the C compiler uses GNU ld default=no
1891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1893 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1894 --with-gcc-major-version-only
1895 use only GCC major number in filesystem paths
1896 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1897 --without-libintl-prefix don't search for libintl in includedir and libdir
1898 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1899 --with-pic try to use only PIC/non-PIC objects [default=use
1900 both]
1901 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1902 --with-darwin-extra-rpath=[ARG]
1903 Specify a runpath directory, additional to those
1904 provided by the compiler
1905 --with-plugin-ld=[ARG] specify the plugin linker
1906 --with-glibc-version=M.N
1907 assume GCC used with glibc version M.N or later
1908 --with-long-double-128 use 128-bit long double by default
1909 --with-long-double-format={ieee,ibm}
1910 Specify whether PowerPC long double uses IEEE or IBM format
1911
1912 --with-gc={page,zone} this option is not supported anymore. It used to
1913 choose the garbage collection mechanism to use with
1914 the compiler
1915 --with-system-zlib use installed libz
1916 --with-linker-hash-style={sysv,gnu,both}
1917 specify the linker hash style
1918 --with-diagnostics-color={never,auto,auto-if-env,always}
1919 specify the default of -fdiagnostics-color option
1920 auto-if-env stands for -fdiagnostics-color=auto if
1921 GCC_COLOR environment variable is present and
1922 -fdiagnostics-color=never otherwise
1923 --with-diagnostics-urls={never,auto,auto-if-env,always}
1924 specify the default of -fdiagnostics-urls option
1925 auto-if-env stands for -fdiagnostics-urls=auto if
1926 GCC_URLS or TERM_URLS environment variable is
1927 present and -fdiagnostics-urls=never otherwise
1928
1929 Some influential environment variables:
1930 CC C compiler command
1931 CFLAGS C compiler flags
1932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1933 nonstandard directory <lib dir>
1934 LIBS libraries to pass to the linker, e.g. -l<library>
1935 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1936 you have headers in a nonstandard directory <include dir>
1937 CXX C++ compiler command
1938 CXXFLAGS C++ compiler flags
1939 CXXCPP C++ preprocessor
1940 CPP C preprocessor
1941 GMPLIBS How to link GMP
1942 GMPINC How to find GMP include files
1943 ISLLIBS How to link isl
1944 ISLINC How to find isl include files
1945
1946 Use these variables to override the choices made by `configure' or to help
1947 it to find libraries and programs with nonstandard names/locations.
1948
1949 Report bugs to the package provider.
1950 _ACEOF
1951 ac_status=$?
1952 fi
1953
1954 if test "$ac_init_help" = "recursive"; then
1955 # If there are subdirs, report their specific --help.
1956 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1957 test -d "$ac_dir" ||
1958 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1959 continue
1960 ac_builddir=.
1961
1962 case "$ac_dir" in
1963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1964 *)
1965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1966 # A ".." for each directory in $ac_dir_suffix.
1967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1968 case $ac_top_builddir_sub in
1969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1971 esac ;;
1972 esac
1973 ac_abs_top_builddir=$ac_pwd
1974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1975 # for backward compatibility:
1976 ac_top_builddir=$ac_top_build_prefix
1977
1978 case $srcdir in
1979 .) # We are building in place.
1980 ac_srcdir=.
1981 ac_top_srcdir=$ac_top_builddir_sub
1982 ac_abs_top_srcdir=$ac_pwd ;;
1983 [\\/]* | ?:[\\/]* ) # Absolute name.
1984 ac_srcdir=$srcdir$ac_dir_suffix;
1985 ac_top_srcdir=$srcdir
1986 ac_abs_top_srcdir=$srcdir ;;
1987 *) # Relative name.
1988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1989 ac_top_srcdir=$ac_top_build_prefix$srcdir
1990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1991 esac
1992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1993
1994 cd "$ac_dir" || { ac_status=$?; continue; }
1995 # Check for guested configure.
1996 if test -f "$ac_srcdir/configure.gnu"; then
1997 echo &&
1998 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1999 elif test -f "$ac_srcdir/configure"; then
2000 echo &&
2001 $SHELL "$ac_srcdir/configure" --help=recursive
2002 else
2003 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2004 fi || ac_status=$?
2005 cd "$ac_pwd" || { ac_status=$?; break; }
2006 done
2007 fi
2008
2009 test -n "$ac_init_help" && exit $ac_status
2010 if $ac_init_version; then
2011 cat <<\_ACEOF
2012 configure
2013 generated by GNU Autoconf 2.69
2014
2015 Copyright (C) 2012 Free Software Foundation, Inc.
2016 This configure script is free software; the Free Software Foundation
2017 gives unlimited permission to copy, distribute and modify it.
2018 _ACEOF
2019 exit
2020 fi
2021
2022 ## ------------------------ ##
2023 ## Autoconf initialization. ##
2024 ## ------------------------ ##
2025
2026 # ac_fn_c_try_compile LINENO
2027 # --------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_c_try_compile ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext
2033 if { { ac_try="$ac_compile"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2041 ac_status=$?
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2046 fi
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_c_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=1
2058 fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2061
2062 } # ac_fn_c_try_compile
2063
2064 # ac_fn_cxx_try_compile LINENO
2065 # ----------------------------
2066 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_compile ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 rm -f conftest.$ac_objext
2071 if { { ac_try="$ac_compile"
2072 case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_compile") 2>conftest.err
2079 ac_status=$?
2080 if test -s conftest.err; then
2081 grep -v '^ *+' conftest.err >conftest.er1
2082 cat conftest.er1 >&5
2083 mv -f conftest.er1 conftest.err
2084 fi
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && {
2087 test -z "$ac_cxx_werror_flag" ||
2088 test ! -s conftest.err
2089 } && test -s conftest.$ac_objext; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_retval=1
2096 fi
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2099
2100 } # ac_fn_cxx_try_compile
2101
2102 # ac_fn_cxx_try_cpp LINENO
2103 # ------------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_cpp ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2121 fi
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } > conftest.i && {
2124 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2125 test ! -s conftest.err
2126 }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 ac_retval=1
2133 fi
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2136
2137 } # ac_fn_cxx_try_cpp
2138
2139 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2140 # ---------------------------------------------------------
2141 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2142 # the include files in INCLUDES and setting the cache variable VAR
2143 # accordingly.
2144 ac_fn_cxx_check_header_mongrel ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if eval \${$3+:} false; then :
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 else
2157 # Is the header compilable?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2159 $as_echo_n "checking $2 usability... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 #include <$2>
2164 _ACEOF
2165 if ac_fn_cxx_try_compile "$LINENO"; then :
2166 ac_header_compiler=yes
2167 else
2168 ac_header_compiler=no
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2172 $as_echo "$ac_header_compiler" >&6; }
2173
2174 # Is the header present?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2176 $as_echo_n "checking $2 presence... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 #include <$2>
2180 _ACEOF
2181 if ac_fn_cxx_try_cpp "$LINENO"; then :
2182 ac_header_preproc=yes
2183 else
2184 ac_header_preproc=no
2185 fi
2186 rm -f conftest.err conftest.i conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 $as_echo "$ac_header_preproc" >&6; }
2189
2190 # So? What about this header?
2191 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2192 yes:no: )
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2194 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 ;;
2198 no:yes:* )
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2200 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2202 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2204 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2206 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 ;;
2210 esac
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 eval "$3=\$ac_header_compiler"
2217 fi
2218 eval ac_res=\$$3
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2221 fi
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224 } # ac_fn_cxx_check_header_mongrel
2225
2226 # ac_fn_cxx_try_run LINENO
2227 # ------------------------
2228 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2229 # that executables *can* be run.
2230 ac_fn_cxx_try_run ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 if { { ac_try="$ac_link"
2234 case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237 esac
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_link") 2>&5
2241 ac_status=$?
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2244 { { case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 $as_echo "$ac_try_echo"; } >&5
2250 (eval "$ac_try") 2>&5
2251 ac_status=$?
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; }; }; then :
2254 ac_retval=0
2255 else
2256 $as_echo "$as_me: program exited with status $ac_status" >&5
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_retval=$ac_status
2261 fi
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2265
2266 } # ac_fn_cxx_try_run
2267
2268 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2269 # ---------------------------------------------------------
2270 # Tests whether HEADER exists and can be compiled using the include files in
2271 # INCLUDES, setting the cache variable VAR accordingly.
2272 ac_fn_cxx_check_header_compile ()
2273 {
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval \${$3+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 #include <$2>
2284 _ACEOF
2285 if ac_fn_cxx_try_compile "$LINENO"; then :
2286 eval "$3=yes"
2287 else
2288 eval "$3=no"
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297 } # ac_fn_cxx_check_header_compile
2298
2299 # ac_fn_c_try_cpp LINENO
2300 # ----------------------
2301 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2302 ac_fn_c_try_cpp ()
2303 {
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if { { ac_try="$ac_cpp conftest.$ac_ext"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 $as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2313 ac_status=$?
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2318 fi
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } > conftest.i && {
2321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2323 }; then :
2324 ac_retval=0
2325 else
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=1
2330 fi
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332 as_fn_set_status $ac_retval
2333
2334 } # ac_fn_c_try_cpp
2335
2336 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2337 # ----------------------------------------------
2338 # Tries to find the compile-time value of EXPR in a program that includes
2339 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2340 # computed
2341 ac_fn_cxx_compute_int ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 if test "$cross_compiling" = yes; then
2345 # Depending upon the size, compute the lo and hi bounds.
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $4
2349 int
2350 main ()
2351 {
2352 static int test_array [1 - 2 * !(($2) >= 0)];
2353 test_array [0] = 0;
2354 return test_array [0];
2355
2356 ;
2357 return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_cxx_try_compile "$LINENO"; then :
2361 ac_lo=0 ac_mid=0
2362 while :; do
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $4
2366 int
2367 main ()
2368 {
2369 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2370 test_array [0] = 0;
2371 return test_array [0];
2372
2373 ;
2374 return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_cxx_try_compile "$LINENO"; then :
2378 ac_hi=$ac_mid; break
2379 else
2380 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2381 if test $ac_lo -le $ac_mid; then
2382 ac_lo= ac_hi=
2383 break
2384 fi
2385 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2386 fi
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 done
2389 else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2392 $4
2393 int
2394 main ()
2395 {
2396 static int test_array [1 - 2 * !(($2) < 0)];
2397 test_array [0] = 0;
2398 return test_array [0];
2399
2400 ;
2401 return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=-1 ac_mid=-1
2406 while :; do
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $4
2410 int
2411 main ()
2412 {
2413 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2414 test_array [0] = 0;
2415 return test_array [0];
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2422 ac_lo=$ac_mid; break
2423 else
2424 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2425 if test $ac_mid -le $ac_hi; then
2426 ac_lo= ac_hi=
2427 break
2428 fi
2429 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 done
2433 else
2434 ac_lo= ac_hi=
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 # Binary search between lo and hi bounds.
2440 while test "x$ac_lo" != "x$ac_hi"; do
2441 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2444 $4
2445 int
2446 main ()
2447 {
2448 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2449 test_array [0] = 0;
2450 return test_array [0];
2451
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_cxx_try_compile "$LINENO"; then :
2457 ac_hi=$ac_mid
2458 else
2459 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 done
2463 case $ac_lo in #((
2464 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2465 '') ac_retval=1 ;;
2466 esac
2467 else
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 $4
2471 static long int longval () { return $2; }
2472 static unsigned long int ulongval () { return $2; }
2473 #include <stdio.h>
2474 #include <stdlib.h>
2475 int
2476 main ()
2477 {
2478
2479 FILE *f = fopen ("conftest.val", "w");
2480 if (! f)
2481 return 1;
2482 if (($2) < 0)
2483 {
2484 long int i = longval ();
2485 if (i != ($2))
2486 return 1;
2487 fprintf (f, "%ld", i);
2488 }
2489 else
2490 {
2491 unsigned long int i = ulongval ();
2492 if (i != ($2))
2493 return 1;
2494 fprintf (f, "%lu", i);
2495 }
2496 /* Do not output a trailing newline, as this causes \r\n confusion
2497 on some platforms. */
2498 return ferror (f) || fclose (f) != 0;
2499
2500 ;
2501 return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_cxx_try_run "$LINENO"; then :
2505 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2506 else
2507 ac_retval=1
2508 fi
2509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2510 conftest.$ac_objext conftest.beam conftest.$ac_ext
2511 rm -f conftest.val
2512
2513 fi
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 as_fn_set_status $ac_retval
2516
2517 } # ac_fn_cxx_compute_int
2518
2519 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2520 # ---------------------------------------------
2521 # Tests whether TYPE exists after having included INCLUDES, setting cache
2522 # variable VAR accordingly.
2523 ac_fn_cxx_check_type ()
2524 {
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if eval \${$3+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 eval "$3=no"
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2534 $4
2535 int
2536 main ()
2537 {
2538 if (sizeof ($2))
2539 return 0;
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_cxx_try_compile "$LINENO"; then :
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2547 $4
2548 int
2549 main ()
2550 {
2551 if (sizeof (($2)))
2552 return 0;
2553 ;
2554 return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558
2559 else
2560 eval "$3=yes"
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 fi
2566 eval ac_res=\$$3
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570
2571 } # ac_fn_cxx_check_type
2572
2573 # ac_fn_c_find_intX_t LINENO BITS VAR
2574 # -----------------------------------
2575 # Finds a signed integer type with width BITS, setting cache variable VAR
2576 # accordingly.
2577 ac_fn_c_find_intX_t ()
2578 {
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2581 $as_echo_n "checking for int$2_t... " >&6; }
2582 if eval \${$3+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 eval "$3=no"
2586 # Order is important - never check a type that is potentially smaller
2587 # than half of the expected target width.
2588 for ac_type in int$2_t 'int' 'long int' \
2589 'long long int' 'short int' 'signed char'; do
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 $ac_includes_default
2593 enum { N = $2 / 2 - 1 };
2594 int
2595 main ()
2596 {
2597 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2598 test_array [0] = 0;
2599 return test_array [0];
2600
2601 ;
2602 return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_cxx_try_compile "$LINENO"; then :
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $ac_includes_default
2609 enum { N = $2 / 2 - 1 };
2610 int
2611 main ()
2612 {
2613 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2614 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2615 test_array [0] = 0;
2616 return test_array [0];
2617
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_cxx_try_compile "$LINENO"; then :
2623
2624 else
2625 case $ac_type in #(
2626 int$2_t) :
2627 eval "$3=yes" ;; #(
2628 *) :
2629 eval "$3=\$ac_type" ;;
2630 esac
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 fi
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 if eval test \"x\$"$3"\" = x"no"; then :
2636
2637 else
2638 break
2639 fi
2640 done
2641 fi
2642 eval ac_res=\$$3
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647 } # ac_fn_c_find_intX_t
2648
2649 # ac_fn_cxx_try_link LINENO
2650 # -------------------------
2651 # Try to link conftest.$ac_ext, and return whether this succeeded.
2652 ac_fn_cxx_try_link ()
2653 {
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 rm -f conftest.$ac_objext conftest$ac_exeext
2656 if { { ac_try="$ac_link"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_link") 2>conftest.err
2664 ac_status=$?
2665 if test -s conftest.err; then
2666 grep -v '^ *+' conftest.err >conftest.er1
2667 cat conftest.er1 >&5
2668 mv -f conftest.er1 conftest.err
2669 fi
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; } && {
2672 test -z "$ac_cxx_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest$ac_exeext && {
2675 test "$cross_compiling" = yes ||
2676 test -x conftest$ac_exeext
2677 }; then :
2678 ac_retval=0
2679 else
2680 $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_retval=1
2684 fi
2685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2687 # interfere with the next link command; also delete a directory that is
2688 # left behind by Apple's compiler. We do this before executing the actions.
2689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691 as_fn_set_status $ac_retval
2692
2693 } # ac_fn_cxx_try_link
2694
2695 # ac_fn_c_find_uintX_t LINENO BITS VAR
2696 # ------------------------------------
2697 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2698 # accordingly.
2699 ac_fn_c_find_uintX_t ()
2700 {
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2703 $as_echo_n "checking for uint$2_t... " >&6; }
2704 if eval \${$3+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 eval "$3=no"
2708 # Order is important - never check a type that is potentially smaller
2709 # than half of the expected target width.
2710 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2711 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 $ac_includes_default
2715 int
2716 main ()
2717 {
2718 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2719 test_array [0] = 0;
2720 return test_array [0];
2721
2722 ;
2723 return 0;
2724 }
2725 _ACEOF
2726 if ac_fn_cxx_try_compile "$LINENO"; then :
2727 case $ac_type in #(
2728 uint$2_t) :
2729 eval "$3=yes" ;; #(
2730 *) :
2731 eval "$3=\$ac_type" ;;
2732 esac
2733 fi
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 if eval test \"x\$"$3"\" = x"no"; then :
2736
2737 else
2738 break
2739 fi
2740 done
2741 fi
2742 eval ac_res=\$$3
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744 $as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747 } # ac_fn_c_find_uintX_t
2748
2749 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2750 # ------------------------------------------------
2751 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2752 ac_fn_cxx_check_header_preproc ()
2753 {
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2756 $as_echo_n "checking for $2... " >&6; }
2757 if eval \${$3+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 #include <$2>
2763 _ACEOF
2764 if ac_fn_cxx_try_cpp "$LINENO"; then :
2765 eval "$3=yes"
2766 else
2767 eval "$3=no"
2768 fi
2769 rm -f conftest.err conftest.i conftest.$ac_ext
2770 fi
2771 eval ac_res=\$$3
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773 $as_echo "$ac_res" >&6; }
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775
2776 } # ac_fn_cxx_check_header_preproc
2777
2778 # ac_fn_cxx_check_func LINENO FUNC VAR
2779 # ------------------------------------
2780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2781 ac_fn_cxx_check_func ()
2782 {
2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2785 $as_echo_n "checking for $2... " >&6; }
2786 if eval \${$3+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2793 #define $2 innocuous_$2
2794
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char $2 (); below.
2797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2798 <limits.h> exists even on freestanding compilers. */
2799
2800 #ifdef __STDC__
2801 # include <limits.h>
2802 #else
2803 # include <assert.h>
2804 #endif
2805
2806 #undef $2
2807
2808 /* Override any GCC internal prototype to avoid an error.
2809 Use char because int might match the return type of a GCC
2810 builtin and then its argument prototype would still apply. */
2811 #ifdef __cplusplus
2812 extern "C"
2813 #endif
2814 char $2 ();
2815 /* The GNU C library defines this for functions which it implements
2816 to always fail with ENOSYS. Some functions are actually named
2817 something starting with __ and the normal name is an alias. */
2818 #if defined __stub_$2 || defined __stub___$2
2819 choke me
2820 #endif
2821
2822 int
2823 main ()
2824 {
2825 return $2 ();
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_cxx_try_link "$LINENO"; then :
2831 eval "$3=yes"
2832 else
2833 eval "$3=no"
2834 fi
2835 rm -f core conftest.err conftest.$ac_objext \
2836 conftest$ac_exeext conftest.$ac_ext
2837 fi
2838 eval ac_res=\$$3
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2840 $as_echo "$ac_res" >&6; }
2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842
2843 } # ac_fn_cxx_check_func
2844
2845 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2846 # -----------------------------------------------
2847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2848 # accordingly.
2849 ac_fn_cxx_check_decl ()
2850 {
2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852 as_decl_name=`echo $2|sed 's/ *(.*//'`
2853 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2856 if eval \${$3+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861 $4
2862 int
2863 main ()
2864 {
2865 #ifndef $as_decl_name
2866 #ifdef __cplusplus
2867 (void) $as_decl_use;
2868 #else
2869 (void) $as_decl_name;
2870 #endif
2871 #endif
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 if ac_fn_cxx_try_compile "$LINENO"; then :
2878 eval "$3=yes"
2879 else
2880 eval "$3=no"
2881 fi
2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 fi
2884 eval ac_res=\$$3
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886 $as_echo "$ac_res" >&6; }
2887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888
2889 } # ac_fn_cxx_check_decl
2890
2891 # ac_fn_c_try_link LINENO
2892 # -----------------------
2893 # Try to link conftest.$ac_ext, and return whether this succeeded.
2894 ac_fn_c_try_link ()
2895 {
2896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2897 rm -f conftest.$ac_objext conftest$ac_exeext
2898 if { { ac_try="$ac_link"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_link") 2>conftest.err
2906 ac_status=$?
2907 if test -s conftest.err; then
2908 grep -v '^ *+' conftest.err >conftest.er1
2909 cat conftest.er1 >&5
2910 mv -f conftest.er1 conftest.err
2911 fi
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest$ac_exeext && {
2917 test "$cross_compiling" = yes ||
2918 test -x conftest$ac_exeext
2919 }; then :
2920 ac_retval=0
2921 else
2922 $as_echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 ac_retval=1
2926 fi
2927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2929 # interfere with the next link command; also delete a directory that is
2930 # left behind by Apple's compiler. We do this before executing the actions.
2931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2933 as_fn_set_status $ac_retval
2934
2935 } # ac_fn_c_try_link
2936
2937 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2938 # ----------------------------------------------
2939 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2940 ac_fn_c_check_header_preproc ()
2941 {
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2944 $as_echo_n "checking for $2... " >&6; }
2945 if eval \${$3+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2950 #include <$2>
2951 _ACEOF
2952 if ac_fn_c_try_cpp "$LINENO"; then :
2953 eval "$3=yes"
2954 else
2955 eval "$3=no"
2956 fi
2957 rm -f conftest.err conftest.i conftest.$ac_ext
2958 fi
2959 eval ac_res=\$$3
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2961 $as_echo "$ac_res" >&6; }
2962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963
2964 } # ac_fn_c_check_header_preproc
2965
2966 # ac_fn_c_check_func LINENO FUNC VAR
2967 # ----------------------------------
2968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2969 ac_fn_c_check_func ()
2970 {
2971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2973 $as_echo_n "checking for $2... " >&6; }
2974 if eval \${$3+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2981 #define $2 innocuous_$2
2982
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $2 (); below.
2985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986 <limits.h> exists even on freestanding compilers. */
2987
2988 #ifdef __STDC__
2989 # include <limits.h>
2990 #else
2991 # include <assert.h>
2992 #endif
2993
2994 #undef $2
2995
2996 /* Override any GCC internal prototype to avoid an error.
2997 Use char because int might match the return type of a GCC
2998 builtin and then its argument prototype would still apply. */
2999 #ifdef __cplusplus
3000 extern "C"
3001 #endif
3002 char $2 ();
3003 /* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006 #if defined __stub_$2 || defined __stub___$2
3007 choke me
3008 #endif
3009
3010 int
3011 main ()
3012 {
3013 return $2 ();
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 if ac_fn_c_try_link "$LINENO"; then :
3019 eval "$3=yes"
3020 else
3021 eval "$3=no"
3022 fi
3023 rm -f core conftest.err conftest.$ac_objext \
3024 conftest$ac_exeext conftest.$ac_ext
3025 fi
3026 eval ac_res=\$$3
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3028 $as_echo "$ac_res" >&6; }
3029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3030
3031 } # ac_fn_c_check_func
3032 cat >config.log <<_ACEOF
3033 This file contains any messages produced by compilers while
3034 running configure, to aid debugging if configure makes a mistake.
3035
3036 It was created by $as_me, which was
3037 generated by GNU Autoconf 2.69. Invocation command line was
3038
3039 $ $0 $@
3040
3041 _ACEOF
3042 exec 5>>config.log
3043 {
3044 cat <<_ASUNAME
3045 ## --------- ##
3046 ## Platform. ##
3047 ## --------- ##
3048
3049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3054
3055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3057
3058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3065
3066 _ASUNAME
3067
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 $as_echo "PATH: $as_dir"
3074 done
3075 IFS=$as_save_IFS
3076
3077 } >&5
3078
3079 cat >&5 <<_ACEOF
3080
3081
3082 ## ----------- ##
3083 ## Core tests. ##
3084 ## ----------- ##
3085
3086 _ACEOF
3087
3088
3089 # Keep a trace of the command line.
3090 # Strip out --no-create and --no-recursion so they do not pile up.
3091 # Strip out --silent because we don't want to record it for future runs.
3092 # Also quote any args containing shell meta-characters.
3093 # Make two passes to allow for proper duplicate-argument suppression.
3094 ac_configure_args=
3095 ac_configure_args0=
3096 ac_configure_args1=
3097 ac_must_keep_next=false
3098 for ac_pass in 1 2
3099 do
3100 for ac_arg
3101 do
3102 case $ac_arg in
3103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3105 | -silent | --silent | --silen | --sile | --sil)
3106 continue ;;
3107 *\'*)
3108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3109 esac
3110 case $ac_pass in
3111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3112 2)
3113 as_fn_append ac_configure_args1 " '$ac_arg'"
3114 if test $ac_must_keep_next = true; then
3115 ac_must_keep_next=false # Got value, back to normal.
3116 else
3117 case $ac_arg in
3118 *=* | --config-cache | -C | -disable-* | --disable-* \
3119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3121 | -with-* | --with-* | -without-* | --without-* | --x)
3122 case "$ac_configure_args0 " in
3123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3124 esac
3125 ;;
3126 -* ) ac_must_keep_next=true ;;
3127 esac
3128 fi
3129 as_fn_append ac_configure_args " '$ac_arg'"
3130 ;;
3131 esac
3132 done
3133 done
3134 { ac_configure_args0=; unset ac_configure_args0;}
3135 { ac_configure_args1=; unset ac_configure_args1;}
3136
3137 # When interrupted or exit'd, cleanup temporary files, and complete
3138 # config.log. We remove comments because anyway the quotes in there
3139 # would cause problems or look ugly.
3140 # WARNING: Use '\'' to represent an apostrophe within the trap.
3141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3142 trap 'exit_status=$?
3143 # Save into config.log some information that might help in debugging.
3144 {
3145 echo
3146
3147 $as_echo "## ---------------- ##
3148 ## Cache variables. ##
3149 ## ---------------- ##"
3150 echo
3151 # The following way of writing the cache mishandles newlines in values,
3152 (
3153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3154 eval ac_val=\$$ac_var
3155 case $ac_val in #(
3156 *${as_nl}*)
3157 case $ac_var in #(
3158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3160 esac
3161 case $ac_var in #(
3162 _ | IFS | as_nl) ;; #(
3163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3164 *) { eval $ac_var=; unset $ac_var;} ;;
3165 esac ;;
3166 esac
3167 done
3168 (set) 2>&1 |
3169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3170 *${as_nl}ac_space=\ *)
3171 sed -n \
3172 "s/'\''/'\''\\\\'\'''\''/g;
3173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3174 ;; #(
3175 *)
3176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3177 ;;
3178 esac |
3179 sort
3180 )
3181 echo
3182
3183 $as_echo "## ----------------- ##
3184 ## Output variables. ##
3185 ## ----------------- ##"
3186 echo
3187 for ac_var in $ac_subst_vars
3188 do
3189 eval ac_val=\$$ac_var
3190 case $ac_val in
3191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3192 esac
3193 $as_echo "$ac_var='\''$ac_val'\''"
3194 done | sort
3195 echo
3196
3197 if test -n "$ac_subst_files"; then
3198 $as_echo "## ------------------- ##
3199 ## File substitutions. ##
3200 ## ------------------- ##"
3201 echo
3202 for ac_var in $ac_subst_files
3203 do
3204 eval ac_val=\$$ac_var
3205 case $ac_val in
3206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3207 esac
3208 $as_echo "$ac_var='\''$ac_val'\''"
3209 done | sort
3210 echo
3211 fi
3212
3213 if test -s confdefs.h; then
3214 $as_echo "## ----------- ##
3215 ## confdefs.h. ##
3216 ## ----------- ##"
3217 echo
3218 cat confdefs.h
3219 echo
3220 fi
3221 test "$ac_signal" != 0 &&
3222 $as_echo "$as_me: caught signal $ac_signal"
3223 $as_echo "$as_me: exit $exit_status"
3224 } >&5
3225 rm -f core *.core core.conftest.* &&
3226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3227 exit $exit_status
3228 ' 0
3229 for ac_signal in 1 2 13 15; do
3230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3231 done
3232 ac_signal=0
3233
3234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3235 rm -f -r conftest* confdefs.h
3236
3237 $as_echo "/* confdefs.h */" > confdefs.h
3238
3239 # Predefined preprocessor variables.
3240
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_NAME "$PACKAGE_NAME"
3243 _ACEOF
3244
3245 cat >>confdefs.h <<_ACEOF
3246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3247 _ACEOF
3248
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3251 _ACEOF
3252
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE_STRING "$PACKAGE_STRING"
3255 _ACEOF
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3259 _ACEOF
3260
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE_URL "$PACKAGE_URL"
3263 _ACEOF
3264
3265
3266 # Let the site file select an alternate cache file if it wants to.
3267 # Prefer an explicitly selected file to automatically selected ones.
3268 ac_site_file1=NONE
3269 ac_site_file2=NONE
3270 if test -n "$CONFIG_SITE"; then
3271 # We do not want a PATH search for config.site.
3272 case $CONFIG_SITE in #((
3273 -*) ac_site_file1=./$CONFIG_SITE;;
3274 */*) ac_site_file1=$CONFIG_SITE;;
3275 *) ac_site_file1=./$CONFIG_SITE;;
3276 esac
3277 elif test "x$prefix" != xNONE; then
3278 ac_site_file1=$prefix/share/config.site
3279 ac_site_file2=$prefix/etc/config.site
3280 else
3281 ac_site_file1=$ac_default_prefix/share/config.site
3282 ac_site_file2=$ac_default_prefix/etc/config.site
3283 fi
3284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3285 do
3286 test "x$ac_site_file" = xNONE && continue
3287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3290 sed 's/^/| /' "$ac_site_file" >&5
3291 . "$ac_site_file" \
3292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "failed to load site script $ac_site_file
3295 See \`config.log' for more details" "$LINENO" 5; }
3296 fi
3297 done
3298
3299 if test -r "$cache_file"; then
3300 # Some versions of bash will fail to source /dev/null (special files
3301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3304 $as_echo "$as_me: loading cache $cache_file" >&6;}
3305 case $cache_file in
3306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3307 *) . "./$cache_file";;
3308 esac
3309 fi
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3312 $as_echo "$as_me: creating cache $cache_file" >&6;}
3313 >$cache_file
3314 fi
3315
3316 gt_needs="$gt_needs "
3317 # Check that the precious variables saved in the cache have kept the same
3318 # value.
3319 ac_cache_corrupted=false
3320 for ac_var in $ac_precious_vars; do
3321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3322 eval ac_new_set=\$ac_env_${ac_var}_set
3323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3324 eval ac_new_val=\$ac_env_${ac_var}_value
3325 case $ac_old_set,$ac_new_set in
3326 set,)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3329 ac_cache_corrupted=: ;;
3330 ,set)
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3333 ac_cache_corrupted=: ;;
3334 ,);;
3335 *)
3336 if test "x$ac_old_val" != "x$ac_new_val"; then
3337 # differences in whitespace do not lead to failure.
3338 ac_old_val_w=`echo x $ac_old_val`
3339 ac_new_val_w=`echo x $ac_new_val`
3340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3343 ac_cache_corrupted=:
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3347 eval $ac_var=\$ac_old_val
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3350 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3352 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3353 fi;;
3354 esac
3355 # Pass precious variables to config.status.
3356 if test "$ac_new_set" = set; then
3357 case $ac_new_val in
3358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3359 *) ac_arg=$ac_var=$ac_new_val ;;
3360 esac
3361 case " $ac_configure_args " in
3362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3364 esac
3365 fi
3366 done
3367 if $ac_cache_corrupted; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3372 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3373 fi
3374 ## -------------------- ##
3375 ## Main body of script. ##
3376 ## -------------------- ##
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384
3385
3386
3387
3388
3389
3390 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3391
3392
3393 gcc_version=`cat $srcdir/BASE-VER`
3394
3395 # Determine the host, build, and target systems
3396 ac_aux_dir=
3397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3398 if test -f "$ac_dir/install-sh"; then
3399 ac_aux_dir=$ac_dir
3400 ac_install_sh="$ac_aux_dir/install-sh -c"
3401 break
3402 elif test -f "$ac_dir/install.sh"; then
3403 ac_aux_dir=$ac_dir
3404 ac_install_sh="$ac_aux_dir/install.sh -c"
3405 break
3406 elif test -f "$ac_dir/shtool"; then
3407 ac_aux_dir=$ac_dir
3408 ac_install_sh="$ac_aux_dir/shtool install -c"
3409 break
3410 fi
3411 done
3412 if test -z "$ac_aux_dir"; then
3413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3414 fi
3415
3416 # These three variables are undocumented and unsupported,
3417 # and are intended to be withdrawn in a future Autoconf release.
3418 # They can cause serious problems if a builder's source tree is in a directory
3419 # whose full name contains unusual characters.
3420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3423
3424
3425 # Make sure we can run config.sub.
3426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3430 $as_echo_n "checking build system type... " >&6; }
3431 if ${ac_cv_build+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 ac_build_alias=$build_alias
3435 test "x$ac_build_alias" = x &&
3436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3437 test "x$ac_build_alias" = x &&
3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3441
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3444 $as_echo "$ac_cv_build" >&6; }
3445 case $ac_cv_build in
3446 *-*-*) ;;
3447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3448 esac
3449 build=$ac_cv_build
3450 ac_save_IFS=$IFS; IFS='-'
3451 set x $ac_cv_build
3452 shift
3453 build_cpu=$1
3454 build_vendor=$2
3455 shift; shift
3456 # Remember, the first character of IFS is used to create $*,
3457 # except with old shells:
3458 build_os=$*
3459 IFS=$ac_save_IFS
3460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3461
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3464 $as_echo_n "checking host system type... " >&6; }
3465 if ${ac_cv_host+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test "x$host_alias" = x; then
3469 ac_cv_host=$ac_cv_build
3470 else
3471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3473 fi
3474
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3477 $as_echo "$ac_cv_host" >&6; }
3478 case $ac_cv_host in
3479 *-*-*) ;;
3480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3481 esac
3482 host=$ac_cv_host
3483 ac_save_IFS=$IFS; IFS='-'
3484 set x $ac_cv_host
3485 shift
3486 host_cpu=$1
3487 host_vendor=$2
3488 shift; shift
3489 # Remember, the first character of IFS is used to create $*,
3490 # except with old shells:
3491 host_os=$*
3492 IFS=$ac_save_IFS
3493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3494
3495
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3497 $as_echo_n "checking target system type... " >&6; }
3498 if ${ac_cv_target+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test "x$target_alias" = x; then
3502 ac_cv_target=$ac_cv_host
3503 else
3504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3506 fi
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3510 $as_echo "$ac_cv_target" >&6; }
3511 case $ac_cv_target in
3512 *-*-*) ;;
3513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3514 esac
3515 target=$ac_cv_target
3516 ac_save_IFS=$IFS; IFS='-'
3517 set x $ac_cv_target
3518 shift
3519 target_cpu=$1
3520 target_vendor=$2
3521 shift; shift
3522 # Remember, the first character of IFS is used to create $*,
3523 # except with old shells:
3524 target_os=$*
3525 IFS=$ac_save_IFS
3526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3527
3528
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
3536 # Determine the noncanonical host name, for Ada.
3537 case ${build_alias} in
3538 "") build_noncanonical=${build} ;;
3539 *) build_noncanonical=${build_alias} ;;
3540 esac
3541
3542 case ${host_alias} in
3543 "") host_noncanonical=${build_noncanonical} ;;
3544 *) host_noncanonical=${host_alias} ;;
3545 esac
3546
3547
3548
3549
3550 # Determine the noncanonical target name, for directory use.
3551 case ${target_alias} in
3552 "") target_noncanonical=${host_noncanonical} ;;
3553 *) target_noncanonical=${target_alias} ;;
3554 esac
3555
3556
3557
3558
3559 # Used for constructing correct paths for offload compilers.
3560 real_target_noncanonical=${target_noncanonical}
3561 accel_dir_suffix=
3562
3563 # Determine the target- and build-specific subdirectories
3564
3565 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3566 # have matching libraries, they should use host libraries: Makefile.tpl
3567 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3568 # However, they still use the build modules, because the corresponding
3569 # host modules (e.g. bison) are only built for the host when bootstrap
3570 # finishes. So:
3571 # - build_subdir is where we find build modules, and never changes.
3572 # - build_libsubdir is where we find build libraries, and can be overridden.
3573
3574 # Prefix 'build-' so this never conflicts with target_subdir.
3575 build_subdir="build-${build_noncanonical}"
3576
3577 # Check whether --with-build-libsubdir was given.
3578 if test "${with_build_libsubdir+set}" = set; then :
3579 withval=$with_build_libsubdir; build_libsubdir="$withval"
3580 else
3581 build_libsubdir="$build_subdir"
3582 fi
3583
3584 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3585 if ( test $srcdir = . && test -d gcc ) \
3586 || test -d $srcdir/../host-${host_noncanonical}; then
3587 host_subdir="host-${host_noncanonical}"
3588 else
3589 host_subdir=.
3590 fi
3591 # No prefix.
3592 target_subdir=${target_noncanonical}
3593
3594
3595 # Set program_transform_name
3596 test "$program_prefix" != NONE &&
3597 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3598 # Use a double $ so make ignores it.
3599 test "$program_suffix" != NONE &&
3600 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3601 # Double any \ or $.
3602 # By default was `s,x,x', remove it if useless.
3603 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3604 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3605
3606
3607 # Check for bogus environment variables.
3608 # Test if LIBRARY_PATH contains the notation for the current directory
3609 # since this would lead to problems installing/building glibc.
3610 # LIBRARY_PATH contains the current directory if one of the following
3611 # is true:
3612 # - one of the terminals (":" and ";") is the first or last sign
3613 # - two terminals occur directly after each other
3614 # - the path contains an element with a dot in it
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3616 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3617 case ${LIBRARY_PATH} in
3618 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3619 library_path_setting="contains current directory"
3620 ;;
3621 *)
3622 library_path_setting="ok"
3623 ;;
3624 esac
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3626 $as_echo "$library_path_setting" >&6; }
3627 if test "$library_path_setting" != "ok"; then
3628 as_fn_error $? "
3629 *** LIBRARY_PATH shouldn't contain the current directory when
3630 *** building gcc. Please change the environment variable
3631 *** and run configure again." "$LINENO" 5
3632 fi
3633
3634 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3635 # since this would lead to problems installing/building glibc.
3636 # GCC_EXEC_PREFIX contains the current directory if one of the following
3637 # is true:
3638 # - one of the terminals (":" and ";") is the first or last sign
3639 # - two terminals occur directly after each other
3640 # - the path contains an element with a dot in it
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3642 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3643 case ${GCC_EXEC_PREFIX} in
3644 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3645 gcc_exec_prefix_setting="contains current directory"
3646 ;;
3647 *)
3648 gcc_exec_prefix_setting="ok"
3649 ;;
3650 esac
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3652 $as_echo "$gcc_exec_prefix_setting" >&6; }
3653 if test "$gcc_exec_prefix_setting" != "ok"; then
3654 as_fn_error $? "
3655 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3656 *** building gcc. Please change the environment variable
3657 *** and run configure again." "$LINENO" 5
3658 fi
3659
3660 # -----------
3661 # Directories
3662 # -----------
3663
3664 # Specify the local prefix
3665 local_prefix=
3666
3667 # Check whether --with-local-prefix was given.
3668 if test "${with_local_prefix+set}" = set; then :
3669 withval=$with_local_prefix; case "${withval}" in
3670 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3671 no) ;;
3672 *) local_prefix=$with_local_prefix ;;
3673 esac
3674 fi
3675
3676
3677 # Default local prefix if it is empty
3678 if test x$local_prefix = x; then
3679 local_prefix=/usr/local
3680 fi
3681
3682
3683 # Check whether --with-native-system-header-dir was given.
3684 if test "${with_native_system_header_dir+set}" = set; then :
3685 withval=$with_native_system_header_dir;
3686 case ${with_native_system_header_dir} in
3687 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3688 /* | [A-Za-z]:[\\/]*) ;;
3689 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3690 esac
3691 configured_native_system_header_dir="${withval}"
3692
3693 else
3694 configured_native_system_header_dir=
3695 fi
3696
3697
3698
3699 # Check whether --with-build-sysroot was given.
3700 if test "${with_build_sysroot+set}" = set; then :
3701 withval=$with_build_sysroot; if test x"$withval" != x ; then
3702 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3703 fi
3704 else
3705 SYSROOT_CFLAGS_FOR_TARGET=
3706 fi
3707
3708
3709
3710 if test "x$prefix" = xNONE; then
3711 test_prefix=/usr/local
3712 else
3713 test_prefix=$prefix
3714 fi
3715 if test "x$exec_prefix" = xNONE; then
3716 test_exec_prefix=$test_prefix
3717 else
3718 test_exec_prefix=$exec_prefix
3719 fi
3720
3721
3722 # Check whether --with-sysroot was given.
3723 if test "${with_sysroot+set}" = set; then :
3724 withval=$with_sysroot;
3725 case ${with_sysroot} in
3726 /) ;;
3727 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3728 esac
3729 case ${with_sysroot} in
3730 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3731 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3732 esac
3733
3734 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3735 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3736
3737 case ${TARGET_SYSTEM_ROOT} in
3738 "${test_prefix}"|"${test_prefix}/"*|\
3739 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3740 '${prefix}'|'${prefix}/'*|\
3741 '${exec_prefix}'|'${exec_prefix}/'*)
3742 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3743 TARGET_SYSTEM_ROOT_DEFINE="$t"
3744 ;;
3745 esac
3746
3747 else
3748
3749 TARGET_SYSTEM_ROOT=
3750 TARGET_SYSTEM_ROOT_DEFINE=
3751 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3752
3753 fi
3754
3755
3756
3757
3758
3759 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3760 # passed in by the toplevel make and thus we'd get different behavior
3761 # depending on where we built the sources.
3762 gcc_gxx_include_dir=
3763 # Specify the g++ header file directory
3764
3765 # Check whether --with-gxx-include-dir was given.
3766 if test "${with_gxx_include_dir+set}" = set; then :
3767 withval=$with_gxx_include_dir; case "${withval}" in
3768 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3769 no) ;;
3770 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3771 esac
3772 fi
3773
3774
3775 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3776 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3777 # relative to the sysroot.
3778 gcc_gxx_include_dir_add_sysroot=0
3779
3780 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3781 if test x${gcc_gxx_include_dir} = x; then
3782 if test x${enable_version_specific_runtime_libs} = xyes; then
3783 gcc_gxx_include_dir='${libsubdir}/include/c++'
3784 else
3785 libstdcxx_incdir='include/c++/$(version)'
3786 if test x$host != x$target; then
3787 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3788 fi
3789 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3790 fi
3791 elif test "${with_sysroot+set}" = set; then
3792 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3793 if test "${gcc_gxx_without_sysroot}"; then
3794 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3795 gcc_gxx_include_dir_add_sysroot=1
3796 fi
3797 fi
3798
3799 # Configuration for an alternate set of C++ headers.
3800 gcc_gxx_libcxx_include_dir=
3801 # Specify the alternate g++ header file directory
3802
3803 # Check whether --with-gxx-libcxx-include-dir was given.
3804 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3805 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3806 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3807 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3808 esac
3809 fi
3810
3811
3812 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3813 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3814 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3815 # based on the platform (to be available on platform versions where it is the
3816 # default for the system tools). We also use a default path within the compiler
3817 # install tree.
3818 # Otherwise, we use the path provided and enable the stdlib option.
3819 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3820 # check to see if the latter starts with the former and, upon success, compute
3821 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3822 gcc_gxx_libcxx_include_dir_add_sysroot=0
3823 gcc_enable_stdlib_opt=0
3824 if test x${gcc_gxx_libcxx_include_dir} != x; then
3825 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3826 # set defaults for the dir, but the option is disabled anyway.
3827 gcc_gxx_libcxx_include_dir=
3828 else
3829 gcc_enable_stdlib_opt=1
3830 fi
3831 else
3832 case $target in
3833 *-darwin1[1-9]* | *-darwin2*)
3834 # Default this on for Darwin versions which default to libcxx,
3835 # and embed the path in the compiler install so that we get a
3836 # self-contained toolchain.
3837 gcc_enable_stdlib_opt=1
3838 ;;
3839 *) ;;
3840 esac
3841 fi
3842
3843 cat >>confdefs.h <<_ACEOF
3844 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3845 _ACEOF
3846
3847
3848 # Sysroot behaviour as for gxx-include-dir
3849 if test x${gcc_gxx_libcxx_include_dir} = x; then
3850 # default path,embedded in the compiler tree.
3851 libcxx_incdir='include/c++/v1'
3852 if test x${enable_version_specific_runtime_libs} = xyes; then
3853 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3854 else
3855 if test x$host != x$target; then
3856 libcxx_incdir="$target_alias/$libcxx_incdir"
3857 fi
3858 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3859 fi
3860 elif test "${with_sysroot+set}" = set; then
3861 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3862 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3863 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3864 gcc_gxx_libcxx_include_dir_add_sysroot=1
3865 fi
3866 fi
3867
3868
3869 # Check whether --with-cpp_install_dir was given.
3870 if test "${with_cpp_install_dir+set}" = set; then :
3871 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3872 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3873 elif test x$withval != xno; then
3874 cpp_install_dir=$withval
3875 fi
3876 fi
3877
3878
3879 # We would like to our source tree to be readonly. However when releases or
3880 # pre-releases are generated, the flex/bison generated files as well as the
3881 # various formats of manuals need to be included along with the rest of the
3882 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3883 # just that.
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3886 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3887 # Check whether --enable-generated-files-in-srcdir was given.
3888 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3889 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3890 else
3891 generated_files_in_srcdir=no
3892 fi
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3896 $as_echo "$generated_files_in_srcdir" >&6; }
3897
3898 if test "$generated_files_in_srcdir" = "yes"; then
3899 GENINSRC=''
3900 else
3901 GENINSRC='#'
3902 fi
3903
3904
3905 # -------------------
3906 # Find default linker
3907 # -------------------
3908
3909 # With GNU ld
3910
3911 # Check whether --with-gnu-ld was given.
3912 if test "${with_gnu_ld+set}" = set; then :
3913 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3914 else
3915 gnu_ld_flag=no
3916 fi
3917
3918
3919 case $target in
3920 *darwin*)
3921 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3922 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3923 ;;
3924 *)
3925 ld64_flag=no
3926 dsymutil_flag=no
3927 ;;
3928 esac
3929
3930 # With pre-defined ld
3931
3932 # Check whether --with-ld was given.
3933 if test "${with_ld+set}" = set; then :
3934 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3935 fi
3936
3937 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3938 if test ! -x "$DEFAULT_LINKER"; then
3939 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3940 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3941 gnu_ld_flag=yes
3942 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3943 ld64_flag=yes
3944 fi
3945
3946 cat >>confdefs.h <<_ACEOF
3947 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3948 _ACEOF
3949
3950 fi
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3953 $as_echo_n "checking whether a default linker was specified... " >&6; }
3954 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3955 if test x"$gnu_ld_flag" = x"no"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3957 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3960 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3961 fi
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967 # With demangler in GNU ld
3968
3969 # Check whether --with-demangler-in-ld was given.
3970 if test "${with_demangler_in_ld+set}" = set; then :
3971 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3972 else
3973 demangler_in_ld=yes
3974 fi
3975
3976
3977 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3978
3979 # Check whether --with-dsymutil was given.
3980 if test "${with_dsymutil+set}" = set; then :
3981 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3982 fi
3983
3984
3985 dsymutil_vers=
3986 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3987 if test ! -x "$DEFAULT_DSYMUTIL"; then
3988 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3989 else
3990 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3991 dsymutil_flag=yes
3992 fi
3993 fi
3994
3995 cat >>confdefs.h <<_ACEOF
3996 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3997 _ACEOF
3998
3999 fi
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4002 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4003 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4005 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011 # ----------------------
4012 # Find default assembler
4013 # ----------------------
4014
4015 # With GNU as
4016
4017 # Check whether --with-gnu-as was given.
4018 if test "${with_gnu_as+set}" = set; then :
4019 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4020 else
4021 gas_flag=no
4022 fi
4023
4024
4025
4026 # Check whether --with-as was given.
4027 if test "${with_as+set}" = set; then :
4028 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4029 fi
4030
4031 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4032 if test ! -x "$DEFAULT_ASSEMBLER"; then
4033 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4034 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4035 gas_flag=yes
4036 fi
4037
4038 cat >>confdefs.h <<_ACEOF
4039 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4040 _ACEOF
4041
4042 fi
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4045 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4046 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4047 if test x"$gas_flag" = x"no"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4049 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4052 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4053 fi
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059 # ---------------
4060 # Find C compiler
4061 # ---------------
4062
4063 # If a non-executable a.out is present (e.g. created by GNU as above even if
4064 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4065 # file, even when creating an executable, so an execution test fails.
4066 # Remove possible default executable files to avoid this.
4067 #
4068 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4069 # Autoconf includes it.
4070 rm -f a.out a.exe b.out
4071
4072 # Find the native compiler
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_prog_CC+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -n "$CC"; then
4087 ac_cv_prog_CC="$CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100 done
4101 done
4102 IFS=$as_save_IFS
4103
4104 fi
4105 fi
4106 CC=$ac_cv_prog_CC
4107 if test -n "$CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109 $as_echo "$CC" >&6; }
4110 else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4113 fi
4114
4115
4116 fi
4117 if test -z "$ac_cv_prog_CC"; then
4118 ac_ct_CC=$CC
4119 # Extract the first word of "gcc", so it can be a program name with args.
4120 set dummy gcc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_CC="gcc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4149 $as_echo "$ac_ct_CC" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155 if test "x$ac_ct_CC" = x; then
4156 CC=""
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 CC=$ac_ct_CC
4165 fi
4166 else
4167 CC="$ac_cv_prog_CC"
4168 fi
4169
4170 if test -z "$CC"; then
4171 if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4173 set dummy ${ac_tool_prefix}cc; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_CC+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$CC"; then
4180 ac_cv_prog_CC="$CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_CC="${ac_tool_prefix}cc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 CC=$ac_cv_prog_CC
4200 if test -n "$CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202 $as_echo "$CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209 fi
4210 fi
4211 if test -z "$CC"; then
4212 # Extract the first word of "cc", so it can be a program name with args.
4213 set dummy cc; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_CC+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4221 else
4222 ac_prog_rejected=no
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4231 ac_prog_rejected=yes
4232 continue
4233 fi
4234 ac_cv_prog_CC="cc"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 if test $ac_prog_rejected = yes; then
4243 # We found a bogon in the path, so make sure we never use it.
4244 set dummy $ac_cv_prog_CC
4245 shift
4246 if test $# != 0; then
4247 # We chose a different compiler from the bogus one.
4248 # However, it has the same basename, so the bogon will be chosen
4249 # first if we set CC to just the basename; use the full file name.
4250 shift
4251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4252 fi
4253 fi
4254 fi
4255 fi
4256 CC=$ac_cv_prog_CC
4257 if test -n "$CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4259 $as_echo "$CC" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266 fi
4267 if test -z "$CC"; then
4268 if test -n "$ac_tool_prefix"; then
4269 for ac_prog in cl.exe
4270 do
4271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 CC=$ac_cv_prog_CC
4299 if test -n "$CC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4305 fi
4306
4307
4308 test -n "$CC" && break
4309 done
4310 fi
4311 if test -z "$CC"; then
4312 ac_ct_CC=$CC
4313 for ac_prog in cl.exe
4314 do
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4345 $as_echo "$ac_ct_CC" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 test -n "$ac_ct_CC" && break
4353 done
4354
4355 if test "x$ac_ct_CC" = x; then
4356 CC=""
4357 else
4358 case $cross_compiling:$ac_tool_warned in
4359 yes:)
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362 ac_tool_warned=yes ;;
4363 esac
4364 CC=$ac_ct_CC
4365 fi
4366 fi
4367
4368 fi
4369
4370
4371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $? "no acceptable C compiler found in \$PATH
4374 See \`config.log' for more details" "$LINENO" 5; }
4375
4376 # Provide some information about the compiler.
4377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4378 set X $ac_compile
4379 ac_compiler=$2
4380 for ac_option in --version -v -V -qversion; do
4381 { { ac_try="$ac_compiler $ac_option >&5"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4389 ac_status=$?
4390 if test -s conftest.err; then
4391 sed '10a\
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err >conftest.er1
4394 cat conftest.er1 >&5
4395 fi
4396 rm -f conftest.er1 conftest.err
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4399 done
4400
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403
4404 int
4405 main ()
4406 {
4407
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 ac_clean_files_save=$ac_clean_files
4413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4414 # Try to create an executable without -o first, disregard a.out.
4415 # It will help us diagnose broken compilers, and finding out an intuition
4416 # of exeext.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4418 $as_echo_n "checking whether the C compiler works... " >&6; }
4419 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4420
4421 # The possible output files:
4422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4423
4424 ac_rmfiles=
4425 for ac_file in $ac_files
4426 do
4427 case $ac_file in
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4429 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4430 esac
4431 done
4432 rm -f $ac_rmfiles
4433
4434 if { { ac_try="$ac_link_default"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_link_default") 2>&5
4442 ac_status=$?
4443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }; then :
4445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4446 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4447 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4448 # so that the user can short-circuit this test for compilers unknown to
4449 # Autoconf.
4450 for ac_file in $ac_files ''
4451 do
4452 test -f "$ac_file" || continue
4453 case $ac_file in
4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4455 ;;
4456 [ab].out )
4457 # We found the default executable, but exeext='' is most
4458 # certainly right.
4459 break;;
4460 *.* )
4461 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4462 then :; else
4463 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4464 fi
4465 # We set ac_cv_exeext here because the later test for it is not
4466 # safe: cross compilers may not add the suffix if given an `-o'
4467 # argument, so we may need to know it at that point already.
4468 # Even if this section looks crufty: it has the advantage of
4469 # actually working.
4470 break;;
4471 * )
4472 break;;
4473 esac
4474 done
4475 test "$ac_cv_exeext" = no && ac_cv_exeext=
4476
4477 else
4478 ac_file=''
4479 fi
4480 if test -z "$ac_file"; then :
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error 77 "C compiler cannot create executables
4489 See \`config.log' for more details" "$LINENO" 5; }
4490 else
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4492 $as_echo "yes" >&6; }
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4495 $as_echo_n "checking for C compiler default output file name... " >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4497 $as_echo "$ac_file" >&6; }
4498 ac_exeext=$ac_cv_exeext
4499
4500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4501 ac_clean_files=$ac_clean_files_save
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4503 $as_echo_n "checking for suffix of executables... " >&6; }
4504 if { { ac_try="$ac_link"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; then :
4515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4517 # work properly (i.e., refer to `conftest.exe'), while it won't with
4518 # `rm'.
4519 for ac_file in conftest.exe conftest conftest.*; do
4520 test -f "$ac_file" || continue
4521 case $ac_file in
4522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 break;;
4525 * ) break;;
4526 esac
4527 done
4528 else
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534 rm -f conftest conftest$ac_cv_exeext
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4536 $as_echo "$ac_cv_exeext" >&6; }
4537
4538 rm -f conftest.$ac_ext
4539 EXEEXT=$ac_cv_exeext
4540 ac_exeext=$EXEEXT
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <stdio.h>
4544 int
4545 main ()
4546 {
4547 FILE *f = fopen ("conftest.out", "w");
4548 return ferror (f) || fclose (f) != 0;
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 ac_clean_files="$ac_clean_files conftest.out"
4555 # Check that the compiler produces executables we can run. If not, either
4556 # the compiler is broken, or we cross compile.
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4558 $as_echo_n "checking whether we are cross compiling... " >&6; }
4559 if test "$cross_compiling" != yes; then
4560 { { ac_try="$ac_link"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_link") 2>&5
4568 ac_status=$?
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }
4571 if { ac_try='./conftest$ac_cv_exeext'
4572 { { case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }; }; then
4582 cross_compiling=no
4583 else
4584 if test "$cross_compiling" = maybe; then
4585 cross_compiling=yes
4586 else
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot run C compiled programs.
4590 If you meant to cross compile, use \`--host'.
4591 See \`config.log' for more details" "$LINENO" 5; }
4592 fi
4593 fi
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4596 $as_echo "$cross_compiling" >&6; }
4597
4598 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4599 ac_clean_files=$ac_clean_files_save
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4601 $as_echo_n "checking for suffix of object files... " >&6; }
4602 if ${ac_cv_objext+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 int
4609 main ()
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.o conftest.obj
4617 if { { ac_try="$ac_compile"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623 $as_echo "$ac_try_echo"; } >&5
4624 (eval "$ac_compile") 2>&5
4625 ac_status=$?
4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }; then :
4628 for ac_file in conftest.o conftest.obj conftest.*; do
4629 test -f "$ac_file" || continue;
4630 case $ac_file in
4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4633 break;;
4634 esac
4635 done
4636 else
4637 $as_echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot compute suffix of object files: cannot compile
4643 See \`config.log' for more details" "$LINENO" 5; }
4644 fi
4645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4648 $as_echo "$ac_cv_objext" >&6; }
4649 OBJEXT=$ac_cv_objext
4650 ac_objext=$OBJEXT
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4652 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4653 if ${ac_cv_c_compiler_gnu+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662 #ifndef __GNUC__
4663 choke me
4664 #endif
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_compiler_gnu=yes
4672 else
4673 ac_compiler_gnu=no
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4681 if test $ac_compiler_gnu = yes; then
4682 GCC=yes
4683 else
4684 GCC=
4685 fi
4686 ac_test_CFLAGS=${CFLAGS+set}
4687 ac_save_CFLAGS=$CFLAGS
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4690 if ${ac_cv_prog_cc_g+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 ac_save_c_werror_flag=$ac_c_werror_flag
4694 ac_c_werror_flag=yes
4695 ac_cv_prog_cc_g=no
4696 CFLAGS="-g"
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main ()
4702 {
4703
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709 ac_cv_prog_cc_g=yes
4710 else
4711 CFLAGS=""
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724
4725 else
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727 CFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_cv_prog_cc_g=yes
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_c_werror_flag=$ac_save_c_werror_flag
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4750 $as_echo "$ac_cv_prog_cc_g" >&6; }
4751 if test "$ac_test_CFLAGS" = set; then
4752 CFLAGS=$ac_save_CFLAGS
4753 elif test $ac_cv_prog_cc_g = yes; then
4754 if test "$GCC" = yes; then
4755 CFLAGS="-g -O2"
4756 else
4757 CFLAGS="-g"
4758 fi
4759 else
4760 if test "$GCC" = yes; then
4761 CFLAGS="-O2"
4762 else
4763 CFLAGS=
4764 fi
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4768 if ${ac_cv_prog_cc_c89+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_cv_prog_cc_c89=no
4772 ac_save_CC=$CC
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <stdarg.h>
4776 #include <stdio.h>
4777 struct stat;
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4782 char **p;
4783 int i;
4784 {
4785 return p[i];
4786 }
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4788 {
4789 char *s;
4790 va_list v;
4791 va_start (v,p);
4792 s = g (p, va_arg (v,int));
4793 va_end (v);
4794 return s;
4795 }
4796
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4805
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4808 #define FOO(x) 'x'
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4810
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4815 int argc;
4816 char **argv;
4817 int
4818 main ()
4819 {
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4827 do
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4834 done
4835 rm -f conftest.$ac_ext
4836 CC=$ac_save_CC
4837
4838 fi
4839 # AC_CACHE_VAL
4840 case "x$ac_cv_prog_cc_c89" in
4841 x)
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4844 xno)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4847 *)
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4851 esac
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4853
4854 fi
4855
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861
4862 ac_ext=cpp
4863 ac_cpp='$CXXCPP $CPPFLAGS'
4864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4867 if test -z "$CXX"; then
4868 if test -n "$CCC"; then
4869 CXX=$CCC
4870 else
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4873 do
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_CXX+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$CXX"; then
4882 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 CXX=$ac_cv_prog_CXX
4902 if test -n "$CXX"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4904 $as_echo "$CXX" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910
4911 test -n "$CXX" && break
4912 done
4913 fi
4914 if test -z "$CXX"; then
4915 ac_ct_CXX=$CXX
4916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4917 do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$ac_ct_CXX"; then
4926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_ac_ct_CXX="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4946 if test -n "$ac_ct_CXX"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4948 $as_echo "$ac_ct_CXX" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 test -n "$ac_ct_CXX" && break
4956 done
4957
4958 if test "x$ac_ct_CXX" = x; then
4959 CXX="g++"
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 CXX=$ac_ct_CXX
4968 fi
4969 fi
4970
4971 fi
4972 fi
4973 # Provide some information about the compiler.
4974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4975 set X $ac_compile
4976 ac_compiler=$2
4977 for ac_option in --version -v -V -qversion; do
4978 { { ac_try="$ac_compiler $ac_option >&5"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4986 ac_status=$?
4987 if test -s conftest.err; then
4988 sed '10a\
4989 ... rest of stderr output deleted ...
4990 10q' conftest.err >conftest.er1
4991 cat conftest.er1 >&5
4992 fi
4993 rm -f conftest.er1 conftest.err
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }
4996 done
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4999 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5000 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005
5006 int
5007 main ()
5008 {
5009 #ifndef __GNUC__
5010 choke me
5011 #endif
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_cxx_try_compile "$LINENO"; then :
5018 ac_compiler_gnu=yes
5019 else
5020 ac_compiler_gnu=no
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5024
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5027 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5029 GXX=yes
5030 else
5031 GXX=
5032 fi
5033 ac_test_CXXFLAGS=${CXXFLAGS+set}
5034 ac_save_CXXFLAGS=$CXXFLAGS
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5036 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5037 if ${ac_cv_prog_cxx_g+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5041 ac_cxx_werror_flag=yes
5042 ac_cv_prog_cxx_g=no
5043 CXXFLAGS="-g"
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046
5047 int
5048 main ()
5049 {
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_cxx_try_compile "$LINENO"; then :
5056 ac_cv_prog_cxx_g=yes
5057 else
5058 CXXFLAGS=""
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_cxx_try_compile "$LINENO"; then :
5071
5072 else
5073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5074 CXXFLAGS="-g"
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077
5078 int
5079 main ()
5080 {
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_cxx_try_compile "$LINENO"; then :
5087 ac_cv_prog_cxx_g=yes
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5097 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5098 if test "$ac_test_CXXFLAGS" = set; then
5099 CXXFLAGS=$ac_save_CXXFLAGS
5100 elif test $ac_cv_prog_cxx_g = yes; then
5101 if test "$GXX" = yes; then
5102 CXXFLAGS="-g -O2"
5103 else
5104 CXXFLAGS="-g"
5105 fi
5106 else
5107 if test "$GXX" = yes; then
5108 CXXFLAGS="-O2"
5109 else
5110 CXXFLAGS=
5111 fi
5112 fi
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119
5120
5121
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_GNATBIND+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$GNATBIND"; then
5131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 GNATBIND=$ac_cv_prog_GNATBIND
5151 if test -n "$GNATBIND"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5153 $as_echo "$GNATBIND" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 fi
5161 if test -z "$ac_cv_prog_GNATBIND"; then
5162 ac_ct_GNATBIND=$GNATBIND
5163 # Extract the first word of "gnatbind", so it can be a program name with args.
5164 set dummy gnatbind; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$ac_ct_GNATBIND"; then
5171 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5191 if test -n "$ac_ct_GNATBIND"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5193 $as_echo "$ac_ct_GNATBIND" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199 if test "x$ac_ct_GNATBIND" = x; then
5200 GNATBIND="no"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208 GNATBIND=$ac_ct_GNATBIND
5209 fi
5210 else
5211 GNATBIND="$ac_cv_prog_GNATBIND"
5212 fi
5213
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_GNATMAKE+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$GNATMAKE"; then
5223 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 GNATMAKE=$ac_cv_prog_GNATMAKE
5243 if test -n "$GNATMAKE"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5245 $as_echo "$GNATMAKE" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252 fi
5253 if test -z "$ac_cv_prog_GNATMAKE"; then
5254 ac_ct_GNATMAKE=$GNATMAKE
5255 # Extract the first word of "gnatmake", so it can be a program name with args.
5256 set dummy gnatmake; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$ac_ct_GNATMAKE"; then
5263 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5283 if test -n "$ac_ct_GNATMAKE"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5285 $as_echo "$ac_ct_GNATMAKE" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291 if test "x$ac_ct_GNATMAKE" = x; then
5292 GNATMAKE="no"
5293 else
5294 case $cross_compiling:$ac_tool_warned in
5295 yes:)
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300 GNATMAKE=$ac_ct_GNATMAKE
5301 fi
5302 else
5303 GNATMAKE="$ac_cv_prog_GNATMAKE"
5304 fi
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5307 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5308 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 cat >conftest.adb <<EOF
5312 pragma Warnings (Off);
5313 with System.CRTL;
5314 pragma Warnings (On);
5315 use type System.CRTL.int64;
5316 procedure conftest is begin null; end conftest;
5317 EOF
5318 acx_cv_cc_gcc_supports_ada=no
5319 # There is a bug in old released versions of GCC which causes the
5320 # driver to exit successfully when the appropriate language module
5321 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5322 # Therefore we must check for the error message as well as an
5323 # unsuccessful exit.
5324 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5325 # given a .adb file, but produce no object file. So we must check
5326 # if an object file was really produced to guard against this.
5327 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5328 if test x"$errors" = x && test -f conftest.$ac_objext; then
5329 acx_cv_cc_gcc_supports_ada=yes
5330 fi
5331 rm -f conftest.*
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5334 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5335
5336 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5337 have_gnat=yes
5338 else
5339 have_gnat=no
5340 fi
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_GDC+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$GDC"; then
5353 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 GDC=$ac_cv_prog_GDC
5373 if test -n "$GDC"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5375 $as_echo "$GDC" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_GDC"; then
5384 ac_ct_GDC=$GDC
5385 # Extract the first word of "gdc", so it can be a program name with args.
5386 set dummy gdc; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$ac_ct_GDC"; then
5393 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_GDC="gdc"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5413 if test -n "$ac_ct_GDC"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5415 $as_echo "$ac_ct_GDC" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421 if test "x$ac_ct_GDC" = x; then
5422 GDC="no"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430 GDC=$ac_ct_GDC
5431 fi
5432 else
5433 GDC="$ac_cv_prog_GDC"
5434 fi
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5437 $as_echo_n "checking whether the D compiler works... " >&6; }
5438 if ${acx_cv_d_compiler_works+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 cat >conftest.d <<EOF
5442 module conftest; int main() { return 0; }
5443 EOF
5444 acx_cv_d_compiler_works=no
5445 if test "x$GDC" != xno; then
5446 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5447 if test x"$errors" = x && test -f conftest.$ac_objext; then
5448 acx_cv_d_compiler_works=yes
5449 fi
5450 rm -f conftest.*
5451 fi
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5454 $as_echo "$acx_cv_d_compiler_works" >&6; }
5455 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5456 have_gdc=yes
5457 else
5458 have_gdc=no
5459 fi
5460
5461
5462 # Do configure tests with the C++ compiler, since that's what we build with.
5463 ac_ext=cpp
5464 ac_cpp='$CXXCPP $CPPFLAGS'
5465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5468
5469
5470 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5471 # optimizations to be activated explicitly by the toplevel.
5472 case "$CC" in
5473 */prev-gcc/xgcc*) ;;
5474 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5475 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5476 esac
5477
5478
5479
5480
5481 # Determine PICFLAG for target gnatlib.
5482
5483
5484
5485
5486 case "${target}" in
5487 # PIC is the default on some targets or must not be used.
5488 *-*-darwin*)
5489 # For darwin, common symbols are not allowed in MH_DYLIB files
5490 case "${CFLAGS}" in
5491 # If we are using a compiler supporting mdynamic-no-pic
5492 # and the option has been tested as safe to add, then cancel
5493 # it here, since the code generated is incompatible with shared
5494 # libs.
5495 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5496 *) PICFLAG_FOR_TARGET=-fno-common ;;
5497 esac
5498 ;;
5499 alpha*-dec-osf5*)
5500 # PIC is the default.
5501 ;;
5502 hppa*64*-*-hpux*)
5503 # PIC is the default for 64-bit PA HP-UX.
5504 ;;
5505 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5506 ;;
5507 i[34567]86-*-mingw* | x86_64-*-mingw*)
5508 ;;
5509 i[34567]86-*-interix[3-9]*)
5510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5511 # Instead, we relocate shared libraries at runtime.
5512 ;;
5513 i[34567]86-*-nto-qnx*)
5514 # QNX uses GNU C++, but need to define -shared option too, otherwise
5515 # it will coredump.
5516 PICFLAG_FOR_TARGET='-fPIC -shared'
5517 ;;
5518 i[34567]86-pc-msdosdjgpp*)
5519 # DJGPP does not support shared libraries at all.
5520 ;;
5521 ia64*-*-hpux*)
5522 # On IA64 HP-UX, PIC is the default but the pic flag
5523 # sets the default TLS model and affects inlining.
5524 PICFLAG_FOR_TARGET=-fPIC
5525 ;;
5526 loongarch*-*-*)
5527 PICFLAG_FOR_TARGET=-fpic
5528 ;;
5529 mips-sgi-irix6*)
5530 # PIC is the default.
5531 ;;
5532 rs6000-ibm-aix* | powerpc-ibm-aix*)
5533 # All AIX code is PIC.
5534 ;;
5535
5536 # Some targets support both -fPIC and -fpic, but prefer the latter.
5537 # FIXME: Why?
5538 i[34567]86-*-* | x86_64-*-*)
5539 PICFLAG_FOR_TARGET=-fpic
5540 ;;
5541 # FIXME: Override -fPIC default in libgcc only?
5542 sh-*-linux* | sh[2346lbe]*-*-linux*)
5543 PICFLAG_FOR_TARGET=-fpic
5544 ;;
5545 sh*-*-netbsd*)
5546 PICFLAG_FOR_TARGET=-fpic
5547 ;;
5548 # Default to -fPIC unless specified otherwise.
5549 *)
5550 PICFLAG_FOR_TARGET=-fPIC
5551 ;;
5552 esac
5553
5554 # If the user explicitly uses -fpic/-fPIC, keep that.
5555 case "${CFLAGS_FOR_TARGET}" in
5556 *-fpic*)
5557 PICFLAG_FOR_TARGET=-fpic
5558 ;;
5559 *-fPIC*)
5560 PICFLAG_FOR_TARGET=-fPIC
5561 ;;
5562 esac
5563
5564
5565
5566 # -------------------------
5567 # Check C compiler features
5568 # -------------------------
5569
5570
5571 ac_ext=cpp
5572 ac_cpp='$CXXCPP $CPPFLAGS'
5573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5577 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5578 if test -z "$CXXCPP"; then
5579 if ${ac_cv_prog_CXXCPP+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 # Double quotes because CXXCPP needs to be expanded
5583 for CXXCPP in "$CXX -E" "/lib/cpp"
5584 do
5585 ac_preproc_ok=false
5586 for ac_cxx_preproc_warn_flag in '' yes
5587 do
5588 # Use a header file that comes with gcc, so configuring glibc
5589 # with a fresh cross-compiler works.
5590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591 # <limits.h> exists even on freestanding compilers.
5592 # On the NeXT, cc -E runs the code through the compiler's parser,
5593 # not just through cpp. "Syntax error" is here to catch this case.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #ifdef __STDC__
5597 # include <limits.h>
5598 #else
5599 # include <assert.h>
5600 #endif
5601 Syntax error
5602 _ACEOF
5603 if ac_fn_cxx_try_cpp "$LINENO"; then :
5604
5605 else
5606 # Broken: fails on valid input.
5607 continue
5608 fi
5609 rm -f conftest.err conftest.i conftest.$ac_ext
5610
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <ac_nonexistent.h>
5616 _ACEOF
5617 if ac_fn_cxx_try_cpp "$LINENO"; then :
5618 # Broken: success on invalid input.
5619 continue
5620 else
5621 # Passes both tests.
5622 ac_preproc_ok=:
5623 break
5624 fi
5625 rm -f conftest.err conftest.i conftest.$ac_ext
5626
5627 done
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.i conftest.err conftest.$ac_ext
5630 if $ac_preproc_ok; then :
5631 break
5632 fi
5633
5634 done
5635 ac_cv_prog_CXXCPP=$CXXCPP
5636
5637 fi
5638 CXXCPP=$ac_cv_prog_CXXCPP
5639 else
5640 ac_cv_prog_CXXCPP=$CXXCPP
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5643 $as_echo "$CXXCPP" >&6; }
5644 ac_preproc_ok=false
5645 for ac_cxx_preproc_warn_flag in '' yes
5646 do
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #ifdef __STDC__
5656 # include <limits.h>
5657 #else
5658 # include <assert.h>
5659 #endif
5660 Syntax error
5661 _ACEOF
5662 if ac_fn_cxx_try_cpp "$LINENO"; then :
5663
5664 else
5665 # Broken: fails on valid input.
5666 continue
5667 fi
5668 rm -f conftest.err conftest.i conftest.$ac_ext
5669
5670 # OK, works on sane cases. Now check whether nonexistent headers
5671 # can be detected and how.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <ac_nonexistent.h>
5675 _ACEOF
5676 if ac_fn_cxx_try_cpp "$LINENO"; then :
5677 # Broken: success on invalid input.
5678 continue
5679 else
5680 # Passes both tests.
5681 ac_preproc_ok=:
5682 break
5683 fi
5684 rm -f conftest.err conftest.i conftest.$ac_ext
5685
5686 done
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.i conftest.err conftest.$ac_ext
5689 if $ac_preproc_ok; then :
5690
5691 else
5692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5695 See \`config.log' for more details" "$LINENO" 5; }
5696 fi
5697
5698 ac_ext=cpp
5699 ac_cpp='$CXXCPP $CPPFLAGS'
5700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5703
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5707 if ${ac_cv_path_GREP+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -z "$GREP"; then
5711 ac_path_GREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in grep ggrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5721 as_fn_executable_p "$ac_path_GREP" || continue
5722 # Check for GNU ac_path_GREP and select it if it is found.
5723 # Check for GNU $ac_path_GREP
5724 case `"$ac_path_GREP" --version 2>&1` in
5725 *GNU*)
5726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5727 *)
5728 ac_count=0
5729 $as_echo_n 0123456789 >"conftest.in"
5730 while :
5731 do
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'GREP' >> "conftest.nl"
5736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_GREP="$ac_path_GREP"
5742 ac_path_GREP_max=$ac_count
5743 fi
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5746 done
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748 esac
5749
5750 $ac_path_GREP_found && break 3
5751 done
5752 done
5753 done
5754 IFS=$as_save_IFS
5755 if test -z "$ac_cv_path_GREP"; then
5756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 fi
5758 else
5759 ac_cv_path_GREP=$GREP
5760 fi
5761
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5764 $as_echo "$ac_cv_path_GREP" >&6; }
5765 GREP="$ac_cv_path_GREP"
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5769 $as_echo_n "checking for egrep... " >&6; }
5770 if ${ac_cv_path_EGREP+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5774 then ac_cv_path_EGREP="$GREP -E"
5775 else
5776 if test -z "$EGREP"; then
5777 ac_path_EGREP_found=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in egrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5787 as_fn_executable_p "$ac_path_EGREP" || continue
5788 # Check for GNU ac_path_EGREP and select it if it is found.
5789 # Check for GNU $ac_path_EGREP
5790 case `"$ac_path_EGREP" --version 2>&1` in
5791 *GNU*)
5792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5793 *)
5794 ac_count=0
5795 $as_echo_n 0123456789 >"conftest.in"
5796 while :
5797 do
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'EGREP' >> "conftest.nl"
5802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804 as_fn_arith $ac_count + 1 && ac_count=$as_val
5805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_EGREP="$ac_path_EGREP"
5808 ac_path_EGREP_max=$ac_count
5809 fi
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5812 done
5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814 esac
5815
5816 $ac_path_EGREP_found && break 3
5817 done
5818 done
5819 done
5820 IFS=$as_save_IFS
5821 if test -z "$ac_cv_path_EGREP"; then
5822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823 fi
5824 else
5825 ac_cv_path_EGREP=$EGREP
5826 fi
5827
5828 fi
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5831 $as_echo "$ac_cv_path_EGREP" >&6; }
5832 EGREP="$ac_cv_path_EGREP"
5833
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5836 $as_echo_n "checking for ANSI C header files... " >&6; }
5837 if ${ac_cv_header_stdc+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <stdlib.h>
5843 #include <stdarg.h>
5844 #include <string.h>
5845 #include <float.h>
5846
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_cxx_try_compile "$LINENO"; then :
5856 ac_cv_header_stdc=yes
5857 else
5858 ac_cv_header_stdc=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861
5862 if test $ac_cv_header_stdc = yes; then
5863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <string.h>
5867
5868 _ACEOF
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 $EGREP "memchr" >/dev/null 2>&1; then :
5871
5872 else
5873 ac_cv_header_stdc=no
5874 fi
5875 rm -f conftest*
5876
5877 fi
5878
5879 if test $ac_cv_header_stdc = yes; then
5880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #include <stdlib.h>
5884
5885 _ACEOF
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev/null 2>&1; then :
5888
5889 else
5890 ac_cv_header_stdc=no
5891 fi
5892 rm -f conftest*
5893
5894 fi
5895
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then :
5899 :
5900 else
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 #include <ctype.h>
5904 #include <stdlib.h>
5905 #if ((' ' & 0x0FF) == 0x020)
5906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5908 #else
5909 # define ISLOWER(c) \
5910 (('a' <= (c) && (c) <= 'i') \
5911 || ('j' <= (c) && (c) <= 'r') \
5912 || ('s' <= (c) && (c) <= 'z'))
5913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5914 #endif
5915
5916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 int
5918 main ()
5919 {
5920 int i;
5921 for (i = 0; i < 256; i++)
5922 if (XOR (islower (i), ISLOWER (i))
5923 || toupper (i) != TOUPPER (i))
5924 return 2;
5925 return 0;
5926 }
5927 _ACEOF
5928 if ac_fn_cxx_try_run "$LINENO"; then :
5929
5930 else
5931 ac_cv_header_stdc=no
5932 fi
5933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5934 conftest.$ac_objext conftest.beam conftest.$ac_ext
5935 fi
5936
5937 fi
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5940 $as_echo "$ac_cv_header_stdc" >&6; }
5941 if test $ac_cv_header_stdc = yes; then
5942
5943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5944
5945 fi
5946
5947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5949 inttypes.h stdint.h unistd.h
5950 do :
5951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5953 "
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5958
5959 fi
5960
5961 done
5962
5963
5964
5965 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5966 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5967 MINIX=yes
5968 else
5969 MINIX=
5970 fi
5971
5972
5973 if test "$MINIX" = yes; then
5974
5975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5976
5977
5978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5979
5980
5981 $as_echo "#define _MINIX 1" >>confdefs.h
5982
5983 fi
5984
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5988 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993
5994 # define __EXTENSIONS__ 1
5995 $ac_includes_default
5996 int
5997 main ()
5998 {
5999
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_cxx_try_compile "$LINENO"; then :
6005 ac_cv_safe_to_define___extensions__=yes
6006 else
6007 ac_cv_safe_to_define___extensions__=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6013 test $ac_cv_safe_to_define___extensions__ = yes &&
6014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6015
6016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6017
6018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6019
6020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6021
6022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6023
6024
6025
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6036 fi
6037 if test -z "$CPP"; then
6038 if ${ac_cv_prog_CPP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 do
6044 ac_preproc_ok=false
6045 for ac_c_preproc_warn_flag in '' yes
6046 do
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #ifdef __STDC__
6056 # include <limits.h>
6057 #else
6058 # include <assert.h>
6059 #endif
6060 Syntax error
6061 _ACEOF
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6063
6064 else
6065 # Broken: fails on valid input.
6066 continue
6067 fi
6068 rm -f conftest.err conftest.i conftest.$ac_ext
6069
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 # Passes both tests.
6081 ac_preproc_ok=:
6082 break
6083 fi
6084 rm -f conftest.err conftest.i conftest.$ac_ext
6085
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.i conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then :
6090 break
6091 fi
6092
6093 done
6094 ac_cv_prog_CPP=$CPP
6095
6096 fi
6097 CPP=$ac_cv_prog_CPP
6098 else
6099 ac_cv_prog_CPP=$CPP
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_c_preproc_warn_flag in '' yes
6105 do
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119 Syntax error
6120 _ACEOF
6121 if ac_fn_c_try_cpp "$LINENO"; then :
6122
6123 else
6124 # Broken: fails on valid input.
6125 continue
6126 fi
6127 rm -f conftest.err conftest.i conftest.$ac_ext
6128
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6134 _ACEOF
6135 if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137 continue
6138 else
6139 # Passes both tests.
6140 ac_preproc_ok=:
6141 break
6142 fi
6143 rm -f conftest.err conftest.i conftest.$ac_ext
6144
6145 done
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.i conftest.err conftest.$ac_ext
6148 if $ac_preproc_ok; then :
6149
6150 else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details" "$LINENO" 5; }
6155 fi
6156
6157 ac_ext=cpp
6158 ac_cpp='$CXXCPP $CPPFLAGS'
6159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6164 $as_echo_n "checking for inline... " >&6; }
6165 if ${ac_cv_c_inline+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 ac_cv_c_inline=no
6169 for ac_kw in inline __inline__ __inline; do
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 #ifndef __cplusplus
6173 typedef int foo_t;
6174 static $ac_kw foo_t static_foo () {return 0; }
6175 $ac_kw foo_t foo () {return 0; }
6176 #endif
6177
6178 _ACEOF
6179 if ac_fn_cxx_try_compile "$LINENO"; then :
6180 ac_cv_c_inline=$ac_kw
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 test "$ac_cv_c_inline" != no && break
6184 done
6185
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6188 $as_echo "$ac_cv_c_inline" >&6; }
6189
6190 case $ac_cv_c_inline in
6191 inline | yes) ;;
6192 *)
6193 case $ac_cv_c_inline in
6194 no) ac_val=;;
6195 *) ac_val=$ac_cv_c_inline;;
6196 esac
6197 cat >>confdefs.h <<_ACEOF
6198 #ifndef __cplusplus
6199 #define inline $ac_val
6200 #endif
6201 _ACEOF
6202 ;;
6203 esac
6204
6205
6206 # Check whether --enable-largefile was given.
6207 if test "${enable_largefile+set}" = set; then :
6208 enableval=$enable_largefile;
6209 fi
6210
6211 if test "$enable_largefile" != no; then
6212
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6214 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6215 if ${ac_cv_sys_largefile_CC+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 ac_cv_sys_largefile_CC=no
6219 if test "$GCC" != yes; then
6220 ac_save_CC=$CC
6221 while :; do
6222 # IRIX 6.2 and later do not support large files by default,
6223 # so use the C compiler's -n32 option if that helps.
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6234 ? 1 : -1];
6235 int
6236 main ()
6237 {
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_cxx_try_compile "$LINENO"; then :
6244 break
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext
6247 CC="$CC -n32"
6248 if ac_fn_cxx_try_compile "$LINENO"; then :
6249 ac_cv_sys_largefile_CC=' -n32'; break
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext
6252 break
6253 done
6254 CC=$ac_save_CC
6255 rm -f conftest.$ac_ext
6256 fi
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6259 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6260 if test "$ac_cv_sys_largefile_CC" != no; then
6261 CC=$CC$ac_cv_sys_largefile_CC
6262 fi
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6265 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6266 if ${ac_cv_sys_file_offset_bits+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 while :; do
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 #include <sys/types.h>
6273 /* Check that off_t can represent 2**63 - 1 correctly.
6274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6275 since some C++ compilers masquerading as C compilers
6276 incorrectly reject 9223372036854775807. */
6277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6279 && LARGE_OFF_T % 2147483647 == 1)
6280 ? 1 : -1];
6281 int
6282 main ()
6283 {
6284
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 if ac_fn_cxx_try_compile "$LINENO"; then :
6290 ac_cv_sys_file_offset_bits=no; break
6291 fi
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #define _FILE_OFFSET_BITS 64
6296 #include <sys/types.h>
6297 /* Check that off_t can represent 2**63 - 1 correctly.
6298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6299 since some C++ compilers masquerading as C compilers
6300 incorrectly reject 9223372036854775807. */
6301 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6303 && LARGE_OFF_T % 2147483647 == 1)
6304 ? 1 : -1];
6305 int
6306 main ()
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_cxx_try_compile "$LINENO"; then :
6314 ac_cv_sys_file_offset_bits=64; break
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 ac_cv_sys_file_offset_bits=unknown
6318 break
6319 done
6320 fi
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6322 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6323 case $ac_cv_sys_file_offset_bits in #(
6324 no | unknown) ;;
6325 *)
6326 cat >>confdefs.h <<_ACEOF
6327 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6328 _ACEOF
6329 ;;
6330 esac
6331 rm -rf conftest*
6332 if test $ac_cv_sys_file_offset_bits = unknown; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6334 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6335 if ${ac_cv_sys_large_files+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 while :; do
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #include <sys/types.h>
6342 /* Check that off_t can represent 2**63 - 1 correctly.
6343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6344 since some C++ compilers masquerading as C compilers
6345 incorrectly reject 9223372036854775807. */
6346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6348 && LARGE_OFF_T % 2147483647 == 1)
6349 ? 1 : -1];
6350 int
6351 main ()
6352 {
6353
6354 ;
6355 return 0;
6356 }
6357 _ACEOF
6358 if ac_fn_cxx_try_compile "$LINENO"; then :
6359 ac_cv_sys_large_files=no; break
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #define _LARGE_FILES 1
6365 #include <sys/types.h>
6366 /* Check that off_t can represent 2**63 - 1 correctly.
6367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6368 since some C++ compilers masquerading as C compilers
6369 incorrectly reject 9223372036854775807. */
6370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6372 && LARGE_OFF_T % 2147483647 == 1)
6373 ? 1 : -1];
6374 int
6375 main ()
6376 {
6377
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_cxx_try_compile "$LINENO"; then :
6383 ac_cv_sys_large_files=1; break
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 ac_cv_sys_large_files=unknown
6387 break
6388 done
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6391 $as_echo "$ac_cv_sys_large_files" >&6; }
6392 case $ac_cv_sys_large_files in #(
6393 no | unknown) ;;
6394 *)
6395 cat >>confdefs.h <<_ACEOF
6396 #define _LARGE_FILES $ac_cv_sys_large_files
6397 _ACEOF
6398 ;;
6399 esac
6400 rm -rf conftest*
6401 fi
6402
6403
6404 fi
6405
6406 # The cast to long int works around a bug in the HP C Compiler
6407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6409 # This bug is HP SR number 8606223364.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6411 $as_echo_n "checking size of ino_t... " >&6; }
6412 if ${ac_cv_sizeof_ino_t+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6416
6417 else
6418 if test "$ac_cv_type_ino_t" = yes; then
6419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6421 as_fn_error 77 "cannot compute sizeof (ino_t)
6422 See \`config.log' for more details" "$LINENO" 5; }
6423 else
6424 ac_cv_sizeof_ino_t=0
6425 fi
6426 fi
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6430 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6431
6432
6433
6434 cat >>confdefs.h <<_ACEOF
6435 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6436 _ACEOF
6437
6438
6439 # The cast to long int works around a bug in the HP C Compiler
6440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6442 # This bug is HP SR number 8606223364.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6444 $as_echo_n "checking size of dev_t... " >&6; }
6445 if ${ac_cv_sizeof_dev_t+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6449
6450 else
6451 if test "$ac_cv_type_dev_t" = yes; then
6452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 as_fn_error 77 "cannot compute sizeof (dev_t)
6455 See \`config.log' for more details" "$LINENO" 5; }
6456 else
6457 ac_cv_sizeof_dev_t=0
6458 fi
6459 fi
6460
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6463 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6464
6465
6466
6467 cat >>confdefs.h <<_ACEOF
6468 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6469 _ACEOF
6470
6471
6472
6473 # Select the right stat being able to handle 64bit inodes, if needed.
6474 if test "$enable_largefile" != no; then
6475 case "$host, $build" in
6476 *-*-aix*,*|*,*-*-aix*)
6477 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6478
6479 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6480
6481 fi;;
6482 esac
6483 fi
6484
6485
6486 # sizeof(char) is 1 by definition.
6487 # The cast to long int works around a bug in the HP C Compiler
6488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6490 # This bug is HP SR number 8606223364.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6492 $as_echo_n "checking size of void *... " >&6; }
6493 if ${ac_cv_sizeof_void_p+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6497
6498 else
6499 if test "$ac_cv_type_void_p" = yes; then
6500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6502 as_fn_error 77 "cannot compute sizeof (void *)
6503 See \`config.log' for more details" "$LINENO" 5; }
6504 else
6505 ac_cv_sizeof_void_p=0
6506 fi
6507 fi
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6511 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6512
6513
6514
6515 cat >>confdefs.h <<_ACEOF
6516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6517 _ACEOF
6518
6519
6520 # The cast to long int works around a bug in the HP C Compiler
6521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6523 # This bug is HP SR number 8606223364.
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6525 $as_echo_n "checking size of short... " >&6; }
6526 if ${ac_cv_sizeof_short+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6530
6531 else
6532 if test "$ac_cv_type_short" = yes; then
6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6535 as_fn_error 77 "cannot compute sizeof (short)
6536 See \`config.log' for more details" "$LINENO" 5; }
6537 else
6538 ac_cv_sizeof_short=0
6539 fi
6540 fi
6541
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6544 $as_echo "$ac_cv_sizeof_short" >&6; }
6545
6546
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define SIZEOF_SHORT $ac_cv_sizeof_short
6550 _ACEOF
6551
6552
6553 # The cast to long int works around a bug in the HP C Compiler
6554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6556 # This bug is HP SR number 8606223364.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6558 $as_echo_n "checking size of int... " >&6; }
6559 if ${ac_cv_sizeof_int+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6563
6564 else
6565 if test "$ac_cv_type_int" = yes; then
6566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6568 as_fn_error 77 "cannot compute sizeof (int)
6569 See \`config.log' for more details" "$LINENO" 5; }
6570 else
6571 ac_cv_sizeof_int=0
6572 fi
6573 fi
6574
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6577 $as_echo "$ac_cv_sizeof_int" >&6; }
6578
6579
6580
6581 cat >>confdefs.h <<_ACEOF
6582 #define SIZEOF_INT $ac_cv_sizeof_int
6583 _ACEOF
6584
6585
6586 # The cast to long int works around a bug in the HP C Compiler
6587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6589 # This bug is HP SR number 8606223364.
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6591 $as_echo_n "checking size of long... " >&6; }
6592 if ${ac_cv_sizeof_long+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6596
6597 else
6598 if test "$ac_cv_type_long" = yes; then
6599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6601 as_fn_error 77 "cannot compute sizeof (long)
6602 See \`config.log' for more details" "$LINENO" 5; }
6603 else
6604 ac_cv_sizeof_long=0
6605 fi
6606 fi
6607
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6610 $as_echo "$ac_cv_sizeof_long" >&6; }
6611
6612
6613
6614 cat >>confdefs.h <<_ACEOF
6615 #define SIZEOF_LONG $ac_cv_sizeof_long
6616 _ACEOF
6617
6618
6619 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6620 if test "x$ac_cv_type_long_long" = xyes; then :
6621
6622 cat >>confdefs.h <<_ACEOF
6623 #define HAVE_LONG_LONG 1
6624 _ACEOF
6625
6626 # The cast to long int works around a bug in the HP C Compiler
6627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6629 # This bug is HP SR number 8606223364.
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6631 $as_echo_n "checking size of long long... " >&6; }
6632 if ${ac_cv_sizeof_long_long+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6636
6637 else
6638 if test "$ac_cv_type_long_long" = yes; then
6639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6641 as_fn_error 77 "cannot compute sizeof (long long)
6642 See \`config.log' for more details" "$LINENO" 5; }
6643 else
6644 ac_cv_sizeof_long_long=0
6645 fi
6646 fi
6647
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6650 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6651
6652
6653
6654 cat >>confdefs.h <<_ACEOF
6655 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6656 _ACEOF
6657
6658
6659 fi
6660
6661 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6662 case $ac_cv_c_int8_t in #(
6663 no|yes) ;; #(
6664 *)
6665
6666 cat >>confdefs.h <<_ACEOF
6667 #define int8_t $ac_cv_c_int8_t
6668 _ACEOF
6669 ;;
6670 esac
6671
6672 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6673 case $ac_cv_c_int16_t in #(
6674 no|yes) ;; #(
6675 *)
6676
6677 cat >>confdefs.h <<_ACEOF
6678 #define int16_t $ac_cv_c_int16_t
6679 _ACEOF
6680 ;;
6681 esac
6682
6683 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6684 case $ac_cv_c_int32_t in #(
6685 no|yes) ;; #(
6686 *)
6687
6688 cat >>confdefs.h <<_ACEOF
6689 #define int32_t $ac_cv_c_int32_t
6690 _ACEOF
6691 ;;
6692 esac
6693
6694 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6695 case $ac_cv_c_int64_t in #(
6696 no|yes) ;; #(
6697 *)
6698
6699 cat >>confdefs.h <<_ACEOF
6700 #define int64_t $ac_cv_c_int64_t
6701 _ACEOF
6702 ;;
6703 esac
6704
6705
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6707 $as_echo_n "checking for unsigned long long int... " >&6; }
6708 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 ac_cv_type_unsigned_long_long_int=yes
6712 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715
6716 /* For now, do not test the preprocessor; as of 2007 there are too many
6717 implementations with broken preprocessors. Perhaps this can
6718 be revisited in 2012. In the meantime, code should not expect
6719 #if to work with literals wider than 32 bits. */
6720 /* Test literals. */
6721 long long int ll = 9223372036854775807ll;
6722 long long int nll = -9223372036854775807LL;
6723 unsigned long long int ull = 18446744073709551615ULL;
6724 /* Test constant expressions. */
6725 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6726 ? 1 : -1)];
6727 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6728 ? 1 : -1)];
6729 int i = 63;
6730 int
6731 main ()
6732 {
6733 /* Test availability of runtime routines for shift and division. */
6734 long long int llmax = 9223372036854775807ll;
6735 unsigned long long int ullmax = 18446744073709551615ull;
6736 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6737 | (llmax / ll) | (llmax % ll)
6738 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6739 | (ullmax / ull) | (ullmax % ull));
6740 ;
6741 return 0;
6742 }
6743
6744 _ACEOF
6745 if ac_fn_cxx_try_link "$LINENO"; then :
6746
6747 else
6748 ac_cv_type_unsigned_long_long_int=no
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 fi
6753 fi
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6755 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6756 if test $ac_cv_type_unsigned_long_long_int = yes; then
6757
6758 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6759
6760 fi
6761
6762
6763
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6765 $as_echo_n "checking for long long int... " >&6; }
6766 if ${ac_cv_type_long_long_int+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 ac_cv_type_long_long_int=yes
6770 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6771 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6772 if test $ac_cv_type_long_long_int = yes; then
6773 if test "$cross_compiling" = yes; then :
6774 :
6775 else
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <limits.h>
6779 #ifndef LLONG_MAX
6780 # define HALF \
6781 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6782 # define LLONG_MAX (HALF - 1 + HALF)
6783 #endif
6784 int
6785 main ()
6786 {
6787 long long int n = 1;
6788 int i;
6789 for (i = 0; ; i++)
6790 {
6791 long long int m = n << i;
6792 if (m >> i != n)
6793 return 1;
6794 if (LLONG_MAX / 2 < m)
6795 break;
6796 }
6797 return 0;
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_cxx_try_run "$LINENO"; then :
6803
6804 else
6805 ac_cv_type_long_long_int=no
6806 fi
6807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6808 conftest.$ac_objext conftest.beam conftest.$ac_ext
6809 fi
6810
6811 fi
6812 fi
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6815 $as_echo "$ac_cv_type_long_long_int" >&6; }
6816 if test $ac_cv_type_long_long_int = yes; then
6817
6818 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6819
6820 fi
6821
6822
6823
6824 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6825 if test "x$ac_cv_type_intmax_t" = xyes; then :
6826
6827 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6828
6829 else
6830 test $ac_cv_type_long_long_int = yes \
6831 && ac_type='long long int' \
6832 || ac_type='long int'
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define intmax_t $ac_type
6836 _ACEOF
6837
6838 fi
6839
6840
6841
6842 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6843 if test "x$ac_cv_type_intptr_t" = xyes; then :
6844
6845 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6846
6847 else
6848 for ac_type in 'int' 'long int' 'long long int'; do
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 $ac_includes_default
6852 int
6853 main ()
6854 {
6855 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6856 test_array [0] = 0;
6857 return test_array [0];
6858
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_cxx_try_compile "$LINENO"; then :
6864
6865 cat >>confdefs.h <<_ACEOF
6866 #define intptr_t $ac_type
6867 _ACEOF
6868
6869 ac_type=
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 test -z "$ac_type" && break
6873 done
6874 fi
6875
6876
6877 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6878 case $ac_cv_c_uint8_t in #(
6879 no|yes) ;; #(
6880 *)
6881
6882 $as_echo "#define _UINT8_T 1" >>confdefs.h
6883
6884
6885 cat >>confdefs.h <<_ACEOF
6886 #define uint8_t $ac_cv_c_uint8_t
6887 _ACEOF
6888 ;;
6889 esac
6890
6891 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6892 case $ac_cv_c_uint16_t in #(
6893 no|yes) ;; #(
6894 *)
6895
6896
6897 cat >>confdefs.h <<_ACEOF
6898 #define uint16_t $ac_cv_c_uint16_t
6899 _ACEOF
6900 ;;
6901 esac
6902
6903 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6904 case $ac_cv_c_uint32_t in #(
6905 no|yes) ;; #(
6906 *)
6907
6908 $as_echo "#define _UINT32_T 1" >>confdefs.h
6909
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define uint32_t $ac_cv_c_uint32_t
6913 _ACEOF
6914 ;;
6915 esac
6916
6917 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6918 case $ac_cv_c_uint64_t in #(
6919 no|yes) ;; #(
6920 *)
6921
6922 $as_echo "#define _UINT64_T 1" >>confdefs.h
6923
6924
6925 cat >>confdefs.h <<_ACEOF
6926 #define uint64_t $ac_cv_c_uint64_t
6927 _ACEOF
6928 ;;
6929 esac
6930
6931
6932
6933 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6934 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6935
6936 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6937
6938 else
6939 test $ac_cv_type_unsigned_long_long_int = yes \
6940 && ac_type='unsigned long long int' \
6941 || ac_type='unsigned long int'
6942
6943 cat >>confdefs.h <<_ACEOF
6944 #define uintmax_t $ac_type
6945 _ACEOF
6946
6947 fi
6948
6949
6950
6951 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6952 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6953
6954 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6955
6956 else
6957 for ac_type in 'unsigned int' 'unsigned long int' \
6958 'unsigned long long int'; do
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 $ac_includes_default
6962 int
6963 main ()
6964 {
6965 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6966 test_array [0] = 0;
6967 return test_array [0];
6968
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_cxx_try_compile "$LINENO"; then :
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define uintptr_t $ac_type
6977 _ACEOF
6978
6979 ac_type=
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 test -z "$ac_type" && break
6983 done
6984 fi
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7000 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7001 fi
7002
7003 # check what underlying integer type int64_t uses
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7005 $as_echo_n "checking for int64_t underlying type... " >&6; }
7006 if ${ac_cv_int64_t_type+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012
7013 #ifdef HAVE_STDINT_H
7014 #include <stdint.h>
7015 #endif
7016 template <typename T> struct X { };
7017 template <>
7018 struct X<long> { typedef long t; };
7019
7020 int
7021 main ()
7022 {
7023 X<int64_t>::t x;
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_cxx_try_compile "$LINENO"; then :
7029 ac_cv_int64_t_type=long
7030 else
7031 ac_cv_int64_t_type="long long"
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7036 $as_echo "$ac_cv_int64_t_type" >&6; }
7037 if test "$ac_cv_int64_t_type" = "long"; then
7038
7039 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7040
7041 else
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044
7045 #ifdef HAVE_STDINT_H
7046 #include <stdint.h>
7047 #endif
7048 template <typename T> struct X { };
7049 template <>
7050 struct X<long long> { typedef long long t; };
7051
7052 int
7053 main ()
7054 {
7055 X<int64_t>::t x;
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_cxx_try_compile "$LINENO"; then :
7061
7062 else
7063 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7069 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7070 if ${ac_cv_std_swap_in_utility+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076
7077 #include <utility>
7078
7079 int
7080 main ()
7081 {
7082 int a, b; std::swap(a,b);
7083 ;
7084 return 0;
7085 }
7086 _ACEOF
7087 if ac_fn_cxx_try_compile "$LINENO"; then :
7088 ac_cv_std_swap_in_utility=yes
7089 else
7090 ac_cv_std_swap_in_utility=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7095 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7096 if test $ac_cv_std_swap_in_utility = yes; then
7097
7098 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7099
7100 fi
7101
7102 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7103 # If the host compiler is affected by the bug, and we build with optimization
7104 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7105 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7106 # Since there is no reliable feature check for the presence of this bug,
7107 # we simply use a GCC version number check. (This should never trigger for
7108 # stages 2 or 3 of a native bootstrap.)
7109 aliasing_flags=
7110 if test "$GCC" = yes; then
7111 saved_CXXFLAGS="$CXXFLAGS"
7112
7113 # The following test compilation will succeed if and only if $CXX accepts
7114 # -fno-strict-aliasing *and* is older than GCC 4.3.
7115 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7117 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120
7121 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7122 #error compiler not affected by placement new aliasing bug
7123 #endif
7124
7125 _ACEOF
7126 if ac_fn_cxx_try_compile "$LINENO"; then :
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134
7135 CXXFLAGS="$saved_CXXFLAGS"
7136 fi
7137
7138
7139
7140
7141 # ---------------------
7142 # Warnings and checking
7143 # ---------------------
7144
7145 # Check $CC warning features (if it's GCC).
7146 # We want to use -pedantic, but we don't want warnings about
7147 # * 'long long'
7148 # * variadic macros
7149 # * overlong strings
7150 # * C++11 narrowing conversions in { }
7151 # So, we only use -pedantic if we can disable those warnings.
7152
7153 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7154 # Check whether --enable-build-format-warnings was given.
7155 if test "${enable_build_format_warnings+set}" = set; then :
7156 enableval=$enable_build_format_warnings;
7157 else
7158 enable_build_format_warnings=yes
7159 fi
7160
7161 if test $enable_build_format_warnings = no; then :
7162 wf_opt=-Wno-format
7163 else
7164 wf_opt=
7165 fi
7166 ac_ext=cpp
7167 ac_cpp='$CXXCPP $CPPFLAGS'
7168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7171
7172 loose_warn=
7173 save_CXXFLAGS="$CXXFLAGS"
7174 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7175 # Do the check with the no- prefix removed since gcc silently
7176 # accepts any -Wno-* option on purpose
7177 case $real_option in
7178 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7179 *) option=$real_option ;;
7180 esac
7181 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7184 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7185 if eval \${$as_acx_Woption+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 CXXFLAGS="$option"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191
7192 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_cxx_try_compile "$LINENO"; then :
7201 eval "$as_acx_Woption=yes"
7202 else
7203 eval "$as_acx_Woption=no"
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206
7207 fi
7208 eval ac_res=\$$as_acx_Woption
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7210 $as_echo "$ac_res" >&6; }
7211 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7212 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7213 fi
7214 done
7215 CXXFLAGS="$save_CXXFLAGS"
7216 ac_ext=cpp
7217 ac_cpp='$CXXCPP $CPPFLAGS'
7218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7221
7222
7223
7224 ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230 c_loose_warn=
7231 save_CFLAGS="$CFLAGS"
7232 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7233 # Do the check with the no- prefix removed since gcc silently
7234 # accepts any -Wno-* option on purpose
7235 case $real_option in
7236 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7237 *) option=$real_option ;;
7238 esac
7239 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7242 $as_echo_n "checking whether $CC supports $option... " >&6; }
7243 if eval \${$as_acx_Woption+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 CFLAGS="$option"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"; then :
7259 eval "$as_acx_Woption=yes"
7260 else
7261 eval "$as_acx_Woption=no"
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264
7265 fi
7266 eval ac_res=\$$as_acx_Woption
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7268 $as_echo "$ac_res" >&6; }
7269 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7270 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7271 fi
7272 done
7273 CFLAGS="$save_CFLAGS"
7274 ac_ext=cpp
7275 ac_cpp='$CXXCPP $CPPFLAGS'
7276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7279
7280
7281 ac_ext=cpp
7282 ac_cpp='$CXXCPP $CPPFLAGS'
7283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286
7287 strict_warn=
7288 save_CXXFLAGS="$CXXFLAGS"
7289 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7290 # Do the check with the no- prefix removed since gcc silently
7291 # accepts any -Wno-* option on purpose
7292 case $real_option in
7293 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7294 *) option=$real_option ;;
7295 esac
7296 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7299 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7300 if eval \${$as_acx_Woption+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 CXXFLAGS="$option"
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306
7307 int
7308 main ()
7309 {
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_cxx_try_compile "$LINENO"; then :
7316 eval "$as_acx_Woption=yes"
7317 else
7318 eval "$as_acx_Woption=no"
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321
7322 fi
7323 eval ac_res=\$$as_acx_Woption
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7325 $as_echo "$ac_res" >&6; }
7326 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7327 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7328 fi
7329 done
7330 CXXFLAGS="$save_CXXFLAGS"
7331 ac_ext=cpp
7332 ac_cpp='$CXXCPP $CPPFLAGS'
7333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7336
7337
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343
7344 c_strict_warn=
7345 save_CFLAGS="$CFLAGS"
7346 for real_option in -Wold-style-definition -Wc++-compat; do
7347 # Do the check with the no- prefix removed since gcc silently
7348 # accepts any -Wno-* option on purpose
7349 case $real_option in
7350 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7351 *) option=$real_option ;;
7352 esac
7353 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7354
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7356 $as_echo_n "checking whether $CC supports $option... " >&6; }
7357 if eval \${$as_acx_Woption+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 CFLAGS="$option"
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363
7364 int
7365 main ()
7366 {
7367
7368 ;
7369 return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 eval "$as_acx_Woption=yes"
7374 else
7375 eval "$as_acx_Woption=no"
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378
7379 fi
7380 eval ac_res=\$$as_acx_Woption
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7382 $as_echo "$ac_res" >&6; }
7383 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7384 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7385 fi
7386 done
7387 CFLAGS="$save_CFLAGS"
7388 ac_ext=cpp
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7393
7394
7395 ac_ext=cpp
7396 ac_cpp='$CXXCPP $CPPFLAGS'
7397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7400
7401 # Do the check with the no- prefix removed from the warning options
7402 # since gcc silently accepts any -Wno-* option on purpose
7403 if test "$GXX" = yes; then :
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7405 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7406 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 save_CXXFLAGS="$CXXFLAGS"
7410 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_cxx_try_compile "$LINENO"; then :
7423 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7424 else
7425 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 CXXFLAGS="$save_CXXFLAGS"
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7431 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7432 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7433 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7434 fi
7435
7436 fi
7437 ac_ext=cpp
7438 ac_cpp='$CXXCPP $CPPFLAGS'
7439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7442
7443
7444 ac_ext=cpp
7445 ac_cpp='$CXXCPP $CPPFLAGS'
7446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7449
7450 # Check whether --enable-werror-always was given.
7451 if test "${enable_werror_always+set}" = set; then :
7452 enableval=$enable_werror_always;
7453 else
7454 enable_werror_always=no
7455 fi
7456
7457 if test $enable_werror_always = yes; then :
7458 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7459 fi
7460
7461 ac_ext=cpp
7462 ac_cpp='$CXXCPP $CPPFLAGS'
7463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7466
7467
7468
7469 # The above macros do nothing if the compiler is not GCC. However, the
7470 # Makefile has more goo to add other flags, so these variables are used
7471 # to enable warnings only for GCC.
7472 warn_cflags=
7473 warn_cxxflags=
7474 if test "x$GCC" = "xyes"; then
7475 warn_cflags='$(GCC_WARN_CFLAGS)'
7476 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7477 fi
7478
7479
7480
7481 # Disable exceptions and RTTI if building with g++
7482 ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488 noexception_flags=
7489 save_CFLAGS="$CFLAGS"
7490 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7491 # Do the check with the no- prefix removed since gcc silently
7492 # accepts any -Wno-* option on purpose
7493 case $real_option in
7494 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7495 *) option=$real_option ;;
7496 esac
7497 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7500 $as_echo_n "checking whether $CC supports $option... " >&6; }
7501 if eval \${$as_acx_Woption+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 CFLAGS="$option"
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507
7508 int
7509 main ()
7510 {
7511
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 eval "$as_acx_Woption=yes"
7518 else
7519 eval "$as_acx_Woption=no"
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522
7523 fi
7524 eval ac_res=\$$as_acx_Woption
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7526 $as_echo "$ac_res" >&6; }
7527 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7528 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7529 fi
7530 done
7531 CFLAGS="$save_CFLAGS"
7532 ac_ext=cpp
7533 ac_cpp='$CXXCPP $CPPFLAGS'
7534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7537
7538
7539
7540 # Enable expensive internal checks
7541 is_release=
7542 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7543 is_release=yes
7544 fi
7545
7546 # Check whether --enable-checking was given.
7547 if test "${enable_checking+set}" = set; then :
7548 enableval=$enable_checking; ac_checking_flags="${enableval}"
7549 else
7550
7551 # Determine the default checks.
7552 if test x$is_release = x ; then
7553 ac_checking_flags=yes,extra
7554 else
7555 ac_checking_flags=release
7556 fi
7557 fi
7558
7559 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7560 for check in release $ac_checking_flags
7561 do
7562 case $check in
7563 # these set all the flags to specific states
7564 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7565 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7566 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7567 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7568 ac_tree_checking=1 ; ac_valgrind_checking= ;
7569 ac_types_checking=1 ;;
7570 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7571 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7572 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7573 ac_rtlflag_checking= ; ac_runtime_checking= ;
7574 ac_tree_checking= ; ac_valgrind_checking= ;
7575 ac_types_checking= ;;
7576 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7577 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7578 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7579 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7580 ac_tree_checking=1 ; ac_valgrind_checking= ;
7581 ac_types_checking=1 ;;
7582 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7583 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7584 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7585 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7586 ac_tree_checking= ; ac_valgrind_checking= ;
7587 ac_types_checking= ;;
7588 # these enable particular checks
7589 assert) ac_assert_checking=1 ;;
7590 df) ac_df_checking=1 ;;
7591 extra) ac_extra_checking=1 ;;
7592 fold) ac_fold_checking=1 ;;
7593 gc) ac_gc_checking=1 ;;
7594 gcac) ac_gc_always_collect=1 ;;
7595 gimple) ac_gimple_checking=1 ;;
7596 misc) ac_checking=1 ;;
7597 rtl) ac_rtl_checking=1 ;;
7598 rtlflag) ac_rtlflag_checking=1 ;;
7599 runtime) ac_runtime_checking=1 ;;
7600 tree) ac_tree_checking=1 ;;
7601 types) ac_types_checking=1 ;;
7602 valgrind) ac_valgrind_checking=1 ;;
7603 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7604 esac
7605 done
7606 IFS="$ac_save_IFS"
7607
7608 nocommon_flag=""
7609 if test x$ac_checking != x ; then
7610
7611 $as_echo "#define CHECKING_P 1" >>confdefs.h
7612
7613 nocommon_flag=-fno-common
7614 else
7615 $as_echo "#define CHECKING_P 0" >>confdefs.h
7616
7617 fi
7618
7619 if test x$ac_extra_checking != x ; then
7620
7621 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7622
7623 else
7624 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7625
7626 fi
7627 if test x$ac_df_checking != x ; then
7628
7629 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7630
7631 fi
7632 if test x$ac_assert_checking != x ; then
7633
7634 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7635
7636 fi
7637 if test x$ac_gimple_checking != x ; then
7638
7639 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7640
7641 fi
7642
7643 if test x$ac_runtime_checking != x ; then
7644
7645 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7646
7647 fi
7648 if test x$ac_tree_checking != x ; then
7649
7650 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7651
7652 TREECHECKING=yes
7653 fi
7654 if test x$ac_types_checking != x ; then
7655
7656 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7657
7658 fi
7659
7660 if test x$ac_rtl_checking != x ; then
7661
7662 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7663
7664 fi
7665 if test x$ac_rtlflag_checking != x ; then
7666
7667 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7668
7669 fi
7670 if test x$ac_gc_checking != x ; then
7671
7672 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7673
7674 fi
7675 if test x$ac_gc_always_collect != x ; then
7676
7677 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7678
7679 fi
7680 if test x$ac_fold_checking != x ; then
7681
7682 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7683
7684 fi
7685 valgrind_path_defines=
7686 valgrind_command=
7687 if test x$ac_valgrind_checking != x ; then
7688
7689 # Prepare PATH_SEPARATOR.
7690 # The user is always right.
7691 if test "${PATH_SEPARATOR+set}" != set; then
7692 echo "#! /bin/sh" >conf$$.sh
7693 echo "exit 0" >>conf$$.sh
7694 chmod +x conf$$.sh
7695 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7696 PATH_SEPARATOR=';'
7697 else
7698 PATH_SEPARATOR=:
7699 fi
7700 rm -f conf$$.sh
7701 fi
7702
7703 # Find out how to test for executable files. Don't use a zero-byte file,
7704 # as systems may use methods other than mode bits to determine executability.
7705 cat >conf$$.file <<_ASEOF
7706 #! /bin/sh
7707 exit 0
7708 _ASEOF
7709 chmod +x conf$$.file
7710 if test -x conf$$.file >/dev/null 2>&1; then
7711 ac_executable_p="test -x"
7712 else
7713 ac_executable_p="test -f"
7714 fi
7715 rm -f conf$$.file
7716
7717 # Extract the first word of "valgrind", so it can be a program name with args.
7718 set dummy valgrind; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_path_valgrind_path+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 case "$valgrind_path" in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7727 ;;
7728 *)
7729 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7730 for ac_dir in $PATH; do
7731 IFS="$ac_save_IFS"
7732 test -z "$ac_dir" && ac_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7735 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7736 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7737 break 2
7738 fi
7739 fi
7740 done
7741 done
7742 IFS="$ac_save_IFS"
7743 ;;
7744 esac
7745 fi
7746 valgrind_path="$ac_cv_path_valgrind_path"
7747 if test -n "$valgrind_path"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7749 $as_echo "$valgrind_path" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755 if test "x$valgrind_path" = "x"; then
7756 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7757 fi
7758 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7759 valgrind_command="$valgrind_path -q"
7760
7761 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7762
7763 fi
7764
7765
7766
7767 # Enable code coverage collection
7768 # Check whether --enable-coverage was given.
7769 if test "${enable_coverage+set}" = set; then :
7770 enableval=$enable_coverage; case "${enableval}" in
7771 yes|noopt)
7772 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7773 ;;
7774 opt)
7775 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7776 ;;
7777 no)
7778 # a.k.a. --disable-coverage
7779 coverage_flags=""
7780 ;;
7781 *)
7782 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7783 ;;
7784 esac
7785 else
7786 coverage_flags=""
7787 fi
7788
7789
7790
7791 # Check whether --enable-gather-detailed-mem-stats was given.
7792 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7793 enableval=$enable_gather_detailed_mem_stats;
7794 else
7795 enable_gather_detailed_mem_stats=no
7796 fi
7797
7798 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define GATHER_STATISTICS $gather_stats
7802 _ACEOF
7803
7804
7805 # Check whether --enable-valgrind-annotations was given.
7806 if test "${enable_valgrind_annotations+set}" = set; then :
7807 enableval=$enable_valgrind_annotations;
7808 else
7809 enable_valgrind_annotations=no
7810 fi
7811
7812 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7813 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7814
7815 fi
7816
7817
7818 if test x$enable_valgrind_annotations != xno \
7819 || test x$ac_valgrind_checking != x; then
7820 if test $ac_cv_header_valgrind_memcheck_h = no; then
7821 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7822 fi
7823
7824 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7825
7826 fi
7827
7828 # -------------------------------
7829 # Miscenalleous configure options
7830 # -------------------------------
7831
7832 # Determine whether or not multilibs are enabled.
7833 # Check whether --enable-multilib was given.
7834 if test "${enable_multilib+set}" = set; then :
7835 enableval=$enable_multilib;
7836 else
7837 enable_multilib=yes
7838 fi
7839
7840
7841
7842 # Determine whether or not multiarch is enabled.
7843 # Check whether --enable-multiarch was given.
7844 if test "${enable_multiarch+set}" = set; then :
7845 enableval=$enable_multiarch; case "${enableval}" in
7846 yes|no|auto) enable_multiarch=$enableval;;
7847 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7848 esac
7849 else
7850 enable_multiarch=auto
7851 fi
7852
7853 if test x${enable_multiarch} = xauto; then
7854 if test x${with_native_system_header_dir} != x; then
7855 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7856 enable_multiarch=no
7857 fi
7858 if test x$host != x$target && test "x$with_sysroot" = x; then
7859 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7860 enable_multiarch=no
7861 fi
7862 fi
7863 if test x${enable_multiarch} = xyes; then
7864
7865 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7866
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7869 $as_echo_n "checking for multiarch configuration... " >&6; }
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7872 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7873
7874 # needed for setting the multiarch name for soft-float/hard-float ABIs
7875
7876
7877
7878 # default stack clash protection guard size as power of twos in bytes.
7879 # Please keep these in sync with params.def.
7880 stk_clash_min=12
7881 stk_clash_max=30
7882
7883 # Keep the default value when the option is not used to 0, this allows us to
7884 # distinguish between the cases where the user specifially set a value via
7885 # configure and when the normal default value is used.
7886
7887 # Check whether --with-stack-clash-protection-guard-size was given.
7888 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7889 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7890 else
7891 DEFAULT_STK_CLASH_GUARD_SIZE=0
7892 fi
7893
7894 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7895 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7896 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7897 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
7898 fi
7899
7900
7901 cat >>confdefs.h <<_ACEOF
7902 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7903 _ACEOF
7904
7905
7906 # Specify the number of splits of match.pd to generate.
7907
7908 # Check whether --with-matchpd-partitions was given.
7909 if test "${with_matchpd_partitions+set}" = set; then :
7910 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7911 else
7912 DEFAULT_MATCHPD_PARTITIONS=10
7913 fi
7914
7915 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7916 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7917 fi
7918
7919
7920
7921 # Specify the number of splits of insn-emit.cc to generate.
7922
7923 # Check whether --with-insnemit-partitions was given.
7924 if test "${with_insnemit_partitions+set}" = set; then :
7925 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7926 else
7927 DEFAULT_INSNEMIT_PARTITIONS=10
7928 fi
7929
7930 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7931 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7932 fi
7933
7934
7935
7936 # Enable __cxa_atexit for C++.
7937 # Check whether --enable-__cxa_atexit was given.
7938 if test "${enable___cxa_atexit+set}" = set; then :
7939 enableval=$enable___cxa_atexit;
7940 fi
7941
7942
7943 # Enable C extension for decimal float if target supports it.
7944
7945 # Check whether --enable-decimal-float was given.
7946 if test "${enable_decimal_float+set}" = set; then :
7947 enableval=$enable_decimal_float;
7948 case $enable_decimal_float in
7949 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7950 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7951 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7952 esac
7953
7954 else
7955
7956 case $target in
7957 aarch64* | \
7958 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7959 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7960 i?86*-*-mingw* | x86_64*-*-mingw* | \
7961 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7962 enable_decimal_float=yes
7963 ;;
7964 *)
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7966 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7967 enable_decimal_float=no
7968 ;;
7969 esac
7970
7971 fi
7972
7973
7974 # x86's use BID format instead of DPD
7975 case x$enable_decimal_float in
7976 xyes)
7977 case $target in
7978 aarch64* | i?86*-*-* | x86_64*-*-*)
7979 enable_decimal_float=bid
7980 ;;
7981 *)
7982 enable_decimal_float=dpd
7983 ;;
7984 esac
7985 default_decimal_float=$enable_decimal_float
7986 ;;
7987 xno)
7988 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7989 # dependency on libdecnumber.
7990 default_decimal_float=dpd
7991 ;;
7992 esac
7993
7994
7995
7996
7997 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7998
7999 cat >>confdefs.h <<_ACEOF
8000 #define ENABLE_DECIMAL_FLOAT $dfp
8001 _ACEOF
8002
8003
8004 # Use default_decimal_float for dependency.
8005 enable_decimal_float=$default_decimal_float
8006
8007 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8008
8009 cat >>confdefs.h <<_ACEOF
8010 #define ENABLE_DECIMAL_BID_FORMAT $bid
8011 _ACEOF
8012
8013
8014 # Enable C extension for fixed-point arithmetic.
8015 # Check whether --enable-fixed-point was given.
8016 if test "${enable_fixed_point+set}" = set; then :
8017 enableval=$enable_fixed_point;
8018 else
8019
8020 case $target in
8021 arm*)
8022 enable_fixed_point=yes
8023 ;;
8024
8025 mips*-*-*)
8026 enable_fixed_point=yes
8027 ;;
8028 loongarch*-*-*)
8029 enable_fixed_point=yes
8030 ;;
8031 *)
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8033 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8034 enable_fixed_point=no
8035 ;;
8036 esac
8037
8038 fi
8039
8040
8041
8042 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8043
8044 cat >>confdefs.h <<_ACEOF
8045 #define ENABLE_FIXED_POINT $fixedpoint
8046 _ACEOF
8047
8048
8049 # Enable threads
8050 # Pass with no value to take the default
8051 # Pass with a value to specify a thread package
8052 # Check whether --enable-threads was given.
8053 if test "${enable_threads+set}" = set; then :
8054 enableval=$enable_threads;
8055 else
8056 enable_threads=''
8057 fi
8058
8059
8060 # Check whether --enable-tls was given.
8061 if test "${enable_tls+set}" = set; then :
8062 enableval=$enable_tls;
8063 case $enable_tls in
8064 yes | no) ;;
8065 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8066 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8067 esac
8068
8069 else
8070 enable_tls=''
8071 fi
8072
8073
8074 # Check whether --enable-vtable-verify was given.
8075 if test "${enable_vtable_verify+set}" = set; then :
8076 enableval=$enable_vtable_verify;
8077 else
8078 enable_vtable_verify=no
8079 fi
8080
8081 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8082
8083 cat >>confdefs.h <<_ACEOF
8084 #define ENABLE_VTABLE_VERIFY $vtable_verify
8085 _ACEOF
8086
8087
8088 # Check whether --enable-analyzer was given.
8089 if test "${enable_analyzer+set}" = set; then :
8090 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8091 analyzer=0
8092 else
8093 analyzer=1
8094 fi
8095 else
8096 analyzer=1
8097 fi
8098
8099
8100 cat >>confdefs.h <<_ACEOF
8101 #define ENABLE_ANALYZER $analyzer
8102 _ACEOF
8103
8104
8105 # Check whether --enable-objc-gc was given.
8106 if test "${enable_objc_gc+set}" = set; then :
8107 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8108 objc_boehm_gc=''
8109 else
8110 objc_boehm_gc=1
8111 fi
8112 else
8113 objc_boehm_gc=''
8114 fi
8115
8116
8117
8118 # Check whether --with-dwarf2 was given.
8119 if test "${with_dwarf2+set}" = set; then :
8120 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8121 else
8122 dwarf2=no
8123 fi
8124
8125
8126 # Check whether --enable-shared was given.
8127 if test "${enable_shared+set}" = set; then :
8128 enableval=$enable_shared;
8129 case $enable_shared in
8130 yes | no) ;;
8131 *)
8132 enable_shared=no
8133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8134 for pkg in $enableval; do
8135 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8136 enable_shared=yes
8137 fi
8138 done
8139 IFS="$ac_save_ifs"
8140 ;;
8141 esac
8142
8143 else
8144 enable_shared=yes
8145 fi
8146
8147
8148
8149 # Check whether --enable-gcov was given.
8150 if test "${enable_gcov+set}" = set; then :
8151 enableval=$enable_gcov;
8152 else
8153 case $target in
8154 bpf-*-*)
8155 enable_gcov=no
8156 ;;
8157 *)
8158 enable_gcov=yes
8159 ;;
8160 esac
8161 fi
8162
8163
8164
8165
8166
8167 # Check whether --with-specs was given.
8168 if test "${with_specs+set}" = set; then :
8169 withval=$with_specs; CONFIGURE_SPECS=$withval
8170 else
8171 CONFIGURE_SPECS=
8172
8173 fi
8174
8175
8176
8177
8178
8179 # Check whether --with-pkgversion was given.
8180 if test "${with_pkgversion+set}" = set; then :
8181 withval=$with_pkgversion; case "$withval" in
8182 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8183 no) PKGVERSION= ;;
8184 *) PKGVERSION="($withval) " ;;
8185 esac
8186 else
8187 PKGVERSION="(GCC) "
8188
8189 fi
8190
8191
8192
8193
8194
8195 # Check whether --with-bugurl was given.
8196 if test "${with_bugurl+set}" = set; then :
8197 withval=$with_bugurl; case "$withval" in
8198 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8199 no) BUGURL=
8200 ;;
8201 *) BUGURL="$withval"
8202 ;;
8203 esac
8204 else
8205 BUGURL="https://gcc.gnu.org/bugs/"
8206
8207 fi
8208
8209 case ${BUGURL} in
8210 "")
8211 REPORT_BUGS_TO=
8212 REPORT_BUGS_TEXI=
8213 ;;
8214 *)
8215 REPORT_BUGS_TO="<$BUGURL>"
8216 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8217 ;;
8218 esac;
8219
8220
8221
8222
8223 # Allow overriding the default URL for documentation
8224
8225 # Check whether --with-documentation-root-url was given.
8226 if test "${with_documentation_root_url+set}" = set; then :
8227 withval=$with_documentation_root_url; case "$withval" in
8228 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8229 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8230 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8231 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8232 esac
8233 else
8234
8235 docroot_url_suffix=
8236 case "$gcc_version" in
8237 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8238 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8239 esac
8240 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8241
8242 fi
8243
8244
8245 cat >>confdefs.h <<_ACEOF
8246 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8247 _ACEOF
8248
8249
8250 # Allow overriding the default URL for GCC changes
8251
8252 # Check whether --with-changes-root-url was given.
8253 if test "${with_changes_root_url+set}" = set; then :
8254 withval=$with_changes_root_url; case "$withval" in
8255 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8256 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8257 */) CHANGES_ROOT_URL="$withval" ;;
8258 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8259 esac
8260 else
8261 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8262
8263 fi
8264
8265
8266 cat >>confdefs.h <<_ACEOF
8267 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8268 _ACEOF
8269
8270
8271 # Sanity check enable_languages in case someone does not run the toplevel
8272 # configure # script.
8273 # Check whether --enable-languages was given.
8274 if test "${enable_languages+set}" = set; then :
8275 enableval=$enable_languages; case ,${enable_languages}, in
8276 ,,|,yes,)
8277 # go safe -- we cannot be much sure without the toplevel
8278 # configure's
8279 # analysis of which target libs are present and usable
8280 enable_languages=c
8281 ;;
8282 *,all,*)
8283 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8284 ;;
8285 *,c,*)
8286 ;;
8287 *)
8288 enable_languages=c,${enable_languages}
8289 ;;
8290 esac
8291 else
8292 enable_languages=c
8293 fi
8294
8295
8296 # If top-level libada has been disabled, then wire in install-gnatlib
8297 # invocation with `make install', so that one can build and install
8298 # the library manually with `make -C gcc all gnatlib gnattools install'.
8299 if test x"$enable_libada" = xno; then
8300 gnat_install_lib=gnat-install-lib
8301 else
8302 gnat_install_lib=
8303 fi
8304
8305
8306 if test x"$enable_as_accelerator_for" != x; then
8307
8308 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8309
8310 enable_as_accelerator=yes
8311 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8312 program_transform_name=`echo $program_transform_name | sed $sedscript`
8313 accel_dir_suffix=/accel/${target_noncanonical}
8314 real_target_noncanonical=${enable_as_accelerator_for}
8315 fi
8316
8317
8318
8319
8320 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8321 tgt=`echo $tgt | sed 's/=.*//'`
8322
8323 enable_offloading=1
8324 case "$tgt" in
8325 amdgcn*)
8326 omp_device_property=omp-device-properties-gcn
8327 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8328 ;;
8329 nvptx*)
8330 omp_device_property=omp-device-properties-nvptx
8331 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8332 ;;
8333 *)
8334 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8335 ;;
8336 esac
8337 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8338 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8339
8340 if test x"$offload_targets" = x; then
8341 offload_targets=$tgt
8342 else
8343 offload_targets="$offload_targets,$tgt"
8344 fi
8345 done
8346
8347
8348
8349
8350 cat >>confdefs.h <<_ACEOF
8351 #define OFFLOAD_TARGETS "$offload_targets"
8352 _ACEOF
8353
8354 if test x"$enable_offloading" != x; then
8355
8356 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8357
8358 else
8359
8360 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8361
8362 fi
8363
8364 if test "x$enable_offload_defaulted" = xyes; then
8365
8366 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8367
8368 fi
8369
8370
8371 # Check whether --with-multilib-list was given.
8372 if test "${with_multilib_list+set}" = set; then :
8373 withval=$with_multilib_list; :
8374 else
8375 with_multilib_list=default
8376 fi
8377
8378
8379
8380 # Check whether --with-multilib-generator was given.
8381 if test "${with_multilib_generator+set}" = set; then :
8382 withval=$with_multilib_generator; :
8383 else
8384 with_multilib_generator=default
8385 fi
8386
8387
8388 # -------------------------
8389 # Checks for other programs
8390 # -------------------------
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8393 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8394 set x ${MAKE-make}
8395 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8396 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat >conftest.make <<\_ACEOF
8400 SHELL = /bin/sh
8401 all:
8402 @echo '@@@%%%=$(MAKE)=@@@%%%'
8403 _ACEOF
8404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8405 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8406 *@@@%%%=?*=@@@%%%*)
8407 eval ac_cv_prog_make_${ac_make}_set=yes;;
8408 *)
8409 eval ac_cv_prog_make_${ac_make}_set=no;;
8410 esac
8411 rm -f conftest.make
8412 fi
8413 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8416 SET_MAKE=
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 SET_MAKE="MAKE=${MAKE-make}"
8421 fi
8422
8423
8424 # Find some useful tools
8425 for ac_prog in gawk mawk nawk awk
8426 do
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428 set dummy $ac_prog; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_AWK+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$AWK"; then
8435 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_AWK="$ac_prog"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 AWK=$ac_cv_prog_AWK
8455 if test -n "$AWK"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8457 $as_echo "$AWK" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464 test -n "$AWK" && break
8465 done
8466
8467 # We need awk to create options.cc and options.h.
8468 # Bail out if it's missing.
8469 case ${AWK} in
8470 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8474 $as_echo_n "checking whether ln -s works... " >&6; }
8475 if ${gcc_cv_prog_LN_S+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 rm -f conftestdata_t
8479 echo >conftestdata_f
8480 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8481 then
8482 gcc_cv_prog_LN_S="ln -s"
8483 else
8484 if ln conftestdata_f conftestdata_t 2>/dev/null
8485 then
8486 gcc_cv_prog_LN_S=ln
8487 else
8488 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8489 then
8490 gcc_cv_prog_LN_S="cp -p"
8491 else
8492 gcc_cv_prog_LN_S=cp
8493 fi
8494 fi
8495 fi
8496 rm -f conftestdata_f conftestdata_t
8497
8498 fi
8499 LN_S="$gcc_cv_prog_LN_S"
8500 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8502 $as_echo "yes" >&6; }
8503 else
8504 if test "$gcc_cv_prog_LN_S" = "ln"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8506 $as_echo "no, using ln" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8509 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8510 fi
8511 fi
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8514 $as_echo_n "checking whether ln works... " >&6; }
8515 if ${acx_cv_prog_LN+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 rm -f conftestdata_t
8519 echo >conftestdata_f
8520 if ln conftestdata_f conftestdata_t 2>/dev/null
8521 then
8522 acx_cv_prog_LN=ln
8523 else
8524 acx_cv_prog_LN=no
8525 fi
8526 rm -f conftestdata_f conftestdata_t
8527
8528 fi
8529 if test $acx_cv_prog_LN = no; then
8530 LN="$LN_S"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8532 $as_echo "no, using $LN" >&6; }
8533 else
8534 LN="$acx_cv_prog_LN"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536 $as_echo "yes" >&6; }
8537 fi
8538
8539 if test -n "$ac_tool_prefix"; then
8540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8541 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_RANLIB+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$RANLIB"; then
8548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi
8566 fi
8567 RANLIB=$ac_cv_prog_RANLIB
8568 if test -n "$RANLIB"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8570 $as_echo "$RANLIB" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576
8577 fi
8578 if test -z "$ac_cv_prog_RANLIB"; then
8579 ac_ct_RANLIB=$RANLIB
8580 # Extract the first word of "ranlib", so it can be a program name with args.
8581 set dummy ranlib; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$ac_ct_RANLIB"; then
8588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_ac_ct_RANLIB="ranlib"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8608 if test -n "$ac_ct_RANLIB"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8610 $as_echo "$ac_ct_RANLIB" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616 if test "x$ac_ct_RANLIB" = x; then
8617 RANLIB=":"
8618 else
8619 case $cross_compiling:$ac_tool_warned in
8620 yes:)
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned=yes ;;
8624 esac
8625 RANLIB=$ac_ct_RANLIB
8626 fi
8627 else
8628 RANLIB="$ac_cv_prog_RANLIB"
8629 fi
8630
8631 ranlib_flags=""
8632
8633
8634 # Find a good install program. We prefer a C program (faster),
8635 # so one script is as good as another. But avoid the broken or
8636 # incompatible versions:
8637 # SysV /etc/install, /usr/sbin/install
8638 # SunOS /usr/etc/install
8639 # IRIX /sbin/install
8640 # AIX /bin/install
8641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8643 # ./install, which can be erroneously created by make from ./install.sh.
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8645 $as_echo_n "checking for a BSD compatible install... " >&6; }
8646 if test -z "$INSTALL"; then
8647 if ${ac_cv_path_install+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8651 for ac_dir in $PATH; do
8652 # Account for people who put trailing slashes in PATH elements.
8653 case "$ac_dir/" in
8654 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8655 *)
8656 # OSF1 and SCO ODT 3.0 have their own names for install.
8657 for ac_prog in ginstall scoinst install; do
8658 if test -f $ac_dir/$ac_prog; then
8659 if test $ac_prog = install &&
8660 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8661 # AIX install. It has an incompatible calling convention.
8662 # OSF/1 installbsd also uses dspmsg, but is usable.
8663 :
8664 else
8665 ac_cv_path_install="$ac_dir/$ac_prog -c"
8666 break 2
8667 fi
8668 fi
8669 done
8670 ;;
8671 esac
8672 done
8673 IFS="$ac_save_IFS"
8674
8675 fi
8676 if test "${ac_cv_path_install+set}" = set; then
8677 INSTALL="$ac_cv_path_install"
8678 else
8679 # As a last resort, use the slow shell script. We don't cache a
8680 # path for INSTALL within a source directory, because that will
8681 # break other packages using the cache if that directory is
8682 # removed, or if the path is relative.
8683 INSTALL="$ac_install_sh"
8684 fi
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8687 $as_echo "$INSTALL" >&6; }
8688
8689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8690 # It thinks the first close brace ends the variable substitution.
8691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8692
8693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8694
8695
8696 # See if cmp has --ignore-initial.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8698 $as_echo_n "checking for cmp's capabilities... " >&6; }
8699 if ${gcc_cv_prog_cmp_skip+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 echo abfoo >t1
8703 echo cdfoo >t2
8704 gcc_cv_prog_cmp_skip=slowcompare
8705 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8706 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8707 :
8708 else
8709 gcc_cv_prog_cmp_skip=gnucompare
8710 fi
8711 fi
8712 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8713 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8714 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8715 :
8716 else
8717 gcc_cv_prog_cmp_skip=fastcompare
8718 fi
8719 fi
8720 fi
8721 rm t1 t2
8722
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8725 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8726 make_compare_target=$gcc_cv_prog_cmp_skip
8727
8728
8729
8730 # See if we have the mktemp command.
8731 # Extract the first word of "mktemp", so it can be a program name with args.
8732 set dummy mktemp; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 if test -n "$have_mktemp_command"; then
8739 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_have_mktemp_command="yes"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8757 fi
8758 fi
8759 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8760 if test -n "$have_mktemp_command"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8762 $as_echo "$have_mktemp_command" >&6; }
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769
8770 # See if makeinfo has been installed and is modern enough
8771 # that we can use it.
8772
8773 # Extract the first word of "makeinfo", so it can be a program name with args.
8774 set dummy makeinfo; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_MAKEINFO+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 if test -n "$MAKEINFO"; then
8781 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_MAKEINFO="makeinfo"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796 IFS=$as_save_IFS
8797
8798 fi
8799 fi
8800 MAKEINFO=$ac_cv_prog_MAKEINFO
8801 if test -n "$MAKEINFO"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8803 $as_echo "$MAKEINFO" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807 fi
8808
8809
8810 if test -n "$MAKEINFO"; then
8811 # Found it, now check the version.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8813 $as_echo_n "checking for modern makeinfo... " >&6; }
8814 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8818 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8819
8820 case $ac_prog_version in
8821 '') gcc_cv_prog_makeinfo_modern=no;;
8822 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8823 *) gcc_cv_prog_makeinfo_modern=no;;
8824 esac
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8828 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8829 else
8830 gcc_cv_prog_makeinfo_modern=no
8831 fi
8832 if test $gcc_cv_prog_makeinfo_modern = no; then
8833 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8834 fi
8835
8836 if test $gcc_cv_prog_makeinfo_modern = no; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8838 *** Makeinfo is missing or too old.
8839 *** Info documentation will not be built." >&5
8840 $as_echo "$as_me: WARNING:
8841 *** Makeinfo is missing or too old.
8842 *** Info documentation will not be built." >&2;}
8843 BUILD_INFO=no-info
8844 else
8845 BUILD_INFO=info
8846 fi
8847
8848
8849 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8850 # If it does, we want to pass it to makeinfo in order to restore the old
8851 # behavior of @{summary,}contents placement.
8852 MAKEINFO_TOC_INLINE_FLAG=
8853 if test x"$MAKEINFO" != x; then :
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8856 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8857 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860
8861 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8862 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8863 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8864 gcc_cv_texi_add_toc_inline_flags=no
8865 else
8866 gcc_cv_texi_add_toc_inline_flags=yes
8867 fi
8868
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8871 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8872 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8873 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8874 fi
8875
8876 fi
8877
8878
8879 # Is pod2man recent enough to regenerate manpages?
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8881 $as_echo_n "checking for recent Pod::Man... " >&6; }
8882 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8884 $as_echo "yes" >&6; }
8885 GENERATED_MANPAGES=generated-manpages
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 GENERATED_MANPAGES=
8890 fi
8891
8892
8893 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8894
8895 # How about lex?
8896 for ac_prog in flex
8897 do
8898 # Extract the first word of "$ac_prog", so it can be a program name with args.
8899 set dummy $ac_prog; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_FLEX+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 if test -n "$FLEX"; then
8906 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_FLEX="$ac_prog"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 FLEX=$ac_cv_prog_FLEX
8926 if test -n "$FLEX"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8928 $as_echo "$FLEX" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934
8935 test -n "$FLEX" && break
8936 done
8937 test -n "$FLEX" || FLEX="$MISSING flex"
8938
8939
8940 # Bison?
8941 for ac_prog in bison
8942 do
8943 # Extract the first word of "$ac_prog", so it can be a program name with args.
8944 set dummy $ac_prog; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_prog_BISON+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 if test -n "$BISON"; then
8951 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8955 do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_BISON="$ac_prog"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi
8969 fi
8970 BISON=$ac_cv_prog_BISON
8971 if test -n "$BISON"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8973 $as_echo "$BISON" >&6; }
8974 else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8977 fi
8978
8979
8980 test -n "$BISON" && break
8981 done
8982 test -n "$BISON" || BISON="$MISSING bison"
8983
8984
8985 # Python3?
8986
8987 # Extract the first word of "python3", so it can be a program name with args.
8988 set dummy python3; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_PYTHON+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test -n "$PYTHON"; then
8995 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_PYTHON="python3"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008 done
9009 done
9010 IFS=$as_save_IFS
9011
9012 fi
9013 fi
9014 PYTHON=$ac_cv_prog_PYTHON
9015 if test -n "$PYTHON"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9017 $as_echo "$PYTHON" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022
9023
9024 if test -n "$PYTHON"; then
9025 # Found it, now check the version.
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9027 $as_echo_n "checking for modern python3... " >&6; }
9028 if ${gcc_cv_prog_python3_modern+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 ac_prog_version=`eval $PYTHON --version 2>&1 |
9032 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9033
9034 case $ac_prog_version in
9035 '') gcc_cv_prog_python3_modern=no;;
9036 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9037 *) gcc_cv_prog_python3_modern=no;;
9038 esac
9039
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9042 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9043 else
9044 gcc_cv_prog_python3_modern=no
9045 fi
9046 if test $gcc_cv_prog_python3_modern = no; then
9047 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9048 fi
9049
9050 if test $gcc_cv_prog_python3_modern = no; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9052 *** Python3 is missing.
9053 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9054 $as_echo "$as_me: WARNING:
9055 *** Python3 is missing.
9056 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9057 HAVE_PYTHON=no
9058 else
9059 HAVE_PYTHON=yes
9060 fi
9061
9062
9063 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9064 # check for build == host before using them.
9065
9066 # NM
9067 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9068 && test -d ../binutils ; then
9069 NM='${objdir}/../binutils/nm-new'
9070 else
9071 # Extract the first word of "nm", so it can be a program name with args.
9072 set dummy nm; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_prog_NM+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 if test -n "$NM"; then
9079 ac_cv_prog_NM="$NM" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_NM="nm"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092 done
9093 done
9094 IFS=$as_save_IFS
9095
9096 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9097 fi
9098 fi
9099 NM=$ac_cv_prog_NM
9100 if test -n "$NM"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9102 $as_echo "$NM" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 fi
9107
9108
9109 fi
9110
9111 # AR
9112 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9113 && test -d ../binutils ; then
9114 AR='${objdir}/../binutils/ar'
9115 else
9116 # Extract the first word of "ar", so it can be a program name with args.
9117 set dummy ar; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_AR+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 if test -n "$AR"; then
9124 ac_cv_prog_AR="$AR" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_AR="ar"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137 done
9138 done
9139 IFS=$as_save_IFS
9140
9141 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9142 fi
9143 fi
9144 AR=$ac_cv_prog_AR
9145 if test -n "$AR"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9147 $as_echo "$AR" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152
9153
9154 fi
9155
9156 # The jit documentation looks better if built with sphinx, but can be
9157 # built with texinfo if sphinx is not available.
9158 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9159 # Extract the first word of "sphinx-build", so it can be a program name with args.
9160 set dummy sphinx-build; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_doc_build_sys+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$doc_build_sys"; then
9167 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_doc_build_sys="sphinx"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180 done
9181 done
9182 IFS=$as_save_IFS
9183
9184 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9185 fi
9186 fi
9187 doc_build_sys=$ac_cv_prog_doc_build_sys
9188 if test -n "$doc_build_sys"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9190 $as_echo "$doc_build_sys" >&6; }
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9194 fi
9195
9196
9197
9198 # --------------------
9199 # Checks for C headers
9200 # --------------------
9201
9202 # Need to reject headers which give warnings, so that the -Werror bootstrap
9203 # works later. *sigh* This needs to come before all header checks.
9204
9205 ac_c_preproc_warn_flag=yes
9206
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9208 $as_echo_n "checking for ANSI C header files... " >&6; }
9209 if ${ac_cv_header_stdc+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <stdlib.h>
9215 #include <stdarg.h>
9216 #include <string.h>
9217 #include <float.h>
9218
9219 int
9220 main ()
9221 {
9222
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_cxx_try_compile "$LINENO"; then :
9228 ac_cv_header_stdc=yes
9229 else
9230 ac_cv_header_stdc=no
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233
9234 if test $ac_cv_header_stdc = yes; then
9235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include <string.h>
9239
9240 _ACEOF
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "memchr" >/dev/null 2>&1; then :
9243
9244 else
9245 ac_cv_header_stdc=no
9246 fi
9247 rm -f conftest*
9248
9249 fi
9250
9251 if test $ac_cv_header_stdc = yes; then
9252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <stdlib.h>
9256
9257 _ACEOF
9258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9259 $EGREP "free" >/dev/null 2>&1; then :
9260
9261 else
9262 ac_cv_header_stdc=no
9263 fi
9264 rm -f conftest*
9265
9266 fi
9267
9268 if test $ac_cv_header_stdc = yes; then
9269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9270 if test "$cross_compiling" = yes; then :
9271 :
9272 else
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 #include <ctype.h>
9276 #include <stdlib.h>
9277 #if ((' ' & 0x0FF) == 0x020)
9278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9280 #else
9281 # define ISLOWER(c) \
9282 (('a' <= (c) && (c) <= 'i') \
9283 || ('j' <= (c) && (c) <= 'r') \
9284 || ('s' <= (c) && (c) <= 'z'))
9285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9286 #endif
9287
9288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9289 int
9290 main ()
9291 {
9292 int i;
9293 for (i = 0; i < 256; i++)
9294 if (XOR (islower (i), ISLOWER (i))
9295 || toupper (i) != TOUPPER (i))
9296 return 2;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_cxx_try_run "$LINENO"; then :
9301
9302 else
9303 ac_cv_header_stdc=no
9304 fi
9305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9306 conftest.$ac_objext conftest.beam conftest.$ac_ext
9307 fi
9308
9309 fi
9310 fi
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9312 $as_echo "$ac_cv_header_stdc" >&6; }
9313 if test $ac_cv_header_stdc = yes; then
9314
9315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9316
9317 fi
9318
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9320 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9321 if ${ac_cv_header_time+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <sys/types.h>
9327 #include <sys/time.h>
9328 #include <time.h>
9329
9330 int
9331 main ()
9332 {
9333 if ((struct tm *) 0)
9334 return 0;
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 if ac_fn_cxx_try_compile "$LINENO"; then :
9340 ac_cv_header_time=yes
9341 else
9342 ac_cv_header_time=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9347 $as_echo "$ac_cv_header_time" >&6; }
9348 if test $ac_cv_header_time = yes; then
9349
9350 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9351
9352 fi
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9355 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9356 if ${gcc_cv_header_string+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 #include <string.h>
9362 #include <strings.h>
9363 int
9364 main ()
9365 {
9366
9367 ;
9368 return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_cxx_try_compile "$LINENO"; then :
9372 gcc_cv_header_string=yes
9373 else
9374 gcc_cv_header_string=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9379 $as_echo "$gcc_cv_header_string" >&6; }
9380 if test $gcc_cv_header_string = yes; then
9381
9382 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9383
9384 fi
9385
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9387 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9388 if ${ac_cv_header_sys_wait_h+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <sys/wait.h>
9395 #ifndef WEXITSTATUS
9396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9397 #endif
9398 #ifndef WIFEXITED
9399 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9400 #endif
9401
9402 int
9403 main ()
9404 {
9405 int s;
9406 wait (&s);
9407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_cxx_try_compile "$LINENO"; then :
9413 ac_cv_header_sys_wait_h=yes
9414 else
9415 ac_cv_header_sys_wait_h=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9420 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9421 if test $ac_cv_header_sys_wait_h = yes; then
9422
9423 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9424
9425 fi
9426
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9428 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9429 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <termios.h>
9436 #ifdef TIOCGWINSZ
9437 yes
9438 #endif
9439
9440 _ACEOF
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "yes" >/dev/null 2>&1; then :
9443 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9444 else
9445 ac_cv_sys_tiocgwinsz_in_termios_h=no
9446 fi
9447 rm -f conftest*
9448
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9451 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9452
9453 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9455 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9456 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <sys/types.h>
9462 #include <sys/ioctl.h>
9463 #ifdef TIOCGWINSZ
9464 yes
9465 #endif
9466
9467 _ACEOF
9468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9469 $EGREP "yes" >/dev/null 2>&1; then :
9470 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9471 else
9472 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9473 fi
9474 rm -f conftest*
9475
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9478 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9479
9480 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9481
9482 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9483
9484 fi
9485 fi
9486
9487 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9488 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9489 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9490 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9491 do :
9492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9495 cat >>confdefs.h <<_ACEOF
9496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9497 _ACEOF
9498
9499 fi
9500 done
9501
9502
9503 # Check for thread headers.
9504 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9505 if test "x$ac_cv_header_thread_h" = xyes; then :
9506 have_thread_h=yes
9507 else
9508 have_thread_h=
9509 fi
9510
9511 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9512 if test "x$ac_cv_header_pthread_h" = xyes; then :
9513 have_pthread_h=yes
9514 else
9515 have_pthread_h=
9516 fi
9517
9518
9519 # These tests can't be done till we know if we have limits.h.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9521 $as_echo_n "checking for CHAR_BIT... " >&6; }
9522 if ${gcc_cv_decl_char_bit+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 #ifdef HAVE_LIMITS_H
9528 #include <limits.h>
9529 #endif
9530 #ifdef CHAR_BIT
9531 found
9532 #endif
9533 _ACEOF
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "found" >/dev/null 2>&1; then :
9536 gcc_cv_decl_char_bit=yes
9537 else
9538 gcc_cv_decl_char_bit=no
9539 fi
9540 rm -f conftest*
9541
9542
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9545 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9546 if test $gcc_cv_decl_char_bit = no; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9548 $as_echo_n "checking number of bits in a byte... " >&6; }
9549 if ${gcc_cv_c_nbby+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 i=8
9553 gcc_cv_c_nbby=
9554 while test $i -lt 65; do
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 int
9559 main ()
9560 {
9561 switch(0) {
9562 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9563 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9564 ; }
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_cxx_try_compile "$LINENO"; then :
9570 gcc_cv_c_nbby=$i; break
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 i=`expr $i + 1`
9574 done
9575 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9576
9577 fi
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9579 $as_echo "$gcc_cv_c_nbby" >&6; }
9580 if test $gcc_cv_c_nbby = failed; then
9581 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9582 else
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define CHAR_BIT $gcc_cv_c_nbby
9586 _ACEOF
9587
9588 fi
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9591 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9592 if ${ac_cv_c_bigendian+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 ac_cv_c_bigendian=unknown
9596 # See if we're dealing with a universal compiler.
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #ifndef __APPLE_CC__
9600 not a universal capable compiler
9601 #endif
9602 typedef int dummy;
9603
9604 _ACEOF
9605 if ac_fn_cxx_try_compile "$LINENO"; then :
9606
9607 # Check for potential -arch flags. It is not universal unless
9608 # there are at least two -arch flags with different values.
9609 ac_arch=
9610 ac_prev=
9611 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9612 if test -n "$ac_prev"; then
9613 case $ac_word in
9614 i?86 | x86_64 | ppc | ppc64)
9615 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9616 ac_arch=$ac_word
9617 else
9618 ac_cv_c_bigendian=universal
9619 break
9620 fi
9621 ;;
9622 esac
9623 ac_prev=
9624 elif test "x$ac_word" = "x-arch"; then
9625 ac_prev=arch
9626 fi
9627 done
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 if test $ac_cv_c_bigendian = unknown; then
9631 # See if sys/param.h defines the BYTE_ORDER macro.
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9635 #include <sys/param.h>
9636
9637 int
9638 main ()
9639 {
9640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9642 && LITTLE_ENDIAN)
9643 bogus endian macros
9644 #endif
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_cxx_try_compile "$LINENO"; then :
9651 # It does; now see whether it defined to BIG_ENDIAN or not.
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/param.h>
9656
9657 int
9658 main ()
9659 {
9660 #if BYTE_ORDER != BIG_ENDIAN
9661 not big endian
9662 #endif
9663
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 if ac_fn_cxx_try_compile "$LINENO"; then :
9669 ac_cv_c_bigendian=yes
9670 else
9671 ac_cv_c_bigendian=no
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 if test $ac_cv_c_bigendian = unknown; then
9678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 #include <limits.h>
9682
9683 int
9684 main ()
9685 {
9686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9687 bogus endian macros
9688 #endif
9689
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_cxx_try_compile "$LINENO"; then :
9695 # It does; now see whether it defined to _BIG_ENDIAN or not.
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #include <limits.h>
9699
9700 int
9701 main ()
9702 {
9703 #ifndef _BIG_ENDIAN
9704 not big endian
9705 #endif
9706
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_cxx_try_compile "$LINENO"; then :
9712 ac_cv_c_bigendian=yes
9713 else
9714 ac_cv_c_bigendian=no
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 fi
9720 if test $ac_cv_c_bigendian = unknown; then
9721 # Compile a test program.
9722 if test "$cross_compiling" = yes; then :
9723 # Try to guess by grepping values from an object file.
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 short int ascii_mm[] =
9727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9728 short int ascii_ii[] =
9729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9730 int use_ascii (int i) {
9731 return ascii_mm[i] + ascii_ii[i];
9732 }
9733 short int ebcdic_ii[] =
9734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9735 short int ebcdic_mm[] =
9736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9737 int use_ebcdic (int i) {
9738 return ebcdic_mm[i] + ebcdic_ii[i];
9739 }
9740 extern int foo;
9741
9742 int
9743 main ()
9744 {
9745 return use_ascii (foo) == use_ebcdic (foo);
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_cxx_try_compile "$LINENO"; then :
9751 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9752 ac_cv_c_bigendian=yes
9753 fi
9754 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9755 if test "$ac_cv_c_bigendian" = unknown; then
9756 ac_cv_c_bigendian=no
9757 else
9758 # finding both strings is unlikely to happen, but who knows?
9759 ac_cv_c_bigendian=unknown
9760 fi
9761 fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 int
9769 main ()
9770 {
9771
9772 /* Are we little or big endian? From Harbison&Steele. */
9773 union
9774 {
9775 long int l;
9776 char c[sizeof (long int)];
9777 } u;
9778 u.l = 1;
9779 return u.c[sizeof (long int) - 1] == 1;
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_cxx_try_run "$LINENO"; then :
9786 ac_cv_c_bigendian=no
9787 else
9788 ac_cv_c_bigendian=yes
9789 fi
9790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9791 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 fi
9793
9794 fi
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9797 $as_echo "$ac_cv_c_bigendian" >&6; }
9798 case $ac_cv_c_bigendian in #(
9799 yes)
9800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9801 ;; #(
9802 no)
9803 ;; #(
9804 universal)
9805
9806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9807
9808 ;; #(
9809 *)
9810 as_fn_error $? "unknown endianness
9811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9812 esac
9813
9814
9815 # ----------------------
9816 # Checks for C++ headers
9817 # ----------------------
9818
9819 ac_ext=cpp
9820 ac_cpp='$CXXCPP $CPPFLAGS'
9821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9825 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9826 if test -z "$CXXCPP"; then
9827 if ${ac_cv_prog_CXXCPP+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 # Double quotes because CXXCPP needs to be expanded
9831 for CXXCPP in "$CXX -E" "/lib/cpp"
9832 do
9833 ac_preproc_ok=false
9834 for ac_cxx_preproc_warn_flag in '' yes
9835 do
9836 # Use a header file that comes with gcc, so configuring glibc
9837 # with a fresh cross-compiler works.
9838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 # <limits.h> exists even on freestanding compilers.
9840 # On the NeXT, cc -E runs the code through the compiler's parser,
9841 # not just through cpp. "Syntax error" is here to catch this case.
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 #ifdef __STDC__
9845 # include <limits.h>
9846 #else
9847 # include <assert.h>
9848 #endif
9849 Syntax error
9850 _ACEOF
9851 if ac_fn_cxx_try_cpp "$LINENO"; then :
9852
9853 else
9854 # Broken: fails on valid input.
9855 continue
9856 fi
9857 rm -f conftest.err conftest.i conftest.$ac_ext
9858
9859 # OK, works on sane cases. Now check whether nonexistent headers
9860 # can be detected and how.
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9863 #include <ac_nonexistent.h>
9864 _ACEOF
9865 if ac_fn_cxx_try_cpp "$LINENO"; then :
9866 # Broken: success on invalid input.
9867 continue
9868 else
9869 # Passes both tests.
9870 ac_preproc_ok=:
9871 break
9872 fi
9873 rm -f conftest.err conftest.i conftest.$ac_ext
9874
9875 done
9876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9877 rm -f conftest.i conftest.err conftest.$ac_ext
9878 if $ac_preproc_ok; then :
9879 break
9880 fi
9881
9882 done
9883 ac_cv_prog_CXXCPP=$CXXCPP
9884
9885 fi
9886 CXXCPP=$ac_cv_prog_CXXCPP
9887 else
9888 ac_cv_prog_CXXCPP=$CXXCPP
9889 fi
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9891 $as_echo "$CXXCPP" >&6; }
9892 ac_preproc_ok=false
9893 for ac_cxx_preproc_warn_flag in '' yes
9894 do
9895 # Use a header file that comes with gcc, so configuring glibc
9896 # with a fresh cross-compiler works.
9897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 # <limits.h> exists even on freestanding compilers.
9899 # On the NeXT, cc -E runs the code through the compiler's parser,
9900 # not just through cpp. "Syntax error" is here to catch this case.
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 #ifdef __STDC__
9904 # include <limits.h>
9905 #else
9906 # include <assert.h>
9907 #endif
9908 Syntax error
9909 _ACEOF
9910 if ac_fn_cxx_try_cpp "$LINENO"; then :
9911
9912 else
9913 # Broken: fails on valid input.
9914 continue
9915 fi
9916 rm -f conftest.err conftest.i conftest.$ac_ext
9917
9918 # OK, works on sane cases. Now check whether nonexistent headers
9919 # can be detected and how.
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <ac_nonexistent.h>
9923 _ACEOF
9924 if ac_fn_cxx_try_cpp "$LINENO"; then :
9925 # Broken: success on invalid input.
9926 continue
9927 else
9928 # Passes both tests.
9929 ac_preproc_ok=:
9930 break
9931 fi
9932 rm -f conftest.err conftest.i conftest.$ac_ext
9933
9934 done
9935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9936 rm -f conftest.i conftest.err conftest.$ac_ext
9937 if $ac_preproc_ok; then :
9938
9939 else
9940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9943 See \`config.log' for more details" >&5
9944 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9945 See \`config.log' for more details" >&2;}; }
9946 fi
9947
9948 ac_ext=cpp
9949 ac_cpp='$CXXCPP $CPPFLAGS'
9950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9953
9954
9955 for ac_header in unordered_map
9956 do :
9957 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9958 if test "x$ac_cv_header_unordered_map" = xyes; then :
9959 cat >>confdefs.h <<_ACEOF
9960 #define HAVE_UNORDERED_MAP 1
9961 _ACEOF
9962
9963 fi
9964 done
9965
9966 for ac_header in tr1/unordered_map
9967 do :
9968 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9969 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9970 cat >>confdefs.h <<_ACEOF
9971 #define HAVE_TR1_UNORDERED_MAP 1
9972 _ACEOF
9973
9974 fi
9975 done
9976
9977 for ac_header in ext/hash_map
9978 do :
9979 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9980 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9981 cat >>confdefs.h <<_ACEOF
9982 #define HAVE_EXT_HASH_MAP 1
9983 _ACEOF
9984
9985 fi
9986 done
9987
9988
9989 # --------
9990 # Dependency checking.
9991 # --------
9992
9993 rm -rf .tst 2>/dev/null
9994 mkdir .tst 2>/dev/null
9995 if test -d .tst; then
9996 am__leading_dot=.
9997 else
9998 am__leading_dot=_
9999 fi
10000 rmdir .tst 2>/dev/null
10001
10002 DEPDIR="${am__leading_dot}deps"
10003
10004 ac_config_commands="$ac_config_commands depdir"
10005
10006
10007 ac_config_commands="$ac_config_commands gccdepdir"
10008
10009
10010 depcc="$CXX" am_compiler_list=
10011
10012 am_depcomp=$ac_aux_dir/depcomp
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10014 $as_echo_n "checking dependency style of $depcc... " >&6; }
10015 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 if test -f "$am_depcomp"; then
10019 # We make a subdir and do the tests there. Otherwise we can end up
10020 # making bogus files that we don't know about and never remove. For
10021 # instance it was reported that on HP-UX the gcc test will end up
10022 # making a dummy file named `D' -- because `-MD' means `put the output
10023 # in D'.
10024 mkdir conftest.dir
10025 # Copy depcomp to subdir because otherwise we won't find it if we're
10026 # using a relative directory.
10027 cp "$am_depcomp" conftest.dir
10028 cd conftest.dir
10029 # We will build objects and dependencies in a subdirectory because
10030 # it helps to detect inapplicable dependency modes. For instance
10031 # both Tru64's cc and ICC support -MD to output dependencies as a
10032 # side effect of compilation, but ICC will put the dependencies in
10033 # the current directory while Tru64 will put them in the object
10034 # directory.
10035 mkdir sub
10036
10037 am_cv_CXX_dependencies_compiler_type=none
10038 if test "$am_compiler_list" = ""; then
10039 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10040 fi
10041 for depmode in $am_compiler_list; do
10042 if test $depmode = none; then break; fi
10043
10044 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10045 # Setup a source with many dependencies, because some compilers
10046 # like to wrap large dependency lists on column 80 (with \), and
10047 # we should not choose a depcomp mode which is confused by this.
10048 #
10049 # We need to recreate these files for each test, as the compiler may
10050 # overwrite some of them when testing with obscure command lines.
10051 # This happens at least with the AIX C compiler.
10052 : > sub/conftest.c
10053 for i in 1 2 3 4 5 6; do
10054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10056 # Solaris 8's {/usr,}/bin/sh.
10057 touch sub/conftst$i.h
10058 done
10059 echo "include sub/conftest.Po" > confmf
10060
10061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10062 # mode. It turns out that the SunPro C++ compiler does not properly
10063 # handle `-M -o', and we need to detect this.
10064 depcmd="depmode=$depmode \
10065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10068 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10069 if env $depcmd > conftest.err 2>&1 &&
10070 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10071 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10072 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10073 # icc doesn't choke on unknown options, it will just issue warnings
10074 # or remarks (even with -Werror). So we grep stderr for any message
10075 # that says an option was ignored or not supported.
10076 # When given -MP, icc 7.0 and 7.1 complain thusly:
10077 # icc: Command line warning: ignoring option '-M'; no argument required
10078 # The diagnosis changed in icc 8.0:
10079 # icc: Command line remark: option '-MP' not supported
10080 if (grep 'ignoring option' conftest.err ||
10081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10082 am_cv_CXX_dependencies_compiler_type=$depmode
10083 $as_echo "$as_me:$LINENO: success" >&5
10084 break
10085 fi
10086 fi
10087 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10088 sed -e 's/^/| /' < conftest.err >&5
10089 done
10090
10091 cd ..
10092 rm -rf conftest.dir
10093 else
10094 am_cv_CXX_dependencies_compiler_type=none
10095 fi
10096
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10099 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10100 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10101 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10102 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10103
10104 fi
10105
10106
10107 # --------
10108 # UNSORTED
10109 # --------
10110
10111
10112 # These libraries may be used by collect2.
10113 # We may need a special search path to get them linked.
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10115 $as_echo_n "checking for collect2 libraries... " >&6; }
10116 if ${gcc_cv_collect2_libs+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 save_LIBS="$LIBS"
10120 for libs in '' -lld -lmld \
10121 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10122 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10123 do
10124 LIBS="$libs"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char ldopen ();
10135 int
10136 main ()
10137 {
10138 return ldopen ();
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_cxx_try_link "$LINENO"; then :
10144 gcc_cv_collect2_libs="$libs"; break
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 done
10149 LIBS="$save_LIBS"
10150 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10153 $as_echo "$gcc_cv_collect2_libs" >&6; }
10154 case $gcc_cv_collect2_libs in
10155 "none required") ;;
10156 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10157 esac
10158
10159
10160 # When building Ada code on Alpha, we need exc_resume which is usually in
10161 # -lexc. So test for it.
10162 save_LIBS="$LIBS"
10163 LIBS=
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10165 $as_echo_n "checking for library containing exc_resume... " >&6; }
10166 if ${ac_cv_search_exc_resume+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 ac_func_search_save_LIBS=$LIBS
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 char exc_resume ();
10180 int
10181 main ()
10182 {
10183 return exc_resume ();
10184 ;
10185 return 0;
10186 }
10187 _ACEOF
10188 for ac_lib in '' exc; do
10189 if test -z "$ac_lib"; then
10190 ac_res="none required"
10191 else
10192 ac_res=-l$ac_lib
10193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10194 fi
10195 if ac_fn_cxx_try_link "$LINENO"; then :
10196 ac_cv_search_exc_resume=$ac_res
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext
10200 if ${ac_cv_search_exc_resume+:} false; then :
10201 break
10202 fi
10203 done
10204 if ${ac_cv_search_exc_resume+:} false; then :
10205
10206 else
10207 ac_cv_search_exc_resume=no
10208 fi
10209 rm conftest.$ac_ext
10210 LIBS=$ac_func_search_save_LIBS
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10213 $as_echo "$ac_cv_search_exc_resume" >&6; }
10214 ac_res=$ac_cv_search_exc_resume
10215 if test "$ac_res" != no; then :
10216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10217
10218 fi
10219
10220 GNAT_LIBEXC="$LIBS"
10221 LIBS="$save_LIBS"
10222
10223
10224 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10225 save_LIBS="$LIBS"
10226 LIBS=
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10228 $as_echo_n "checking for library containing kstat_open... " >&6; }
10229 if ${ac_cv_search_kstat_open+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 ac_func_search_save_LIBS=$LIBS
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char kstat_open ();
10243 int
10244 main ()
10245 {
10246 return kstat_open ();
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 for ac_lib in '' kstat; do
10252 if test -z "$ac_lib"; then
10253 ac_res="none required"
10254 else
10255 ac_res=-l$ac_lib
10256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10257 fi
10258 if ac_fn_cxx_try_link "$LINENO"; then :
10259 ac_cv_search_kstat_open=$ac_res
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext
10263 if ${ac_cv_search_kstat_open+:} false; then :
10264 break
10265 fi
10266 done
10267 if ${ac_cv_search_kstat_open+:} false; then :
10268
10269 else
10270 ac_cv_search_kstat_open=no
10271 fi
10272 rm conftest.$ac_ext
10273 LIBS=$ac_func_search_save_LIBS
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10276 $as_echo "$ac_cv_search_kstat_open" >&6; }
10277 ac_res=$ac_cv_search_kstat_open
10278 if test "$ac_res" != no; then :
10279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10280
10281 fi
10282
10283 EXTRA_GCC_LIBS="$LIBS"
10284 LIBS="$save_LIBS"
10285
10286
10287 # Some systems put ldexp and frexp in libm instead of libc; assume
10288 # they're both in the same place. jcf-dump needs them.
10289 save_LIBS="$LIBS"
10290 LIBS=
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10292 $as_echo_n "checking for library containing ldexp... " >&6; }
10293 if ${ac_cv_search_ldexp+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 ac_func_search_save_LIBS=$LIBS
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char ldexp ();
10307 int
10308 main ()
10309 {
10310 return ldexp ();
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 for ac_lib in '' m; do
10316 if test -z "$ac_lib"; then
10317 ac_res="none required"
10318 else
10319 ac_res=-l$ac_lib
10320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10321 fi
10322 if ac_fn_cxx_try_link "$LINENO"; then :
10323 ac_cv_search_ldexp=$ac_res
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext
10327 if ${ac_cv_search_ldexp+:} false; then :
10328 break
10329 fi
10330 done
10331 if ${ac_cv_search_ldexp+:} false; then :
10332
10333 else
10334 ac_cv_search_ldexp=no
10335 fi
10336 rm conftest.$ac_ext
10337 LIBS=$ac_func_search_save_LIBS
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10340 $as_echo "$ac_cv_search_ldexp" >&6; }
10341 ac_res=$ac_cv_search_ldexp
10342 if test "$ac_res" != no; then :
10343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10344
10345 fi
10346
10347 LDEXP_LIB="$LIBS"
10348 LIBS="$save_LIBS"
10349
10350
10351 # Some systems need dlopen
10352 save_LIBS="$LIBS"
10353 LIBS=
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10355 $as_echo_n "checking for library containing dlopen... " >&6; }
10356 if ${ac_cv_search_dlopen+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_func_search_save_LIBS=$LIBS
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char dlopen ();
10370 int
10371 main ()
10372 {
10373 return dlopen ();
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 for ac_lib in '' dl; do
10379 if test -z "$ac_lib"; then
10380 ac_res="none required"
10381 else
10382 ac_res=-l$ac_lib
10383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10384 fi
10385 if ac_fn_cxx_try_link "$LINENO"; then :
10386 ac_cv_search_dlopen=$ac_res
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext
10390 if ${ac_cv_search_dlopen+:} false; then :
10391 break
10392 fi
10393 done
10394 if ${ac_cv_search_dlopen+:} false; then :
10395
10396 else
10397 ac_cv_search_dlopen=no
10398 fi
10399 rm conftest.$ac_ext
10400 LIBS=$ac_func_search_save_LIBS
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10403 $as_echo "$ac_cv_search_dlopen" >&6; }
10404 ac_res=$ac_cv_search_dlopen
10405 if test "$ac_res" != no; then :
10406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10407
10408 fi
10409
10410 DL_LIB="$LIBS"
10411 LIBS="$save_LIBS"
10412
10413
10414 # Use <inttypes.h> only if it exists,
10415 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10416 # PRId64
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10418 $as_echo_n "checking for inttypes.h... " >&6; }
10419 if ${gcc_cv_header_inttypes_h+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #define __STDC_FORMAT_MACROS
10425 #include <sys/types.h>
10426 #include <inttypes.h>
10427 int
10428 main ()
10429 {
10430 intmax_t i = -1;
10431 #ifndef PRId64
10432 choke me
10433 #endif
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_cxx_try_compile "$LINENO"; then :
10439 gcc_cv_header_inttypes_h=yes
10440 else
10441 gcc_cv_header_inttypes_h=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 fi
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10447 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10448 if test $gcc_cv_header_inttypes_h = yes; then
10449
10450 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10451
10452 fi
10453
10454 # Look for the ZSTD package.
10455 ZSTD_INCLUDE=
10456 ZSTD_LIB=
10457
10458
10459 ZSTD_CPPFLAGS=
10460 ZSTD_LDFLAGS=
10461
10462
10463
10464 # Check whether --with-zstd was given.
10465 if test "${with_zstd+set}" = set; then :
10466 withval=$with_zstd;
10467 fi
10468
10469
10470 # Check whether --with-zstd-include was given.
10471 if test "${with_zstd_include+set}" = set; then :
10472 withval=$with_zstd_include;
10473 fi
10474
10475
10476 # Check whether --with-zstd-lib was given.
10477 if test "${with_zstd_lib+set}" = set; then :
10478 withval=$with_zstd_lib;
10479 fi
10480
10481 case "x$with_zstd" in
10482 x) ;;
10483 xno)
10484 ZSTD_INCLUDE=
10485 ZSTD_LIB=
10486 ;;
10487 *) ZSTD_INCLUDE=$with_zstd/include
10488 ZSTD_LIB=$with_zstd/lib
10489 ;;
10490 esac
10491
10492 if test "x$with_zstd" != xno; then
10493 if test "x$with_zstd_include" != x; then
10494 ZSTD_INCLUDE=$with_zstd_include
10495 fi
10496 if test "x$with_zstd_lib" != x; then
10497 ZSTD_LIB=$with_zstd_lib
10498 fi
10499 if test "x$ZSTD_INCLUDE" != x \
10500 && test "x$ZSTD_INCLUDE" != xno; then
10501 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10502 fi
10503 if test "x$ZSTD_LIB" != x \
10504 && test "x$ZSTD_LIB" != xno; then
10505 ZSTD_LDFLAGS=-L$ZSTD_LIB
10506 fi
10507
10508 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10509 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10510
10511 # LTO can use zstd compression algorithm
10512 save_LIBS="$LIBS"
10513 LIBS=
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10515 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10516 if ${ac_cv_search_ZSTD_compress+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 ac_func_search_save_LIBS=$LIBS
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char ZSTD_compress ();
10530 int
10531 main ()
10532 {
10533 return ZSTD_compress ();
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 for ac_lib in '' zstd; do
10539 if test -z "$ac_lib"; then
10540 ac_res="none required"
10541 else
10542 ac_res=-l$ac_lib
10543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10544 fi
10545 if ac_fn_cxx_try_link "$LINENO"; then :
10546 ac_cv_search_ZSTD_compress=$ac_res
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext
10550 if ${ac_cv_search_ZSTD_compress+:} false; then :
10551 break
10552 fi
10553 done
10554 if ${ac_cv_search_ZSTD_compress+:} false; then :
10555
10556 else
10557 ac_cv_search_ZSTD_compress=no
10558 fi
10559 rm conftest.$ac_ext
10560 LIBS=$ac_func_search_save_LIBS
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10563 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10564 ac_res=$ac_cv_search_ZSTD_compress
10565 if test "$ac_res" != no; then :
10566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10567
10568 else
10569 gcc_cv_header_zstd_h=no
10570 fi
10571
10572 ZSTD_LIB="$LIBS"
10573 LIBS="$save_LIBS"
10574
10575
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10577 $as_echo_n "checking for zstd.h... " >&6; }
10578 if ${gcc_cv_header_zstd_h+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 # We require version 1.3.0 or later. This is the first version that has
10582 # ZSTD_getFrameContentSize.
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #include <zstd.h>
10586 #if ZSTD_VERSION_NUMBER < 10300
10587 #error "need zstd 1.3.0 or better"
10588 #endif
10589 int
10590 main ()
10591 {
10592
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_cxx_try_compile "$LINENO"; then :
10598 gcc_cv_header_zstd_h=yes
10599 else
10600 gcc_cv_header_zstd_h=no
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 fi
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10606 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10607 if test $gcc_cv_header_zstd_h = yes; then
10608
10609 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10610
10611 elif test "x$with_zstd" != x; then
10612 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10613 fi
10614 fi
10615
10616
10617
10618 for ac_func in times clock kill getrlimit setrlimit atoq \
10619 popen sysconf strsignal getrusage nl_langinfo \
10620 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10621 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
10622 do :
10623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10626 cat >>confdefs.h <<_ACEOF
10627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628 _ACEOF
10629
10630 fi
10631 done
10632
10633
10634 if test x$ac_cv_func_mbstowcs = xyes; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10636 $as_echo_n "checking whether mbstowcs works... " >&6; }
10637 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 if test "$cross_compiling" = yes; then :
10641 gcc_cv_func_mbstowcs_works=yes
10642 else
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <stdlib.h>
10646 int main()
10647 {
10648 mbstowcs(0, "", 0);
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_cxx_try_run "$LINENO"; then :
10653 gcc_cv_func_mbstowcs_works=yes
10654 else
10655 gcc_cv_func_mbstowcs_works=no
10656 fi
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10658 conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 fi
10660
10661 fi
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10664 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10665
10666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10667
10668 fi
10669 fi
10670
10671 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10672 if test "x$ac_cv_type_ssize_t" = xyes; then :
10673
10674 else
10675
10676 cat >>confdefs.h <<_ACEOF
10677 #define ssize_t int
10678 _ACEOF
10679
10680 fi
10681
10682 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10683 if test "x$ac_cv_type_caddr_t" = xyes; then :
10684
10685 else
10686
10687 cat >>confdefs.h <<_ACEOF
10688 #define caddr_t char *
10689 _ACEOF
10690
10691 fi
10692
10693 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10694 "
10695 if test "x$ac_cv_type_sighander_t" = xyes; then :
10696
10697 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10698
10699 fi
10700
10701
10702
10703 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10704 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10705 gcc_header_sys_mman_h=yes
10706 else
10707 gcc_header_sys_mman_h=no
10708 fi
10709
10710 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10711 if test "x$ac_cv_func_mmap" = xyes; then :
10712 gcc_func_mmap=yes
10713 else
10714 gcc_func_mmap=no
10715 fi
10716
10717 if test "$gcc_header_sys_mman_h" != yes \
10718 || test "$gcc_func_mmap" != yes; then
10719 gcc_cv_func_mmap_file=no
10720 gcc_cv_func_mmap_dev_zero=no
10721 gcc_cv_func_mmap_anon=no
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10725 if ${gcc_cv_func_mmap_file+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 # Add a system to this blacklist if
10729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10730 # memory area containing the same data that you'd get if you applied
10731 # read() to the same fd. The only system known to have a problem here
10732 # is VMS, where text files have record structure.
10733 case "$host_os" in
10734 *vms* | ultrix*)
10735 gcc_cv_func_mmap_file=no ;;
10736 *)
10737 gcc_cv_func_mmap_file=yes;;
10738 esac
10739 fi
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10744 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 # Add a system to this blacklist if it has mmap() but /dev/zero
10748 # does not exist, or if mmapping /dev/zero does not give anonymous
10749 # zeroed pages with both the following properties:
10750 # 1. If you map N consecutive pages in with one call, and then
10751 # unmap any subset of those pages, the pages that were not
10752 # explicitly unmapped remain accessible.
10753 # 2. If you map two adjacent blocks of memory and then unmap them
10754 # both at once, they must both go away.
10755 # Systems known to be in this category are Windows (all variants),
10756 # VMS, and Darwin.
10757 case "$host_os" in
10758 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10759 gcc_cv_func_mmap_dev_zero=no ;;
10760 *)
10761 gcc_cv_func_mmap_dev_zero=yes;;
10762 esac
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10766
10767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10770 if ${gcc_cv_decl_map_anon+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <sys/mman.h>
10777 #include <unistd.h>
10778
10779 #ifndef MAP_ANONYMOUS
10780 #define MAP_ANONYMOUS MAP_ANON
10781 #endif
10782
10783 int
10784 main ()
10785 {
10786 int n = MAP_ANONYMOUS;
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_cxx_try_compile "$LINENO"; then :
10792 gcc_cv_decl_map_anon=yes
10793 else
10794 gcc_cv_decl_map_anon=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10800
10801 if test $gcc_cv_decl_map_anon = no; then
10802 gcc_cv_func_mmap_anon=no
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10806 if ${gcc_cv_func_mmap_anon+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10811 # doesn't give anonymous zeroed pages with the same properties listed
10812 # above for use of /dev/zero.
10813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10814 case "$host_os" in
10815 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10816 gcc_cv_func_mmap_anon=no ;;
10817 *)
10818 gcc_cv_func_mmap_anon=yes;;
10819 esac
10820 fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10823 fi
10824 fi
10825
10826 if test $gcc_cv_func_mmap_file = yes; then
10827
10828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10829
10830 fi
10831 if test $gcc_cv_func_mmap_dev_zero = yes; then
10832
10833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10834
10835 fi
10836 if test $gcc_cv_func_mmap_anon = yes; then
10837
10838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10839
10840 fi
10841
10842
10843 case "${host}" in
10844 *-*-*vms*)
10845 # Under VMS, vfork works very differently than on Unix. The standard test
10846 # won't work, and it isn't easily adaptable. It makes more sense to
10847 # just force it.
10848 ac_cv_func_vfork_works=yes
10849 ;;
10850 esac
10851 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10852 if test "x$ac_cv_type_pid_t" = xyes; then :
10853
10854 else
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define pid_t int
10858 _ACEOF
10859
10860 fi
10861
10862 for ac_header in vfork.h
10863 do :
10864 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10865 if test "x$ac_cv_header_vfork_h" = xyes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_VFORK_H 1
10868 _ACEOF
10869
10870 fi
10871 done
10872
10873 for ac_func in fork vfork
10874 do :
10875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10878 cat >>confdefs.h <<_ACEOF
10879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10880 _ACEOF
10881
10882 fi
10883 done
10884
10885 if test "x$ac_cv_func_fork" = xyes; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10887 $as_echo_n "checking for working fork... " >&6; }
10888 if ${ac_cv_func_fork_works+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test "$cross_compiling" = yes; then :
10892 ac_cv_func_fork_works=cross
10893 else
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 $ac_includes_default
10897 int
10898 main ()
10899 {
10900
10901 /* By Ruediger Kuhlmann. */
10902 return fork () < 0;
10903
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_cxx_try_run "$LINENO"; then :
10909 ac_cv_func_fork_works=yes
10910 else
10911 ac_cv_func_fork_works=no
10912 fi
10913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10914 conftest.$ac_objext conftest.beam conftest.$ac_ext
10915 fi
10916
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10919 $as_echo "$ac_cv_func_fork_works" >&6; }
10920
10921 else
10922 ac_cv_func_fork_works=$ac_cv_func_fork
10923 fi
10924 if test "x$ac_cv_func_fork_works" = xcross; then
10925 case $host in
10926 *-*-amigaos* | *-*-msdosdjgpp*)
10927 # Override, as these systems have only a dummy fork() stub
10928 ac_cv_func_fork_works=no
10929 ;;
10930 *)
10931 ac_cv_func_fork_works=yes
10932 ;;
10933 esac
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10935 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10936 fi
10937 ac_cv_func_vfork_works=$ac_cv_func_vfork
10938 if test "x$ac_cv_func_vfork" = xyes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10940 $as_echo_n "checking for working vfork... " >&6; }
10941 if ${ac_cv_func_vfork_works+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test "$cross_compiling" = yes; then :
10945 ac_cv_func_vfork_works=cross
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 /* Thanks to Paul Eggert for this test. */
10950 $ac_includes_default
10951 #include <sys/wait.h>
10952 #ifdef HAVE_VFORK_H
10953 # include <vfork.h>
10954 #endif
10955 /* On some sparc systems, changes by the child to local and incoming
10956 argument registers are propagated back to the parent. The compiler
10957 is told about this with #include <vfork.h>, but some compilers
10958 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10959 static variable whose address is put into a register that is
10960 clobbered by the vfork. */
10961 static void
10962 #ifdef __cplusplus
10963 sparc_address_test (int arg)
10964 # else
10965 sparc_address_test (arg) int arg;
10966 #endif
10967 {
10968 static pid_t child;
10969 if (!child) {
10970 child = vfork ();
10971 if (child < 0) {
10972 perror ("vfork");
10973 _exit(2);
10974 }
10975 if (!child) {
10976 arg = getpid();
10977 write(-1, "", 0);
10978 _exit (arg);
10979 }
10980 }
10981 }
10982
10983 int
10984 main ()
10985 {
10986 pid_t parent = getpid ();
10987 pid_t child;
10988
10989 sparc_address_test (0);
10990
10991 child = vfork ();
10992
10993 if (child == 0) {
10994 /* Here is another test for sparc vfork register problems. This
10995 test uses lots of local variables, at least as many local
10996 variables as main has allocated so far including compiler
10997 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10998 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10999 reuse the register of parent for one of the local variables,
11000 since it will think that parent can't possibly be used any more
11001 in this routine. Assigning to the local variable will thus
11002 munge parent in the parent process. */
11003 pid_t
11004 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11005 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11006 /* Convince the compiler that p..p7 are live; otherwise, it might
11007 use the same hardware register for all 8 local variables. */
11008 if (p != p1 || p != p2 || p != p3 || p != p4
11009 || p != p5 || p != p6 || p != p7)
11010 _exit(1);
11011
11012 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11013 from child file descriptors. If the child closes a descriptor
11014 before it execs or exits, this munges the parent's descriptor
11015 as well. Test for this by closing stdout in the child. */
11016 _exit(close(fileno(stdout)) != 0);
11017 } else {
11018 int status;
11019 struct stat st;
11020
11021 while (wait(&status) != child)
11022 ;
11023 return (
11024 /* Was there some problem with vforking? */
11025 child < 0
11026
11027 /* Did the child fail? (This shouldn't happen.) */
11028 || status
11029
11030 /* Did the vfork/compiler bug occur? */
11031 || parent != getpid()
11032
11033 /* Did the file descriptor bug occur? */
11034 || fstat(fileno(stdout), &st) != 0
11035 );
11036 }
11037 }
11038 _ACEOF
11039 if ac_fn_cxx_try_run "$LINENO"; then :
11040 ac_cv_func_vfork_works=yes
11041 else
11042 ac_cv_func_vfork_works=no
11043 fi
11044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11045 conftest.$ac_objext conftest.beam conftest.$ac_ext
11046 fi
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11050 $as_echo "$ac_cv_func_vfork_works" >&6; }
11051
11052 fi;
11053 if test "x$ac_cv_func_fork_works" = xcross; then
11054 ac_cv_func_vfork_works=$ac_cv_func_vfork
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11056 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11057 fi
11058
11059 if test "x$ac_cv_func_vfork_works" = xyes; then
11060
11061 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11062
11063 else
11064
11065 $as_echo "#define vfork fork" >>confdefs.h
11066
11067 fi
11068 if test "x$ac_cv_func_fork_works" = xyes; then
11069
11070 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11071
11072 fi
11073
11074
11075
11076 if test "X$prefix" = "XNONE"; then
11077 acl_final_prefix="$ac_default_prefix"
11078 else
11079 acl_final_prefix="$prefix"
11080 fi
11081 if test "X$exec_prefix" = "XNONE"; then
11082 acl_final_exec_prefix='${prefix}'
11083 else
11084 acl_final_exec_prefix="$exec_prefix"
11085 fi
11086 acl_save_prefix="$prefix"
11087 prefix="$acl_final_prefix"
11088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11089 prefix="$acl_save_prefix"
11090
11091
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096 with_gnu_ld=no
11097 fi
11098
11099 # Prepare PATH_SEPARATOR.
11100 # The user is always right.
11101 if test "${PATH_SEPARATOR+set}" != set; then
11102 echo "#! /bin/sh" >conf$$.sh
11103 echo "exit 0" >>conf$$.sh
11104 chmod +x conf$$.sh
11105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11106 PATH_SEPARATOR=';'
11107 else
11108 PATH_SEPARATOR=:
11109 fi
11110 rm -f conf$$.sh
11111 fi
11112 ac_prog=ld
11113 if test "$GCC" = yes; then
11114 # Check if gcc -print-prog-name=ld gives a path.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11116 $as_echo_n "checking for ld used by GCC... " >&6; }
11117 case $host in
11118 *-*-mingw*)
11119 # gcc leaves a trailing carriage return which upsets mingw
11120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11121 *)
11122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11123 esac
11124 case $ac_prog in
11125 # Accept absolute paths.
11126 [\\/]* | [A-Za-z]:[\\/]*)
11127 re_direlt='/[^/][^/]*/\.\./'
11128 # Canonicalize the path of ld
11129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11132 done
11133 test -z "$LD" && LD="$ac_prog"
11134 ;;
11135 "")
11136 # If it fails, then pretend we aren't using GCC.
11137 ac_prog=ld
11138 ;;
11139 *)
11140 # If it is relative, then search for the first ld in PATH.
11141 with_gnu_ld=unknown
11142 ;;
11143 esac
11144 elif test "$with_gnu_ld" = yes; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11146 $as_echo_n "checking for GNU ld... " >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11149 $as_echo_n "checking for non-GNU ld... " >&6; }
11150 fi
11151 if ${acl_cv_path_LD+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test -z "$LD"; then
11155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11156 for ac_dir in $PATH; do
11157 test -z "$ac_dir" && ac_dir=.
11158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11159 acl_cv_path_LD="$ac_dir/$ac_prog"
11160 # Check to see if the program is GNU ld. I'd rather use --version,
11161 # but apparently some GNU ld's only accept -v.
11162 # Break only if it was the GNU/non-GNU ld that we prefer.
11163 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11164 test "$with_gnu_ld" != no && break
11165 else
11166 test "$with_gnu_ld" != yes && break
11167 fi
11168 fi
11169 done
11170 IFS="$ac_save_ifs"
11171 else
11172 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11173 fi
11174 fi
11175
11176 LD="$acl_cv_path_LD"
11177 if test -n "$LD"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11179 $as_echo "$LD" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11187 if ${acl_cv_prog_gnu_ld+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11191 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11192 acl_cv_prog_gnu_ld=yes
11193 else
11194 acl_cv_prog_gnu_ld=no
11195 fi
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11199 with_gnu_ld=$acl_cv_prog_gnu_ld
11200
11201
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11204 $as_echo_n "checking for shared library run path origin... " >&6; }
11205 if ${acl_cv_rpath+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208
11209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11211 . ./conftest.sh
11212 rm -f ./conftest.sh
11213 acl_cv_rpath=done
11214
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11217 $as_echo "$acl_cv_rpath" >&6; }
11218 wl="$acl_cv_wl"
11219 libext="$acl_cv_libext"
11220 shlibext="$acl_cv_shlibext"
11221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11223 hardcode_direct="$acl_cv_hardcode_direct"
11224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11225 # Check whether --enable-rpath was given.
11226 if test "${enable_rpath+set}" = set; then :
11227 enableval=$enable_rpath; :
11228 else
11229 enable_rpath=yes
11230 fi
11231
11232
11233
11234
11235
11236
11237
11238
11239 use_additional=yes
11240
11241 acl_save_prefix="$prefix"
11242 prefix="$acl_final_prefix"
11243 acl_save_exec_prefix="$exec_prefix"
11244 exec_prefix="$acl_final_exec_prefix"
11245
11246 eval additional_includedir=\"$includedir\"
11247 eval additional_libdir=\"$libdir\"
11248
11249 exec_prefix="$acl_save_exec_prefix"
11250 prefix="$acl_save_prefix"
11251
11252
11253 # Check whether --with-libiconv-prefix was given.
11254 if test "${with_libiconv_prefix+set}" = set; then :
11255 withval=$with_libiconv_prefix;
11256 if test "X$withval" = "Xno"; then
11257 use_additional=no
11258 else
11259 if test "X$withval" = "X"; then
11260
11261 acl_save_prefix="$prefix"
11262 prefix="$acl_final_prefix"
11263 acl_save_exec_prefix="$exec_prefix"
11264 exec_prefix="$acl_final_exec_prefix"
11265
11266 eval additional_includedir=\"$includedir\"
11267 eval additional_libdir=\"$libdir\"
11268
11269 exec_prefix="$acl_save_exec_prefix"
11270 prefix="$acl_save_prefix"
11271
11272 else
11273 additional_includedir="$withval/include"
11274 additional_libdir="$withval/lib"
11275 fi
11276 fi
11277
11278 fi
11279
11280
11281 # Check whether --with-libiconv-type was given.
11282 if test "${with_libiconv_type+set}" = set; then :
11283 withval=$with_libiconv_type; with_libiconv_type=$withval
11284 else
11285 with_libiconv_type=auto
11286 fi
11287
11288 lib_type=`eval echo \$with_libiconv_type`
11289
11290 LIBICONV=
11291 LTLIBICONV=
11292 INCICONV=
11293 rpathdirs=
11294 ltrpathdirs=
11295 names_already_handled=
11296 names_next_round='iconv '
11297 while test -n "$names_next_round"; do
11298 names_this_round="$names_next_round"
11299 names_next_round=
11300 for name in $names_this_round; do
11301 already_handled=
11302 for n in $names_already_handled; do
11303 if test "$n" = "$name"; then
11304 already_handled=yes
11305 break
11306 fi
11307 done
11308 if test -z "$already_handled"; then
11309 names_already_handled="$names_already_handled $name"
11310 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11311 eval value=\"\$HAVE_LIB$uppername\"
11312 if test -n "$value"; then
11313 if test "$value" = yes; then
11314 eval value=\"\$LIB$uppername\"
11315 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11316 eval value=\"\$LTLIB$uppername\"
11317 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11318 else
11319 :
11320 fi
11321 else
11322 found_dir=
11323 found_la=
11324 found_so=
11325 found_a=
11326 if test $use_additional = yes; then
11327 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11328 found_dir="$additional_libdir"
11329 found_so="$additional_libdir/lib$name.$shlibext"
11330 if test -f "$additional_libdir/lib$name.la"; then
11331 found_la="$additional_libdir/lib$name.la"
11332 fi
11333 elif test x$lib_type != xshared; then
11334 if test -f "$additional_libdir/lib$name.$libext"; then
11335 found_dir="$additional_libdir"
11336 found_a="$additional_libdir/lib$name.$libext"
11337 if test -f "$additional_libdir/lib$name.la"; then
11338 found_la="$additional_libdir/lib$name.la"
11339 fi
11340 fi
11341 fi
11342 fi
11343 if test "X$found_dir" = "X"; then
11344 for x in $LDFLAGS $LTLIBICONV; do
11345
11346 acl_save_prefix="$prefix"
11347 prefix="$acl_final_prefix"
11348 acl_save_exec_prefix="$exec_prefix"
11349 exec_prefix="$acl_final_exec_prefix"
11350 eval x=\"$x\"
11351 exec_prefix="$acl_save_exec_prefix"
11352 prefix="$acl_save_prefix"
11353
11354 case "$x" in
11355 -L*)
11356 dir=`echo "X$x" | sed -e 's/^X-L//'`
11357 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11358 found_dir="$dir"
11359 found_so="$dir/lib$name.$shlibext"
11360 if test -f "$dir/lib$name.la"; then
11361 found_la="$dir/lib$name.la"
11362 fi
11363 elif test x$lib_type != xshared; then
11364 if test -f "$dir/lib$name.$libext"; then
11365 found_dir="$dir"
11366 found_a="$dir/lib$name.$libext"
11367 if test -f "$dir/lib$name.la"; then
11368 found_la="$dir/lib$name.la"
11369 fi
11370 fi
11371 fi
11372 ;;
11373 esac
11374 if test "X$found_dir" != "X"; then
11375 break
11376 fi
11377 done
11378 fi
11379 if test "X$found_dir" != "X"; then
11380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11381 if test "X$found_so" != "X"; then
11382 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11384 else
11385 haveit=
11386 for x in $ltrpathdirs; do
11387 if test "X$x" = "X$found_dir"; then
11388 haveit=yes
11389 break
11390 fi
11391 done
11392 if test -z "$haveit"; then
11393 ltrpathdirs="$ltrpathdirs $found_dir"
11394 fi
11395 if test "$hardcode_direct" = yes; then
11396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11397 else
11398 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11400 haveit=
11401 for x in $rpathdirs; do
11402 if test "X$x" = "X$found_dir"; then
11403 haveit=yes
11404 break
11405 fi
11406 done
11407 if test -z "$haveit"; then
11408 rpathdirs="$rpathdirs $found_dir"
11409 fi
11410 else
11411 haveit=
11412 for x in $LDFLAGS $LIBICONV; do
11413
11414 acl_save_prefix="$prefix"
11415 prefix="$acl_final_prefix"
11416 acl_save_exec_prefix="$exec_prefix"
11417 exec_prefix="$acl_final_exec_prefix"
11418 eval x=\"$x\"
11419 exec_prefix="$acl_save_exec_prefix"
11420 prefix="$acl_save_prefix"
11421
11422 if test "X$x" = "X-L$found_dir"; then
11423 haveit=yes
11424 break
11425 fi
11426 done
11427 if test -z "$haveit"; then
11428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11429 fi
11430 if test "$hardcode_minus_L" != no; then
11431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11432 else
11433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11434 fi
11435 fi
11436 fi
11437 fi
11438 else
11439 if test "X$found_a" != "X"; then
11440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11441 else
11442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11443 fi
11444 fi
11445 additional_includedir=
11446 case "$found_dir" in
11447 */lib | */lib/)
11448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11449 additional_includedir="$basedir/include"
11450 ;;
11451 esac
11452 if test "X$additional_includedir" != "X"; then
11453 if test "X$additional_includedir" != "X/usr/include"; then
11454 haveit=
11455 if test "X$additional_includedir" = "X/usr/local/include"; then
11456 if test -n "$GCC"; then
11457 case $host_os in
11458 linux*) haveit=yes;;
11459 esac
11460 fi
11461 fi
11462 if test -z "$haveit"; then
11463 for x in $CPPFLAGS $INCICONV; do
11464
11465 acl_save_prefix="$prefix"
11466 prefix="$acl_final_prefix"
11467 acl_save_exec_prefix="$exec_prefix"
11468 exec_prefix="$acl_final_exec_prefix"
11469 eval x=\"$x\"
11470 exec_prefix="$acl_save_exec_prefix"
11471 prefix="$acl_save_prefix"
11472
11473 if test "X$x" = "X-I$additional_includedir"; then
11474 haveit=yes
11475 break
11476 fi
11477 done
11478 if test -z "$haveit"; then
11479 if test -d "$additional_includedir"; then
11480 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11481 fi
11482 fi
11483 fi
11484 fi
11485 fi
11486 if test -n "$found_la"; then
11487 save_libdir="$libdir"
11488 case "$found_la" in
11489 */* | *\\*) . "$found_la" ;;
11490 *) . "./$found_la" ;;
11491 esac
11492 libdir="$save_libdir"
11493 for dep in $dependency_libs; do
11494 case "$dep" in
11495 -L*)
11496 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11497 if test "X$additional_libdir" != "X/usr/lib"; then
11498 haveit=
11499 if test "X$additional_libdir" = "X/usr/local/lib"; then
11500 if test -n "$GCC"; then
11501 case $host_os in
11502 linux*) haveit=yes;;
11503 esac
11504 fi
11505 fi
11506 if test -z "$haveit"; then
11507 haveit=
11508 for x in $LDFLAGS $LIBICONV; do
11509
11510 acl_save_prefix="$prefix"
11511 prefix="$acl_final_prefix"
11512 acl_save_exec_prefix="$exec_prefix"
11513 exec_prefix="$acl_final_exec_prefix"
11514 eval x=\"$x\"
11515 exec_prefix="$acl_save_exec_prefix"
11516 prefix="$acl_save_prefix"
11517
11518 if test "X$x" = "X-L$additional_libdir"; then
11519 haveit=yes
11520 break
11521 fi
11522 done
11523 if test -z "$haveit"; then
11524 if test -d "$additional_libdir"; then
11525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11526 fi
11527 fi
11528 haveit=
11529 for x in $LDFLAGS $LTLIBICONV; do
11530
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11535 eval x=\"$x\"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11538
11539 if test "X$x" = "X-L$additional_libdir"; then
11540 haveit=yes
11541 break
11542 fi
11543 done
11544 if test -z "$haveit"; then
11545 if test -d "$additional_libdir"; then
11546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11547 fi
11548 fi
11549 fi
11550 fi
11551 ;;
11552 -R*)
11553 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11554 if test "$enable_rpath" != no; then
11555 haveit=
11556 for x in $rpathdirs; do
11557 if test "X$x" = "X$dir"; then
11558 haveit=yes
11559 break
11560 fi
11561 done
11562 if test -z "$haveit"; then
11563 rpathdirs="$rpathdirs $dir"
11564 fi
11565 haveit=
11566 for x in $ltrpathdirs; do
11567 if test "X$x" = "X$dir"; then
11568 haveit=yes
11569 break
11570 fi
11571 done
11572 if test -z "$haveit"; then
11573 ltrpathdirs="$ltrpathdirs $dir"
11574 fi
11575 fi
11576 ;;
11577 -l*)
11578 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11579 ;;
11580 *.la)
11581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11582 ;;
11583 *)
11584 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11586 ;;
11587 esac
11588 done
11589 fi
11590 else
11591 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11594 else
11595 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11597 fi
11598 fi
11599 fi
11600 fi
11601 done
11602 done
11603 if test "X$rpathdirs" != "X"; then
11604 if test -n "$hardcode_libdir_separator"; then
11605 alldirs=
11606 for found_dir in $rpathdirs; do
11607 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11608 done
11609 acl_save_libdir="$libdir"
11610 libdir="$alldirs"
11611 eval flag=\"$hardcode_libdir_flag_spec\"
11612 libdir="$acl_save_libdir"
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11614 else
11615 for found_dir in $rpathdirs; do
11616 acl_save_libdir="$libdir"
11617 libdir="$found_dir"
11618 eval flag=\"$hardcode_libdir_flag_spec\"
11619 libdir="$acl_save_libdir"
11620 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11621 done
11622 fi
11623 fi
11624 if test "X$ltrpathdirs" != "X"; then
11625 for found_dir in $ltrpathdirs; do
11626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11627 done
11628 fi
11629
11630
11631
11632
11633
11634
11635
11636 am_save_CPPFLAGS="$CPPFLAGS"
11637
11638 for element in $INCICONV; do
11639 haveit=
11640 for x in $CPPFLAGS; do
11641
11642 acl_save_prefix="$prefix"
11643 prefix="$acl_final_prefix"
11644 acl_save_exec_prefix="$exec_prefix"
11645 exec_prefix="$acl_final_exec_prefix"
11646 eval x=\"$x\"
11647 exec_prefix="$acl_save_exec_prefix"
11648 prefix="$acl_save_prefix"
11649
11650 if test "X$x" = "X$element"; then
11651 haveit=yes
11652 break
11653 fi
11654 done
11655 if test -z "$haveit"; then
11656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11657 fi
11658 done
11659
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11662 $as_echo_n "checking for iconv... " >&6; }
11663 if ${am_cv_func_iconv+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666
11667 am_cv_func_iconv="no, consider installing GNU libiconv"
11668 am_cv_lib_iconv=no
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 #include <stdlib.h>
11673 #include <iconv.h>
11674
11675 int
11676 main ()
11677 {
11678 iconv_t cd = iconv_open("","");
11679 iconv(cd,NULL,NULL,NULL,NULL);
11680 iconv_close(cd);
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_cxx_try_link "$LINENO"; then :
11686 am_cv_func_iconv=yes
11687 fi
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690 if test "$am_cv_func_iconv" != yes; then
11691 am_save_LIBS="$LIBS"
11692 LIBS="$LIBS $LIBICONV"
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11695
11696 #include <stdlib.h>
11697 #include <iconv.h>
11698
11699 int
11700 main ()
11701 {
11702 iconv_t cd = iconv_open("","");
11703 iconv(cd,NULL,NULL,NULL,NULL);
11704 iconv_close(cd);
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 if ac_fn_cxx_try_link "$LINENO"; then :
11710 am_cv_lib_iconv=yes
11711 am_cv_func_iconv=yes
11712 fi
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LIBS="$am_save_LIBS"
11716 fi
11717
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11720 $as_echo "$am_cv_func_iconv" >&6; }
11721 if test "$am_cv_func_iconv" = yes; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11723 $as_echo_n "checking for working iconv... " >&6; }
11724 if ${am_cv_func_iconv_works+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727
11728 am_save_LIBS="$LIBS"
11729 if test $am_cv_lib_iconv = yes; then
11730 LIBS="$LIBS $LIBICONV"
11731 fi
11732 am_cv_func_iconv_works=no
11733 for ac_iconv_const in '' 'const'; do
11734 if test "$cross_compiling" = yes; then :
11735 case "$host_os" in
11736 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11737 *) am_cv_func_iconv_works="guessing yes" ;;
11738 esac
11739 else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742
11743 #include <iconv.h>
11744 #include <string.h>
11745
11746 #ifndef ICONV_CONST
11747 # define ICONV_CONST $ac_iconv_const
11748 #endif
11749
11750 int
11751 main ()
11752 {
11753 int result = 0;
11754 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11755 successful returns. This is even documented in
11756 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11757 {
11758 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11759 if (cd_utf8_to_88591 != (iconv_t)(-1))
11760 {
11761 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11762 char buf[10];
11763 ICONV_CONST char *inptr = input;
11764 size_t inbytesleft = strlen (input);
11765 char *outptr = buf;
11766 size_t outbytesleft = sizeof (buf);
11767 size_t res = iconv (cd_utf8_to_88591,
11768 &inptr, &inbytesleft,
11769 &outptr, &outbytesleft);
11770 if (res == 0)
11771 result |= 1;
11772 iconv_close (cd_utf8_to_88591);
11773 }
11774 }
11775 /* Test against Solaris 10 bug: Failures are not distinguishable from
11776 successful returns. */
11777 {
11778 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11779 if (cd_ascii_to_88591 != (iconv_t)(-1))
11780 {
11781 static ICONV_CONST char input[] = "\263";
11782 char buf[10];
11783 ICONV_CONST char *inptr = input;
11784 size_t inbytesleft = strlen (input);
11785 char *outptr = buf;
11786 size_t outbytesleft = sizeof (buf);
11787 size_t res = iconv (cd_ascii_to_88591,
11788 &inptr, &inbytesleft,
11789 &outptr, &outbytesleft);
11790 if (res == 0)
11791 result |= 2;
11792 iconv_close (cd_ascii_to_88591);
11793 }
11794 }
11795 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11796 {
11797 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11798 if (cd_88591_to_utf8 != (iconv_t)(-1))
11799 {
11800 static ICONV_CONST char input[] = "\304";
11801 static char buf[2] = { (char)0xDE, (char)0xAD };
11802 ICONV_CONST char *inptr = input;
11803 size_t inbytesleft = 1;
11804 char *outptr = buf;
11805 size_t outbytesleft = 1;
11806 size_t res = iconv (cd_88591_to_utf8,
11807 &inptr, &inbytesleft,
11808 &outptr, &outbytesleft);
11809 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11810 result |= 4;
11811 iconv_close (cd_88591_to_utf8);
11812 }
11813 }
11814 #if 0 /* This bug could be worked around by the caller. */
11815 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11816 {
11817 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11818 if (cd_88591_to_utf8 != (iconv_t)(-1))
11819 {
11820 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11821 char buf[50];
11822 ICONV_CONST char *inptr = input;
11823 size_t inbytesleft = strlen (input);
11824 char *outptr = buf;
11825 size_t outbytesleft = sizeof (buf);
11826 size_t res = iconv (cd_88591_to_utf8,
11827 &inptr, &inbytesleft,
11828 &outptr, &outbytesleft);
11829 if ((int)res > 0)
11830 result |= 8;
11831 iconv_close (cd_88591_to_utf8);
11832 }
11833 }
11834 #endif
11835 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11836 provided. */
11837 {
11838 /* Try standardized names. */
11839 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11840 /* Try IRIX, OSF/1 names. */
11841 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11842 /* Try AIX names. */
11843 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11844 /* Try HP-UX names. */
11845 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11846 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11847 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11848 result |= 16;
11849 if (cd1 != (iconv_t)(-1))
11850 iconv_close (cd1);
11851 if (cd2 != (iconv_t)(-1))
11852 iconv_close (cd2);
11853 if (cd3 != (iconv_t)(-1))
11854 iconv_close (cd3);
11855 if (cd4 != (iconv_t)(-1))
11856 iconv_close (cd4);
11857 }
11858 return result;
11859
11860 ;
11861 return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_cxx_try_run "$LINENO"; then :
11865 am_cv_func_iconv_works=yes
11866 fi
11867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11868 conftest.$ac_objext conftest.beam conftest.$ac_ext
11869 fi
11870
11871 test "$am_cv_func_iconv_works" = no || break
11872 done
11873 LIBS="$am_save_LIBS"
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11877 $as_echo "$am_cv_func_iconv_works" >&6; }
11878 case "$am_cv_func_iconv_works" in
11879 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11880 *) am_func_iconv=yes ;;
11881 esac
11882 else
11883 am_func_iconv=no am_cv_lib_iconv=no
11884 fi
11885 if test "$am_func_iconv" = yes; then
11886
11887 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11888
11889 fi
11890 if test "$am_cv_lib_iconv" = yes; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11892 $as_echo_n "checking how to link with libiconv... " >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11894 $as_echo "$LIBICONV" >&6; }
11895 else
11896 CPPFLAGS="$am_save_CPPFLAGS"
11897 LIBICONV=
11898 LTLIBICONV=
11899 fi
11900
11901
11902
11903 if test "$am_cv_func_iconv" = yes; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11905 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11906 if ${gl_cv_iconv_nonconst+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911
11912 #include <stdlib.h>
11913 #include <iconv.h>
11914 extern
11915 #ifdef __cplusplus
11916 "C"
11917 #endif
11918 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11919
11920 int
11921 main ()
11922 {
11923
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_cxx_try_compile "$LINENO"; then :
11929 gl_cv_iconv_nonconst=yes
11930 else
11931 gl_cv_iconv_nonconst=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
11937 $as_echo "$gl_cv_iconv_nonconst" >&6; }
11938 else
11939 gl_cv_iconv_nonconst=yes
11940 fi
11941 if test $gl_cv_iconv_nonconst = yes; then
11942 iconv_arg1=""
11943 else
11944 iconv_arg1="const"
11945 fi
11946
11947 cat >>confdefs.h <<_ACEOF
11948 #define ICONV_CONST $iconv_arg1
11949 _ACEOF
11950
11951
11952
11953 if test "$am_func_iconv" = yes; then
11954 if test -n "$LIBICONV"; then
11955 am_cv_func_iconv_summary='yes, in libiconv'
11956 else
11957 am_cv_func_iconv_summary='yes, in libc'
11958 fi
11959 else
11960 if test "$am_cv_func_iconv" = yes; then
11961 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
11962 else
11963 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
11964 fi
11965 fi
11966
11967
11968 # Until we have in-tree GNU iconv:
11969 LIBICONV_DEP=
11970 if test -f "$LTLIBICONV"; then
11971 LIBICONV_DEP=$LTLIBICONV
11972 fi
11973
11974
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11977 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11978 if ${am_cv_val_LC_MESSAGES+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <locale.h>
11984 int
11985 main ()
11986 {
11987 return LC_MESSAGES
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 if ac_fn_cxx_try_link "$LINENO"; then :
11993 am_cv_val_LC_MESSAGES=yes
11994 else
11995 am_cv_val_LC_MESSAGES=no
11996 fi
11997 rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12001 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12002 if test $am_cv_val_LC_MESSAGES = yes; then
12003
12004 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12005
12006 fi
12007
12008
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12011 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12012 if ${am_cv_langinfo_codeset+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #include <langinfo.h>
12018 int
12019 main ()
12020 {
12021 char* cs = nl_langinfo(CODESET);
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_cxx_try_link "$LINENO"; then :
12027 am_cv_langinfo_codeset=yes
12028 else
12029 am_cv_langinfo_codeset=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12036 $as_echo "$am_cv_langinfo_codeset" >&6; }
12037 if test $am_cv_langinfo_codeset = yes; then
12038
12039 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12040
12041 fi
12042
12043
12044 # We will need to find libiberty.h and ansidecl.h
12045 saved_CFLAGS="$CFLAGS"
12046 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12047 saved_CXXFLAGS="$CXXFLAGS"
12048 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12049
12050 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12051 # normal autoconf function for these. But force definition of
12052 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12053 # basename handling in libiberty.h.
12054 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12055 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12056 #undef HAVE_DECL_BASENAME
12057 #define HAVE_DECL_BASENAME 1
12058 #include \"ansidecl.h\"
12059 #include \"system.h\"
12060 "
12061 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12062 ac_have_decl=1
12063 else
12064 ac_have_decl=0
12065 fi
12066
12067 cat >>confdefs.h <<_ACEOF
12068 #define HAVE_DECL_BASENAME $ac_have_decl
12069 _ACEOF
12070 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12071 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12072 #undef HAVE_DECL_BASENAME
12073 #define HAVE_DECL_BASENAME 1
12074 #include \"ansidecl.h\"
12075 #include \"system.h\"
12076 "
12077 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12078 ac_have_decl=1
12079 else
12080 ac_have_decl=0
12081 fi
12082
12083 cat >>confdefs.h <<_ACEOF
12084 #define HAVE_DECL_STRSTR $ac_have_decl
12085 _ACEOF
12086
12087
12088 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12089 madvise stpcpy strnlen strsignal strverscmp \
12090 strtol strtoul strtoll strtoull setenv unsetenv \
12091 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12092 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
12093 do
12094 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12096 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12097 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #undef $ac_tr_decl
12103 #define $ac_tr_decl 1
12104
12105 #include "ansidecl.h"
12106 #include "system.h"
12107
12108 int
12109 main ()
12110 {
12111 #ifndef $ac_func
12112 char *(*pfn) = (char *(*)) $ac_func ;
12113 #endif
12114 ;
12115 return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_cxx_try_compile "$LINENO"; then :
12119 eval "gcc_cv_have_decl_$ac_func=yes"
12120 else
12121 eval "gcc_cv_have_decl_$ac_func=no"
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 fi
12125
12126 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12129 #define $ac_tr_decl 1
12130 _ACEOF
12131
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12135 #define $ac_tr_decl 0
12136 _ACEOF
12137
12138 fi
12139
12140 done
12141
12142
12143 for ac_func in getrlimit setrlimit getrusage
12144 do
12145 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12147 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12148 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #undef $ac_tr_decl
12154 #define $ac_tr_decl 1
12155
12156 #include "ansidecl.h"
12157 #include "system.h"
12158 #ifdef HAVE_SYS_RESOURCE_H
12159 #include <sys/resource.h>
12160 #endif
12161
12162
12163 int
12164 main ()
12165 {
12166 #ifndef $ac_func
12167 char *(*pfn) = (char *(*)) $ac_func ;
12168 #endif
12169 ;
12170 return 0;
12171 }
12172 _ACEOF
12173 if ac_fn_cxx_try_compile "$LINENO"; then :
12174 eval "gcc_cv_have_decl_$ac_func=yes"
12175 else
12176 eval "gcc_cv_have_decl_$ac_func=no"
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 fi
12180
12181 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12184 #define $ac_tr_decl 1
12185 _ACEOF
12186
12187 else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12190 #define $ac_tr_decl 0
12191 _ACEOF
12192
12193 fi
12194
12195 done
12196
12197
12198 for ac_func in mallinfo mallinfo2
12199 do
12200 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12202 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12203 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #undef $ac_tr_decl
12209 #define $ac_tr_decl 1
12210
12211 #include "ansidecl.h"
12212 #include "system.h"
12213 #ifdef HAVE_MALLOC_H
12214 #include <malloc.h>
12215 #endif
12216
12217
12218 int
12219 main ()
12220 {
12221 #ifndef $ac_func
12222 char *(*pfn) = (char *(*)) $ac_func ;
12223 #endif
12224 ;
12225 return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_cxx_try_compile "$LINENO"; then :
12229 eval "gcc_cv_have_decl_$ac_func=yes"
12230 else
12231 eval "gcc_cv_have_decl_$ac_func=no"
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 fi
12235
12236 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12238 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12239 #define $ac_tr_decl 1
12240 _ACEOF
12241
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12245 #define $ac_tr_decl 0
12246 _ACEOF
12247
12248 fi
12249
12250 done
12251
12252
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255
12256 #include "ansidecl.h"
12257 #include "system.h"
12258 #ifdef HAVE_SYS_RESOURCE_H
12259 #include <sys/resource.h>
12260 #endif
12261
12262 int
12263 main ()
12264 {
12265 rlim_t l = 0;
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_cxx_try_compile "$LINENO"; then :
12271
12272 else
12273
12274 $as_echo "#define rlim_t long" >>confdefs.h
12275
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278
12279 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12280 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12281 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12282 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12283 for ac_func in ldgetname
12284 do
12285 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12287 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12288 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293 #undef $ac_tr_decl
12294 #define $ac_tr_decl 1
12295
12296 #include "ansidecl.h"
12297 #include "system.h"
12298 #ifdef HAVE_LDFCN_H
12299 #undef FREAD
12300 #undef FWRITE
12301 #include <ldfcn.h>
12302 #endif
12303
12304
12305 int
12306 main ()
12307 {
12308 #ifndef $ac_func
12309 char *(*pfn) = (char *(*)) $ac_func ;
12310 #endif
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_cxx_try_compile "$LINENO"; then :
12316 eval "gcc_cv_have_decl_$ac_func=yes"
12317 else
12318 eval "gcc_cv_have_decl_$ac_func=no"
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322
12323 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12326 #define $ac_tr_decl 1
12327 _ACEOF
12328
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12332 #define $ac_tr_decl 0
12333 _ACEOF
12334
12335 fi
12336
12337 done
12338
12339
12340 for ac_func in times
12341 do
12342 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12344 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12345 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #undef $ac_tr_decl
12351 #define $ac_tr_decl 1
12352
12353 #include "ansidecl.h"
12354 #include "system.h"
12355 #ifdef HAVE_SYS_TIMES_H
12356 #include <sys/times.h>
12357 #endif
12358
12359
12360 int
12361 main ()
12362 {
12363 #ifndef $ac_func
12364 char *(*pfn) = (char *(*)) $ac_func ;
12365 #endif
12366 ;
12367 return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_cxx_try_compile "$LINENO"; then :
12371 eval "gcc_cv_have_decl_$ac_func=yes"
12372 else
12373 eval "gcc_cv_have_decl_$ac_func=no"
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 fi
12377
12378 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12381 #define $ac_tr_decl 1
12382 _ACEOF
12383
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12387 #define $ac_tr_decl 0
12388 _ACEOF
12389
12390 fi
12391
12392 done
12393
12394
12395 for ac_func in sigaltstack
12396 do
12397 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12399 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12400 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #undef $ac_tr_decl
12406 #define $ac_tr_decl 1
12407
12408 #include "ansidecl.h"
12409 #include "system.h"
12410 #include <signal.h>
12411
12412
12413 int
12414 main ()
12415 {
12416 #ifndef $ac_func
12417 char *(*pfn) = (char *(*)) $ac_func ;
12418 #endif
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_cxx_try_compile "$LINENO"; then :
12424 eval "gcc_cv_have_decl_$ac_func=yes"
12425 else
12426 eval "gcc_cv_have_decl_$ac_func=no"
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 fi
12430
12431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12434 #define $ac_tr_decl 1
12435 _ACEOF
12436
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12440 #define $ac_tr_decl 0
12441 _ACEOF
12442
12443 fi
12444
12445 done
12446
12447
12448 # More time-related stuff.
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12450 $as_echo_n "checking for struct tms... " >&6; }
12451 if ${ac_cv_struct_tms+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457
12458 #include "ansidecl.h"
12459 #include "system.h"
12460 #ifdef HAVE_SYS_TIMES_H
12461 #include <sys/times.h>
12462 #endif
12463
12464 int
12465 main ()
12466 {
12467 struct tms tms;
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_cxx_try_compile "$LINENO"; then :
12473 ac_cv_struct_tms=yes
12474 else
12475 ac_cv_struct_tms=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12480 $as_echo "$ac_cv_struct_tms" >&6; }
12481 if test $ac_cv_struct_tms = yes; then
12482
12483 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12484
12485 fi
12486
12487 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12488 # revisit after autoconf 2.50.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12490 $as_echo_n "checking for clock_t... " >&6; }
12491 if ${gcc_cv_type_clock_t+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497
12498 #include "ansidecl.h"
12499 #include "system.h"
12500
12501 int
12502 main ()
12503 {
12504 clock_t x;
12505 ;
12506 return 0;
12507 }
12508 _ACEOF
12509 if ac_fn_cxx_try_compile "$LINENO"; then :
12510 gcc_cv_type_clock_t=yes
12511 else
12512 gcc_cv_type_clock_t=no
12513 fi
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12517 $as_echo "$gcc_cv_type_clock_t" >&6; }
12518 if test $gcc_cv_type_clock_t = yes; then
12519
12520 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12521
12522 fi
12523
12524 # Check if F_SETLKW is supported by fcntl.
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12526 $as_echo_n "checking for F_SETLKW... " >&6; }
12527 if ${ac_cv_f_setlkw+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533
12534 #include <fcntl.h>
12535 int
12536 main ()
12537 {
12538
12539 struct flock fl;
12540 fl.l_whence = 0;
12541 fl.l_start = 0;
12542 fl.l_len = 0;
12543 fl.l_pid = 0;
12544 return fcntl (1, F_SETLKW, &fl);
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_cxx_try_compile "$LINENO"; then :
12550 ac_cv_f_setlkw=yes
12551 else
12552 ac_cv_f_setlkw=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12557 $as_echo "$ac_cv_f_setlkw" >&6; }
12558 if test $ac_cv_f_setlkw = yes; then
12559
12560 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12561
12562 fi
12563
12564 # Check if O_CLOEXEC is defined by fcntl
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12566 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12567 if ${ac_cv_o_cloexec+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573
12574 #include <fcntl.h>
12575 int
12576 main ()
12577 {
12578
12579 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_cxx_try_compile "$LINENO"; then :
12585 ac_cv_o_cloexec=yes
12586 else
12587 ac_cv_o_cloexec=no
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12592 $as_echo "$ac_cv_o_cloexec" >&6; }
12593 if test $ac_cv_o_cloexec = yes; then
12594
12595 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12596
12597 fi
12598
12599 # Check if O_NONBLOCK is defined by fcntl
12600 for ac_header in fcntl.h
12601 do :
12602 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12603 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12604 cat >>confdefs.h <<_ACEOF
12605 #define HAVE_FCNTL_H 1
12606 _ACEOF
12607
12608 fi
12609 done
12610
12611 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12612 "
12613 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12614
12615 fi
12616
12617 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12618
12619 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12620
12621 fi
12622
12623
12624 # C++ Modules would like some networking features to provide the mapping
12625 # server. You can still use modules without them though.
12626 # The following network-related checks could probably do with some
12627 # Windows and other non-linux defenses and checking.
12628
12629 # Local socket connectivity wants AF_UNIX networking
12630 # Check for AF_UNIX networking
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12632 $as_echo_n "checking for AF_UNIX... " >&6; }
12633 if ${ac_cv_af_unix+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639
12640 #include <sys/types.h>
12641 #include <sys/socket.h>
12642 #include <sys/un.h>
12643 #include <netinet/in.h>
12644 int
12645 main ()
12646 {
12647
12648 sockaddr_un un;
12649 un.sun_family = AF_UNSPEC;
12650 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12651 connect (fd, (sockaddr *)&un, sizeof (un));
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_cxx_try_compile "$LINENO"; then :
12657 ac_cv_af_unix=yes
12658 else
12659 ac_cv_af_unix=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12664 $as_echo "$ac_cv_af_unix" >&6; }
12665 if test $ac_cv_af_unix = yes; then
12666
12667 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12668
12669 fi
12670
12671 # Remote socket connectivity wants AF_INET6 networking
12672 # Check for AF_INET6 networking
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12674 $as_echo_n "checking for AF_INET6... " >&6; }
12675 if ${ac_cv_af_inet6+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681
12682 #include <sys/types.h>
12683 #include <sys/socket.h>
12684 #include <netinet/in.h>
12685 #include <netdb.h>
12686 int
12687 main ()
12688 {
12689
12690 sockaddr_in6 in6;
12691 in6.sin6_family = AF_UNSPEC;
12692 struct addrinfo *addrs = 0;
12693 struct addrinfo hints;
12694 hints.ai_flags = 0;
12695 hints.ai_family = AF_INET6;
12696 hints.ai_socktype = SOCK_STREAM;
12697 hints.ai_protocol = 0;
12698 hints.ai_canonname = 0;
12699 hints.ai_addr = 0;
12700 hints.ai_next = 0;
12701 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12702 const char *str = gai_strerror (e);
12703 freeaddrinfo (addrs);
12704 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12705 connect (fd, (sockaddr *)&in6, sizeof (in6));
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_cxx_try_compile "$LINENO"; then :
12711 ac_cv_af_inet6=yes
12712 else
12713 ac_cv_af_inet6=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12718 $as_echo "$ac_cv_af_inet6" >&6; }
12719 if test $ac_cv_af_inet6 = yes; then
12720
12721 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12722
12723 fi
12724
12725 # Check if _LK_LOCK is supported by _locking
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12727 $as_echo_n "checking for _LK_LOCK... " >&6; }
12728 if ${ac_cv_lk_lock+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734
12735 #include <io.h>
12736 #include <sys/locking.h>
12737 int
12738 main ()
12739 {
12740
12741 int fd;
12742 return _locking (fd, _LK_LOCK, 0);
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_cxx_try_compile "$LINENO"; then :
12748 ac_cv_lk_lock=yes
12749 else
12750 ac_cv_lk_lock=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12755 $as_echo "$ac_cv_lk_lock" >&6; }
12756 if test $ac_cv_lk_lock = yes; then
12757
12758 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12759
12760 fi
12761
12762 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12763 CFLAGS="$saved_CFLAGS"
12764 CXXFLAGS="$saved_CXXFLAGS"
12765
12766 # mkdir takes a single argument on some systems.
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12768 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12769 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774
12775 #include <sys/types.h>
12776 #ifdef HAVE_SYS_STAT_H
12777 # include <sys/stat.h>
12778 #endif
12779 #ifdef HAVE_UNISTD_H
12780 # include <unistd.h>
12781 #endif
12782 #ifdef HAVE_DIRECT_H
12783 # include <direct.h>
12784 #endif
12785 int
12786 main ()
12787 {
12788 mkdir ("foo", 0);
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_cxx_try_compile "$LINENO"; then :
12794 gcc_cv_mkdir_takes_one_arg=no
12795 else
12796 gcc_cv_mkdir_takes_one_arg=yes
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12801 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12802 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12803
12804 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12805
12806 fi
12807
12808
12809 # File extensions
12810 manext='.1'
12811 objext='.o'
12812
12813
12814
12815 # With Setjmp/Longjmp based exception handling.
12816 # Check whether --enable-sjlj-exceptions was given.
12817 if test "${enable_sjlj_exceptions+set}" = set; then :
12818 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12819 else
12820 case $target in
12821 lm32*-*-*)
12822 force_sjlj_exceptions=yes
12823 enableval=yes
12824 ;;
12825 *)
12826 force_sjlj_exceptions=no
12827 ;;
12828 esac
12829 fi
12830
12831 if test $force_sjlj_exceptions = yes; then
12832 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12833
12834 cat >>confdefs.h <<_ACEOF
12835 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12836 _ACEOF
12837
12838 fi
12839
12840 # Windows32 UTF-8 manifest support for running the driver and compiler
12841 # executables with the UTF-8 active code page on mingw hosts.
12842 # Non-mingw hosts ignore this option.
12843 # The shell variables this sets are picked up from the mingw branches
12844 # of config.host so they have to be set before it gets sourced.
12845 # Check whether --enable-win32-utf8-manifest was given.
12846 if test "${enable_win32_utf8_manifest+set}" = set; then :
12847 enableval=$enable_win32_utf8_manifest;
12848 fi
12849
12850
12851 if test "x$enable_win32_utf8_manifest" != xno; then
12852 host_xmake_mingw=i386/x-mingw32-utf8
12853 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
12854 host_extra_objs_mingw=utf8-mingw32.o
12855 fi
12856
12857 # --------------------------------------------------------
12858 # Build, host, and target specific configuration fragments
12859 # --------------------------------------------------------
12860
12861 # Collect build-machine-specific information.
12862 . ${srcdir}/config.build || exit 1
12863
12864 # Collect host-machine-specific information.
12865 . ${srcdir}/config.host || exit 1
12866
12867 target_gtfiles=
12868
12869 # Collect target-machine-specific information.
12870 . ${srcdir}/config.gcc || exit 1
12871
12872 extra_objs="${host_extra_objs} ${extra_objs}"
12873 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12874
12875 # Default the target-machine variables that were not explicitly set.
12876 if test x"$tm_file" = x
12877 then tm_file=$cpu_type/$cpu_type.h; fi
12878
12879 if test x"$extra_headers" = x
12880 then extra_headers=; fi
12881
12882 if test x$md_file = x
12883 then md_file=$cpu_type/$cpu_type.md; fi
12884
12885 if test x$out_file = x
12886 then out_file=$cpu_type/$cpu_type.cc; fi
12887
12888 if test x"$tmake_file" = x
12889 then tmake_file=$cpu_type/t-$cpu_type
12890 fi
12891
12892 # Support --enable-initfini-array.
12893 if test x$enable_initfini_array != xno; then
12894 tm_file="${tm_file} initfini-array.h"
12895 fi
12896
12897 if test x"$dwarf2" = xyes
12898 then tm_file="$tm_file tm-dwarf2.h"
12899 fi
12900
12901 # Say what files are being used for the output code and MD file.
12902 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12903 echo "Using \`$srcdir/config/$md_file' as machine description file."
12904
12905 # If any of the xm_file variables contain nonexistent files, warn
12906 # about them and drop them.
12907
12908 bx=
12909 for x in $build_xm_file; do
12910 if test -f $srcdir/config/$x
12911 then bx="$bx $x"
12912 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12913 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12914 fi
12915 done
12916 build_xm_file="$bx"
12917
12918 hx=
12919 for x in $host_xm_file; do
12920 if test -f $srcdir/config/$x
12921 then hx="$hx $x"
12922 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12923 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12924 fi
12925 done
12926 host_xm_file="$hx"
12927
12928 tx=
12929 for x in $xm_file; do
12930 if test -f $srcdir/config/$x
12931 then tx="$tx $x"
12932 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12933 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12934 fi
12935 done
12936 xm_file="$tx"
12937
12938 count=a
12939 for f in $tm_file; do
12940 count=${count}x
12941 done
12942 if test $count = ax; then
12943 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12944 else
12945 echo "Using the following target machine macro files:"
12946 for f in $tm_file; do
12947 echo " $srcdir/config/$f"
12948 done
12949 fi
12950
12951 if test x$use_long_long_for_widest_fast_int = xyes; then
12952
12953 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12954
12955 fi
12956
12957 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12958
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_GNU_LD $gnu_ld_bool
12961 _ACEOF
12962
12963
12964 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12965
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_GNU_AS $gnu_as_bool
12968 _ACEOF
12969
12970
12971 count=a
12972 for f in $host_xm_file; do
12973 count=${count}x
12974 done
12975 if test $count = a; then
12976 :
12977 elif test $count = ax; then
12978 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12979 else
12980 echo "Using the following host machine macro files:"
12981 for f in $host_xm_file; do
12982 echo " $srcdir/config/$f"
12983 done
12984 fi
12985 echo "Using ${out_host_hook_obj} for host machine hooks."
12986
12987 if test "$host_xm_file" != "$build_xm_file"; then
12988 count=a
12989 for f in $build_xm_file; do
12990 count=${count}x
12991 done
12992 if test $count = a; then
12993 :
12994 elif test $count = ax; then
12995 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12996 else
12997 echo "Using the following build machine macro files:"
12998 for f in $build_xm_file; do
12999 echo " $srcdir/config/$f"
13000 done
13001 fi
13002 fi
13003
13004 if test -n "$configured_native_system_header_dir"; then
13005 native_system_header_dir=$configured_native_system_header_dir
13006 fi
13007 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13008
13009
13010 case ${host} in
13011 powerpc*-*-darwin*)
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13013 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13014 if ${gcc_cv_mcontext_underscores+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019
13020 #include <sys/cdefs.h>
13021 #include <sys/signal.h>
13022 #include <ucontext.h>
13023 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13024
13025 _ACEOF
13026 if ac_fn_cxx_try_compile "$LINENO"; then :
13027 gcc_cv_mcontext_underscores=no
13028 else
13029 gcc_cv_mcontext_underscores=yes
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 fi
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13034 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13035 if test $gcc_cv_mcontext_underscores = yes; then
13036
13037 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13038
13039 fi
13040 ;;
13041 esac
13042
13043 # ---------
13044 # Threading
13045 # ---------
13046
13047 # Check if a valid thread package
13048 case ${enable_threads} in
13049 "" | no)
13050 # No threads
13051 target_thread_file='single'
13052 ;;
13053 yes)
13054 # default
13055 target_thread_file='single'
13056 ;;
13057 aix | dce | lynx | mipssde | posix | rtems | \
13058 single | tpf | vxworks | win32 | mcf)
13059 target_thread_file=${enable_threads}
13060 ;;
13061 *)
13062 echo "${enable_threads} is an unknown thread package" 1>&2
13063 exit 1
13064 ;;
13065 esac
13066
13067 if test x${thread_file} = x; then
13068 # No thread file set by target-specific clauses in config.gcc,
13069 # so use file chosen by default logic above
13070 thread_file=${target_thread_file}
13071 fi
13072
13073 # --------
13074 # UNSORTED
13075 # --------
13076
13077 use_cxa_atexit=no
13078 if test x$enable___cxa_atexit = xyes || \
13079 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13080 if test x$host = x$target; then
13081 case $host in
13082 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13083 # keyed to flag_use_cxa_atexit
13084 *-*-mingw32*)
13085 use_cxa_atexit=yes
13086 ;;
13087 powerpc-ibm-aix*)
13088 use_cxa_atexit=yes
13089 ;;
13090 *)
13091 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13092 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13093 use_cxa_atexit=yes
13094 else
13095 echo "__cxa_atexit can't be enabled on this target"
13096 fi
13097
13098 ;;
13099 esac
13100 else
13101 # We can't check for __cxa_atexit when building a cross, so assume
13102 # it is available
13103 use_cxa_atexit=yes
13104 fi
13105 if test x$use_cxa_atexit = xyes; then
13106
13107 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13108
13109 fi
13110 fi
13111
13112 # Look for a file containing extra machine modes.
13113 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13114 extra_modes_file='$(srcdir)'/config/${extra_modes}
13115
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define EXTRA_MODES_FILE "config/$extra_modes"
13119 _ACEOF
13120
13121 fi
13122
13123 # Convert extra_options into a form suitable for Makefile use.
13124 extra_opt_files=
13125 all_opt_files=
13126 for f in $extra_options; do
13127 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13128 all_opt_files="$all_opt_files $srcdir/config/$f"
13129 done
13130
13131
13132 # auto-host.h is the file containing items generated by autoconf and is
13133 # the first file included by config.h.
13134 # If host=build, it is correct to have bconfig include auto-host.h
13135 # as well. If host!=build, we are in error and need to do more
13136 # work to find out the build config parameters.
13137 if test x$host = x$build
13138 then
13139 build_auto=auto-host.h
13140 HAVE_AUTO_BUILD='# '
13141 else
13142 # We create a subdir, then run autoconf in the subdir.
13143 # To prevent recursion we set host and build for the new
13144 # invocation of configure to the build for this invocation
13145 # of configure.
13146 tempdir=build.$$
13147 rm -rf $tempdir
13148 mkdir $tempdir
13149 cd $tempdir
13150 case ${srcdir} in
13151 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13152 *) realsrcdir=../${srcdir};;
13153 esac
13154 # Clearing GMPINC is necessary to prevent host headers being
13155 # used by the build compiler. Defining GENERATOR_FILE stops
13156 # system.h from including gmp.h.
13157 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13158 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13159 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13160 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13161 ${realsrcdir}/configure \
13162 --enable-languages=${enable_languages-all} \
13163 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13164 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13165 --target=$target_alias --host=$build_alias \
13166 --build=$build_alias || exit # retaining $tempdir
13167
13168 # We just finished tests for the build machine, so rename
13169 # the file auto-build.h in the gcc directory.
13170 mv auto-host.h ../auto-build.h
13171 cd ..
13172 rm -rf $tempdir
13173 build_auto=auto-build.h
13174 HAVE_AUTO_BUILD=
13175 fi
13176
13177
13178
13179 tm_file="${tm_file} defaults.h"
13180 tm_p_file="${tm_p_file} tm-preds.h"
13181 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13182 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13183 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13184 # put this back in temporarily.
13185 xm_file="auto-host.h ansidecl.h ${xm_file}"
13186
13187 # --------
13188 # UNSORTED
13189 # --------
13190
13191 # Compile in configure arguments.
13192 if test -f configargs.h ; then
13193 # Being re-configured.
13194 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13195 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13196 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13197 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13198 fi
13199 else
13200 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13201 fi
13202
13203 # Double all backslashes and backslash all quotes to turn
13204 # gcc_config_arguments into a C string.
13205 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13206 $gcc_config_arguments
13207 EOF
13208 gcc_config_arguments_str=`cat conftest.out`
13209 rm -f conftest.out
13210
13211 cat > configargs.h <<EOF
13212 /* Generated automatically. */
13213 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13214 static const char thread_model[] = "$thread_file";
13215
13216 static const struct {
13217 const char *name, *value;
13218 } configure_default_options[] = $configure_default_options;
13219 EOF
13220
13221 gcc_BASEVER=`cat $srcdir/BASE-VER`
13222 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13223 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13224 if test -f $srcdir/REVISION ; then
13225 gcc_REVISION=`cat $srcdir/REVISION`
13226 else
13227 gcc_REVISION=""
13228 fi
13229 cat > plugin-version.h <<EOF
13230 #include "configargs.h"
13231
13232 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13233 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13234 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13235 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13236
13237 static char basever[] = "$gcc_BASEVER";
13238 static char datestamp[] = "$gcc_DATESTAMP";
13239 static char devphase[] = "$gcc_DEVPHASE";
13240 static char revision[] = "$gcc_REVISION";
13241
13242 /* FIXME plugins: We should make the version information more precise.
13243 One way to do is to add a checksum. */
13244
13245 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13246 devphase, revision,
13247 configuration_arguments};
13248 EOF
13249
13250 # Determine what GCC version number to use in filesystem paths.
13251
13252 get_gcc_base_ver="cat"
13253
13254 # Check whether --with-gcc-major-version-only was given.
13255 if test "${with_gcc_major_version_only+set}" = set; then :
13256 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13257 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13258 fi
13259
13260 fi
13261
13262
13263
13264
13265 # Internationalization
13266 # Find a good install program. We prefer a C program (faster),
13267 # so one script is as good as another. But avoid the broken or
13268 # incompatible versions:
13269 # SysV /etc/install, /usr/sbin/install
13270 # SunOS /usr/etc/install
13271 # IRIX /sbin/install
13272 # AIX /bin/install
13273 # AmigaOS /C/install, which installs bootblocks on floppy discs
13274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13277 # OS/2's system install, which has a completely different semantic
13278 # ./install, which can be erroneously created by make from ./install.sh.
13279 # Reject install programs that cannot install multiple files.
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13282 if test -z "$INSTALL"; then
13283 if ${ac_cv_path_install+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 # Account for people who put trailing slashes in PATH elements.
13292 case $as_dir/ in #((
13293 ./ | .// | /[cC]/* | \
13294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13296 /usr/ucb/* ) ;;
13297 *)
13298 # OSF1 and SCO ODT 3.0 have their own names for install.
13299 # Don't use installbsd from OSF since it installs stuff as root
13300 # by default.
13301 for ac_prog in ginstall scoinst install; do
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13304 if test $ac_prog = install &&
13305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13306 # AIX install. It has an incompatible calling convention.
13307 :
13308 elif test $ac_prog = install &&
13309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13310 # program-specific install script used by HP pwplus--don't use.
13311 :
13312 else
13313 rm -rf conftest.one conftest.two conftest.dir
13314 echo one > conftest.one
13315 echo two > conftest.two
13316 mkdir conftest.dir
13317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13318 test -s conftest.one && test -s conftest.two &&
13319 test -s conftest.dir/conftest.one &&
13320 test -s conftest.dir/conftest.two
13321 then
13322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13323 break 3
13324 fi
13325 fi
13326 fi
13327 done
13328 done
13329 ;;
13330 esac
13331
13332 done
13333 IFS=$as_save_IFS
13334
13335 rm -rf conftest.one conftest.two conftest.dir
13336
13337 fi
13338 if test "${ac_cv_path_install+set}" = set; then
13339 INSTALL=$ac_cv_path_install
13340 else
13341 # As a last resort, use the slow shell script. Don't cache a
13342 # value for INSTALL within a source directory, because that will
13343 # break other packages using the cache if that directory is
13344 # removed, or if the value is a relative name.
13345 INSTALL=$ac_install_sh
13346 fi
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13349 $as_echo "$INSTALL" >&6; }
13350
13351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13352 # It thinks the first close brace ends the variable substitution.
13353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13354
13355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13356
13357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13358
13359
13360 MKINSTALLDIRS=
13361 if test -n "$ac_aux_dir"; then
13362 case "$ac_aux_dir" in
13363 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13364 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13365 esac
13366 fi
13367 if test -z "$MKINSTALLDIRS"; then
13368 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13369 fi
13370
13371
13372
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13374 $as_echo_n "checking whether NLS is requested... " >&6; }
13375 # Check whether --enable-nls was given.
13376 if test "${enable_nls+set}" = set; then :
13377 enableval=$enable_nls; USE_NLS=$enableval
13378 else
13379 USE_NLS=yes
13380 fi
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13383 $as_echo "$USE_NLS" >&6; }
13384
13385
13386
13387
13388
13389
13390 # Prepare PATH_SEPARATOR.
13391 # The user is always right.
13392 if test "${PATH_SEPARATOR+set}" != set; then
13393 echo "#! /bin/sh" >conf$$.sh
13394 echo "exit 0" >>conf$$.sh
13395 chmod +x conf$$.sh
13396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13397 PATH_SEPARATOR=';'
13398 else
13399 PATH_SEPARATOR=:
13400 fi
13401 rm -f conf$$.sh
13402 fi
13403
13404 # Find out how to test for executable files. Don't use a zero-byte file,
13405 # as systems may use methods other than mode bits to determine executability.
13406 cat >conf$$.file <<_ASEOF
13407 #! /bin/sh
13408 exit 0
13409 _ASEOF
13410 chmod +x conf$$.file
13411 if test -x conf$$.file >/dev/null 2>&1; then
13412 ac_executable_p="test -x"
13413 else
13414 ac_executable_p="test -f"
13415 fi
13416 rm -f conf$$.file
13417
13418 # Extract the first word of "msgfmt", so it can be a program name with args.
13419 set dummy msgfmt; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_path_MSGFMT+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 case "$MSGFMT" in
13426 [\\/]* | ?:[\\/]*)
13427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13428 ;;
13429 *)
13430 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13431 for ac_dir in $PATH; do
13432 IFS="$ac_save_IFS"
13433 test -z "$ac_dir" && ac_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13436 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13437 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13438 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13439 break 2
13440 fi
13441 fi
13442 done
13443 done
13444 IFS="$ac_save_IFS"
13445 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13446 ;;
13447 esac
13448 fi
13449 MSGFMT="$ac_cv_path_MSGFMT"
13450 if test "$MSGFMT" != ":"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13452 $as_echo "$MSGFMT" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13457
13458 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13459 set dummy gmsgfmt; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_path_GMSGFMT+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 case $GMSGFMT in
13466 [\\/]* | ?:[\\/]*)
13467 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13468 ;;
13469 *)
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481 done
13482 done
13483 IFS=$as_save_IFS
13484
13485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13486 ;;
13487 esac
13488 fi
13489 GMSGFMT=$ac_cv_path_GMSGFMT
13490 if test -n "$GMSGFMT"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13492 $as_echo "$GMSGFMT" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 fi
13497
13498
13499
13500
13501 # Prepare PATH_SEPARATOR.
13502 # The user is always right.
13503 if test "${PATH_SEPARATOR+set}" != set; then
13504 echo "#! /bin/sh" >conf$$.sh
13505 echo "exit 0" >>conf$$.sh
13506 chmod +x conf$$.sh
13507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13508 PATH_SEPARATOR=';'
13509 else
13510 PATH_SEPARATOR=:
13511 fi
13512 rm -f conf$$.sh
13513 fi
13514
13515 # Find out how to test for executable files. Don't use a zero-byte file,
13516 # as systems may use methods other than mode bits to determine executability.
13517 cat >conf$$.file <<_ASEOF
13518 #! /bin/sh
13519 exit 0
13520 _ASEOF
13521 chmod +x conf$$.file
13522 if test -x conf$$.file >/dev/null 2>&1; then
13523 ac_executable_p="test -x"
13524 else
13525 ac_executable_p="test -f"
13526 fi
13527 rm -f conf$$.file
13528
13529 # Extract the first word of "xgettext", so it can be a program name with args.
13530 set dummy xgettext; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if ${ac_cv_path_XGETTEXT+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 case "$XGETTEXT" in
13537 [\\/]* | ?:[\\/]*)
13538 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13539 ;;
13540 *)
13541 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13542 for ac_dir in $PATH; do
13543 IFS="$ac_save_IFS"
13544 test -z "$ac_dir" && ac_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13547 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13548 (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
13549 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13550 break 2
13551 fi
13552 fi
13553 done
13554 done
13555 IFS="$ac_save_IFS"
13556 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13557 ;;
13558 esac
13559 fi
13560 XGETTEXT="$ac_cv_path_XGETTEXT"
13561 if test "$XGETTEXT" != ":"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13563 $as_echo "$XGETTEXT" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568
13569 rm -f messages.po
13570
13571
13572 # Prepare PATH_SEPARATOR.
13573 # The user is always right.
13574 if test "${PATH_SEPARATOR+set}" != set; then
13575 echo "#! /bin/sh" >conf$$.sh
13576 echo "exit 0" >>conf$$.sh
13577 chmod +x conf$$.sh
13578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13579 PATH_SEPARATOR=';'
13580 else
13581 PATH_SEPARATOR=:
13582 fi
13583 rm -f conf$$.sh
13584 fi
13585
13586 # Find out how to test for executable files. Don't use a zero-byte file,
13587 # as systems may use methods other than mode bits to determine executability.
13588 cat >conf$$.file <<_ASEOF
13589 #! /bin/sh
13590 exit 0
13591 _ASEOF
13592 chmod +x conf$$.file
13593 if test -x conf$$.file >/dev/null 2>&1; then
13594 ac_executable_p="test -x"
13595 else
13596 ac_executable_p="test -f"
13597 fi
13598 rm -f conf$$.file
13599
13600 # Extract the first word of "msgmerge", so it can be a program name with args.
13601 set dummy msgmerge; ac_word=$2
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 $as_echo_n "checking for $ac_word... " >&6; }
13604 if ${ac_cv_path_MSGMERGE+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 case "$MSGMERGE" in
13608 [\\/]* | ?:[\\/]*)
13609 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13610 ;;
13611 *)
13612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13613 for ac_dir in $PATH; do
13614 IFS="$ac_save_IFS"
13615 test -z "$ac_dir" && ac_dir=.
13616 for ac_exec_ext in '' $ac_executable_extensions; do
13617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13618 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13619 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13620 break 2
13621 fi
13622 fi
13623 done
13624 done
13625 IFS="$ac_save_IFS"
13626 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13627 ;;
13628 esac
13629 fi
13630 MSGMERGE="$ac_cv_path_MSGMERGE"
13631 if test "$MSGMERGE" != ":"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13633 $as_echo "$MSGMERGE" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639
13640 if test "$GMSGFMT" != ":"; then
13641 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13642 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13643 : ;
13644 else
13645 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13647 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13648 GMSGFMT=":"
13649 fi
13650 fi
13651
13652 if test "$XGETTEXT" != ":"; then
13653 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13654 (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
13655 : ;
13656 else
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13658 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13659 XGETTEXT=":"
13660 fi
13661 rm -f messages.po
13662 fi
13663
13664 ac_config_commands="$ac_config_commands default-1"
13665
13666
13667
13668
13669
13670 if test -f ../gettext/uninstalled-config.sh; then
13671 relative_builddir='$(top_builddir)/../gettext'
13672 . ../gettext/uninstalled-config.sh
13673 else
13674 # The sister gettext directory doesn't exist and won't collect information on
13675 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13700 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13701 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 gt_save_LIBS="$LIBS"
13705 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 #include <CoreFoundation/CFPreferences.h>
13709 int
13710 main ()
13711 {
13712 CFPreferencesCopyAppValue(NULL, NULL)
13713 ;
13714 return 0;
13715 }
13716 _ACEOF
13717 if ac_fn_cxx_try_link "$LINENO"; then :
13718 gt_cv_func_CFPreferencesCopyAppValue=yes
13719 else
13720 gt_cv_func_CFPreferencesCopyAppValue=no
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS="$gt_save_LIBS"
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13727 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13728 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13729
13730 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13731
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13734 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13735 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 gt_save_LIBS="$LIBS"
13739 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 #include <CoreFoundation/CFLocale.h>
13743 int
13744 main ()
13745 {
13746 CFLocaleCopyPreferredLanguages();
13747 ;
13748 return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_cxx_try_link "$LINENO"; then :
13752 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13753 else
13754 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758 LIBS="$gt_save_LIBS"
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13761 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13762 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13763
13764 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13765
13766 fi
13767 INTL_MACOSX_LIBS=
13768 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13769 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13770 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13771 fi
13772
13773
13774
13775
13776
13777
13778 LIBINTL=
13779 LTLIBINTL=
13780 POSUB=
13781
13782 case " $gt_needs " in
13783 *" need-formatstring-macros "*) gt_api_version=3 ;;
13784 *" need-ngettext "*) gt_api_version=2 ;;
13785 *) gt_api_version=1 ;;
13786 esac
13787 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13788 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13789
13790 if test "$USE_NLS" = "yes"; then
13791 gt_use_preinstalled_gnugettext=no
13792
13793
13794 if test $gt_api_version -ge 3; then
13795 gt_revision_test_code='
13796 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13797 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13798 #endif
13799 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13800 '
13801 else
13802 gt_revision_test_code=
13803 fi
13804 if test $gt_api_version -ge 2; then
13805 gt_expression_test_code=' + * ngettext ("", "", 0)'
13806 else
13807 gt_expression_test_code=
13808 fi
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13811 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13812 if eval \${$gt_func_gnugettext_libc+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817
13818 #include <libintl.h>
13819 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13820 extern int _nl_msg_cat_cntr;
13821 extern int *_nl_domain_bindings;
13822 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13823 #else
13824 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13825 #endif
13826 $gt_revision_test_code
13827
13828 int
13829 main ()
13830 {
13831
13832 bindtextdomain ("", "");
13833 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13834
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 if ac_fn_cxx_try_link "$LINENO"; then :
13840 eval "$gt_func_gnugettext_libc=yes"
13841 else
13842 eval "$gt_func_gnugettext_libc=no"
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13846 fi
13847 eval ac_res=\$$gt_func_gnugettext_libc
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13849 $as_echo "$ac_res" >&6; }
13850
13851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13852
13853
13854
13855
13856
13857 am_save_CPPFLAGS="$CPPFLAGS"
13858
13859 for element in $INCICONV; do
13860 haveit=
13861 for x in $CPPFLAGS; do
13862
13863 acl_save_prefix="$prefix"
13864 prefix="$acl_final_prefix"
13865 acl_save_exec_prefix="$exec_prefix"
13866 exec_prefix="$acl_final_exec_prefix"
13867 eval x=\"$x\"
13868 exec_prefix="$acl_save_exec_prefix"
13869 prefix="$acl_save_prefix"
13870
13871 if test "X$x" = "X$element"; then
13872 haveit=yes
13873 break
13874 fi
13875 done
13876 if test -z "$haveit"; then
13877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13878 fi
13879 done
13880
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13883 $as_echo_n "checking for iconv... " >&6; }
13884 if ${am_cv_func_iconv+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887
13888 am_cv_func_iconv="no, consider installing GNU libiconv"
13889 am_cv_lib_iconv=no
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892
13893 #include <stdlib.h>
13894 #include <iconv.h>
13895
13896 int
13897 main ()
13898 {
13899 iconv_t cd = iconv_open("","");
13900 iconv(cd,NULL,NULL,NULL,NULL);
13901 iconv_close(cd);
13902 ;
13903 return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_cxx_try_link "$LINENO"; then :
13907 am_cv_func_iconv=yes
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 if test "$am_cv_func_iconv" != yes; then
13912 am_save_LIBS="$LIBS"
13913 LIBS="$LIBS $LIBICONV"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 #include <stdlib.h>
13918 #include <iconv.h>
13919
13920 int
13921 main ()
13922 {
13923 iconv_t cd = iconv_open("","");
13924 iconv(cd,NULL,NULL,NULL,NULL);
13925 iconv_close(cd);
13926 ;
13927 return 0;
13928 }
13929 _ACEOF
13930 if ac_fn_cxx_try_link "$LINENO"; then :
13931 am_cv_lib_iconv=yes
13932 am_cv_func_iconv=yes
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS="$am_save_LIBS"
13937 fi
13938
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13941 $as_echo "$am_cv_func_iconv" >&6; }
13942 if test "$am_cv_func_iconv" = yes; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13944 $as_echo_n "checking for working iconv... " >&6; }
13945 if ${am_cv_func_iconv_works+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948
13949 am_save_LIBS="$LIBS"
13950 if test $am_cv_lib_iconv = yes; then
13951 LIBS="$LIBS $LIBICONV"
13952 fi
13953 am_cv_func_iconv_works=no
13954 for ac_iconv_const in '' 'const'; do
13955 if test "$cross_compiling" = yes; then :
13956 case "$host_os" in
13957 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13958 *) am_cv_func_iconv_works="guessing yes" ;;
13959 esac
13960 else
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963
13964 #include <iconv.h>
13965 #include <string.h>
13966
13967 #ifndef ICONV_CONST
13968 # define ICONV_CONST $ac_iconv_const
13969 #endif
13970
13971 int
13972 main ()
13973 {
13974 int result = 0;
13975 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13976 successful returns. This is even documented in
13977 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13978 {
13979 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13980 if (cd_utf8_to_88591 != (iconv_t)(-1))
13981 {
13982 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13983 char buf[10];
13984 ICONV_CONST char *inptr = input;
13985 size_t inbytesleft = strlen (input);
13986 char *outptr = buf;
13987 size_t outbytesleft = sizeof (buf);
13988 size_t res = iconv (cd_utf8_to_88591,
13989 &inptr, &inbytesleft,
13990 &outptr, &outbytesleft);
13991 if (res == 0)
13992 result |= 1;
13993 iconv_close (cd_utf8_to_88591);
13994 }
13995 }
13996 /* Test against Solaris 10 bug: Failures are not distinguishable from
13997 successful returns. */
13998 {
13999 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14000 if (cd_ascii_to_88591 != (iconv_t)(-1))
14001 {
14002 static ICONV_CONST char input[] = "\263";
14003 char buf[10];
14004 ICONV_CONST char *inptr = input;
14005 size_t inbytesleft = strlen (input);
14006 char *outptr = buf;
14007 size_t outbytesleft = sizeof (buf);
14008 size_t res = iconv (cd_ascii_to_88591,
14009 &inptr, &inbytesleft,
14010 &outptr, &outbytesleft);
14011 if (res == 0)
14012 result |= 2;
14013 iconv_close (cd_ascii_to_88591);
14014 }
14015 }
14016 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14017 {
14018 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14019 if (cd_88591_to_utf8 != (iconv_t)(-1))
14020 {
14021 static ICONV_CONST char input[] = "\304";
14022 static char buf[2] = { (char)0xDE, (char)0xAD };
14023 ICONV_CONST char *inptr = input;
14024 size_t inbytesleft = 1;
14025 char *outptr = buf;
14026 size_t outbytesleft = 1;
14027 size_t res = iconv (cd_88591_to_utf8,
14028 &inptr, &inbytesleft,
14029 &outptr, &outbytesleft);
14030 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14031 result |= 4;
14032 iconv_close (cd_88591_to_utf8);
14033 }
14034 }
14035 #if 0 /* This bug could be worked around by the caller. */
14036 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14037 {
14038 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14039 if (cd_88591_to_utf8 != (iconv_t)(-1))
14040 {
14041 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14042 char buf[50];
14043 ICONV_CONST char *inptr = input;
14044 size_t inbytesleft = strlen (input);
14045 char *outptr = buf;
14046 size_t outbytesleft = sizeof (buf);
14047 size_t res = iconv (cd_88591_to_utf8,
14048 &inptr, &inbytesleft,
14049 &outptr, &outbytesleft);
14050 if ((int)res > 0)
14051 result |= 8;
14052 iconv_close (cd_88591_to_utf8);
14053 }
14054 }
14055 #endif
14056 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14057 provided. */
14058 {
14059 /* Try standardized names. */
14060 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14061 /* Try IRIX, OSF/1 names. */
14062 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14063 /* Try AIX names. */
14064 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14065 /* Try HP-UX names. */
14066 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14067 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14068 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14069 result |= 16;
14070 if (cd1 != (iconv_t)(-1))
14071 iconv_close (cd1);
14072 if (cd2 != (iconv_t)(-1))
14073 iconv_close (cd2);
14074 if (cd3 != (iconv_t)(-1))
14075 iconv_close (cd3);
14076 if (cd4 != (iconv_t)(-1))
14077 iconv_close (cd4);
14078 }
14079 return result;
14080
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_cxx_try_run "$LINENO"; then :
14086 am_cv_func_iconv_works=yes
14087 fi
14088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14089 conftest.$ac_objext conftest.beam conftest.$ac_ext
14090 fi
14091
14092 test "$am_cv_func_iconv_works" = no || break
14093 done
14094 LIBS="$am_save_LIBS"
14095
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14098 $as_echo "$am_cv_func_iconv_works" >&6; }
14099 case "$am_cv_func_iconv_works" in
14100 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14101 *) am_func_iconv=yes ;;
14102 esac
14103 else
14104 am_func_iconv=no am_cv_lib_iconv=no
14105 fi
14106 if test "$am_func_iconv" = yes; then
14107
14108 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14109
14110 fi
14111 if test "$am_cv_lib_iconv" = yes; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14113 $as_echo_n "checking how to link with libiconv... " >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14115 $as_echo "$LIBICONV" >&6; }
14116 else
14117 CPPFLAGS="$am_save_CPPFLAGS"
14118 LIBICONV=
14119 LTLIBICONV=
14120 fi
14121
14122
14123
14124
14125
14126
14127 use_additional=yes
14128
14129 acl_save_prefix="$prefix"
14130 prefix="$acl_final_prefix"
14131 acl_save_exec_prefix="$exec_prefix"
14132 exec_prefix="$acl_final_exec_prefix"
14133
14134 eval additional_includedir=\"$includedir\"
14135 eval additional_libdir=\"$libdir\"
14136
14137 exec_prefix="$acl_save_exec_prefix"
14138 prefix="$acl_save_prefix"
14139
14140
14141 # Check whether --with-libintl-prefix was given.
14142 if test "${with_libintl_prefix+set}" = set; then :
14143 withval=$with_libintl_prefix;
14144 if test "X$withval" = "Xno"; then
14145 use_additional=no
14146 else
14147 if test "X$withval" = "X"; then
14148
14149 acl_save_prefix="$prefix"
14150 prefix="$acl_final_prefix"
14151 acl_save_exec_prefix="$exec_prefix"
14152 exec_prefix="$acl_final_exec_prefix"
14153
14154 eval additional_includedir=\"$includedir\"
14155 eval additional_libdir=\"$libdir\"
14156
14157 exec_prefix="$acl_save_exec_prefix"
14158 prefix="$acl_save_prefix"
14159
14160 else
14161 additional_includedir="$withval/include"
14162 additional_libdir="$withval/lib"
14163 fi
14164 fi
14165
14166 fi
14167
14168
14169 # Check whether --with-libintl-type was given.
14170 if test "${with_libintl_type+set}" = set; then :
14171 withval=$with_libintl_type; with_libintl_type=$withval
14172 else
14173 with_libintl_type=auto
14174 fi
14175
14176 lib_type=`eval echo \$with_libintl_type`
14177
14178 LIBINTL=
14179 LTLIBINTL=
14180 INCINTL=
14181 rpathdirs=
14182 ltrpathdirs=
14183 names_already_handled=
14184 names_next_round='intl '
14185 while test -n "$names_next_round"; do
14186 names_this_round="$names_next_round"
14187 names_next_round=
14188 for name in $names_this_round; do
14189 already_handled=
14190 for n in $names_already_handled; do
14191 if test "$n" = "$name"; then
14192 already_handled=yes
14193 break
14194 fi
14195 done
14196 if test -z "$already_handled"; then
14197 names_already_handled="$names_already_handled $name"
14198 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14199 eval value=\"\$HAVE_LIB$uppername\"
14200 if test -n "$value"; then
14201 if test "$value" = yes; then
14202 eval value=\"\$LIB$uppername\"
14203 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14204 eval value=\"\$LTLIB$uppername\"
14205 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14206 else
14207 :
14208 fi
14209 else
14210 found_dir=
14211 found_la=
14212 found_so=
14213 found_a=
14214 if test $use_additional = yes; then
14215 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14216 found_dir="$additional_libdir"
14217 found_so="$additional_libdir/lib$name.$shlibext"
14218 if test -f "$additional_libdir/lib$name.la"; then
14219 found_la="$additional_libdir/lib$name.la"
14220 fi
14221 elif test x$lib_type != xshared; then
14222 if test -f "$additional_libdir/lib$name.$libext"; then
14223 found_dir="$additional_libdir"
14224 found_a="$additional_libdir/lib$name.$libext"
14225 if test -f "$additional_libdir/lib$name.la"; then
14226 found_la="$additional_libdir/lib$name.la"
14227 fi
14228 fi
14229 fi
14230 fi
14231 if test "X$found_dir" = "X"; then
14232 for x in $LDFLAGS $LTLIBINTL; do
14233
14234 acl_save_prefix="$prefix"
14235 prefix="$acl_final_prefix"
14236 acl_save_exec_prefix="$exec_prefix"
14237 exec_prefix="$acl_final_exec_prefix"
14238 eval x=\"$x\"
14239 exec_prefix="$acl_save_exec_prefix"
14240 prefix="$acl_save_prefix"
14241
14242 case "$x" in
14243 -L*)
14244 dir=`echo "X$x" | sed -e 's/^X-L//'`
14245 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14246 found_dir="$dir"
14247 found_so="$dir/lib$name.$shlibext"
14248 if test -f "$dir/lib$name.la"; then
14249 found_la="$dir/lib$name.la"
14250 fi
14251 elif test x$lib_type != xshared; then
14252 if test -f "$dir/lib$name.$libext"; then
14253 found_dir="$dir"
14254 found_a="$dir/lib$name.$libext"
14255 if test -f "$dir/lib$name.la"; then
14256 found_la="$dir/lib$name.la"
14257 fi
14258 fi
14259 fi
14260 ;;
14261 esac
14262 if test "X$found_dir" != "X"; then
14263 break
14264 fi
14265 done
14266 fi
14267 if test "X$found_dir" != "X"; then
14268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14269 if test "X$found_so" != "X"; then
14270 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14271 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14272 else
14273 haveit=
14274 for x in $ltrpathdirs; do
14275 if test "X$x" = "X$found_dir"; then
14276 haveit=yes
14277 break
14278 fi
14279 done
14280 if test -z "$haveit"; then
14281 ltrpathdirs="$ltrpathdirs $found_dir"
14282 fi
14283 if test "$hardcode_direct" = yes; then
14284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14285 else
14286 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14287 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14288 haveit=
14289 for x in $rpathdirs; do
14290 if test "X$x" = "X$found_dir"; then
14291 haveit=yes
14292 break
14293 fi
14294 done
14295 if test -z "$haveit"; then
14296 rpathdirs="$rpathdirs $found_dir"
14297 fi
14298 else
14299 haveit=
14300 for x in $LDFLAGS $LIBINTL; do
14301
14302 acl_save_prefix="$prefix"
14303 prefix="$acl_final_prefix"
14304 acl_save_exec_prefix="$exec_prefix"
14305 exec_prefix="$acl_final_exec_prefix"
14306 eval x=\"$x\"
14307 exec_prefix="$acl_save_exec_prefix"
14308 prefix="$acl_save_prefix"
14309
14310 if test "X$x" = "X-L$found_dir"; then
14311 haveit=yes
14312 break
14313 fi
14314 done
14315 if test -z "$haveit"; then
14316 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14317 fi
14318 if test "$hardcode_minus_L" != no; then
14319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14320 else
14321 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14322 fi
14323 fi
14324 fi
14325 fi
14326 else
14327 if test "X$found_a" != "X"; then
14328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14329 else
14330 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14331 fi
14332 fi
14333 additional_includedir=
14334 case "$found_dir" in
14335 */lib | */lib/)
14336 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14337 additional_includedir="$basedir/include"
14338 ;;
14339 esac
14340 if test "X$additional_includedir" != "X"; then
14341 if test "X$additional_includedir" != "X/usr/include"; then
14342 haveit=
14343 if test "X$additional_includedir" = "X/usr/local/include"; then
14344 if test -n "$GCC"; then
14345 case $host_os in
14346 linux*) haveit=yes;;
14347 esac
14348 fi
14349 fi
14350 if test -z "$haveit"; then
14351 for x in $CPPFLAGS $INCINTL; do
14352
14353 acl_save_prefix="$prefix"
14354 prefix="$acl_final_prefix"
14355 acl_save_exec_prefix="$exec_prefix"
14356 exec_prefix="$acl_final_exec_prefix"
14357 eval x=\"$x\"
14358 exec_prefix="$acl_save_exec_prefix"
14359 prefix="$acl_save_prefix"
14360
14361 if test "X$x" = "X-I$additional_includedir"; then
14362 haveit=yes
14363 break
14364 fi
14365 done
14366 if test -z "$haveit"; then
14367 if test -d "$additional_includedir"; then
14368 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14369 fi
14370 fi
14371 fi
14372 fi
14373 fi
14374 if test -n "$found_la"; then
14375 save_libdir="$libdir"
14376 case "$found_la" in
14377 */* | *\\*) . "$found_la" ;;
14378 *) . "./$found_la" ;;
14379 esac
14380 libdir="$save_libdir"
14381 for dep in $dependency_libs; do
14382 case "$dep" in
14383 -L*)
14384 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14385 if test "X$additional_libdir" != "X/usr/lib"; then
14386 haveit=
14387 if test "X$additional_libdir" = "X/usr/local/lib"; then
14388 if test -n "$GCC"; then
14389 case $host_os in
14390 linux*) haveit=yes;;
14391 esac
14392 fi
14393 fi
14394 if test -z "$haveit"; then
14395 haveit=
14396 for x in $LDFLAGS $LIBINTL; do
14397
14398 acl_save_prefix="$prefix"
14399 prefix="$acl_final_prefix"
14400 acl_save_exec_prefix="$exec_prefix"
14401 exec_prefix="$acl_final_exec_prefix"
14402 eval x=\"$x\"
14403 exec_prefix="$acl_save_exec_prefix"
14404 prefix="$acl_save_prefix"
14405
14406 if test "X$x" = "X-L$additional_libdir"; then
14407 haveit=yes
14408 break
14409 fi
14410 done
14411 if test -z "$haveit"; then
14412 if test -d "$additional_libdir"; then
14413 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14414 fi
14415 fi
14416 haveit=
14417 for x in $LDFLAGS $LTLIBINTL; do
14418
14419 acl_save_prefix="$prefix"
14420 prefix="$acl_final_prefix"
14421 acl_save_exec_prefix="$exec_prefix"
14422 exec_prefix="$acl_final_exec_prefix"
14423 eval x=\"$x\"
14424 exec_prefix="$acl_save_exec_prefix"
14425 prefix="$acl_save_prefix"
14426
14427 if test "X$x" = "X-L$additional_libdir"; then
14428 haveit=yes
14429 break
14430 fi
14431 done
14432 if test -z "$haveit"; then
14433 if test -d "$additional_libdir"; then
14434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14435 fi
14436 fi
14437 fi
14438 fi
14439 ;;
14440 -R*)
14441 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14442 if test "$enable_rpath" != no; then
14443 haveit=
14444 for x in $rpathdirs; do
14445 if test "X$x" = "X$dir"; then
14446 haveit=yes
14447 break
14448 fi
14449 done
14450 if test -z "$haveit"; then
14451 rpathdirs="$rpathdirs $dir"
14452 fi
14453 haveit=
14454 for x in $ltrpathdirs; do
14455 if test "X$x" = "X$dir"; then
14456 haveit=yes
14457 break
14458 fi
14459 done
14460 if test -z "$haveit"; then
14461 ltrpathdirs="$ltrpathdirs $dir"
14462 fi
14463 fi
14464 ;;
14465 -l*)
14466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14467 ;;
14468 *.la)
14469 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14470 ;;
14471 *)
14472 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14474 ;;
14475 esac
14476 done
14477 fi
14478 else
14479 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14480 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14482 else
14483 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14484 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14485 fi
14486 fi
14487 fi
14488 fi
14489 done
14490 done
14491 if test "X$rpathdirs" != "X"; then
14492 if test -n "$hardcode_libdir_separator"; then
14493 alldirs=
14494 for found_dir in $rpathdirs; do
14495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14496 done
14497 acl_save_libdir="$libdir"
14498 libdir="$alldirs"
14499 eval flag=\"$hardcode_libdir_flag_spec\"
14500 libdir="$acl_save_libdir"
14501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14502 else
14503 for found_dir in $rpathdirs; do
14504 acl_save_libdir="$libdir"
14505 libdir="$found_dir"
14506 eval flag=\"$hardcode_libdir_flag_spec\"
14507 libdir="$acl_save_libdir"
14508 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14509 done
14510 fi
14511 fi
14512 if test "X$ltrpathdirs" != "X"; then
14513 for found_dir in $ltrpathdirs; do
14514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14515 done
14516 fi
14517
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14519 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14520 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 gt_save_CPPFLAGS="$CPPFLAGS"
14524 CPPFLAGS="$CPPFLAGS $INCINTL"
14525 gt_save_LIBS="$LIBS"
14526 LIBS="$LIBS $LIBINTL"
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529
14530 #include <libintl.h>
14531 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14532 extern int _nl_msg_cat_cntr;
14533 extern
14534 #ifdef __cplusplus
14535 "C"
14536 #endif
14537 const char *_nl_expand_alias (const char *);
14538 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14539 #else
14540 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14541 #endif
14542 $gt_revision_test_code
14543
14544 int
14545 main ()
14546 {
14547
14548 bindtextdomain ("", "");
14549 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14550
14551 ;
14552 return 0;
14553 }
14554 _ACEOF
14555 if ac_fn_cxx_try_link "$LINENO"; then :
14556 eval "$gt_func_gnugettext_libintl=yes"
14557 else
14558 eval "$gt_func_gnugettext_libintl=no"
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14563 LIBS="$LIBS $LIBICONV"
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566
14567 #include <libintl.h>
14568 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14569 extern int _nl_msg_cat_cntr;
14570 extern
14571 #ifdef __cplusplus
14572 "C"
14573 #endif
14574 const char *_nl_expand_alias (const char *);
14575 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14576 #else
14577 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14578 #endif
14579 $gt_revision_test_code
14580
14581 int
14582 main ()
14583 {
14584
14585 bindtextdomain ("", "");
14586 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14587
14588 ;
14589 return 0;
14590 }
14591 _ACEOF
14592 if ac_fn_cxx_try_link "$LINENO"; then :
14593 LIBINTL="$LIBINTL $LIBICONV"
14594 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14595 eval "$gt_func_gnugettext_libintl=yes"
14596
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14600 fi
14601 CPPFLAGS="$gt_save_CPPFLAGS"
14602 LIBS="$gt_save_LIBS"
14603 fi
14604 eval ac_res=\$$gt_func_gnugettext_libintl
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14607 fi
14608
14609 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14610 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14611 && test "$PACKAGE" != gettext-runtime \
14612 && test "$PACKAGE" != gettext-tools; }; then
14613 gt_use_preinstalled_gnugettext=yes
14614 else
14615 LIBINTL=
14616 LTLIBINTL=
14617 INCINTL=
14618 fi
14619
14620
14621
14622 if test -n "$INTL_MACOSX_LIBS"; then
14623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14624 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14625 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14626 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14627 fi
14628 fi
14629
14630 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14631 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14632
14633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14634
14635 else
14636 USE_NLS=no
14637 fi
14638 fi
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14641 $as_echo_n "checking whether to use NLS... " >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14643 $as_echo "$USE_NLS" >&6; }
14644 if test "$USE_NLS" = "yes"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14646 $as_echo_n "checking where the gettext function comes from... " >&6; }
14647 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14648 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14649 gt_source="external libintl"
14650 else
14651 gt_source="libc"
14652 fi
14653 else
14654 gt_source="included intl directory"
14655 fi
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14657 $as_echo "$gt_source" >&6; }
14658 fi
14659
14660 if test "$USE_NLS" = "yes"; then
14661
14662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14663 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14665 $as_echo_n "checking how to link with libintl... " >&6; }
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14667 $as_echo "$LIBINTL" >&6; }
14668
14669 for element in $INCINTL; do
14670 haveit=
14671 for x in $CPPFLAGS; do
14672
14673 acl_save_prefix="$prefix"
14674 prefix="$acl_final_prefix"
14675 acl_save_exec_prefix="$exec_prefix"
14676 exec_prefix="$acl_final_exec_prefix"
14677 eval x=\"$x\"
14678 exec_prefix="$acl_save_exec_prefix"
14679 prefix="$acl_save_prefix"
14680
14681 if test "X$x" = "X$element"; then
14682 haveit=yes
14683 break
14684 fi
14685 done
14686 if test -z "$haveit"; then
14687 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14688 fi
14689 done
14690
14691 fi
14692
14693
14694 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14695
14696
14697 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14698
14699 fi
14700
14701 POSUB=po
14702 fi
14703
14704
14705
14706 INTLLIBS="$LIBINTL"
14707
14708
14709
14710
14711
14712
14713 fi
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14726 $as_echo_n "checking whether NLS is requested... " >&6; }
14727 if test x"$USE_NLS" != xyes; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14732 $as_echo "yes" >&6; }
14733
14734 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14735
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14738 $as_echo_n "checking for catalogs to be installed... " >&6; }
14739 # Look for .po and .gmo files in the source directory.
14740 CATALOGS=
14741 XLINGUAS=
14742 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14743 # If there aren't any .gmo files the shell will give us the
14744 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14745 # weeded out.
14746 case "$cat" in *\**)
14747 continue;;
14748 esac
14749 # The quadruple backslash is collapsed to a double backslash
14750 # by the backticks, then collapsed again by the double quotes,
14751 # leaving us with one backslash in the sed expression (right
14752 # before the dot that mustn't act as a wildcard).
14753 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14754 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14755 # The user is allowed to set LINGUAS to a list of languages to
14756 # install catalogs for. If it's empty that means "all of them."
14757 if test "x$LINGUAS" = x; then
14758 CATALOGS="$CATALOGS $cat"
14759 XLINGUAS="$XLINGUAS $lang"
14760 else
14761 case "$LINGUAS" in *$lang*)
14762 CATALOGS="$CATALOGS $cat"
14763 XLINGUAS="$XLINGUAS $lang"
14764 ;;
14765 esac
14766 fi
14767 done
14768 LINGUAS="$XLINGUAS"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14770 $as_echo "$LINGUAS" >&6; }
14771
14772
14773 DATADIRNAME=share
14774
14775 INSTOBJEXT=.mo
14776
14777 GENCAT=gencat
14778
14779 CATOBJEXT=.gmo
14780
14781 fi
14782
14783 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14784 # -liconv on the link line twice.
14785 case "$LIBINTL" in *$LIBICONV*)
14786 LIBICONV= ;;
14787 esac
14788
14789 # Check whether --enable-secureplt was given.
14790 if test "${enable_secureplt+set}" = set; then :
14791 enableval=$enable_secureplt;
14792 fi
14793
14794
14795 # Check whether --enable-mingw-wildcard was given.
14796 if test "${enable_mingw_wildcard+set}" = set; then :
14797 enableval=$enable_mingw_wildcard;
14798 else
14799 enable_mingw_wildcard=platform
14800 fi
14801
14802 if test x"$enable_mingw_wildcard" != xplatform ; then :
14803
14804 cat >>confdefs.h <<_ACEOF
14805 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14806 _ACEOF
14807
14808 fi
14809
14810 # Check whether --enable-large-address-aware was given.
14811 if test "${enable_large_address_aware+set}" = set; then :
14812 enableval=$enable_large_address_aware;
14813 fi
14814
14815 if test x"$enable_large_address_aware" = xyes; then :
14816
14817 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14818
14819 fi
14820
14821 # Check whether --enable-leading-mingw64-underscores was given.
14822 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14823 enableval=$enable_leading_mingw64_underscores;
14824 fi
14825
14826 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14827
14828 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14829
14830 fi
14831
14832 # Check whether --enable-cld was given.
14833 if test "${enable_cld+set}" = set; then :
14834 enableval=$enable_cld;
14835 else
14836 enable_cld=no
14837 fi
14838
14839
14840 # Check whether --enable-frame-pointer was given.
14841 if test "${enable_frame_pointer+set}" = set; then :
14842 enableval=$enable_frame_pointer;
14843 else
14844
14845 case $target_os in
14846 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
14847 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14848 enable_frame_pointer=no
14849 ;;
14850 *)
14851 enable_frame_pointer=yes
14852 ;;
14853 esac
14854
14855 fi
14856
14857
14858 case $target in
14859 i[34567]86-*-* | x86_64-*-*)
14860 if test "x$enable_cld" = xyes; then
14861 tm_defines="${tm_defines} USE_IX86_CLD=1"
14862 fi
14863 if test "x$enable_frame_pointer" = xyes; then
14864 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
14865 fi
14866 ;;
14867 esac
14868
14869 # Windows32 Registry support for specifying GCC installation paths.
14870 # Check whether --enable-win32-registry was given.
14871 if test "${enable_win32_registry+set}" = set; then :
14872 enableval=$enable_win32_registry;
14873 fi
14874
14875
14876 case $host_os in
14877 win32 | pe | cygwin* | mingw32*)
14878 if test "x$enable_win32_registry" != xno; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14880 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14881 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 ac_func_search_save_LIBS=$LIBS
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 char RegOpenKeyExA ();
14895 int
14896 main ()
14897 {
14898 return RegOpenKeyExA ();
14899 ;
14900 return 0;
14901 }
14902 _ACEOF
14903 for ac_lib in '' advapi32; do
14904 if test -z "$ac_lib"; then
14905 ac_res="none required"
14906 else
14907 ac_res=-l$ac_lib
14908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14909 fi
14910 if ac_fn_cxx_try_link "$LINENO"; then :
14911 ac_cv_search_RegOpenKeyExA=$ac_res
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext
14915 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14916 break
14917 fi
14918 done
14919 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14920
14921 else
14922 ac_cv_search_RegOpenKeyExA=no
14923 fi
14924 rm conftest.$ac_ext
14925 LIBS=$ac_func_search_save_LIBS
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14928 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14929 ac_res=$ac_cv_search_RegOpenKeyExA
14930 if test "$ac_res" != no; then :
14931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14932
14933 else
14934 enable_win32_registry=no
14935 fi
14936
14937 fi
14938
14939 if test "x$enable_win32_registry" != xno; then
14940
14941 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
14942
14943
14944 if test "x$enable_win32_registry" != xyes \
14945 && test "x$enable_win32_registry" != x; then
14946
14947 cat >>confdefs.h <<_ACEOF
14948 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14949 _ACEOF
14950
14951 fi
14952 fi
14953 ;;
14954 esac
14955
14956 # Get an absolute path to the GCC top-level source directory
14957 holddir=`${PWDCMD-pwd}`
14958 cd $srcdir
14959 topdir=`${PWDCMD-pwd}`
14960 cd $holddir
14961
14962 # Conditionalize the makefile for this host machine.
14963 xmake_file=
14964 for f in ${host_xmake_file}
14965 do
14966 if test -f ${srcdir}/config/$f
14967 then
14968 xmake_file="${xmake_file} \$(srcdir)/config/$f"
14969 fi
14970 done
14971
14972 # Conditionalize the makefile for this target machine.
14973 tmake_file_=
14974 for f in ${tmake_file}
14975 do
14976 if test -f ${srcdir}/config/$f
14977 then
14978 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
14979 fi
14980 done
14981 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
14982
14983 out_object_file=`basename $out_file .cc`.o
14984 common_out_object_file=`basename $common_out_file .cc`.o
14985
14986 tm_file_list="options.h"
14987 tm_include_list="options.h insn-constants.h"
14988 for f in $tm_file; do
14989 case $f in
14990 ./* )
14991 f=`echo $f | sed 's/^..//'`
14992 tm_file_list="${tm_file_list} $f"
14993 tm_include_list="${tm_include_list} $f"
14994 ;;
14995 defaults.h )
14996 tm_file_list="${tm_file_list} \$(srcdir)/$f"
14997 tm_include_list="${tm_include_list} $f"
14998 ;;
14999 * )
15000 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15001 tm_include_list="${tm_include_list} config/$f"
15002 ;;
15003 esac
15004 done
15005
15006 tm_p_file_list=
15007 tm_p_include_list=
15008 for f in $tm_p_file; do
15009 case $f in
15010 tm-preds.h )
15011 tm_p_file_list="${tm_p_file_list} $f"
15012 tm_p_include_list="${tm_p_include_list} $f"
15013 ;;
15014 * )
15015 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15016 tm_p_include_list="${tm_p_include_list} config/$f"
15017 esac
15018 done
15019
15020 tm_d_file_list=
15021 tm_d_include_list=
15022 for f in $tm_d_file; do
15023 case $f in
15024 * )
15025 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15026 tm_d_include_list="${tm_d_include_list} config/$f"
15027 ;;
15028 esac
15029 done
15030
15031 tm_rust_file_list=
15032 tm_rust_include_list=
15033 for f in $tm_rust_file; do
15034 case $f in
15035 * )
15036 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15037 tm_rust_include_list="${tm_rust_include_list} config/$f"
15038 ;;
15039 esac
15040 done
15041
15042 xm_file_list=
15043 xm_include_list=
15044 for f in $xm_file; do
15045 case $f in
15046 ansidecl.h )
15047 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15048 xm_include_list="${xm_include_list} $f"
15049 ;;
15050 auto-host.h )
15051 xm_file_list="${xm_file_list} $f"
15052 xm_include_list="${xm_include_list} $f"
15053 ;;
15054 * )
15055 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15056 xm_include_list="${xm_include_list} config/$f"
15057 ;;
15058 esac
15059 done
15060
15061 host_xm_file_list=
15062 host_xm_include_list=
15063 for f in $host_xm_file; do
15064 case $f in
15065 ansidecl.h )
15066 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15067 host_xm_include_list="${host_xm_include_list} $f"
15068 ;;
15069 auto-host.h )
15070 host_xm_file_list="${host_xm_file_list} $f"
15071 host_xm_include_list="${host_xm_include_list} $f"
15072 ;;
15073 * )
15074 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15075 host_xm_include_list="${host_xm_include_list} config/$f"
15076 ;;
15077 esac
15078 done
15079
15080 build_xm_file_list=
15081 for f in $build_xm_file; do
15082 case $f in
15083 ansidecl.h )
15084 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15085 build_xm_include_list="${build_xm_include_list} $f"
15086 ;;
15087 auto-build.h | auto-host.h )
15088 build_xm_file_list="${build_xm_file_list} $f"
15089 build_xm_include_list="${build_xm_include_list} $f"
15090 ;;
15091 * )
15092 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15093 build_xm_include_list="${build_xm_include_list} config/$f"
15094 ;;
15095 esac
15096 done
15097
15098 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15099 # cross-compiler which does not use the native headers and libraries.
15100 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15101 CROSS=
15102 ALL=all.internal
15103 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15104 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15105
15106 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15107 test x$build != x$host || test "x$with_build_sysroot" != x; then
15108 if test "x$with_build_sysroot" != x; then
15109 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15110 else
15111 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15112 fi
15113
15114 if test x$host != x$target
15115 then
15116 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15117 ALL=all.cross
15118 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15119 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15120 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15121 fi
15122
15123 if test "x$with_build_sysroot" != "x"; then
15124 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15125 elif test "x$with_sysroot" = x; then
15126 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15127 elif test "x$with_sysroot" = xyes; then
15128 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15129 else
15130 target_header_dir="${with_sysroot}${native_system_header_dir}"
15131 fi
15132 else
15133 target_header_dir=${native_system_header_dir}
15134 fi
15135
15136 # If this is a cross-compiler that does not
15137 # have its own set of headers then define
15138 # inhibit_libc
15139
15140 # If this is using newlib, without having the headers available now,
15141 # then define inhibit_libc in LIBGCC2_CFLAGS.
15142 # This prevents libgcc2 from containing any code which requires libc
15143 # support.
15144 : ${inhibit_libc=false}
15145 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15146 test x$with_newlib = xyes ; } &&
15147 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15148 inhibit_libc=true
15149 fi
15150
15151
15152 # When building gcc with a cross-compiler, we need to adjust things so
15153 # that the generator programs are still built with the native compiler.
15154 # Also, we cannot run fixincludes.
15155
15156 # These are the normal (build=host) settings:
15157 CC_FOR_BUILD='$(CC)'
15158 CXX_FOR_BUILD='$(CXX)'
15159 BUILD_CFLAGS='$(ALL_CFLAGS)'
15160 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15161 BUILD_LDFLAGS='$(LDFLAGS)'
15162 STMP_FIXINC=stmp-fixinc
15163
15164 # And these apply if build != host, or we are generating coverage data
15165 if test x$build != x$host || test "x$coverage_flags" != x
15166 then
15167 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15168 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15169 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15170 fi
15171
15172
15173 if test x$enable_fixincludes = xno;
15174 then
15175 STMP_FIXINC=''
15176 fi
15177
15178 # Expand extra_headers to include complete path.
15179 # This substitutes for lots of t-* files.
15180 extra_headers_list=
15181 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15182 for file in ${extra_headers} ; do
15183 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15184 done
15185
15186 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15187 if test x"$use_gcc_tgmath" = xyes
15188 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15189 fi
15190
15191 # Define collect2 in Makefile.
15192 case $host_can_use_collect2 in
15193 no) collect2= ;;
15194 *) collect2='collect2$(exeext)' ;;
15195 esac
15196
15197
15198 # Add a definition of USE_COLLECT2 if system wants one.
15199 case $use_collect2 in
15200 no) use_collect2= ;;
15201 "") ;;
15202 *)
15203 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15204 xm_defines="${xm_defines} USE_COLLECT2"
15205 case $host_can_use_collect2 in
15206 no)
15207 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15208 ;;
15209 esac
15210 ;;
15211 esac
15212
15213
15214 cat >>confdefs.h <<_ACEOF
15215 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15216 _ACEOF
15217
15218
15219 # ---------------------------
15220 # Assembler & linker features
15221 # ---------------------------
15222
15223 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15224 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15225 # However when ld-new is first executed from the build tree, libtool will
15226 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15227 # to the build tree. While doing this we need to use the previous-stage
15228 # linker, or we have an infinite loop. The presence of a shell script as
15229 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15230 # the gcc/collect-ld script. So we need to know how libtool works, or
15231 # exec-tool will fail.
15232
15233
15234 case `pwd` in
15235 *\ * | *\ *)
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15237 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15238 esac
15239
15240
15241
15242 macro_version='2.2.7a'
15243 macro_revision='1.3134'
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 ltmain="$ac_aux_dir/ltmain.sh"
15258
15259 # Backslashify metacharacters that are still active within
15260 # double-quoted strings.
15261 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15262
15263 # Same as above, but do not quote variable references.
15264 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15265
15266 # Sed substitution to delay expansion of an escaped shell variable in a
15267 # double_quote_subst'ed string.
15268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15269
15270 # Sed substitution to delay expansion of an escaped single quote.
15271 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15272
15273 # Sed substitution to avoid accidental globbing in evaled expressions
15274 no_glob_subst='s/\*/\\\*/g'
15275
15276 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15279
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15281 $as_echo_n "checking how to print strings... " >&6; }
15282 # Test print first, because it will be a builtin if present.
15283 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15285 ECHO='print -r --'
15286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15287 ECHO='printf %s\n'
15288 else
15289 # Use this function as a fallback that always works.
15290 func_fallback_echo ()
15291 {
15292 eval 'cat <<_LTECHO_EOF
15293 $1
15294 _LTECHO_EOF'
15295 }
15296 ECHO='func_fallback_echo'
15297 fi
15298
15299 # func_echo_all arg...
15300 # Invoke $ECHO with all args, space-separated.
15301 func_echo_all ()
15302 {
15303 $ECHO ""
15304 }
15305
15306 case "$ECHO" in
15307 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15308 $as_echo "printf" >&6; } ;;
15309 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15310 $as_echo "print -r" >&6; } ;;
15311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15312 $as_echo "cat" >&6; } ;;
15313 esac
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15329 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15330 if ${ac_cv_path_SED+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15334 for ac_i in 1 2 3 4 5 6 7; do
15335 ac_script="$ac_script$as_nl$ac_script"
15336 done
15337 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15338 { ac_script=; unset ac_script;}
15339 if test -z "$SED"; then
15340 ac_path_SED_found=false
15341 # Loop through the user's path and test for each of PROGNAME-LIST
15342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15343 for as_dir in $PATH
15344 do
15345 IFS=$as_save_IFS
15346 test -z "$as_dir" && as_dir=.
15347 for ac_prog in sed gsed; do
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15350 as_fn_executable_p "$ac_path_SED" || continue
15351 # Check for GNU ac_path_SED and select it if it is found.
15352 # Check for GNU $ac_path_SED
15353 case `"$ac_path_SED" --version 2>&1` in
15354 *GNU*)
15355 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15356 *)
15357 ac_count=0
15358 $as_echo_n 0123456789 >"conftest.in"
15359 while :
15360 do
15361 cat "conftest.in" "conftest.in" >"conftest.tmp"
15362 mv "conftest.tmp" "conftest.in"
15363 cp "conftest.in" "conftest.nl"
15364 $as_echo '' >> "conftest.nl"
15365 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15367 as_fn_arith $ac_count + 1 && ac_count=$as_val
15368 if test $ac_count -gt ${ac_path_SED_max-0}; then
15369 # Best one so far, save it but keep looking for a better one
15370 ac_cv_path_SED="$ac_path_SED"
15371 ac_path_SED_max=$ac_count
15372 fi
15373 # 10*(2^10) chars as input seems more than enough
15374 test $ac_count -gt 10 && break
15375 done
15376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15377 esac
15378
15379 $ac_path_SED_found && break 3
15380 done
15381 done
15382 done
15383 IFS=$as_save_IFS
15384 if test -z "$ac_cv_path_SED"; then
15385 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15386 fi
15387 else
15388 ac_cv_path_SED=$SED
15389 fi
15390
15391 fi
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15393 $as_echo "$ac_cv_path_SED" >&6; }
15394 SED="$ac_cv_path_SED"
15395 rm -f conftest.sed
15396
15397 test -z "$SED" && SED=sed
15398 Xsed="$SED -e 1s/^X//"
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15411 $as_echo_n "checking for fgrep... " >&6; }
15412 if ${ac_cv_path_FGREP+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15416 then ac_cv_path_FGREP="$GREP -F"
15417 else
15418 if test -z "$FGREP"; then
15419 ac_path_FGREP_found=false
15420 # Loop through the user's path and test for each of PROGNAME-LIST
15421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15423 do
15424 IFS=$as_save_IFS
15425 test -z "$as_dir" && as_dir=.
15426 for ac_prog in fgrep; do
15427 for ac_exec_ext in '' $ac_executable_extensions; do
15428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15429 as_fn_executable_p "$ac_path_FGREP" || continue
15430 # Check for GNU ac_path_FGREP and select it if it is found.
15431 # Check for GNU $ac_path_FGREP
15432 case `"$ac_path_FGREP" --version 2>&1` in
15433 *GNU*)
15434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15435 *)
15436 ac_count=0
15437 $as_echo_n 0123456789 >"conftest.in"
15438 while :
15439 do
15440 cat "conftest.in" "conftest.in" >"conftest.tmp"
15441 mv "conftest.tmp" "conftest.in"
15442 cp "conftest.in" "conftest.nl"
15443 $as_echo 'FGREP' >> "conftest.nl"
15444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15446 as_fn_arith $ac_count + 1 && ac_count=$as_val
15447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15448 # Best one so far, save it but keep looking for a better one
15449 ac_cv_path_FGREP="$ac_path_FGREP"
15450 ac_path_FGREP_max=$ac_count
15451 fi
15452 # 10*(2^10) chars as input seems more than enough
15453 test $ac_count -gt 10 && break
15454 done
15455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15456 esac
15457
15458 $ac_path_FGREP_found && break 3
15459 done
15460 done
15461 done
15462 IFS=$as_save_IFS
15463 if test -z "$ac_cv_path_FGREP"; then
15464 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15465 fi
15466 else
15467 ac_cv_path_FGREP=$FGREP
15468 fi
15469
15470 fi
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15473 $as_echo "$ac_cv_path_FGREP" >&6; }
15474 FGREP="$ac_cv_path_FGREP"
15475
15476
15477 test -z "$GREP" && GREP=grep
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497 # Check whether --with-gnu-ld was given.
15498 if test "${with_gnu_ld+set}" = set; then :
15499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15500 else
15501 with_gnu_ld=no
15502 fi
15503
15504 ac_prog=ld
15505 if test "$GCC" = yes; then
15506 # Check if gcc -print-prog-name=ld gives a path.
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15508 $as_echo_n "checking for ld used by $CC... " >&6; }
15509 case $host in
15510 *-*-mingw*)
15511 # gcc leaves a trailing carriage return which upsets mingw
15512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15513 *)
15514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15515 esac
15516 case $ac_prog in
15517 # Accept absolute paths.
15518 [\\/]* | ?:[\\/]*)
15519 re_direlt='/[^/][^/]*/\.\./'
15520 # Canonicalize the pathname of ld
15521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15524 done
15525 test -z "$LD" && LD="$ac_prog"
15526 ;;
15527 "")
15528 # If it fails, then pretend we aren't using GCC.
15529 ac_prog=ld
15530 ;;
15531 *)
15532 # If it is relative, then search for the first ld in PATH.
15533 with_gnu_ld=unknown
15534 ;;
15535 esac
15536 elif test "$with_gnu_ld" = yes; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15538 $as_echo_n "checking for GNU ld... " >&6; }
15539 else
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15541 $as_echo_n "checking for non-GNU ld... " >&6; }
15542 fi
15543 if ${lt_cv_path_LD+:} false; then :
15544 $as_echo_n "(cached) " >&6
15545 else
15546 if test -z "$LD"; then
15547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15548 for ac_dir in $PATH; do
15549 IFS="$lt_save_ifs"
15550 test -z "$ac_dir" && ac_dir=.
15551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15552 lt_cv_path_LD="$ac_dir/$ac_prog"
15553 # Check to see if the program is GNU ld. I'd rather use --version,
15554 # but apparently some variants of GNU ld only accept -v.
15555 # Break only if it was the GNU/non-GNU ld that we prefer.
15556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15557 *GNU* | *'with BFD'*)
15558 test "$with_gnu_ld" != no && break
15559 ;;
15560 *)
15561 test "$with_gnu_ld" != yes && break
15562 ;;
15563 esac
15564 fi
15565 done
15566 IFS="$lt_save_ifs"
15567 else
15568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15569 fi
15570 fi
15571
15572 LD="$lt_cv_path_LD"
15573 if test -n "$LD"; then
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15575 $as_echo "$LD" >&6; }
15576 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578 $as_echo "no" >&6; }
15579 fi
15580 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15583 if ${lt_cv_prog_gnu_ld+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15587 case `$LD -v 2>&1 </dev/null` in
15588 *GNU* | *'with BFD'*)
15589 lt_cv_prog_gnu_ld=yes
15590 ;;
15591 *)
15592 lt_cv_prog_gnu_ld=no
15593 ;;
15594 esac
15595 fi
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15598 with_gnu_ld=$lt_cv_prog_gnu_ld
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15609 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15610 if ${lt_cv_path_NM+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 if test -n "$NM"; then
15614 # Let the user override the nm to test.
15615 lt_nm_to_check="$NM"
15616 else
15617 lt_nm_to_check="${ac_tool_prefix}nm"
15618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15619 lt_nm_to_check="$lt_nm_to_check nm"
15620 fi
15621 fi
15622 for lt_tmp_nm in "$lt_nm_to_check"; do
15623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15625 IFS="$lt_save_ifs"
15626 test -z "$ac_dir" && ac_dir=.
15627 # Strip out any user-provided options from the nm to test twice,
15628 # the first time to test to see if nm (rather than its options) has
15629 # an explicit path, the second time to yield a file which can be
15630 # nm'ed itself.
15631 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15632 case "$tmp_nm_path" in
15633 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15634 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15635 esac
15636 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15637 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15638 # Check to see if the nm accepts a BSD-compat flag.
15639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15640 # nm: unknown option "B" ignored
15641 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15642 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15643 break
15644 ;;
15645 *)
15646 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15647 *$tmp_nm*)
15648 lt_cv_path_NM="$tmp_nm -p"
15649 break
15650 ;;
15651 *)
15652 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15653 continue # so that we can try to find one that supports BSD flags
15654 ;;
15655 esac
15656 ;;
15657 esac
15658 fi
15659 done
15660 IFS="$lt_save_ifs"
15661 done
15662 : ${lt_cv_path_NM=no}
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15665 $as_echo "$lt_cv_path_NM" >&6; }
15666 if test "$lt_cv_path_NM" != "no"; then
15667 NM="$lt_cv_path_NM"
15668 else
15669 # Didn't find any BSD compatible name lister, look for dumpbin.
15670 if test -n "$DUMPBIN"; then :
15671 # Let the user override the test.
15672 else
15673 if test -n "$ac_tool_prefix"; then
15674 for ac_prog in dumpbin "link -dump"
15675 do
15676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679 $as_echo_n "checking for $ac_word... " >&6; }
15680 if ${ac_cv_prog_DUMPBIN+:} false; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 if test -n "$DUMPBIN"; then
15684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15685 else
15686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15687 for as_dir in $PATH
15688 do
15689 IFS=$as_save_IFS
15690 test -z "$as_dir" && as_dir=.
15691 for ac_exec_ext in '' $ac_executable_extensions; do
15692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15695 break 2
15696 fi
15697 done
15698 done
15699 IFS=$as_save_IFS
15700
15701 fi
15702 fi
15703 DUMPBIN=$ac_cv_prog_DUMPBIN
15704 if test -n "$DUMPBIN"; then
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15706 $as_echo "$DUMPBIN" >&6; }
15707 else
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15709 $as_echo "no" >&6; }
15710 fi
15711
15712
15713 test -n "$DUMPBIN" && break
15714 done
15715 fi
15716 if test -z "$DUMPBIN"; then
15717 ac_ct_DUMPBIN=$DUMPBIN
15718 for ac_prog in dumpbin "link -dump"
15719 do
15720 # Extract the first word of "$ac_prog", so it can be a program name with args.
15721 set dummy $ac_prog; ac_word=$2
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723 $as_echo_n "checking for $ac_word... " >&6; }
15724 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15725 $as_echo_n "(cached) " >&6
15726 else
15727 if test -n "$ac_ct_DUMPBIN"; then
15728 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15729 else
15730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15731 for as_dir in $PATH
15732 do
15733 IFS=$as_save_IFS
15734 test -z "$as_dir" && as_dir=.
15735 for ac_exec_ext in '' $ac_executable_extensions; do
15736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15737 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15739 break 2
15740 fi
15741 done
15742 done
15743 IFS=$as_save_IFS
15744
15745 fi
15746 fi
15747 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15748 if test -n "$ac_ct_DUMPBIN"; then
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15750 $as_echo "$ac_ct_DUMPBIN" >&6; }
15751 else
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15754 fi
15755
15756
15757 test -n "$ac_ct_DUMPBIN" && break
15758 done
15759
15760 if test "x$ac_ct_DUMPBIN" = x; then
15761 DUMPBIN=":"
15762 else
15763 case $cross_compiling:$ac_tool_warned in
15764 yes:)
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15767 ac_tool_warned=yes ;;
15768 esac
15769 DUMPBIN=$ac_ct_DUMPBIN
15770 fi
15771 fi
15772
15773 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15774 *COFF*)
15775 DUMPBIN="$DUMPBIN -symbols"
15776 ;;
15777 *)
15778 DUMPBIN=:
15779 ;;
15780 esac
15781 fi
15782
15783 if test "$DUMPBIN" != ":"; then
15784 NM="$DUMPBIN"
15785 fi
15786 fi
15787 test -z "$NM" && NM=nm
15788
15789
15790
15791
15792
15793
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15795 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15796 if ${lt_cv_nm_interface+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798 else
15799 lt_cv_nm_interface="BSD nm"
15800 echo "int some_variable = 0;" > conftest.$ac_ext
15801 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15802 (eval "$ac_compile" 2>conftest.err)
15803 cat conftest.err >&5
15804 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15806 cat conftest.err >&5
15807 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15808 cat conftest.out >&5
15809 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15810 lt_cv_nm_interface="MS dumpbin"
15811 fi
15812 rm -f conftest*
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15815 $as_echo "$lt_cv_nm_interface" >&6; }
15816
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15818 $as_echo_n "checking whether ln -s works... " >&6; }
15819 LN_S=$as_ln_s
15820 if test "$LN_S" = "ln -s"; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15822 $as_echo "yes" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15825 $as_echo "no, using $LN_S" >&6; }
15826 fi
15827
15828 # find the maximum length of command line arguments
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15830 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15831 if ${lt_cv_sys_max_cmd_len+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 i=0
15835 teststring="ABCD"
15836
15837 case $build_os in
15838 msdosdjgpp*)
15839 # On DJGPP, this test can blow up pretty badly due to problems in libc
15840 # (any single argument exceeding 2000 bytes causes a buffer overrun
15841 # during glob expansion). Even if it were fixed, the result of this
15842 # check would be larger than it should be.
15843 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15844 ;;
15845
15846 gnu*)
15847 # Under GNU Hurd, this test is not required because there is
15848 # no limit to the length of command line arguments.
15849 # Libtool will interpret -1 as no limit whatsoever
15850 lt_cv_sys_max_cmd_len=-1;
15851 ;;
15852
15853 cygwin* | mingw* | cegcc*)
15854 # On Win9x/ME, this test blows up -- it succeeds, but takes
15855 # about 5 minutes as the teststring grows exponentially.
15856 # Worse, since 9x/ME are not pre-emptively multitasking,
15857 # you end up with a "frozen" computer, even though with patience
15858 # the test eventually succeeds (with a max line length of 256k).
15859 # Instead, let's just punt: use the minimum linelength reported by
15860 # all of the supported platforms: 8192 (on NT/2K/XP).
15861 lt_cv_sys_max_cmd_len=8192;
15862 ;;
15863
15864 mint*)
15865 # On MiNT this can take a long time and run out of memory.
15866 lt_cv_sys_max_cmd_len=8192;
15867 ;;
15868
15869 amigaos*)
15870 # On AmigaOS with pdksh, this test takes hours, literally.
15871 # So we just punt and use a minimum line length of 8192.
15872 lt_cv_sys_max_cmd_len=8192;
15873 ;;
15874
15875 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15876 # This has been around since 386BSD, at least. Likely further.
15877 if test -x /sbin/sysctl; then
15878 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15879 elif test -x /usr/sbin/sysctl; then
15880 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15881 else
15882 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15883 fi
15884 # And add a safety zone
15885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15887 ;;
15888
15889 interix*)
15890 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15891 lt_cv_sys_max_cmd_len=196608
15892 ;;
15893
15894 osf*)
15895 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15896 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15897 # nice to cause kernel panics so lets avoid the loop below.
15898 # First set a reasonable default.
15899 lt_cv_sys_max_cmd_len=16384
15900 #
15901 if test -x /sbin/sysconfig; then
15902 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15903 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15904 esac
15905 fi
15906 ;;
15907 sco3.2v5*)
15908 lt_cv_sys_max_cmd_len=102400
15909 ;;
15910 sysv5* | sco5v6* | sysv4.2uw2*)
15911 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15912 if test -n "$kargmax"; then
15913 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15914 else
15915 lt_cv_sys_max_cmd_len=32768
15916 fi
15917 ;;
15918 *)
15919 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15920 if test -n "$lt_cv_sys_max_cmd_len"; then
15921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15923 else
15924 # Make teststring a little bigger before we do anything with it.
15925 # a 1K string should be a reasonable start.
15926 for i in 1 2 3 4 5 6 7 8 ; do
15927 teststring=$teststring$teststring
15928 done
15929 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15930 # If test is not a shell built-in, we'll probably end up computing a
15931 # maximum length that is only half of the actual maximum length, but
15932 # we can't tell.
15933 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15934 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15935 test $i != 17 # 1/2 MB should be enough
15936 do
15937 i=`expr $i + 1`
15938 teststring=$teststring$teststring
15939 done
15940 # Only check the string length outside the loop.
15941 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15942 teststring=
15943 # Add a significant safety factor because C++ compilers can tack on
15944 # massive amounts of additional arguments before passing them to the
15945 # linker. It appears as though 1/2 is a usable value.
15946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15947 fi
15948 ;;
15949 esac
15950
15951 fi
15952
15953 if test -n $lt_cv_sys_max_cmd_len ; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15955 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15956 else
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15958 $as_echo "none" >&6; }
15959 fi
15960 max_cmd_len=$lt_cv_sys_max_cmd_len
15961
15962
15963
15964
15965
15966
15967 : ${CP="cp -f"}
15968 : ${MV="mv -f"}
15969 : ${RM="rm -f"}
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15972 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15973 # Try some XSI features
15974 xsi_shell=no
15975 ( _lt_dummy="a/b/c"
15976 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15977 = c,a/b,, \
15978 && eval 'test $(( 1 + 1 )) -eq 2 \
15979 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15980 && xsi_shell=yes
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
15982 $as_echo "$xsi_shell" >&6; }
15983
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
15986 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
15987 lt_shell_append=no
15988 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15989 >/dev/null 2>&1 \
15990 && lt_shell_append=yes
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
15992 $as_echo "$lt_shell_append" >&6; }
15993
15994
15995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15996 lt_unset=unset
15997 else
15998 lt_unset=false
15999 fi
16000
16001
16002
16003
16004
16005 # test EBCDIC or ASCII
16006 case `echo X|tr X '\101'` in
16007 A) # ASCII based system
16008 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16009 lt_SP2NL='tr \040 \012'
16010 lt_NL2SP='tr \015\012 \040\040'
16011 ;;
16012 *) # EBCDIC based system
16013 lt_SP2NL='tr \100 \n'
16014 lt_NL2SP='tr \r\n \100\100'
16015 ;;
16016 esac
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16027 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16028 if ${lt_cv_ld_reload_flag+:} false; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 lt_cv_ld_reload_flag='-r'
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16034 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16035 reload_flag=$lt_cv_ld_reload_flag
16036 case $reload_flag in
16037 "" | " "*) ;;
16038 *) reload_flag=" $reload_flag" ;;
16039 esac
16040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16041 case $host_os in
16042 darwin*)
16043 if test "$GCC" = yes; then
16044 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16045 else
16046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16047 fi
16048 ;;
16049 esac
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059 if test -n "$ac_tool_prefix"; then
16060 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_prog_OBJDUMP+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 if test -n "$OBJDUMP"; then
16068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16069 else
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16072 do
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16079 break 2
16080 fi
16081 done
16082 done
16083 IFS=$as_save_IFS
16084
16085 fi
16086 fi
16087 OBJDUMP=$ac_cv_prog_OBJDUMP
16088 if test -n "$OBJDUMP"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16090 $as_echo "$OBJDUMP" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16094 fi
16095
16096
16097 fi
16098 if test -z "$ac_cv_prog_OBJDUMP"; then
16099 ac_ct_OBJDUMP=$OBJDUMP
16100 # Extract the first word of "objdump", so it can be a program name with args.
16101 set dummy objdump; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103 $as_echo_n "checking for $ac_word... " >&6; }
16104 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107 if test -n "$ac_ct_OBJDUMP"; then
16108 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16109 else
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16112 do
16113 IFS=$as_save_IFS
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16117 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119 break 2
16120 fi
16121 done
16122 done
16123 IFS=$as_save_IFS
16124
16125 fi
16126 fi
16127 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16128 if test -n "$ac_ct_OBJDUMP"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16130 $as_echo "$ac_ct_OBJDUMP" >&6; }
16131 else
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16134 fi
16135
16136 if test "x$ac_ct_OBJDUMP" = x; then
16137 OBJDUMP="false"
16138 else
16139 case $cross_compiling:$ac_tool_warned in
16140 yes:)
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16143 ac_tool_warned=yes ;;
16144 esac
16145 OBJDUMP=$ac_ct_OBJDUMP
16146 fi
16147 else
16148 OBJDUMP="$ac_cv_prog_OBJDUMP"
16149 fi
16150
16151 test -z "$OBJDUMP" && OBJDUMP=objdump
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16162 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16163 if ${lt_cv_deplibs_check_method+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 lt_cv_file_magic_cmd='$MAGIC_CMD'
16167 lt_cv_file_magic_test_file=
16168 lt_cv_deplibs_check_method='unknown'
16169 # Need to set the preceding variable on all platforms that support
16170 # interlibrary dependencies.
16171 # 'none' -- dependencies not supported.
16172 # `unknown' -- same as none, but documents that we really don't know.
16173 # 'pass_all' -- all dependencies passed with no checks.
16174 # 'test_compile' -- check by making test program.
16175 # 'file_magic [[regex]]' -- check by looking for files in library path
16176 # which responds to the $file_magic_cmd with a given extended regex.
16177 # If you have `file' or equivalent on your system and you're not sure
16178 # whether `pass_all' will *always* work, you probably want this one.
16179
16180 case $host_os in
16181 aix[4-9]*)
16182 lt_cv_deplibs_check_method=pass_all
16183 ;;
16184
16185 beos*)
16186 lt_cv_deplibs_check_method=pass_all
16187 ;;
16188
16189 bsdi[45]*)
16190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16191 lt_cv_file_magic_cmd='/usr/bin/file -L'
16192 lt_cv_file_magic_test_file=/shlib/libc.so
16193 ;;
16194
16195 cygwin*)
16196 # func_win32_libid is a shell function defined in ltmain.sh
16197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16198 lt_cv_file_magic_cmd='func_win32_libid'
16199 ;;
16200
16201 mingw* | pw32*)
16202 # Base MSYS/MinGW do not provide the 'file' command needed by
16203 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16204 # unless we find 'file', for example because we are cross-compiling.
16205 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16206 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16208 lt_cv_file_magic_cmd='func_win32_libid'
16209 else
16210 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16211 lt_cv_file_magic_cmd='$OBJDUMP -f'
16212 fi
16213 ;;
16214
16215 cegcc*)
16216 # use the weaker test based on 'objdump'. See mingw*.
16217 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16218 lt_cv_file_magic_cmd='$OBJDUMP -f'
16219 ;;
16220
16221 darwin* | rhapsody*)
16222 lt_cv_deplibs_check_method=pass_all
16223 ;;
16224
16225 freebsd* | dragonfly*)
16226 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16227 case $host_cpu in
16228 i*86 )
16229 # Not sure whether the presence of OpenBSD here was a mistake.
16230 # Let's accept both of them until this is cleared up.
16231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16232 lt_cv_file_magic_cmd=/usr/bin/file
16233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16234 ;;
16235 esac
16236 else
16237 lt_cv_deplibs_check_method=pass_all
16238 fi
16239 ;;
16240
16241 gnu*)
16242 lt_cv_deplibs_check_method=pass_all
16243 ;;
16244
16245 haiku*)
16246 lt_cv_deplibs_check_method=pass_all
16247 ;;
16248
16249 hpux10.20* | hpux11*)
16250 lt_cv_file_magic_cmd=/usr/bin/file
16251 case $host_cpu in
16252 ia64*)
16253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16255 ;;
16256 hppa*64*)
16257 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]'
16258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16259 ;;
16260 *)
16261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16262 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16263 ;;
16264 esac
16265 ;;
16266
16267 interix[3-9]*)
16268 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16270 ;;
16271
16272 irix5* | irix6* | nonstopux*)
16273 case $LD in
16274 *-32|*"-32 ") libmagic=32-bit;;
16275 *-n32|*"-n32 ") libmagic=N32;;
16276 *-64|*"-64 ") libmagic=64-bit;;
16277 *) libmagic=never-match;;
16278 esac
16279 lt_cv_deplibs_check_method=pass_all
16280 ;;
16281
16282 # This must be Linux ELF.
16283 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16284 lt_cv_deplibs_check_method=pass_all
16285 ;;
16286
16287 netbsd*)
16288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16290 else
16291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16292 fi
16293 ;;
16294
16295 newos6*)
16296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16297 lt_cv_file_magic_cmd=/usr/bin/file
16298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16299 ;;
16300
16301 *nto* | *qnx*)
16302 lt_cv_deplibs_check_method=pass_all
16303 ;;
16304
16305 openbsd*)
16306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16308 else
16309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16310 fi
16311 ;;
16312
16313 osf3* | osf4* | osf5*)
16314 lt_cv_deplibs_check_method=pass_all
16315 ;;
16316
16317 rdos*)
16318 lt_cv_deplibs_check_method=pass_all
16319 ;;
16320
16321 solaris*)
16322 lt_cv_deplibs_check_method=pass_all
16323 ;;
16324
16325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16326 lt_cv_deplibs_check_method=pass_all
16327 ;;
16328
16329 sysv4 | sysv4.3*)
16330 case $host_vendor in
16331 motorola)
16332 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]'
16333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16334 ;;
16335 ncr)
16336 lt_cv_deplibs_check_method=pass_all
16337 ;;
16338 sequent)
16339 lt_cv_file_magic_cmd='/bin/file'
16340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16341 ;;
16342 sni)
16343 lt_cv_file_magic_cmd='/bin/file'
16344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16345 lt_cv_file_magic_test_file=/lib/libc.so
16346 ;;
16347 siemens)
16348 lt_cv_deplibs_check_method=pass_all
16349 ;;
16350 pc)
16351 lt_cv_deplibs_check_method=pass_all
16352 ;;
16353 esac
16354 ;;
16355
16356 tpf*)
16357 lt_cv_deplibs_check_method=pass_all
16358 ;;
16359 vxworks*)
16360 # Assume VxWorks cross toolchains are built on Linux, possibly
16361 # as canadian for Windows hosts.
16362 lt_cv_deplibs_check_method=pass_all
16363 ;;
16364 esac
16365
16366 fi
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16368 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16369 file_magic_cmd=$lt_cv_file_magic_cmd
16370 deplibs_check_method=$lt_cv_deplibs_check_method
16371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384 plugin_option=
16385 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16386 for plugin in $plugin_names; do
16387 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16388 if test x$plugin_so = x$plugin; then
16389 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16390 fi
16391 if test x$plugin_so != x$plugin; then
16392 plugin_option="--plugin $plugin_so"
16393 break
16394 fi
16395 done
16396
16397 if test -n "$ac_tool_prefix"; then
16398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16399 set dummy ${ac_tool_prefix}ar; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_prog_AR+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test -n "$AR"; then
16406 ac_cv_prog_AR="$AR" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16410 do
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_AR="${ac_tool_prefix}ar"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16418 fi
16419 done
16420 done
16421 IFS=$as_save_IFS
16422
16423 fi
16424 fi
16425 AR=$ac_cv_prog_AR
16426 if test -n "$AR"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16428 $as_echo "$AR" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16432 fi
16433
16434
16435 fi
16436 if test -z "$ac_cv_prog_AR"; then
16437 ac_ct_AR=$AR
16438 # Extract the first word of "ar", so it can be a program name with args.
16439 set dummy ar; ac_word=$2
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16441 $as_echo_n "checking for $ac_word... " >&6; }
16442 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16443 $as_echo_n "(cached) " >&6
16444 else
16445 if test -n "$ac_ct_AR"; then
16446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16447 else
16448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449 for as_dir in $PATH
16450 do
16451 IFS=$as_save_IFS
16452 test -z "$as_dir" && as_dir=.
16453 for ac_exec_ext in '' $ac_executable_extensions; do
16454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16455 ac_cv_prog_ac_ct_AR="ar"
16456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16457 break 2
16458 fi
16459 done
16460 done
16461 IFS=$as_save_IFS
16462
16463 fi
16464 fi
16465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16466 if test -n "$ac_ct_AR"; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16468 $as_echo "$ac_ct_AR" >&6; }
16469 else
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471 $as_echo "no" >&6; }
16472 fi
16473
16474 if test "x$ac_ct_AR" = x; then
16475 AR="false"
16476 else
16477 case $cross_compiling:$ac_tool_warned in
16478 yes:)
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16481 ac_tool_warned=yes ;;
16482 esac
16483 AR=$ac_ct_AR
16484 fi
16485 else
16486 AR="$ac_cv_prog_AR"
16487 fi
16488
16489 test -z "$AR" && AR=ar
16490 if test -n "$plugin_option"; then
16491 if $AR --help 2>&1 | grep -q "\--plugin"; then
16492 touch conftest.c
16493 $AR $plugin_option rc conftest.a conftest.c
16494 if test "$?" != 0; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16496 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16497 else
16498 AR="$AR $plugin_option"
16499 fi
16500 rm -f conftest.*
16501 fi
16502 fi
16503 test -z "$AR_FLAGS" && AR_FLAGS=cru
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515 if test -n "$ac_tool_prefix"; then
16516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16517 set dummy ${ac_tool_prefix}strip; ac_word=$2
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16519 $as_echo_n "checking for $ac_word... " >&6; }
16520 if ${ac_cv_prog_STRIP+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 if test -n "$STRIP"; then
16524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16525 else
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16528 do
16529 IFS=$as_save_IFS
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16535 break 2
16536 fi
16537 done
16538 done
16539 IFS=$as_save_IFS
16540
16541 fi
16542 fi
16543 STRIP=$ac_cv_prog_STRIP
16544 if test -n "$STRIP"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16546 $as_echo "$STRIP" >&6; }
16547 else
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 $as_echo "no" >&6; }
16550 fi
16551
16552
16553 fi
16554 if test -z "$ac_cv_prog_STRIP"; then
16555 ac_ct_STRIP=$STRIP
16556 # Extract the first word of "strip", so it can be a program name with args.
16557 set dummy strip; ac_word=$2
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16559 $as_echo_n "checking for $ac_word... " >&6; }
16560 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 if test -n "$ac_ct_STRIP"; then
16564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16565 else
16566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16567 for as_dir in $PATH
16568 do
16569 IFS=$as_save_IFS
16570 test -z "$as_dir" && as_dir=.
16571 for ac_exec_ext in '' $ac_executable_extensions; do
16572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16573 ac_cv_prog_ac_ct_STRIP="strip"
16574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16575 break 2
16576 fi
16577 done
16578 done
16579 IFS=$as_save_IFS
16580
16581 fi
16582 fi
16583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16584 if test -n "$ac_ct_STRIP"; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16586 $as_echo "$ac_ct_STRIP" >&6; }
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 $as_echo "no" >&6; }
16590 fi
16591
16592 if test "x$ac_ct_STRIP" = x; then
16593 STRIP=":"
16594 else
16595 case $cross_compiling:$ac_tool_warned in
16596 yes:)
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16599 ac_tool_warned=yes ;;
16600 esac
16601 STRIP=$ac_ct_STRIP
16602 fi
16603 else
16604 STRIP="$ac_cv_prog_STRIP"
16605 fi
16606
16607 test -z "$STRIP" && STRIP=:
16608
16609
16610
16611
16612
16613
16614 if test -n "$ac_tool_prefix"; then
16615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16618 $as_echo_n "checking for $ac_word... " >&6; }
16619 if ${ac_cv_prog_RANLIB+:} false; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 if test -n "$RANLIB"; then
16623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16624 else
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16627 do
16628 IFS=$as_save_IFS
16629 test -z "$as_dir" && as_dir=.
16630 for ac_exec_ext in '' $ac_executable_extensions; do
16631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16634 break 2
16635 fi
16636 done
16637 done
16638 IFS=$as_save_IFS
16639
16640 fi
16641 fi
16642 RANLIB=$ac_cv_prog_RANLIB
16643 if test -n "$RANLIB"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16645 $as_echo "$RANLIB" >&6; }
16646 else
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649 fi
16650
16651
16652 fi
16653 if test -z "$ac_cv_prog_RANLIB"; then
16654 ac_ct_RANLIB=$RANLIB
16655 # Extract the first word of "ranlib", so it can be a program name with args.
16656 set dummy ranlib; ac_word=$2
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16658 $as_echo_n "checking for $ac_word... " >&6; }
16659 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 if test -n "$ac_ct_RANLIB"; then
16663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16664 else
16665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16667 do
16668 IFS=$as_save_IFS
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_prog_ac_ct_RANLIB="ranlib"
16673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16674 break 2
16675 fi
16676 done
16677 done
16678 IFS=$as_save_IFS
16679
16680 fi
16681 fi
16682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16683 if test -n "$ac_ct_RANLIB"; then
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16685 $as_echo "$ac_ct_RANLIB" >&6; }
16686 else
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16689 fi
16690
16691 if test "x$ac_ct_RANLIB" = x; then
16692 RANLIB=":"
16693 else
16694 case $cross_compiling:$ac_tool_warned in
16695 yes:)
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16698 ac_tool_warned=yes ;;
16699 esac
16700 RANLIB=$ac_ct_RANLIB
16701 fi
16702 else
16703 RANLIB="$ac_cv_prog_RANLIB"
16704 fi
16705
16706 test -z "$RANLIB" && RANLIB=:
16707 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16708 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16709 RANLIB="$RANLIB $plugin_option"
16710 fi
16711 fi
16712
16713
16714
16715
16716
16717
16718 # Determine commands to create old-style static archives.
16719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16720 old_postinstall_cmds='chmod 644 $oldlib'
16721 old_postuninstall_cmds=
16722
16723 if test -n "$RANLIB"; then
16724 case $host_os in
16725 openbsd*)
16726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16727 ;;
16728 *)
16729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16730 ;;
16731 esac
16732 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16733 fi
16734
16735 case $host_os in
16736 darwin*)
16737 lock_old_archive_extraction=yes ;;
16738 *)
16739 lock_old_archive_extraction=no ;;
16740 esac
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780 # If no C compiler was specified, use CC.
16781 LTCC=${LTCC-"$CC"}
16782
16783 # If no C compiler flags were specified, use CFLAGS.
16784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16785
16786 # Allow CC to be a program name with arguments.
16787 compiler=$CC
16788
16789
16790 # Check for command to grab the raw symbol name followed by C symbol from nm.
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16792 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16793 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796
16797 # These are sane defaults that work on at least a few old systems.
16798 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16799
16800 # Character class describing NM global symbol codes.
16801 symcode='[BCDEGRST]'
16802
16803 # Regexp to match symbols that can be accessed directly from C.
16804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16805
16806 # Define system-specific variables.
16807 case $host_os in
16808 aix*)
16809 symcode='[BCDT]'
16810 ;;
16811 cygwin* | mingw* | pw32* | cegcc*)
16812 symcode='[ABCDGISTW]'
16813 ;;
16814 hpux*)
16815 if test "$host_cpu" = ia64; then
16816 symcode='[ABCDEGRST]'
16817 fi
16818 ;;
16819 irix* | nonstopux*)
16820 symcode='[BCDEGRST]'
16821 ;;
16822 osf*)
16823 symcode='[BCDEGQRST]'
16824 ;;
16825 solaris*)
16826 symcode='[BCDRT]'
16827 ;;
16828 sco3.2v5*)
16829 symcode='[DT]'
16830 ;;
16831 sysv4.2uw2*)
16832 symcode='[DT]'
16833 ;;
16834 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16835 symcode='[ABDT]'
16836 ;;
16837 sysv4)
16838 symcode='[DFNSTU]'
16839 ;;
16840 esac
16841
16842 # If we're using GNU nm, then use its standard symbol codes.
16843 case `$NM -V 2>&1` in
16844 *GNU* | *'with BFD'*)
16845 symcode='[ABCDGIRSTW]' ;;
16846 esac
16847
16848 # Transform an extracted symbol line into a proper C declaration.
16849 # Some systems (esp. on ia64) link data and code symbols differently,
16850 # so use this general approach.
16851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16852
16853 # Transform an extracted symbol line into symbol name and symbol address
16854 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16855 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'"
16856
16857 # Handle CRLF in mingw tool chain
16858 opt_cr=
16859 case $build_os in
16860 mingw*)
16861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16862 ;;
16863 esac
16864
16865 # Try without a prefix underscore, then with it.
16866 for ac_symprfx in "" "_"; do
16867
16868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16869 symxfrm="\\1 $ac_symprfx\\2 \\2"
16870
16871 # Write the raw and C identifiers.
16872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16873 # Fake it for dumpbin and say T for any non-static function
16874 # and D for any global variable.
16875 # Also find C++ and __fastcall symbols from MSVC++,
16876 # which start with @ or ?.
16877 lt_cv_sys_global_symbol_pipe="$AWK '"\
16878 " {last_section=section; section=\$ 3};"\
16879 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16880 " \$ 0!~/External *\|/{next};"\
16881 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16882 " {if(hide[section]) next};"\
16883 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16884 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16885 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16886 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16887 " ' prfx=^$ac_symprfx"
16888 else
16889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16890 fi
16891
16892 # Check to see that the pipe works correctly.
16893 pipe_works=no
16894
16895 rm -f conftest*
16896 cat > conftest.$ac_ext <<_LT_EOF
16897 #ifdef __cplusplus
16898 extern "C" {
16899 #endif
16900 char nm_test_var;
16901 void nm_test_func(void);
16902 void nm_test_func(void){}
16903 #ifdef __cplusplus
16904 }
16905 #endif
16906 int main(){nm_test_var='a';nm_test_func();return(0);}
16907 _LT_EOF
16908
16909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16910 (eval $ac_compile) 2>&5
16911 ac_status=$?
16912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16913 test $ac_status = 0; }; then
16914 # Now try to grab the symbols.
16915 nlist=conftest.nm
16916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16917 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16918 ac_status=$?
16919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16920 test $ac_status = 0; } && test -s "$nlist"; then
16921 # Try sorting and uniquifying the output.
16922 if sort "$nlist" | uniq > "$nlist"T; then
16923 mv -f "$nlist"T "$nlist"
16924 else
16925 rm -f "$nlist"T
16926 fi
16927
16928 # Make sure that we snagged all the symbols we need.
16929 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16930 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16931 cat <<_LT_EOF > conftest.$ac_ext
16932 #ifdef __cplusplus
16933 extern "C" {
16934 #endif
16935
16936 _LT_EOF
16937 # Now generate the symbol file.
16938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16939
16940 cat <<_LT_EOF >> conftest.$ac_ext
16941
16942 /* The mapping between symbol names and symbols. */
16943 const struct {
16944 const char *name;
16945 void *address;
16946 }
16947 lt__PROGRAM__LTX_preloaded_symbols[] =
16948 {
16949 { "@PROGRAM@", (void *) 0 },
16950 _LT_EOF
16951 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16952 cat <<\_LT_EOF >> conftest.$ac_ext
16953 {0, (void *) 0}
16954 };
16955
16956 /* This works around a problem in FreeBSD linker */
16957 #ifdef FREEBSD_WORKAROUND
16958 static const void *lt_preloaded_setup() {
16959 return lt__PROGRAM__LTX_preloaded_symbols;
16960 }
16961 #endif
16962
16963 #ifdef __cplusplus
16964 }
16965 #endif
16966 _LT_EOF
16967 # Now try linking the two files.
16968 mv conftest.$ac_objext conftstm.$ac_objext
16969 lt_save_LIBS="$LIBS"
16970 lt_save_CFLAGS="$CFLAGS"
16971 LIBS="conftstm.$ac_objext"
16972 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16974 (eval $ac_link) 2>&5
16975 ac_status=$?
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16977 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16978 pipe_works=yes
16979 fi
16980 LIBS="$lt_save_LIBS"
16981 CFLAGS="$lt_save_CFLAGS"
16982 else
16983 echo "cannot find nm_test_func in $nlist" >&5
16984 fi
16985 else
16986 echo "cannot find nm_test_var in $nlist" >&5
16987 fi
16988 else
16989 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16990 fi
16991 else
16992 echo "$progname: failed program was:" >&5
16993 cat conftest.$ac_ext >&5
16994 fi
16995 rm -rf conftest* conftst*
16996
16997 # Do not use the global_symbol_pipe unless it works.
16998 if test "$pipe_works" = yes; then
16999 break
17000 else
17001 lt_cv_sys_global_symbol_pipe=
17002 fi
17003 done
17004
17005 fi
17006
17007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17008 lt_cv_sys_global_symbol_to_cdecl=
17009 fi
17010 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17012 $as_echo "failed" >&6; }
17013 else
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17015 $as_echo "ok" >&6; }
17016 fi
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039 # Check whether --enable-libtool-lock was given.
17040 if test "${enable_libtool_lock+set}" = set; then :
17041 enableval=$enable_libtool_lock;
17042 fi
17043
17044 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17045
17046 # Some flags need to be propagated to the compiler or linker for good
17047 # libtool support.
17048 case $host in
17049 ia64-*-hpux*)
17050 # Find out which ABI we are using.
17051 echo 'int i;' > conftest.$ac_ext
17052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17053 (eval $ac_compile) 2>&5
17054 ac_status=$?
17055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17056 test $ac_status = 0; }; then
17057 case `/usr/bin/file conftest.$ac_objext` in
17058 *ELF-32*)
17059 HPUX_IA64_MODE="32"
17060 ;;
17061 *ELF-64*)
17062 HPUX_IA64_MODE="64"
17063 ;;
17064 esac
17065 fi
17066 rm -rf conftest*
17067 ;;
17068 *-*-irix6*)
17069 # Find out which ABI we are using.
17070 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17072 (eval $ac_compile) 2>&5
17073 ac_status=$?
17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075 test $ac_status = 0; }; then
17076 if test "$lt_cv_prog_gnu_ld" = yes; then
17077 case `/usr/bin/file conftest.$ac_objext` in
17078 *32-bit*)
17079 LD="${LD-ld} -melf32bsmip"
17080 ;;
17081 *N32*)
17082 LD="${LD-ld} -melf32bmipn32"
17083 ;;
17084 *64-bit*)
17085 LD="${LD-ld} -melf64bmip"
17086 ;;
17087 esac
17088 else
17089 case `/usr/bin/file conftest.$ac_objext` in
17090 *32-bit*)
17091 LD="${LD-ld} -32"
17092 ;;
17093 *N32*)
17094 LD="${LD-ld} -n32"
17095 ;;
17096 *64-bit*)
17097 LD="${LD-ld} -64"
17098 ;;
17099 esac
17100 fi
17101 fi
17102 rm -rf conftest*
17103 ;;
17104
17105 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17106 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17107 # Find out which ABI we are using.
17108 echo 'int i;' > conftest.$ac_ext
17109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17110 (eval $ac_compile) 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; then
17114 case `/usr/bin/file conftest.o` in
17115 *32-bit*)
17116 case $host in
17117 x86_64-*kfreebsd*-gnu)
17118 LD="${LD-ld} -m elf_i386_fbsd"
17119 ;;
17120 x86_64-*linux*)
17121 case `/usr/bin/file conftest.o` in
17122 *x86-64*)
17123 LD="${LD-ld} -m elf32_x86_64"
17124 ;;
17125 *)
17126 LD="${LD-ld} -m elf_i386"
17127 ;;
17128 esac
17129 ;;
17130 powerpc64le-*linux*)
17131 LD="${LD-ld} -m elf32lppclinux"
17132 ;;
17133 powerpc64-*linux*)
17134 LD="${LD-ld} -m elf32ppclinux"
17135 ;;
17136 s390x-*linux*)
17137 LD="${LD-ld} -m elf_s390"
17138 ;;
17139 sparc64-*linux*)
17140 LD="${LD-ld} -m elf32_sparc"
17141 ;;
17142 esac
17143 ;;
17144 *64-bit*)
17145 case $host in
17146 x86_64-*kfreebsd*-gnu)
17147 LD="${LD-ld} -m elf_x86_64_fbsd"
17148 ;;
17149 x86_64-*linux*)
17150 LD="${LD-ld} -m elf_x86_64"
17151 ;;
17152 powerpcle-*linux*)
17153 LD="${LD-ld} -m elf64lppc"
17154 ;;
17155 powerpc-*linux*)
17156 LD="${LD-ld} -m elf64ppc"
17157 ;;
17158 s390*-*linux*|s390*-*tpf*)
17159 LD="${LD-ld} -m elf64_s390"
17160 ;;
17161 sparc*-*linux*)
17162 LD="${LD-ld} -m elf64_sparc"
17163 ;;
17164 esac
17165 ;;
17166 esac
17167 fi
17168 rm -rf conftest*
17169 ;;
17170
17171 *-*-sco3.2v5*)
17172 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17173 SAVE_CFLAGS="$CFLAGS"
17174 CFLAGS="$CFLAGS -belf"
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17177 if ${lt_cv_cc_needs_belf+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 ac_ext=c
17181 ac_cpp='$CPP $CPPFLAGS'
17182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17185
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188
17189 int
17190 main ()
17191 {
17192
17193 ;
17194 return 0;
17195 }
17196 _ACEOF
17197 if ac_fn_c_try_link "$LINENO"; then :
17198 lt_cv_cc_needs_belf=yes
17199 else
17200 lt_cv_cc_needs_belf=no
17201 fi
17202 rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 ac_ext=c
17205 ac_cpp='$CPP $CPPFLAGS'
17206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17209
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17215 CFLAGS="$SAVE_CFLAGS"
17216 fi
17217 ;;
17218 sparc*-*solaris*)
17219 # Find out which ABI we are using.
17220 echo 'int i;' > conftest.$ac_ext
17221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17222 (eval $ac_compile) 2>&5
17223 ac_status=$?
17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17225 test $ac_status = 0; }; then
17226 case `/usr/bin/file conftest.o` in
17227 *64-bit*)
17228 case $lt_cv_prog_gnu_ld in
17229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17230 *)
17231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17232 LD="${LD-ld} -64"
17233 fi
17234 ;;
17235 esac
17236 ;;
17237 esac
17238 fi
17239 rm -rf conftest*
17240 ;;
17241 esac
17242
17243 need_locks="$enable_libtool_lock"
17244
17245
17246 case $host_os in
17247 rhapsody* | darwin*)
17248 if test -n "$ac_tool_prefix"; then
17249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17252 $as_echo_n "checking for $ac_word... " >&6; }
17253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256 if test -n "$DSYMUTIL"; then
17257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17258 else
17259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260 for as_dir in $PATH
17261 do
17262 IFS=$as_save_IFS
17263 test -z "$as_dir" && as_dir=.
17264 for ac_exec_ext in '' $ac_executable_extensions; do
17265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17268 break 2
17269 fi
17270 done
17271 done
17272 IFS=$as_save_IFS
17273
17274 fi
17275 fi
17276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17277 if test -n "$DSYMUTIL"; then
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17279 $as_echo "$DSYMUTIL" >&6; }
17280 else
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283 fi
17284
17285
17286 fi
17287 if test -z "$ac_cv_prog_DSYMUTIL"; then
17288 ac_ct_DSYMUTIL=$DSYMUTIL
17289 # Extract the first word of "dsymutil", so it can be a program name with args.
17290 set dummy dsymutil; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17292 $as_echo_n "checking for $ac_word... " >&6; }
17293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295 else
17296 if test -n "$ac_ct_DSYMUTIL"; then
17297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17298 else
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $PATH
17301 do
17302 IFS=$as_save_IFS
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17308 break 2
17309 fi
17310 done
17311 done
17312 IFS=$as_save_IFS
17313
17314 fi
17315 fi
17316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17317 if test -n "$ac_ct_DSYMUTIL"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17320 else
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17323 fi
17324
17325 if test "x$ac_ct_DSYMUTIL" = x; then
17326 DSYMUTIL=":"
17327 else
17328 case $cross_compiling:$ac_tool_warned in
17329 yes:)
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17332 ac_tool_warned=yes ;;
17333 esac
17334 DSYMUTIL=$ac_ct_DSYMUTIL
17335 fi
17336 else
17337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17338 fi
17339
17340 if test -n "$ac_tool_prefix"; then
17341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17344 $as_echo_n "checking for $ac_word... " >&6; }
17345 if ${ac_cv_prog_NMEDIT+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 if test -n "$NMEDIT"; then
17349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17350 else
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17353 do
17354 IFS=$as_save_IFS
17355 test -z "$as_dir" && as_dir=.
17356 for ac_exec_ext in '' $ac_executable_extensions; do
17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17360 break 2
17361 fi
17362 done
17363 done
17364 IFS=$as_save_IFS
17365
17366 fi
17367 fi
17368 NMEDIT=$ac_cv_prog_NMEDIT
17369 if test -n "$NMEDIT"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17371 $as_echo "$NMEDIT" >&6; }
17372 else
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17374 $as_echo "no" >&6; }
17375 fi
17376
17377
17378 fi
17379 if test -z "$ac_cv_prog_NMEDIT"; then
17380 ac_ct_NMEDIT=$NMEDIT
17381 # Extract the first word of "nmedit", so it can be a program name with args.
17382 set dummy nmedit; ac_word=$2
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384 $as_echo_n "checking for $ac_word... " >&6; }
17385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 if test -n "$ac_ct_NMEDIT"; then
17389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17390 else
17391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17392 for as_dir in $PATH
17393 do
17394 IFS=$as_save_IFS
17395 test -z "$as_dir" && as_dir=.
17396 for ac_exec_ext in '' $ac_executable_extensions; do
17397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17400 break 2
17401 fi
17402 done
17403 done
17404 IFS=$as_save_IFS
17405
17406 fi
17407 fi
17408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17409 if test -n "$ac_ct_NMEDIT"; then
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17411 $as_echo "$ac_ct_NMEDIT" >&6; }
17412 else
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414 $as_echo "no" >&6; }
17415 fi
17416
17417 if test "x$ac_ct_NMEDIT" = x; then
17418 NMEDIT=":"
17419 else
17420 case $cross_compiling:$ac_tool_warned in
17421 yes:)
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17424 ac_tool_warned=yes ;;
17425 esac
17426 NMEDIT=$ac_ct_NMEDIT
17427 fi
17428 else
17429 NMEDIT="$ac_cv_prog_NMEDIT"
17430 fi
17431
17432 if test -n "$ac_tool_prefix"; then
17433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 $as_echo_n "checking for $ac_word... " >&6; }
17437 if ${ac_cv_prog_LIPO+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 if test -n "$LIPO"; then
17441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17442 else
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17445 do
17446 IFS=$as_save_IFS
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17452 break 2
17453 fi
17454 done
17455 done
17456 IFS=$as_save_IFS
17457
17458 fi
17459 fi
17460 LIPO=$ac_cv_prog_LIPO
17461 if test -n "$LIPO"; then
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17463 $as_echo "$LIPO" >&6; }
17464 else
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 $as_echo "no" >&6; }
17467 fi
17468
17469
17470 fi
17471 if test -z "$ac_cv_prog_LIPO"; then
17472 ac_ct_LIPO=$LIPO
17473 # Extract the first word of "lipo", so it can be a program name with args.
17474 set dummy lipo; ac_word=$2
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17476 $as_echo_n "checking for $ac_word... " >&6; }
17477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479 else
17480 if test -n "$ac_ct_LIPO"; then
17481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17482 else
17483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17484 for as_dir in $PATH
17485 do
17486 IFS=$as_save_IFS
17487 test -z "$as_dir" && as_dir=.
17488 for ac_exec_ext in '' $ac_executable_extensions; do
17489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17490 ac_cv_prog_ac_ct_LIPO="lipo"
17491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17492 break 2
17493 fi
17494 done
17495 done
17496 IFS=$as_save_IFS
17497
17498 fi
17499 fi
17500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17501 if test -n "$ac_ct_LIPO"; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17503 $as_echo "$ac_ct_LIPO" >&6; }
17504 else
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17507 fi
17508
17509 if test "x$ac_ct_LIPO" = x; then
17510 LIPO=":"
17511 else
17512 case $cross_compiling:$ac_tool_warned in
17513 yes:)
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17516 ac_tool_warned=yes ;;
17517 esac
17518 LIPO=$ac_ct_LIPO
17519 fi
17520 else
17521 LIPO="$ac_cv_prog_LIPO"
17522 fi
17523
17524 if test -n "$ac_tool_prefix"; then
17525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17526 set dummy ${ac_tool_prefix}otool; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17528 $as_echo_n "checking for $ac_word... " >&6; }
17529 if ${ac_cv_prog_OTOOL+:} false; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 if test -n "$OTOOL"; then
17533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17534 else
17535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17537 do
17538 IFS=$as_save_IFS
17539 test -z "$as_dir" && as_dir=.
17540 for ac_exec_ext in '' $ac_executable_extensions; do
17541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17544 break 2
17545 fi
17546 done
17547 done
17548 IFS=$as_save_IFS
17549
17550 fi
17551 fi
17552 OTOOL=$ac_cv_prog_OTOOL
17553 if test -n "$OTOOL"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17555 $as_echo "$OTOOL" >&6; }
17556 else
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17559 fi
17560
17561
17562 fi
17563 if test -z "$ac_cv_prog_OTOOL"; then
17564 ac_ct_OTOOL=$OTOOL
17565 # Extract the first word of "otool", so it can be a program name with args.
17566 set dummy otool; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 $as_echo_n "checking for $ac_word... " >&6; }
17569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 if test -n "$ac_ct_OTOOL"; then
17573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17574 else
17575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17576 for as_dir in $PATH
17577 do
17578 IFS=$as_save_IFS
17579 test -z "$as_dir" && as_dir=.
17580 for ac_exec_ext in '' $ac_executable_extensions; do
17581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17582 ac_cv_prog_ac_ct_OTOOL="otool"
17583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17584 break 2
17585 fi
17586 done
17587 done
17588 IFS=$as_save_IFS
17589
17590 fi
17591 fi
17592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17593 if test -n "$ac_ct_OTOOL"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17595 $as_echo "$ac_ct_OTOOL" >&6; }
17596 else
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17598 $as_echo "no" >&6; }
17599 fi
17600
17601 if test "x$ac_ct_OTOOL" = x; then
17602 OTOOL=":"
17603 else
17604 case $cross_compiling:$ac_tool_warned in
17605 yes:)
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17608 ac_tool_warned=yes ;;
17609 esac
17610 OTOOL=$ac_ct_OTOOL
17611 fi
17612 else
17613 OTOOL="$ac_cv_prog_OTOOL"
17614 fi
17615
17616 if test -n "$ac_tool_prefix"; then
17617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17620 $as_echo_n "checking for $ac_word... " >&6; }
17621 if ${ac_cv_prog_OTOOL64+:} false; then :
17622 $as_echo_n "(cached) " >&6
17623 else
17624 if test -n "$OTOOL64"; then
17625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17626 else
17627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17628 for as_dir in $PATH
17629 do
17630 IFS=$as_save_IFS
17631 test -z "$as_dir" && as_dir=.
17632 for ac_exec_ext in '' $ac_executable_extensions; do
17633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17636 break 2
17637 fi
17638 done
17639 done
17640 IFS=$as_save_IFS
17641
17642 fi
17643 fi
17644 OTOOL64=$ac_cv_prog_OTOOL64
17645 if test -n "$OTOOL64"; then
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17647 $as_echo "$OTOOL64" >&6; }
17648 else
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650 $as_echo "no" >&6; }
17651 fi
17652
17653
17654 fi
17655 if test -z "$ac_cv_prog_OTOOL64"; then
17656 ac_ct_OTOOL64=$OTOOL64
17657 # Extract the first word of "otool64", so it can be a program name with args.
17658 set dummy otool64; ac_word=$2
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17660 $as_echo_n "checking for $ac_word... " >&6; }
17661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17664 if test -n "$ac_ct_OTOOL64"; then
17665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17666 else
17667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17668 for as_dir in $PATH
17669 do
17670 IFS=$as_save_IFS
17671 test -z "$as_dir" && as_dir=.
17672 for ac_exec_ext in '' $ac_executable_extensions; do
17673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17674 ac_cv_prog_ac_ct_OTOOL64="otool64"
17675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17676 break 2
17677 fi
17678 done
17679 done
17680 IFS=$as_save_IFS
17681
17682 fi
17683 fi
17684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17685 if test -n "$ac_ct_OTOOL64"; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17687 $as_echo "$ac_ct_OTOOL64" >&6; }
17688 else
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690 $as_echo "no" >&6; }
17691 fi
17692
17693 if test "x$ac_ct_OTOOL64" = x; then
17694 OTOOL64=":"
17695 else
17696 case $cross_compiling:$ac_tool_warned in
17697 yes:)
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17700 ac_tool_warned=yes ;;
17701 esac
17702 OTOOL64=$ac_ct_OTOOL64
17703 fi
17704 else
17705 OTOOL64="$ac_cv_prog_OTOOL64"
17706 fi
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17735 $as_echo_n "checking for -single_module linker flag... " >&6; }
17736 if ${lt_cv_apple_cc_single_mod+:} false; then :
17737 $as_echo_n "(cached) " >&6
17738 else
17739 lt_cv_apple_cc_single_mod=no
17740 if test -z "${LT_MULTI_MODULE}"; then
17741 # By default we will add the -single_module flag. You can override
17742 # by either setting the environment variable LT_MULTI_MODULE
17743 # non-empty at configure time, or by adding -multi_module to the
17744 # link flags.
17745 rm -rf libconftest.dylib*
17746 echo "int foo(void){return 1;}" > conftest.c
17747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17748 -dynamiclib -Wl,-single_module conftest.c" >&5
17749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17751 _lt_result=$?
17752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17753 lt_cv_apple_cc_single_mod=yes
17754 else
17755 cat conftest.err >&5
17756 fi
17757 rm -rf libconftest.dylib*
17758 rm -f conftest.*
17759 fi
17760 fi
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 lt_cv_ld_exported_symbols_list=no
17769 save_LDFLAGS=$LDFLAGS
17770 echo "_main" > conftest.sym
17771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774
17775 int
17776 main ()
17777 {
17778
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 if ac_fn_c_try_link "$LINENO"; then :
17784 lt_cv_ld_exported_symbols_list=yes
17785 else
17786 lt_cv_ld_exported_symbols_list=no
17787 fi
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LDFLAGS="$save_LDFLAGS"
17791
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17796 $as_echo_n "checking for -force_load linker flag... " >&6; }
17797 if ${lt_cv_ld_force_load+:} false; then :
17798 $as_echo_n "(cached) " >&6
17799 else
17800 lt_cv_ld_force_load=no
17801 cat > conftest.c << _LT_EOF
17802 int forced_loaded() { return 2;}
17803 _LT_EOF
17804 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17805 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17806 echo "$AR cru libconftest.a conftest.o" >&5
17807 $AR cru libconftest.a conftest.o 2>&5
17808 cat > conftest.c << _LT_EOF
17809 int main() { return 0;}
17810 _LT_EOF
17811 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17812 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17813 _lt_result=$?
17814 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17815 lt_cv_ld_force_load=yes
17816 else
17817 cat conftest.err >&5
17818 fi
17819 rm -f conftest.err libconftest.a conftest conftest.c
17820 rm -rf conftest.dSYM
17821
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17824 $as_echo "$lt_cv_ld_force_load" >&6; }
17825 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17826 # build without first building modern cctools / linker.
17827 case $host_cpu-$host_os in
17828 *-rhapsody* | *-darwin1.[012])
17829 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17830 *-darwin1.*)
17831 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17832 *-darwin*)
17833 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17834 # deployment target is forced to an earlier version.
17835 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17836 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17837 ;;
17838 10.[012][,.]*)
17839 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17840 ;;
17841 *)
17842 ;;
17843 esac
17844 ;;
17845 esac
17846 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17847 _lt_dar_single_mod='$single_module'
17848 fi
17849 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17850 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17851 else
17852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17853 fi
17854 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17855 _lt_dsymutil='~$DSYMUTIL $lib || :'
17856 else
17857 _lt_dsymutil=
17858 fi
17859 ;;
17860 esac
17861
17862
17863 for ac_header in dlfcn.h
17864 do :
17865 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
17866 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17867 cat >>confdefs.h <<_ACEOF
17868 #define HAVE_DLFCN_H 1
17869 _ACEOF
17870
17871 fi
17872 done
17873
17874
17875
17876
17877
17878 # Set options
17879
17880
17881
17882 enable_dlopen=no
17883
17884
17885 enable_win32_dll=no
17886
17887
17888 # Check whether --enable-shared was given.
17889 if test "${enable_shared+set}" = set; then :
17890 enableval=$enable_shared; p=${PACKAGE-default}
17891 case $enableval in
17892 yes) enable_shared=yes ;;
17893 no) enable_shared=no ;;
17894 *)
17895 enable_shared=no
17896 # Look at the argument we got. We use all the common list separators.
17897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17898 for pkg in $enableval; do
17899 IFS="$lt_save_ifs"
17900 if test "X$pkg" = "X$p"; then
17901 enable_shared=yes
17902 fi
17903 done
17904 IFS="$lt_save_ifs"
17905 ;;
17906 esac
17907 else
17908 enable_shared=yes
17909 fi
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919 # Check whether --enable-static was given.
17920 if test "${enable_static+set}" = set; then :
17921 enableval=$enable_static; p=${PACKAGE-default}
17922 case $enableval in
17923 yes) enable_static=yes ;;
17924 no) enable_static=no ;;
17925 *)
17926 enable_static=no
17927 # Look at the argument we got. We use all the common list separators.
17928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17929 for pkg in $enableval; do
17930 IFS="$lt_save_ifs"
17931 if test "X$pkg" = "X$p"; then
17932 enable_static=yes
17933 fi
17934 done
17935 IFS="$lt_save_ifs"
17936 ;;
17937 esac
17938 else
17939 enable_static=yes
17940 fi
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951 # Check whether --with-pic was given.
17952 if test "${with_pic+set}" = set; then :
17953 withval=$with_pic; pic_mode="$withval"
17954 else
17955 pic_mode=default
17956 fi
17957
17958
17959 test -z "$pic_mode" && pic_mode=default
17960
17961
17962
17963
17964
17965
17966
17967 # Check whether --enable-fast-install was given.
17968 if test "${enable_fast_install+set}" = set; then :
17969 enableval=$enable_fast_install; p=${PACKAGE-default}
17970 case $enableval in
17971 yes) enable_fast_install=yes ;;
17972 no) enable_fast_install=no ;;
17973 *)
17974 enable_fast_install=no
17975 # Look at the argument we got. We use all the common list separators.
17976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17977 for pkg in $enableval; do
17978 IFS="$lt_save_ifs"
17979 if test "X$pkg" = "X$p"; then
17980 enable_fast_install=yes
17981 fi
17982 done
17983 IFS="$lt_save_ifs"
17984 ;;
17985 esac
17986 else
17987 enable_fast_install=yes
17988 fi
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000 # This can be used to rebuild libtool when needed
18001 LIBTOOL_DEPS="$ltmain"
18002
18003 # Always use our own libtool.
18004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031 test -z "$LN_S" && LN_S="ln -s"
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046 if test -n "${ZSH_VERSION+set}" ; then
18047 setopt NO_GLOB_SUBST
18048 fi
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18051 $as_echo_n "checking for objdir... " >&6; }
18052 if ${lt_cv_objdir+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 rm -f .libs 2>/dev/null
18056 mkdir .libs 2>/dev/null
18057 if test -d .libs; then
18058 lt_cv_objdir=.libs
18059 else
18060 # MS-DOS does not allow filenames that begin with a dot.
18061 lt_cv_objdir=_libs
18062 fi
18063 rmdir .libs 2>/dev/null
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18066 $as_echo "$lt_cv_objdir" >&6; }
18067 objdir=$lt_cv_objdir
18068
18069
18070
18071
18072
18073 cat >>confdefs.h <<_ACEOF
18074 #define LT_OBJDIR "$lt_cv_objdir/"
18075 _ACEOF
18076
18077
18078
18079
18080 case $host_os in
18081 aix3*)
18082 # AIX sometimes has problems with the GCC collect2 program. For some
18083 # reason, if we set the COLLECT_NAMES environment variable, the problems
18084 # vanish in a puff of smoke.
18085 if test "X${COLLECT_NAMES+set}" != Xset; then
18086 COLLECT_NAMES=
18087 export COLLECT_NAMES
18088 fi
18089 ;;
18090 esac
18091
18092 # Global variables:
18093 ofile=libtool
18094 can_build_shared=yes
18095
18096 # All known linkers require a `.a' archive for static linking (except MSVC,
18097 # which needs '.lib').
18098 libext=a
18099
18100 with_gnu_ld="$lt_cv_prog_gnu_ld"
18101
18102 old_CC="$CC"
18103 old_CFLAGS="$CFLAGS"
18104
18105 # Set sane defaults for various variables
18106 test -z "$CC" && CC=cc
18107 test -z "$LTCC" && LTCC=$CC
18108 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18109 test -z "$LD" && LD=ld
18110 test -z "$ac_objext" && ac_objext=o
18111
18112 for cc_temp in $compiler""; do
18113 case $cc_temp in
18114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18116 \-*) ;;
18117 *) break;;
18118 esac
18119 done
18120 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18121
18122
18123 # Only perform the check for file, if the check method requires it
18124 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18125 case $deplibs_check_method in
18126 file_magic*)
18127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18129 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18130 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18131 $as_echo_n "(cached) " >&6
18132 else
18133 case $MAGIC_CMD in
18134 [\\/*] | ?:[\\/]*)
18135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18136 ;;
18137 *)
18138 lt_save_MAGIC_CMD="$MAGIC_CMD"
18139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18141 for ac_dir in $ac_dummy; do
18142 IFS="$lt_save_ifs"
18143 test -z "$ac_dir" && ac_dir=.
18144 if test -f $ac_dir/${ac_tool_prefix}file; then
18145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18146 if test -n "$file_magic_test_file"; then
18147 case $deplibs_check_method in
18148 "file_magic "*)
18149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18152 $EGREP "$file_magic_regex" > /dev/null; then
18153 :
18154 else
18155 cat <<_LT_EOF 1>&2
18156
18157 *** Warning: the command libtool uses to detect shared libraries,
18158 *** $file_magic_cmd, produces output that libtool cannot recognize.
18159 *** The result is that libtool may fail to recognize shared libraries
18160 *** as such. This will affect the creation of libtool libraries that
18161 *** depend on shared libraries, but programs linked with such libtool
18162 *** libraries will work regardless of this problem. Nevertheless, you
18163 *** may want to report the problem to your system manager and/or to
18164 *** bug-libtool@gnu.org
18165
18166 _LT_EOF
18167 fi ;;
18168 esac
18169 fi
18170 break
18171 fi
18172 done
18173 IFS="$lt_save_ifs"
18174 MAGIC_CMD="$lt_save_MAGIC_CMD"
18175 ;;
18176 esac
18177 fi
18178
18179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18180 if test -n "$MAGIC_CMD"; then
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18182 $as_echo "$MAGIC_CMD" >&6; }
18183 else
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185 $as_echo "no" >&6; }
18186 fi
18187
18188
18189
18190
18191
18192 if test -z "$lt_cv_path_MAGIC_CMD"; then
18193 if test -n "$ac_tool_prefix"; then
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18195 $as_echo_n "checking for file... " >&6; }
18196 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18197 $as_echo_n "(cached) " >&6
18198 else
18199 case $MAGIC_CMD in
18200 [\\/*] | ?:[\\/]*)
18201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18202 ;;
18203 *)
18204 lt_save_MAGIC_CMD="$MAGIC_CMD"
18205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18207 for ac_dir in $ac_dummy; do
18208 IFS="$lt_save_ifs"
18209 test -z "$ac_dir" && ac_dir=.
18210 if test -f $ac_dir/file; then
18211 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18212 if test -n "$file_magic_test_file"; then
18213 case $deplibs_check_method in
18214 "file_magic "*)
18215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18218 $EGREP "$file_magic_regex" > /dev/null; then
18219 :
18220 else
18221 cat <<_LT_EOF 1>&2
18222
18223 *** Warning: the command libtool uses to detect shared libraries,
18224 *** $file_magic_cmd, produces output that libtool cannot recognize.
18225 *** The result is that libtool may fail to recognize shared libraries
18226 *** as such. This will affect the creation of libtool libraries that
18227 *** depend on shared libraries, but programs linked with such libtool
18228 *** libraries will work regardless of this problem. Nevertheless, you
18229 *** may want to report the problem to your system manager and/or to
18230 *** bug-libtool@gnu.org
18231
18232 _LT_EOF
18233 fi ;;
18234 esac
18235 fi
18236 break
18237 fi
18238 done
18239 IFS="$lt_save_ifs"
18240 MAGIC_CMD="$lt_save_MAGIC_CMD"
18241 ;;
18242 esac
18243 fi
18244
18245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18246 if test -n "$MAGIC_CMD"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18248 $as_echo "$MAGIC_CMD" >&6; }
18249 else
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18252 fi
18253
18254
18255 else
18256 MAGIC_CMD=:
18257 fi
18258 fi
18259
18260 fi
18261 ;;
18262 esac
18263
18264 # Use C for the default configuration in the libtool script
18265
18266 lt_save_CC="$CC"
18267 ac_ext=c
18268 ac_cpp='$CPP $CPPFLAGS'
18269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18272
18273
18274 # Source file extension for C test sources.
18275 ac_ext=c
18276
18277 # Object file extension for compiled C test sources.
18278 objext=o
18279 objext=$objext
18280
18281 # Code to be used in simple compile tests
18282 lt_simple_compile_test_code="int some_variable = 0;"
18283
18284 # Code to be used in simple link tests
18285 lt_simple_link_test_code='int main(){return(0);}'
18286
18287
18288
18289
18290
18291
18292
18293 # If no C compiler was specified, use CC.
18294 LTCC=${LTCC-"$CC"}
18295
18296 # If no C compiler flags were specified, use CFLAGS.
18297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18298
18299 # Allow CC to be a program name with arguments.
18300 compiler=$CC
18301
18302 # Save the default compiler, since it gets overwritten when the other
18303 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18304 compiler_DEFAULT=$CC
18305
18306 # save warnings/boilerplate of simple test code
18307 ac_outfile=conftest.$ac_objext
18308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18310 _lt_compiler_boilerplate=`cat conftest.err`
18311 $RM conftest*
18312
18313 ac_outfile=conftest.$ac_objext
18314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18316 _lt_linker_boilerplate=`cat conftest.err`
18317 $RM -r conftest*
18318
18319
18320 ## CAVEAT EMPTOR:
18321 ## There is no encapsulation within the following macros, do not change
18322 ## the running order or otherwise move them around unless you know exactly
18323 ## what you are doing...
18324 if test -n "$compiler"; then
18325
18326 lt_prog_compiler_no_builtin_flag=
18327
18328 if test "$GCC" = yes; then
18329 case $cc_basename in
18330 nvcc*)
18331 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18332 *)
18333 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18334 esac
18335
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18337 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18338 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 lt_cv_prog_compiler_rtti_exceptions=no
18342 ac_outfile=conftest.$ac_objext
18343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18344 lt_compiler_flag="-fno-rtti -fno-exceptions"
18345 # Insert the option either (1) after the last *FLAGS variable, or
18346 # (2) before a word containing "conftest.", or (3) at the end.
18347 # Note that $ac_compile itself does not contain backslashes and begins
18348 # with a dollar sign (not a hyphen), so the echo should work correctly.
18349 # The option is referenced via a variable to avoid confusing sed.
18350 lt_compile=`echo "$ac_compile" | $SED \
18351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18353 -e 's:$: $lt_compiler_flag:'`
18354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18355 (eval "$lt_compile" 2>conftest.err)
18356 ac_status=$?
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 if (exit $ac_status) && test -s "$ac_outfile"; then
18360 # The compiler can only warn and ignore the option if not recognized
18361 # So say no if there are warnings other than the usual output.
18362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18365 lt_cv_prog_compiler_rtti_exceptions=yes
18366 fi
18367 fi
18368 $RM conftest*
18369
18370 fi
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18372 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18373
18374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18375 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18376 else
18377 :
18378 fi
18379
18380 fi
18381
18382
18383
18384
18385
18386
18387 lt_prog_compiler_wl=
18388 lt_prog_compiler_pic=
18389 lt_prog_compiler_static=
18390
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18392 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18393
18394 if test "$GCC" = yes; then
18395 lt_prog_compiler_wl='-Wl,'
18396 lt_prog_compiler_static='-static'
18397
18398 case $host_os in
18399 aix*)
18400 # All AIX code is PIC.
18401 if test "$host_cpu" = ia64; then
18402 # AIX 5 now supports IA64 processor
18403 lt_prog_compiler_static='-Bstatic'
18404 fi
18405 lt_prog_compiler_pic='-fPIC'
18406 ;;
18407
18408 amigaos*)
18409 case $host_cpu in
18410 powerpc)
18411 # see comment about AmigaOS4 .so support
18412 lt_prog_compiler_pic='-fPIC'
18413 ;;
18414 m68k)
18415 # FIXME: we need at least 68020 code to build shared libraries, but
18416 # adding the `-m68020' flag to GCC prevents building anything better,
18417 # like `-m68040'.
18418 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18419 ;;
18420 esac
18421 ;;
18422
18423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18424 # PIC is the default for these OSes.
18425 ;;
18426
18427 mingw* | cygwin* | pw32* | os2* | cegcc*)
18428 # This hack is so that the source file can tell whether it is being
18429 # built for inclusion in a dll (and should export symbols for example).
18430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18431 # (--disable-auto-import) libraries
18432 lt_prog_compiler_pic='-DDLL_EXPORT'
18433 ;;
18434
18435 darwin* | rhapsody*)
18436 # PIC is the default on this platform
18437 # Common symbols not allowed in MH_DYLIB files
18438 lt_prog_compiler_pic='-fno-common'
18439 ;;
18440
18441 haiku*)
18442 # PIC is the default for Haiku.
18443 # The "-static" flag exists, but is broken.
18444 lt_prog_compiler_static=
18445 ;;
18446
18447 hpux*)
18448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18450 # sets the default TLS model and affects inlining.
18451 case $host_cpu in
18452 hppa*64*)
18453 # +Z the default
18454 ;;
18455 *)
18456 lt_prog_compiler_pic='-fPIC'
18457 ;;
18458 esac
18459 ;;
18460
18461 interix[3-9]*)
18462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18463 # Instead, we relocate shared libraries at runtime.
18464 ;;
18465
18466 msdosdjgpp*)
18467 # Just because we use GCC doesn't mean we suddenly get shared libraries
18468 # on systems that don't support them.
18469 lt_prog_compiler_can_build_shared=no
18470 enable_shared=no
18471 ;;
18472
18473 *nto* | *qnx*)
18474 # QNX uses GNU C++, but need to define -shared option too, otherwise
18475 # it will coredump.
18476 lt_prog_compiler_pic='-fPIC -shared'
18477 ;;
18478
18479 sysv4*MP*)
18480 if test -d /usr/nec; then
18481 lt_prog_compiler_pic=-Kconform_pic
18482 fi
18483 ;;
18484
18485 *)
18486 lt_prog_compiler_pic='-fPIC'
18487 ;;
18488 esac
18489
18490 case $cc_basename in
18491 nvcc*) # Cuda Compiler Driver 2.2
18492 lt_prog_compiler_wl='-Xlinker '
18493 lt_prog_compiler_pic='-Xcompiler -fPIC'
18494 ;;
18495 esac
18496 else
18497 # PORTME Check for flag to pass linker flags through the system compiler.
18498 case $host_os in
18499 aix*)
18500 lt_prog_compiler_wl='-Wl,'
18501 if test "$host_cpu" = ia64; then
18502 # AIX 5 now supports IA64 processor
18503 lt_prog_compiler_static='-Bstatic'
18504 else
18505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18506 fi
18507 ;;
18508
18509 mingw* | cygwin* | pw32* | os2* | cegcc*)
18510 # This hack is so that the source file can tell whether it is being
18511 # built for inclusion in a dll (and should export symbols for example).
18512 lt_prog_compiler_pic='-DDLL_EXPORT'
18513 ;;
18514
18515 hpux9* | hpux10* | hpux11*)
18516 lt_prog_compiler_wl='-Wl,'
18517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18518 # not for PA HP-UX.
18519 case $host_cpu in
18520 hppa*64*|ia64*)
18521 # +Z the default
18522 ;;
18523 *)
18524 lt_prog_compiler_pic='+Z'
18525 ;;
18526 esac
18527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18528 lt_prog_compiler_static='${wl}-a ${wl}archive'
18529 ;;
18530
18531 irix5* | irix6* | nonstopux*)
18532 lt_prog_compiler_wl='-Wl,'
18533 # PIC (with -KPIC) is the default.
18534 lt_prog_compiler_static='-non_shared'
18535 ;;
18536
18537 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18538 case $cc_basename in
18539 # old Intel for x86_64 which still supported -KPIC.
18540 ecc*)
18541 lt_prog_compiler_wl='-Wl,'
18542 lt_prog_compiler_pic='-KPIC'
18543 lt_prog_compiler_static='-static'
18544 ;;
18545 # icc used to be incompatible with GCC.
18546 # ICC 10 doesn't accept -KPIC any more.
18547 icc* | ifort*)
18548 lt_prog_compiler_wl='-Wl,'
18549 lt_prog_compiler_pic='-fPIC'
18550 lt_prog_compiler_static='-static'
18551 ;;
18552 # Lahey Fortran 8.1.
18553 lf95*)
18554 lt_prog_compiler_wl='-Wl,'
18555 lt_prog_compiler_pic='--shared'
18556 lt_prog_compiler_static='--static'
18557 ;;
18558 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18559 # Portland Group compilers (*not* the Pentium gcc compiler,
18560 # which looks to be a dead project)
18561 lt_prog_compiler_wl='-Wl,'
18562 lt_prog_compiler_pic='-fpic'
18563 lt_prog_compiler_static='-Bstatic'
18564 ;;
18565 ccc*)
18566 lt_prog_compiler_wl='-Wl,'
18567 # All Alpha code is PIC.
18568 lt_prog_compiler_static='-non_shared'
18569 ;;
18570 xl* | bgxl* | bgf* | mpixl*)
18571 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18572 lt_prog_compiler_wl='-Wl,'
18573 lt_prog_compiler_pic='-qpic'
18574 lt_prog_compiler_static='-qstaticlink'
18575 ;;
18576 *)
18577 case `$CC -V 2>&1 | sed 5q` in
18578 *Sun\ F* | *Sun*Fortran*)
18579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18580 lt_prog_compiler_pic='-KPIC'
18581 lt_prog_compiler_static='-Bstatic'
18582 lt_prog_compiler_wl=''
18583 ;;
18584 *Sun\ C*)
18585 # Sun C 5.9
18586 lt_prog_compiler_pic='-KPIC'
18587 lt_prog_compiler_static='-Bstatic'
18588 lt_prog_compiler_wl='-Wl,'
18589 ;;
18590 esac
18591 ;;
18592 esac
18593 ;;
18594
18595 newsos6)
18596 lt_prog_compiler_pic='-KPIC'
18597 lt_prog_compiler_static='-Bstatic'
18598 ;;
18599
18600 *nto* | *qnx*)
18601 # QNX uses GNU C++, but need to define -shared option too, otherwise
18602 # it will coredump.
18603 lt_prog_compiler_pic='-fPIC -shared'
18604 ;;
18605
18606 osf3* | osf4* | osf5*)
18607 lt_prog_compiler_wl='-Wl,'
18608 # All OSF/1 code is PIC.
18609 lt_prog_compiler_static='-non_shared'
18610 ;;
18611
18612 rdos*)
18613 lt_prog_compiler_static='-non_shared'
18614 ;;
18615
18616 solaris*)
18617 lt_prog_compiler_pic='-KPIC'
18618 lt_prog_compiler_static='-Bstatic'
18619 case $cc_basename in
18620 f77* | f90* | f95*)
18621 lt_prog_compiler_wl='-Qoption ld ';;
18622 *)
18623 lt_prog_compiler_wl='-Wl,';;
18624 esac
18625 ;;
18626
18627 sunos4*)
18628 lt_prog_compiler_wl='-Qoption ld '
18629 lt_prog_compiler_pic='-PIC'
18630 lt_prog_compiler_static='-Bstatic'
18631 ;;
18632
18633 sysv4 | sysv4.2uw2* | sysv4.3*)
18634 lt_prog_compiler_wl='-Wl,'
18635 lt_prog_compiler_pic='-KPIC'
18636 lt_prog_compiler_static='-Bstatic'
18637 ;;
18638
18639 sysv4*MP*)
18640 if test -d /usr/nec ;then
18641 lt_prog_compiler_pic='-Kconform_pic'
18642 lt_prog_compiler_static='-Bstatic'
18643 fi
18644 ;;
18645
18646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18647 lt_prog_compiler_wl='-Wl,'
18648 lt_prog_compiler_pic='-KPIC'
18649 lt_prog_compiler_static='-Bstatic'
18650 ;;
18651
18652 unicos*)
18653 lt_prog_compiler_wl='-Wl,'
18654 lt_prog_compiler_can_build_shared=no
18655 ;;
18656
18657 uts4*)
18658 lt_prog_compiler_pic='-pic'
18659 lt_prog_compiler_static='-Bstatic'
18660 ;;
18661
18662 *)
18663 lt_prog_compiler_can_build_shared=no
18664 ;;
18665 esac
18666 fi
18667
18668 case $host_os in
18669 # For platforms which do not support PIC, -DPIC is meaningless:
18670 *djgpp*)
18671 lt_prog_compiler_pic=
18672 ;;
18673 *)
18674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18675 ;;
18676 esac
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18678 $as_echo "$lt_prog_compiler_pic" >&6; }
18679
18680
18681
18682
18683
18684
18685 #
18686 # Check to make sure the PIC flag actually works.
18687 #
18688 if test -n "$lt_prog_compiler_pic"; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18690 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18691 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18692 $as_echo_n "(cached) " >&6
18693 else
18694 lt_cv_prog_compiler_pic_works=no
18695 ac_outfile=conftest.$ac_objext
18696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18698 # Insert the option either (1) after the last *FLAGS variable, or
18699 # (2) before a word containing "conftest.", or (3) at the end.
18700 # Note that $ac_compile itself does not contain backslashes and begins
18701 # with a dollar sign (not a hyphen), so the echo should work correctly.
18702 # The option is referenced via a variable to avoid confusing sed.
18703 lt_compile=`echo "$ac_compile" | $SED \
18704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18706 -e 's:$: $lt_compiler_flag:'`
18707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18708 (eval "$lt_compile" 2>conftest.err)
18709 ac_status=$?
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 if (exit $ac_status) && test -s "$ac_outfile"; then
18713 # The compiler can only warn and ignore the option if not recognized
18714 # So say no if there are warnings other than the usual output.
18715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18718 lt_cv_prog_compiler_pic_works=yes
18719 fi
18720 fi
18721 $RM conftest*
18722
18723 fi
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18725 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18726
18727 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18728 case $lt_prog_compiler_pic in
18729 "" | " "*) ;;
18730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18731 esac
18732 else
18733 lt_prog_compiler_pic=
18734 lt_prog_compiler_can_build_shared=no
18735 fi
18736
18737 fi
18738
18739
18740
18741
18742
18743
18744 #
18745 # Check to make sure the static flag actually works.
18746 #
18747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18750 if ${lt_cv_prog_compiler_static_works+:} false; then :
18751 $as_echo_n "(cached) " >&6
18752 else
18753 lt_cv_prog_compiler_static_works=no
18754 save_LDFLAGS="$LDFLAGS"
18755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18758 # The linker can only warn and ignore the option if not recognized
18759 # So say no if there are warnings
18760 if test -s conftest.err; then
18761 # Append any errors to the config.log.
18762 cat conftest.err 1>&5
18763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18765 if diff conftest.exp conftest.er2 >/dev/null; then
18766 lt_cv_prog_compiler_static_works=yes
18767 fi
18768 else
18769 lt_cv_prog_compiler_static_works=yes
18770 fi
18771 fi
18772 $RM -r conftest*
18773 LDFLAGS="$save_LDFLAGS"
18774
18775 fi
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18777 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18778
18779 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18780 :
18781 else
18782 lt_prog_compiler_static=
18783 fi
18784
18785
18786
18787
18788
18789
18790
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18793 if ${lt_cv_prog_compiler_c_o+:} false; then :
18794 $as_echo_n "(cached) " >&6
18795 else
18796 lt_cv_prog_compiler_c_o=no
18797 $RM -r conftest 2>/dev/null
18798 mkdir conftest
18799 cd conftest
18800 mkdir out
18801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18802
18803 lt_compiler_flag="-o out/conftest2.$ac_objext"
18804 # Insert the option either (1) after the last *FLAGS variable, or
18805 # (2) before a word containing "conftest.", or (3) at the end.
18806 # Note that $ac_compile itself does not contain backslashes and begins
18807 # with a dollar sign (not a hyphen), so the echo should work correctly.
18808 lt_compile=`echo "$ac_compile" | $SED \
18809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18811 -e 's:$: $lt_compiler_flag:'`
18812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18813 (eval "$lt_compile" 2>out/conftest.err)
18814 ac_status=$?
18815 cat out/conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18818 then
18819 # The compiler can only warn and ignore the option if not recognized
18820 # So say no if there are warnings
18821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18824 lt_cv_prog_compiler_c_o=yes
18825 fi
18826 fi
18827 chmod u+w . 2>&5
18828 $RM conftest*
18829 # SGI C++ compiler will create directory out/ii_files/ for
18830 # template instantiation
18831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18832 $RM out/* && rmdir out
18833 cd ..
18834 $RM -r conftest
18835 $RM conftest*
18836
18837 fi
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18840
18841
18842
18843
18844
18845
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18848 if ${lt_cv_prog_compiler_c_o+:} false; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851 lt_cv_prog_compiler_c_o=no
18852 $RM -r conftest 2>/dev/null
18853 mkdir conftest
18854 cd conftest
18855 mkdir out
18856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18857
18858 lt_compiler_flag="-o out/conftest2.$ac_objext"
18859 # Insert the option either (1) after the last *FLAGS variable, or
18860 # (2) before a word containing "conftest.", or (3) at the end.
18861 # Note that $ac_compile itself does not contain backslashes and begins
18862 # with a dollar sign (not a hyphen), so the echo should work correctly.
18863 lt_compile=`echo "$ac_compile" | $SED \
18864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18866 -e 's:$: $lt_compiler_flag:'`
18867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18868 (eval "$lt_compile" 2>out/conftest.err)
18869 ac_status=$?
18870 cat out/conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18873 then
18874 # The compiler can only warn and ignore the option if not recognized
18875 # So say no if there are warnings
18876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18879 lt_cv_prog_compiler_c_o=yes
18880 fi
18881 fi
18882 chmod u+w . 2>&5
18883 $RM conftest*
18884 # SGI C++ compiler will create directory out/ii_files/ for
18885 # template instantiation
18886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18887 $RM out/* && rmdir out
18888 cd ..
18889 $RM -r conftest
18890 $RM conftest*
18891
18892 fi
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18895
18896
18897
18898
18899 hard_links="nottested"
18900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18901 # do not overwrite the value of need_locks provided by the user
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18903 $as_echo_n "checking if we can lock with hard links... " >&6; }
18904 hard_links=yes
18905 $RM conftest*
18906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18907 touch conftest.a
18908 ln conftest.a conftest.b 2>&5 || hard_links=no
18909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18911 $as_echo "$hard_links" >&6; }
18912 if test "$hard_links" = no; then
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18914 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18915 need_locks=warn
18916 fi
18917 else
18918 need_locks=no
18919 fi
18920
18921
18922
18923
18924
18925
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18928
18929 runpath_var=
18930 allow_undefined_flag=
18931 always_export_symbols=no
18932 archive_cmds=
18933 archive_expsym_cmds=
18934 compiler_needs_object=no
18935 enable_shared_with_static_runtimes=no
18936 export_dynamic_flag_spec=
18937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18938 hardcode_automatic=no
18939 hardcode_direct=no
18940 hardcode_direct_absolute=no
18941 hardcode_libdir_flag_spec=
18942 hardcode_libdir_flag_spec_ld=
18943 hardcode_libdir_separator=
18944 hardcode_minus_L=no
18945 hardcode_shlibpath_var=unsupported
18946 inherit_rpath=no
18947 link_all_deplibs=unknown
18948 module_cmds=
18949 module_expsym_cmds=
18950 old_archive_from_new_cmds=
18951 old_archive_from_expsyms_cmds=
18952 thread_safe_flag_spec=
18953 whole_archive_flag_spec=
18954 # include_expsyms should be a list of space-separated symbols to be *always*
18955 # included in the symbol list
18956 include_expsyms=
18957 # exclude_expsyms can be an extended regexp of symbols to exclude
18958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18960 # as well as any symbol that contains `d'.
18961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18963 # platforms (ab)use it in PIC code, but their linkers get confused if
18964 # the symbol is explicitly referenced. Since portable code cannot
18965 # rely on this symbol name, it's probably fine to never include it in
18966 # preloaded symbol tables.
18967 # Exclude shared library initialization/finalization symbols.
18968 extract_expsyms_cmds=
18969
18970 case $host_os in
18971 cygwin* | mingw* | pw32* | cegcc*)
18972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18973 # When not using gcc, we currently assume that we are using
18974 # Microsoft Visual C++.
18975 if test "$GCC" != yes; then
18976 with_gnu_ld=no
18977 fi
18978 ;;
18979 interix*)
18980 # we just hope/assume this is gcc and not c89 (= MSVC++)
18981 with_gnu_ld=yes
18982 ;;
18983 openbsd*)
18984 with_gnu_ld=no
18985 ;;
18986 esac
18987
18988 ld_shlibs=yes
18989
18990 # On some targets, GNU ld is compatible enough with the native linker
18991 # that we're better off using the native interface for both.
18992 lt_use_gnu_ld_interface=no
18993 if test "$with_gnu_ld" = yes; then
18994 case $host_os in
18995 aix*)
18996 # The AIX port of GNU ld has always aspired to compatibility
18997 # with the native linker. However, as the warning in the GNU ld
18998 # block says, versions before 2.19.5* couldn't really create working
18999 # shared libraries, regardless of the interface used.
19000 case `$LD -v 2>&1` in
19001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19004 *)
19005 lt_use_gnu_ld_interface=yes
19006 ;;
19007 esac
19008 ;;
19009 *)
19010 lt_use_gnu_ld_interface=yes
19011 ;;
19012 esac
19013 fi
19014
19015 if test "$lt_use_gnu_ld_interface" = yes; then
19016 # If archive_cmds runs LD, not CC, wlarc should be empty
19017 wlarc='${wl}'
19018
19019 # Set some defaults for GNU ld with shared library support. These
19020 # are reset later if shared libraries are not supported. Putting them
19021 # here allows them to be overridden if necessary.
19022 runpath_var=LD_RUN_PATH
19023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19024 export_dynamic_flag_spec='${wl}--export-dynamic'
19025 # ancient GNU ld didn't support --whole-archive et. al.
19026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19027 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19028 else
19029 whole_archive_flag_spec=
19030 fi
19031 supports_anon_versioning=no
19032 case `$LD -v 2>&1` in
19033 *GNU\ gold*) supports_anon_versioning=yes ;;
19034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19037 *\ 2.11.*) ;; # other 2.11 versions
19038 *) supports_anon_versioning=yes ;;
19039 esac
19040
19041 # See if GNU ld supports shared libraries.
19042 case $host_os in
19043 aix[3-9]*)
19044 # On AIX/PPC, the GNU linker is very broken
19045 if test "$host_cpu" != ia64; then
19046 ld_shlibs=no
19047 cat <<_LT_EOF 1>&2
19048
19049 *** Warning: the GNU linker, at least up to release 2.19, is reported
19050 *** to be unable to reliably create shared libraries on AIX.
19051 *** Therefore, libtool is disabling shared libraries support. If you
19052 *** really care for shared libraries, you may want to install binutils
19053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19054 *** You will then need to restart the configuration process.
19055
19056 _LT_EOF
19057 fi
19058 ;;
19059
19060 amigaos*)
19061 case $host_cpu in
19062 powerpc)
19063 # see comment about AmigaOS4 .so support
19064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065 archive_expsym_cmds=''
19066 ;;
19067 m68k)
19068 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)'
19069 hardcode_libdir_flag_spec='-L$libdir'
19070 hardcode_minus_L=yes
19071 ;;
19072 esac
19073 ;;
19074
19075 beos*)
19076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19077 allow_undefined_flag=unsupported
19078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19079 # support --undefined. This deserves some investigation. FIXME
19080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19081 else
19082 ld_shlibs=no
19083 fi
19084 ;;
19085
19086 cygwin* | mingw* | pw32* | cegcc*)
19087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19088 # as there is no search path for DLLs.
19089 hardcode_libdir_flag_spec='-L$libdir'
19090 export_dynamic_flag_spec='${wl}--export-all-symbols'
19091 allow_undefined_flag=unsupported
19092 always_export_symbols=no
19093 enable_shared_with_static_runtimes=yes
19094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19095
19096 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19098 # If the export-symbols file already is a .def file (1st line
19099 # is EXPORTS), use it as is; otherwise, prepend...
19100 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19101 cp $export_symbols $output_objdir/$soname.def;
19102 else
19103 echo EXPORTS > $output_objdir/$soname.def;
19104 cat $export_symbols >> $output_objdir/$soname.def;
19105 fi~
19106 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19107 else
19108 ld_shlibs=no
19109 fi
19110 ;;
19111
19112 haiku*)
19113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 link_all_deplibs=yes
19115 ;;
19116
19117 interix[3-9]*)
19118 hardcode_direct=no
19119 hardcode_shlibpath_var=no
19120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19121 export_dynamic_flag_spec='${wl}-E'
19122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19123 # Instead, shared libraries are loaded at an image base (0x10000000 by
19124 # default) and relocated if they conflict, which is a slow very memory
19125 # consuming and fragmenting process. To avoid this, we pick a random,
19126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19129 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'
19130 ;;
19131
19132 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19133 tmp_diet=no
19134 if test "$host_os" = linux-dietlibc; then
19135 case $cc_basename in
19136 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19137 esac
19138 fi
19139 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19140 && test "$tmp_diet" = no
19141 then
19142 tmp_addflag=' $pic_flag'
19143 tmp_sharedflag='-shared'
19144 case $cc_basename,$host_cpu in
19145 pgcc*) # Portland Group C compiler
19146 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'
19147 tmp_addflag=' $pic_flag'
19148 ;;
19149 pgf77* | pgf90* | pgf95* | pgfortran*)
19150 # Portland Group f77 and f90 compilers
19151 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'
19152 tmp_addflag=' $pic_flag -Mnomain' ;;
19153 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19154 tmp_addflag=' -i_dynamic' ;;
19155 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19156 tmp_addflag=' -i_dynamic -nofor_main' ;;
19157 ifc* | ifort*) # Intel Fortran compiler
19158 tmp_addflag=' -nofor_main' ;;
19159 lf95*) # Lahey Fortran 8.1
19160 whole_archive_flag_spec=
19161 tmp_sharedflag='--shared' ;;
19162 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19163 tmp_sharedflag='-qmkshrobj'
19164 tmp_addflag= ;;
19165 nvcc*) # Cuda Compiler Driver 2.2
19166 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'
19167 compiler_needs_object=yes
19168 ;;
19169 esac
19170 case `$CC -V 2>&1 | sed 5q` in
19171 *Sun\ C*) # Sun C 5.9
19172 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'
19173 compiler_needs_object=yes
19174 tmp_sharedflag='-G' ;;
19175 *Sun\ F*) # Sun Fortran 8.3
19176 tmp_sharedflag='-G' ;;
19177 esac
19178 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19179
19180 if test "x$supports_anon_versioning" = xyes; then
19181 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19183 echo "local: *; };" >> $output_objdir/$libname.ver~
19184 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19185 fi
19186
19187 case $cc_basename in
19188 xlf* | bgf* | bgxlf* | mpixlf*)
19189 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19190 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19191 hardcode_libdir_flag_spec=
19192 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19193 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19194 if test "x$supports_anon_versioning" = xyes; then
19195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197 echo "local: *; };" >> $output_objdir/$libname.ver~
19198 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19199 fi
19200 ;;
19201 esac
19202 else
19203 ld_shlibs=no
19204 fi
19205 ;;
19206
19207 netbsd*)
19208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19210 wlarc=
19211 else
19212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19214 fi
19215 ;;
19216
19217 solaris*)
19218 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19219 ld_shlibs=no
19220 cat <<_LT_EOF 1>&2
19221
19222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19223 *** create shared libraries on Solaris systems. Therefore, libtool
19224 *** is disabling shared libraries support. We urge you to upgrade GNU
19225 *** binutils to release 2.9.1 or newer. Another option is to modify
19226 *** your PATH or compiler configuration so that the native linker is
19227 *** used, and then restart.
19228
19229 _LT_EOF
19230 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19233 else
19234 ld_shlibs=no
19235 fi
19236 ;;
19237
19238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19239 case `$LD -v 2>&1` in
19240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19241 ld_shlibs=no
19242 cat <<_LT_EOF 1>&2
19243
19244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19245 *** reliably create shared libraries on SCO systems. Therefore, libtool
19246 *** is disabling shared libraries support. We urge you to upgrade GNU
19247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19248 *** your PATH or compiler configuration so that the native linker is
19249 *** used, and then restart.
19250
19251 _LT_EOF
19252 ;;
19253 *)
19254 # For security reasons, it is highly recommended that you always
19255 # use absolute paths for naming shared libraries, and exclude the
19256 # DT_RUNPATH tag from executables and libraries. But doing so
19257 # requires that you compile everything twice, which is a pain.
19258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19262 else
19263 ld_shlibs=no
19264 fi
19265 ;;
19266 esac
19267 ;;
19268
19269 sunos4*)
19270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19271 wlarc=
19272 hardcode_direct=yes
19273 hardcode_shlibpath_var=no
19274 ;;
19275
19276 *)
19277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19280 else
19281 ld_shlibs=no
19282 fi
19283 ;;
19284 esac
19285
19286 if test "$ld_shlibs" = no; then
19287 runpath_var=
19288 hardcode_libdir_flag_spec=
19289 export_dynamic_flag_spec=
19290 whole_archive_flag_spec=
19291 fi
19292 else
19293 # PORTME fill in a description of your system's linker (not GNU ld)
19294 case $host_os in
19295 aix3*)
19296 allow_undefined_flag=unsupported
19297 always_export_symbols=yes
19298 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'
19299 # Note: this linker hardcodes the directories in LIBPATH if there
19300 # are no directories specified by -L.
19301 hardcode_minus_L=yes
19302 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19303 # Neither direct hardcoding nor static linking is supported with a
19304 # broken collect2.
19305 hardcode_direct=unsupported
19306 fi
19307 ;;
19308
19309 aix[4-9]*)
19310 if test "$host_cpu" = ia64; then
19311 # On IA64, the linker does run time linking by default, so we don't
19312 # have to do anything special.
19313 aix_use_runtimelinking=no
19314 exp_sym_flag='-Bexport'
19315 no_entry_flag=""
19316 else
19317 # If we're using GNU nm, then we don't want the "-C" option.
19318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19319 # Also, AIX nm treats weak defined symbols like other global
19320 # defined symbols, whereas GNU nm marks them as "W".
19321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19322 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'
19323 else
19324 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'
19325 fi
19326 aix_use_runtimelinking=no
19327
19328 # Test if we are trying to use run time linking or normal
19329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19330 # need to do runtime linking.
19331 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19332 for ld_flag in $LDFLAGS; do
19333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19334 aix_use_runtimelinking=yes
19335 break
19336 fi
19337 done
19338 ;;
19339 esac
19340
19341 exp_sym_flag='-bexport'
19342 no_entry_flag='-bnoentry'
19343 fi
19344
19345 # When large executables or shared objects are built, AIX ld can
19346 # have problems creating the table of contents. If linking a library
19347 # or program results in "error TOC overflow" add -mminimal-toc to
19348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19350
19351 archive_cmds=''
19352 hardcode_direct=yes
19353 hardcode_direct_absolute=yes
19354 hardcode_libdir_separator=':'
19355 link_all_deplibs=yes
19356 file_list_spec='${wl}-f,'
19357
19358 if test "$GCC" = yes; then
19359 case $host_os in aix4.[012]|aix4.[012].*)
19360 # We only want to do this on AIX 4.2 and lower, the check
19361 # below for broken collect2 doesn't work under 4.3+
19362 collect2name=`${CC} -print-prog-name=collect2`
19363 if test -f "$collect2name" &&
19364 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19365 then
19366 # We have reworked collect2
19367 :
19368 else
19369 # We have old collect2
19370 hardcode_direct=unsupported
19371 # It fails to find uninstalled libraries when the uninstalled
19372 # path is not listed in the libpath. Setting hardcode_minus_L
19373 # to unsupported forces relinking
19374 hardcode_minus_L=yes
19375 hardcode_libdir_flag_spec='-L$libdir'
19376 hardcode_libdir_separator=
19377 fi
19378 ;;
19379 esac
19380 shared_flag='-shared'
19381 if test "$aix_use_runtimelinking" = yes; then
19382 shared_flag="$shared_flag "'${wl}-G'
19383 fi
19384 else
19385 # not using gcc
19386 if test "$host_cpu" = ia64; then
19387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19388 # chokes on -Wl,-G. The following line is correct:
19389 shared_flag='-G'
19390 else
19391 if test "$aix_use_runtimelinking" = yes; then
19392 shared_flag='${wl}-G'
19393 else
19394 shared_flag='${wl}-bM:SRE'
19395 fi
19396 fi
19397 fi
19398
19399 export_dynamic_flag_spec='${wl}-bexpall'
19400 # It seems that -bexpall does not export symbols beginning with
19401 # underscore (_), so it is better to generate a list of symbols to export.
19402 always_export_symbols=yes
19403 if test "$aix_use_runtimelinking" = yes; then
19404 # Warning - without using the other runtime loading flags (-brtl),
19405 # -berok will link without error, but may produce a broken library.
19406 allow_undefined_flag='-berok'
19407 # Determine the default libpath from the value encoded in an
19408 # empty executable.
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19411
19412 int
19413 main ()
19414 {
19415
19416 ;
19417 return 0;
19418 }
19419 _ACEOF
19420 if ac_fn_c_try_link "$LINENO"; then :
19421
19422 lt_aix_libpath_sed='
19423 /Import File Strings/,/^$/ {
19424 /^0/ {
19425 s/^0 *\(.*\)$/\1/
19426 p
19427 }
19428 }'
19429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19430 # Check for a 64-bit object if we didn't find anything.
19431 if test -z "$aix_libpath"; then
19432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19433 fi
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext \
19436 conftest$ac_exeext conftest.$ac_ext
19437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19438
19439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19440 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"
19441 else
19442 if test "$host_cpu" = ia64; then
19443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19444 allow_undefined_flag="-z nodefs"
19445 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"
19446 else
19447 # Determine the default libpath from the value encoded in an
19448 # empty executable.
19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19451
19452 int
19453 main ()
19454 {
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_link "$LINENO"; then :
19461
19462 lt_aix_libpath_sed='
19463 /Import File Strings/,/^$/ {
19464 /^0/ {
19465 s/^0 *\(.*\)$/\1/
19466 p
19467 }
19468 }'
19469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19470 # Check for a 64-bit object if we didn't find anything.
19471 if test -z "$aix_libpath"; then
19472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19473 fi
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19478
19479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19480 # Warning - without using the other run time loading flags,
19481 # -berok will link without error, but may produce a broken library.
19482 no_undefined_flag=' ${wl}-bernotok'
19483 allow_undefined_flag=' ${wl}-berok'
19484 if test "$with_gnu_ld" = yes; then
19485 # We only use this code for GNU lds that support --whole-archive.
19486 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19487 else
19488 # Exported symbols can be pulled into shared objects from archives
19489 whole_archive_flag_spec='$convenience'
19490 fi
19491 archive_cmds_need_lc=yes
19492 # This is similar to how AIX traditionally builds its shared libraries.
19493 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'
19494 fi
19495 fi
19496 ;;
19497
19498 amigaos*)
19499 case $host_cpu in
19500 powerpc)
19501 # see comment about AmigaOS4 .so support
19502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19503 archive_expsym_cmds=''
19504 ;;
19505 m68k)
19506 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)'
19507 hardcode_libdir_flag_spec='-L$libdir'
19508 hardcode_minus_L=yes
19509 ;;
19510 esac
19511 ;;
19512
19513 bsdi[45]*)
19514 export_dynamic_flag_spec=-rdynamic
19515 ;;
19516
19517 cygwin* | mingw* | pw32* | cegcc*)
19518 # When not using gcc, we currently assume that we are using
19519 # Microsoft Visual C++.
19520 # hardcode_libdir_flag_spec is actually meaningless, as there is
19521 # no search path for DLLs.
19522 hardcode_libdir_flag_spec=' '
19523 allow_undefined_flag=unsupported
19524 # Tell ltmain to make .lib files, not .a files.
19525 libext=lib
19526 # Tell ltmain to make .dll files, not .so files.
19527 shrext_cmds=".dll"
19528 # FIXME: Setting linknames here is a bad hack.
19529 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19530 # The linker will automatically build a .lib file if we build a DLL.
19531 old_archive_from_new_cmds='true'
19532 # FIXME: Should let the user specify the lib program.
19533 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19534 fix_srcfile_path='`cygpath -w "$srcfile"`'
19535 enable_shared_with_static_runtimes=yes
19536 ;;
19537
19538 darwin* | rhapsody*)
19539
19540
19541
19542 # Publish an arg to allow the user to select that Darwin host (and target)
19543 # libraries should be given install-names like @rpath/libfoo.dylib. This
19544 # requires that the user of the library then adds an 'rpath' to the DSO that
19545 # needs access.
19546 # NOTE: there are defaults below, for systems that support rpaths. The person
19547 # configuring can override the defaults for any system version that supports
19548 # them - they are, however, forced off for system versions without support.
19549 # Check whether --enable-darwin-at-rpath was given.
19550 if test "${enable_darwin_at_rpath+set}" = set; then :
19551 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19552 # This is not supported before macOS 10.5 / Darwin9.
19553 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19554 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19556 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19557 enable_darwin_at_rpath=no
19558 ;;
19559 esac
19560 fi
19561 else
19562 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19563 # As above, before 10.5 / Darwin9 this does not work.
19564 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19565 enable_darwin_at_rpath=no
19566 ;;
19567
19568 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19569 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19570 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19571 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19573 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19574 enable_darwin_at_rpath=yes
19575 ;;
19576 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19577 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19578
19579 esac
19580
19581 fi
19582
19583
19584 archive_cmds_need_lc=no
19585 hardcode_direct=no
19586 hardcode_automatic=yes
19587 hardcode_shlibpath_var=unsupported
19588 if test "$lt_cv_ld_force_load" = "yes"; then
19589 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\"`'
19590 else
19591 whole_archive_flag_spec=''
19592 fi
19593 link_all_deplibs=yes
19594 allow_undefined_flag="$_lt_dar_allow_undefined"
19595 case $cc_basename in
19596 ifort*) _lt_dar_can_shared=yes ;;
19597 *) _lt_dar_can_shared=$GCC ;;
19598 esac
19599 if test "$_lt_dar_can_shared" = "yes"; then
19600 output_verbose_link_cmd=func_echo_all
19601 _lt_install_name='\$rpath/\$soname'
19602 if test "x$enable_darwin_at_rpath" = "xyes"; then
19603 _lt_install_name='@rpath/\$soname'
19604 fi
19605 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19606 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19607 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}"
19608 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}"
19609
19610 else
19611 ld_shlibs=no
19612 fi
19613
19614 ;;
19615
19616 dgux*)
19617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19618 hardcode_libdir_flag_spec='-L$libdir'
19619 hardcode_shlibpath_var=no
19620 ;;
19621
19622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19623 # support. Future versions do this automatically, but an explicit c++rt0.o
19624 # does not break anything, and helps significantly (at the cost of a little
19625 # extra space).
19626 freebsd2.2*)
19627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19628 hardcode_libdir_flag_spec='-R$libdir'
19629 hardcode_direct=yes
19630 hardcode_shlibpath_var=no
19631 ;;
19632
19633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19634 freebsd2.*)
19635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19636 hardcode_direct=yes
19637 hardcode_minus_L=yes
19638 hardcode_shlibpath_var=no
19639 ;;
19640
19641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19642 freebsd* | dragonfly*)
19643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19644 hardcode_libdir_flag_spec='-R$libdir'
19645 hardcode_direct=yes
19646 hardcode_shlibpath_var=no
19647 ;;
19648
19649 hpux9*)
19650 if test "$GCC" = yes; then
19651 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'
19652 else
19653 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'
19654 fi
19655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19656 hardcode_libdir_separator=:
19657 hardcode_direct=yes
19658
19659 # hardcode_minus_L: Not really in the search PATH,
19660 # but as the default location of the library.
19661 hardcode_minus_L=yes
19662 export_dynamic_flag_spec='${wl}-E'
19663 ;;
19664
19665 hpux10*)
19666 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19668 else
19669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19670 fi
19671 if test "$with_gnu_ld" = no; then
19672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19673 hardcode_libdir_flag_spec_ld='+b $libdir'
19674 hardcode_libdir_separator=:
19675 hardcode_direct=yes
19676 hardcode_direct_absolute=yes
19677 export_dynamic_flag_spec='${wl}-E'
19678 # hardcode_minus_L: Not really in the search PATH,
19679 # but as the default location of the library.
19680 hardcode_minus_L=yes
19681 fi
19682 ;;
19683
19684 hpux11*)
19685 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19686 case $host_cpu in
19687 hppa*64*)
19688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19689 ;;
19690 ia64*)
19691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19692 ;;
19693 *)
19694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19695 ;;
19696 esac
19697 else
19698 case $host_cpu in
19699 hppa*64*)
19700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19701 ;;
19702 ia64*)
19703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19704 ;;
19705 *)
19706
19707 # Older versions of the 11.00 compiler do not understand -b yet
19708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19710 $as_echo_n "checking if $CC understands -b... " >&6; }
19711 if ${lt_cv_prog_compiler__b+:} false; then :
19712 $as_echo_n "(cached) " >&6
19713 else
19714 lt_cv_prog_compiler__b=no
19715 save_LDFLAGS="$LDFLAGS"
19716 LDFLAGS="$LDFLAGS -b"
19717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19719 # The linker can only warn and ignore the option if not recognized
19720 # So say no if there are warnings
19721 if test -s conftest.err; then
19722 # Append any errors to the config.log.
19723 cat conftest.err 1>&5
19724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19726 if diff conftest.exp conftest.er2 >/dev/null; then
19727 lt_cv_prog_compiler__b=yes
19728 fi
19729 else
19730 lt_cv_prog_compiler__b=yes
19731 fi
19732 fi
19733 $RM -r conftest*
19734 LDFLAGS="$save_LDFLAGS"
19735
19736 fi
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19739
19740 if test x"$lt_cv_prog_compiler__b" = xyes; then
19741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19742 else
19743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19744 fi
19745
19746 ;;
19747 esac
19748 fi
19749 if test "$with_gnu_ld" = no; then
19750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19751 hardcode_libdir_separator=:
19752
19753 case $host_cpu in
19754 hppa*64*|ia64*)
19755 hardcode_direct=no
19756 hardcode_shlibpath_var=no
19757 ;;
19758 *)
19759 hardcode_direct=yes
19760 hardcode_direct_absolute=yes
19761 export_dynamic_flag_spec='${wl}-E'
19762
19763 # hardcode_minus_L: Not really in the search PATH,
19764 # but as the default location of the library.
19765 hardcode_minus_L=yes
19766 ;;
19767 esac
19768 fi
19769 ;;
19770
19771 irix5* | irix6* | nonstopux*)
19772 if test "$GCC" = yes; then
19773 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'
19774 # Try to use the -exported_symbol ld option, if it does not
19775 # work, assume that -exports_file does not work either and
19776 # implicitly export all symbols.
19777 save_LDFLAGS="$LDFLAGS"
19778 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19781 int foo(void) {}
19782 _ACEOF
19783 if ac_fn_c_try_link "$LINENO"; then :
19784 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'
19785
19786 fi
19787 rm -f core conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19789 LDFLAGS="$save_LDFLAGS"
19790 else
19791 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'
19792 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'
19793 fi
19794 archive_cmds_need_lc='no'
19795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19796 hardcode_libdir_separator=:
19797 inherit_rpath=yes
19798 link_all_deplibs=yes
19799 ;;
19800
19801 netbsd*)
19802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19804 else
19805 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19806 fi
19807 hardcode_libdir_flag_spec='-R$libdir'
19808 hardcode_direct=yes
19809 hardcode_shlibpath_var=no
19810 ;;
19811
19812 newsos6)
19813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_direct=yes
19815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19816 hardcode_libdir_separator=:
19817 hardcode_shlibpath_var=no
19818 ;;
19819
19820 *nto* | *qnx*)
19821 ;;
19822
19823 openbsd*)
19824 if test -f /usr/libexec/ld.so; then
19825 hardcode_direct=yes
19826 hardcode_shlibpath_var=no
19827 hardcode_direct_absolute=yes
19828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19830 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19832 export_dynamic_flag_spec='${wl}-E'
19833 else
19834 case $host_os in
19835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19837 hardcode_libdir_flag_spec='-R$libdir'
19838 ;;
19839 *)
19840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19842 ;;
19843 esac
19844 fi
19845 else
19846 ld_shlibs=no
19847 fi
19848 ;;
19849
19850 os2*)
19851 hardcode_libdir_flag_spec='-L$libdir'
19852 hardcode_minus_L=yes
19853 allow_undefined_flag=unsupported
19854 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'
19855 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19856 ;;
19857
19858 osf3*)
19859 if test "$GCC" = yes; then
19860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19861 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'
19862 else
19863 allow_undefined_flag=' -expect_unresolved \*'
19864 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'
19865 fi
19866 archive_cmds_need_lc='no'
19867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19868 hardcode_libdir_separator=:
19869 ;;
19870
19871 osf4* | osf5*) # as osf3* with the addition of -msym flag
19872 if test "$GCC" = yes; then
19873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19874 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'
19875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19876 else
19877 allow_undefined_flag=' -expect_unresolved \*'
19878 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'
19879 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~
19880 $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'
19881
19882 # Both c and cxx compiler support -rpath directly
19883 hardcode_libdir_flag_spec='-rpath $libdir'
19884 fi
19885 archive_cmds_need_lc='no'
19886 hardcode_libdir_separator=:
19887 ;;
19888
19889 solaris*)
19890 no_undefined_flag=' -z defs'
19891 if test "$GCC" = yes; then
19892 wlarc='${wl}'
19893 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19895 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19896 else
19897 case `$CC -V 2>&1` in
19898 *"Compilers 5.0"*)
19899 wlarc=''
19900 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19903 ;;
19904 *)
19905 wlarc='${wl}'
19906 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19908 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19909 ;;
19910 esac
19911 fi
19912 hardcode_libdir_flag_spec='-R$libdir'
19913 hardcode_shlibpath_var=no
19914 case $host_os in
19915 solaris2.[0-5] | solaris2.[0-5].*) ;;
19916 *)
19917 # The compiler driver will combine and reorder linker options,
19918 # but understands `-z linker_flag'. GCC discards it without `$wl',
19919 # but is careful enough not to reorder.
19920 # Supported since Solaris 2.6 (maybe 2.5.1?)
19921 if test "$GCC" = yes; then
19922 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19923 else
19924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19925 fi
19926 ;;
19927 esac
19928 link_all_deplibs=yes
19929 ;;
19930
19931 sunos4*)
19932 if test "x$host_vendor" = xsequent; then
19933 # Use $CC to link under sequent, because it throws in some extra .o
19934 # files that make .init and .fini sections work.
19935 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19936 else
19937 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19938 fi
19939 hardcode_libdir_flag_spec='-L$libdir'
19940 hardcode_direct=yes
19941 hardcode_minus_L=yes
19942 hardcode_shlibpath_var=no
19943 ;;
19944
19945 sysv4)
19946 case $host_vendor in
19947 sni)
19948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19949 hardcode_direct=yes # is this really true???
19950 ;;
19951 siemens)
19952 ## LD is ld it makes a PLAMLIB
19953 ## CC just makes a GrossModule.
19954 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19955 reload_cmds='$CC -r -o $output$reload_objs'
19956 hardcode_direct=no
19957 ;;
19958 motorola)
19959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19960 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19961 ;;
19962 esac
19963 runpath_var='LD_RUN_PATH'
19964 hardcode_shlibpath_var=no
19965 ;;
19966
19967 sysv4.3*)
19968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969 hardcode_shlibpath_var=no
19970 export_dynamic_flag_spec='-Bexport'
19971 ;;
19972
19973 sysv4*MP*)
19974 if test -d /usr/nec; then
19975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976 hardcode_shlibpath_var=no
19977 runpath_var=LD_RUN_PATH
19978 hardcode_runpath_var=yes
19979 ld_shlibs=yes
19980 fi
19981 ;;
19982
19983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19984 no_undefined_flag='${wl}-z,text'
19985 archive_cmds_need_lc=no
19986 hardcode_shlibpath_var=no
19987 runpath_var='LD_RUN_PATH'
19988
19989 if test "$GCC" = yes; then
19990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19992 else
19993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19995 fi
19996 ;;
19997
19998 sysv5* | sco3.2v5* | sco5v6*)
19999 # Note: We can NOT use -z defs as we might desire, because we do not
20000 # link with -lc, and that would cause any symbols used from libc to
20001 # always be unresolved, which means just about no library would
20002 # ever link correctly. If we're not using GNU ld we use -z text
20003 # though, which does catch some bad symbols but isn't as heavy-handed
20004 # as -z defs.
20005 no_undefined_flag='${wl}-z,text'
20006 allow_undefined_flag='${wl}-z,nodefs'
20007 archive_cmds_need_lc=no
20008 hardcode_shlibpath_var=no
20009 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20010 hardcode_libdir_separator=':'
20011 link_all_deplibs=yes
20012 export_dynamic_flag_spec='${wl}-Bexport'
20013 runpath_var='LD_RUN_PATH'
20014
20015 if test "$GCC" = yes; then
20016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20018 else
20019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20021 fi
20022 ;;
20023
20024 uts4*)
20025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20026 hardcode_libdir_flag_spec='-L$libdir'
20027 hardcode_shlibpath_var=no
20028 ;;
20029
20030 *)
20031 ld_shlibs=no
20032 ;;
20033 esac
20034
20035 if test x$host_vendor = xsni; then
20036 case $host in
20037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20038 export_dynamic_flag_spec='${wl}-Blargedynsym'
20039 ;;
20040 esac
20041 fi
20042 fi
20043
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20045 $as_echo "$ld_shlibs" >&6; }
20046 test "$ld_shlibs" = no && can_build_shared=no
20047
20048 with_gnu_ld=$with_gnu_ld
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064 #
20065 # Do we need to explicitly link libc?
20066 #
20067 case "x$archive_cmds_need_lc" in
20068 x|xyes)
20069 # Assume -lc should be added
20070 archive_cmds_need_lc=yes
20071
20072 if test "$enable_shared" = yes && test "$GCC" = yes; then
20073 case $archive_cmds in
20074 *'~'*)
20075 # FIXME: we may have to deal with multi-command sequences.
20076 ;;
20077 '$CC '*)
20078 # Test whether the compiler implicitly links with -lc since on some
20079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20080 # to ld, don't add -lc before -lgcc.
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20083 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 $RM conftest*
20087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20088
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20091 ac_status=$?
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; } 2>conftest.err; then
20094 soname=conftest
20095 lib=conftest
20096 libobjs=conftest.$ac_objext
20097 deplibs=
20098 wl=$lt_prog_compiler_wl
20099 pic_flag=$lt_prog_compiler_pic
20100 compiler_flags=-v
20101 linker_flags=-v
20102 verstring=
20103 output_objdir=.
20104 libname=conftest
20105 lt_save_allow_undefined_flag=$allow_undefined_flag
20106 allow_undefined_flag=
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20108 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20109 ac_status=$?
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; }
20112 then
20113 lt_cv_archive_cmds_need_lc=no
20114 else
20115 lt_cv_archive_cmds_need_lc=yes
20116 fi
20117 allow_undefined_flag=$lt_save_allow_undefined_flag
20118 else
20119 cat conftest.err 1>&5
20120 fi
20121 $RM conftest*
20122
20123 fi
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20125 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20126 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20127 ;;
20128 esac
20129 fi
20130 ;;
20131 esac
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20291
20292 if test "$GCC" = yes; then
20293 case $host_os in
20294 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20295 *) lt_awk_arg="/^libraries:/" ;;
20296 esac
20297 case $host_os in
20298 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20299 *) lt_sed_strip_eq="s,=/,/,g" ;;
20300 esac
20301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20302 case $lt_search_path_spec in
20303 *\;*)
20304 # if the path contains ";" then we assume it to be the separator
20305 # otherwise default to the standard path separator (i.e. ":") - it is
20306 # assumed that no part of a normal pathname contains ";" but that should
20307 # okay in the real world where ";" in dirpaths is itself problematic.
20308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20309 ;;
20310 *)
20311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20312 ;;
20313 esac
20314 # Ok, now we have the path, separated by spaces, we can step through it
20315 # and add multilib dir if necessary.
20316 lt_tmp_lt_search_path_spec=
20317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20318 for lt_sys_path in $lt_search_path_spec; do
20319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20321 else
20322 test -d "$lt_sys_path" && \
20323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20324 fi
20325 done
20326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20327 BEGIN {RS=" "; FS="/|\n";} {
20328 lt_foo="";
20329 lt_count=0;
20330 for (lt_i = NF; lt_i > 0; lt_i--) {
20331 if ($lt_i != "" && $lt_i != ".") {
20332 if ($lt_i == "..") {
20333 lt_count++;
20334 } else {
20335 if (lt_count == 0) {
20336 lt_foo="/" $lt_i lt_foo;
20337 } else {
20338 lt_count--;
20339 }
20340 }
20341 }
20342 }
20343 if (lt_foo != "") { lt_freq[lt_foo]++; }
20344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20345 }'`
20346 # AWK program above erroneously prepends '/' to C:/dos/paths
20347 # for these hosts.
20348 case $host_os in
20349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20351 esac
20352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20353 else
20354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20355 fi
20356 library_names_spec=
20357 libname_spec='lib$name'
20358 soname_spec=
20359 shrext_cmds=".so"
20360 postinstall_cmds=
20361 postuninstall_cmds=
20362 finish_cmds=
20363 finish_eval=
20364 shlibpath_var=
20365 shlibpath_overrides_runpath=unknown
20366 version_type=none
20367 dynamic_linker="$host_os ld.so"
20368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20369 need_lib_prefix=unknown
20370 hardcode_into_libs=no
20371
20372 # when you set need_version to no, make sure it does not cause -set_version
20373 # flags to be left without arguments
20374 need_version=unknown
20375
20376 case $host_os in
20377 aix3*)
20378 version_type=linux
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20380 shlibpath_var=LIBPATH
20381
20382 # AIX 3 has no versioning support, so we append a major version to the name.
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 ;;
20385
20386 aix[4-9]*)
20387 version_type=linux
20388 need_lib_prefix=no
20389 need_version=no
20390 hardcode_into_libs=yes
20391 if test "$host_cpu" = ia64; then
20392 # AIX 5 supports IA64
20393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 else
20396 # With GCC up to 2.95.x, collect2 would create an import file
20397 # for dependence libraries. The import file would start with
20398 # the line `#! .'. This would cause the generated library to
20399 # depend on `.', always an invalid library. This was fixed in
20400 # development snapshots of GCC prior to 3.0.
20401 case $host_os in
20402 aix4 | aix4.[01] | aix4.[01].*)
20403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20404 echo ' yes '
20405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20406 :
20407 else
20408 can_build_shared=no
20409 fi
20410 ;;
20411 esac
20412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20413 # soname into executable. Probably we can add versioning support to
20414 # collect2, so additional links can be useful in future.
20415 if test "$aix_use_runtimelinking" = yes; then
20416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20417 # instead of lib<name>.a to let people know that these are not
20418 # typical AIX shared libraries.
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 else
20421 # We preserve .a as extension for shared libraries through AIX4.2
20422 # and later when we are not doing run time linking.
20423 library_names_spec='${libname}${release}.a $libname.a'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 fi
20426 shlibpath_var=LIBPATH
20427 fi
20428 ;;
20429
20430 amigaos*)
20431 case $host_cpu in
20432 powerpc)
20433 # Since July 2007 AmigaOS4 officially supports .so libraries.
20434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436 ;;
20437 m68k)
20438 library_names_spec='$libname.ixlibrary $libname.a'
20439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20440 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'
20441 ;;
20442 esac
20443 ;;
20444
20445 beos*)
20446 library_names_spec='${libname}${shared_ext}'
20447 dynamic_linker="$host_os ld.so"
20448 shlibpath_var=LIBRARY_PATH
20449 ;;
20450
20451 bsdi[45]*)
20452 version_type=linux
20453 need_version=no
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20460 # the default ld.so.conf also contains /usr/contrib/lib and
20461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20462 # libtool to hard-code these into programs
20463 ;;
20464
20465 cygwin* | mingw* | pw32* | cegcc*)
20466 version_type=windows
20467 shrext_cmds=".dll"
20468 need_version=no
20469 need_lib_prefix=no
20470
20471 case $GCC,$host_os in
20472 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20473 library_names_spec='$libname.dll.a'
20474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20475 postinstall_cmds='base_file=`basename \${file}`~
20476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20477 dldir=$destdir/`dirname \$dlpath`~
20478 test -d \$dldir || mkdir -p \$dldir~
20479 $install_prog $dir/$dlname \$dldir/$dlname~
20480 chmod a+x \$dldir/$dlname~
20481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20483 fi'
20484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20485 dlpath=$dir/\$dldll~
20486 $RM \$dlpath'
20487 shlibpath_overrides_runpath=yes
20488
20489 case $host_os in
20490 cygwin*)
20491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20493
20494 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20495 ;;
20496 mingw* | cegcc*)
20497 # MinGW DLLs use traditional 'lib' prefix
20498 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20499 ;;
20500 pw32*)
20501 # pw32 DLLs use 'pw' prefix rather than 'lib'
20502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20503 ;;
20504 esac
20505 ;;
20506
20507 *)
20508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20509 ;;
20510 esac
20511 dynamic_linker='Win32 ld.exe'
20512 # FIXME: first we should search . and the directory the executable is in
20513 shlibpath_var=PATH
20514 ;;
20515
20516 darwin* | rhapsody*)
20517 dynamic_linker="$host_os dyld"
20518 version_type=darwin
20519 need_lib_prefix=no
20520 need_version=no
20521 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20522 soname_spec='${libname}${release}${major}$shared_ext'
20523 shlibpath_overrides_runpath=yes
20524 shlibpath_var=DYLD_LIBRARY_PATH
20525 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20526
20527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20529 ;;
20530
20531 dgux*)
20532 version_type=linux
20533 need_lib_prefix=no
20534 need_version=no
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20536 soname_spec='${libname}${release}${shared_ext}$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 ;;
20539
20540 freebsd* | dragonfly*)
20541 # DragonFly does not have aout. When/if they implement a new
20542 # versioning mechanism, adjust this.
20543 if test -x /usr/bin/objformat; then
20544 objformat=`/usr/bin/objformat`
20545 else
20546 case $host_os in
20547 freebsd[23].*) objformat=aout ;;
20548 *) objformat=elf ;;
20549 esac
20550 fi
20551 version_type=freebsd-$objformat
20552 case $version_type in
20553 freebsd-elf*)
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20555 need_version=no
20556 need_lib_prefix=no
20557 ;;
20558 freebsd-*)
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20560 need_version=yes
20561 ;;
20562 esac
20563 shlibpath_var=LD_LIBRARY_PATH
20564 case $host_os in
20565 freebsd2.*)
20566 shlibpath_overrides_runpath=yes
20567 ;;
20568 freebsd3.[01]* | freebsdelf3.[01]*)
20569 shlibpath_overrides_runpath=yes
20570 hardcode_into_libs=yes
20571 ;;
20572 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20573 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20574 shlibpath_overrides_runpath=no
20575 hardcode_into_libs=yes
20576 ;;
20577 *) # from 4.6 on, and DragonFly
20578 shlibpath_overrides_runpath=yes
20579 hardcode_into_libs=yes
20580 ;;
20581 esac
20582 ;;
20583
20584 haiku*)
20585 version_type=linux
20586 need_lib_prefix=no
20587 need_version=no
20588 dynamic_linker="$host_os runtime_loader"
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LIBRARY_PATH
20592 shlibpath_overrides_runpath=yes
20593 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20594 hardcode_into_libs=yes
20595 ;;
20596
20597 hpux9* | hpux10* | hpux11*)
20598 # Give a soname corresponding to the major version so that dld.sl refuses to
20599 # link against other versions.
20600 version_type=sunos
20601 need_lib_prefix=no
20602 need_version=no
20603 case $host_cpu in
20604 ia64*)
20605 shrext_cmds='.so'
20606 hardcode_into_libs=yes
20607 dynamic_linker="$host_os dld.so"
20608 shlibpath_var=LD_LIBRARY_PATH
20609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 if test "X$HPUX_IA64_MODE" = X32; then
20613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20614 else
20615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20616 fi
20617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20618 ;;
20619 hppa*64*)
20620 shrext_cmds='.sl'
20621 hardcode_into_libs=yes
20622 dynamic_linker="$host_os dld.sl"
20623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20629 ;;
20630 *)
20631 shrext_cmds='.sl'
20632 dynamic_linker="$host_os dld.sl"
20633 shlibpath_var=SHLIB_PATH
20634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 soname_spec='${libname}${release}${shared_ext}$major'
20637 ;;
20638 esac
20639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20640 postinstall_cmds='chmod 555 $lib'
20641 # or fails outright, so override atomically:
20642 install_override_mode=555
20643 ;;
20644
20645 interix[3-9]*)
20646 version_type=linux
20647 need_lib_prefix=no
20648 need_version=no
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20652 shlibpath_var=LD_LIBRARY_PATH
20653 shlibpath_overrides_runpath=no
20654 hardcode_into_libs=yes
20655 ;;
20656
20657 irix5* | irix6* | nonstopux*)
20658 case $host_os in
20659 nonstopux*) version_type=nonstopux ;;
20660 *)
20661 if test "$lt_cv_prog_gnu_ld" = yes; then
20662 version_type=linux
20663 else
20664 version_type=irix
20665 fi ;;
20666 esac
20667 need_lib_prefix=no
20668 need_version=no
20669 soname_spec='${libname}${release}${shared_ext}$major'
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20671 case $host_os in
20672 irix5* | nonstopux*)
20673 libsuff= shlibsuff=
20674 ;;
20675 *)
20676 case $LD in # libtool.m4 will add one of these switches to LD
20677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20678 libsuff= shlibsuff= libmagic=32-bit;;
20679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20680 libsuff=32 shlibsuff=N32 libmagic=N32;;
20681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20683 *) libsuff= shlibsuff= libmagic=never-match;;
20684 esac
20685 ;;
20686 esac
20687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20688 shlibpath_overrides_runpath=no
20689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20691 hardcode_into_libs=yes
20692 ;;
20693
20694 # No shared lib support for Linux oldld, aout, or coff.
20695 linux*oldld* | linux*aout* | linux*coff*)
20696 dynamic_linker=no
20697 ;;
20698
20699 # This must be Linux ELF.
20700
20701 # uclinux* changes (here and below) have been submitted to the libtool
20702 # project, but have not yet been accepted: they are GCC-local changes
20703 # for the time being. (See
20704 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20706 version_type=linux
20707 need_lib_prefix=no
20708 need_version=no
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 soname_spec='${libname}${release}${shared_ext}$major'
20711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20712 shlibpath_var=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath=no
20714
20715 # Some binutils ld are patched to set DT_RUNPATH
20716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 lt_cv_shlibpath_overrides_runpath=no
20720 save_LDFLAGS=$LDFLAGS
20721 save_libdir=$libdir
20722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20726
20727 int
20728 main ()
20729 {
20730
20731 ;
20732 return 0;
20733 }
20734 _ACEOF
20735 if ac_fn_c_try_link "$LINENO"; then :
20736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20737 lt_cv_shlibpath_overrides_runpath=yes
20738 fi
20739 fi
20740 rm -f core conftest.err conftest.$ac_objext \
20741 conftest$ac_exeext conftest.$ac_ext
20742 LDFLAGS=$save_LDFLAGS
20743 libdir=$save_libdir
20744
20745 fi
20746
20747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20748
20749 # This implies no fast_install, which is unacceptable.
20750 # Some rework will be needed to allow for fast_install
20751 # before this can be enabled.
20752 hardcode_into_libs=yes
20753
20754 # Append ld.so.conf contents to the search path
20755 if test -f /etc/ld.so.conf; then
20756 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' ' '`
20757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20758 fi
20759
20760 # We used to test for /lib/ld.so.1 and disable shared libraries on
20761 # powerpc, because MkLinux only supported shared libraries with the
20762 # GNU dynamic linker. Since this was broken with cross compilers,
20763 # most powerpc-linux boxes support dynamic linking these days and
20764 # people can always --disable-shared, the test was removed, and we
20765 # assume the GNU/Linux dynamic linker is in use.
20766 dynamic_linker='GNU/Linux ld.so'
20767 ;;
20768
20769 netbsd*)
20770 version_type=sunos
20771 need_lib_prefix=no
20772 need_version=no
20773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20776 dynamic_linker='NetBSD (a.out) ld.so'
20777 else
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 dynamic_linker='NetBSD ld.elf_so'
20781 fi
20782 shlibpath_var=LD_LIBRARY_PATH
20783 shlibpath_overrides_runpath=yes
20784 hardcode_into_libs=yes
20785 ;;
20786
20787 newsos6)
20788 version_type=linux
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 shlibpath_var=LD_LIBRARY_PATH
20791 shlibpath_overrides_runpath=yes
20792 ;;
20793
20794 *nto* | *qnx*)
20795 version_type=qnx
20796 need_lib_prefix=no
20797 need_version=no
20798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20799 soname_spec='${libname}${release}${shared_ext}$major'
20800 shlibpath_var=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath=no
20802 hardcode_into_libs=yes
20803 dynamic_linker='ldqnx.so'
20804 ;;
20805
20806 openbsd*)
20807 version_type=sunos
20808 sys_lib_dlsearch_path_spec="/usr/lib"
20809 need_lib_prefix=no
20810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20811 case $host_os in
20812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20813 *) need_version=no ;;
20814 esac
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20819 case $host_os in
20820 openbsd2.[89] | openbsd2.[89].*)
20821 shlibpath_overrides_runpath=no
20822 ;;
20823 *)
20824 shlibpath_overrides_runpath=yes
20825 ;;
20826 esac
20827 else
20828 shlibpath_overrides_runpath=yes
20829 fi
20830 ;;
20831
20832 os2*)
20833 libname_spec='$name'
20834 shrext_cmds=".dll"
20835 need_lib_prefix=no
20836 library_names_spec='$libname${shared_ext} $libname.a'
20837 dynamic_linker='OS/2 ld.exe'
20838 shlibpath_var=LIBPATH
20839 ;;
20840
20841 osf3* | osf4* | osf5*)
20842 version_type=osf
20843 need_lib_prefix=no
20844 need_version=no
20845 soname_spec='${libname}${release}${shared_ext}$major'
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 shlibpath_var=LD_LIBRARY_PATH
20848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20850 ;;
20851
20852 rdos*)
20853 dynamic_linker=no
20854 ;;
20855
20856 solaris*)
20857 version_type=linux
20858 need_lib_prefix=no
20859 need_version=no
20860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20861 soname_spec='${libname}${release}${shared_ext}$major'
20862 shlibpath_var=LD_LIBRARY_PATH
20863 shlibpath_overrides_runpath=yes
20864 hardcode_into_libs=yes
20865 # ldd complains unless libraries are executable
20866 postinstall_cmds='chmod +x $lib'
20867 ;;
20868
20869 sunos4*)
20870 version_type=sunos
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=yes
20875 if test "$with_gnu_ld" = yes; then
20876 need_lib_prefix=no
20877 fi
20878 need_version=yes
20879 ;;
20880
20881 sysv4 | sysv4.3*)
20882 version_type=linux
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec='${libname}${release}${shared_ext}$major'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 case $host_vendor in
20887 sni)
20888 shlibpath_overrides_runpath=no
20889 need_lib_prefix=no
20890 runpath_var=LD_RUN_PATH
20891 ;;
20892 siemens)
20893 need_lib_prefix=no
20894 ;;
20895 motorola)
20896 need_lib_prefix=no
20897 need_version=no
20898 shlibpath_overrides_runpath=no
20899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20900 ;;
20901 esac
20902 ;;
20903
20904 sysv4*MP*)
20905 if test -d /usr/nec ;then
20906 version_type=linux
20907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20908 soname_spec='$libname${shared_ext}.$major'
20909 shlibpath_var=LD_LIBRARY_PATH
20910 fi
20911 ;;
20912
20913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20914 version_type=freebsd-elf
20915 need_lib_prefix=no
20916 need_version=no
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20918 soname_spec='${libname}${release}${shared_ext}$major'
20919 shlibpath_var=LD_LIBRARY_PATH
20920 shlibpath_overrides_runpath=yes
20921 hardcode_into_libs=yes
20922 if test "$with_gnu_ld" = yes; then
20923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20924 else
20925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20926 case $host_os in
20927 sco3.2v5*)
20928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20929 ;;
20930 esac
20931 fi
20932 sys_lib_dlsearch_path_spec='/usr/lib'
20933 ;;
20934
20935 tpf*)
20936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20937 version_type=linux
20938 need_lib_prefix=no
20939 need_version=no
20940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath=no
20943 hardcode_into_libs=yes
20944 ;;
20945
20946 uts4*)
20947 version_type=linux
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 shlibpath_var=LD_LIBRARY_PATH
20951 ;;
20952
20953 # Shared libraries for VwWorks, >= 7 only at this stage
20954 # and (fpic) still incompatible with "large" code models
20955 # in a few configurations. Only for RTP mode in any case,
20956 # and upon explicit request at configure time.
20957 vxworks7*)
20958 dynamic_linker=no
20959 case ${with_multisubdir}-${enable_shared} in
20960 *large*)
20961 ;;
20962 *mrtp*-yes)
20963 version_type=linux
20964 need_lib_prefix=no
20965 need_version=no
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 dynamic_linker="$host_os module_loader"
20969 ;;
20970 esac
20971 ;;
20972 *)
20973 dynamic_linker=no
20974 ;;
20975 esac
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20977 $as_echo "$dynamic_linker" >&6; }
20978 test "$dynamic_linker" = no && can_build_shared=no
20979
20980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20981 if test "$GCC" = yes; then
20982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20983 fi
20984
20985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20987 fi
20988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20990 fi
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21085 hardcode_action=
21086 if test -n "$hardcode_libdir_flag_spec" ||
21087 test -n "$runpath_var" ||
21088 test "X$hardcode_automatic" = "Xyes" ; then
21089
21090 # We can hardcode non-existent directories.
21091 if test "$hardcode_direct" != no &&
21092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21093 # have to relink, otherwise we might link with an installed library
21094 # when we should be linking with a yet-to-be-installed one
21095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21096 test "$hardcode_minus_L" != no; then
21097 # Linking always hardcodes the temporary library directory.
21098 hardcode_action=relink
21099 else
21100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21101 hardcode_action=immediate
21102 fi
21103 else
21104 # We cannot hardcode anything, or else we can only hardcode existing
21105 # directories.
21106 hardcode_action=unsupported
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21109 $as_echo "$hardcode_action" >&6; }
21110
21111 if test "$hardcode_action" = relink ||
21112 test "$inherit_rpath" = yes; then
21113 # Fast installation is not supported
21114 enable_fast_install=no
21115 elif test "$shlibpath_overrides_runpath" = yes ||
21116 test "$enable_shared" = no; then
21117 # Fast installation is not necessary
21118 enable_fast_install=needless
21119 fi
21120
21121
21122
21123
21124
21125
21126 if test "x$enable_dlopen" != xyes; then
21127 enable_dlopen=unknown
21128 enable_dlopen_self=unknown
21129 enable_dlopen_self_static=unknown
21130 else
21131 lt_cv_dlopen=no
21132 lt_cv_dlopen_libs=
21133
21134 case $host_os in
21135 beos*)
21136 lt_cv_dlopen="load_add_on"
21137 lt_cv_dlopen_libs=
21138 lt_cv_dlopen_self=yes
21139 ;;
21140
21141 mingw* | pw32* | cegcc*)
21142 lt_cv_dlopen="LoadLibrary"
21143 lt_cv_dlopen_libs=
21144 ;;
21145
21146 cygwin*)
21147 lt_cv_dlopen="dlopen"
21148 lt_cv_dlopen_libs=
21149 ;;
21150
21151 darwin*)
21152 # if libdl is installed we need to link against it
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21155 if ${ac_cv_lib_dl_dlopen+:} false; then :
21156 $as_echo_n "(cached) " >&6
21157 else
21158 ac_check_lib_save_LIBS=$LIBS
21159 LIBS="-ldl $LIBS"
21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h. */
21162
21163 /* Override any GCC internal prototype to avoid an error.
21164 Use char because int might match the return type of a GCC
21165 builtin and then its argument prototype would still apply. */
21166 #ifdef __cplusplus
21167 extern "C"
21168 #endif
21169 char dlopen ();
21170 int
21171 main ()
21172 {
21173 return dlopen ();
21174 ;
21175 return 0;
21176 }
21177 _ACEOF
21178 if ac_fn_c_try_link "$LINENO"; then :
21179 ac_cv_lib_dl_dlopen=yes
21180 else
21181 ac_cv_lib_dl_dlopen=no
21182 fi
21183 rm -f core conftest.err conftest.$ac_objext \
21184 conftest$ac_exeext conftest.$ac_ext
21185 LIBS=$ac_check_lib_save_LIBS
21186 fi
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21191 else
21192
21193 lt_cv_dlopen="dyld"
21194 lt_cv_dlopen_libs=
21195 lt_cv_dlopen_self=yes
21196
21197 fi
21198
21199 ;;
21200
21201 *)
21202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21203 if test "x$ac_cv_func_shl_load" = xyes; then :
21204 lt_cv_dlopen="shl_load"
21205 else
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21208 if ${ac_cv_lib_dld_shl_load+:} false; then :
21209 $as_echo_n "(cached) " >&6
21210 else
21211 ac_check_lib_save_LIBS=$LIBS
21212 LIBS="-ldld $LIBS"
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215
21216 /* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21219 #ifdef __cplusplus
21220 extern "C"
21221 #endif
21222 char shl_load ();
21223 int
21224 main ()
21225 {
21226 return shl_load ();
21227 ;
21228 return 0;
21229 }
21230 _ACEOF
21231 if ac_fn_c_try_link "$LINENO"; then :
21232 ac_cv_lib_dld_shl_load=yes
21233 else
21234 ac_cv_lib_dld_shl_load=no
21235 fi
21236 rm -f core conftest.err conftest.$ac_objext \
21237 conftest$ac_exeext conftest.$ac_ext
21238 LIBS=$ac_check_lib_save_LIBS
21239 fi
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21244 else
21245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21246 if test "x$ac_cv_func_dlopen" = xyes; then :
21247 lt_cv_dlopen="dlopen"
21248 else
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21251 if ${ac_cv_lib_dl_dlopen+:} false; then :
21252 $as_echo_n "(cached) " >&6
21253 else
21254 ac_check_lib_save_LIBS=$LIBS
21255 LIBS="-ldl $LIBS"
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21258
21259 /* Override any GCC internal prototype to avoid an error.
21260 Use char because int might match the return type of a GCC
21261 builtin and then its argument prototype would still apply. */
21262 #ifdef __cplusplus
21263 extern "C"
21264 #endif
21265 char dlopen ();
21266 int
21267 main ()
21268 {
21269 return dlopen ();
21270 ;
21271 return 0;
21272 }
21273 _ACEOF
21274 if ac_fn_c_try_link "$LINENO"; then :
21275 ac_cv_lib_dl_dlopen=yes
21276 else
21277 ac_cv_lib_dl_dlopen=no
21278 fi
21279 rm -f core conftest.err conftest.$ac_objext \
21280 conftest$ac_exeext conftest.$ac_ext
21281 LIBS=$ac_check_lib_save_LIBS
21282 fi
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21287 else
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21290 if ${ac_cv_lib_svld_dlopen+:} false; then :
21291 $as_echo_n "(cached) " >&6
21292 else
21293 ac_check_lib_save_LIBS=$LIBS
21294 LIBS="-lsvld $LIBS"
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21297
21298 /* Override any GCC internal prototype to avoid an error.
21299 Use char because int might match the return type of a GCC
21300 builtin and then its argument prototype would still apply. */
21301 #ifdef __cplusplus
21302 extern "C"
21303 #endif
21304 char dlopen ();
21305 int
21306 main ()
21307 {
21308 return dlopen ();
21309 ;
21310 return 0;
21311 }
21312 _ACEOF
21313 if ac_fn_c_try_link "$LINENO"; then :
21314 ac_cv_lib_svld_dlopen=yes
21315 else
21316 ac_cv_lib_svld_dlopen=no
21317 fi
21318 rm -f core conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21321 fi
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21326 else
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21329 if ${ac_cv_lib_dld_dld_link+:} false; then :
21330 $as_echo_n "(cached) " >&6
21331 else
21332 ac_check_lib_save_LIBS=$LIBS
21333 LIBS="-ldld $LIBS"
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21336
21337 /* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
21340 #ifdef __cplusplus
21341 extern "C"
21342 #endif
21343 char dld_link ();
21344 int
21345 main ()
21346 {
21347 return dld_link ();
21348 ;
21349 return 0;
21350 }
21351 _ACEOF
21352 if ac_fn_c_try_link "$LINENO"; then :
21353 ac_cv_lib_dld_dld_link=yes
21354 else
21355 ac_cv_lib_dld_dld_link=no
21356 fi
21357 rm -f core conftest.err conftest.$ac_objext \
21358 conftest$ac_exeext conftest.$ac_ext
21359 LIBS=$ac_check_lib_save_LIBS
21360 fi
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21365 fi
21366
21367
21368 fi
21369
21370
21371 fi
21372
21373
21374 fi
21375
21376
21377 fi
21378
21379
21380 fi
21381
21382 ;;
21383 esac
21384
21385 if test "x$lt_cv_dlopen" != xno; then
21386 enable_dlopen=yes
21387 else
21388 enable_dlopen=no
21389 fi
21390
21391 case $lt_cv_dlopen in
21392 dlopen)
21393 save_CPPFLAGS="$CPPFLAGS"
21394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21395
21396 save_LDFLAGS="$LDFLAGS"
21397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21398
21399 save_LIBS="$LIBS"
21400 LIBS="$lt_cv_dlopen_libs $LIBS"
21401
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21404 if ${lt_cv_dlopen_self+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 if test "$cross_compiling" = yes; then :
21408 lt_cv_dlopen_self=cross
21409 else
21410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21411 lt_status=$lt_dlunknown
21412 cat > conftest.$ac_ext <<_LT_EOF
21413 #line 21413 "configure"
21414 #include "confdefs.h"
21415
21416 #if HAVE_DLFCN_H
21417 #include <dlfcn.h>
21418 #endif
21419
21420 #include <stdio.h>
21421
21422 #ifdef RTLD_GLOBAL
21423 # define LT_DLGLOBAL RTLD_GLOBAL
21424 #else
21425 # ifdef DL_GLOBAL
21426 # define LT_DLGLOBAL DL_GLOBAL
21427 # else
21428 # define LT_DLGLOBAL 0
21429 # endif
21430 #endif
21431
21432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21433 find out it does not work in some platform. */
21434 #ifndef LT_DLLAZY_OR_NOW
21435 # ifdef RTLD_LAZY
21436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21437 # else
21438 # ifdef DL_LAZY
21439 # define LT_DLLAZY_OR_NOW DL_LAZY
21440 # else
21441 # ifdef RTLD_NOW
21442 # define LT_DLLAZY_OR_NOW RTLD_NOW
21443 # else
21444 # ifdef DL_NOW
21445 # define LT_DLLAZY_OR_NOW DL_NOW
21446 # else
21447 # define LT_DLLAZY_OR_NOW 0
21448 # endif
21449 # endif
21450 # endif
21451 # endif
21452 #endif
21453
21454 /* When -fvisbility=hidden is used, assume the code has been annotated
21455 correspondingly for the symbols needed. */
21456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21457 void fnord () __attribute__((visibility("default")));
21458 #endif
21459
21460 void fnord () { int i=42; }
21461 int main ()
21462 {
21463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21464 int status = $lt_dlunknown;
21465
21466 if (self)
21467 {
21468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21469 else
21470 {
21471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21472 else puts (dlerror ());
21473 }
21474 /* dlclose (self); */
21475 }
21476 else
21477 puts (dlerror ());
21478
21479 return status;
21480 }
21481 _LT_EOF
21482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21483 (eval $ac_link) 2>&5
21484 ac_status=$?
21485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21487 (./conftest; exit; ) >&5 2>/dev/null
21488 lt_status=$?
21489 case x$lt_status in
21490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21493 esac
21494 else :
21495 # compilation failed
21496 lt_cv_dlopen_self=no
21497 fi
21498 fi
21499 rm -fr conftest*
21500
21501
21502 fi
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21504 $as_echo "$lt_cv_dlopen_self" >&6; }
21505
21506 if test "x$lt_cv_dlopen_self" = xyes; then
21507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21510 if ${lt_cv_dlopen_self_static+:} false; then :
21511 $as_echo_n "(cached) " >&6
21512 else
21513 if test "$cross_compiling" = yes; then :
21514 lt_cv_dlopen_self_static=cross
21515 else
21516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21517 lt_status=$lt_dlunknown
21518 cat > conftest.$ac_ext <<_LT_EOF
21519 #line 21519 "configure"
21520 #include "confdefs.h"
21521
21522 #if HAVE_DLFCN_H
21523 #include <dlfcn.h>
21524 #endif
21525
21526 #include <stdio.h>
21527
21528 #ifdef RTLD_GLOBAL
21529 # define LT_DLGLOBAL RTLD_GLOBAL
21530 #else
21531 # ifdef DL_GLOBAL
21532 # define LT_DLGLOBAL DL_GLOBAL
21533 # else
21534 # define LT_DLGLOBAL 0
21535 # endif
21536 #endif
21537
21538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21539 find out it does not work in some platform. */
21540 #ifndef LT_DLLAZY_OR_NOW
21541 # ifdef RTLD_LAZY
21542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21543 # else
21544 # ifdef DL_LAZY
21545 # define LT_DLLAZY_OR_NOW DL_LAZY
21546 # else
21547 # ifdef RTLD_NOW
21548 # define LT_DLLAZY_OR_NOW RTLD_NOW
21549 # else
21550 # ifdef DL_NOW
21551 # define LT_DLLAZY_OR_NOW DL_NOW
21552 # else
21553 # define LT_DLLAZY_OR_NOW 0
21554 # endif
21555 # endif
21556 # endif
21557 # endif
21558 #endif
21559
21560 /* When -fvisbility=hidden is used, assume the code has been annotated
21561 correspondingly for the symbols needed. */
21562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21563 void fnord () __attribute__((visibility("default")));
21564 #endif
21565
21566 void fnord () { int i=42; }
21567 int main ()
21568 {
21569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21570 int status = $lt_dlunknown;
21571
21572 if (self)
21573 {
21574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21575 else
21576 {
21577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21578 else puts (dlerror ());
21579 }
21580 /* dlclose (self); */
21581 }
21582 else
21583 puts (dlerror ());
21584
21585 return status;
21586 }
21587 _LT_EOF
21588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21589 (eval $ac_link) 2>&5
21590 ac_status=$?
21591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21593 (./conftest; exit; ) >&5 2>/dev/null
21594 lt_status=$?
21595 case x$lt_status in
21596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21599 esac
21600 else :
21601 # compilation failed
21602 lt_cv_dlopen_self_static=no
21603 fi
21604 fi
21605 rm -fr conftest*
21606
21607
21608 fi
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21611 fi
21612
21613 CPPFLAGS="$save_CPPFLAGS"
21614 LDFLAGS="$save_LDFLAGS"
21615 LIBS="$save_LIBS"
21616 ;;
21617 esac
21618
21619 case $lt_cv_dlopen_self in
21620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21621 *) enable_dlopen_self=unknown ;;
21622 esac
21623
21624 case $lt_cv_dlopen_self_static in
21625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21626 *) enable_dlopen_self_static=unknown ;;
21627 esac
21628 fi
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646 striplib=
21647 old_striplib=
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21654 $as_echo "yes" >&6; }
21655 else
21656 # FIXME - insert some real tests, host_os isn't really good enough
21657 case $host_os in
21658 darwin*)
21659 if test -n "$STRIP" ; then
21660 striplib="$STRIP -x"
21661 old_striplib="$STRIP -S"
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21663 $as_echo "yes" >&6; }
21664 else
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21666 $as_echo "no" >&6; }
21667 fi
21668 ;;
21669 *)
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672 ;;
21673 esac
21674 fi
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687 # Report which library types will actually be built
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21691 $as_echo "$can_build_shared" >&6; }
21692
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21694 $as_echo_n "checking whether to build shared libraries... " >&6; }
21695 test "$can_build_shared" = "no" && enable_shared=no
21696
21697 # On AIX, shared libraries and static libraries use the same namespace, and
21698 # are all built from PIC.
21699 case $host_os in
21700 aix3*)
21701 test "$enable_shared" = yes && enable_static=no
21702 if test -n "$RANLIB"; then
21703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21704 postinstall_cmds='$RANLIB $lib'
21705 fi
21706 ;;
21707
21708 aix[4-9]*)
21709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21710 test "$enable_shared" = yes && enable_static=no
21711 fi
21712 ;;
21713 esac
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21715 $as_echo "$enable_shared" >&6; }
21716
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21718 $as_echo_n "checking whether to build static libraries... " >&6; }
21719 # Make sure either enable_shared or enable_static is yes.
21720 test "$enable_shared" = yes || enable_static=yes
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21722 $as_echo "$enable_static" >&6; }
21723
21724
21725
21726
21727 fi
21728 ac_ext=cpp
21729 ac_cpp='$CXXCPP $CPPFLAGS'
21730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21733
21734 CC="$lt_save_CC"
21735
21736 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21737 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21738 (test "X$CXX" != "Xg++"))) ; then
21739 ac_ext=cpp
21740 ac_cpp='$CXXCPP $CPPFLAGS'
21741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21745 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21746 if test -z "$CXXCPP"; then
21747 if ${ac_cv_prog_CXXCPP+:} false; then :
21748 $as_echo_n "(cached) " >&6
21749 else
21750 # Double quotes because CXXCPP needs to be expanded
21751 for CXXCPP in "$CXX -E" "/lib/cpp"
21752 do
21753 ac_preproc_ok=false
21754 for ac_cxx_preproc_warn_flag in '' yes
21755 do
21756 # Use a header file that comes with gcc, so configuring glibc
21757 # with a fresh cross-compiler works.
21758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21759 # <limits.h> exists even on freestanding compilers.
21760 # On the NeXT, cc -E runs the code through the compiler's parser,
21761 # not just through cpp. "Syntax error" is here to catch this case.
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21764 #ifdef __STDC__
21765 # include <limits.h>
21766 #else
21767 # include <assert.h>
21768 #endif
21769 Syntax error
21770 _ACEOF
21771 if ac_fn_cxx_try_cpp "$LINENO"; then :
21772
21773 else
21774 # Broken: fails on valid input.
21775 continue
21776 fi
21777 rm -f conftest.err conftest.i conftest.$ac_ext
21778
21779 # OK, works on sane cases. Now check whether nonexistent headers
21780 # can be detected and how.
21781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21783 #include <ac_nonexistent.h>
21784 _ACEOF
21785 if ac_fn_cxx_try_cpp "$LINENO"; then :
21786 # Broken: success on invalid input.
21787 continue
21788 else
21789 # Passes both tests.
21790 ac_preproc_ok=:
21791 break
21792 fi
21793 rm -f conftest.err conftest.i conftest.$ac_ext
21794
21795 done
21796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21797 rm -f conftest.i conftest.err conftest.$ac_ext
21798 if $ac_preproc_ok; then :
21799 break
21800 fi
21801
21802 done
21803 ac_cv_prog_CXXCPP=$CXXCPP
21804
21805 fi
21806 CXXCPP=$ac_cv_prog_CXXCPP
21807 else
21808 ac_cv_prog_CXXCPP=$CXXCPP
21809 fi
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21811 $as_echo "$CXXCPP" >&6; }
21812 ac_preproc_ok=false
21813 for ac_cxx_preproc_warn_flag in '' yes
21814 do
21815 # Use a header file that comes with gcc, so configuring glibc
21816 # with a fresh cross-compiler works.
21817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21818 # <limits.h> exists even on freestanding compilers.
21819 # On the NeXT, cc -E runs the code through the compiler's parser,
21820 # not just through cpp. "Syntax error" is here to catch this case.
21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21823 #ifdef __STDC__
21824 # include <limits.h>
21825 #else
21826 # include <assert.h>
21827 #endif
21828 Syntax error
21829 _ACEOF
21830 if ac_fn_cxx_try_cpp "$LINENO"; then :
21831
21832 else
21833 # Broken: fails on valid input.
21834 continue
21835 fi
21836 rm -f conftest.err conftest.i conftest.$ac_ext
21837
21838 # OK, works on sane cases. Now check whether nonexistent headers
21839 # can be detected and how.
21840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h. */
21842 #include <ac_nonexistent.h>
21843 _ACEOF
21844 if ac_fn_cxx_try_cpp "$LINENO"; then :
21845 # Broken: success on invalid input.
21846 continue
21847 else
21848 # Passes both tests.
21849 ac_preproc_ok=:
21850 break
21851 fi
21852 rm -f conftest.err conftest.i conftest.$ac_ext
21853
21854 done
21855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21856 rm -f conftest.i conftest.err conftest.$ac_ext
21857 if $ac_preproc_ok; then :
21858
21859 else
21860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21862 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21863 See \`config.log' for more details" "$LINENO" 5; }
21864 fi
21865
21866 ac_ext=cpp
21867 ac_cpp='$CXXCPP $CPPFLAGS'
21868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21871
21872 else
21873 _lt_caught_CXX_error=yes
21874 fi
21875
21876 ac_ext=cpp
21877 ac_cpp='$CXXCPP $CPPFLAGS'
21878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21881
21882 archive_cmds_need_lc_CXX=no
21883 allow_undefined_flag_CXX=
21884 always_export_symbols_CXX=no
21885 archive_expsym_cmds_CXX=
21886 compiler_needs_object_CXX=no
21887 export_dynamic_flag_spec_CXX=
21888 hardcode_direct_CXX=no
21889 hardcode_direct_absolute_CXX=no
21890 hardcode_libdir_flag_spec_CXX=
21891 hardcode_libdir_flag_spec_ld_CXX=
21892 hardcode_libdir_separator_CXX=
21893 hardcode_minus_L_CXX=no
21894 hardcode_shlibpath_var_CXX=unsupported
21895 hardcode_automatic_CXX=no
21896 inherit_rpath_CXX=no
21897 module_cmds_CXX=
21898 module_expsym_cmds_CXX=
21899 link_all_deplibs_CXX=unknown
21900 old_archive_cmds_CXX=$old_archive_cmds
21901 reload_flag_CXX=$reload_flag
21902 reload_cmds_CXX=$reload_cmds
21903 no_undefined_flag_CXX=
21904 whole_archive_flag_spec_CXX=
21905 enable_shared_with_static_runtimes_CXX=no
21906
21907 # Source file extension for C++ test sources.
21908 ac_ext=cpp
21909
21910 # Object file extension for compiled C++ test sources.
21911 objext=o
21912 objext_CXX=$objext
21913
21914 # No sense in running all these tests if we already determined that
21915 # the CXX compiler isn't working. Some variables (like enable_shared)
21916 # are currently assumed to apply to all compilers on this platform,
21917 # and will be corrupted by setting them based on a non-working compiler.
21918 if test "$_lt_caught_CXX_error" != yes; then
21919 # Code to be used in simple compile tests
21920 lt_simple_compile_test_code="int some_variable = 0;"
21921
21922 # Code to be used in simple link tests
21923 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21924
21925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21926
21927
21928
21929
21930
21931
21932 # If no C compiler was specified, use CC.
21933 LTCC=${LTCC-"$CC"}
21934
21935 # If no C compiler flags were specified, use CFLAGS.
21936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21937
21938 # Allow CC to be a program name with arguments.
21939 compiler=$CC
21940
21941
21942 # save warnings/boilerplate of simple test code
21943 ac_outfile=conftest.$ac_objext
21944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21946 _lt_compiler_boilerplate=`cat conftest.err`
21947 $RM conftest*
21948
21949 ac_outfile=conftest.$ac_objext
21950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21952 _lt_linker_boilerplate=`cat conftest.err`
21953 $RM -r conftest*
21954
21955
21956 # Allow CC to be a program name with arguments.
21957 lt_save_CC=$CC
21958 lt_save_LD=$LD
21959 lt_save_GCC=$GCC
21960 GCC=$GXX
21961 lt_save_with_gnu_ld=$with_gnu_ld
21962 lt_save_path_LD=$lt_cv_path_LD
21963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21965 else
21966 $as_unset lt_cv_prog_gnu_ld
21967 fi
21968 if test -n "${lt_cv_path_LDCXX+set}"; then
21969 lt_cv_path_LD=$lt_cv_path_LDCXX
21970 else
21971 $as_unset lt_cv_path_LD
21972 fi
21973 test -z "${LDCXX+set}" || LD=$LDCXX
21974 CC=${CXX-"c++"}
21975 compiler=$CC
21976 compiler_CXX=$CC
21977 for cc_temp in $compiler""; do
21978 case $cc_temp in
21979 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21980 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21981 \-*) ;;
21982 *) break;;
21983 esac
21984 done
21985 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21986
21987
21988 if test -n "$compiler"; then
21989 # We don't want -fno-exception when compiling C++ code, so set the
21990 # no_builtin_flag separately
21991 if test "$GXX" = yes; then
21992 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21993 else
21994 lt_prog_compiler_no_builtin_flag_CXX=
21995 fi
21996
21997 if test "$GXX" = yes; then
21998 # Set up default GNU C++ configuration
21999
22000
22001
22002 # Check whether --with-gnu-ld was given.
22003 if test "${with_gnu_ld+set}" = set; then :
22004 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22005 else
22006 with_gnu_ld=no
22007 fi
22008
22009 ac_prog=ld
22010 if test "$GCC" = yes; then
22011 # Check if gcc -print-prog-name=ld gives a path.
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22013 $as_echo_n "checking for ld used by $CC... " >&6; }
22014 case $host in
22015 *-*-mingw*)
22016 # gcc leaves a trailing carriage return which upsets mingw
22017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22018 *)
22019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22020 esac
22021 case $ac_prog in
22022 # Accept absolute paths.
22023 [\\/]* | ?:[\\/]*)
22024 re_direlt='/[^/][^/]*/\.\./'
22025 # Canonicalize the pathname of ld
22026 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22027 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22028 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22029 done
22030 test -z "$LD" && LD="$ac_prog"
22031 ;;
22032 "")
22033 # If it fails, then pretend we aren't using GCC.
22034 ac_prog=ld
22035 ;;
22036 *)
22037 # If it is relative, then search for the first ld in PATH.
22038 with_gnu_ld=unknown
22039 ;;
22040 esac
22041 elif test "$with_gnu_ld" = yes; then
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22043 $as_echo_n "checking for GNU ld... " >&6; }
22044 else
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22046 $as_echo_n "checking for non-GNU ld... " >&6; }
22047 fi
22048 if ${lt_cv_path_LD+:} false; then :
22049 $as_echo_n "(cached) " >&6
22050 else
22051 if test -z "$LD"; then
22052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22053 for ac_dir in $PATH; do
22054 IFS="$lt_save_ifs"
22055 test -z "$ac_dir" && ac_dir=.
22056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22057 lt_cv_path_LD="$ac_dir/$ac_prog"
22058 # Check to see if the program is GNU ld. I'd rather use --version,
22059 # but apparently some variants of GNU ld only accept -v.
22060 # Break only if it was the GNU/non-GNU ld that we prefer.
22061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22062 *GNU* | *'with BFD'*)
22063 test "$with_gnu_ld" != no && break
22064 ;;
22065 *)
22066 test "$with_gnu_ld" != yes && break
22067 ;;
22068 esac
22069 fi
22070 done
22071 IFS="$lt_save_ifs"
22072 else
22073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22074 fi
22075 fi
22076
22077 LD="$lt_cv_path_LD"
22078 if test -n "$LD"; then
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22080 $as_echo "$LD" >&6; }
22081 else
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22083 $as_echo "no" >&6; }
22084 fi
22085 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22088 if ${lt_cv_prog_gnu_ld+:} false; then :
22089 $as_echo_n "(cached) " >&6
22090 else
22091 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22092 case `$LD -v 2>&1 </dev/null` in
22093 *GNU* | *'with BFD'*)
22094 lt_cv_prog_gnu_ld=yes
22095 ;;
22096 *)
22097 lt_cv_prog_gnu_ld=no
22098 ;;
22099 esac
22100 fi
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22103 with_gnu_ld=$lt_cv_prog_gnu_ld
22104
22105
22106
22107
22108
22109
22110
22111 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22112 # archiving commands below assume that GNU ld is being used.
22113 if test "$with_gnu_ld" = yes; then
22114 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22115 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'
22116
22117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22119
22120 # If archive_cmds runs LD, not CC, wlarc should be empty
22121 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22122 # investigate it a little bit more. (MM)
22123 wlarc='${wl}'
22124
22125 # ancient GNU ld didn't support --whole-archive et. al.
22126 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22127 $GREP 'no-whole-archive' > /dev/null; then
22128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22129 else
22130 whole_archive_flag_spec_CXX=
22131 fi
22132 else
22133 with_gnu_ld=no
22134 wlarc=
22135
22136 # A generic and very simple default shared library creation
22137 # command for GNU C++ for the case where it uses the native
22138 # linker, instead of GNU ld. If possible, this setting should
22139 # overridden to take advantage of the native linker features on
22140 # the platform it is being used on.
22141 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22142 fi
22143
22144 # Commands to make compiler produce verbose output that lists
22145 # what "hidden" libraries, object files and flags are used when
22146 # linking a shared library.
22147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22148
22149 else
22150 GXX=no
22151 with_gnu_ld=no
22152 wlarc=
22153 fi
22154
22155 # PORTME: fill in a description of your system's C++ link characteristics
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22157 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22158 ld_shlibs_CXX=yes
22159 case $host_os in
22160 aix3*)
22161 # FIXME: insert proper C++ library support
22162 ld_shlibs_CXX=no
22163 ;;
22164 aix[4-9]*)
22165 if test "$host_cpu" = ia64; then
22166 # On IA64, the linker does run time linking by default, so we don't
22167 # have to do anything special.
22168 aix_use_runtimelinking=no
22169 exp_sym_flag='-Bexport'
22170 no_entry_flag=""
22171 else
22172 aix_use_runtimelinking=no
22173
22174 # Test if we are trying to use run time linking or normal
22175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22176 # need to do runtime linking.
22177 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22178 for ld_flag in $LDFLAGS; do
22179 case $ld_flag in
22180 *-brtl*)
22181 aix_use_runtimelinking=yes
22182 break
22183 ;;
22184 esac
22185 done
22186 ;;
22187 esac
22188
22189 exp_sym_flag='-bexport'
22190 no_entry_flag='-bnoentry'
22191 fi
22192
22193 # When large executables or shared objects are built, AIX ld can
22194 # have problems creating the table of contents. If linking a library
22195 # or program results in "error TOC overflow" add -mminimal-toc to
22196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22198
22199 archive_cmds_CXX=''
22200 hardcode_direct_CXX=yes
22201 hardcode_direct_absolute_CXX=yes
22202 hardcode_libdir_separator_CXX=':'
22203 link_all_deplibs_CXX=yes
22204 file_list_spec_CXX='${wl}-f,'
22205
22206 if test "$GXX" = yes; then
22207 case $host_os in aix4.[012]|aix4.[012].*)
22208 # We only want to do this on AIX 4.2 and lower, the check
22209 # below for broken collect2 doesn't work under 4.3+
22210 collect2name=`${CC} -print-prog-name=collect2`
22211 if test -f "$collect2name" &&
22212 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22213 then
22214 # We have reworked collect2
22215 :
22216 else
22217 # We have old collect2
22218 hardcode_direct_CXX=unsupported
22219 # It fails to find uninstalled libraries when the uninstalled
22220 # path is not listed in the libpath. Setting hardcode_minus_L
22221 # to unsupported forces relinking
22222 hardcode_minus_L_CXX=yes
22223 hardcode_libdir_flag_spec_CXX='-L$libdir'
22224 hardcode_libdir_separator_CXX=
22225 fi
22226 esac
22227 shared_flag='-shared'
22228 if test "$aix_use_runtimelinking" = yes; then
22229 shared_flag="$shared_flag "'${wl}-G'
22230 fi
22231 else
22232 # not using gcc
22233 if test "$host_cpu" = ia64; then
22234 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22235 # chokes on -Wl,-G. The following line is correct:
22236 shared_flag='-G'
22237 else
22238 if test "$aix_use_runtimelinking" = yes; then
22239 shared_flag='${wl}-G'
22240 else
22241 shared_flag='${wl}-bM:SRE'
22242 fi
22243 fi
22244 fi
22245
22246 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22247 # It seems that -bexpall does not export symbols beginning with
22248 # underscore (_), so it is better to generate a list of symbols to
22249 # export.
22250 always_export_symbols_CXX=yes
22251 if test "$aix_use_runtimelinking" = yes; then
22252 # Warning - without using the other runtime loading flags (-brtl),
22253 # -berok will link without error, but may produce a broken library.
22254 allow_undefined_flag_CXX='-berok'
22255 # Determine the default libpath from the value encoded in an empty
22256 # executable.
22257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258 /* end confdefs.h. */
22259
22260 int
22261 main ()
22262 {
22263
22264 ;
22265 return 0;
22266 }
22267 _ACEOF
22268 if ac_fn_cxx_try_link "$LINENO"; then :
22269
22270 lt_aix_libpath_sed='
22271 /Import File Strings/,/^$/ {
22272 /^0/ {
22273 s/^0 *\(.*\)$/\1/
22274 p
22275 }
22276 }'
22277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22278 # Check for a 64-bit object if we didn't find anything.
22279 if test -z "$aix_libpath"; then
22280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22281 fi
22282 fi
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22286
22287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22288
22289 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"
22290 else
22291 if test "$host_cpu" = ia64; then
22292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22293 allow_undefined_flag_CXX="-z nodefs"
22294 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"
22295 else
22296 # Determine the default libpath from the value encoded in an
22297 # empty executable.
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22300
22301 int
22302 main ()
22303 {
22304
22305 ;
22306 return 0;
22307 }
22308 _ACEOF
22309 if ac_fn_cxx_try_link "$LINENO"; then :
22310
22311 lt_aix_libpath_sed='
22312 /Import File Strings/,/^$/ {
22313 /^0/ {
22314 s/^0 *\(.*\)$/\1/
22315 p
22316 }
22317 }'
22318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22319 # Check for a 64-bit object if we didn't find anything.
22320 if test -z "$aix_libpath"; then
22321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22322 fi
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext \
22325 conftest$ac_exeext conftest.$ac_ext
22326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22327
22328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22329 # Warning - without using the other run time loading flags,
22330 # -berok will link without error, but may produce a broken library.
22331 no_undefined_flag_CXX=' ${wl}-bernotok'
22332 allow_undefined_flag_CXX=' ${wl}-berok'
22333 if test "$with_gnu_ld" = yes; then
22334 # We only use this code for GNU lds that support --whole-archive.
22335 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22336 else
22337 # Exported symbols can be pulled into shared objects from archives
22338 whole_archive_flag_spec_CXX='$convenience'
22339 fi
22340 archive_cmds_need_lc_CXX=yes
22341 # This is similar to how AIX traditionally builds its shared
22342 # libraries.
22343 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'
22344 fi
22345 fi
22346 ;;
22347
22348 beos*)
22349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22350 allow_undefined_flag_CXX=unsupported
22351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22352 # support --undefined. This deserves some investigation. FIXME
22353 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22354 else
22355 ld_shlibs_CXX=no
22356 fi
22357 ;;
22358
22359 chorus*)
22360 case $cc_basename in
22361 *)
22362 # FIXME: insert proper C++ library support
22363 ld_shlibs_CXX=no
22364 ;;
22365 esac
22366 ;;
22367
22368 cygwin* | mingw* | pw32* | cegcc*)
22369 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22370 # as there is no search path for DLLs.
22371 hardcode_libdir_flag_spec_CXX='-L$libdir'
22372 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22373 allow_undefined_flag_CXX=unsupported
22374 always_export_symbols_CXX=no
22375 enable_shared_with_static_runtimes_CXX=yes
22376
22377 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22378 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'
22379 # If the export-symbols file already is a .def file (1st line
22380 # is EXPORTS), use it as is; otherwise, prepend...
22381 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22382 cp $export_symbols $output_objdir/$soname.def;
22383 else
22384 echo EXPORTS > $output_objdir/$soname.def;
22385 cat $export_symbols >> $output_objdir/$soname.def;
22386 fi~
22387 $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'
22388 else
22389 ld_shlibs_CXX=no
22390 fi
22391 ;;
22392 darwin* | rhapsody*)
22393
22394
22395
22396 # Publish an arg to allow the user to select that Darwin host (and target)
22397 # libraries should be given install-names like @rpath/libfoo.dylib. This
22398 # requires that the user of the library then adds an 'rpath' to the DSO that
22399 # needs access.
22400 # NOTE: there are defaults below, for systems that support rpaths. The person
22401 # configuring can override the defaults for any system version that supports
22402 # them - they are, however, forced off for system versions without support.
22403 # Check whether --enable-darwin-at-rpath was given.
22404 if test "${enable_darwin_at_rpath+set}" = set; then :
22405 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22406 # This is not supported before macOS 10.5 / Darwin9.
22407 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22408 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22410 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22411 enable_darwin_at_rpath=no
22412 ;;
22413 esac
22414 fi
22415 else
22416 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22417 # As above, before 10.5 / Darwin9 this does not work.
22418 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22419 enable_darwin_at_rpath=no
22420 ;;
22421
22422 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22423 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22424 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22425 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22427 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22428 enable_darwin_at_rpath=yes
22429 ;;
22430 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22431 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22432
22433 esac
22434
22435 fi
22436
22437
22438 archive_cmds_need_lc_CXX=no
22439 hardcode_direct_CXX=no
22440 hardcode_automatic_CXX=yes
22441 hardcode_shlibpath_var_CXX=unsupported
22442 if test "$lt_cv_ld_force_load" = "yes"; then
22443 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\"`'
22444 else
22445 whole_archive_flag_spec_CXX=''
22446 fi
22447 link_all_deplibs_CXX=yes
22448 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22449 case $cc_basename in
22450 ifort*) _lt_dar_can_shared=yes ;;
22451 *) _lt_dar_can_shared=$GCC ;;
22452 esac
22453 if test "$_lt_dar_can_shared" = "yes"; then
22454 output_verbose_link_cmd=func_echo_all
22455 _lt_install_name='\$rpath/\$soname'
22456 if test "x$enable_darwin_at_rpath" = "xyes"; then
22457 _lt_install_name='@rpath/\$soname'
22458 fi
22459 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22460 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22461 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}"
22462 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}"
22463 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22464 _lt_install_name='\$rpath/\$soname'
22465 if test "x$enable_darwin_at_rpath" = "xyes"; then
22466 _lt_install_name='@rpath/\$soname'
22467 fi
22468 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}"
22469 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}"
22470 fi
22471
22472 else
22473 ld_shlibs_CXX=no
22474 fi
22475
22476 ;;
22477
22478 dgux*)
22479 case $cc_basename in
22480 ec++*)
22481 # FIXME: insert proper C++ library support
22482 ld_shlibs_CXX=no
22483 ;;
22484 ghcx*)
22485 # Green Hills C++ Compiler
22486 # FIXME: insert proper C++ library support
22487 ld_shlibs_CXX=no
22488 ;;
22489 *)
22490 # FIXME: insert proper C++ library support
22491 ld_shlibs_CXX=no
22492 ;;
22493 esac
22494 ;;
22495
22496 freebsd2.*)
22497 # C++ shared libraries reported to be fairly broken before
22498 # switch to ELF
22499 ld_shlibs_CXX=no
22500 ;;
22501
22502 freebsd-elf*)
22503 archive_cmds_need_lc_CXX=no
22504 ;;
22505
22506 freebsd* | dragonfly*)
22507 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22508 # conventions
22509 ld_shlibs_CXX=yes
22510 ;;
22511
22512 gnu*)
22513 ;;
22514
22515 haiku*)
22516 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22517 link_all_deplibs_CXX=yes
22518 ;;
22519
22520 hpux9*)
22521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22522 hardcode_libdir_separator_CXX=:
22523 export_dynamic_flag_spec_CXX='${wl}-E'
22524 hardcode_direct_CXX=yes
22525 hardcode_minus_L_CXX=yes # Not in the search PATH,
22526 # but as the default
22527 # location of the library.
22528
22529 case $cc_basename in
22530 CC*)
22531 # FIXME: insert proper C++ library support
22532 ld_shlibs_CXX=no
22533 ;;
22534 aCC*)
22535 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'
22536 # Commands to make compiler produce verbose output that lists
22537 # what "hidden" libraries, object files and flags are used when
22538 # linking a shared library.
22539 #
22540 # There doesn't appear to be a way to prevent this compiler from
22541 # explicitly linking system object files so we need to strip them
22542 # from the output so that they don't get included in the library
22543 # dependencies.
22544 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"'
22545 ;;
22546 *)
22547 if test "$GXX" = yes; then
22548 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'
22549 else
22550 # FIXME: insert proper C++ library support
22551 ld_shlibs_CXX=no
22552 fi
22553 ;;
22554 esac
22555 ;;
22556
22557 hpux10*|hpux11*)
22558 if test $with_gnu_ld = no; then
22559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22560 hardcode_libdir_separator_CXX=:
22561
22562 case $host_cpu in
22563 hppa*64*|ia64*)
22564 ;;
22565 *)
22566 export_dynamic_flag_spec_CXX='${wl}-E'
22567 ;;
22568 esac
22569 fi
22570 case $host_cpu in
22571 hppa*64*|ia64*)
22572 hardcode_direct_CXX=no
22573 hardcode_shlibpath_var_CXX=no
22574 ;;
22575 *)
22576 hardcode_direct_CXX=yes
22577 hardcode_direct_absolute_CXX=yes
22578 hardcode_minus_L_CXX=yes # Not in the search PATH,
22579 # but as the default
22580 # location of the library.
22581 ;;
22582 esac
22583
22584 case $cc_basename in
22585 CC*)
22586 # FIXME: insert proper C++ library support
22587 ld_shlibs_CXX=no
22588 ;;
22589 aCC*)
22590 case $host_cpu in
22591 hppa*64*)
22592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22593 ;;
22594 ia64*)
22595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22596 ;;
22597 *)
22598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22599 ;;
22600 esac
22601 # Commands to make compiler produce verbose output that lists
22602 # what "hidden" libraries, object files and flags are used when
22603 # linking a shared library.
22604 #
22605 # There doesn't appear to be a way to prevent this compiler from
22606 # explicitly linking system object files so we need to strip them
22607 # from the output so that they don't get included in the library
22608 # dependencies.
22609 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"'
22610 ;;
22611 *)
22612 if test "$GXX" = yes; then
22613 if test $with_gnu_ld = no; then
22614 case $host_cpu in
22615 hppa*64*)
22616 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22617 ;;
22618 ia64*)
22619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22620 ;;
22621 *)
22622 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'
22623 ;;
22624 esac
22625 fi
22626 else
22627 # FIXME: insert proper C++ library support
22628 ld_shlibs_CXX=no
22629 fi
22630 ;;
22631 esac
22632 ;;
22633
22634 interix[3-9]*)
22635 hardcode_direct_CXX=no
22636 hardcode_shlibpath_var_CXX=no
22637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22638 export_dynamic_flag_spec_CXX='${wl}-E'
22639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22640 # Instead, shared libraries are loaded at an image base (0x10000000 by
22641 # default) and relocated if they conflict, which is a slow very memory
22642 # consuming and fragmenting process. To avoid this, we pick a random,
22643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22645 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'
22646 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'
22647 ;;
22648 irix5* | irix6*)
22649 case $cc_basename in
22650 CC*)
22651 # SGI C++
22652 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'
22653
22654 # Archives containing C++ object files must be created using
22655 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22656 # necessary to make sure instantiated templates are included
22657 # in the archive.
22658 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22659 ;;
22660 *)
22661 if test "$GXX" = yes; then
22662 if test "$with_gnu_ld" = no; then
22663 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'
22664 else
22665 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'
22666 fi
22667 fi
22668 link_all_deplibs_CXX=yes
22669 ;;
22670 esac
22671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22672 hardcode_libdir_separator_CXX=:
22673 inherit_rpath_CXX=yes
22674 ;;
22675
22676 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22677 case $cc_basename in
22678 KCC*)
22679 # Kuck and Associates, Inc. (KAI) C++ Compiler
22680
22681 # KCC will only create a shared library if the output file
22682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22683 # to its proper name (with version) after linking.
22684 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'
22685 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'
22686 # Commands to make compiler produce verbose output that lists
22687 # what "hidden" libraries, object files and flags are used when
22688 # linking a shared library.
22689 #
22690 # There doesn't appear to be a way to prevent this compiler from
22691 # explicitly linking system object files so we need to strip them
22692 # from the output so that they don't get included in the library
22693 # dependencies.
22694 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"'
22695
22696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22697 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22698
22699 # Archives containing C++ object files must be created using
22700 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22701 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22702 ;;
22703 icpc* | ecpc* )
22704 # Intel C++
22705 with_gnu_ld=yes
22706 # version 8.0 and above of icpc choke on multiply defined symbols
22707 # if we add $predep_objects and $postdep_objects, however 7.1 and
22708 # earlier do not add the objects themselves.
22709 case `$CC -V 2>&1` in
22710 *"Version 7."*)
22711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22712 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'
22713 ;;
22714 *) # Version 8.0 or newer
22715 tmp_idyn=
22716 case $host_cpu in
22717 ia64*) tmp_idyn=' -i_dynamic';;
22718 esac
22719 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22720 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'
22721 ;;
22722 esac
22723 archive_cmds_need_lc_CXX=no
22724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22726 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22727 ;;
22728 pgCC* | pgcpp*)
22729 # Portland Group C++ compiler
22730 case `$CC -V` in
22731 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22732 prelink_cmds_CXX='tpldir=Template.dir~
22733 rm -rf $tpldir~
22734 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22735 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22736 old_archive_cmds_CXX='tpldir=Template.dir~
22737 rm -rf $tpldir~
22738 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22739 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22740 $RANLIB $oldlib'
22741 archive_cmds_CXX='tpldir=Template.dir~
22742 rm -rf $tpldir~
22743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22744 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22745 archive_expsym_cmds_CXX='tpldir=Template.dir~
22746 rm -rf $tpldir~
22747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22748 $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'
22749 ;;
22750 *) # Version 6 and above use weak symbols
22751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22752 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'
22753 ;;
22754 esac
22755
22756 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22758 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'
22759 ;;
22760 cxx*)
22761 # Compaq C++
22762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22763 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'
22764
22765 runpath_var=LD_RUN_PATH
22766 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22767 hardcode_libdir_separator_CXX=:
22768
22769 # Commands to make compiler produce verbose output that lists
22770 # what "hidden" libraries, object files and flags are used when
22771 # linking a shared library.
22772 #
22773 # There doesn't appear to be a way to prevent this compiler from
22774 # explicitly linking system object files so we need to strip them
22775 # from the output so that they don't get included in the library
22776 # dependencies.
22777 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'
22778 ;;
22779 xl* | mpixl* | bgxl*)
22780 # IBM XL 8.0 on PPC, with GNU ld
22781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22783 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22784 if test "x$supports_anon_versioning" = xyes; then
22785 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22787 echo "local: *; };" >> $output_objdir/$libname.ver~
22788 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22789 fi
22790 ;;
22791 *)
22792 case `$CC -V 2>&1 | sed 5q` in
22793 *Sun\ C*)
22794 # Sun C++ 5.9
22795 no_undefined_flag_CXX=' -zdefs'
22796 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22797 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'
22798 hardcode_libdir_flag_spec_CXX='-R$libdir'
22799 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'
22800 compiler_needs_object_CXX=yes
22801
22802 # Not sure whether something based on
22803 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22804 # would be better.
22805 output_verbose_link_cmd='func_echo_all'
22806
22807 # Archives containing C++ object files must be created using
22808 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22809 # necessary to make sure instantiated templates are included
22810 # in the archive.
22811 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22812 ;;
22813 esac
22814 ;;
22815 esac
22816 ;;
22817
22818 lynxos*)
22819 # FIXME: insert proper C++ library support
22820 ld_shlibs_CXX=no
22821 ;;
22822
22823 m88k*)
22824 # FIXME: insert proper C++ library support
22825 ld_shlibs_CXX=no
22826 ;;
22827
22828 mvs*)
22829 case $cc_basename in
22830 cxx*)
22831 # FIXME: insert proper C++ library support
22832 ld_shlibs_CXX=no
22833 ;;
22834 *)
22835 # FIXME: insert proper C++ library support
22836 ld_shlibs_CXX=no
22837 ;;
22838 esac
22839 ;;
22840
22841 netbsd*)
22842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22843 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22844 wlarc=
22845 hardcode_libdir_flag_spec_CXX='-R$libdir'
22846 hardcode_direct_CXX=yes
22847 hardcode_shlibpath_var_CXX=no
22848 fi
22849 # Workaround some broken pre-1.5 toolchains
22850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22851 ;;
22852
22853 *nto* | *qnx*)
22854 ld_shlibs_CXX=yes
22855 ;;
22856
22857 openbsd2*)
22858 # C++ shared libraries are fairly broken
22859 ld_shlibs_CXX=no
22860 ;;
22861
22862 openbsd*)
22863 if test -f /usr/libexec/ld.so; then
22864 hardcode_direct_CXX=yes
22865 hardcode_shlibpath_var_CXX=no
22866 hardcode_direct_absolute_CXX=yes
22867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22871 export_dynamic_flag_spec_CXX='${wl}-E'
22872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22873 fi
22874 output_verbose_link_cmd=func_echo_all
22875 else
22876 ld_shlibs_CXX=no
22877 fi
22878 ;;
22879
22880 osf3* | osf4* | osf5*)
22881 case $cc_basename in
22882 KCC*)
22883 # Kuck and Associates, Inc. (KAI) C++ Compiler
22884
22885 # KCC will only create a shared library if the output file
22886 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22887 # to its proper name (with version) after linking.
22888 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'
22889
22890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22891 hardcode_libdir_separator_CXX=:
22892
22893 # Archives containing C++ object files must be created using
22894 # the KAI C++ compiler.
22895 case $host in
22896 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22897 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22898 esac
22899 ;;
22900 RCC*)
22901 # Rational C++ 2.4.1
22902 # FIXME: insert proper C++ library support
22903 ld_shlibs_CXX=no
22904 ;;
22905 cxx*)
22906 case $host in
22907 osf3*)
22908 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22909 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'
22910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22911 ;;
22912 *)
22913 allow_undefined_flag_CXX=' -expect_unresolved \*'
22914 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'
22915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22916 echo "-hidden">> $lib.exp~
22917 $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~
22918 $RM $lib.exp'
22919 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22920 ;;
22921 esac
22922
22923 hardcode_libdir_separator_CXX=:
22924
22925 # Commands to make compiler produce verbose output that lists
22926 # what "hidden" libraries, object files and flags are used when
22927 # linking a shared library.
22928 #
22929 # There doesn't appear to be a way to prevent this compiler from
22930 # explicitly linking system object files so we need to strip them
22931 # from the output so that they don't get included in the library
22932 # dependencies.
22933 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"'
22934 ;;
22935 *)
22936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22937 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22938 case $host in
22939 osf3*)
22940 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'
22941 ;;
22942 *)
22943 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'
22944 ;;
22945 esac
22946
22947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22948 hardcode_libdir_separator_CXX=:
22949
22950 # Commands to make compiler produce verbose output that lists
22951 # what "hidden" libraries, object files and flags are used when
22952 # linking a shared library.
22953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22954
22955 else
22956 # FIXME: insert proper C++ library support
22957 ld_shlibs_CXX=no
22958 fi
22959 ;;
22960 esac
22961 ;;
22962
22963 psos*)
22964 # FIXME: insert proper C++ library support
22965 ld_shlibs_CXX=no
22966 ;;
22967
22968 sunos4*)
22969 case $cc_basename in
22970 CC*)
22971 # Sun C++ 4.x
22972 # FIXME: insert proper C++ library support
22973 ld_shlibs_CXX=no
22974 ;;
22975 lcc*)
22976 # Lucid
22977 # FIXME: insert proper C++ library support
22978 ld_shlibs_CXX=no
22979 ;;
22980 *)
22981 # FIXME: insert proper C++ library support
22982 ld_shlibs_CXX=no
22983 ;;
22984 esac
22985 ;;
22986
22987 solaris*)
22988 case $cc_basename in
22989 CC*)
22990 # Sun C++ 4.2, 5.x and Centerline C++
22991 archive_cmds_need_lc_CXX=yes
22992 no_undefined_flag_CXX=' -zdefs'
22993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22994 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22995 $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'
22996
22997 hardcode_libdir_flag_spec_CXX='-R$libdir'
22998 hardcode_shlibpath_var_CXX=no
22999 case $host_os in
23000 solaris2.[0-5] | solaris2.[0-5].*) ;;
23001 *)
23002 # The compiler driver will combine and reorder linker options,
23003 # but understands `-z linker_flag'.
23004 # Supported since Solaris 2.6 (maybe 2.5.1?)
23005 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23006 ;;
23007 esac
23008 link_all_deplibs_CXX=yes
23009
23010 output_verbose_link_cmd='func_echo_all'
23011
23012 # Archives containing C++ object files must be created using
23013 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23014 # necessary to make sure instantiated templates are included
23015 # in the archive.
23016 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23017 ;;
23018 gcx*)
23019 # Green Hills C++ Compiler
23020 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23021
23022 # The C++ compiler must be used to create the archive.
23023 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23024 ;;
23025 *)
23026 # GNU C++ compiler with Solaris linker
23027 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23028 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23029 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23030 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23031 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23032 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23033
23034 # Commands to make compiler produce verbose output that lists
23035 # what "hidden" libraries, object files and flags are used when
23036 # linking a shared library.
23037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23038 else
23039 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23040 # platform.
23041 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23043 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23044
23045 # Commands to make compiler produce verbose output that lists
23046 # what "hidden" libraries, object files and flags are used when
23047 # linking a shared library.
23048 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23049 fi
23050
23051 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23052 case $host_os in
23053 solaris2.[0-5] | solaris2.[0-5].*) ;;
23054 *)
23055 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23056 ;;
23057 esac
23058 fi
23059 ;;
23060 esac
23061 ;;
23062
23063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23064 no_undefined_flag_CXX='${wl}-z,text'
23065 archive_cmds_need_lc_CXX=no
23066 hardcode_shlibpath_var_CXX=no
23067 runpath_var='LD_RUN_PATH'
23068
23069 case $cc_basename in
23070 CC*)
23071 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23072 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23073 ;;
23074 *)
23075 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23076 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23077 ;;
23078 esac
23079 ;;
23080
23081 sysv5* | sco3.2v5* | sco5v6*)
23082 # Note: We can NOT use -z defs as we might desire, because we do not
23083 # link with -lc, and that would cause any symbols used from libc to
23084 # always be unresolved, which means just about no library would
23085 # ever link correctly. If we're not using GNU ld we use -z text
23086 # though, which does catch some bad symbols but isn't as heavy-handed
23087 # as -z defs.
23088 no_undefined_flag_CXX='${wl}-z,text'
23089 allow_undefined_flag_CXX='${wl}-z,nodefs'
23090 archive_cmds_need_lc_CXX=no
23091 hardcode_shlibpath_var_CXX=no
23092 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23093 hardcode_libdir_separator_CXX=':'
23094 link_all_deplibs_CXX=yes
23095 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23096 runpath_var='LD_RUN_PATH'
23097
23098 case $cc_basename in
23099 CC*)
23100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23102 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23103 '"$old_archive_cmds_CXX"
23104 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23105 '"$reload_cmds_CXX"
23106 ;;
23107 *)
23108 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23110 ;;
23111 esac
23112 ;;
23113
23114 tandem*)
23115 case $cc_basename in
23116 NCC*)
23117 # NonStop-UX NCC 3.20
23118 # FIXME: insert proper C++ library support
23119 ld_shlibs_CXX=no
23120 ;;
23121 *)
23122 # FIXME: insert proper C++ library support
23123 ld_shlibs_CXX=no
23124 ;;
23125 esac
23126 ;;
23127
23128 vxworks*)
23129 # For VxWorks ports, we assume the use of a GNU linker with
23130 # standard elf conventions.
23131 ld_shlibs_CXX=yes
23132 ;;
23133
23134 *)
23135 # FIXME: insert proper C++ library support
23136 ld_shlibs_CXX=no
23137 ;;
23138 esac
23139
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23141 $as_echo "$ld_shlibs_CXX" >&6; }
23142 test "$ld_shlibs_CXX" = no && can_build_shared=no
23143
23144 GCC_CXX="$GXX"
23145 LD_CXX="$LD"
23146
23147 ## CAVEAT EMPTOR:
23148 ## There is no encapsulation within the following macros, do not change
23149 ## the running order or otherwise move them around unless you know exactly
23150 ## what you are doing...
23151 # Dependencies to place before and after the object being linked:
23152 predep_objects_CXX=
23153 postdep_objects_CXX=
23154 predeps_CXX=
23155 postdeps_CXX=
23156 compiler_lib_search_path_CXX=
23157
23158 cat > conftest.$ac_ext <<_LT_EOF
23159 class Foo
23160 {
23161 public:
23162 Foo (void) { a = 0; }
23163 private:
23164 int a;
23165 };
23166 _LT_EOF
23167
23168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23169 (eval $ac_compile) 2>&5
23170 ac_status=$?
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; then
23173 # Parse the compiler output and extract the necessary
23174 # objects, libraries and library flags.
23175
23176 # Sentinel used to keep track of whether or not we are before
23177 # the conftest object file.
23178 pre_test_object_deps_done=no
23179
23180 for p in `eval "$output_verbose_link_cmd"`; do
23181 case $p in
23182
23183 -L* | -R* | -l*)
23184 # Some compilers place space between "-{L,R}" and the path.
23185 # Remove the space.
23186 if test $p = "-L" ||
23187 test $p = "-R"; then
23188 prev=$p
23189 continue
23190 else
23191 prev=
23192 fi
23193
23194 if test "$pre_test_object_deps_done" = no; then
23195 case $p in
23196 -L* | -R*)
23197 # Internal compiler library paths should come after those
23198 # provided the user. The postdeps already come after the
23199 # user supplied libs so there is no need to process them.
23200 if test -z "$compiler_lib_search_path_CXX"; then
23201 compiler_lib_search_path_CXX="${prev}${p}"
23202 else
23203 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23204 fi
23205 ;;
23206 # The "-l" case would never come before the object being
23207 # linked, so don't bother handling this case.
23208 esac
23209 else
23210 if test -z "$postdeps_CXX"; then
23211 postdeps_CXX="${prev}${p}"
23212 else
23213 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23214 fi
23215 fi
23216 ;;
23217
23218 *.$objext)
23219 # This assumes that the test object file only shows up
23220 # once in the compiler output.
23221 if test "$p" = "conftest.$objext"; then
23222 pre_test_object_deps_done=yes
23223 continue
23224 fi
23225
23226 if test "$pre_test_object_deps_done" = no; then
23227 if test -z "$predep_objects_CXX"; then
23228 predep_objects_CXX="$p"
23229 else
23230 predep_objects_CXX="$predep_objects_CXX $p"
23231 fi
23232 else
23233 if test -z "$postdep_objects_CXX"; then
23234 postdep_objects_CXX="$p"
23235 else
23236 postdep_objects_CXX="$postdep_objects_CXX $p"
23237 fi
23238 fi
23239 ;;
23240
23241 *) ;; # Ignore the rest.
23242
23243 esac
23244 done
23245
23246 # Clean up.
23247 rm -f a.out a.exe
23248 else
23249 echo "libtool.m4: error: problem compiling CXX test program"
23250 fi
23251
23252 $RM -f confest.$objext
23253
23254 # PORTME: override above test on systems where it is broken
23255 case $host_os in
23256 interix[3-9]*)
23257 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23258 # hack all around it, let's just trust "g++" to DTRT.
23259 predep_objects_CXX=
23260 postdep_objects_CXX=
23261 postdeps_CXX=
23262 ;;
23263
23264 linux*)
23265 case `$CC -V 2>&1 | sed 5q` in
23266 *Sun\ C*)
23267 # Sun C++ 5.9
23268
23269 # The more standards-conforming stlport4 library is
23270 # incompatible with the Cstd library. Avoid specifying
23271 # it if it's in CXXFLAGS. Ignore libCrun as
23272 # -library=stlport4 depends on it.
23273 case " $CXX $CXXFLAGS " in
23274 *" -library=stlport4 "*)
23275 solaris_use_stlport4=yes
23276 ;;
23277 esac
23278
23279 if test "$solaris_use_stlport4" != yes; then
23280 postdeps_CXX='-library=Cstd -library=Crun'
23281 fi
23282 ;;
23283 esac
23284 ;;
23285
23286 solaris*)
23287 case $cc_basename in
23288 CC*)
23289 # The more standards-conforming stlport4 library is
23290 # incompatible with the Cstd library. Avoid specifying
23291 # it if it's in CXXFLAGS. Ignore libCrun as
23292 # -library=stlport4 depends on it.
23293 case " $CXX $CXXFLAGS " in
23294 *" -library=stlport4 "*)
23295 solaris_use_stlport4=yes
23296 ;;
23297 esac
23298
23299 # Adding this requires a known-good setup of shared libraries for
23300 # Sun compiler versions before 5.6, else PIC objects from an old
23301 # archive will be linked into the output, leading to subtle bugs.
23302 if test "$solaris_use_stlport4" != yes; then
23303 postdeps_CXX='-library=Cstd -library=Crun'
23304 fi
23305 ;;
23306 esac
23307 ;;
23308 esac
23309
23310
23311 case " $postdeps_CXX " in
23312 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23313 esac
23314 compiler_lib_search_dirs_CXX=
23315 if test -n "${compiler_lib_search_path_CXX}"; then
23316 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23317 fi
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349 lt_prog_compiler_wl_CXX=
23350 lt_prog_compiler_pic_CXX=
23351 lt_prog_compiler_static_CXX=
23352
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23355
23356 # C++ specific cases for pic, static, wl, etc.
23357 if test "$GXX" = yes; then
23358 lt_prog_compiler_wl_CXX='-Wl,'
23359 lt_prog_compiler_static_CXX='-static'
23360
23361 case $host_os in
23362 aix*)
23363 # All AIX code is PIC.
23364 if test "$host_cpu" = ia64; then
23365 # AIX 5 now supports IA64 processor
23366 lt_prog_compiler_static_CXX='-Bstatic'
23367 fi
23368 lt_prog_compiler_pic_CXX='-fPIC'
23369 ;;
23370
23371 amigaos*)
23372 case $host_cpu in
23373 powerpc)
23374 # see comment about AmigaOS4 .so support
23375 lt_prog_compiler_pic_CXX='-fPIC'
23376 ;;
23377 m68k)
23378 # FIXME: we need at least 68020 code to build shared libraries, but
23379 # adding the `-m68020' flag to GCC prevents building anything better,
23380 # like `-m68040'.
23381 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23382 ;;
23383 esac
23384 ;;
23385
23386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23387 # PIC is the default for these OSes.
23388 ;;
23389 mingw* | cygwin* | os2* | pw32* | cegcc*)
23390 # This hack is so that the source file can tell whether it is being
23391 # built for inclusion in a dll (and should export symbols for example).
23392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23393 # (--disable-auto-import) libraries
23394 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23395 ;;
23396 darwin* | rhapsody*)
23397 # PIC is the default on this platform
23398 # Common symbols not allowed in MH_DYLIB files
23399 lt_prog_compiler_pic_CXX='-fno-common'
23400 ;;
23401 *djgpp*)
23402 # DJGPP does not support shared libraries at all
23403 lt_prog_compiler_pic_CXX=
23404 ;;
23405 haiku*)
23406 # PIC is the default for Haiku.
23407 # The "-static" flag exists, but is broken.
23408 lt_prog_compiler_static_CXX=
23409 ;;
23410 interix[3-9]*)
23411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23412 # Instead, we relocate shared libraries at runtime.
23413 ;;
23414 sysv4*MP*)
23415 if test -d /usr/nec; then
23416 lt_prog_compiler_pic_CXX=-Kconform_pic
23417 fi
23418 ;;
23419 hpux*)
23420 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23421 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23422 # sets the default TLS model and affects inlining.
23423 case $host_cpu in
23424 hppa*64*)
23425 ;;
23426 *)
23427 lt_prog_compiler_pic_CXX='-fPIC'
23428 ;;
23429 esac
23430 ;;
23431 *qnx* | *nto*)
23432 # QNX uses GNU C++, but need to define -shared option too, otherwise
23433 # it will coredump.
23434 lt_prog_compiler_pic_CXX='-fPIC -shared'
23435 ;;
23436 *)
23437 lt_prog_compiler_pic_CXX='-fPIC'
23438 ;;
23439 esac
23440 else
23441 case $host_os in
23442 aix[4-9]*)
23443 # All AIX code is PIC.
23444 if test "$host_cpu" = ia64; then
23445 # AIX 5 now supports IA64 processor
23446 lt_prog_compiler_static_CXX='-Bstatic'
23447 else
23448 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23449 fi
23450 ;;
23451 chorus*)
23452 case $cc_basename in
23453 cxch68*)
23454 # Green Hills C++ Compiler
23455 # _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"
23456 ;;
23457 esac
23458 ;;
23459 dgux*)
23460 case $cc_basename in
23461 ec++*)
23462 lt_prog_compiler_pic_CXX='-KPIC'
23463 ;;
23464 ghcx*)
23465 # Green Hills C++ Compiler
23466 lt_prog_compiler_pic_CXX='-pic'
23467 ;;
23468 *)
23469 ;;
23470 esac
23471 ;;
23472 freebsd* | dragonfly*)
23473 # FreeBSD uses GNU C++
23474 ;;
23475 hpux9* | hpux10* | hpux11*)
23476 case $cc_basename in
23477 CC*)
23478 lt_prog_compiler_wl_CXX='-Wl,'
23479 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23480 if test "$host_cpu" != ia64; then
23481 lt_prog_compiler_pic_CXX='+Z'
23482 fi
23483 ;;
23484 aCC*)
23485 lt_prog_compiler_wl_CXX='-Wl,'
23486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23487 case $host_cpu in
23488 hppa*64*|ia64*)
23489 # +Z the default
23490 ;;
23491 *)
23492 lt_prog_compiler_pic_CXX='+Z'
23493 ;;
23494 esac
23495 ;;
23496 *)
23497 ;;
23498 esac
23499 ;;
23500 interix*)
23501 # This is c89, which is MS Visual C++ (no shared libs)
23502 # Anyone wants to do a port?
23503 ;;
23504 irix5* | irix6* | nonstopux*)
23505 case $cc_basename in
23506 CC*)
23507 lt_prog_compiler_wl_CXX='-Wl,'
23508 lt_prog_compiler_static_CXX='-non_shared'
23509 # CC pic flag -KPIC is the default.
23510 ;;
23511 *)
23512 ;;
23513 esac
23514 ;;
23515 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23516 case $cc_basename in
23517 KCC*)
23518 # KAI C++ Compiler
23519 lt_prog_compiler_wl_CXX='--backend -Wl,'
23520 lt_prog_compiler_pic_CXX='-fPIC'
23521 ;;
23522 ecpc* )
23523 # old Intel C++ for x86_64 which still supported -KPIC.
23524 lt_prog_compiler_wl_CXX='-Wl,'
23525 lt_prog_compiler_pic_CXX='-KPIC'
23526 lt_prog_compiler_static_CXX='-static'
23527 ;;
23528 icpc* )
23529 # Intel C++, used to be incompatible with GCC.
23530 # ICC 10 doesn't accept -KPIC any more.
23531 lt_prog_compiler_wl_CXX='-Wl,'
23532 lt_prog_compiler_pic_CXX='-fPIC'
23533 lt_prog_compiler_static_CXX='-static'
23534 ;;
23535 pgCC* | pgcpp*)
23536 # Portland Group C++ compiler
23537 lt_prog_compiler_wl_CXX='-Wl,'
23538 lt_prog_compiler_pic_CXX='-fpic'
23539 lt_prog_compiler_static_CXX='-Bstatic'
23540 ;;
23541 cxx*)
23542 # Compaq C++
23543 # Make sure the PIC flag is empty. It appears that all Alpha
23544 # Linux and Compaq Tru64 Unix objects are PIC.
23545 lt_prog_compiler_pic_CXX=
23546 lt_prog_compiler_static_CXX='-non_shared'
23547 ;;
23548 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23549 # IBM XL 8.0, 9.0 on PPC and BlueGene
23550 lt_prog_compiler_wl_CXX='-Wl,'
23551 lt_prog_compiler_pic_CXX='-qpic'
23552 lt_prog_compiler_static_CXX='-qstaticlink'
23553 ;;
23554 *)
23555 case `$CC -V 2>&1 | sed 5q` in
23556 *Sun\ C*)
23557 # Sun C++ 5.9
23558 lt_prog_compiler_pic_CXX='-KPIC'
23559 lt_prog_compiler_static_CXX='-Bstatic'
23560 lt_prog_compiler_wl_CXX='-Qoption ld '
23561 ;;
23562 esac
23563 ;;
23564 esac
23565 ;;
23566 lynxos*)
23567 ;;
23568 m88k*)
23569 ;;
23570 mvs*)
23571 case $cc_basename in
23572 cxx*)
23573 lt_prog_compiler_pic_CXX='-W c,exportall'
23574 ;;
23575 *)
23576 ;;
23577 esac
23578 ;;
23579 netbsd*)
23580 ;;
23581 *qnx* | *nto*)
23582 # QNX uses GNU C++, but need to define -shared option too, otherwise
23583 # it will coredump.
23584 lt_prog_compiler_pic_CXX='-fPIC -shared'
23585 ;;
23586 osf3* | osf4* | osf5*)
23587 case $cc_basename in
23588 KCC*)
23589 lt_prog_compiler_wl_CXX='--backend -Wl,'
23590 ;;
23591 RCC*)
23592 # Rational C++ 2.4.1
23593 lt_prog_compiler_pic_CXX='-pic'
23594 ;;
23595 cxx*)
23596 # Digital/Compaq C++
23597 lt_prog_compiler_wl_CXX='-Wl,'
23598 # Make sure the PIC flag is empty. It appears that all Alpha
23599 # Linux and Compaq Tru64 Unix objects are PIC.
23600 lt_prog_compiler_pic_CXX=
23601 lt_prog_compiler_static_CXX='-non_shared'
23602 ;;
23603 *)
23604 ;;
23605 esac
23606 ;;
23607 psos*)
23608 ;;
23609 solaris*)
23610 case $cc_basename in
23611 CC*)
23612 # Sun C++ 4.2, 5.x and Centerline C++
23613 lt_prog_compiler_pic_CXX='-KPIC'
23614 lt_prog_compiler_static_CXX='-Bstatic'
23615 lt_prog_compiler_wl_CXX='-Qoption ld '
23616 ;;
23617 gcx*)
23618 # Green Hills C++ Compiler
23619 lt_prog_compiler_pic_CXX='-PIC'
23620 ;;
23621 *)
23622 ;;
23623 esac
23624 ;;
23625 sunos4*)
23626 case $cc_basename in
23627 CC*)
23628 # Sun C++ 4.x
23629 lt_prog_compiler_pic_CXX='-pic'
23630 lt_prog_compiler_static_CXX='-Bstatic'
23631 ;;
23632 lcc*)
23633 # Lucid
23634 lt_prog_compiler_pic_CXX='-pic'
23635 ;;
23636 *)
23637 ;;
23638 esac
23639 ;;
23640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23641 case $cc_basename in
23642 CC*)
23643 lt_prog_compiler_wl_CXX='-Wl,'
23644 lt_prog_compiler_pic_CXX='-KPIC'
23645 lt_prog_compiler_static_CXX='-Bstatic'
23646 ;;
23647 esac
23648 ;;
23649 tandem*)
23650 case $cc_basename in
23651 NCC*)
23652 # NonStop-UX NCC 3.20
23653 lt_prog_compiler_pic_CXX='-KPIC'
23654 ;;
23655 *)
23656 ;;
23657 esac
23658 ;;
23659 vxworks*)
23660 ;;
23661 *)
23662 lt_prog_compiler_can_build_shared_CXX=no
23663 ;;
23664 esac
23665 fi
23666
23667 case $host_os in
23668 # For platforms which do not support PIC, -DPIC is meaningless:
23669 *djgpp*)
23670 lt_prog_compiler_pic_CXX=
23671 ;;
23672 *)
23673 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23674 ;;
23675 esac
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23677 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23678
23679
23680
23681 #
23682 # Check to make sure the PIC flag actually works.
23683 #
23684 if test -n "$lt_prog_compiler_pic_CXX"; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23686 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23687 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23688 $as_echo_n "(cached) " >&6
23689 else
23690 lt_cv_prog_compiler_pic_works_CXX=no
23691 ac_outfile=conftest.$ac_objext
23692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23693 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23694 # Insert the option either (1) after the last *FLAGS variable, or
23695 # (2) before a word containing "conftest.", or (3) at the end.
23696 # Note that $ac_compile itself does not contain backslashes and begins
23697 # with a dollar sign (not a hyphen), so the echo should work correctly.
23698 # The option is referenced via a variable to avoid confusing sed.
23699 lt_compile=`echo "$ac_compile" | $SED \
23700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23702 -e 's:$: $lt_compiler_flag:'`
23703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23704 (eval "$lt_compile" 2>conftest.err)
23705 ac_status=$?
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 if (exit $ac_status) && test -s "$ac_outfile"; then
23709 # The compiler can only warn and ignore the option if not recognized
23710 # So say no if there are warnings other than the usual output.
23711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23714 lt_cv_prog_compiler_pic_works_CXX=yes
23715 fi
23716 fi
23717 $RM conftest*
23718
23719 fi
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23721 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23722
23723 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23724 case $lt_prog_compiler_pic_CXX in
23725 "" | " "*) ;;
23726 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23727 esac
23728 else
23729 lt_prog_compiler_pic_CXX=
23730 lt_prog_compiler_can_build_shared_CXX=no
23731 fi
23732
23733 fi
23734
23735
23736
23737 #
23738 # Check to make sure the static flag actually works.
23739 #
23740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23743 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23746 lt_cv_prog_compiler_static_works_CXX=no
23747 save_LDFLAGS="$LDFLAGS"
23748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23751 # The linker can only warn and ignore the option if not recognized
23752 # So say no if there are warnings
23753 if test -s conftest.err; then
23754 # Append any errors to the config.log.
23755 cat conftest.err 1>&5
23756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23758 if diff conftest.exp conftest.er2 >/dev/null; then
23759 lt_cv_prog_compiler_static_works_CXX=yes
23760 fi
23761 else
23762 lt_cv_prog_compiler_static_works_CXX=yes
23763 fi
23764 fi
23765 $RM -r conftest*
23766 LDFLAGS="$save_LDFLAGS"
23767
23768 fi
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23770 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23771
23772 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23773 :
23774 else
23775 lt_prog_compiler_static_CXX=
23776 fi
23777
23778
23779
23780
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23783 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23784 $as_echo_n "(cached) " >&6
23785 else
23786 lt_cv_prog_compiler_c_o_CXX=no
23787 $RM -r conftest 2>/dev/null
23788 mkdir conftest
23789 cd conftest
23790 mkdir out
23791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23792
23793 lt_compiler_flag="-o out/conftest2.$ac_objext"
23794 # Insert the option either (1) after the last *FLAGS variable, or
23795 # (2) before a word containing "conftest.", or (3) at the end.
23796 # Note that $ac_compile itself does not contain backslashes and begins
23797 # with a dollar sign (not a hyphen), so the echo should work correctly.
23798 lt_compile=`echo "$ac_compile" | $SED \
23799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23801 -e 's:$: $lt_compiler_flag:'`
23802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23803 (eval "$lt_compile" 2>out/conftest.err)
23804 ac_status=$?
23805 cat out/conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23808 then
23809 # The compiler can only warn and ignore the option if not recognized
23810 # So say no if there are warnings
23811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23814 lt_cv_prog_compiler_c_o_CXX=yes
23815 fi
23816 fi
23817 chmod u+w . 2>&5
23818 $RM conftest*
23819 # SGI C++ compiler will create directory out/ii_files/ for
23820 # template instantiation
23821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23822 $RM out/* && rmdir out
23823 cd ..
23824 $RM -r conftest
23825 $RM conftest*
23826
23827 fi
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23829 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23830
23831
23832
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23835 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23836 $as_echo_n "(cached) " >&6
23837 else
23838 lt_cv_prog_compiler_c_o_CXX=no
23839 $RM -r conftest 2>/dev/null
23840 mkdir conftest
23841 cd conftest
23842 mkdir out
23843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23844
23845 lt_compiler_flag="-o out/conftest2.$ac_objext"
23846 # Insert the option either (1) after the last *FLAGS variable, or
23847 # (2) before a word containing "conftest.", or (3) at the end.
23848 # Note that $ac_compile itself does not contain backslashes and begins
23849 # with a dollar sign (not a hyphen), so the echo should work correctly.
23850 lt_compile=`echo "$ac_compile" | $SED \
23851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23853 -e 's:$: $lt_compiler_flag:'`
23854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23855 (eval "$lt_compile" 2>out/conftest.err)
23856 ac_status=$?
23857 cat out/conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23860 then
23861 # The compiler can only warn and ignore the option if not recognized
23862 # So say no if there are warnings
23863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23866 lt_cv_prog_compiler_c_o_CXX=yes
23867 fi
23868 fi
23869 chmod u+w . 2>&5
23870 $RM conftest*
23871 # SGI C++ compiler will create directory out/ii_files/ for
23872 # template instantiation
23873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23874 $RM out/* && rmdir out
23875 cd ..
23876 $RM -r conftest
23877 $RM conftest*
23878
23879 fi
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23881 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23882
23883
23884
23885
23886 hard_links="nottested"
23887 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23888 # do not overwrite the value of need_locks provided by the user
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23890 $as_echo_n "checking if we can lock with hard links... " >&6; }
23891 hard_links=yes
23892 $RM conftest*
23893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23894 touch conftest.a
23895 ln conftest.a conftest.b 2>&5 || hard_links=no
23896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23898 $as_echo "$hard_links" >&6; }
23899 if test "$hard_links" = no; then
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23901 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23902 need_locks=warn
23903 fi
23904 else
23905 need_locks=no
23906 fi
23907
23908
23909
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23912
23913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23914 case $host_os in
23915 aix[4-9]*)
23916 # If we're using GNU nm, then we don't want the "-C" option.
23917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23918 # Also, AIX nm treats weak defined symbols like other global defined
23919 # symbols, whereas GNU nm marks them as "W".
23920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23921 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'
23922 else
23923 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'
23924 fi
23925 ;;
23926 pw32*)
23927 export_symbols_cmds_CXX="$ltdll_cmds"
23928 ;;
23929 cygwin* | mingw* | cegcc*)
23930 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'
23931 ;;
23932 *)
23933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23934 ;;
23935 esac
23936 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23937
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23939 $as_echo "$ld_shlibs_CXX" >&6; }
23940 test "$ld_shlibs_CXX" = no && can_build_shared=no
23941
23942 with_gnu_ld_CXX=$with_gnu_ld
23943
23944
23945
23946
23947
23948
23949 #
23950 # Do we need to explicitly link libc?
23951 #
23952 case "x$archive_cmds_need_lc_CXX" in
23953 x|xyes)
23954 # Assume -lc should be added
23955 archive_cmds_need_lc_CXX=yes
23956
23957 if test "$enable_shared" = yes && test "$GCC" = yes; then
23958 case $archive_cmds_CXX in
23959 *'~'*)
23960 # FIXME: we may have to deal with multi-command sequences.
23961 ;;
23962 '$CC '*)
23963 # Test whether the compiler implicitly links with -lc since on some
23964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23965 # to ld, don't add -lc before -lgcc.
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23967 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23968 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970 else
23971 $RM conftest*
23972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23973
23974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23975 (eval $ac_compile) 2>&5
23976 ac_status=$?
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; } 2>conftest.err; then
23979 soname=conftest
23980 lib=conftest
23981 libobjs=conftest.$ac_objext
23982 deplibs=
23983 wl=$lt_prog_compiler_wl_CXX
23984 pic_flag=$lt_prog_compiler_pic_CXX
23985 compiler_flags=-v
23986 linker_flags=-v
23987 verstring=
23988 output_objdir=.
23989 libname=conftest
23990 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23991 allow_undefined_flag_CXX=
23992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23993 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23994 ac_status=$?
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }
23997 then
23998 lt_cv_archive_cmds_need_lc_CXX=no
23999 else
24000 lt_cv_archive_cmds_need_lc_CXX=yes
24001 fi
24002 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24003 else
24004 cat conftest.err 1>&5
24005 fi
24006 $RM conftest*
24007
24008 fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24010 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24011 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24012 ;;
24013 esac
24014 fi
24015 ;;
24016 esac
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24083
24084 library_names_spec=
24085 libname_spec='lib$name'
24086 soname_spec=
24087 shrext_cmds=".so"
24088 postinstall_cmds=
24089 postuninstall_cmds=
24090 finish_cmds=
24091 finish_eval=
24092 shlibpath_var=
24093 shlibpath_overrides_runpath=unknown
24094 version_type=none
24095 dynamic_linker="$host_os ld.so"
24096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24097 need_lib_prefix=unknown
24098 hardcode_into_libs=no
24099
24100 # when you set need_version to no, make sure it does not cause -set_version
24101 # flags to be left without arguments
24102 need_version=unknown
24103
24104 case $host_os in
24105 aix3*)
24106 version_type=linux
24107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24108 shlibpath_var=LIBPATH
24109
24110 # AIX 3 has no versioning support, so we append a major version to the name.
24111 soname_spec='${libname}${release}${shared_ext}$major'
24112 ;;
24113
24114 aix[4-9]*)
24115 version_type=linux
24116 need_lib_prefix=no
24117 need_version=no
24118 hardcode_into_libs=yes
24119 if test "$host_cpu" = ia64; then
24120 # AIX 5 supports IA64
24121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24122 shlibpath_var=LD_LIBRARY_PATH
24123 else
24124 # With GCC up to 2.95.x, collect2 would create an import file
24125 # for dependence libraries. The import file would start with
24126 # the line `#! .'. This would cause the generated library to
24127 # depend on `.', always an invalid library. This was fixed in
24128 # development snapshots of GCC prior to 3.0.
24129 case $host_os in
24130 aix4 | aix4.[01] | aix4.[01].*)
24131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24132 echo ' yes '
24133 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24134 :
24135 else
24136 can_build_shared=no
24137 fi
24138 ;;
24139 esac
24140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24141 # soname into executable. Probably we can add versioning support to
24142 # collect2, so additional links can be useful in future.
24143 if test "$aix_use_runtimelinking" = yes; then
24144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24145 # instead of lib<name>.a to let people know that these are not
24146 # typical AIX shared libraries.
24147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24148 else
24149 # We preserve .a as extension for shared libraries through AIX4.2
24150 # and later when we are not doing run time linking.
24151 library_names_spec='${libname}${release}.a $libname.a'
24152 soname_spec='${libname}${release}${shared_ext}$major'
24153 fi
24154 shlibpath_var=LIBPATH
24155 fi
24156 ;;
24157
24158 amigaos*)
24159 case $host_cpu in
24160 powerpc)
24161 # Since July 2007 AmigaOS4 officially supports .so libraries.
24162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24164 ;;
24165 m68k)
24166 library_names_spec='$libname.ixlibrary $libname.a'
24167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24168 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'
24169 ;;
24170 esac
24171 ;;
24172
24173 beos*)
24174 library_names_spec='${libname}${shared_ext}'
24175 dynamic_linker="$host_os ld.so"
24176 shlibpath_var=LIBRARY_PATH
24177 ;;
24178
24179 bsdi[45]*)
24180 version_type=linux
24181 need_version=no
24182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24183 soname_spec='${libname}${release}${shared_ext}$major'
24184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24185 shlibpath_var=LD_LIBRARY_PATH
24186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24188 # the default ld.so.conf also contains /usr/contrib/lib and
24189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24190 # libtool to hard-code these into programs
24191 ;;
24192
24193 cygwin* | mingw* | pw32* | cegcc*)
24194 version_type=windows
24195 shrext_cmds=".dll"
24196 need_version=no
24197 need_lib_prefix=no
24198
24199 case $GCC,$host_os in
24200 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24201 library_names_spec='$libname.dll.a'
24202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24203 postinstall_cmds='base_file=`basename \${file}`~
24204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24205 dldir=$destdir/`dirname \$dlpath`~
24206 test -d \$dldir || mkdir -p \$dldir~
24207 $install_prog $dir/$dlname \$dldir/$dlname~
24208 chmod a+x \$dldir/$dlname~
24209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24211 fi'
24212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24213 dlpath=$dir/\$dldll~
24214 $RM \$dlpath'
24215 shlibpath_overrides_runpath=yes
24216
24217 case $host_os in
24218 cygwin*)
24219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24221
24222 ;;
24223 mingw* | cegcc*)
24224 # MinGW DLLs use traditional 'lib' prefix
24225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24226 ;;
24227 pw32*)
24228 # pw32 DLLs use 'pw' prefix rather than 'lib'
24229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24230 ;;
24231 esac
24232 ;;
24233
24234 *)
24235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24236 ;;
24237 esac
24238 dynamic_linker='Win32 ld.exe'
24239 # FIXME: first we should search . and the directory the executable is in
24240 shlibpath_var=PATH
24241 ;;
24242
24243 darwin* | rhapsody*)
24244 dynamic_linker="$host_os dyld"
24245 version_type=darwin
24246 need_lib_prefix=no
24247 need_version=no
24248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24249 soname_spec='${libname}${release}${major}$shared_ext'
24250 shlibpath_overrides_runpath=yes
24251 shlibpath_var=DYLD_LIBRARY_PATH
24252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24253
24254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24255 ;;
24256
24257 dgux*)
24258 version_type=linux
24259 need_lib_prefix=no
24260 need_version=no
24261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24262 soname_spec='${libname}${release}${shared_ext}$major'
24263 shlibpath_var=LD_LIBRARY_PATH
24264 ;;
24265
24266 freebsd* | dragonfly*)
24267 # DragonFly does not have aout. When/if they implement a new
24268 # versioning mechanism, adjust this.
24269 if test -x /usr/bin/objformat; then
24270 objformat=`/usr/bin/objformat`
24271 else
24272 case $host_os in
24273 freebsd[23].*) objformat=aout ;;
24274 *) objformat=elf ;;
24275 esac
24276 fi
24277 version_type=freebsd-$objformat
24278 case $version_type in
24279 freebsd-elf*)
24280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24281 need_version=no
24282 need_lib_prefix=no
24283 ;;
24284 freebsd-*)
24285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24286 need_version=yes
24287 ;;
24288 esac
24289 shlibpath_var=LD_LIBRARY_PATH
24290 case $host_os in
24291 freebsd2.*)
24292 shlibpath_overrides_runpath=yes
24293 ;;
24294 freebsd3.[01]* | freebsdelf3.[01]*)
24295 shlibpath_overrides_runpath=yes
24296 hardcode_into_libs=yes
24297 ;;
24298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24300 shlibpath_overrides_runpath=no
24301 hardcode_into_libs=yes
24302 ;;
24303 *) # from 4.6 on, and DragonFly
24304 shlibpath_overrides_runpath=yes
24305 hardcode_into_libs=yes
24306 ;;
24307 esac
24308 ;;
24309
24310 haiku*)
24311 version_type=linux
24312 need_lib_prefix=no
24313 need_version=no
24314 dynamic_linker="$host_os runtime_loader"
24315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24316 soname_spec='${libname}${release}${shared_ext}$major'
24317 shlibpath_var=LIBRARY_PATH
24318 shlibpath_overrides_runpath=yes
24319 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24320 hardcode_into_libs=yes
24321 ;;
24322
24323 hpux9* | hpux10* | hpux11*)
24324 # Give a soname corresponding to the major version so that dld.sl refuses to
24325 # link against other versions.
24326 version_type=sunos
24327 need_lib_prefix=no
24328 need_version=no
24329 case $host_cpu in
24330 ia64*)
24331 shrext_cmds='.so'
24332 hardcode_into_libs=yes
24333 dynamic_linker="$host_os dld.so"
24334 shlibpath_var=LD_LIBRARY_PATH
24335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24337 soname_spec='${libname}${release}${shared_ext}$major'
24338 if test "X$HPUX_IA64_MODE" = X32; then
24339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24340 else
24341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24342 fi
24343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24344 ;;
24345 hppa*64*)
24346 shrext_cmds='.sl'
24347 hardcode_into_libs=yes
24348 dynamic_linker="$host_os dld.sl"
24349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24352 soname_spec='${libname}${release}${shared_ext}$major'
24353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24355 ;;
24356 *)
24357 shrext_cmds='.sl'
24358 dynamic_linker="$host_os dld.sl"
24359 shlibpath_var=SHLIB_PATH
24360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24362 soname_spec='${libname}${release}${shared_ext}$major'
24363 ;;
24364 esac
24365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24366 postinstall_cmds='chmod 555 $lib'
24367 # or fails outright, so override atomically:
24368 install_override_mode=555
24369 ;;
24370
24371 interix[3-9]*)
24372 version_type=linux
24373 need_lib_prefix=no
24374 need_version=no
24375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24376 soname_spec='${libname}${release}${shared_ext}$major'
24377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24378 shlibpath_var=LD_LIBRARY_PATH
24379 shlibpath_overrides_runpath=no
24380 hardcode_into_libs=yes
24381 ;;
24382
24383 irix5* | irix6* | nonstopux*)
24384 case $host_os in
24385 nonstopux*) version_type=nonstopux ;;
24386 *)
24387 if test "$lt_cv_prog_gnu_ld" = yes; then
24388 version_type=linux
24389 else
24390 version_type=irix
24391 fi ;;
24392 esac
24393 need_lib_prefix=no
24394 need_version=no
24395 soname_spec='${libname}${release}${shared_ext}$major'
24396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24397 case $host_os in
24398 irix5* | nonstopux*)
24399 libsuff= shlibsuff=
24400 ;;
24401 *)
24402 case $LD in # libtool.m4 will add one of these switches to LD
24403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24404 libsuff= shlibsuff= libmagic=32-bit;;
24405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24406 libsuff=32 shlibsuff=N32 libmagic=N32;;
24407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24409 *) libsuff= shlibsuff= libmagic=never-match;;
24410 esac
24411 ;;
24412 esac
24413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24414 shlibpath_overrides_runpath=no
24415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24417 hardcode_into_libs=yes
24418 ;;
24419
24420 # No shared lib support for Linux oldld, aout, or coff.
24421 linux*oldld* | linux*aout* | linux*coff*)
24422 dynamic_linker=no
24423 ;;
24424
24425 # This must be Linux ELF.
24426
24427 # uclinux* changes (here and below) have been submitted to the libtool
24428 # project, but have not yet been accepted: they are GCC-local changes
24429 # for the time being. (See
24430 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24431 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24432 version_type=linux
24433 need_lib_prefix=no
24434 need_version=no
24435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24436 soname_spec='${libname}${release}${shared_ext}$major'
24437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24438 shlibpath_var=LD_LIBRARY_PATH
24439 shlibpath_overrides_runpath=no
24440
24441 # Some binutils ld are patched to set DT_RUNPATH
24442 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 lt_cv_shlibpath_overrides_runpath=no
24446 save_LDFLAGS=$LDFLAGS
24447 save_libdir=$libdir
24448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24452
24453 int
24454 main ()
24455 {
24456
24457 ;
24458 return 0;
24459 }
24460 _ACEOF
24461 if ac_fn_cxx_try_link "$LINENO"; then :
24462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24463 lt_cv_shlibpath_overrides_runpath=yes
24464 fi
24465 fi
24466 rm -f core conftest.err conftest.$ac_objext \
24467 conftest$ac_exeext conftest.$ac_ext
24468 LDFLAGS=$save_LDFLAGS
24469 libdir=$save_libdir
24470
24471 fi
24472
24473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24474
24475 # This implies no fast_install, which is unacceptable.
24476 # Some rework will be needed to allow for fast_install
24477 # before this can be enabled.
24478 hardcode_into_libs=yes
24479
24480 # Append ld.so.conf contents to the search path
24481 if test -f /etc/ld.so.conf; then
24482 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' ' '`
24483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24484 fi
24485
24486 # We used to test for /lib/ld.so.1 and disable shared libraries on
24487 # powerpc, because MkLinux only supported shared libraries with the
24488 # GNU dynamic linker. Since this was broken with cross compilers,
24489 # most powerpc-linux boxes support dynamic linking these days and
24490 # people can always --disable-shared, the test was removed, and we
24491 # assume the GNU/Linux dynamic linker is in use.
24492 dynamic_linker='GNU/Linux ld.so'
24493 ;;
24494
24495 netbsd*)
24496 version_type=sunos
24497 need_lib_prefix=no
24498 need_version=no
24499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24502 dynamic_linker='NetBSD (a.out) ld.so'
24503 else
24504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24505 soname_spec='${libname}${release}${shared_ext}$major'
24506 dynamic_linker='NetBSD ld.elf_so'
24507 fi
24508 shlibpath_var=LD_LIBRARY_PATH
24509 shlibpath_overrides_runpath=yes
24510 hardcode_into_libs=yes
24511 ;;
24512
24513 newsos6)
24514 version_type=linux
24515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 shlibpath_overrides_runpath=yes
24518 ;;
24519
24520 *nto* | *qnx*)
24521 version_type=qnx
24522 need_lib_prefix=no
24523 need_version=no
24524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24525 soname_spec='${libname}${release}${shared_ext}$major'
24526 shlibpath_var=LD_LIBRARY_PATH
24527 shlibpath_overrides_runpath=no
24528 hardcode_into_libs=yes
24529 dynamic_linker='ldqnx.so'
24530 ;;
24531
24532 openbsd*)
24533 version_type=sunos
24534 sys_lib_dlsearch_path_spec="/usr/lib"
24535 need_lib_prefix=no
24536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24537 case $host_os in
24538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24539 *) need_version=no ;;
24540 esac
24541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24543 shlibpath_var=LD_LIBRARY_PATH
24544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24545 case $host_os in
24546 openbsd2.[89] | openbsd2.[89].*)
24547 shlibpath_overrides_runpath=no
24548 ;;
24549 *)
24550 shlibpath_overrides_runpath=yes
24551 ;;
24552 esac
24553 else
24554 shlibpath_overrides_runpath=yes
24555 fi
24556 ;;
24557
24558 os2*)
24559 libname_spec='$name'
24560 shrext_cmds=".dll"
24561 need_lib_prefix=no
24562 library_names_spec='$libname${shared_ext} $libname.a'
24563 dynamic_linker='OS/2 ld.exe'
24564 shlibpath_var=LIBPATH
24565 ;;
24566
24567 osf3* | osf4* | osf5*)
24568 version_type=osf
24569 need_lib_prefix=no
24570 need_version=no
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24573 shlibpath_var=LD_LIBRARY_PATH
24574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24576 ;;
24577
24578 rdos*)
24579 dynamic_linker=no
24580 ;;
24581
24582 solaris*)
24583 version_type=linux
24584 need_lib_prefix=no
24585 need_version=no
24586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24587 soname_spec='${libname}${release}${shared_ext}$major'
24588 shlibpath_var=LD_LIBRARY_PATH
24589 shlibpath_overrides_runpath=yes
24590 hardcode_into_libs=yes
24591 # ldd complains unless libraries are executable
24592 postinstall_cmds='chmod +x $lib'
24593 ;;
24594
24595 sunos4*)
24596 version_type=sunos
24597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24599 shlibpath_var=LD_LIBRARY_PATH
24600 shlibpath_overrides_runpath=yes
24601 if test "$with_gnu_ld" = yes; then
24602 need_lib_prefix=no
24603 fi
24604 need_version=yes
24605 ;;
24606
24607 sysv4 | sysv4.3*)
24608 version_type=linux
24609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24610 soname_spec='${libname}${release}${shared_ext}$major'
24611 shlibpath_var=LD_LIBRARY_PATH
24612 case $host_vendor in
24613 sni)
24614 shlibpath_overrides_runpath=no
24615 need_lib_prefix=no
24616 runpath_var=LD_RUN_PATH
24617 ;;
24618 siemens)
24619 need_lib_prefix=no
24620 ;;
24621 motorola)
24622 need_lib_prefix=no
24623 need_version=no
24624 shlibpath_overrides_runpath=no
24625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24626 ;;
24627 esac
24628 ;;
24629
24630 sysv4*MP*)
24631 if test -d /usr/nec ;then
24632 version_type=linux
24633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24634 soname_spec='$libname${shared_ext}.$major'
24635 shlibpath_var=LD_LIBRARY_PATH
24636 fi
24637 ;;
24638
24639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24640 version_type=freebsd-elf
24641 need_lib_prefix=no
24642 need_version=no
24643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24644 soname_spec='${libname}${release}${shared_ext}$major'
24645 shlibpath_var=LD_LIBRARY_PATH
24646 shlibpath_overrides_runpath=yes
24647 hardcode_into_libs=yes
24648 if test "$with_gnu_ld" = yes; then
24649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24650 else
24651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24652 case $host_os in
24653 sco3.2v5*)
24654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24655 ;;
24656 esac
24657 fi
24658 sys_lib_dlsearch_path_spec='/usr/lib'
24659 ;;
24660
24661 tpf*)
24662 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24663 version_type=linux
24664 need_lib_prefix=no
24665 need_version=no
24666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24667 shlibpath_var=LD_LIBRARY_PATH
24668 shlibpath_overrides_runpath=no
24669 hardcode_into_libs=yes
24670 ;;
24671
24672 uts4*)
24673 version_type=linux
24674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24675 soname_spec='${libname}${release}${shared_ext}$major'
24676 shlibpath_var=LD_LIBRARY_PATH
24677 ;;
24678
24679 # Shared libraries for VwWorks, >= 7 only at this stage
24680 # and (fpic) still incompatible with "large" code models
24681 # in a few configurations. Only for RTP mode in any case,
24682 # and upon explicit request at configure time.
24683 vxworks7*)
24684 dynamic_linker=no
24685 case ${with_multisubdir}-${enable_shared} in
24686 *large*)
24687 ;;
24688 *mrtp*-yes)
24689 version_type=linux
24690 need_lib_prefix=no
24691 need_version=no
24692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24693 soname_spec='${libname}${release}${shared_ext}$major'
24694 dynamic_linker="$host_os module_loader"
24695 ;;
24696 esac
24697 ;;
24698 *)
24699 dynamic_linker=no
24700 ;;
24701 esac
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24703 $as_echo "$dynamic_linker" >&6; }
24704 test "$dynamic_linker" = no && can_build_shared=no
24705
24706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24707 if test "$GCC" = yes; then
24708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24709 fi
24710
24711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24713 fi
24714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24716 fi
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24757 hardcode_action_CXX=
24758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24759 test -n "$runpath_var_CXX" ||
24760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24761
24762 # We can hardcode non-existent directories.
24763 if test "$hardcode_direct_CXX" != no &&
24764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24765 # have to relink, otherwise we might link with an installed library
24766 # when we should be linking with a yet-to-be-installed one
24767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24768 test "$hardcode_minus_L_CXX" != no; then
24769 # Linking always hardcodes the temporary library directory.
24770 hardcode_action_CXX=relink
24771 else
24772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24773 hardcode_action_CXX=immediate
24774 fi
24775 else
24776 # We cannot hardcode anything, or else we can only hardcode existing
24777 # directories.
24778 hardcode_action_CXX=unsupported
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24781 $as_echo "$hardcode_action_CXX" >&6; }
24782
24783 if test "$hardcode_action_CXX" = relink ||
24784 test "$inherit_rpath_CXX" = yes; then
24785 # Fast installation is not supported
24786 enable_fast_install=no
24787 elif test "$shlibpath_overrides_runpath" = yes ||
24788 test "$enable_shared" = no; then
24789 # Fast installation is not necessary
24790 enable_fast_install=needless
24791 fi
24792
24793
24794
24795
24796
24797
24798
24799 fi # test -n "$compiler"
24800
24801 CC=$lt_save_CC
24802 LDCXX=$LD
24803 LD=$lt_save_LD
24804 GCC=$lt_save_GCC
24805 with_gnu_ld=$lt_save_with_gnu_ld
24806 lt_cv_path_LDCXX=$lt_cv_path_LD
24807 lt_cv_path_LD=$lt_save_path_LD
24808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24810 fi # test "$_lt_caught_CXX_error" != yes
24811
24812 ac_ext=cpp
24813 ac_cpp='$CXXCPP $CPPFLAGS'
24814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833 # Only expand once:
24834
24835
24836
24837
24838
24839 if test x$enable_darwin_at_rpath = xyes; then
24840 ENABLE_DARWIN_AT_RPATH_TRUE=
24841 ENABLE_DARWIN_AT_RPATH_FALSE='#'
24842 else
24843 ENABLE_DARWIN_AT_RPATH_TRUE='#'
24844 ENABLE_DARWIN_AT_RPATH_FALSE=
24845 fi
24846
24847 DARWIN_DO_EXTRA_RPATH=0
24848
24849 # Check whether --with-darwin-extra-rpath was given.
24850 if test "${with_darwin_extra_rpath+set}" = set; then :
24851 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
24852 DARWIN_ADD_RPATH="$withval"
24853 DARWIN_DO_EXTRA_RPATH=1
24854 fi
24855 fi
24856
24857
24858 cat >>confdefs.h <<_ACEOF
24859 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24860 _ACEOF
24861
24862
24863 cat >>confdefs.h <<_ACEOF
24864 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24865 _ACEOF
24866
24867
24868 # Identify the assembler which will work hand-in-glove with the newly
24869 # built GCC, so that we can examine its features. This is the assembler
24870 # which will be driven by the driver program.
24871 #
24872 # If build != host, and we aren't building gas in-tree, we identify a
24873 # build->target assembler and hope that it will have the same features
24874 # as the host->target assembler we'll be using.
24875 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24876
24877 if ${gcc_cv_as+:} false; then :
24878
24879 else
24880
24881 if test -x "$DEFAULT_ASSEMBLER"; then
24882 gcc_cv_as="$DEFAULT_ASSEMBLER"
24883 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24884 && test -f ../gas/Makefile \
24885 && test x$build = x$host; then
24886 gcc_cv_as=../gas/as-new$build_exeext
24887 elif test -x as$build_exeext; then
24888 # Build using assembler in the current directory.
24889 gcc_cv_as=./as$build_exeext
24890 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
24891 gcc_cv_as="$AS_FOR_TARGET"
24892 else
24893 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24894 set dummy $AS_FOR_TARGET; ac_word=$2
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24896 $as_echo_n "checking for $ac_word... " >&6; }
24897 if ${ac_cv_path_gcc_cv_as+:} false; then :
24898 $as_echo_n "(cached) " >&6
24899 else
24900 case $gcc_cv_as in
24901 [\\/]* | ?:[\\/]*)
24902 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
24903 ;;
24904 *)
24905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24906 for as_dir in $PATH
24907 do
24908 IFS=$as_save_IFS
24909 test -z "$as_dir" && as_dir=.
24910 for ac_exec_ext in '' $ac_executable_extensions; do
24911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24912 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
24913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24914 break 2
24915 fi
24916 done
24917 done
24918 IFS=$as_save_IFS
24919
24920 ;;
24921 esac
24922 fi
24923 gcc_cv_as=$ac_cv_path_gcc_cv_as
24924 if test -n "$gcc_cv_as"; then
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24926 $as_echo "$gcc_cv_as" >&6; }
24927 else
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24929 $as_echo "no" >&6; }
24930 fi
24931
24932
24933 fi
24934 fi
24935
24936 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
24937
24938 case "$ORIGINAL_AS_FOR_TARGET" in
24939 ./as | ./as$build_exeext) ;;
24940 *) ac_config_files="$ac_config_files as:exec-tool.in"
24941 ;;
24942 esac
24943
24944 default_ld=
24945 # Check whether --enable-ld was given.
24946 if test "${enable_ld+set}" = set; then :
24947 enableval=$enable_ld; case "${enableval}" in
24948 no)
24949 default_ld=ld.gold
24950 ;;
24951 esac
24952 fi
24953
24954
24955 install_gold_as_default=no
24956 # Check whether --enable-gold was given.
24957 if test "${enable_gold+set}" = set; then :
24958 enableval=$enable_gold; case "${enableval}" in
24959 default)
24960 install_gold_as_default=yes
24961 ;;
24962 yes)
24963 if test x${default_ld} != x; then
24964 install_gold_as_default=yes
24965 fi
24966 ;;
24967 no)
24968 ;;
24969 *)
24970 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
24971 ;;
24972 esac
24973 fi
24974
24975
24976 # Identify the linker which will work hand-in-glove with the newly
24977 # built GCC, so that we can examine its features. This is the linker
24978 # which will be driven by the driver program.
24979 #
24980 # If build != host, and we aren't building gas in-tree, we identify a
24981 # build->target linker and hope that it will have the same features
24982 # as the host->target linker we'll be using.
24983 gcc_cv_gld_major_version=
24984 gcc_cv_gld_minor_version=
24985 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24986 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
24987 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24988
24989 if ${gcc_cv_ld+:} false; then :
24990
24991 else
24992
24993 if test -x "$DEFAULT_LINKER"; then
24994 gcc_cv_ld="$DEFAULT_LINKER"
24995 elif test $install_gold_as_default = yes \
24996 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
24997 && test -f ../gold/Makefile \
24998 && test x$build = x$host; then
24999 gcc_cv_ld=../gold/ld-new$build_exeext
25000 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25001 && test -f ../ld/Makefile \
25002 && test x$build = x$host; then
25003 gcc_cv_ld=../ld/ld-new$build_exeext
25004 elif test -x collect-ld$build_exeext; then
25005 # Build using linker in the current directory.
25006 gcc_cv_ld=./collect-ld$build_exeext
25007 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25008 gcc_cv_ld="$LD_FOR_TARGET"
25009 else
25010 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25011 set dummy $LD_FOR_TARGET; ac_word=$2
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25013 $as_echo_n "checking for $ac_word... " >&6; }
25014 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25015 $as_echo_n "(cached) " >&6
25016 else
25017 case $gcc_cv_ld in
25018 [\\/]* | ?:[\\/]*)
25019 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25020 ;;
25021 *)
25022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25023 for as_dir in $PATH
25024 do
25025 IFS=$as_save_IFS
25026 test -z "$as_dir" && as_dir=.
25027 for ac_exec_ext in '' $ac_executable_extensions; do
25028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25029 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25031 break 2
25032 fi
25033 done
25034 done
25035 IFS=$as_save_IFS
25036
25037 ;;
25038 esac
25039 fi
25040 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25041 if test -n "$gcc_cv_ld"; then
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25043 $as_echo "$gcc_cv_ld" >&6; }
25044 else
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25047 fi
25048
25049
25050 fi
25051 fi
25052
25053 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25054 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25055 # if the PLUGIN_LD is set ld-new, just have it as ld
25056 # as that is the installed named.
25057 if test x$PLUGIN_LD_SUFFIX = xld-new \
25058 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25059 PLUGIN_LD_SUFFIX=ld
25060 fi
25061
25062 # Check whether --with-plugin-ld was given.
25063 if test "${with_plugin_ld+set}" = set; then :
25064 withval=$with_plugin_ld; if test x"$withval" != x; then
25065 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25066 PLUGIN_LD_SUFFIX="$withval"
25067 fi
25068 fi
25069
25070
25071
25072 cat >>confdefs.h <<_ACEOF
25073 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25074 _ACEOF
25075
25076
25077 # Check to see if we are using gold instead of ld
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25079 $as_echo_n "checking whether we are using gold... " >&6; }
25080 ld_is_gold=no
25081 if test x$gcc_cv_ld != x; then
25082 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25083 | grep "GNU gold" > /dev/null; then
25084 ld_is_gold=yes
25085 fi
25086 fi
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25088 $as_echo "$ld_is_gold" >&6; }
25089
25090 # Check to see if we are using mold instead of ld
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25092 $as_echo_n "checking whether we are using mold... " >&6; }
25093 ld_is_mold=no
25094 if test x$gcc_cv_ld != x; then
25095 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25096 | grep "mold" > /dev/null; then
25097 ld_is_mold=yes
25098 fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25101 $as_echo "$ld_is_mold" >&6; }
25102
25103
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25105 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25106 # Check to see if default ld is not gold, but gold is
25107 # available and has support for split stack. If gcc was configured
25108 # with gold then no checking is done.
25109 #
25110 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25111
25112 # For platforms other than powerpc64*, enable as appropriate.
25113
25114 gold_non_default=no
25115 ld_gold=`which ${gcc_cv_ld}.gold`
25116 # Make sure this gold has minimal split stack support
25117 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25118 ld_vers=`$ld_gold --version | sed 1q`
25119 gold_vers=`echo $ld_vers | sed -n \
25120 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25121 case $target in
25122 # check that the gold version contains the complete split stack support
25123 # on powerpc64 big and little endian
25124 powerpc64*-*-*)
25125 case "$gold_vers" in
25126 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25127 ;;
25128 *) gold_non_default=no
25129 ;;
25130 esac
25131 ;;
25132 esac
25133 fi
25134 if test $gold_non_default = yes; then
25135
25136 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25137
25138 fi
25139 fi
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25141 $as_echo "$gold_non_default" >&6; }
25142
25143 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25144
25145 case "$ORIGINAL_LD_FOR_TARGET" in
25146 ./collect-ld | ./collect-ld$build_exeext) ;;
25147 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25148 ;;
25149 esac
25150
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25152 $as_echo_n "checking what linker to use... " >&6; }
25153 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25154 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25155 # Single tree build which includes ld. We want to prefer it
25156 # over whatever linker top-level may have detected, since
25157 # we'll use what we're building after installation anyway.
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25159 $as_echo "newly built ld" >&6; }
25160 in_tree_ld=yes
25161 in_tree_ld_is_elf=no
25162 if (grep 'EMUL = .*elf' ../ld/Makefile \
25163 || grep 'EMUL = .*linux' ../ld/Makefile \
25164 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25165 in_tree_ld_is_elf=yes
25166 elif test "$ld_is_gold" = yes; then
25167 in_tree_ld_is_elf=yes
25168 fi
25169 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
25170 do
25171 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25172 if test x$gcc_cv_gld_version != x; then
25173 break
25174 fi
25175 done
25176 case $gcc_cv_gld_version in
25177 VERSION=[0-9]*) ;;
25178 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25179 esac
25180 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25181 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25182 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25183 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25184 else
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25186 $as_echo "$gcc_cv_ld" >&6; }
25187 in_tree_ld=no
25188 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25189 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25190 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25191 fi
25192
25193
25194
25195
25196 # Figure out what nm we will be using.
25197 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25198 if ${gcc_cv_nm+:} false; then :
25199
25200 else
25201
25202 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25203 && test -f ../binutils/Makefile \
25204 && test x$build = x$host; then
25205 gcc_cv_nm=../binutils/nm-new$build_exeext
25206 elif test -x nm$build_exeext; then
25207 gcc_cv_nm=./nm$build_exeext
25208 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25209 gcc_cv_nm="$NM_FOR_TARGET"
25210 else
25211 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25212 set dummy $NM_FOR_TARGET; ac_word=$2
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25214 $as_echo_n "checking for $ac_word... " >&6; }
25215 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25216 $as_echo_n "(cached) " >&6
25217 else
25218 case $gcc_cv_nm in
25219 [\\/]* | ?:[\\/]*)
25220 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25221 ;;
25222 *)
25223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25224 for as_dir in $PATH
25225 do
25226 IFS=$as_save_IFS
25227 test -z "$as_dir" && as_dir=.
25228 for ac_exec_ext in '' $ac_executable_extensions; do
25229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25230 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25232 break 2
25233 fi
25234 done
25235 done
25236 IFS=$as_save_IFS
25237
25238 ;;
25239 esac
25240 fi
25241 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25242 if test -n "$gcc_cv_nm"; then
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25244 $as_echo "$gcc_cv_nm" >&6; }
25245 else
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25247 $as_echo "no" >&6; }
25248 fi
25249
25250
25251 fi
25252 fi
25253
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25255 $as_echo_n "checking what nm to use... " >&6; }
25256 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25257 # Single tree build which includes binutils.
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25259 $as_echo "newly built nm" >&6; }
25260 in_tree_nm=yes
25261 else
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25263 $as_echo "$gcc_cv_nm" >&6; }
25264 in_tree_nm=no
25265 fi
25266
25267 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25268
25269 case "$ORIGINAL_NM_FOR_TARGET" in
25270 ./nm | ./nm$build_exeext) ;;
25271 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25272 ;;
25273 esac
25274
25275
25276 # Figure out what objdump we will be using.
25277 if ${gcc_cv_objdump+:} false; then :
25278
25279 else
25280
25281 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25282 && test -f ../binutils/Makefile \
25283 && test x$build = x$host; then
25284 # Single tree build which includes binutils.
25285 gcc_cv_objdump=../binutils/objdump$build_exeext
25286 elif test -x objdump$build_exeext; then
25287 gcc_cv_objdump=./objdump$build_exeext
25288 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25289 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25290 else
25291 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25292 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25294 $as_echo_n "checking for $ac_word... " >&6; }
25295 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25296 $as_echo_n "(cached) " >&6
25297 else
25298 case $gcc_cv_objdump in
25299 [\\/]* | ?:[\\/]*)
25300 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25301 ;;
25302 *)
25303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25304 for as_dir in $PATH
25305 do
25306 IFS=$as_save_IFS
25307 test -z "$as_dir" && as_dir=.
25308 for ac_exec_ext in '' $ac_executable_extensions; do
25309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25310 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25312 break 2
25313 fi
25314 done
25315 done
25316 IFS=$as_save_IFS
25317
25318 ;;
25319 esac
25320 fi
25321 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25322 if test -n "$gcc_cv_objdump"; then
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25324 $as_echo "$gcc_cv_objdump" >&6; }
25325 else
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25327 $as_echo "no" >&6; }
25328 fi
25329
25330
25331 fi
25332 fi
25333
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25335 $as_echo_n "checking what objdump to use... " >&6; }
25336 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25337 # Single tree build which includes binutils.
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25339 $as_echo "newly built objdump" >&6; }
25340 elif test x$gcc_cv_objdump = x; then
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25342 $as_echo "not found" >&6; }
25343 else
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25345 $as_echo "$gcc_cv_objdump" >&6; }
25346 fi
25347
25348 # Figure out what readelf we will be using.
25349 if ${gcc_cv_readelf+:} false; then :
25350
25351 else
25352
25353 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25354 && test -f ../binutils/Makefile \
25355 && test x$build = x$host; then
25356 # Single tree build which includes binutils.
25357 gcc_cv_readelf=../binutils/readelf$build_exeext
25358 elif test -x readelf$build_exeext; then
25359 gcc_cv_readelf=./readelf$build_exeext
25360 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25361 gcc_cv_readelf="$READELF_FOR_TARGET"
25362 else
25363 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25364 set dummy $READELF_FOR_TARGET; ac_word=$2
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25366 $as_echo_n "checking for $ac_word... " >&6; }
25367 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25368 $as_echo_n "(cached) " >&6
25369 else
25370 case $gcc_cv_readelf in
25371 [\\/]* | ?:[\\/]*)
25372 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25373 ;;
25374 *)
25375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25376 for as_dir in $PATH
25377 do
25378 IFS=$as_save_IFS
25379 test -z "$as_dir" && as_dir=.
25380 for ac_exec_ext in '' $ac_executable_extensions; do
25381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25382 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25384 break 2
25385 fi
25386 done
25387 done
25388 IFS=$as_save_IFS
25389
25390 ;;
25391 esac
25392 fi
25393 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25394 if test -n "$gcc_cv_readelf"; then
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25396 $as_echo "$gcc_cv_readelf" >&6; }
25397 else
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25399 $as_echo "no" >&6; }
25400 fi
25401
25402
25403 fi
25404 fi
25405
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25407 $as_echo_n "checking what readelf to use... " >&6; }
25408 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25409 # Single tree build which includes binutils.
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25411 $as_echo "newly built readelf" >&6; }
25412 elif test x$gcc_cv_readelf = x; then
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25414 $as_echo "not found" >&6; }
25415 else
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25417 $as_echo "$gcc_cv_readelf" >&6; }
25418 fi
25419
25420 # Figure out what otool we will be using.
25421 if ${gcc_cv_otool+:} false; then :
25422
25423 else
25424
25425 if test -x otool$build_exeext; then
25426 gcc_cv_otool=./otool$build_exeext
25427 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25428 gcc_cv_otool="$OTOOL_FOR_TARGET"
25429 else
25430 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25431 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25433 $as_echo_n "checking for $ac_word... " >&6; }
25434 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 case $gcc_cv_otool in
25438 [\\/]* | ?:[\\/]*)
25439 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25440 ;;
25441 *)
25442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25443 for as_dir in $PATH
25444 do
25445 IFS=$as_save_IFS
25446 test -z "$as_dir" && as_dir=.
25447 for ac_exec_ext in '' $ac_executable_extensions; do
25448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25449 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25451 break 2
25452 fi
25453 done
25454 done
25455 IFS=$as_save_IFS
25456
25457 ;;
25458 esac
25459 fi
25460 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25461 if test -n "$gcc_cv_otool"; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25463 $as_echo "$gcc_cv_otool" >&6; }
25464 else
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25467 fi
25468
25469
25470 fi
25471 fi
25472
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25474 $as_echo_n "checking what otool to use... " >&6; }
25475 if test x$gcc_cv_otool = x; then
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25477 $as_echo "not found" >&6; }
25478 else
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25480 $as_echo "$gcc_cv_otool" >&6; }
25481 fi
25482
25483 # Figure out the dsymutil we will use.
25484 if ${gcc_cv_dsymutil+:} false; then :
25485
25486 else
25487
25488 if test -x "$DEFAULT_DSYMUTIL"; then
25489 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25490 elif test -x dsymutil$build_exeext; then
25491 gcc_cv_dsymutil=./dsymutil$build_exeext
25492 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25493 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25494 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25495 gcc_cv_dsymutil=$DSYMUTIL
25496 else
25497 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25498 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25500 $as_echo_n "checking for $ac_word... " >&6; }
25501 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 case $gcc_cv_dsymutil in
25505 [\\/]* | ?:[\\/]*)
25506 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25507 ;;
25508 *)
25509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25510 for as_dir in $PATH
25511 do
25512 IFS=$as_save_IFS
25513 test -z "$as_dir" && as_dir=.
25514 for ac_exec_ext in '' $ac_executable_extensions; do
25515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25516 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25518 break 2
25519 fi
25520 done
25521 done
25522 IFS=$as_save_IFS
25523
25524 ;;
25525 esac
25526 fi
25527 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25528 if test -n "$gcc_cv_dsymutil"; then
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25530 $as_echo "$gcc_cv_dsymutil" >&6; }
25531 else
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25533 $as_echo "no" >&6; }
25534 fi
25535
25536
25537 fi
25538 fi
25539
25540 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25541
25542 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25543 ./dsymutil | ./dsymutil$build_exeext) ;;
25544 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25545 ;;
25546 esac
25547
25548 # Figure out what assembler alignment features are present.
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25550 $as_echo_n "checking assembler flags... " >&6; }
25551 if ${gcc_cv_as_flags+:} false; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 case "$target" in
25555 i[34567]86-*-linux*)
25556 gcc_cv_as_flags=--32
25557 ;;
25558 x86_64-*-linux-gnux32)
25559 gcc_cv_as_flags=--x32
25560 ;;
25561 x86_64-*-linux*)
25562 gcc_cv_as_flags=--64
25563 ;;
25564 powerpc*-*-darwin*)
25565 gcc_cv_as_flags="-arch ppc"
25566 ;;
25567 *)
25568 gcc_cv_as_flags=" "
25569 ;;
25570 esac
25571 fi
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25573 $as_echo "$gcc_cv_as_flags" >&6; }
25574
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25576 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25577 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_balign_and_p2align=no
25581 if test x$gcc_cv_as != x; then
25582 $as_echo '.balign 4
25583 .p2align 2' > conftest.s
25584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25589 test $ac_status = 0; }; }
25590 then
25591 gcc_cv_as_balign_and_p2align=yes
25592 else
25593 echo "configure: failed program was" >&5
25594 cat conftest.s >&5
25595 fi
25596 rm -f conftest.o conftest.s
25597 fi
25598 fi
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25600 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25601 if test $gcc_cv_as_balign_and_p2align = yes; then
25602
25603 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25604
25605 fi
25606
25607
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25609 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25610 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25611 $as_echo_n "(cached) " >&6
25612 else
25613 gcc_cv_as_max_skip_p2align=no
25614 if test x$gcc_cv_as != x; then
25615 $as_echo '.p2align 4,,7' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_max_skip_p2align=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25627 fi
25628 rm -f conftest.o conftest.s
25629 fi
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25632 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25633 if test $gcc_cv_as_max_skip_p2align = yes; then
25634
25635 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25636
25637 fi
25638
25639
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25641 $as_echo_n "checking assembler for .literal16... " >&6; }
25642 if ${gcc_cv_as_literal16+:} false; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_literal16=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo '.literal16' > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 gcc_cv_as_literal16=yes
25656 else
25657 echo "configure: failed program was" >&5
25658 cat conftest.s >&5
25659 fi
25660 rm -f conftest.o conftest.s
25661 fi
25662 fi
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25664 $as_echo "$gcc_cv_as_literal16" >&6; }
25665 if test $gcc_cv_as_literal16 = yes; then
25666
25667 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25668
25669 fi
25670
25671
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25673 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25674 if ${gcc_cv_as_subsection_m1+:} false; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_as_subsection_m1=no
25678 if test x$gcc_cv_as != x; then
25679 $as_echo 'conftest_label1: .word 0
25680 .subsection -1
25681 conftest_label2: .word 0
25682 .previous' > conftest.s
25683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25689 then
25690 if test x$gcc_cv_nm != x; then
25691 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25692 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25693 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25694 then :
25695 else gcc_cv_as_subsection_m1=yes
25696 fi
25697 rm -f conftest.nm1 conftest.nm2
25698 fi
25699 else
25700 echo "configure: failed program was" >&5
25701 cat conftest.s >&5
25702 fi
25703 rm -f conftest.o conftest.s
25704 fi
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25707 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25708 if test $gcc_cv_as_subsection_m1 = yes; then
25709
25710 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25711
25712 fi
25713
25714
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25716 $as_echo_n "checking assembler for .weak... " >&6; }
25717 if ${gcc_cv_as_weak+:} false; then :
25718 $as_echo_n "(cached) " >&6
25719 else
25720 gcc_cv_as_weak=no
25721 if test x$gcc_cv_as != x; then
25722 $as_echo ' .weak foobar' > conftest.s
25723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25725 (eval $ac_try) 2>&5
25726 ac_status=$?
25727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25728 test $ac_status = 0; }; }
25729 then
25730 gcc_cv_as_weak=yes
25731 else
25732 echo "configure: failed program was" >&5
25733 cat conftest.s >&5
25734 fi
25735 rm -f conftest.o conftest.s
25736 fi
25737 fi
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25739 $as_echo "$gcc_cv_as_weak" >&6; }
25740 if test $gcc_cv_as_weak = yes; then
25741
25742 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25743
25744 fi
25745
25746
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25748 $as_echo_n "checking assembler for .weakref... " >&6; }
25749 if ${gcc_cv_as_weakref+:} false; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25752 gcc_cv_as_weakref=no
25753 if test x$gcc_cv_as != x; then
25754 $as_echo ' .weakref foobar, barfnot' > conftest.s
25755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25761 then
25762 gcc_cv_as_weakref=yes
25763 else
25764 echo "configure: failed program was" >&5
25765 cat conftest.s >&5
25766 fi
25767 rm -f conftest.o conftest.s
25768 fi
25769 fi
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25771 $as_echo "$gcc_cv_as_weakref" >&6; }
25772 if test $gcc_cv_as_weakref = yes; then
25773
25774 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25775
25776 fi
25777
25778
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25780 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25781 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_nsubspa_comdat=no
25785 if test x$gcc_cv_as != x; then
25786 $as_echo ' .SPACE $TEXT$
25787 .NSUBSPA $CODE$,COMDAT' > conftest.s
25788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 then
25795 gcc_cv_as_nsubspa_comdat=yes
25796 else
25797 echo "configure: failed program was" >&5
25798 cat conftest.s >&5
25799 fi
25800 rm -f conftest.o conftest.s
25801 fi
25802 fi
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25804 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25805 if test $gcc_cv_as_nsubspa_comdat = yes; then
25806
25807 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25808
25809 fi
25810
25811
25812 # .hidden needs to be supported in both the assembler and the linker,
25813 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25814 # This is irritatingly difficult to feature test for; we have to check the
25815 # date string after the version number. If we've got an in-tree
25816 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25817 # to be safe.
25818 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25819 case "${target}" in
25820 *-*-aix*)
25821 conftest_s=' .globl foobar,hidden'
25822 ;;
25823 *)
25824 conftest_s=' .hidden foobar
25825 foobar:'
25826 ;;
25827 esac
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25829 $as_echo_n "checking assembler for .hidden... " >&6; }
25830 if ${gcc_cv_as_hidden+:} false; then :
25831 $as_echo_n "(cached) " >&6
25832 else
25833 gcc_cv_as_hidden=no
25834 if test x$gcc_cv_as != x; then
25835 $as_echo "$conftest_s" > conftest.s
25836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25842 then
25843 gcc_cv_as_hidden=yes
25844 else
25845 echo "configure: failed program was" >&5
25846 cat conftest.s >&5
25847 fi
25848 rm -f conftest.o conftest.s
25849 fi
25850 fi
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25852 $as_echo "$gcc_cv_as_hidden" >&6; }
25853
25854
25855 case "${target}" in
25856 *-*-darwin*)
25857 # Darwin as has some visibility support, though with a different syntax.
25858 gcc_cv_as_hidden=yes
25859 ;;
25860 esac
25861
25862 # gnu_indirect_function type is an extension proposed at
25863 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25864 # selection of function implementation
25865 # Check whether --enable-gnu-indirect-function was given.
25866 if test "${enable_gnu_indirect_function+set}" = set; then :
25867 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
25868 yes | no) ;;
25869 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
25870 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25871 esac
25872 else
25873 enable_gnu_indirect_function="$default_gnu_indirect_function"
25874 fi
25875
25876
25877 case "${target}" in
25878 riscv*-*-linux*)
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
25880 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
25881 cat > conftest.s <<EOF
25882 .text
25883 .type foo_resolver, @function
25884 foo_resolver:
25885 ret
25886 .size foo_resolver, .-foo_resolver
25887
25888 .globl foo
25889 .type foo, %gnu_indirect_function
25890 .set foo, foo_resolver
25891
25892 .globl bar
25893 .type bar, @function
25894 bar:
25895 call foo
25896 ret
25897 .size bar, .-bar
25898 EOF
25899 if test x$gcc_cv_as != x \
25900 && test x$gcc_cv_ld != x \
25901 && test x$gcc_cv_readelf != x \
25902 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
25903 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
25904 && $gcc_cv_readelf --relocs --wide conftest \
25905 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
25906 enable_gnu_indirect_function=yes
25907 fi
25908 rm -f conftest conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
25910 $as_echo "$enable_gnu_indirect_function" >&6; }
25911 ;;
25912 esac
25913
25914 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
25915
25916 cat >>confdefs.h <<_ACEOF
25917 #define HAVE_GNU_INDIRECT_FUNCTION $gif
25918 _ACEOF
25919
25920
25921
25922 if test $in_tree_ld != yes ; then
25923 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25924 if echo "$ld_ver" | grep GNU > /dev/null; then
25925 if test x"$ld_is_gold" = xyes; then
25926 # GNU gold --version looks like this:
25927 #
25928 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
25929 #
25930 # We extract the binutils version which is more familiar and specific
25931 # than the gold version.
25932 ld_vers=`echo $ld_ver | sed -n \
25933 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25934 else
25935 # GNU ld --version looks like this:
25936 #
25937 # GNU ld (GNU Binutils) 2.21.51.20110225
25938 ld_vers=`echo $ld_ver | sed -n \
25939 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25940 fi
25941 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'`
25942 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25943 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25944 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25945 else
25946 case "${target}" in
25947 *-*-solaris2*)
25948 # Solaris 2 ld -V output looks like this for a regular version:
25949 #
25950 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
25951 #
25952 # but test versions add stuff at the end:
25953 #
25954 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
25955 #
25956 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
25957 # numbers can be used in ld.so.1 feature checks even if a different
25958 # linker is configured.
25959 ld_ver=`$gcc_cv_ld -V 2>&1`
25960 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
25961 ld_vers=`echo $ld_ver | sed -n \
25962 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
25963 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25964 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25965 fi
25966 ;;
25967 esac
25968 fi
25969 fi
25970
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
25972 $as_echo_n "checking linker for .hidden support... " >&6; }
25973 if ${gcc_cv_ld_hidden+:} false; then :
25974 $as_echo_n "(cached) " >&6
25975 else
25976 if test $in_tree_ld = yes ; then
25977 gcc_cv_ld_hidden=no
25978 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 \
25979 && test $in_tree_ld_is_elf = yes; then
25980 gcc_cv_ld_hidden=yes
25981 fi
25982 else
25983 gcc_cv_ld_hidden=yes
25984 if test x"$ld_is_gold" = xyes; then
25985 :
25986 elif test x"$ld_is_mold" = xyes; then
25987 :
25988 elif echo "$ld_ver" | grep GNU > /dev/null; then
25989 if test 0"$ld_date" -lt 20020404; then
25990 if test -n "$ld_date"; then
25991 # If there was date string, but was earlier than 2002-04-04, fail
25992 gcc_cv_ld_hidden=no
25993 elif test -z "$ld_vers"; then
25994 # If there was no date string nor ld version number, something is wrong
25995 gcc_cv_ld_hidden=no
25996 else
25997 test -z "$ld_vers_patch" && ld_vers_patch=0
25998 if test "$ld_vers_major" -lt 2; then
25999 gcc_cv_ld_hidden=no
26000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26001 gcc_cv_ld_hidden="no"
26002 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26003 gcc_cv_ld_hidden=no
26004 fi
26005 fi
26006 fi
26007 else
26008 case "${target}" in
26009 *-*-aix[789]*)
26010 gcc_cv_ld_hidden=yes
26011 ;;
26012 *-*-darwin*)
26013 # Darwin ld has some visibility support.
26014 gcc_cv_ld_hidden=yes
26015 ;;
26016 hppa64*-*-hpux* | ia64*-*-hpux*)
26017 gcc_cv_ld_hidden=yes
26018 ;;
26019 *-*-solaris2*)
26020 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26021 # .symbolic was only added in Solaris 9 12/02.
26022 gcc_cv_ld_hidden=yes
26023 ;;
26024 *)
26025 gcc_cv_ld_hidden=no
26026 ;;
26027 esac
26028 fi
26029 fi
26030 fi
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26032 $as_echo "$gcc_cv_ld_hidden" >&6; }
26033 libgcc_visibility=no
26034
26035
26036 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26037 libgcc_visibility=yes
26038
26039 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26040
26041 fi
26042
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26044 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26045 gcc_cv_ld_ro_rw_mix=unknown
26046 if test $in_tree_ld = yes ; then
26047 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 \
26048 && test $in_tree_ld_is_elf = yes; then
26049 gcc_cv_ld_ro_rw_mix=read-write
26050 fi
26051 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26052 echo '.section myfoosect, "a"' > conftest1.s
26053 echo '.section myfoosect, "aw"' > conftest2.s
26054 echo '.byte 1' >> conftest2.s
26055 echo '.section myfoosect, "a"' > conftest3.s
26056 echo '.byte 0' >> conftest3.s
26057 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26058 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26059 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26060 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26061 conftest2.o conftest3.o > /dev/null 2>&1 \
26062 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26063 conftest2.o conftest3.o > /dev/null 2>&1; then
26064 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26065 | sed -e '/myfoosect/!d' -e N`
26066 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26067 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26068 gcc_cv_ld_ro_rw_mix=read-only
26069 else
26070 gcc_cv_ld_ro_rw_mix=read-write
26071 fi
26072 fi
26073 fi
26074 fi
26075 rm -f conftest.* conftest[123].*
26076 fi
26077 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26078
26079 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26080
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26083 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26084
26085 # Check whether --enable-initfini-array was given.
26086 if test "${enable_initfini_array+set}" = set; then :
26087 enableval=$enable_initfini_array;
26088 else
26089
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26091 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26092 if ${gcc_cv_initfini_array+:} false; then :
26093 $as_echo_n "(cached) " >&6
26094 else
26095 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26096 case "${target}" in
26097 ia64-*)
26098 if test "$cross_compiling" = yes; then :
26099 gcc_cv_initfini_array=no
26100 else
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26103
26104 #ifndef __ELF__
26105 #error Not an ELF OS
26106 #endif
26107 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26108 if it can be used. */
26109 static int x = -1;
26110 int main (void) { return x; }
26111 int foo (void) { x = 0; }
26112 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26113
26114 _ACEOF
26115 if ac_fn_cxx_try_run "$LINENO"; then :
26116 gcc_cv_initfini_array=yes
26117 else
26118 gcc_cv_initfini_array=no
26119 fi
26120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26121 conftest.$ac_objext conftest.beam conftest.$ac_ext
26122 fi
26123 ;;
26124 *)
26125 gcc_cv_initfini_array=no
26126 if test $in_tree_ld = yes ; then
26127 if test "$gcc_cv_gld_major_version" -eq 2 \
26128 -a "$gcc_cv_gld_minor_version" -ge 22 \
26129 -o "$gcc_cv_gld_major_version" -gt 2 \
26130 && test $in_tree_ld_is_elf = yes; then
26131 gcc_cv_initfini_array=yes
26132 fi
26133 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26134 case $target:$gas in
26135 *:yes)
26136 sh_flags='"a"'
26137 sh_type='%progbits'
26138 ;;
26139 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26140 sh_flags='"a"'
26141 sh_type='@progbits'
26142 ;;
26143 sparc*-*-solaris2*:no)
26144 sh_flags='#alloc'
26145 sh_type='#progbits'
26146 sh_quote='"'
26147 ;;
26148 esac
26149 case "$target:$gnu_ld" in
26150 *:yes)
26151 cat > conftest.s <<EOF
26152 .section .dtors,$sh_flags,$sh_type
26153 .balign 4
26154 .byte 'A', 'A', 'A', 'A'
26155 .section .ctors,$sh_flags,$sh_type
26156 .balign 4
26157 .byte 'B', 'B', 'B', 'B'
26158 .section .fini_array.65530,$sh_flags,$sh_type
26159 .balign 4
26160 .byte 'C', 'C', 'C', 'C'
26161 .section .init_array.65530,$sh_flags,$sh_type
26162 .balign 4
26163 .byte 'D', 'D', 'D', 'D'
26164 .section .dtors.64528,$sh_flags,$sh_type
26165 .balign 4
26166 .byte 'E', 'E', 'E', 'E'
26167 .section .ctors.64528,$sh_flags,$sh_type
26168 .balign 4
26169 .byte 'F', 'F', 'F', 'F'
26170 .section .fini_array.01005,$sh_flags,$sh_type
26171 .balign 4
26172 .byte 'G', 'G', 'G', 'G'
26173 .section .init_array.01005,$sh_flags,$sh_type
26174 .balign 4
26175 .byte 'H', 'H', 'H', 'H'
26176 .text
26177 .globl _start
26178 _start:
26179 EOF
26180 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26181 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26182 && $gcc_cv_objdump -s -j .init_array conftest \
26183 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26184 && $gcc_cv_objdump -s -j .fini_array conftest \
26185 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26186 gcc_cv_initfini_array=yes
26187 fi
26188 ;;
26189 *-*-solaris2*:no)
26190 # When Solaris ld added constructor priority support, it was
26191 # decided to only handle .init_array.N/.fini_array.N since
26192 # there was no need for backwards compatibility with
26193 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26194 # sections with correct execution order resp. to
26195 # .init_array/.fini_array, while gld merges them into
26196 # .init_array/.fini_array.
26197 cat > conftest.s <<EOF
26198 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26199 .align 4
26200 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26201 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26202 .align 4
26203 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26204 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26205 .align 4
26206 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26207 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26208 .align 4
26209 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26210 .text
26211 .globl _start
26212 _start:
26213 EOF
26214 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26215 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26216 && $gcc_cv_objdump -s -j .init_array conftest \
26217 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26218 && $gcc_cv_objdump -s -j .fini_array conftest \
26219 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26220 gcc_cv_initfini_array=yes
26221 fi
26222 ;;
26223 esac
26224 rm -f conftest conftest.*
26225 fi
26226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h. */
26228
26229 #ifndef __ELF__
26230 # error Not an ELF OS
26231 #endif
26232 #include <stdlib.h>
26233 #if defined __GLIBC_PREREQ
26234 # if __GLIBC_PREREQ (2, 4)
26235 # else
26236 # error GLIBC 2.4 required
26237 # endif
26238 #else
26239 # if defined __sun__ && defined __svr4__
26240 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26241 # else
26242 # error The C library not known to support .init_array/.fini_array
26243 # endif
26244 #endif
26245
26246 _ACEOF
26247 if ac_fn_cxx_try_cpp "$LINENO"; then :
26248
26249 else
26250 gcc_cv_initfini_array=no
26251 fi
26252 rm -f conftest.err conftest.i conftest.$ac_ext;;
26253 esac
26254 else
26255 case "${target}" in
26256 aarch64*-linux-gnu*)
26257 # AArch64 postdates glibc support for .init_array/.fini_array,
26258 # so we don't need the preprocessor test above.
26259 gcc_cv_initfini_array=yes
26260 ;;
26261
26262 *)
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26264 $as_echo_n "checking cross compile... guessing... " >&6; }
26265 gcc_cv_initfini_array=no
26266 ;;
26267 esac
26268 fi
26269 fi
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26271 $as_echo "$gcc_cv_initfini_array" >&6; }
26272 enable_initfini_array=$gcc_cv_initfini_array
26273
26274 fi
26275
26276
26277 cat >>confdefs.h <<_ACEOF
26278 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26279 _ACEOF
26280
26281
26282
26283 # Some assemblers (GNU as for LoongArch) generates relocations for
26284 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26285 # probing leb128 support then.
26286 case $target in
26287 loongarch*-*-*)
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26289 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26290 if ${gcc_cv_as_mno_relax+:} false; then :
26291 $as_echo_n "(cached) " >&6
26292 else
26293 gcc_cv_as_mno_relax=no
26294 if test x$gcc_cv_as != x; then
26295 $as_echo '.text' > conftest.s
26296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26298 (eval $ac_try) 2>&5
26299 ac_status=$?
26300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26301 test $ac_status = 0; }; }
26302 then
26303 gcc_cv_as_mno_relax=yes
26304 else
26305 echo "configure: failed program was" >&5
26306 cat conftest.s >&5
26307 fi
26308 rm -f conftest.o conftest.s
26309 fi
26310 fi
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26312 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26313 if test $gcc_cv_as_mno_relax = yes; then
26314 check_leb128_asflags=-mno-relax
26315 fi
26316
26317 ;;
26318 *)
26319 check_leb128_asflags=
26320 ;;
26321 esac
26322
26323 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26324 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26325 # these directives, even when they appear to accept them.
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26327 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26328 if ${gcc_cv_as_leb128+:} false; then :
26329 $as_echo_n "(cached) " >&6
26330 else
26331 gcc_cv_as_leb128=no
26332 if test x$gcc_cv_as != x; then
26333 $as_echo ' .data
26334 .uleb128 L2 - L1
26335 L1:
26336 .uleb128 1280
26337 .sleb128 -1010
26338 L2:
26339 .uleb128 0x8000000000000000
26340 ' > conftest.s
26341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; }
26347 then
26348
26349 if test "x$gcc_cv_objdump" != x; then
26350 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26351 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26352 gcc_cv_as_leb128=yes
26353 fi
26354 elif test "x$gcc_cv_otool" != x; then
26355 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26356 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26357 gcc_cv_as_leb128=yes
26358 fi
26359 else
26360 # play safe, assume the assembler is broken.
26361 :
26362 fi
26363
26364 else
26365 echo "configure: failed program was" >&5
26366 cat conftest.s >&5
26367 fi
26368 rm -f conftest.o conftest.s
26369 fi
26370 fi
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26372 $as_echo "$gcc_cv_as_leb128" >&6; }
26373 if test $gcc_cv_as_leb128 = yes; then
26374
26375 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26376
26377 fi
26378 if test $gcc_cv_as_leb128 != yes; then
26379
26380 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26381
26382 fi
26383
26384 # Determine if an .eh_frame section is read-only.
26385 gcc_fn_eh_frame_ro () {
26386 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26387 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26388 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26389 }
26390
26391 # Check if we have assembler support for unwind directives.
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26393 $as_echo_n "checking assembler for cfi directives... " >&6; }
26394 if ${gcc_cv_as_cfi_directive+:} false; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 gcc_cv_as_cfi_directive=no
26398 if test x$gcc_cv_as != x; then
26399 $as_echo ' .text
26400 .cfi_startproc
26401 .cfi_offset 0, 0
26402 .cfi_same_value 1
26403 .cfi_def_cfa 1, 2
26404 .cfi_escape 1, 2, 3, 4, 5
26405 .cfi_endproc' > conftest.s
26406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26408 (eval $ac_try) 2>&5
26409 ac_status=$?
26410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26411 test $ac_status = 0; }; }
26412 then
26413 case "$target" in
26414 *-*-solaris*)
26415 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26416 # read-only and read-write sections, we need to make sure that the
26417 # assembler used emits read-write .eh_frame sections.
26418 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26419 gcc_cv_as_cfi_directive=yes
26420 elif test "x$gcc_cv_objdump" = x; then
26421 # No objdump, err on the side of caution.
26422 gcc_cv_as_cfi_directive=no
26423 else
26424 if test x$gas = xyes; then
26425 as_32_opt="--32"
26426 as_64_opt="--64"
26427 else
26428 as_32_opt="-m32"
26429 as_64_opt="-m64"
26430 fi
26431 case "$target" in
26432 sparc*-*-solaris2.*)
26433 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26434 if gcc_fn_eh_frame_ro $as_32_opt \
26435 || gcc_fn_eh_frame_ro $as_64_opt; then
26436 gcc_cv_as_cfi_directive=no
26437 else
26438 gcc_cv_as_cfi_directive=yes
26439 fi
26440 ;;
26441 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26442 # On Solaris/x86, make sure that GCC and assembler agree on using
26443 # read-only .eh_frame sections for 64-bit.
26444 if gcc_fn_eh_frame_ro $as_32_opt; then
26445 gcc_cv_as_cfi_directive=no
26446 elif gcc_fn_eh_frame_ro $as_64_opt; then
26447 gcc_cv_as_cfi_directive=yes
26448 else
26449 gcc_cv_as_cfi_directive=no
26450 fi
26451 ;;
26452 esac
26453 fi
26454 ;;
26455 *-*-*)
26456 gcc_cv_as_cfi_directive=yes
26457 ;;
26458 esac
26459 else
26460 echo "configure: failed program was" >&5
26461 cat conftest.s >&5
26462 fi
26463 rm -f conftest.o conftest.s
26464 fi
26465 fi
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26467 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26468
26469
26470 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26472 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26473 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_as_cfi_advance_working=no
26477 if test x$gcc_cv_as != x; then
26478 $as_echo ' .text
26479 .cfi_startproc
26480 .cfi_adjust_cfa_offset 64
26481 .skip 75040, 0
26482 .cfi_adjust_cfa_offset 128
26483 .cfi_endproc' > conftest.s
26484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489 test $ac_status = 0; }; }
26490 then
26491
26492 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26493 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26494 gcc_cv_as_cfi_advance_working=yes
26495 fi
26496
26497 else
26498 echo "configure: failed program was" >&5
26499 cat conftest.s >&5
26500 fi
26501 rm -f conftest.o conftest.s
26502 fi
26503 fi
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26505 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26506
26507
26508 else
26509 # no objdump, err on the side of caution
26510 gcc_cv_as_cfi_advance_working=no
26511 fi
26512
26513
26514 cat >>confdefs.h <<_ACEOF
26515 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26516 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26517 _ACEOF
26518
26519
26520
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26522 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26523 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26524 $as_echo_n "(cached) " >&6
26525 else
26526 gcc_cv_as_cfi_personality_directive=no
26527 if test x$gcc_cv_as != x; then
26528 $as_echo ' .text
26529 .cfi_startproc
26530 .cfi_personality 0, symbol
26531 .cfi_endproc' > conftest.s
26532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26538 then
26539 gcc_cv_as_cfi_personality_directive=yes
26540 else
26541 echo "configure: failed program was" >&5
26542 cat conftest.s >&5
26543 fi
26544 rm -f conftest.o conftest.s
26545 fi
26546 fi
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26548 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26549
26550
26551
26552 cat >>confdefs.h <<_ACEOF
26553 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26554 _ACEOF
26555
26556
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26558 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26559 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562 gcc_cv_as_cfi_sections_directive=no
26563 if test x$gcc_cv_as != x; then
26564 $as_echo ' .text
26565 .cfi_sections .debug_frame, .eh_frame
26566 .cfi_startproc
26567 .cfi_endproc' > conftest.s
26568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573 test $ac_status = 0; }; }
26574 then
26575 case $target_os in
26576 win32 | pe | cygwin* | mingw32*)
26577 # Need to check that we generated the correct relocation for the
26578 # .debug_frame section. This was fixed for binutils 2.21.
26579 gcc_cv_as_cfi_sections_directive=no
26580 if test "x$gcc_cv_objdump" != x; then
26581 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26582 grep -i secrel > /dev/null; then
26583 gcc_cv_as_cfi_sections_directive=yes
26584 fi
26585 fi
26586 ;;
26587 *)
26588 gcc_cv_as_cfi_sections_directive=yes
26589 ;;
26590 esac
26591 else
26592 echo "configure: failed program was" >&5
26593 cat conftest.s >&5
26594 fi
26595 rm -f conftest.o conftest.s
26596 fi
26597 fi
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26599 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26600
26601
26602
26603
26604 cat >>confdefs.h <<_ACEOF
26605 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26606 _ACEOF
26607
26608
26609 # GAS versions up to and including 2.11.0 may mis-optimize
26610 # .eh_frame data.
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26612 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26613 if ${gcc_cv_as_eh_frame+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615 else
26616 gcc_cv_as_eh_frame=no
26617 if test x$gcc_cv_as != x; then
26618 $as_echo ' .text
26619 .LFB1:
26620 .4byte 0
26621 .L1:
26622 .4byte 0
26623 .LFE1:
26624 .section .eh_frame,"aw",@progbits
26625 __FRAME_BEGIN__:
26626 .4byte .LECIE1-.LSCIE1
26627 .LSCIE1:
26628 .4byte 0x0
26629 .byte 0x1
26630 .ascii "z\0"
26631 .byte 0x1
26632 .byte 0x78
26633 .byte 0x1a
26634 .byte 0x0
26635 .byte 0x4
26636 .4byte 1
26637 .p2align 1
26638 .LECIE1:
26639 .LSFDE1:
26640 .4byte .LEFDE1-.LASFDE1
26641 .LASFDE1:
26642 .4byte .LASFDE1-__FRAME_BEGIN__
26643 .4byte .LFB1
26644 .4byte .LFE1-.LFB1
26645 .byte 0x4
26646 .4byte .LFE1-.LFB1
26647 .byte 0x4
26648 .4byte .L1-.LFB1
26649 .LEFDE1:' > conftest.s
26650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26656 then
26657 cat > conftest.lit <<EOF
26658 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26659 0010 01000000 12000000 18000000 00000000 ................
26660 0020 08000000 04080000 0044 .........D
26661 EOF
26662 cat > conftest.big <<EOF
26663 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26664 0010 00000001 00000012 00000018 00000000 ................
26665 0020 00000008 04000000 0844 .........D
26666 EOF
26667 # If the assembler didn't choke, and we can objdump,
26668 # and we got the correct data, then succeed.
26669 # The text in the here-document typically retains its unix-style line
26670 # endings, while the output of objdump will use host line endings.
26671 # Therefore, use diff -b for the comparisons.
26672 if test x$gcc_cv_objdump != x \
26673 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26674 | tail -3 > conftest.got \
26675 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26676 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26677 then
26678 gcc_cv_as_eh_frame=yes
26679 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }; then
26685 gcc_cv_as_eh_frame=buggy
26686 else
26687 # Uh oh, what do we do now?
26688 gcc_cv_as_eh_frame=no
26689 fi
26690 else
26691 echo "configure: failed program was" >&5
26692 cat conftest.s >&5
26693 fi
26694 rm -f conftest.o conftest.s
26695 fi
26696 fi
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26698 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26699
26700
26701
26702 if test $gcc_cv_as_eh_frame = buggy; then
26703
26704 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26705
26706 fi
26707
26708 # Test if the assembler supports the section flag 'e' or #exclude for
26709 # specifying an excluded section.
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26711 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26712 if ${gcc_cv_as_section_exclude_e+:} false; then :
26713 $as_echo_n "(cached) " >&6
26714 else
26715 gcc_cv_as_section_exclude_e=no
26716 if test x$gcc_cv_as != x; then
26717 $as_echo '.section foo1,"e"
26718 .byte 0,0,0,0' > conftest.s
26719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724 test $ac_status = 0; }; }
26725 then
26726 gcc_cv_as_section_exclude_e=yes
26727 else
26728 echo "configure: failed program was" >&5
26729 cat conftest.s >&5
26730 fi
26731 rm -f conftest.o conftest.s
26732 fi
26733 fi
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26735 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26736
26737
26738 if test $gcc_cv_as_section_exclude_e = no; then
26739 case "${target}" in
26740 # Solaris as uses #exclude instead.
26741 *-*-solaris2*)
26742 case "${target}" in
26743 sparc*-*-solaris2*)
26744 conftest_s='.section "foo1", #exclude'
26745 ;;
26746 i?86-*-solaris2* | x86_64-*-solaris2*)
26747 conftest_s='.section foo1, #exclude'
26748 ;;
26749 esac
26750 ;;
26751 esac
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26753 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26754 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26755 $as_echo_n "(cached) " >&6
26756 else
26757 gcc_cv_as_section_exclude_hash=no
26758 if test x$gcc_cv_as != x; then
26759 $as_echo "$conftest_s
26760 .byte 0,0,0,0" > conftest.s
26761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26766 test $ac_status = 0; }; }
26767 then
26768 gcc_cv_as_section_exclude_hash=yes
26769 else
26770 echo "configure: failed program was" >&5
26771 cat conftest.s >&5
26772 fi
26773 rm -f conftest.o conftest.s
26774 fi
26775 fi
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26777 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26778
26779
26780 fi
26781
26782 cat >>confdefs.h <<_ACEOF
26783 #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`
26784 _ACEOF
26785
26786
26787 # Test if the assembler supports the section flag 'R' for specifying
26788 # section with SHF_GNU_RETAIN.
26789 case "${target}" in
26790 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26791 # assembler supports the section flag 'R', it doesn't mean that
26792 # Solairs ld supports it.
26793 *-*-solaris2*)
26794 gcc_cv_as_shf_gnu_retain=no
26795 ;;
26796 *)
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26798 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26799 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26800 $as_echo_n "(cached) " >&6
26801 else
26802 gcc_cv_as_shf_gnu_retain=no
26803 if test x$gcc_cv_as != x; then
26804 $as_echo '.section .foo,"awR",%progbits
26805 .byte 0' > conftest.s
26806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26811 test $ac_status = 0; }; }
26812 then
26813 gcc_cv_as_shf_gnu_retain=yes
26814 else
26815 echo "configure: failed program was" >&5
26816 cat conftest.s >&5
26817 fi
26818 rm -f conftest.o conftest.s
26819 fi
26820 fi
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26822 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26823
26824
26825 ;;
26826 esac
26827
26828 cat >>confdefs.h <<_ACEOF
26829 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26830 _ACEOF
26831
26832
26833 # Test if the assembler supports the section flag 'o' for specifying
26834 # section with link-order.
26835 case "${target}" in
26836 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26837 # assembler supports the section flag 'o', it doesn't mean that
26838 # Solairs ld supports it.
26839 *-*-solaris2*)
26840 gcc_cv_as_section_link_order=no
26841 ;;
26842 *)
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26844 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26845 if ${gcc_cv_as_section_link_order+:} false; then :
26846 $as_echo_n "(cached) " >&6
26847 else
26848 gcc_cv_as_section_link_order=no
26849 if test x$gcc_cv_as != x; then
26850 $as_echo '.section .foo,"a"
26851 .byte 0
26852 .section __patchable_function_entries,"awo",%progbits,.foo
26853 .byte 0' > conftest.s
26854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26860 then
26861 gcc_cv_as_section_link_order=yes
26862 else
26863 echo "configure: failed program was" >&5
26864 cat conftest.s >&5
26865 fi
26866 rm -f conftest.o conftest.s
26867 fi
26868 fi
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
26870 $as_echo "$gcc_cv_as_section_link_order" >&6; }
26871
26872
26873 ;;
26874 esac
26875
26876 cat >>confdefs.h <<_ACEOF
26877 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
26878 _ACEOF
26879
26880
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26882 $as_echo_n "checking assembler for section merging support... " >&6; }
26883 if ${gcc_cv_as_shf_merge+:} false; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_shf_merge=no
26887 if test x$gcc_cv_as != x; then
26888 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 gcc_cv_as_shf_merge=yes
26897 else
26898 echo "configure: failed program was" >&5
26899 cat conftest.s >&5
26900 fi
26901 rm -f conftest.o conftest.s
26902 fi
26903 fi
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26905 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26906
26907
26908 if test $gcc_cv_as_shf_merge = no; then
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26910 $as_echo_n "checking assembler for section merging support... " >&6; }
26911 if ${gcc_cv_as_shf_merge+:} false; then :
26912 $as_echo_n "(cached) " >&6
26913 else
26914 gcc_cv_as_shf_merge=no
26915 if test x$gcc_cv_as != x; then
26916 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
26917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26919 (eval $ac_try) 2>&5
26920 ac_status=$?
26921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26922 test $ac_status = 0; }; }
26923 then
26924 gcc_cv_as_shf_merge=yes
26925 else
26926 echo "configure: failed program was" >&5
26927 cat conftest.s >&5
26928 fi
26929 rm -f conftest.o conftest.s
26930 fi
26931 fi
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26933 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26934
26935
26936 fi
26937
26938 cat >>confdefs.h <<_ACEOF
26939 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
26940 _ACEOF
26941
26942
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
26944 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
26945 if ${gcc_cv_as_comdat_group+:} false; then :
26946 $as_echo_n "(cached) " >&6
26947 else
26948 gcc_cv_as_comdat_group=no
26949 if test x$gcc_cv_as != x; then
26950 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
26951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26957 then
26958 gcc_cv_as_comdat_group=yes
26959 else
26960 echo "configure: failed program was" >&5
26961 cat conftest.s >&5
26962 fi
26963 rm -f conftest.o conftest.s
26964 fi
26965 fi
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
26967 $as_echo "$gcc_cv_as_comdat_group" >&6; }
26968
26969
26970 if test $gcc_cv_as_comdat_group = yes; then
26971 gcc_cv_as_comdat_group_percent=no
26972 gcc_cv_as_comdat_group_group=no
26973 else
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
26975 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
26976 if ${gcc_cv_as_comdat_group_percent+:} false; then :
26977 $as_echo_n "(cached) " >&6
26978 else
26979 gcc_cv_as_comdat_group_percent=no
26980 if test x$gcc_cv_as != x; then
26981 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
26982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; }
26988 then
26989 gcc_cv_as_comdat_group_percent=yes
26990 else
26991 echo "configure: failed program was" >&5
26992 cat conftest.s >&5
26993 fi
26994 rm -f conftest.o conftest.s
26995 fi
26996 fi
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
26998 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
26999
27000
27001 if test $gcc_cv_as_comdat_group_percent = yes; then
27002 gcc_cv_as_comdat_group_group=no
27003 else
27004 case "${target}" in
27005 # Sun as uses a completely different syntax.
27006 *-*-solaris2*)
27007 case "${target}" in
27008 sparc*-*-solaris2*)
27009 conftest_s='
27010 .group foo,".text%foo",#comdat
27011 .section ".text%foo", #alloc,#execinstr,#progbits
27012 .globl foo
27013 foo:
27014 '
27015 ;;
27016 i?86-*-solaris2* | x86_64-*-solaris2*)
27017 conftest_s='
27018 .group foo,.text%foo,#comdat
27019 .section .text%foo, "ax", @progbits
27020 .globl foo
27021 foo:
27022 '
27023 ;;
27024 esac
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27026 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27027 if ${gcc_cv_as_comdat_group_group+:} false; then :
27028 $as_echo_n "(cached) " >&6
27029 else
27030 gcc_cv_as_comdat_group_group=no
27031 if test x$gcc_cv_as != x; then
27032 $as_echo "$conftest_s" > conftest.s
27033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27038 test $ac_status = 0; }; }
27039 then
27040 gcc_cv_as_comdat_group_group=yes
27041 else
27042 echo "configure: failed program was" >&5
27043 cat conftest.s >&5
27044 fi
27045 rm -f conftest.o conftest.s
27046 fi
27047 fi
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27049 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27050
27051
27052 ;;
27053 esac
27054 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27055 gcc_cv_as_comdat_group_group=no
27056 fi
27057 fi
27058 fi
27059 if test x"$ld_is_gold" = xyes; then
27060 comdat_group=yes
27061 elif test x"$ld_is_mold" = xyes; then
27062 comdat_group=yes
27063 elif test $in_tree_ld = yes ; then
27064 comdat_group=no
27065 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 \
27066 && test $in_tree_ld_is_elf = yes; then
27067 comdat_group=yes
27068 fi
27069 elif echo "$ld_ver" | grep GNU > /dev/null; then
27070 comdat_group=yes
27071 if test 0"$ld_date" -lt 20050308; then
27072 if test -n "$ld_date"; then
27073 # If there was date string, but was earlier than 2005-03-08, fail
27074 comdat_group=no
27075 elif test "$ld_vers_major" -lt 2; then
27076 comdat_group=no
27077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27078 comdat_group=no
27079 fi
27080 fi
27081 else
27082 case "${target}" in
27083 *-*-solaris2.1[1-9]*)
27084 comdat_group=no
27085 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27086 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27087 # version 1.688.
27088 #
27089 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27090 # least ld version 1.2267.
27091 if test "$ld_vers_major" -gt 1; then
27092 comdat_group=yes
27093 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27094 comdat_group=yes
27095 elif test "$ld_vers_minor" -ge 2267; then
27096 comdat_group=yes
27097 fi
27098 ;;
27099 *)
27100 # Assume linkers other than GNU ld don't support COMDAT group.
27101 comdat_group=no
27102 ;;
27103 esac
27104 fi
27105 # Allow overriding the automatic COMDAT group tests above.
27106 # Check whether --enable-comdat was given.
27107 if test "${enable_comdat+set}" = set; then :
27108 enableval=$enable_comdat; comdat_group="$enable_comdat"
27109 fi
27110
27111 if test $comdat_group = no; then
27112 gcc_cv_as_comdat_group=no
27113 gcc_cv_as_comdat_group_percent=no
27114 gcc_cv_as_comdat_group_group=no
27115 fi
27116
27117 cat >>confdefs.h <<_ACEOF
27118 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27119 || test $gcc_cv_as_comdat_group_percent = yes \
27120 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27121 _ACEOF
27122
27123
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27125 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27126 if ${gcc_cv_as_is_stmt+:} false; then :
27127 $as_echo_n "(cached) " >&6
27128 else
27129 gcc_cv_as_is_stmt=no
27130 if test x$gcc_cv_as != x; then
27131 $as_echo ' .text
27132 .file 1 "conf.c"
27133 .loc 1 1 0 is_stmt 1' > conftest.s
27134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27137 ac_status=$?
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27140 then
27141 gcc_cv_as_is_stmt=yes
27142 else
27143 echo "configure: failed program was" >&5
27144 cat conftest.s >&5
27145 fi
27146 rm -f conftest.o conftest.s
27147 fi
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27150 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27151 if test $gcc_cv_as_is_stmt = yes; then
27152
27153 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27154
27155 fi
27156
27157
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27159 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27160 if ${gcc_cv_as_discriminator+:} false; then :
27161 $as_echo_n "(cached) " >&6
27162 else
27163 gcc_cv_as_discriminator=no
27164 if test x$gcc_cv_as != x; then
27165 $as_echo ' .text
27166 .file 1 "conf.c"
27167 .loc 1 1 0 discriminator 1' > conftest.s
27168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; }
27174 then
27175 gcc_cv_as_discriminator=yes
27176 else
27177 echo "configure: failed program was" >&5
27178 cat conftest.s >&5
27179 fi
27180 rm -f conftest.o conftest.s
27181 fi
27182 fi
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27184 $as_echo "$gcc_cv_as_discriminator" >&6; }
27185 if test $gcc_cv_as_discriminator = yes; then
27186
27187 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27188
27189 fi
27190
27191
27192 # Catch the newlib flag of the same name so we can gate GCC features on it.
27193 # Check whether --enable-newlib-nano-formatted-io was given.
27194 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27195 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27196 yes|no)
27197 ;;
27198 *)
27199 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27200 ;;
27201 esac
27202 fi
27203
27204
27205 # Thread-local storage - the check is heavily parameterized.
27206 conftest_s=
27207 tls_as_opt=
27208 case "$target" in
27209 alpha*-*-*)
27210 conftest_s='
27211 .section ".tdata","awT",@progbits
27212 foo: .long 25
27213 .text
27214 ldq $27,__tls_get_addr($29) !literal!1
27215 lda $16,foo($29) !tlsgd!1
27216 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27217 ldq $27,__tls_get_addr($29) !literal!2
27218 lda $16,foo($29) !tlsldm!2
27219 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27220 ldq $1,foo($29) !gotdtprel
27221 ldah $2,foo($29) !dtprelhi
27222 lda $3,foo($2) !dtprello
27223 lda $4,foo($29) !dtprel
27224 ldq $1,foo($29) !gottprel
27225 ldah $2,foo($29) !tprelhi
27226 lda $3,foo($2) !tprello
27227 lda $4,foo($29) !tprel'
27228 tls_as_opt=--fatal-warnings
27229 ;;
27230 arc*-*-*)
27231 conftest_s='
27232 add_s r0,r0, @foo@tpoff'
27233 ;;
27234 cris-*-*|crisv32-*-*)
27235 conftest_s='
27236 .section ".tdata","awT",@progbits
27237 x: .long 25
27238 .text
27239 move.d x:IE,$r10
27240 nop'
27241 tls_as_opt=--fatal-warnings
27242 ;;
27243 frv*-*-*)
27244 conftest_s='
27245 .section ".tdata","awT",@progbits
27246 x: .long 25
27247 .text
27248 call #gettlsoff(x)'
27249 ;;
27250 hppa*-*-linux*)
27251 conftest_s='
27252 t1: .reg %r20
27253 t2: .reg %r21
27254 gp: .reg %r19
27255 .section ".tdata","awT",@progbits
27256 foo: .long 25
27257 .text
27258 .align 4
27259 addil LT%foo-$tls_gdidx$,gp
27260 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27261 b __tls_get_addr
27262 nop
27263 addil LT%foo-$tls_ldidx$,gp
27264 b __tls_get_addr
27265 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27266 addil LR%foo-$tls_dtpoff$,%ret0
27267 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27268 mfctl %cr27,%t1
27269 addil LT%foo-$tls_ieoff$,gp
27270 ldw RT%foo-$tls_ieoff$(%r1),%t2
27271 add %t1,%t2,%t3
27272 mfctl %cr27,%t1
27273 addil LR%foo-$tls_leoff$,%t1
27274 ldo RR%foo-$tls_leoff$(%r1),%t2'
27275 tls_as_opt=--fatal-warnings
27276 ;;
27277 arm*-*-*)
27278 conftest_s='
27279 .section ".tdata","awT",%progbits
27280 foo: .long 25
27281 .text
27282 .word foo(gottpoff)
27283 .word foo(tpoff)
27284 .word foo(tlsgd)
27285 .word foo(tlsldm)
27286 .word foo(tlsldo)'
27287 ;;
27288 i[34567]86-*-* | x86_64-*-*)
27289 case "$target" in
27290 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27291 on_solaris=yes
27292 ;;
27293 *)
27294 on_solaris=no
27295 ;;
27296 esac
27297 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27298 conftest_s='
27299 .section .tdata,"awt",@progbits'
27300 tls_section_flag=t
27301
27302 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27303
27304 else
27305 conftest_s='
27306 .section ".tdata","awT",@progbits'
27307 tls_section_flag=T
27308 tls_as_opt="--fatal-warnings"
27309 fi
27310 case "$target" in
27311 i[34567]86-*-*)
27312 if test x$on_solaris = xyes; then
27313 case $gas_flag in
27314 yes) tls_as_opt="$tls_as_opt --32" ;;
27315 esac
27316 fi
27317 conftest_s="$conftest_s
27318 foo: .long 25
27319 .text
27320 movl %gs:0, %eax
27321 leal foo@tlsgd(,%ebx,1), %eax
27322 leal foo@tlsldm(%ebx), %eax
27323 leal foo@dtpoff(%eax), %edx
27324 movl foo@gottpoff(%ebx), %eax
27325 subl foo@gottpoff(%ebx), %eax
27326 addl foo@gotntpoff(%ebx), %eax
27327 movl foo@indntpoff, %eax
27328 movl \$foo@tpoff, %eax
27329 subl \$foo@tpoff, %eax
27330 leal foo@ntpoff(%ecx), %eax"
27331 ;;
27332 x86_64-*-*)
27333 if test x$on_solaris = xyes; then
27334 case $gas_flag in
27335 yes) tls_as_opt="$tls_as_opt --64" ;;
27336 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27337 esac
27338 fi
27339 conftest_s="$conftest_s
27340 foo: .long 25
27341 .text
27342 movq %fs:0, %rax
27343 leaq foo@tlsgd(%rip), %rdi
27344 leaq foo@tlsld(%rip), %rdi
27345 leaq foo@dtpoff(%rax), %rdx
27346 movq foo@gottpoff(%rip), %rax
27347 movq \$foo@tpoff, %rax"
27348 ;;
27349 esac
27350 ;;
27351 ia64-*-*)
27352 conftest_s='
27353 .section ".tdata","awT",@progbits
27354 foo: data8 25
27355 .text
27356 addl r16 = @ltoff(@dtpmod(foo#)), gp
27357 addl r17 = @ltoff(@dtprel(foo#)), gp
27358 addl r18 = @ltoff(@tprel(foo#)), gp
27359 addl r19 = @dtprel(foo#), gp
27360 adds r21 = @dtprel(foo#), r13
27361 movl r23 = @dtprel(foo#)
27362 addl r20 = @tprel(foo#), gp
27363 adds r22 = @tprel(foo#), r13
27364 movl r24 = @tprel(foo#)'
27365 tls_as_opt=--fatal-warnings
27366 ;;
27367 loongarch*-*-*)
27368 conftest_s='
27369 .section .tdata,"awT",@progbits
27370 x: .word 2
27371 .text
27372 la.tls.gd $a0,x
27373 bl __tls_get_addr'
27374 tls_first_major=0
27375 tls_first_minor=0
27376 tls_as_opt='--fatal-warnings'
27377 ;;
27378 microblaze*-*-*)
27379 conftest_s='
27380 .section .tdata,"awT",@progbits
27381 x:
27382 .word 2
27383 .text
27384 addik r5,r20,x@TLSGD
27385 addik r5,r20,x@TLSLDM'
27386 tls_as_opt='--fatal-warnings'
27387 ;;
27388 mips*-*-*)
27389 conftest_s='
27390 .section .tdata,"awT",@progbits
27391 x:
27392 .word 2
27393 .text
27394 addiu $4, $28, %tlsgd(x)
27395 addiu $4, $28, %tlsldm(x)
27396 lui $4, %dtprel_hi(x)
27397 addiu $4, $4, %dtprel_lo(x)
27398 lw $4, %gottprel(x)($28)
27399 lui $4, %tprel_hi(x)
27400 addiu $4, $4, %tprel_lo(x)'
27401 tls_as_opt='-32 --fatal-warnings'
27402 ;;
27403 m68k-*-*)
27404 conftest_s='
27405 .section .tdata,"awT",@progbits
27406 x:
27407 .word 2
27408 .text
27409 foo:
27410 move.l x@TLSGD(%a5),%a0
27411 move.l x@TLSLDM(%a5),%a0
27412 move.l x@TLSLDO(%a5),%a0
27413 move.l x@TLSIE(%a5),%a0
27414 move.l x@TLSLE(%a5),%a0'
27415 tls_as_opt='--fatal-warnings'
27416 ;;
27417 nios2-*-*)
27418 conftest_s='
27419 .section ".tdata","awT",@progbits'
27420 tls_as_opt="--fatal-warnings"
27421 ;;
27422 aarch64*-*-*)
27423 conftest_s='
27424 .section ".tdata","awT",%progbits
27425 foo: .long 25
27426 .text
27427 adrp x0, :tlsgd:x
27428 add x0, x0, #:tlsgd_lo12:x
27429 bl __tls_get_addr
27430 nop'
27431 tls_as_opt='--fatal-warnings'
27432 ;;
27433 or1k*-*-*)
27434 conftest_s='
27435 .section ".tdata","awT",@progbits
27436 foo: .long 25
27437 .text
27438 l.movhi r3, tpoffha(foo)
27439 l.add r3, r3, r10
27440 l.lwz r4, tpofflo(foo)(r3)'
27441 tls_as_opt=--fatal-warnings
27442 ;;
27443 powerpc-ibm-aix*)
27444 conftest_s='
27445 .extern __get_tpointer
27446 .toc
27447 LC..1:
27448 .tc a[TC],a[TL]@le
27449 .csect .text[PR]
27450 .tlstest:
27451 lwz 9,LC..1(2)
27452 bla __get_tpointer
27453 lwzx 3,9,3
27454 .globl a
27455 .csect a[TL],4
27456 a:
27457 .space 4'
27458 ;;
27459 powerpc64*-*-*)
27460 conftest_s='
27461 .section ".tdata","awT",@progbits
27462 .align 3
27463 ld0: .space 8
27464 ld1: .space 8
27465 x1: .space 8
27466 x2: .space 8
27467 x3: .space 8
27468 .text
27469 addi 3,2,ld0@got@tlsgd
27470 bl .__tls_get_addr
27471 nop
27472 addi 3,2,ld1@toc
27473 bl .__tls_get_addr
27474 nop
27475 addi 3,2,x1@got@tlsld
27476 bl .__tls_get_addr
27477 nop
27478 addi 9,3,x1@dtprel
27479 bl .__tls_get_addr
27480 nop
27481 addis 9,3,x2@dtprel@ha
27482 addi 9,9,x2@dtprel@l
27483 bl .__tls_get_addr
27484 nop
27485 ld 9,x3@got@dtprel(2)
27486 add 9,9,3
27487 bl .__tls_get_addr
27488 nop'
27489 tls_as_opt="-a64 --fatal-warnings"
27490 ;;
27491 powerpc*-*-*)
27492 conftest_s='
27493 .section ".tdata","awT",@progbits
27494 .align 2
27495 ld0: .space 4
27496 ld1: .space 4
27497 x1: .space 4
27498 x2: .space 4
27499 x3: .space 4
27500 .text
27501 addi 3,31,ld0@got@tlsgd
27502 bl __tls_get_addr
27503 addi 3,31,x1@got@tlsld
27504 bl __tls_get_addr
27505 addi 9,3,x1@dtprel
27506 addis 9,3,x2@dtprel@ha
27507 addi 9,9,x2@dtprel@l
27508 lwz 9,x3@got@tprel(31)
27509 add 9,9,x@tls
27510 addi 9,2,x1@tprel
27511 addis 9,2,x2@tprel@ha
27512 addi 9,9,x2@tprel@l'
27513 tls_as_opt="-a32 --fatal-warnings"
27514 ;;
27515 riscv*-*-*)
27516 conftest_s='
27517 .section .tdata,"awT",@progbits
27518 x: .word 2
27519 .text
27520 la.tls.gd a0,x
27521 call __tls_get_addr'
27522 tls_as_opt='--fatal-warnings'
27523 ;;
27524 s390-*-*)
27525 conftest_s='
27526 .section ".tdata","awT",@progbits
27527 foo: .long 25
27528 .text
27529 .long foo@TLSGD
27530 .long foo@TLSLDM
27531 .long foo@DTPOFF
27532 .long foo@NTPOFF
27533 .long foo@GOTNTPOFF
27534 .long foo@INDNTPOFF
27535 l %r1,foo@GOTNTPOFF(%r12)
27536 l %r1,0(%r1):tls_load:foo
27537 bas %r14,0(%r1,%r13):tls_gdcall:foo
27538 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27539 tls_as_opt="-m31 --fatal-warnings"
27540 ;;
27541 s390x-*-*)
27542 conftest_s='
27543 .section ".tdata","awT",@progbits
27544 foo: .long 25
27545 .text
27546 .quad foo@TLSGD
27547 .quad foo@TLSLDM
27548 .quad foo@DTPOFF
27549 .quad foo@NTPOFF
27550 .quad foo@GOTNTPOFF
27551 lg %r1,foo@GOTNTPOFF(%r12)
27552 larl %r1,foo@INDNTPOFF
27553 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27554 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27555 tls_as_opt="-m64 -Aesame --fatal-warnings"
27556 ;;
27557 sh-*-* | sh[123456789lbe]*-*-*)
27558 conftest_s='
27559 .section ".tdata","awT",@progbits
27560 foo: .long 25
27561 .text
27562 .long foo@TLSGD
27563 .long foo@TLSLDM
27564 .long foo@DTPOFF
27565 .long foo@GOTTPOFF
27566 .long foo@TPOFF'
27567 tls_as_opt=--fatal-warnings
27568 ;;
27569 sparc*-*-*)
27570 case "$target" in
27571 sparc*-sun-solaris2.*)
27572 on_solaris=yes
27573 ;;
27574 *)
27575 on_solaris=no
27576 ;;
27577 esac
27578 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27579 conftest_s='
27580 .section ".tdata",#alloc,#write,#tls'
27581 else
27582 conftest_s='
27583 .section ".tdata","awT",@progbits'
27584 tls_as_opt="-32 --fatal-warnings"
27585 fi
27586 conftest_s="$conftest_s
27587 foo: .long 25
27588 .text
27589 sethi %tgd_hi22(foo), %o0
27590 add %o0, %tgd_lo10(foo), %o1
27591 add %l7, %o1, %o0, %tgd_add(foo)
27592 call __tls_get_addr, %tgd_call(foo)
27593 sethi %tldm_hi22(foo), %l1
27594 add %l1, %tldm_lo10(foo), %l2
27595 add %l7, %l2, %o0, %tldm_add(foo)
27596 call __tls_get_addr, %tldm_call(foo)
27597 sethi %tldo_hix22(foo), %l3
27598 xor %l3, %tldo_lox10(foo), %l4
27599 add %o0, %l4, %l5, %tldo_add(foo)
27600 sethi %tie_hi22(foo), %o3
27601 add %o3, %tie_lo10(foo), %o3
27602 ld [%l7 + %o3], %o2, %tie_ld(foo)
27603 add %g7, %o2, %o4, %tie_add(foo)
27604 sethi %tle_hix22(foo), %l1
27605 xor %l1, %tle_lox10(foo), %o5
27606 ld [%g7 + %o5], %o1"
27607 ;;
27608 xtensa*-*-*)
27609 conftest_s='
27610 .section ".tdata","awT",@progbits
27611 foo: .long 25
27612 .text
27613 movi a8, foo@TLSFUNC
27614 movi a10, foo@TLSARG
27615 callx8.tls a8, foo@TLSCALL'
27616 ;;
27617 esac
27618 set_have_as_tls=no
27619 if test "x$enable_tls" = xno ; then
27620 : # TLS explicitly disabled.
27621 elif test "x$enable_tls" = xyes ; then
27622 set_have_as_tls=yes # TLS explicitly enabled.
27623 elif test -z "$conftest_s"; then
27624 : # If we don't have a check, assume no support.
27625 else
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27627 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27628 if ${gcc_cv_as_tls+:} false; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 gcc_cv_as_tls=no
27632 if test x$gcc_cv_as != x; then
27633 $as_echo "$conftest_s" > conftest.s
27634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27639 test $ac_status = 0; }; }
27640 then
27641 gcc_cv_as_tls=yes
27642 else
27643 echo "configure: failed program was" >&5
27644 cat conftest.s >&5
27645 fi
27646 rm -f conftest.o conftest.s
27647 fi
27648 fi
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27650 $as_echo "$gcc_cv_as_tls" >&6; }
27651 if test $gcc_cv_as_tls = yes; then
27652 set_have_as_tls=yes
27653 fi
27654
27655 fi
27656 if test $set_have_as_tls = yes ; then
27657
27658 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27659
27660 fi
27661
27662 # Target-specific assembler checks.
27663
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27665 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27666 gcc_cv_ld_static_dynamic=no
27667 gcc_cv_ld_static_option='-Bstatic'
27668 gcc_cv_ld_dynamic_option='-Bdynamic'
27669 if test $in_tree_ld = yes ; then
27670 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
27671 gcc_cv_ld_static_dynamic=yes
27672 fi
27673 elif test x$gcc_cv_ld != x; then
27674 # Check if linker supports -Bstatic/-Bdynamic option
27675 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27676 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27677 gcc_cv_ld_static_dynamic=yes
27678 else
27679 case "$target" in
27680 # AIX ld uses -b flags
27681 *-*-aix4.[23]* | *-*-aix[5-9]*)
27682 gcc_cv_ld_static_dynamic=yes
27683 gcc_cv_ld_static_option="-bstatic"
27684 gcc_cv_ld_dynamic_option="-bdynamic"
27685 ;;
27686 # HP-UX ld uses -a flags to select between shared and archive.
27687 *-*-hpux*)
27688 if test x"$gnu_ld" = xno; then
27689 gcc_cv_ld_static_dynamic=yes
27690 gcc_cv_ld_static_option="-aarchive_shared"
27691 gcc_cv_ld_dynamic_option="-adefault"
27692 fi
27693 ;;
27694 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27695 *-*-solaris2*)
27696 gcc_cv_ld_static_dynamic=yes
27697 ;;
27698 esac
27699 fi
27700 fi
27701 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27702
27703 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27704
27705
27706 cat >>confdefs.h <<_ACEOF
27707 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27708 _ACEOF
27709
27710
27711 cat >>confdefs.h <<_ACEOF
27712 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27713 _ACEOF
27714
27715 fi
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27717 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27718
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27720 $as_echo_n "checking linker --version-script option... " >&6; }
27721 gcc_cv_ld_version_script=no
27722 ld_version_script_option=''
27723 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27724 gcc_cv_ld_version_script=yes
27725 ld_version_script_option='--version-script'
27726 elif test x$gcc_cv_ld != x; then
27727 case "$target" in
27728 # Solaris 2 ld always supports -M. It also supports a subset of
27729 # --version-script since Solaris 11.4, but requires
27730 # -z gnu-version-script-compat to activate.
27731 *-*-solaris2*)
27732 gcc_cv_ld_version_script=yes
27733 ld_version_script_option='-M'
27734 ;;
27735 esac
27736 fi
27737 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27739 $as_echo "$gcc_cv_ld_version_script" >&6; }
27740
27741
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27743 $as_echo_n "checking linker soname option... " >&6; }
27744 gcc_cv_ld_soname=no
27745 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27746 gcc_cv_ld_soname=yes
27747 ld_soname_option='-soname'
27748 elif test x$gcc_cv_ld != x; then
27749 case "$target" in
27750 *-*-darwin*)
27751 gcc_cv_ld_soname=yes
27752 ld_soname_option='-install_name'
27753 ;;
27754 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27755 # ld compatiblity since some Solaris 10 update.
27756 *-*-solaris2*)
27757 gcc_cv_ld_soname=yes
27758 ld_soname_option='-h'
27759 ;;
27760 esac
27761 fi
27762 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27764 $as_echo "$gcc_cv_ld_soname" >&6; }
27765
27766
27767 if test x"$demangler_in_ld" = xyes; then
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27769 $as_echo_n "checking linker --demangle support... " >&6; }
27770 gcc_cv_ld_demangle=no
27771 if test $in_tree_ld = yes; then
27772 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 \
27773 gcc_cv_ld_demangle=yes
27774 fi
27775 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27776 # Check if the GNU linker supports --demangle option
27777 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27778 gcc_cv_ld_demangle=yes
27779 fi
27780 fi
27781 if test x"$gcc_cv_ld_demangle" = xyes; then
27782
27783 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27784
27785 fi
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27787 $as_echo "$gcc_cv_ld_demangle" >&6; }
27788 fi
27789
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27791 $as_echo_n "checking linker plugin support... " >&6; }
27792 gcc_cv_lto_plugin=0
27793 if test -f liblto_plugin.la; then
27794 save_ld_ver="$ld_ver"
27795 save_ld_vers_major="$ld_vers_major"
27796 save_ld_vers_minor="$ld_vers_minor"
27797 save_ld_is_gold="$ld_is_gold"
27798
27799 ld_is_gold=no
27800
27801 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
27802 ld_ver="GNU ld"
27803 # FIXME: ld_is_gold?
27804 ld_vers_major="$gcc_cv_gld_major_version"
27805 ld_vers_minor="$gcc_cv_gld_minor_version"
27806 else
27807 # Determine plugin linker version.
27808 # FIXME: Partial duplicate from above, generalize.
27809 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27810 if echo "$ld_ver" | grep GNU > /dev/null; then
27811 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
27812 ld_is_gold=yes
27813 ld_vers=`echo $ld_ver | sed -n \
27814 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27815 else
27816 ld_vers=`echo $ld_ver | sed -n \
27817 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27818 fi
27819 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
27820 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27821 fi
27822 fi
27823
27824 # Determine plugin support.
27825 if echo "$ld_ver" | grep GNU > /dev/null; then
27826 # Require GNU ld or gold 2.21+ for plugin support by default.
27827 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27828 gcc_cv_lto_plugin=2
27829 elif test "$ld_is_mold" = yes; then
27830 gcc_cv_lto_plugin=2
27831 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27832 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27833 gcc_cv_lto_plugin=1
27834 fi
27835 fi
27836
27837 ld_ver="$save_ld_ver"
27838 ld_vers_major="$save_ld_vers_major"
27839 ld_vers_minor="$save_ld_vers_minor"
27840 ld_is_gold="$save_ld_is_gold"
27841 fi
27842
27843 cat >>confdefs.h <<_ACEOF
27844 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27845 _ACEOF
27846
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27848 $as_echo "$gcc_cv_lto_plugin" >&6; }
27849
27850 # Target OS-specific assembler checks.
27851
27852 case "$target_os" in
27853 darwin*)
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27855 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27856 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
27857 $as_echo_n "(cached) " >&6
27858 else
27859 gcc_cv_as_mmacosx_version_min=no
27860 if test x$gcc_cv_as != x; then
27861 $as_echo '.text' > conftest.s
27862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27868 then
27869 gcc_cv_as_mmacosx_version_min=yes
27870 else
27871 echo "configure: failed program was" >&5
27872 cat conftest.s >&5
27873 fi
27874 rm -f conftest.o conftest.s
27875 fi
27876 fi
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
27878 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
27879 if test $gcc_cv_as_mmacosx_version_min = yes; then
27880
27881 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
27882
27883 fi
27884
27885 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
27887 $as_echo_n "checking assembler for .build_version... " >&6; }
27888 if ${gcc_cv_as_darwin_build_version+:} false; then :
27889 $as_echo_n "(cached) " >&6
27890 else
27891 gcc_cv_as_darwin_build_version=no
27892 if test x$gcc_cv_as != x; then
27893 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
27894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
27895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27896 (eval $ac_try) 2>&5
27897 ac_status=$?
27898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27899 test $ac_status = 0; }; }
27900 then
27901 gcc_cv_as_darwin_build_version=yes
27902 else
27903 echo "configure: failed program was" >&5
27904 cat conftest.s >&5
27905 fi
27906 rm -f conftest.o conftest.s
27907 fi
27908 fi
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
27910 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
27911 if test $gcc_cv_as_darwin_build_version = yes; then
27912
27913 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
27914
27915 fi
27916
27917 fi
27918 ;;
27919 esac
27920
27921 # Target CPU-specific assembler checks.
27922
27923 case "$target" in
27924 aarch64*-*-*)
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
27926 $as_echo_n "checking assembler for -mabi option... " >&6; }
27927 if ${gcc_cv_as_aarch64_mabi+:} false; then :
27928 $as_echo_n "(cached) " >&6
27929 else
27930 gcc_cv_as_aarch64_mabi=no
27931 if test x$gcc_cv_as != x; then
27932 $as_echo '.text' > conftest.s
27933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; }
27939 then
27940 gcc_cv_as_aarch64_mabi=yes
27941 else
27942 echo "configure: failed program was" >&5
27943 cat conftest.s >&5
27944 fi
27945 rm -f conftest.o conftest.s
27946 fi
27947 fi
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
27949 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
27950
27951
27952 if test x$gcc_cv_as_aarch64_mabi = xyes; then
27953
27954 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
27955
27956 else
27957 if test x$with_abi = xilp32; then
27958 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27959 Upgrade the Assembler." "$LINENO" 5
27960 fi
27961 if test x"$with_multilib_list" = xdefault; then
27962 TM_MULTILIB_CONFIG=lp64
27963 else
27964 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
27965 for aarch64_multilib in ${aarch64_multilibs}; do
27966 case ${aarch64_multilib} in
27967 ilp32)
27968 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27969 Upgrade the Assembler." "$LINENO" 5
27970 ;;
27971 *)
27972 ;;
27973 esac
27974 done
27975 fi
27976 fi
27977 # Check if we have binutils support for relocations types needed by -fpic
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
27979 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
27980 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
27981 $as_echo_n "(cached) " >&6
27982 else
27983 gcc_cv_as_aarch64_picreloc=no
27984 if test x$gcc_cv_as != x; then
27985 $as_echo '
27986 .text
27987 ldr x0, [x2, #:gotpage_lo15:globalsym]
27988 ' > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_aarch64_picreloc=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28000 fi
28001 rm -f conftest.o conftest.s
28002 fi
28003 fi
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28005 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28006 if test $gcc_cv_as_aarch64_picreloc = yes; then
28007
28008 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28009
28010 fi
28011
28012 # Enable Branch Target Identification Mechanism and Return Address
28013 # Signing by default.
28014 # Check whether --enable-standard-branch-protection was given.
28015 if test "${enable_standard_branch_protection+set}" = set; then :
28016 enableval=$enable_standard_branch_protection;
28017 case $enableval in
28018 yes)
28019 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28020 ;;
28021 no)
28022 ;;
28023 *)
28024 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28025 Valid choices are 'yes' and 'no'." "$LINENO" 5
28026 ;;
28027 esac
28028
28029 fi
28030
28031 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28032 # Check whether --enable-fix-cortex-a53-835769 was given.
28033 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28034 enableval=$enable_fix_cortex_a53_835769;
28035 case $enableval in
28036 yes)
28037 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28038 ;;
28039 no)
28040 ;;
28041 *)
28042 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28043 Valid choices are 'yes' and 'no'." "$LINENO" 5
28044 ;;
28045
28046 esac
28047
28048 fi
28049
28050 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28051 # Check whether --enable-fix-cortex-a53-843419 was given.
28052 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28053 enableval=$enable_fix_cortex_a53_843419;
28054 case $enableval in
28055 yes)
28056 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28057 ;;
28058 no)
28059 ;;
28060 *)
28061 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28062 Valid choices are 'yes' and 'no'." "$LINENO" 5
28063 ;;
28064
28065 esac
28066
28067 fi
28068
28069 ;;
28070
28071 # All TARGET_ABI_OSF targets.
28072 alpha*-*-linux* | alpha*-*-*bsd*)
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28074 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28075 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28076 $as_echo_n "(cached) " >&6
28077 else
28078 gcc_cv_as_alpha_explicit_relocs=no
28079 if test x$gcc_cv_as != x; then
28080 $as_echo ' .set nomacro
28081 .text
28082 extbl $3, $2, $3 !lituse_bytoff!1
28083 ldq $2, a($29) !literal!1
28084 ldq $4, b($29) !literal!2
28085 ldq_u $3, 0($2) !lituse_base!1
28086 ldq $27, f($29) !literal!5
28087 jsr $26, ($27), f !lituse_jsr!5
28088 ldah $29, 0($26) !gpdisp!3
28089 lda $0, c($29) !gprel
28090 ldah $1, d($29) !gprelhigh
28091 lda $1, d($1) !gprellow
28092 lda $29, 0($29) !gpdisp!3' > conftest.s
28093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28095 (eval $ac_try) 2>&5
28096 ac_status=$?
28097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28098 test $ac_status = 0; }; }
28099 then
28100 gcc_cv_as_alpha_explicit_relocs=yes
28101 else
28102 echo "configure: failed program was" >&5
28103 cat conftest.s >&5
28104 fi
28105 rm -f conftest.o conftest.s
28106 fi
28107 fi
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28109 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28110 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28111
28112 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28113
28114 fi
28115
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28117 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28118 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28119 $as_echo_n "(cached) " >&6
28120 else
28121 gcc_cv_as_alpha_jsrdirect_relocs=no
28122 if test x$gcc_cv_as != x; then
28123 $as_echo ' .set nomacro
28124 .text
28125 ldq $27, a($29) !literal!1
28126 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28132 test $ac_status = 0; }; }
28133 then
28134 gcc_cv_as_alpha_jsrdirect_relocs=yes
28135 else
28136 echo "configure: failed program was" >&5
28137 cat conftest.s >&5
28138 fi
28139 rm -f conftest.o conftest.s
28140 fi
28141 fi
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28143 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28144 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28145
28146 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28147
28148 fi
28149
28150 ;;
28151
28152 avr-*-*)
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28154 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28155 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28156 $as_echo_n "(cached) " >&6
28157 else
28158 gcc_cv_as_avr_mlink_relax=no
28159 if test x$gcc_cv_as != x; then
28160 $as_echo '.text' > conftest.s
28161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28163 (eval $ac_try) 2>&5
28164 ac_status=$?
28165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28166 test $ac_status = 0; }; }
28167 then
28168 gcc_cv_as_avr_mlink_relax=yes
28169 else
28170 echo "configure: failed program was" >&5
28171 cat conftest.s >&5
28172 fi
28173 rm -f conftest.o conftest.s
28174 fi
28175 fi
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28177 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28178 if test $gcc_cv_as_avr_mlink_relax = yes; then
28179
28180 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28181
28182 fi
28183
28184
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28186 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28187 if ${gcc_cv_as_avr_mrmw+:} false; then :
28188 $as_echo_n "(cached) " >&6
28189 else
28190 gcc_cv_as_avr_mrmw=no
28191 if test x$gcc_cv_as != x; then
28192 $as_echo '.text' > conftest.s
28193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28196 ac_status=$?
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28199 then
28200 gcc_cv_as_avr_mrmw=yes
28201 else
28202 echo "configure: failed program was" >&5
28203 cat conftest.s >&5
28204 fi
28205 rm -f conftest.o conftest.s
28206 fi
28207 fi
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28209 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28210 if test $gcc_cv_as_avr_mrmw = yes; then
28211
28212 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28213
28214 fi
28215
28216
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28218 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28219 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28220 $as_echo_n "(cached) " >&6
28221 else
28222 gcc_cv_as_avr_mgccisr=no
28223 if test x$gcc_cv_as != x; then
28224 $as_echo '.text
28225 __gcc_isr 1
28226 __gcc_isr 2
28227 __gcc_isr 0,r24
28228 ' > conftest.s
28229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231 (eval $ac_try) 2>&5
28232 ac_status=$?
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; }
28235 then
28236 gcc_cv_as_avr_mgccisr=yes
28237 else
28238 echo "configure: failed program was" >&5
28239 cat conftest.s >&5
28240 fi
28241 rm -f conftest.o conftest.s
28242 fi
28243 fi
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28245 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28246 if test $gcc_cv_as_avr_mgccisr = yes; then
28247
28248 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28249
28250 fi
28251
28252
28253 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28254 # Check how default linker description file implements .rodata for
28255 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28256 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28258 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28259 cat > conftest.s <<EOF
28260 .section .rodata,"a",@progbits
28261 .global xxvaryy
28262 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28263 xxvaryy:
28264 .word 1
28265 EOF
28266 rm -f conftest.nm
28267 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28269 (eval $ac_try) 2>&5
28270 ac_status=$?
28271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28272 test $ac_status = 0; }; }
28273 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; }
28279 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; }
28285 if test -s conftest.nm
28286 then
28287 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28289 $as_echo "yes" >&6; }
28290
28291 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28292
28293 else
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28295 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28296 echo "$as_me: nm output was" >&5
28297 cat conftest.nm >&5
28298 { $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
28299 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28300 fi
28301 else
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28303 $as_echo "test failed" >&6; }
28304 echo "$as_me: failed program was" >&5
28305 cat conftest.s >&5
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28307 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28308 fi
28309 rm -f conftest.s conftest.o conftest.elf conftest.nm
28310
28311 # Check for emulation avrxmega2_flmap.
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28313 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28314 cat > conftest.s <<EOF
28315 .section .text,"ax",@progbits
28316 ldi r16, __flmap_value_with_lock
28317 EOF
28318 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28324 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28330 if test -s conftest.elf
28331 then
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28333 $as_echo "yes" >&6; }
28334
28335 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28336
28337 else
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28339 $as_echo "no" >&6; }
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28341 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28343 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28344 fi
28345 rm -f conftest.o conftest.elf
28346
28347 # Check for emulation avrxmega4_flmap.
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28349 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28350 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }
28356 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28358 (eval $ac_try) 2>&5
28359 ac_status=$?
28360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28361 test $ac_status = 0; }; }
28362 if test -s conftest.elf
28363 then
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365 $as_echo "yes" >&6; }
28366
28367 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28368
28369 else
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28371 $as_echo "no" >&6; }
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28373 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28375 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28376 fi
28377 rm -f conftest.s conftest.o conftest.elf
28378 ;;
28379
28380 cris-*-*)
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28382 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28383 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28384 $as_echo_n "(cached) " >&6
28385 else
28386 gcc_cv_as_cris_no_mul_bug=no
28387 if test x$gcc_cv_as != x; then
28388 $as_echo '.text' > conftest.s
28389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28391 (eval $ac_try) 2>&5
28392 ac_status=$?
28393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28394 test $ac_status = 0; }; }
28395 then
28396 gcc_cv_as_cris_no_mul_bug=yes
28397 else
28398 echo "configure: failed program was" >&5
28399 cat conftest.s >&5
28400 fi
28401 rm -f conftest.o conftest.s
28402 fi
28403 fi
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28405 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28406 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28407
28408 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28409
28410 fi
28411
28412 ;;
28413
28414 sparc*-*-*)
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28416 $as_echo_n "checking assembler for -relax option... " >&6; }
28417 if ${gcc_cv_as_sparc_relax+:} false; then :
28418 $as_echo_n "(cached) " >&6
28419 else
28420 gcc_cv_as_sparc_relax=no
28421 if test x$gcc_cv_as != x; then
28422 $as_echo '.text' > conftest.s
28423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28428 test $ac_status = 0; }; }
28429 then
28430 gcc_cv_as_sparc_relax=yes
28431 else
28432 echo "configure: failed program was" >&5
28433 cat conftest.s >&5
28434 fi
28435 rm -f conftest.o conftest.s
28436 fi
28437 fi
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28439 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28440 if test $gcc_cv_as_sparc_relax = yes; then
28441
28442 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28443
28444 fi
28445
28446
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28448 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28449 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28450 $as_echo_n "(cached) " >&6
28451 else
28452 gcc_cv_as_sparc_gotdata_op=no
28453 if test x$gcc_cv_as != x; then
28454 $as_echo '.text
28455 .align 4
28456 foo:
28457 nop
28458 bar:
28459 sethi %gdop_hix22(foo), %g1
28460 xor %g1, %gdop_lox10(foo), %g1
28461 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28464 (eval $ac_try) 2>&5
28465 ac_status=$?
28466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28467 test $ac_status = 0; }; }
28468 then
28469 if test x$gcc_cv_ld != x \
28470 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28471 if test x$gcc_cv_objdump != x; then
28472 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28473 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28474 gcc_cv_as_sparc_gotdata_op=no
28475 else
28476 gcc_cv_as_sparc_gotdata_op=yes
28477 fi
28478 fi
28479 fi
28480 rm -f conftest
28481 else
28482 echo "configure: failed program was" >&5
28483 cat conftest.s >&5
28484 fi
28485 rm -f conftest.o conftest.s
28486 fi
28487 fi
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28489 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28490 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28491
28492 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28493
28494 fi
28495
28496
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28498 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28499 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28500 $as_echo_n "(cached) " >&6
28501 else
28502 gcc_cv_as_sparc_ua_pcrel=no
28503 if test x$gcc_cv_as != x; then
28504 $as_echo '.text
28505 foo:
28506 nop
28507 .data
28508 .align 4
28509 .byte 0
28510 .uaword %r_disp32(foo)' > conftest.s
28511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28513 (eval $ac_try) 2>&5
28514 ac_status=$?
28515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28516 test $ac_status = 0; }; }
28517 then
28518 if test x$gcc_cv_ld != x \
28519 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28520 gcc_cv_as_sparc_ua_pcrel=yes
28521 fi
28522 rm -f conftest
28523 else
28524 echo "configure: failed program was" >&5
28525 cat conftest.s >&5
28526 fi
28527 rm -f conftest.o conftest.s
28528 fi
28529 fi
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28531 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28532 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28533
28534 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28535
28536
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28538 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28539 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28540 $as_echo_n "(cached) " >&6
28541 else
28542 gcc_cv_as_sparc_ua_pcrel_hidden=no
28543 if test x$gcc_cv_as != x; then
28544 $as_echo '.data
28545 .align 4
28546 .byte 0x31
28547 .uaword %r_disp32(foo)
28548 .byte 0x32, 0x33, 0x34
28549 .global foo
28550 .hidden foo
28551 foo:
28552 .skip 4' > conftest.s
28553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28558 test $ac_status = 0; }; }
28559 then
28560 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28561 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28562 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28563 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28564 if $gcc_cv_objdump -R conftest 2> /dev/null \
28565 | grep 'DISP32' > /dev/null 2>&1; then
28566 :
28567 else
28568 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28569 fi
28570 fi
28571 rm -f conftest
28572 else
28573 echo "configure: failed program was" >&5
28574 cat conftest.s >&5
28575 fi
28576 rm -f conftest.o conftest.s
28577 fi
28578 fi
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28580 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28581 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28582
28583 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28584
28585 fi
28586
28587
28588 fi
28589 # unaligned pcrel relocs
28590
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28592 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28593 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28594 $as_echo_n "(cached) " >&6
28595 else
28596 gcc_cv_as_sparc_offsetable_lo10=no
28597 if test x$gcc_cv_as != x; then
28598 $as_echo '.text
28599 or %g1, %lo(ab) + 12, %g1
28600 or %g1, %lo(ab + 12), %g1' > conftest.s
28601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28606 test $ac_status = 0; }; }
28607 then
28608 if test x$gcc_cv_objdump != x \
28609 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28610 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28611 gcc_cv_as_sparc_offsetable_lo10=yes
28612 fi
28613 else
28614 echo "configure: failed program was" >&5
28615 cat conftest.s >&5
28616 fi
28617 rm -f conftest.o conftest.s
28618 fi
28619 fi
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28621 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28622 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28623
28624 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28625
28626 fi
28627
28628
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28630 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28631 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28632 $as_echo_n "(cached) " >&6
28633 else
28634 gcc_cv_as_sparc_fmaf=no
28635 if test x$gcc_cv_as != x; then
28636 $as_echo '.text
28637 .register %g2, #scratch
28638 .register %g3, #scratch
28639 .align 4
28640 fmaddd %f0, %f2, %f4, %f6
28641 addxccc %g1, %g2, %g3
28642 fsrl32 %f2, %f4, %f8
28643 fnaddd %f10, %f12, %f14' > conftest.s
28644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28646 (eval $ac_try) 2>&5
28647 ac_status=$?
28648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28649 test $ac_status = 0; }; }
28650 then
28651 gcc_cv_as_sparc_fmaf=yes
28652 else
28653 echo "configure: failed program was" >&5
28654 cat conftest.s >&5
28655 fi
28656 rm -f conftest.o conftest.s
28657 fi
28658 fi
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28660 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28661 if test $gcc_cv_as_sparc_fmaf = yes; then
28662
28663 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28664
28665 fi
28666
28667
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28669 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28670 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28671 $as_echo_n "(cached) " >&6
28672 else
28673 gcc_cv_as_sparc_sparc4=no
28674 if test x$gcc_cv_as != x; then
28675 $as_echo '.text
28676 .register %g2, #scratch
28677 .register %g3, #scratch
28678 .align 4
28679 cxbe %g2, %g3, 1f
28680 1: cwbneg %g2, %g3, 1f
28681 1: sha1
28682 md5
28683 aes_kexpand0 %f4, %f6, %f8
28684 des_round %f38, %f40, %f42, %f44
28685 camellia_f %f54, %f56, %f58, %f60
28686 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28689 (eval $ac_try) 2>&5
28690 ac_status=$?
28691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692 test $ac_status = 0; }; }
28693 then
28694 gcc_cv_as_sparc_sparc4=yes
28695 else
28696 echo "configure: failed program was" >&5
28697 cat conftest.s >&5
28698 fi
28699 rm -f conftest.o conftest.s
28700 fi
28701 fi
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28703 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28704 if test $gcc_cv_as_sparc_sparc4 = yes; then
28705
28706 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28707
28708 fi
28709
28710
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28712 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28713 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28714 $as_echo_n "(cached) " >&6
28715 else
28716 gcc_cv_as_sparc_sparc5=no
28717 if test x$gcc_cv_as != x; then
28718 $as_echo '.text
28719 .register %g2, #scratch
28720 .register %g3, #scratch
28721 .align 4
28722 subxc %g1, %g2, %g3
28723 fpadd8 %f0, %f2, %f4' > conftest.s
28724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28726 (eval $ac_try) 2>&5
28727 ac_status=$?
28728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28729 test $ac_status = 0; }; }
28730 then
28731 gcc_cv_as_sparc_sparc5=yes
28732 else
28733 echo "configure: failed program was" >&5
28734 cat conftest.s >&5
28735 fi
28736 rm -f conftest.o conftest.s
28737 fi
28738 fi
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28740 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28741 if test $gcc_cv_as_sparc_sparc5 = yes; then
28742
28743 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28744
28745 fi
28746
28747
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28749 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28750 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28751 $as_echo_n "(cached) " >&6
28752 else
28753 gcc_cv_as_sparc_sparc6=no
28754 if test x$gcc_cv_as != x; then
28755 $as_echo '.text
28756 .register %g2, #scratch
28757 .register %g3, #scratch
28758 .align 4
28759 rd %entropy, %g1
28760 fpsll64x %f0, %f2, %f4' > conftest.s
28761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28763 (eval $ac_try) 2>&5
28764 ac_status=$?
28765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28766 test $ac_status = 0; }; }
28767 then
28768 gcc_cv_as_sparc_sparc6=yes
28769 else
28770 echo "configure: failed program was" >&5
28771 cat conftest.s >&5
28772 fi
28773 rm -f conftest.o conftest.s
28774 fi
28775 fi
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28777 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28778 if test $gcc_cv_as_sparc_sparc6 = yes; then
28779
28780 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28781
28782 fi
28783
28784
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28786 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28787 if ${gcc_cv_as_sparc_leon+:} false; then :
28788 $as_echo_n "(cached) " >&6
28789 else
28790 gcc_cv_as_sparc_leon=no
28791 if test x$gcc_cv_as != x; then
28792 $as_echo '.text
28793 .register %g2, #scratch
28794 .register %g3, #scratch
28795 .align 4
28796 smac %g2, %g3, %g1
28797 umac %g2, %g3, %g1
28798 casa [%g2] 0xb, %g3, %g1' > conftest.s
28799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28801 (eval $ac_try) 2>&5
28802 ac_status=$?
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; }
28805 then
28806 gcc_cv_as_sparc_leon=yes
28807 else
28808 echo "configure: failed program was" >&5
28809 cat conftest.s >&5
28810 fi
28811 rm -f conftest.o conftest.s
28812 fi
28813 fi
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28815 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28816 if test $gcc_cv_as_sparc_leon = yes; then
28817
28818 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28819
28820 fi
28821
28822 ;;
28823
28824 i[34567]86-*-* | x86_64-*-*)
28825 case $target_os in
28826 cygwin*)
28827 # Full C++ conformance when using a shared libstdc++-v3 requires some
28828 # support from the Cygwin DLL, which in more recent versions exports
28829 # wrappers to aid in interposing and redirecting operators new, delete,
28830 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28831 # are configuring for a version of Cygwin that exports the wrappers.
28832 if test x$host = x$target && test x$host_cpu = xi686; then
28833 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28834 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
28835 gcc_ac_cygwin_dll_wrappers=yes
28836 else
28837 gcc_ac_cygwin_dll_wrappers=no
28838 fi
28839
28840 else
28841 # Can't check presence of libc functions during cross-compile, so
28842 # we just have to assume we're building for an up-to-date target.
28843 gcc_ac_cygwin_dll_wrappers=yes
28844 fi
28845
28846 cat >>confdefs.h <<_ACEOF
28847 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28848 _ACEOF
28849
28850 esac
28851 case $target_os in
28852 cygwin* | pe | mingw32*)
28853 # Recent binutils allows the three-operand form of ".comm" on PE. This
28854 # definition is used unconditionally to initialise the default state of
28855 # the target option variable that governs usage of the feature.
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28857 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28858 if ${gcc_cv_as_comm_has_align+:} false; then :
28859 $as_echo_n "(cached) " >&6
28860 else
28861 gcc_cv_as_comm_has_align=no
28862 if test x$gcc_cv_as != x; then
28863 $as_echo '.comm foo,1,32' > conftest.s
28864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28869 test $ac_status = 0; }; }
28870 then
28871 gcc_cv_as_comm_has_align=yes
28872 else
28873 echo "configure: failed program was" >&5
28874 cat conftest.s >&5
28875 fi
28876 rm -f conftest.o conftest.s
28877 fi
28878 fi
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
28880 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
28881
28882
28883
28884 cat >>confdefs.h <<_ACEOF
28885 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
28886 _ACEOF
28887
28888 # Used for DWARF 2 in PE
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
28890 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
28891 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
28892 $as_echo_n "(cached) " >&6
28893 else
28894 gcc_cv_as_ix86_pe_secrel32=no
28895 if test x$gcc_cv_as != x; then
28896 $as_echo '.text
28897 foo: nop
28898 .data
28899 .secrel32 foo' > conftest.s
28900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28905 test $ac_status = 0; }; }
28906 then
28907 if test x$gcc_cv_ld != x \
28908 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
28909 gcc_cv_as_ix86_pe_secrel32=yes
28910 fi
28911 rm -f conftest
28912 else
28913 echo "configure: failed program was" >&5
28914 cat conftest.s >&5
28915 fi
28916 rm -f conftest.o conftest.s
28917 fi
28918 fi
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
28920 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
28921 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
28922
28923 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
28924
28925 fi
28926
28927 # Test if the assembler supports the extended form of the .section
28928 # directive that specifies section alignment. LTO support uses this,
28929 # but normally only after installation, so we warn but don't fail the
28930 # configure if LTO is enabled but the assembler does not support it.
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
28932 $as_echo_n "checking assembler for .section with alignment... " >&6; }
28933 if ${gcc_cv_as_section_has_align+:} false; then :
28934 $as_echo_n "(cached) " >&6
28935 else
28936 gcc_cv_as_section_has_align=no
28937 if test x$gcc_cv_as != x; then
28938 $as_echo '.section lto_test,"dr0"' > conftest.s
28939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
28940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28944 test $ac_status = 0; }; }
28945 then
28946 gcc_cv_as_section_has_align=yes
28947 else
28948 echo "configure: failed program was" >&5
28949 cat conftest.s >&5
28950 fi
28951 rm -f conftest.o conftest.s
28952 fi
28953 fi
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
28955 $as_echo "$gcc_cv_as_section_has_align" >&6; }
28956
28957
28958 if test x$gcc_cv_as_section_has_align != xyes; then
28959 case ",$enable_languages," in
28960 *,lto,*)
28961 { $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
28962 $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;}
28963 ;;
28964 esac
28965 fi
28966 ;;
28967 esac
28968 case $target_os in
28969 darwin2* | darwin19*)
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
28971 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
28972 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
28973 $as_echo_n "(cached) " >&6
28974 else
28975 gcc_cv_as_mllvm_x86_pad_for_align=no
28976 if test x$gcc_cv_as != x; then
28977 $as_echo '.text' > conftest.s
28978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
28979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28980 (eval $ac_try) 2>&5
28981 ac_status=$?
28982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28983 test $ac_status = 0; }; }
28984 then
28985 gcc_cv_as_mllvm_x86_pad_for_align=yes
28986 else
28987 echo "configure: failed program was" >&5
28988 cat conftest.s >&5
28989 fi
28990 rm -f conftest.o conftest.s
28991 fi
28992 fi
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
28994 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
28995 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
28996
28997 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
28998
28999 fi
29000
29001 ;;
29002 esac
29003
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29005 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29006 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29007 $as_echo_n "(cached) " >&6
29008 else
29009 gcc_cv_as_ix86_xbrace_comment=no
29010 if test x$gcc_cv_as != x; then
29011 $as_echo '.text' > conftest.s
29012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29014 (eval $ac_try) 2>&5
29015 ac_status=$?
29016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29017 test $ac_status = 0; }; }
29018 then
29019 gcc_cv_as_ix86_xbrace_comment=yes
29020 else
29021 echo "configure: failed program was" >&5
29022 cat conftest.s >&5
29023 fi
29024 rm -f conftest.o conftest.s
29025 fi
29026 fi
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29028 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29029 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29030
29031 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29032
29033 fi
29034
29035
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29037 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29038 if ${gcc_cv_as_ix86_filds+:} false; then :
29039 $as_echo_n "(cached) " >&6
29040 else
29041 gcc_cv_as_ix86_filds=no
29042 if test x$gcc_cv_as != x; then
29043 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; }
29050 then
29051 gcc_cv_as_ix86_filds=yes
29052 else
29053 echo "configure: failed program was" >&5
29054 cat conftest.s >&5
29055 fi
29056 rm -f conftest.o conftest.s
29057 fi
29058 fi
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29060 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29061 if test $gcc_cv_as_ix86_filds = yes; then
29062
29063 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29064
29065 fi
29066
29067
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29069 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29070 if ${gcc_cv_as_ix86_fildq+:} false; then :
29071 $as_echo_n "(cached) " >&6
29072 else
29073 gcc_cv_as_ix86_fildq=no
29074 if test x$gcc_cv_as != x; then
29075 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29078 (eval $ac_try) 2>&5
29079 ac_status=$?
29080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29081 test $ac_status = 0; }; }
29082 then
29083 gcc_cv_as_ix86_fildq=yes
29084 else
29085 echo "configure: failed program was" >&5
29086 cat conftest.s >&5
29087 fi
29088 rm -f conftest.o conftest.s
29089 fi
29090 fi
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29092 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29093 if test $gcc_cv_as_ix86_fildq = yes; then
29094
29095 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29096
29097 fi
29098
29099
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29101 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29102 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29103 $as_echo_n "(cached) " >&6
29104 else
29105 gcc_cv_as_ix86_cmov_sun_syntax=no
29106 if test x$gcc_cv_as != x; then
29107 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29110 (eval $ac_try) 2>&5
29111 ac_status=$?
29112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29113 test $ac_status = 0; }; }
29114 then
29115 gcc_cv_as_ix86_cmov_sun_syntax=yes
29116 else
29117 echo "configure: failed program was" >&5
29118 cat conftest.s >&5
29119 fi
29120 rm -f conftest.o conftest.s
29121 fi
29122 fi
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29124 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29125 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29126
29127 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29128
29129 fi
29130
29131
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29133 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29134 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29135 $as_echo_n "(cached) " >&6
29136 else
29137 gcc_cv_as_ix86_ffreep=no
29138 if test x$gcc_cv_as != x; then
29139 $as_echo 'ffreep %st(1)' > conftest.s
29140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29145 test $ac_status = 0; }; }
29146 then
29147 gcc_cv_as_ix86_ffreep=yes
29148 else
29149 echo "configure: failed program was" >&5
29150 cat conftest.s >&5
29151 fi
29152 rm -f conftest.o conftest.s
29153 fi
29154 fi
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29156 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29157 if test $gcc_cv_as_ix86_ffreep = yes; then
29158
29159 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29160
29161 fi
29162
29163
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29165 $as_echo_n "checking assembler for .quad directive... " >&6; }
29166 if ${gcc_cv_as_ix86_quad+:} false; then :
29167 $as_echo_n "(cached) " >&6
29168 else
29169 gcc_cv_as_ix86_quad=no
29170 if test x$gcc_cv_as != x; then
29171 $as_echo '.quad 0' > conftest.s
29172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; }
29178 then
29179 gcc_cv_as_ix86_quad=yes
29180 else
29181 echo "configure: failed program was" >&5
29182 cat conftest.s >&5
29183 fi
29184 rm -f conftest.o conftest.s
29185 fi
29186 fi
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29188 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29189 if test $gcc_cv_as_ix86_quad = yes; then
29190
29191 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29192
29193 fi
29194
29195
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29197 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29198 if ${gcc_cv_as_ix86_sahf+:} false; then :
29199 $as_echo_n "(cached) " >&6
29200 else
29201 gcc_cv_as_ix86_sahf=no
29202 if test x$gcc_cv_as != x; then
29203 $as_echo '.code64
29204 sahf' > conftest.s
29205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29210 test $ac_status = 0; }; }
29211 then
29212 gcc_cv_as_ix86_sahf=yes
29213 else
29214 echo "configure: failed program was" >&5
29215 cat conftest.s >&5
29216 fi
29217 rm -f conftest.o conftest.s
29218 fi
29219 fi
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29221 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29222 if test $gcc_cv_as_ix86_sahf = yes; then
29223
29224 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29225
29226 fi
29227
29228
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29230 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29231 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29232 $as_echo_n "(cached) " >&6
29233 else
29234 gcc_cv_as_ix86_interunit_movq=no
29235 if test x$gcc_cv_as != x; then
29236 $as_echo '.code64
29237 movq %mm0, %rax
29238 movq %rax, %xmm0' > conftest.s
29239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; }
29245 then
29246 gcc_cv_as_ix86_interunit_movq=yes
29247 else
29248 echo "configure: failed program was" >&5
29249 cat conftest.s >&5
29250 fi
29251 rm -f conftest.o conftest.s
29252 fi
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29255 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29256
29257
29258
29259 cat >>confdefs.h <<_ACEOF
29260 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29261 _ACEOF
29262
29263
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29265 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29266 if ${gcc_cv_as_ix86_hle+:} false; then :
29267 $as_echo_n "(cached) " >&6
29268 else
29269 gcc_cv_as_ix86_hle=no
29270 if test x$gcc_cv_as != x; then
29271 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29277 test $ac_status = 0; }; }
29278 then
29279 gcc_cv_as_ix86_hle=yes
29280 else
29281 echo "configure: failed program was" >&5
29282 cat conftest.s >&5
29283 fi
29284 rm -f conftest.o conftest.s
29285 fi
29286 fi
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29288 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29289 if test $gcc_cv_as_ix86_hle = yes; then
29290
29291 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29292
29293 fi
29294
29295
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29297 $as_echo_n "checking assembler for swap suffix... " >&6; }
29298 if ${gcc_cv_as_ix86_swap+:} false; then :
29299 $as_echo_n "(cached) " >&6
29300 else
29301 gcc_cv_as_ix86_swap=no
29302 if test x$gcc_cv_as != x; then
29303 $as_echo 'movl.s %esp, %ebp' > conftest.s
29304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29306 (eval $ac_try) 2>&5
29307 ac_status=$?
29308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309 test $ac_status = 0; }; }
29310 then
29311 gcc_cv_as_ix86_swap=yes
29312 else
29313 echo "configure: failed program was" >&5
29314 cat conftest.s >&5
29315 fi
29316 rm -f conftest.o conftest.s
29317 fi
29318 fi
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29320 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29321 if test $gcc_cv_as_ix86_swap = yes; then
29322
29323 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29324
29325 fi
29326
29327
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29329 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29330 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29331 $as_echo_n "(cached) " >&6
29332 else
29333 gcc_cv_as_ix86_diff_sect_delta=no
29334 if test x$gcc_cv_as != x; then
29335 $as_echo '.section .rodata
29336 .L1:
29337 .long .L2-.L1
29338 .long .L3-.L1
29339 .text
29340 .L3: nop
29341 .L2: nop' > conftest.s
29342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; }
29348 then
29349 gcc_cv_as_ix86_diff_sect_delta=yes
29350 else
29351 echo "configure: failed program was" >&5
29352 cat conftest.s >&5
29353 fi
29354 rm -f conftest.o conftest.s
29355 fi
29356 fi
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29358 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29359 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29360
29361 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29362
29363 fi
29364
29365
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29367 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29368 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29369 $as_echo_n "(cached) " >&6
29370 else
29371 gcc_cv_as_ix86_rep_lock_prefix=no
29372 if test x$gcc_cv_as != x; then
29373 $as_echo 'rep movsl
29374 rep ret
29375 rep nop
29376 rep bsf %ecx, %eax
29377 rep bsr %ecx, %eax
29378 lock addl %edi, (%eax,%esi)
29379 lock orl $0, (%esp)' > conftest.s
29380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29385 test $ac_status = 0; }; }
29386 then
29387 gcc_cv_as_ix86_rep_lock_prefix=yes
29388 else
29389 echo "configure: failed program was" >&5
29390 cat conftest.s >&5
29391 fi
29392 rm -f conftest.o conftest.s
29393 fi
29394 fi
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29396 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29397 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29398
29399 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29400
29401 fi
29402
29403
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29405 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29406 if ${gcc_cv_as_ix86_ud2+:} false; then :
29407 $as_echo_n "(cached) " >&6
29408 else
29409 gcc_cv_as_ix86_ud2=no
29410 if test x$gcc_cv_as != x; then
29411 $as_echo 'ud2' > conftest.s
29412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29417 test $ac_status = 0; }; }
29418 then
29419 gcc_cv_as_ix86_ud2=yes
29420 else
29421 echo "configure: failed program was" >&5
29422 cat conftest.s >&5
29423 fi
29424 rm -f conftest.o conftest.s
29425 fi
29426 fi
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29428 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29429 if test $gcc_cv_as_ix86_ud2 = yes; then
29430
29431 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29432
29433 fi
29434
29435
29436 # Enforce 32-bit output with gas and gld.
29437 if test x$gas = xyes; then
29438 as_ix86_gas_32_opt="--32"
29439 fi
29440 if echo "$ld_ver" | grep GNU > /dev/null; then
29441 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29442 ld_ix86_gld_32_opt="-melf_i386_sol2"
29443 else
29444 ld_ix86_gld_32_opt="-melf_i386"
29445 fi
29446 fi
29447
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29449 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29450 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29451 $as_echo_n "(cached) " >&6
29452 else
29453 gcc_cv_as_ix86_tlsgdplt=no
29454 if test x$gcc_cv_as != x; then
29455 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29458 (eval $ac_try) 2>&5
29459 ac_status=$?
29460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29461 test $ac_status = 0; }; }
29462 then
29463 if test x$gcc_cv_ld != x \
29464 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29465 gcc_cv_as_ix86_tlsgdplt=yes
29466 fi
29467 rm -f conftest
29468 else
29469 echo "configure: failed program was" >&5
29470 cat conftest.s >&5
29471 fi
29472 rm -f conftest.o conftest.s
29473 fi
29474 fi
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29476 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29477 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29478
29479 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29480
29481 fi
29482
29483
29484 conftest_s='
29485 .section .tdata,"aw'$tls_section_flag'",@progbits
29486 tls_ld:
29487 .section .text,"ax",@progbits
29488 call tls_ld@tlsldmplt'
29489
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29491 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29492 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29493 $as_echo_n "(cached) " >&6
29494 else
29495 gcc_cv_as_ix86_tlsldmplt=no
29496 if test x$gcc_cv_as != x; then
29497 $as_echo "$conftest_s" > conftest.s
29498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29503 test $ac_status = 0; }; }
29504 then
29505 if test x$gcc_cv_ld != x \
29506 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29507 gcc_cv_as_ix86_tlsldmplt=yes
29508 fi
29509 rm -f conftest
29510 else
29511 echo "configure: failed program was" >&5
29512 cat conftest.s >&5
29513 fi
29514 rm -f conftest.o conftest.s
29515 fi
29516 fi
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29518 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29519
29520
29521
29522 cat >>confdefs.h <<_ACEOF
29523 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29524 _ACEOF
29525
29526
29527 conftest_s='
29528 .section .text,"ax",@progbits
29529 .globl _start
29530 .type _start, @function
29531 _start:
29532 leal value@tlsldm(%ebx), %eax
29533 call ___tls_get_addr@plt
29534
29535 .section .tdata,"aw'$tls_section_flag'",@progbits
29536 .type value, @object
29537 value:'
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29539 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29540 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29541 $as_echo_n "(cached) " >&6
29542 else
29543 gcc_cv_as_ix86_tlsldm=no
29544 if test x$gcc_cv_as != x; then
29545 $as_echo "$conftest_s" > conftest.s
29546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29548 (eval $ac_try) 2>&5
29549 ac_status=$?
29550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29551 test $ac_status = 0; }; }
29552 then
29553 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29554 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29555 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29556 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29557 gcc_cv_as_ix86_tlsldm=yes
29558 fi
29559 fi
29560 rm -f conftest
29561 else
29562 echo "configure: failed program was" >&5
29563 cat conftest.s >&5
29564 fi
29565 rm -f conftest.o conftest.s
29566 fi
29567 fi
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29569 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29570
29571
29572
29573 cat >>confdefs.h <<_ACEOF
29574 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29575 _ACEOF
29576
29577
29578 conftest_s='
29579 .data
29580 bar:
29581 .byte 1
29582 .text
29583 .global _start
29584 _start:
29585 cmpl $0, bar@GOT
29586 jmp *_start@GOT'
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29588 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29589 if ${gcc_cv_as_ix86_got32x+:} false; then :
29590 $as_echo_n "(cached) " >&6
29591 else
29592 gcc_cv_as_ix86_got32x=no
29593 if test x$gcc_cv_as != x; then
29594 $as_echo "$conftest_s" > conftest.s
29595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29597 (eval $ac_try) 2>&5
29598 ac_status=$?
29599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29600 test $ac_status = 0; }; }
29601 then
29602 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29603 && test x$gcc_cv_readelf != x \
29604 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29605 | grep R_386_GOT32X > /dev/null 2>&1 \
29606 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29607 if $gcc_cv_objdump -dw conftest 2>&1 \
29608 | grep 0xffffff > /dev/null 2>&1; then
29609 gcc_cv_as_ix86_got32x=no
29610 else
29611 gcc_cv_as_ix86_got32x=yes
29612 fi
29613 fi
29614 rm -f conftest
29615 else
29616 echo "configure: failed program was" >&5
29617 cat conftest.s >&5
29618 fi
29619 rm -f conftest.o conftest.s
29620 fi
29621 fi
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29623 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29624
29625
29626
29627 cat >>confdefs.h <<_ACEOF
29628 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29629 _ACEOF
29630
29631
29632 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29633 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29634 if echo "$ld_ver" | grep GNU > /dev/null; then
29635 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29636 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29637 else
29638 ld_ix86_gld_64_opt="-melf_x86_64"
29639 fi
29640 fi
29641 # Enforce 64-bit output with gas and gld.
29642 if test x$gas = xyes; then
29643 as_ix86_gas_64_opt="--64"
29644 fi
29645 conftest_s='
29646 .text
29647 .globl _start
29648 .type _start, @function
29649 _start:
29650 addq %r23,foo@GOTTPOFF(%rip), %r15
29651 .section .tdata,"awT",@progbits
29652 .type foo, @object
29653 foo:
29654 .quad 0'
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29656 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29657 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29658 $as_echo_n "(cached) " >&6
29659 else
29660 gcc_cv_as_x86_64_code_6_gottpoff=no
29661 if test x$gcc_cv_as != x; then
29662 $as_echo "$conftest_s" > conftest.s
29663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29665 (eval $ac_try) 2>&5
29666 ac_status=$?
29667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29668 test $ac_status = 0; }; }
29669 then
29670 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29671 && test x$gcc_cv_readelf != x \
29672 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29673 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29674 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29675 if $gcc_cv_objdump -dw conftest 2>&1 \
29676 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29677 gcc_cv_as_x86_64_code_6_gottpoff=yes
29678 else
29679 gcc_cv_as_x86_64_code_6_gottpoff=no
29680 fi
29681 fi
29682 rm -f conftest
29683 else
29684 echo "configure: failed program was" >&5
29685 cat conftest.s >&5
29686 fi
29687 rm -f conftest.o conftest.s
29688 fi
29689 fi
29690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29691 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29692
29693
29694
29695 cat >>confdefs.h <<_ACEOF
29696 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29697 _ACEOF
29698
29699
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29701 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29702 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29703 $as_echo_n "(cached) " >&6
29704 else
29705 gcc_cv_as_ix86_gotoff_in_data=no
29706 if test x$gcc_cv_as != x; then
29707 $as_echo ' .text
29708 .L0:
29709 nop
29710 .data
29711 .long .L0@GOTOFF' > conftest.s
29712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29714 (eval $ac_try) 2>&5
29715 ac_status=$?
29716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29717 test $ac_status = 0; }; }
29718 then
29719 gcc_cv_as_ix86_gotoff_in_data=yes
29720 else
29721 echo "configure: failed program was" >&5
29722 cat conftest.s >&5
29723 fi
29724 rm -f conftest.o conftest.s
29725 fi
29726 fi
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29728 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29729
29730
29731
29732 cat >>confdefs.h <<_ACEOF
29733 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29734 _ACEOF
29735
29736
29737 conftest_s='
29738 .section .text,"ax",@progbits
29739 .globl _start
29740 .type _start, @function
29741 _start:
29742 leal ld@tlsldm(%ecx), %eax
29743 call *___tls_get_addr@GOT(%ecx)
29744 leal gd@tlsgd(%ecx), %eax
29745 call *___tls_get_addr@GOT(%ecx)
29746
29747 .section .tdata,"aw'$tls_section_flag'",@progbits
29748 .type ld, @object
29749 ld:
29750 .byte 0
29751 .globl gd
29752 .type gd, @object
29753 gd:
29754 .byte 0'
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29756 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29757 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29758 $as_echo_n "(cached) " >&6
29759 else
29760 gcc_cv_as_ix86_tls_get_addr_via_got=no
29761 if test x$gcc_cv_as != x; then
29762 $as_echo "$conftest_s" > conftest.s
29763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29768 test $ac_status = 0; }; }
29769 then
29770 if test x$gcc_cv_ld != x \
29771 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29772 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29773 fi
29774 rm -f conftest
29775 else
29776 echo "configure: failed program was" >&5
29777 cat conftest.s >&5
29778 fi
29779 rm -f conftest.o conftest.s
29780 fi
29781 fi
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29783 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29784
29785
29786
29787 cat >>confdefs.h <<_ACEOF
29788 #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`
29789 _ACEOF
29790
29791 ;;
29792
29793 ia64*-*-*)
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29795 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29796 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29797 $as_echo_n "(cached) " >&6
29798 else
29799 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29800 if test x$gcc_cv_as != x; then
29801 $as_echo ' .text
29802 addl r15 = @ltoffx(x#), gp
29803 ;;
29804 ld8.mov r16 = [r15], x#
29805 ' > conftest.s
29806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29811 test $ac_status = 0; }; }
29812 then
29813 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29814 else
29815 echo "configure: failed program was" >&5
29816 cat conftest.s >&5
29817 fi
29818 rm -f conftest.o conftest.s
29819 fi
29820 fi
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29822 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29823 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29824
29825 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29826
29827 fi
29828
29829
29830 ;;
29831
29832 powerpc*-*-*)
29833
29834 case $target in
29835 *-*-darwin*)
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29837 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29838 if ${gcc_cv_as_machine_directive+:} false; then :
29839 $as_echo_n "(cached) " >&6
29840 else
29841 gcc_cv_as_machine_directive=no
29842 if test x$gcc_cv_as != x; then
29843 $as_echo ' .machine ppc7400' > conftest.s
29844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29846 (eval $ac_try) 2>&5
29847 ac_status=$?
29848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29849 test $ac_status = 0; }; }
29850 then
29851 gcc_cv_as_machine_directive=yes
29852 else
29853 echo "configure: failed program was" >&5
29854 cat conftest.s >&5
29855 fi
29856 rm -f conftest.o conftest.s
29857 fi
29858 fi
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29860 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29861
29862
29863 if test x$gcc_cv_as_machine_directive != xyes; then
29864 echo "*** This target requires an assembler supporting \".machine\"" >&2
29865 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29866 test x$build = x$target && exit 1
29867 fi
29868 ;;
29869 esac
29870
29871 case $target in
29872 *-*-aix*) conftest_s=' .machine "pwr5"
29873 .csect .text[PR]
29874 mfcr 3,128';;
29875 *-*-darwin*) conftest_s=' .text
29876 mfcr r3,128';;
29877 *) conftest_s=' .machine power4
29878 .text
29879 mfcr 3,128';;
29880 esac
29881
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
29883 $as_echo_n "checking assembler for mfcr field support... " >&6; }
29884 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
29885 $as_echo_n "(cached) " >&6
29886 else
29887 gcc_cv_as_powerpc_mfcrf=no
29888 if test x$gcc_cv_as != x; then
29889 $as_echo "$conftest_s" > conftest.s
29890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29892 (eval $ac_try) 2>&5
29893 ac_status=$?
29894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29895 test $ac_status = 0; }; }
29896 then
29897 gcc_cv_as_powerpc_mfcrf=yes
29898 else
29899 echo "configure: failed program was" >&5
29900 cat conftest.s >&5
29901 fi
29902 rm -f conftest.o conftest.s
29903 fi
29904 fi
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
29906 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
29907 if test $gcc_cv_as_powerpc_mfcrf = yes; then
29908
29909 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
29910
29911 fi
29912
29913
29914 case $target in
29915 *-*-aix*) conftest_s=' .machine "pwr10"
29916 .csect .text[PR]
29917 tend. 0';;
29918 *-*-darwin*) conftest_s=' .text
29919 tend. 0';;
29920 *) conftest_s=' .machine power10
29921 .text
29922 tend. 0';;
29923 esac
29924
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
29926 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
29927 if ${gcc_cv_as_power10_htm+:} false; then :
29928 $as_echo_n "(cached) " >&6
29929 else
29930 gcc_cv_as_power10_htm=no
29931 if test x$gcc_cv_as != x; then
29932 $as_echo "$conftest_s" > conftest.s
29933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29938 test $ac_status = 0; }; }
29939 then
29940 gcc_cv_as_power10_htm=yes
29941 else
29942 echo "configure: failed program was" >&5
29943 cat conftest.s >&5
29944 fi
29945 rm -f conftest.o conftest.s
29946 fi
29947 fi
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
29949 $as_echo "$gcc_cv_as_power10_htm" >&6; }
29950 if test $gcc_cv_as_power10_htm = yes; then
29951
29952 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
29953
29954 fi
29955
29956
29957 case $target in
29958 *-*-aix*) conftest_s=' .csect .text[PR]
29959 LCF..0:
29960 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
29961 *-*-darwin*)
29962 conftest_s=' .text
29963 LCF0:
29964 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
29965 *) conftest_s=' .text
29966 .LCF0:
29967 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
29968 esac
29969
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
29971 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
29972 if ${gcc_cv_as_powerpc_rel16+:} false; then :
29973 $as_echo_n "(cached) " >&6
29974 else
29975 gcc_cv_as_powerpc_rel16=no
29976 if test x$gcc_cv_as != x; then
29977 $as_echo "$conftest_s" > conftest.s
29978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
29979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29980 (eval $ac_try) 2>&5
29981 ac_status=$?
29982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29983 test $ac_status = 0; }; }
29984 then
29985 gcc_cv_as_powerpc_rel16=yes
29986 else
29987 echo "configure: failed program was" >&5
29988 cat conftest.s >&5
29989 fi
29990 rm -f conftest.o conftest.s
29991 fi
29992 fi
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
29994 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
29995 if test $gcc_cv_as_powerpc_rel16 = yes; then
29996
29997 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
29998
29999 fi
30000
30001
30002 case $target in
30003 *-*-aix*) conftest_s=' .machine "pwr7"
30004 .csect .text[PR]
30005 lxvd2x 1,2,3';;
30006 *) conftest_s=' .machine power7
30007 .text
30008 lxvd2x 1,2,3';;
30009 esac
30010
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30012 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30013 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30014 $as_echo_n "(cached) " >&6
30015 else
30016 gcc_cv_as_powerpc_vsx=no
30017 if test x$gcc_cv_as != x; then
30018 $as_echo "$conftest_s" > conftest.s
30019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30021 (eval $ac_try) 2>&5
30022 ac_status=$?
30023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30024 test $ac_status = 0; }; }
30025 then
30026 gcc_cv_as_powerpc_vsx=yes
30027 else
30028 echo "configure: failed program was" >&5
30029 cat conftest.s >&5
30030 fi
30031 rm -f conftest.o conftest.s
30032 fi
30033 fi
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30035 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30036 if test $gcc_cv_as_powerpc_vsx = yes; then
30037
30038 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30039
30040 fi
30041
30042
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30044 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30045 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30046 $as_echo_n "(cached) " >&6
30047 else
30048 gcc_cv_as_powerpc_gnu_attribute=no
30049 if test x$gcc_cv_as != x; then
30050 $as_echo '.gnu_attribute 4,1' > conftest.s
30051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30053 (eval $ac_try) 2>&5
30054 ac_status=$?
30055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30056 test $ac_status = 0; }; }
30057 then
30058 gcc_cv_as_powerpc_gnu_attribute=yes
30059 else
30060 echo "configure: failed program was" >&5
30061 cat conftest.s >&5
30062 fi
30063 rm -f conftest.o conftest.s
30064 fi
30065 fi
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30067 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30068 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30069
30070 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30071
30072 fi
30073
30074
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30076 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30077 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30078 $as_echo_n "(cached) " >&6
30079 else
30080 gcc_cv_as_powerpc_entry_markers=no
30081 if test x$gcc_cv_as != x; then
30082 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30085 (eval $ac_try) 2>&5
30086 ac_status=$?
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; }
30089 then
30090 gcc_cv_as_powerpc_entry_markers=yes
30091 else
30092 echo "configure: failed program was" >&5
30093 cat conftest.s >&5
30094 fi
30095 rm -f conftest.o conftest.s
30096 fi
30097 fi
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30099 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30100 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30101
30102 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30103
30104 fi
30105
30106
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30108 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30109 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30110 $as_echo_n "(cached) " >&6
30111 else
30112 gcc_cv_as_powerpc_pltseq_markers=no
30113 if test x$gcc_cv_as != x; then
30114 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -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_pltseq_markers=yes
30123 else
30124 echo "configure: failed program was" >&5
30125 cat conftest.s >&5
30126 fi
30127 rm -f conftest.o conftest.s
30128 fi
30129 fi
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30131 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30132 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30133
30134 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30135
30136 fi
30137
30138
30139 case $target in
30140 *-*-aix*)
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30142 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30143 if ${gcc_cv_as_aix_ref+:} false; then :
30144 $as_echo_n "(cached) " >&6
30145 else
30146 gcc_cv_as_aix_ref=no
30147 if test x$gcc_cv_as != x; then
30148 $as_echo ' .csect stuff[rw]
30149 stuff:
30150 .long 1
30151 .extern sym
30152 .ref sym
30153 ' > conftest.s
30154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30156 (eval $ac_try) 2>&5
30157 ac_status=$?
30158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30159 test $ac_status = 0; }; }
30160 then
30161 gcc_cv_as_aix_ref=yes
30162 else
30163 echo "configure: failed program was" >&5
30164 cat conftest.s >&5
30165 fi
30166 rm -f conftest.o conftest.s
30167 fi
30168 fi
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30170 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30171 if test $gcc_cv_as_aix_ref = yes; then
30172
30173 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30174
30175 fi
30176
30177
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30179 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30180 if ${gcc_cv_as_aix_dwloc+:} false; then :
30181 $as_echo_n "(cached) " >&6
30182 else
30183 gcc_cv_as_aix_dwloc=no
30184 if test x$gcc_cv_as != x; then
30185 $as_echo ' .dwsect 0xA0000
30186 Lframe..0:
30187 .vbyte 4,Lframe..0
30188 ' > conftest.s
30189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30194 test $ac_status = 0; }; }
30195 then
30196 gcc_cv_as_aix_dwloc=yes
30197 else
30198 echo "configure: failed program was" >&5
30199 cat conftest.s >&5
30200 fi
30201 rm -f conftest.o conftest.s
30202 fi
30203 fi
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30205 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30206 if test $gcc_cv_as_aix_dwloc = yes; then
30207
30208 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30209
30210 fi
30211
30212 ;;
30213 esac
30214 ;;
30215
30216 mips*-*-*)
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30218 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30219 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30220 $as_echo_n "(cached) " >&6
30221 else
30222 gcc_cv_as_mips_explicit_relocs_pcrel=no
30223 if test x$gcc_cv_as != x; then
30224 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30227 (eval $ac_try) 2>&5
30228 ac_status=$?
30229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30230 test $ac_status = 0; }; }
30231 then
30232 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30233 else
30234 echo "configure: failed program was" >&5
30235 cat conftest.s >&5
30236 fi
30237 rm -f conftest.o conftest.s
30238 fi
30239 fi
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30241 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30242 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30243
30244 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30245
30246 fi
30247
30248
30249 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30251 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30252 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30253 $as_echo_n "(cached) " >&6
30254 else
30255 gcc_cv_as_mips_explicit_relocs=no
30256 if test x$gcc_cv_as != x; then
30257 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30260 (eval $ac_try) 2>&5
30261 ac_status=$?
30262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30263 test $ac_status = 0; }; }
30264 then
30265 gcc_cv_as_mips_explicit_relocs=yes
30266 else
30267 echo "configure: failed program was" >&5
30268 cat conftest.s >&5
30269 fi
30270 rm -f conftest.o conftest.s
30271 fi
30272 fi
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30274 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30275 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30276
30277 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30278
30279 fi
30280
30281 fi
30282
30283 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30284
30285 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30286
30287 fi
30288
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30290 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30291 if ${gcc_cv_as_mips_no_shared+:} false; then :
30292 $as_echo_n "(cached) " >&6
30293 else
30294 gcc_cv_as_mips_no_shared=no
30295 if test x$gcc_cv_as != x; then
30296 $as_echo 'nop' > conftest.s
30297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30299 (eval $ac_try) 2>&5
30300 ac_status=$?
30301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30302 test $ac_status = 0; }; }
30303 then
30304 gcc_cv_as_mips_no_shared=yes
30305 else
30306 echo "configure: failed program was" >&5
30307 cat conftest.s >&5
30308 fi
30309 rm -f conftest.o conftest.s
30310 fi
30311 fi
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30313 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30314 if test $gcc_cv_as_mips_no_shared = yes; then
30315
30316 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30317
30318 fi
30319
30320
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30322 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30323 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30324 $as_echo_n "(cached) " >&6
30325 else
30326 gcc_cv_as_mips_gnu_attribute=no
30327 if test x$gcc_cv_as != x; then
30328 $as_echo '.gnu_attribute 4,1' > conftest.s
30329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30331 (eval $ac_try) 2>&5
30332 ac_status=$?
30333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30334 test $ac_status = 0; }; }
30335 then
30336 gcc_cv_as_mips_gnu_attribute=yes
30337 else
30338 echo "configure: failed program was" >&5
30339 cat conftest.s >&5
30340 fi
30341 rm -f conftest.o conftest.s
30342 fi
30343 fi
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30345 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30346 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30347
30348 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30349
30350 fi
30351
30352
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30354 $as_echo_n "checking assembler for .module support... " >&6; }
30355 if ${gcc_cv_as_mips_dot_module+:} false; then :
30356 $as_echo_n "(cached) " >&6
30357 else
30358 gcc_cv_as_mips_dot_module=no
30359 if test x$gcc_cv_as != x; then
30360 $as_echo '.module mips2
30361 .module fp=xx' > conftest.s
30362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -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_dot_module=yes
30370 else
30371 echo "configure: failed program was" >&5
30372 cat conftest.s >&5
30373 fi
30374 rm -f conftest.o conftest.s
30375 fi
30376 fi
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30378 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30379 if test $gcc_cv_as_mips_dot_module = yes; then
30380
30381 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30382
30383 fi
30384
30385 if test x$gcc_cv_as_mips_dot_module = xno \
30386 && test x$with_fp_32 != x; then
30387 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30388 fi
30389
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30391 $as_echo_n "checking assembler for .micromips support... " >&6; }
30392 if ${gcc_cv_as_micromips_support+:} false; then :
30393 $as_echo_n "(cached) " >&6
30394 else
30395 gcc_cv_as_micromips_support=no
30396 if test x$gcc_cv_as != x; then
30397 $as_echo '.set micromips' > conftest.s
30398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30400 (eval $ac_try) 2>&5
30401 ac_status=$?
30402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30403 test $ac_status = 0; }; }
30404 then
30405 gcc_cv_as_micromips_support=yes
30406 else
30407 echo "configure: failed program was" >&5
30408 cat conftest.s >&5
30409 fi
30410 rm -f conftest.o conftest.s
30411 fi
30412 fi
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30414 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30415 if test $gcc_cv_as_micromips_support = yes; then
30416
30417 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30418
30419 fi
30420
30421
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30423 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30424 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30425 $as_echo_n "(cached) " >&6
30426 else
30427 gcc_cv_as_mips_dtprelword=no
30428 if test x$gcc_cv_as != x; then
30429 $as_echo '.section .tdata,"awT",@progbits
30430 x:
30431 .word 2
30432 .text
30433 .dtprelword x+0x8000' > conftest.s
30434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30439 test $ac_status = 0; }; }
30440 then
30441 gcc_cv_as_mips_dtprelword=yes
30442 else
30443 echo "configure: failed program was" >&5
30444 cat conftest.s >&5
30445 fi
30446 rm -f conftest.o conftest.s
30447 fi
30448 fi
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30450 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30451 if test $gcc_cv_as_mips_dtprelword = yes; then
30452
30453 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30454
30455 fi
30456
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30459 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30460 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30461 $as_echo_n "(cached) " >&6
30462 else
30463 gcc_cv_as_mips_dspr1_mult=no
30464 if test x$gcc_cv_as != x; then
30465 $as_echo ' .set mips32r2
30466 .set nodspr2
30467 .set dsp
30468 madd $ac3,$4,$5
30469 maddu $ac3,$4,$5
30470 msub $ac3,$4,$5
30471 msubu $ac3,$4,$5
30472 mult $ac3,$4,$5
30473 multu $ac3,$4,$5' > conftest.s
30474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30476 (eval $ac_try) 2>&5
30477 ac_status=$?
30478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30479 test $ac_status = 0; }; }
30480 then
30481 gcc_cv_as_mips_dspr1_mult=yes
30482 else
30483 echo "configure: failed program was" >&5
30484 cat conftest.s >&5
30485 fi
30486 rm -f conftest.o conftest.s
30487 fi
30488 fi
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30490 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30491 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30492
30493 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30494
30495 fi
30496
30497
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30499 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30500 gcc_cv_as_ld_jalr_reloc=no
30501 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30502 if test $in_tree_ld = yes ; then
30503 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 \
30504 && test $in_tree_ld_is_elf = yes; then
30505 gcc_cv_as_ld_jalr_reloc=yes
30506 fi
30507 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30508 echo ' .ent x' > conftest.s
30509 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30510 echo ' lw $25,%call16(y)($28)' >> conftest.s
30511 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30512 echo '1: jalr $25' >> conftest.s
30513 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30514 echo '1: jalr $25' >> conftest.s
30515 echo ' .end x' >> conftest.s
30516 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30517 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30518 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30519 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30520 gcc_cv_as_ld_jalr_reloc=yes
30521 fi
30522 fi
30523 rm -f conftest.*
30524 fi
30525 fi
30526 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30527 if test x$target_cpu_default = x; then
30528 target_cpu_default=MASK_RELAX_PIC_CALLS
30529 else
30530 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30531 fi
30532 fi
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30534 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30535
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30537 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30538 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30539 $as_echo_n "(cached) " >&6
30540 else
30541 gcc_cv_ld_mips_personality_relaxation=no
30542 if test $in_tree_ld = yes ; then
30543 if test "$gcc_cv_gld_major_version" -eq 2 \
30544 -a "$gcc_cv_gld_minor_version" -ge 21 \
30545 -o "$gcc_cv_gld_major_version" -gt 2; then
30546 gcc_cv_ld_mips_personality_relaxation=yes
30547 fi
30548 elif test x$gcc_cv_as != x \
30549 -a x$gcc_cv_ld != x \
30550 -a x$gcc_cv_readelf != x ; then
30551 cat > conftest.s <<EOF
30552 .cfi_startproc
30553 .cfi_personality 0x80,indirect_ptr
30554 .ent test
30555 test:
30556 nop
30557 .end test
30558 .cfi_endproc
30559
30560 .section .data,"aw",@progbits
30561 indirect_ptr:
30562 .dc.a personality
30563 EOF
30564 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30565 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30566 if $gcc_cv_readelf -d conftest 2>&1 \
30567 | grep TEXTREL > /dev/null 2>&1; then
30568 :
30569 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30570 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30571 :
30572 else
30573 gcc_cv_ld_mips_personality_relaxation=yes
30574 fi
30575 fi
30576 fi
30577 rm -f conftest.s conftest.o conftest
30578 fi
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30580 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30581 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30582
30583 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30584
30585 fi
30586
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30588 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30589 if ${gcc_cv_as_mips_nan+:} false; then :
30590 $as_echo_n "(cached) " >&6
30591 else
30592 gcc_cv_as_mips_nan=no
30593 if test x$gcc_cv_as != x; then
30594 $as_echo '' > conftest.s
30595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30597 (eval $ac_try) 2>&5
30598 ac_status=$?
30599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30600 test $ac_status = 0; }; }
30601 then
30602 gcc_cv_as_mips_nan=yes
30603 else
30604 echo "configure: failed program was" >&5
30605 cat conftest.s >&5
30606 fi
30607 rm -f conftest.o conftest.s
30608 fi
30609 fi
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30611 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30612 if test $gcc_cv_as_mips_nan = yes; then
30613
30614 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30615
30616 fi
30617
30618 if test x$gcc_cv_as_mips_nan = xno \
30619 && test x$with_nan != x; then
30620 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30621 fi
30622 ;;
30623 msp430-*-*)
30624 # Earlier GAS versions generically support .gnu_attribute, but the
30625 # msp430 assembler will not do anything with it.
30626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30627 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30628 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30629 $as_echo_n "(cached) " >&6
30630 else
30631 gcc_cv_as_msp430_gnu_attribute=no
30632 if test x$gcc_cv_as != x; then
30633 $as_echo '.gnu_attribute 4,1' > conftest.s
30634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30636 (eval $ac_try) 2>&5
30637 ac_status=$?
30638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30639 test $ac_status = 0; }; }
30640 then
30641 gcc_cv_as_msp430_gnu_attribute=yes
30642 else
30643 echo "configure: failed program was" >&5
30644 cat conftest.s >&5
30645 fi
30646 rm -f conftest.o conftest.s
30647 fi
30648 fi
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30650 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30651 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30652
30653 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30654
30655 fi
30656
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30658 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30659 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30660 $as_echo_n "(cached) " >&6
30661 else
30662 gcc_cv_as_msp430_mspabi_attribute=no
30663 if test x$gcc_cv_as != x; then
30664 $as_echo '.mspabi_attribute 4,2' > conftest.s
30665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30670 test $ac_status = 0; }; }
30671 then
30672 gcc_cv_as_msp430_mspabi_attribute=yes
30673 else
30674 echo "configure: failed program was" >&5
30675 cat conftest.s >&5
30676 fi
30677 rm -f conftest.o conftest.s
30678 fi
30679 fi
30680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30681 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30682 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30683
30684 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30685
30686 fi
30687
30688 if test x$enable_newlib_nano_formatted_io = xyes; then
30689
30690 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30691
30692 fi
30693 ;;
30694 nios2-*-*)
30695 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30696 # syntax that is documented in the ABI specification.
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30698 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30699 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30700 $as_echo_n "(cached) " >&6
30701 else
30702 gcc_cv_as_nios2_gotoff_relocation=no
30703 if test x$gcc_cv_as != x; then
30704 $as_echo ' .extern foo
30705 .data
30706 .long %gotoff(foo)' > conftest.s
30707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30709 (eval $ac_try) 2>&5
30710 ac_status=$?
30711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; }
30713 then
30714 gcc_cv_as_nios2_gotoff_relocation=yes
30715 else
30716 echo "configure: failed program was" >&5
30717 cat conftest.s >&5
30718 fi
30719 rm -f conftest.o conftest.s
30720 fi
30721 fi
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30723 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30724 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30725
30726 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30727
30728 fi
30729
30730 ;;
30731 riscv*-*-*)
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30733 $as_echo_n "checking assembler for .attribute support... " >&6; }
30734 if ${gcc_cv_as_riscv_attribute+:} false; then :
30735 $as_echo_n "(cached) " >&6
30736 else
30737 gcc_cv_as_riscv_attribute=no
30738 if test x$gcc_cv_as != x; then
30739 $as_echo '.attribute stack_align,4' > conftest.s
30740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30742 (eval $ac_try) 2>&5
30743 ac_status=$?
30744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30745 test $ac_status = 0; }; }
30746 then
30747 gcc_cv_as_riscv_attribute=yes
30748 else
30749 echo "configure: failed program was" >&5
30750 cat conftest.s >&5
30751 fi
30752 rm -f conftest.o conftest.s
30753 fi
30754 fi
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30756 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30757 if test $gcc_cv_as_riscv_attribute = yes; then
30758
30759 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30760
30761 fi
30762
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30764 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30765 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30766 $as_echo_n "(cached) " >&6
30767 else
30768 gcc_cv_as_riscv_isa_spec=no
30769 if test x$gcc_cv_as != x; then
30770 $as_echo '' > conftest.s
30771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; }
30777 then
30778 gcc_cv_as_riscv_isa_spec=yes
30779 else
30780 echo "configure: failed program was" >&5
30781 cat conftest.s >&5
30782 fi
30783 rm -f conftest.o conftest.s
30784 fi
30785 fi
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30787 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30788 if test $gcc_cv_as_riscv_isa_spec = yes; then
30789
30790 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30791
30792 fi
30793
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30795 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30796 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30797 $as_echo_n "(cached) " >&6
30798 else
30799 gcc_cv_as_riscv_march_zifencei=no
30800 if test x$gcc_cv_as != x; then
30801 $as_echo '' > conftest.s
30802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30807 test $ac_status = 0; }; }
30808 then
30809 gcc_cv_as_riscv_march_zifencei=yes
30810 else
30811 echo "configure: failed program was" >&5
30812 cat conftest.s >&5
30813 fi
30814 rm -f conftest.o conftest.s
30815 fi
30816 fi
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30818 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30819 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30820
30821 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30822
30823 fi
30824
30825 ;;
30826 loongarch*-*-*)
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30828 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30829 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30830 $as_echo_n "(cached) " >&6
30831 else
30832 gcc_cv_as_loongarch_dtprelword=no
30833 if test x$gcc_cv_as != x; then
30834 $as_echo '' > conftest.s
30835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30840 test $ac_status = 0; }; }
30841 then
30842 .section .tdata,"awT",@progbits
30843 x:
30844 .word 2
30845 .text
30846 .dtprelword x+0x8000
30847 else
30848 echo "configure: failed program was" >&5
30849 cat conftest.s >&5
30850 fi
30851 rm -f conftest.o conftest.s
30852 fi
30853 fi
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30855 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30856
30857 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30858
30859 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30860
30861 fi
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30863 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30864 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30865 $as_echo_n "(cached) " >&6
30866 else
30867 gcc_cv_as_loongarch_explicit_relocs=no
30868 if test x$gcc_cv_as != x; then
30869 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30872 (eval $ac_try) 2>&5
30873 ac_status=$?
30874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30875 test $ac_status = 0; }; }
30876 then
30877 gcc_cv_as_loongarch_explicit_relocs=yes
30878 else
30879 echo "configure: failed program was" >&5
30880 cat conftest.s >&5
30881 fi
30882 rm -f conftest.o conftest.s
30883 fi
30884 fi
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30886 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30887 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30888
30889 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30890
30891 fi
30892
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30894 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30895 if ${gcc_cv_as_loongarch_call36+:} false; then :
30896 $as_echo_n "(cached) " >&6
30897 else
30898 gcc_cv_as_loongarch_call36=no
30899 if test x$gcc_cv_as != x; then
30900 $as_echo 'pcaddu18i $r1, %call36(a)
30901 jirl $r1, $r1, 0' > conftest.s
30902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30904 (eval $ac_try) 2>&5
30905 ac_status=$?
30906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907 test $ac_status = 0; }; }
30908 then
30909 gcc_cv_as_loongarch_call36=yes
30910 else
30911 echo "configure: failed program was" >&5
30912 cat conftest.s >&5
30913 fi
30914 rm -f conftest.o conftest.s
30915 fi
30916 fi
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
30918 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
30919 if test $gcc_cv_as_loongarch_call36 = yes; then
30920
30921 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
30922
30923 fi
30924
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
30926 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
30927 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
30928 $as_echo_n "(cached) " >&6
30929 else
30930 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
30931 if test x$gcc_cv_as != x; then
30932 $as_echo '.cfi_startproc
30933 .cfi_personality 0x9b,a
30934 .cfi_lsda 0x1b,b
30935 .cfi_endproc' > conftest.s
30936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30938 (eval $ac_try) 2>&5
30939 ac_status=$?
30940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30941 test $ac_status = 0; }; }
30942 then
30943 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
30944 else
30945 echo "configure: failed program was" >&5
30946 cat conftest.s >&5
30947 fi
30948 rm -f conftest.o conftest.s
30949 fi
30950 fi
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
30952 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
30953 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
30954
30955 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
30956
30957 fi
30958
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
30960 $as_echo_n "checking assembler for -mrelax option... " >&6; }
30961 if ${gcc_cv_as_loongarch_relax+:} false; then :
30962 $as_echo_n "(cached) " >&6
30963 else
30964 gcc_cv_as_loongarch_relax=no
30965 if test x$gcc_cv_as != x; then
30966 $as_echo '.text' > conftest.s
30967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
30968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30969 (eval $ac_try) 2>&5
30970 ac_status=$?
30971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30972 test $ac_status = 0; }; }
30973 then
30974 gcc_cv_as_loongarch_relax=yes
30975 else
30976 echo "configure: failed program was" >&5
30977 cat conftest.s >&5
30978 fi
30979 rm -f conftest.o conftest.s
30980 fi
30981 fi
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
30983 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
30984 if test $gcc_cv_as_loongarch_relax = yes; then
30985
30986 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
30987
30988 fi
30989
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
30991 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
30992 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
30993 $as_echo_n "(cached) " >&6
30994 else
30995 gcc_cv_as_loongarch_cond_branch_relax=no
30996 if test x$gcc_cv_as != x; then
30997 $as_echo 'a:
30998 .rept 32769
30999 nop
31000 .endr
31001 beq $a0,$a1,a' > conftest.s
31002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31007 test $ac_status = 0; }; }
31008 then
31009 gcc_cv_as_loongarch_cond_branch_relax=yes
31010 else
31011 echo "configure: failed program was" >&5
31012 cat conftest.s >&5
31013 fi
31014 rm -f conftest.o conftest.s
31015 fi
31016 fi
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31018 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31019 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31020
31021 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31022
31023 fi
31024
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31026 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31027 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31028 $as_echo_n "(cached) " >&6
31029 else
31030 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31031 if test x$gcc_cv_as != x; then
31032 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31035 (eval $ac_try) 2>&5
31036 ac_status=$?
31037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31038 test $ac_status = 0; }; }
31039 then
31040 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31041 else
31042 echo "configure: failed program was" >&5
31043 cat conftest.s >&5
31044 fi
31045 rm -f conftest.o conftest.s
31046 fi
31047 fi
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31049 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31050 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31051
31052 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31053
31054 fi
31055
31056 ;;
31057 s390*-*-*)
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31059 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31060 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31061 $as_echo_n "(cached) " >&6
31062 else
31063 gcc_cv_as_s390_gnu_attribute=no
31064 if test x$gcc_cv_as != x; then
31065 $as_echo '.gnu_attribute 8,1' > conftest.s
31066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31071 test $ac_status = 0; }; }
31072 then
31073 gcc_cv_as_s390_gnu_attribute=yes
31074 else
31075 echo "configure: failed program was" >&5
31076 cat conftest.s >&5
31077 fi
31078 rm -f conftest.o conftest.s
31079 fi
31080 fi
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31082 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31083 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31084
31085 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31086
31087 fi
31088
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31090 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31091 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31092 $as_echo_n "(cached) " >&6
31093 else
31094 gcc_cv_as_s390_machine_machinemode=no
31095 if test x$gcc_cv_as != x; then
31096 $as_echo ' .machinemode push
31097 .machinemode pop
31098 .machine push
31099 .machine pop' > 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_s390_machine_machinemode=yes
31108 else
31109 echo "configure: failed program was" >&5
31110 cat conftest.s >&5
31111 fi
31112 rm -f conftest.o conftest.s
31113 fi
31114 fi
31115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31116 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31117 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31118
31119 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31120
31121 fi
31122
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31124 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31125 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31126 $as_echo_n "(cached) " >&6
31127 else
31128 gcc_cv_as_s390_architecture_modifiers=no
31129 if test x$gcc_cv_as != x; then
31130 $as_echo ' .machine z13+vx ' > 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_s390_architecture_modifiers=yes
31139 else
31140 echo "configure: failed program was" >&5
31141 cat conftest.s >&5
31142 fi
31143 rm -f conftest.o conftest.s
31144 fi
31145 fi
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31147 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31148 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31149
31150 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31151
31152 fi
31153
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31155 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31156 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31157 $as_echo_n "(cached) " >&6
31158 else
31159 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31160 if test x$gcc_cv_as != x; then
31161 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31164 (eval $ac_try) 2>&5
31165 ac_status=$?
31166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31167 test $ac_status = 0; }; }
31168 then
31169 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31170 else
31171 echo "configure: failed program was" >&5
31172 cat conftest.s >&5
31173 fi
31174 rm -f conftest.o conftest.s
31175 fi
31176 fi
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31178 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31179 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31180
31181 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31182
31183 fi
31184
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31186 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31187 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31188 $as_echo_n "(cached) " >&6
31189 else
31190 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31191 if test x$gcc_cv_as != x; then
31192 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31195 (eval $ac_try) 2>&5
31196 ac_status=$?
31197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31198 test $ac_status = 0; }; }
31199 then
31200 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31201 else
31202 echo "configure: failed program was" >&5
31203 cat conftest.s >&5
31204 fi
31205 rm -f conftest.o conftest.s
31206 fi
31207 fi
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31209 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31210 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31211
31212 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31213
31214 fi
31215
31216
31217 ;;
31218 esac
31219
31220 # Mips, LoongArch and HP-UX need the GNU assembler.
31221 # Linux on IA64 might be able to use the Intel assembler.
31222
31223 case "$target" in
31224 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31225 if test x$gas_flag = xyes \
31226 || test x"$host" != x"$build" \
31227 || test ! -x "$gcc_cv_as" \
31228 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31229 :
31230 else
31231 echo "*** This configuration requires the GNU assembler" >&2
31232 exit 1
31233 fi
31234 ;;
31235 esac
31236
31237 # AMD GCN needs the LLVM assembler and linker.
31238 # Test that LLVM is at least 13.0.1.
31239 case "$target" in
31240 amdgcn-* | gcn-*)
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31242 $as_echo_n "checking llvm assembler version... " >&6; }
31243 gcc_cv_as_version="unknown"
31244 if test x$gcc_cv_as != x; then
31245 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31246 case "$gcc_cv_as_version" in
31247 13.0.[1-9]*) ;; # 13.0.1+
31248 13.[1-9]*) ;; # 13.1+
31249 1[4-9]*) ;; # 14..19
31250 [2-9][0-9]*) ;; # 20..99
31251 [1-9][0-9][0-9]*) ;; # 100+
31252 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31253 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31254 esac
31255 fi
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31257 $as_echo "$gcc_cv_as_version, ok" >&6; }
31258 ;;
31259 esac
31260
31261 case "$target" in
31262 arm*)
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31264 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31265 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31266 $as_echo_n "(cached) " >&6
31267 else
31268 gcc_cv_as_arm_option_extensions=no
31269 if test x$gcc_cv_as != x; then
31270 $as_echo '.text
31271 .thumb
31272 .syntax unified
31273 vmov.f32 s0, s1' > conftest.s
31274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31276 (eval $ac_try) 2>&5
31277 ac_status=$?
31278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31279 test $ac_status = 0; }; }
31280 then
31281 gcc_cv_as_arm_option_extensions=yes
31282 else
31283 echo "configure: failed program was" >&5
31284 cat conftest.s >&5
31285 fi
31286 rm -f conftest.o conftest.s
31287 fi
31288 fi
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31290 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31291 if test $gcc_cv_as_arm_option_extensions = yes; then
31292
31293 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31294
31295 fi
31296
31297 esac
31298
31299 # ??? Not all targets support dwarf2 debug_line, even within a version
31300 # of gas. Moreover, we need to emit a valid instruction to trigger any
31301 # info to the output file. So, as supported targets are added to gas 2.11,
31302 # add some instruction here to (also) show we expect this might work.
31303 # ??? Once 2.11 is released, probably need to add first known working
31304 # version to the per-target configury.
31305 case "$cpu_type" in
31306 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31307 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31308 | visium | xstormy16 | xtensa)
31309 insn="nop"
31310 ;;
31311 ia64 | s390)
31312 insn="nop 0"
31313 ;;
31314 mmix)
31315 insn="swym 0"
31316 ;;
31317 esac
31318 if test x"$insn" != x; then
31319 conftest_s="\
31320 .file 1 \"conftest.s\"
31321 .loc 1 3 0
31322 $insn"
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31324 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31325 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31326 $as_echo_n "(cached) " >&6
31327 else
31328 gcc_cv_as_dwarf2_debug_line=no
31329 if test x$gcc_cv_as != x; then
31330 $as_echo "$conftest_s" > conftest.s
31331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31333 (eval $ac_try) 2>&5
31334 ac_status=$?
31335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31336 test $ac_status = 0; }; }
31337 then
31338 if test x$gcc_cv_objdump != x \
31339 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31340 | grep debug_line > /dev/null 2>&1; then
31341 gcc_cv_as_dwarf2_debug_line=yes
31342 elif test x$gcc_cv_otool != x \
31343 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31344 | grep debug_line > /dev/null 2>&1; then
31345 gcc_cv_as_dwarf2_debug_line=yes
31346 fi
31347 else
31348 echo "configure: failed program was" >&5
31349 cat conftest.s >&5
31350 fi
31351 rm -f conftest.o conftest.s
31352 fi
31353 fi
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31355 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31356
31357
31358
31359 # The .debug_line file table must be in the exact order that
31360 # we specified the files, since these indices are also used
31361 # by DW_AT_decl_file. Approximate this test by testing if
31362 # the assembler bitches if the same index is assigned twice.
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31364 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31365 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31366 $as_echo_n "(cached) " >&6
31367 else
31368 gcc_cv_as_dwarf2_file_buggy=no
31369 if test x$gcc_cv_as != x; then
31370 $as_echo ' .file 1 "foo.s"
31371 .file 1 "bar.s"' > conftest.s
31372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_dwarf2_file_buggy=yes
31380 else
31381 echo "configure: failed program was" >&5
31382 cat conftest.s >&5
31383 fi
31384 rm -f conftest.o conftest.s
31385 fi
31386 fi
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31388 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31389
31390
31391
31392 if test $gcc_cv_as_dwarf2_debug_line = yes \
31393 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31394
31395 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31396
31397
31398 if test $gcc_cv_as_leb128 = yes; then
31399 conftest_s="\
31400 .file 1 \"conftest.s\"
31401 .loc 1 3 0 view .LVU1
31402 $insn
31403 .data
31404 .uleb128 .LVU1
31405 .uleb128 .LVU1
31406 "
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31408 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31409 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31410 $as_echo_n "(cached) " >&6
31411 else
31412 gcc_cv_as_dwarf2_debug_view=no
31413 if test x$gcc_cv_as != x; then
31414 $as_echo "$conftest_s" > conftest.s
31415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31417 (eval $ac_try) 2>&5
31418 ac_status=$?
31419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31420 test $ac_status = 0; }; }
31421 then
31422 gcc_cv_as_dwarf2_debug_view=yes
31423 else
31424 echo "configure: failed program was" >&5
31425 cat conftest.s >&5
31426 fi
31427 rm -f conftest.o conftest.s
31428 fi
31429 fi
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31431 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31432 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31433
31434 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31435
31436 fi
31437
31438 fi
31439 fi
31440
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31442 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31443 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31444 $as_echo_n "(cached) " >&6
31445 else
31446 gcc_cv_as_gdwarf2_flag=no
31447 if test x$gcc_cv_as != x; then
31448 $as_echo "$insn" > conftest.s
31449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31451 (eval $ac_try) 2>&5
31452 ac_status=$?
31453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31454 test $ac_status = 0; }; }
31455 then
31456 gcc_cv_as_gdwarf2_flag=yes
31457 else
31458 echo "configure: failed program was" >&5
31459 cat conftest.s >&5
31460 fi
31461 rm -f conftest.o conftest.s
31462 fi
31463 fi
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31465 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31466 if test $gcc_cv_as_gdwarf2_flag = yes; then
31467
31468 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31469
31470 fi
31471
31472
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31474 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31475 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31476 $as_echo_n "(cached) " >&6
31477 else
31478 gcc_cv_as_gdwarf_5_flag=no
31479 if test x$gcc_cv_as != x; then
31480 $as_echo "$insn" > conftest.s
31481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31486 test $ac_status = 0; }; }
31487 then
31488 if test x$gcc_cv_objdump != x \
31489 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31490 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31491 gcc_cv_as_gdwarf_5_flag=yes;
31492 fi
31493 else
31494 echo "configure: failed program was" >&5
31495 cat conftest.s >&5
31496 fi
31497 rm -f conftest.o conftest.s
31498 fi
31499 fi
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31501 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31502 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31503
31504 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31505
31506 fi
31507
31508
31509 case $target_os in
31510 win32 | pe | cygwin* | mingw32*)
31511 section_flags=\"dr\"
31512 function_type=".def foo; .scl 2; .type 32; .endef"
31513 function_size="";;
31514 *)
31515 section_flags=\"\",%progbits
31516 function_type=".type foo, %function"
31517 function_size=".size foo, .-foo";;
31518 esac
31519 dwarf4_debug_info_size=0x46
31520 dwarf4_high_pc_form=7
31521 dwarf4_debug_aranges_size=0x2c
31522 dwarf4_line_sz=9
31523 for dwarf4_addr_size in 8 4; do
31524 conftest_s="\
31525 .file \"a.c\"
31526 .text
31527 .Ltext0:
31528 .p2align 4
31529 .globl foo
31530 $function_type
31531 foo:
31532 .LFB0:
31533 .LM1:
31534 $insn
31535 .LM2:
31536 .LFE0:
31537 $function_size
31538 .Letext0:
31539 .section .debug_info,$section_flags
31540 .Ldebug_info0:
31541 .4byte $dwarf4_debug_info_size
31542 .2byte 0x4
31543 .4byte .Ldebug_abbrev0
31544 .byte 0x$dwarf4_addr_size
31545 .byte 0x1
31546 .ascii \"GNU C17\\0\"
31547 .byte 0xc
31548 .ascii \"a.c\\0\"
31549 .ascii \"/\\0\"
31550 .${dwarf4_addr_size}byte .Ltext0
31551 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31552 .4byte .Ldebug_line0
31553 .byte 0x2
31554 .ascii \"foo\\0\"
31555 .byte 0x1
31556 .byte 0x2
31557 .byte 0x1
31558 .${dwarf4_addr_size}byte .LFB0
31559 .${dwarf4_addr_size}byte .LFE0-.LFB0
31560 .byte 0x1
31561 .byte 0x9c
31562 .byte 0
31563 .section .debug_abbrev,$section_flags
31564 .Ldebug_abbrev0:
31565 .byte 0x1
31566 .byte 0x11
31567 .byte 0x1
31568 .byte 0x25
31569 .byte 0x8
31570 .byte 0x13
31571 .byte 0xb
31572 .byte 0x3
31573 .byte 0x8
31574 .byte 0x1b
31575 .byte 0x8
31576 .byte 0x11
31577 .byte 0x1
31578 .byte 0x12
31579 .byte 0x$dwarf4_high_pc_form
31580 .byte 0x10
31581 .byte 0x17
31582 .byte 0
31583 .byte 0
31584 .byte 0x2
31585 .byte 0x2e
31586 .byte 0
31587 .byte 0x3f
31588 .byte 0x19
31589 .byte 0x3
31590 .byte 0x8
31591 .byte 0x3a
31592 .byte 0xb
31593 .byte 0x3b
31594 .byte 0xb
31595 .byte 0x39
31596 .byte 0xb
31597 .byte 0x11
31598 .byte 0x1
31599 .byte 0x12
31600 .byte 0x$dwarf4_high_pc_form
31601 .byte 0x40
31602 .byte 0x18
31603 .byte 0
31604 .byte 0
31605 .byte 0
31606 .section .debug_aranges,$section_flags
31607 .4byte $dwarf4_debug_aranges_size
31608 .2byte 0x2
31609 .4byte .Ldebug_info0
31610 .byte 0x8
31611 .byte 0
31612 .2byte 0
31613 .2byte 0
31614 .${dwarf4_addr_size}byte .Ltext0
31615 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31616 .${dwarf4_addr_size}byte 0
31617 .${dwarf4_addr_size}byte 0
31618 .section .debug_line,$section_flags
31619 .Ldebug_line0:
31620 .4byte .LELT0-.LSLT0
31621 .LSLT0:
31622 .2byte 0x4
31623 .4byte .LELTP0-.LASLTP0
31624 .LASLTP0:
31625 .byte 0x1
31626 .byte 0x1
31627 .byte 0x1
31628 .byte 0xf6
31629 .byte 0xf2
31630 .byte 0xd
31631 .byte 0
31632 .byte 0x1
31633 .byte 0x1
31634 .byte 0x1
31635 .byte 0x1
31636 .byte 0
31637 .byte 0
31638 .byte 0
31639 .byte 0x1
31640 .byte 0
31641 .byte 0
31642 .byte 0x1
31643 .byte 0
31644 .ascii \"a.c\\0\"
31645 .byte 0
31646 .byte 0
31647 .byte 0
31648 .byte 0
31649 .LELTP0:
31650 .byte 0
31651 .byte 0x$dwarf4_line_sz
31652 .byte 0x2
31653 .${dwarf4_addr_size}byte .LM1
31654 .byte 0x18
31655 .byte 0x5
31656 .byte 0x1
31657 .byte 0
31658 .byte 0x$dwarf4_line_sz
31659 .byte 0x2
31660 .${dwarf4_addr_size}byte .LM2
31661 .byte 0x1
31662 .byte 0x5
31663 .byte 0x1
31664 .byte 0
31665 .byte 0x$dwarf4_line_sz
31666 .byte 0x2
31667 .${dwarf4_addr_size}byte .Letext0
31668 .byte 0
31669 .byte 0x1
31670 .byte 0x1
31671 .LELT0:
31672 .section .debug_str,$section_flags
31673 .ident \"GCC\"
31674 "
31675 dwarf4_success=no
31676 if test $dwarf4_addr_size = 4; then
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31678 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31679 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31680 $as_echo_n "(cached) " >&6
31681 else
31682 gcc_cv_as_debug_line_32_flag=no
31683 if test x$gcc_cv_as != x; then
31684 $as_echo "$conftest_s" > conftest.s
31685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31687 (eval $ac_try) 2>&5
31688 ac_status=$?
31689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31690 test $ac_status = 0; }; }
31691 then
31692 gcc_cv_as_debug_line_32_flag=yes
31693 else
31694 echo "configure: failed program was" >&5
31695 cat conftest.s >&5
31696 fi
31697 rm -f conftest.o conftest.s
31698 fi
31699 fi
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31701 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31702 if test $gcc_cv_as_debug_line_32_flag = yes; then
31703 dwarf4_success=yes
31704 fi
31705
31706 else
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31708 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31709 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31710 $as_echo_n "(cached) " >&6
31711 else
31712 gcc_cv_as_debug_line_64_flag=no
31713 if test x$gcc_cv_as != x; then
31714 $as_echo "$conftest_s" > conftest.s
31715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31717 (eval $ac_try) 2>&5
31718 ac_status=$?
31719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31720 test $ac_status = 0; }; }
31721 then
31722 gcc_cv_as_debug_line_64_flag=yes
31723 else
31724 echo "configure: failed program was" >&5
31725 cat conftest.s >&5
31726 fi
31727 rm -f conftest.o conftest.s
31728 fi
31729 fi
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31731 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31732 if test $gcc_cv_as_debug_line_64_flag = yes; then
31733 dwarf4_success=yes
31734 fi
31735
31736 fi
31737 if test $dwarf4_success = yes; then
31738 dwarf4_success=no
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31740 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31741 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31742 $as_echo_n "(cached) " >&6
31743 else
31744 gcc_cv_as_dwarf_4_debug_line_flag=no
31745 if test x$gcc_cv_as != x; then
31746 $as_echo "$conftest_s" > conftest.s
31747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31752 test $ac_status = 0; }; }
31753 then
31754 gcc_cv_as_dwarf_4_debug_line_flag=yes
31755 else
31756 echo "configure: failed program was" >&5
31757 cat conftest.s >&5
31758 fi
31759 rm -f conftest.o conftest.s
31760 fi
31761 fi
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31763 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31764 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31765 dwarf4_success=yes
31766 fi
31767
31768 break
31769 fi
31770 dwarf4_debug_info_size=0x36
31771 dwarf4_high_pc_form=6
31772 dwarf4_debug_aranges_size=0x1c
31773 dwarf4_line_sz=5
31774 done
31775
31776 if test $dwarf4_success = yes; then
31777 conftest_s="\
31778 .file \"foo.c\"
31779 .text
31780 bar:
31781 #APP
31782 # 82 \"xxx.h\" 1
31783 $insn
31784 # 0 \"\" 2
31785 #NO_APP
31786 $insn
31787 foo:
31788 .file 1 \"foo.c\"
31789 $insn
31790 .file 2 \"foo.h\"
31791 ret
31792 "
31793 dwarf4_success=no
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31795 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31796 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31797 $as_echo_n "(cached) " >&6
31798 else
31799 gcc_cv_as_dwarf_4_app_flag=no
31800 if test x$gcc_cv_as != x; then
31801 $as_echo "$conftest_s" > conftest.s
31802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31804 (eval $ac_try) 2>&5
31805 ac_status=$?
31806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31807 test $ac_status = 0; }; }
31808 then
31809 gcc_cv_as_dwarf_4_app_flag=yes
31810 else
31811 echo "configure: failed program was" >&5
31812 cat conftest.s >&5
31813 fi
31814 rm -f conftest.o conftest.s
31815 fi
31816 fi
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31818 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31819 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31820 dwarf4_success=yes
31821 fi
31822
31823 fi
31824
31825 if test $dwarf4_success = yes; then
31826 conftest_s="\
31827 .text
31828 .globl foo
31829 $function_type
31830 foo:
31831 $insn
31832 $function_size
31833 .file 1 \"foo.c\"
31834 "
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31836 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31837 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31838 $as_echo_n "(cached) " >&6
31839 else
31840 gcc_cv_as_working_gdwarf_n_flag=no
31841 if test x$gcc_cv_as != x; then
31842 $as_echo "$conftest_s" > conftest.s
31843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31845 (eval $ac_try) 2>&5
31846 ac_status=$?
31847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31848 test $ac_status = 0; }; }
31849 then
31850 if test x$gcc_cv_objdump != x \
31851 && $gcc_cv_objdump -W conftest.o 2>&1 \
31852 | grep conftest.s > /dev/null 2>&1; then
31853 gcc_cv_as_working_gdwarf_n_flag=no
31854 else
31855 gcc_cv_as_working_gdwarf_n_flag=yes
31856 fi
31857 else
31858 echo "configure: failed program was" >&5
31859 cat conftest.s >&5
31860 fi
31861 rm -f conftest.o conftest.s
31862 fi
31863 fi
31864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31865 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31866
31867
31868 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31869
31870 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31871
31872 fi
31873 fi
31874
31875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31876 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31877 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31878 $as_echo_n "(cached) " >&6
31879 else
31880 gcc_cv_as_debug_prefix_map_flag=no
31881 if test x$gcc_cv_as != x; then
31882 $as_echo "$insn" > conftest.s
31883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31885 (eval $ac_try) 2>&5
31886 ac_status=$?
31887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31888 test $ac_status = 0; }; }
31889 then
31890 gcc_cv_as_debug_prefix_map_flag=yes
31891 else
31892 echo "configure: failed program was" >&5
31893 cat conftest.s >&5
31894 fi
31895 rm -f conftest.o conftest.s
31896 fi
31897 fi
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31899 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31900 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31901
31902 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
31903
31904 fi
31905
31906 fi
31907
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
31909 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
31910 if ${gcc_cv_as_compress_debug+:} false; then :
31911 $as_echo_n "(cached) " >&6
31912 else
31913 gcc_cv_as_compress_debug=no
31914 if test x$gcc_cv_as != x; then
31915 $as_echo '' > conftest.s
31916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31918 (eval $ac_try) 2>&5
31919 ac_status=$?
31920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31921 test $ac_status = 0; }; }
31922 then
31923 # gas compiled without zlib cannot compress debug sections and warns
31924 # about it, but still exits successfully. So check for this, too.
31925 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
31926 then
31927 gcc_cv_as_compress_debug=0
31928 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
31929 then
31930 gcc_cv_as_compress_debug=1
31931 gcc_cv_as_compress_debug_option="--compress-debug-sections"
31932 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
31933 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
31934 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
31935 then
31936 gcc_cv_as_compress_debug=2
31937 fi
31938 else
31939 gcc_cv_as_compress_debug=0
31940 fi
31941 else
31942 echo "configure: failed program was" >&5
31943 cat conftest.s >&5
31944 fi
31945 rm -f conftest.o conftest.s
31946 fi
31947 fi
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
31949 $as_echo "$gcc_cv_as_compress_debug" >&6; }
31950
31951
31952
31953 cat >>confdefs.h <<_ACEOF
31954 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
31955 _ACEOF
31956
31957
31958 cat >>confdefs.h <<_ACEOF
31959 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
31960 _ACEOF
31961
31962
31963 cat >>confdefs.h <<_ACEOF
31964 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
31965 _ACEOF
31966
31967
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
31969 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
31970 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
31971 $as_echo_n "(cached) " >&6
31972 else
31973 gcc_cv_as_lcomm_with_alignment=no
31974 if test x$gcc_cv_as != x; then
31975 $as_echo '.lcomm bar,4,16' > conftest.s
31976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31981 test $ac_status = 0; }; }
31982 then
31983 gcc_cv_as_lcomm_with_alignment=yes
31984 else
31985 echo "configure: failed program was" >&5
31986 cat conftest.s >&5
31987 fi
31988 rm -f conftest.o conftest.s
31989 fi
31990 fi
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
31992 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
31993 if test $gcc_cv_as_lcomm_with_alignment = yes; then
31994
31995 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
31996
31997 fi
31998
31999
32000 if test x$with_sysroot = x && test x$host = x$target \
32001 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32002 && test "$prefix" != "NONE"; then
32003
32004 cat >>confdefs.h <<_ACEOF
32005 #define PREFIX_INCLUDE_DIR "$prefix/include"
32006 _ACEOF
32007
32008 fi
32009
32010 # Determine the version of glibc, if any, used on the target.
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32012 $as_echo_n "checking for target glibc version... " >&6; }
32013
32014 # Check whether --with-glibc-version was given.
32015 if test "${with_glibc_version+set}" = set; then :
32016 withval=$with_glibc_version;
32017 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32018 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32019 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32020 else
32021 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32022 fi
32023 else
32024
32025 glibc_version_major=0
32026 glibc_version_minor=0
32027 if test -f $target_header_dir/features.h \
32028 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32029 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32030 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32031 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32032 fi
32033 fi
32034
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32036 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32037
32038 cat >>confdefs.h <<_ACEOF
32039 #define TARGET_GLIBC_MAJOR $glibc_version_major
32040 _ACEOF
32041
32042
32043 cat >>confdefs.h <<_ACEOF
32044 #define TARGET_GLIBC_MINOR $glibc_version_minor
32045 _ACEOF
32046
32047
32048 # Check whether --enable-gnu-unique-object was given.
32049 if test "${enable_gnu_unique_object+set}" = set; then :
32050 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32051 yes | no) ;;
32052 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32054 esac
32055 else
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32057 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32058 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32059 $as_echo_n "(cached) " >&6
32060 else
32061 gcc_cv_as_gnu_unique_object=no
32062 if test x$gcc_cv_as != x; then
32063 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32069 test $ac_status = 0; }; }
32070 then
32071 gcc_cv_as_gnu_unique_object=yes
32072 else
32073 echo "configure: failed program was" >&5
32074 cat conftest.s >&5
32075 fi
32076 rm -f conftest.o conftest.s
32077 fi
32078 fi
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32080 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32081 if test $gcc_cv_as_gnu_unique_object = yes; then
32082 # We need to unquote above to to use the definition from config.gcc.
32083 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32084
32085 if test $glibc_version_major -gt 2 \
32086 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32087 enable_gnu_unique_object=yes
32088 fi
32089
32090 fi
32091
32092 fi
32093
32094 if test x$enable_gnu_unique_object = xyes; then
32095
32096 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32097
32098 fi
32099
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32101 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32102 if ${gcc_cv_as_line_zero+:} false; then :
32103 $as_echo_n "(cached) " >&6
32104 else
32105 gcc_cv_as_line_zero=no
32106 if test "x$gcc_cv_as" != x; then
32107 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32108 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32110 (eval $ac_try) 2>&5
32111 ac_status=$?
32112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32113 test $ac_status = 0; }; } &&
32114 test "x`cat conftest.out`" = x
32115 then
32116 gcc_cv_as_line_zero=yes
32117 else
32118 echo "configure: failed program was" >&5
32119 cat conftest.s >&5
32120 echo "configure: error output was" >&5
32121 cat conftest.out >&5
32122 fi
32123 rm -f conftest.o conftest.s conftest.out
32124 fi
32125 fi
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32127 $as_echo "$gcc_cv_as_line_zero" >&6; }
32128 if test "x$gcc_cv_as_line_zero" = xyes; then
32129
32130 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32131
32132 fi
32133
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32135 $as_echo_n "checking support for thin archives... " >&6; }
32136 thin_archive_support=no
32137 echo 'int main (void) { return 0; }' > conftest.c
32138 if ($AR --version | sed 1q | grep "GNU ar" \
32139 && $CC $CFLAGS -c conftest.c \
32140 && $AR rcT conftest.a conftest.o \
32141 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32142 thin_archive_support=yes
32143 fi
32144 rm -f conftest.c conftest.o conftest.a conftest
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32146 $as_echo "$thin_archive_support" >&6; }
32147
32148
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32150 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32151 gcc_cv_ld_eh_frame_hdr=no
32152 if test $in_tree_ld = yes ; then
32153 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 \
32154 && test $in_tree_ld_is_elf = yes; then
32155 gcc_cv_ld_eh_frame_hdr=yes
32156 fi
32157 elif test x$gcc_cv_ld != x; then
32158 if echo "$ld_ver" | grep GNU > /dev/null; then
32159 # Check if linker supports --eh-frame-hdr option
32160 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32161 gcc_cv_ld_eh_frame_hdr=yes
32162 fi
32163 else
32164 case "$target" in
32165 *-*-solaris2*)
32166 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32167 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32168 gcc_cv_ld_eh_frame_hdr=yes
32169 fi
32170 ;;
32171 esac
32172 fi
32173 fi
32174
32175 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32176
32177 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32178
32179 fi
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32181 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32182
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32184 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32185 gcc_cv_ld_eh_frame_ciev3=no
32186 if test $in_tree_ld = yes ; then
32187 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 \
32188 && test $in_tree_ld_is_elf = yes; then
32189 gcc_cv_ld_eh_frame_ciev3=yes
32190 fi
32191 elif test x$gcc_cv_ld != x; then
32192 if echo "$ld_ver" | grep GNU > /dev/null; then
32193 gcc_cv_ld_eh_frame_ciev3=yes
32194 if test 0"$ld_date" -lt 20040513; then
32195 if test -n "$ld_date"; then
32196 # If there was date string, but was earlier than 2004-05-13, fail
32197 gcc_cv_ld_eh_frame_ciev3=no
32198 elif test "$ld_vers_major" -lt 2; then
32199 gcc_cv_ld_eh_frame_ciev3=no
32200 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32201 gcc_cv_ld_eh_frame_ciev3=no
32202 fi
32203 fi
32204 else
32205 case "$target" in
32206 *-*-solaris2*)
32207 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32208 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32209 gcc_cv_ld_eh_frame_ciev3=yes
32210 fi
32211 ;;
32212 esac
32213 fi
32214 fi
32215
32216 cat >>confdefs.h <<_ACEOF
32217 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32218 _ACEOF
32219
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32221 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32222
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32224 $as_echo_n "checking linker position independent executable support... " >&6; }
32225 gcc_cv_ld_pie=no
32226 if test $in_tree_ld = yes ; then
32227 case "$target" in
32228 # Full PIE support on Solaris was only introduced in gld 2.26.
32229 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32230 *) gcc_gld_pie_min_version=15 ;;
32231 esac
32232 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 \
32233 && test $in_tree_ld_is_elf = yes; then
32234 gcc_cv_ld_pie=yes
32235 fi
32236 elif test x$gcc_cv_ld != x; then
32237 # Check if linker supports -pie option
32238 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32239 gcc_cv_ld_pie=yes
32240 case "$target" in
32241 *-*-solaris2*)
32242 if echo "$ld_ver" | grep GNU > /dev/null \
32243 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32244 gcc_cv_ld_pie=no
32245 fi
32246 ;;
32247 esac
32248 else
32249 case "$target" in
32250 *-*-solaris2.1[1-9]*)
32251 # Solaris 11.3 added PIE support.
32252 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32253 gcc_cv_ld_pie=yes
32254 fi
32255 ;;
32256 esac
32257 fi
32258 fi
32259 if test x"$gcc_cv_ld_pie" = xyes; then
32260
32261 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32262
32263 fi
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32265 $as_echo "$gcc_cv_ld_pie" >&6; }
32266
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32268 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32269 gcc_cv_ld_pie_copyreloc=no
32270 if test $gcc_cv_ld_pie = yes ; then
32271 if test $in_tree_ld = yes ; then
32272 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
32273 gcc_cv_ld_pie_copyreloc=yes
32274 fi
32275 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32276 # Check if linker supports -pie option with copy reloc
32277 case "$target" in
32278 i?86-*-linux* | x86_64-*-linux*)
32279 cat > conftest1.s <<EOF
32280 .globl a_glob
32281 .data
32282 .type a_glob, @object
32283 .size a_glob, 4
32284 a_glob:
32285 .long 2
32286 EOF
32287 cat > conftest2.s <<EOF
32288 .text
32289 .globl main
32290 .type main, @function
32291 main:
32292 movl %eax, a_glob(%rip)
32293 .size main, .-main
32294 .globl ptr
32295 .section .data.rel,"aw",@progbits
32296 .type ptr, @object
32297 ptr:
32298 .quad a_glob
32299 EOF
32300 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32301 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32302 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32303 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32304 gcc_cv_ld_pie_copyreloc=yes
32305 fi
32306 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32307 ;;
32308 esac
32309 fi
32310 fi
32311
32312 cat >>confdefs.h <<_ACEOF
32313 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32314 _ACEOF
32315
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32317 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32318
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32320 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32321 gcc_cv_ld_eh_gc_sections=no
32322 if test $in_tree_ld = yes ; then
32323 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 \
32324 && test $in_tree_ld_is_elf = yes; then
32325 gcc_cv_ld_eh_gc_sections=yes
32326 fi
32327 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32328 cat > conftest.s <<EOF
32329 .section .text
32330 .globl _start
32331 .type _start, @function
32332 _start:
32333 .long foo
32334 .size _start, .-_start
32335 .section .text.foo,"ax",@progbits
32336 .type foo, @function
32337 foo:
32338 .long 0
32339 .size foo, .-foo
32340 .section .gcc_except_table.foo,"a",@progbits
32341 .L0:
32342 .long 0
32343 .section .eh_frame,"a",@progbits
32344 .long .L0
32345 EOF
32346 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32347 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32348 | grep "gc-sections option ignored" > /dev/null; then
32349 gcc_cv_ld_eh_gc_sections=no
32350 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32351 | grep gcc_except_table > /dev/null; then
32352 gcc_cv_ld_eh_gc_sections=yes
32353 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32354 if test x$gcc_cv_as_comdat_group != xyes; then
32355 gcc_cv_ld_eh_gc_sections=no
32356 cat > conftest.s <<EOF
32357 .section .text
32358 .globl _start
32359 .type _start, @function
32360 _start:
32361 .long foo
32362 .size _start, .-_start
32363 .section .gnu.linkonce.t.foo,"ax",@progbits
32364 .type foo, @function
32365 foo:
32366 .long 0
32367 .size foo, .-foo
32368 .section .gcc_except_table.foo,"a",@progbits
32369 .L0:
32370 .long 0
32371 .section .eh_frame,"a",@progbits
32372 .long .L0
32373 EOF
32374 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32375 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32376 | grep "gc-sections option ignored" > /dev/null; then
32377 gcc_cv_ld_eh_gc_sections=no
32378 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32379 | grep gcc_except_table > /dev/null; then
32380 gcc_cv_ld_eh_gc_sections=yes
32381 fi
32382 fi
32383 fi
32384 fi
32385 fi
32386 rm -f conftest.s conftest.o conftest
32387 fi
32388 case "$target" in
32389 hppa*-*-linux*)
32390 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32391 gcc_cv_ld_eh_gc_sections=no
32392 ;;
32393 esac
32394 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32395
32396 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32397
32398 fi
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32400 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32401
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32403 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32404 gcc_cv_ld_eh_gc_sections_bug=no
32405 if test $in_tree_ld = yes ; then
32406 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 \
32407 && test $in_tree_ld_is_elf = yes; then
32408 gcc_cv_ld_eh_gc_sections_bug=yes
32409 fi
32410 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
32411 gcc_cv_ld_eh_gc_sections_bug=yes
32412 cat > conftest.s <<EOF
32413 .section .text
32414 .globl _start
32415 .type _start, @function
32416 _start:
32417 .long foo
32418 .size _start, .-_start
32419 .section .text.startup.foo,"ax",@progbits
32420 .type foo, @function
32421 foo:
32422 .long 0
32423 .size foo, .-foo
32424 .section .gcc_except_table.foo,"a",@progbits
32425 .L0:
32426 .long 0
32427 .section .eh_frame,"a",@progbits
32428 .long .L0
32429 EOF
32430 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32431 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32432 | grep "gc-sections option ignored" > /dev/null; then
32433 :
32434 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32435 | grep gcc_except_table > /dev/null; then
32436 gcc_cv_ld_eh_gc_sections_bug=no
32437 fi
32438 fi
32439 rm -f conftest.s conftest.o conftest
32440 fi
32441 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32442
32443 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32444
32445 fi
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32447 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32448
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32450 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32451 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32452 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32453 gcc_cv_ld_compress_debug=1
32454 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32455 # Detect zstd debug section compression support
32456 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32457 gcc_cv_ld_compress_debug=2
32458 fi
32459 else
32460 case "${target}" in
32461 *-*-solaris2*)
32462 # Introduced in Solaris 11.2.
32463 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32464 gcc_cv_ld_compress_debug=1
32465 gcc_cv_ld_compress_debug_option="-z compress-sections"
32466 else
32467 gcc_cv_ld_compress_debug=0
32468 fi
32469 ;;
32470 *)
32471 # Assume linkers other than GNU ld don't support compessed debug
32472 # sections.
32473 gcc_cv_ld_compress_debug=0
32474 ;;
32475 esac
32476 fi
32477
32478 cat >>confdefs.h <<_ACEOF
32479 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32480 _ACEOF
32481
32482
32483 cat >>confdefs.h <<_ACEOF
32484 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32485 _ACEOF
32486
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32488 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32489
32490 if test x"$ld64_flag" = x"yes"; then
32491
32492 # Set defaults for possibly untestable items.
32493 gcc_cv_ld64_export_dynamic=0
32494 gcc_cv_ld64_platform_version=0
32495 gcc_cv_ld64_demangle=0
32496
32497 if test "$build" = "$host"; then
32498 darwin_try_test=1
32499 else
32500 darwin_try_test=0
32501 fi
32502
32503 # On Darwin, because of FAT library support, it is often possible to execute
32504 # exes from compatible archs even when the host differs from the build system.
32505 case "$build","$host" in
32506 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32507 darwin_try_test=1;;
32508 *) ;;
32509 esac
32510
32511 # If the configurer specified a minimum ld64 version to be supported, then use
32512 # that to determine feature support.
32513 if test x"${gcc_cv_ld64_version}" != x; then
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32515 $as_echo_n "checking ld64 specified version... " >&6; }
32516 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32518 $as_echo "$gcc_cv_ld64_major" >&6; }
32519 if test "$gcc_cv_ld64_major" -ge 97; then
32520 gcc_cv_ld64_demangle=1
32521 fi
32522 if test "$gcc_cv_ld64_major" -ge 236; then
32523 gcc_cv_ld64_export_dynamic=1
32524 fi
32525 if test "$gcc_cv_ld64_major" -ge 512; then
32526 gcc_cv_ld64_platform_version=1
32527 fi
32528 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32529 # If the version was not specified, try to find it.
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32531 $as_echo_n "checking linker version... " >&6; }
32532 if test x"${gcc_cv_ld64_version}" = x; then
32533 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32534 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32535 fi
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32537 $as_echo "$gcc_cv_ld64_version" >&6; }
32538
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32540 $as_echo_n "checking linker for -demangle support... " >&6; }
32541 gcc_cv_ld64_demangle=1
32542 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32543 gcc_cv_ld64_demangle=0
32544 fi
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32546 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32547
32548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32549 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32550 gcc_cv_ld64_export_dynamic=1
32551 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32552 gcc_cv_ld64_export_dynamic=0
32553 fi
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32555 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32556
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32558 $as_echo_n "checking linker for -platform_version support... " >&6; }
32559 gcc_cv_ld64_platform_version=1
32560 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32561 gcc_cv_ld64_platform_version=0
32562 fi
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32564 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32565 fi
32566
32567 if test x"${gcc_cv_ld64_version}" != x; then
32568
32569 cat >>confdefs.h <<_ACEOF
32570 #define LD64_VERSION "${gcc_cv_ld64_version}"
32571 _ACEOF
32572
32573 fi
32574
32575
32576 cat >>confdefs.h <<_ACEOF
32577 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32578 _ACEOF
32579
32580
32581
32582 cat >>confdefs.h <<_ACEOF
32583 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32584 _ACEOF
32585
32586
32587
32588 cat >>confdefs.h <<_ACEOF
32589 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32590 _ACEOF
32591
32592 fi
32593
32594 if test x"$dsymutil_flag" = x"yes"; then
32595
32596 # If the user specified a dsymutil path, then we will already have the
32597 # version string, otherwise, pick it up.
32598 if test x"$gcc_cv_dsymutil" = x; then
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32600 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32601 dsymutil_vers="tool unspecified"
32602 elif test x"$dsymutil_vers" = x; then
32603 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32604 fi
32605
32606 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32608 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32609 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32610 dsymutil_kind=DWARFUTILS
32611 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32612 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32613 dsymutil_kind=CLANG
32614 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32615 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32616 dsymutil_kind=LLVM
32617 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32618 else
32619 dsymutil_kind=DET_UNKNOWN
32620 dsymutil_vers="0.0"
32621 fi
32622 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32623 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32624 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32625 if test x"${dsymutil_minor}" = x; then
32626 dsymutil_minor=0
32627 fi
32628 if test x"${dsymutil_tiny}" = x; then
32629 dsymutil_tiny=0
32630 fi
32631
32632 cat >>confdefs.h <<_ACEOF
32633 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32634 _ACEOF
32635
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32637 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32638 fi
32639
32640 case $target_os in
32641 win32 | pe | cygwin* | mingw32*)
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32643 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32644 gcc_cv_ld_broken_pe_dwarf5=yes
32645 if test $in_tree_ld = yes ; then
32646 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32647 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32648 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32649 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32650 gcc_cv_ld_broken_pe_dwarf5=no
32651 fi
32652 else
32653 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32654 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32655 gcc_cv_ld_broken_pe_dwarf5=no
32656 fi
32657 fi
32658 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32659
32660 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32661
32662 fi
32663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32664 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32665
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32667 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32668 gcc_cv_ld_disable_dynamicbase=no
32669 if test $in_tree_ld = yes; then
32670 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 \
32671 gcc_cv_ld_disable_dynamicbase=yes
32672 fi
32673 else
32674 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32675 gcc_cv_ld_disable_dynamicbase=yes
32676 fi
32677 fi
32678 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32679
32680 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32681
32682 fi
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32684 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32685 ;;
32686 esac
32687
32688 # --------
32689 # UNSORTED
32690 # --------
32691
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32693 $as_echo_n "checking linker --as-needed support... " >&6; }
32694 if ${gcc_cv_ld_as_needed+:} false; then :
32695 $as_echo_n "(cached) " >&6
32696 else
32697 gcc_cv_ld_as_needed=no
32698 gcc_cv_ld_as_needed_option='--as-needed'
32699 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32700 if test $in_tree_ld = yes ; then
32701 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 \
32702 && test $in_tree_ld_is_elf = yes; then
32703 gcc_cv_ld_as_needed=yes
32704 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32705 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32706 gcc_cv_ld_no_as_needed_option='--pop-state'
32707 fi
32708 fi
32709 elif test x$gcc_cv_ld != x; then
32710 # Check if linker supports --as-needed and --no-as-needed options
32711 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32712 gcc_cv_ld_as_needed=yes
32713 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32714 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32715 && echo "$ld_ver" | grep GNU > /dev/null \
32716 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32717 # Use these options only when both ld.bfd and ld.gold support
32718 # --push-state/--pop-state, which unfortunately wasn't added
32719 # at the same time.
32720 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32721 gcc_cv_ld_no_as_needed_option='--pop-state'
32722 fi
32723 fi
32724 case "$target:$gnu_ld" in
32725 *-*-solaris2*:no)
32726 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32727 # forms.
32728 gcc_cv_ld_as_needed=yes
32729 gcc_cv_ld_as_needed_option="-z ignore"
32730 gcc_cv_ld_no_as_needed_option="-z record"
32731 ;;
32732 esac
32733 fi
32734 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32735 # dl_iterate_phdr, i.e. since Solaris 11.
32736 case "$target" in
32737 *-*-solaris2.1[1-9]*)
32738 case "$target" in
32739 i?86-*-* | x86_64-*-*)
32740 if echo "$ld_ver" | grep GNU > /dev/null; then
32741 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32742 gcc_cv_ld_as_needed=no
32743 fi
32744 ;;
32745 esac
32746 ;;
32747 *-*-solaris2*)
32748 gcc_cv_ld_as_needed=no
32749 ;;
32750 esac
32751
32752 fi
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32754 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32755 if test x"$gcc_cv_ld_as_needed" = xyes; then
32756
32757 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32758
32759
32760 cat >>confdefs.h <<_ACEOF
32761 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32762 _ACEOF
32763
32764
32765 cat >>confdefs.h <<_ACEOF
32766 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32767 _ACEOF
32768
32769 fi
32770
32771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32772 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32773 saved_LDFLAGS="$LDFLAGS"
32774 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32775 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32777 /* end confdefs.h. */
32778 int main(void) {return 0;}
32779 _ACEOF
32780 if ac_fn_cxx_try_link "$LINENO"; then :
32781 gcc_cv_ld_clearcap=yes; break
32782 else
32783 gcc_cv_ld_clearcap=no
32784 fi
32785 rm -f core conftest.err conftest.$ac_objext \
32786 conftest$ac_exeext conftest.$ac_ext
32787 done
32788 LDFLAGS="$saved_LDFLAGS"
32789 if test "x$gcc_cv_ld_clearcap" = xyes; then
32790
32791 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32792
32793 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32794
32795 fi
32796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32797 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32798
32799 case "$target" in
32800 powerpc*-*-*)
32801 case "$target" in
32802 *le-*-linux*)
32803 emul_name="-melf32lppc"
32804 ;;
32805 *)
32806 emul_name="-melf32ppc"
32807 ;;
32808 esac
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32810 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32811 if ${gcc_cv_ld_ppc_attr+:} false; then :
32812 $as_echo_n "(cached) " >&6
32813 else
32814 gcc_cv_ld_ppc_attr=no
32815 if test x"$ld_is_gold" = xyes; then
32816 gcc_cv_ld_ppc_attr=yes
32817 elif test $in_tree_ld = yes ; then
32818 if test "$gcc_cv_gld_major_version" -eq 2 \
32819 -a "$gcc_cv_gld_minor_version" -ge 28 \
32820 -o "$gcc_cv_gld_major_version" -gt 2; then
32821 gcc_cv_ld_ppc_attr=yes
32822 fi
32823 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32824 # check that merging the long double .gnu_attribute doesn't warn
32825 cat > conftest1.s <<EOF
32826 .gnu_attribute 4,1
32827 EOF
32828 cat > conftest2.s <<EOF
32829 .gnu_attribute 4,9
32830 EOF
32831 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32832 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32833 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32834 && test ! -s conftest.err; then
32835 gcc_cv_ld_ppc_attr=yes
32836 fi
32837 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32838 fi
32839
32840 fi
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32842 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32843 if test x$gcc_cv_ld_ppc_attr = xyes; then
32844
32845 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32846
32847 fi
32848 ;;
32849 esac
32850
32851 case "$target:$tm_file" in
32852 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32853 case "$target" in
32854 *le-*-linux*)
32855 emul_name="-melf64lppc"
32856 ;;
32857 *-*-linux*)
32858 emul_name="-melf64ppc"
32859 ;;
32860 *le-*-freebsd*)
32861 emul_name="-melf64lppc_fbsd"
32862 ;;
32863 *-*-freebsd*)
32864 emul_name="-melf64ppc_fbsd"
32865 ;;
32866 esac
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32868 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32869 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32870 $as_echo_n "(cached) " >&6
32871 else
32872 gcc_cv_ld_no_dot_syms=no
32873 if test x"$ld_is_gold" = xyes; then
32874 gcc_cv_ld_no_dot_syms=yes
32875 elif test $in_tree_ld = yes ; then
32876 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
32877 gcc_cv_ld_no_dot_syms=yes
32878 fi
32879 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32880 cat > conftest1.s <<EOF
32881 .text
32882 bl .foo
32883 EOF
32884 cat > conftest2.s <<EOF
32885 .section ".opd","aw"
32886 .align 3
32887 .globl foo
32888 .type foo,@function
32889 foo:
32890 .quad .LEfoo,.TOC.@tocbase,0
32891 .text
32892 .LEfoo:
32893 blr
32894 .size foo,.-.LEfoo
32895 EOF
32896 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32897 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32898 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32899 gcc_cv_ld_no_dot_syms=yes
32900 fi
32901 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32902 fi
32903
32904 fi
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32906 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32907 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
32908
32909 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
32910
32911 fi
32912
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32914 $as_echo_n "checking linker large toc support... " >&6; }
32915 if ${gcc_cv_ld_large_toc+:} false; then :
32916 $as_echo_n "(cached) " >&6
32917 else
32918 gcc_cv_ld_large_toc=no
32919 if test x"$ld_is_gold" = xyes; then
32920 gcc_cv_ld_large_toc=yes
32921 elif test $in_tree_ld = yes ; then
32922 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
32923 gcc_cv_ld_large_toc=yes
32924 fi
32925 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32926 cat > conftest.s <<EOF
32927 .section ".tbss","awT",@nobits
32928 .align 3
32929 ie0: .space 8
32930 .global _start
32931 .text
32932 _start:
32933 addis 9,13,ie0@got@tprel@ha
32934 ld 9,ie0@got@tprel@l(9)
32935 EOF
32936 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
32937 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
32938 gcc_cv_ld_large_toc=yes
32939 fi
32940 rm -f conftest conftest.o conftest.s
32941 fi
32942
32943 fi
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
32945 $as_echo "$gcc_cv_ld_large_toc" >&6; }
32946 if test x"$gcc_cv_ld_large_toc" = xyes; then
32947
32948 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
32949
32950 fi
32951
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
32953 $as_echo_n "checking linker toc pointer alignment... " >&6; }
32954 if ${gcc_cv_ld_toc_align+:} false; then :
32955 $as_echo_n "(cached) " >&6
32956 else
32957 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
32958 cat > conftest.s <<EOF
32959 .global _start
32960 .text
32961 _start:
32962 addis 9,2,x@got@ha
32963 .section .data.rel.ro,"aw",@progbits
32964 .p2align 16
32965 .space 32768
32966 x: .quad .TOC.
32967 EOF
32968 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
32969 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
32970 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)) }'`
32971 fi
32972 rm -f conftest conftest.o conftest.s
32973 fi
32974
32975 fi
32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
32977 $as_echo "$gcc_cv_ld_toc_align" >&6; }
32978 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
32979
32980 cat >>confdefs.h <<_ACEOF
32981 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
32982 _ACEOF
32983
32984 fi
32985 ;;
32986 esac
32987
32988 case "$target" in
32989 *-*-aix*)
32990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32991 $as_echo_n "checking linker large toc support... " >&6; }
32992 if ${gcc_cv_ld_large_toc+:} false; then :
32993 $as_echo_n "(cached) " >&6
32994 else
32995 gcc_cv_ld_large_toc=no
32996 if test x$gcc_cv_as != x ; then
32997 cat > conftest.s <<EOF
32998 .toc
32999 LC..1:
33000 .tc a[TC],a[RW]
33001 .extern a[RW]
33002 .csect .text[PR]
33003 .largetoctest:
33004 addis 9,LC..1@u(2)
33005 ld 3,LC..1@l(9)
33006 EOF
33007 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33008 gcc_cv_ld_large_toc=yes
33009 fi
33010 rm -f conftest conftest.o conftest.s
33011 fi
33012
33013 fi
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33015 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33016 if test x"$gcc_cv_ld_large_toc" = xyes; then
33017
33018 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33019
33020 fi
33021 ;;
33022 esac
33023
33024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33025 $as_echo_n "checking linker --build-id support... " >&6; }
33026 if ${gcc_cv_ld_buildid+:} false; then :
33027 $as_echo_n "(cached) " >&6
33028 else
33029 gcc_cv_ld_buildid=no
33030 if test $in_tree_ld = yes ; then
33031 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33032 "$gcc_cv_gld_minor_version" -ge 18 -o \
33033 "$gcc_cv_gld_major_version" -gt 2 \
33034 && test $in_tree_ld_is_elf = yes; then
33035 gcc_cv_ld_buildid=yes
33036 fi
33037 elif test x$gcc_cv_ld != x; then
33038 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33039 gcc_cv_ld_buildid=yes
33040 fi
33041 fi
33042 fi
33043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33044 $as_echo "$gcc_cv_ld_buildid" >&6; }
33045 if test x"$gcc_cv_ld_buildid" = xyes; then
33046
33047 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33048
33049 fi
33050
33051 # Check whether --enable-linker-build-id was given.
33052 if test "${enable_linker_build_id+set}" = set; then :
33053 enableval=$enable_linker_build_id;
33054 else
33055 enable_linker_build_id=no
33056 fi
33057
33058
33059 if test x"$enable_linker_build_id" = xyes; then
33060 if test x"$gcc_cv_ld_buildid" = xyes; then
33061
33062 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33063
33064 else
33065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33066 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33067 fi
33068 fi
33069
33070 # In binutils 2.21, GNU ld gained support for new emulations fully
33071 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33073 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33074 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33075 $as_echo_n "(cached) " >&6
33076 else
33077 gcc_cv_ld_sol2_emulation=no
33078 if test $in_tree_ld = yes ; then
33079 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33080 "$gcc_cv_gld_minor_version" -ge 21 -o \
33081 "$gcc_cv_gld_major_version" -gt 2 \
33082 && test $in_tree_ld_is_elf = yes; then
33083 gcc_cv_ld_sol2_emulation=yes
33084 fi
33085 elif test x$gcc_cv_ld != x; then
33086 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33087 grep _sol2 > /dev/null; then
33088 gcc_cv_ld_sol2_emulation=yes
33089 fi
33090 fi
33091 fi
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33093 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33094 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33095
33096 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33097
33098 fi
33099
33100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33101 $as_echo_n "checking linker --sysroot support... " >&6; }
33102 if ${gcc_cv_ld_sysroot+:} false; then :
33103 $as_echo_n "(cached) " >&6
33104 else
33105 gcc_cv_ld_sysroot=no
33106 if test $in_tree_ld = yes ; then
33107 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
33108 gcc_cv_ld_sysroot=yes
33109 fi
33110 elif test x$gcc_cv_ld != x; then
33111 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33112 gcc_cv_ld_sysroot=yes
33113 fi
33114 fi
33115 fi
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33117 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33118 if test x"$gcc_cv_ld_sysroot" = xyes; then
33119
33120 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33121
33122 fi
33123
33124 case $target in
33125 *-*-solaris2*)
33126 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33128 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33129 if ${gcc_cv_solaris_crts+:} false; then :
33130 $as_echo_n "(cached) " >&6
33131 else
33132 gcc_cv_solaris_crts=no
33133 if test x$host != x$target; then
33134 if test "x$with_sysroot" = xyes; then
33135 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33136 else
33137 target_sysroot="${with_sysroot}"
33138 fi
33139 fi
33140 target_libdir="$target_sysroot/usr/lib"
33141 # At the time they were added, gcrt1.o became a symlink for backwards
33142 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33143 case $target in
33144 i?86-*-solaris2* | x86_64-*-solaris2*)
33145 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33146 ;;
33147 sparc*-*-solaris2*)
33148 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33149 ;;
33150 esac
33151 fi
33152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33153 $as_echo "$gcc_cv_solaris_crts" >&6; }
33154 ;;
33155 esac
33156 if test x$gcc_cv_solaris_crts = xyes; then
33157
33158 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33159
33160 fi
33161
33162 # Check whether --enable-libssp was given.
33163 if test "${enable_libssp+set}" = set; then :
33164 enableval=$enable_libssp; case "${enableval}" in
33165 yes|no)
33166 ;;
33167 *)
33168 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33169 ;;
33170 esac
33171 fi
33172
33173
33174 # Test for stack protector support in target C library.
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33176 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33177 if ${gcc_cv_libc_provides_ssp+:} false; then :
33178 $as_echo_n "(cached) " >&6
33179 else
33180 gcc_cv_libc_provides_ssp=no
33181 if test "x$enable_libssp" = "xno"; then
33182 gcc_cv_libc_provides_ssp=yes
33183 elif test "x$enable_libssp" = "xyes"; then
33184 gcc_cv_libc_provides_ssp=no
33185 else
33186 case "$target" in
33187 *-*-musl*)
33188 # All versions of musl provide stack protector
33189 gcc_cv_libc_provides_ssp=yes;;
33190 *-*-linux* | *-*-kfreebsd*-gnu)
33191 # glibc 2.4 and later provides __stack_chk_fail and
33192 # either __stack_chk_guard, or TLS access to stack guard canary.
33193
33194 if test $glibc_version_major -gt 2 \
33195 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33196 gcc_cv_libc_provides_ssp=yes
33197 else
33198
33199 if test -f $target_header_dir/features.h \
33200 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33201 $target_header_dir/features.h > /dev/null; then
33202 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33203 $target_header_dir/features.h > /dev/null && \
33204 test -f $target_header_dir/bits/uClibc_config.h && \
33205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33206 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33207 gcc_cv_libc_provides_ssp=yes
33208 fi
33209 # all versions of Bionic support stack protector
33210 elif test -f $target_header_dir/sys/cdefs.h \
33211 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33212 $target_header_dir/sys/cdefs.h > /dev/null; then
33213 gcc_cv_libc_provides_ssp=yes
33214 fi
33215 fi
33216 ;;
33217 *-*-gnu*)
33218 # Avoid complicated tests (see
33219 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33220 # simply assert that glibc does provide this, which is true for all
33221 # realistically usable GNU/Hurd configurations.
33222 # All supported versions of musl provide it as well
33223 gcc_cv_libc_provides_ssp=yes;;
33224 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33225 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33226 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33227 gcc_cv_libc_provides_ssp=yes
33228 else
33229 echo "no __stack_chk_fail on this target"
33230 fi
33231
33232 ;;
33233 *) gcc_cv_libc_provides_ssp=no ;;
33234 esac
33235 fi
33236 fi
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33238 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33239
33240 if test x$gcc_cv_libc_provides_ssp = xyes; then
33241
33242 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33243
33244 fi
33245
33246 # Check whether --enable-default-ssp was given.
33247 # Check whether --enable-default-ssp was given.
33248 if test "${enable_default_ssp+set}" = set; then :
33249 enableval=$enable_default_ssp;
33250 if test x$gcc_cv_libc_provides_ssp = xyes; then
33251 case "$target" in
33252 ia64*-*-*) enable_default_ssp=no ;;
33253 *) enable_default_ssp=$enableval ;;
33254 esac
33255 else
33256 enable_default_ssp=no
33257 fi
33258 else
33259 enable_default_ssp=no
33260 fi
33261
33262 if test x$enable_default_ssp = xyes ; then
33263
33264 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33265
33266 fi
33267
33268
33269 # Test for <sys/sdt.h> on the target.
33270
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33272 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33273 if ${gcc_cv_sys_sdt_h+:} false; then :
33274 $as_echo_n "(cached) " >&6
33275 else
33276
33277 gcc_cv_sys_sdt_h=no
33278 if test -f $target_header_dir/sys/sdt.h; then
33279 gcc_cv_sys_sdt_h=yes
33280 fi
33281
33282 fi
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33284 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33285 if test x$gcc_cv_sys_sdt_h = xyes; then :
33286
33287
33288 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33289
33290
33291 fi
33292
33293 # Check if TFmode long double should be used by default or not.
33294 # Some glibc targets used DFmode long double, but with glibc 2.4
33295 # and later they can use TFmode.
33296 case "$target" in
33297 powerpc*-*-linux* | \
33298 sparc*-*-linux* | \
33299 s390*-*-linux* | \
33300 alpha*-*-linux*)
33301
33302 # Check whether --with-long-double-128 was given.
33303 if test "${with_long_double_128+set}" = set; then :
33304 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33305 else
33306
33307 case "$target" in
33308 s390*-*-linux-musl*)
33309 gcc_cv_target_ldbl128=yes
33310 ;;
33311 powerpc*-*-linux-musl*)
33312 gcc_cv_target_ldbl128=no
33313 ;;
33314 *)
33315
33316 if test $glibc_version_major -gt 2 \
33317 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33318 gcc_cv_target_ldbl128=yes
33319 else
33320
33321 gcc_cv_target_ldbl128=no
33322 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33323 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33324 && gcc_cv_target_ldbl128=yes
33325
33326 fi
33327
33328 ;;
33329 esac
33330
33331 fi
33332
33333 ;;
33334 esac
33335 if test x$gcc_cv_target_ldbl128 = xyes; then
33336
33337 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33338
33339 fi
33340
33341 # Check if TFmode long double target should use the IBM extended double or IEEE
33342 # 128-bit floating point formats if long doubles are 128-bits long. The long
33343 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33344 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33345 # libgcc.
33346
33347 # Check whether --with-long-double-format was given.
33348 if test "${with_long_double_format+set}" = set; then :
33349 withval=$with_long_double_format;
33350 case "$target:$with_long_double_format" in
33351 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33352 :
33353 ;;
33354 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33355 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33356 case "$with_cpu" in
33357 power7 | power8 | power9 | power1*)
33358 :
33359 ;;
33360 *)
33361 as_fn_error $? "Configuration option --with-long-double-format is only \
33362 supported if the default cpu is power7 or newer" "$LINENO" 5
33363 with_long_double_format=""
33364 ;;
33365 esac
33366 ;;
33367 powerpc64*-*-linux*:*)
33368 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33369 with_long_double_format=""
33370 ;;
33371 *)
33372 as_fn_error $? "Configure option --with-long-double-format is only supported \
33373 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33374 with_long_double_format=""
33375 ;;
33376 esac
33377 fi
33378
33379
33380 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33381 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33382 gcc_cv_libc_provides_hwcap_in_tcb=no
33383 case "$target" in
33384 powerpc*-*-linux*)
33385
33386 if test $glibc_version_major -gt 2 \
33387 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33388 gcc_cv_libc_provides_hwcap_in_tcb=yes
33389 fi
33390 ;;
33391 esac
33392 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33393
33394 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33395
33396 fi
33397
33398 # Check if the target LIBC handles PT_GNU_STACK.
33399 gcc_cv_libc_gnustack=unknown
33400 case "$target" in
33401 mips*-*-linux-musl*)
33402 gcc_cv_libc_gnustack=yes
33403 ;;
33404 mips*-*-linux*)
33405
33406 if test $glibc_version_major -gt 2 \
33407 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33408 gcc_cv_libc_gnustack=yes
33409 fi
33410 ;;
33411 esac
33412 if test x$gcc_cv_libc_gnustack = xyes; then
33413
33414 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33415
33416 fi
33417
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33419 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33420 gcc_cv_target_dl_iterate_phdr=unknown
33421 case "$target" in
33422 *-*-solaris2*)
33423 gcc_cv_target_dl_iterate_phdr=yes
33424 ;;
33425 *-*-dragonfly* | *-*-freebsd*)
33426 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33427 gcc_cv_target_dl_iterate_phdr=yes
33428 else
33429 gcc_cv_target_dl_iterate_phdr=no
33430 fi
33431 ;;
33432 *-linux-musl*)
33433 gcc_cv_target_dl_iterate_phdr=yes
33434 ;;
33435 esac
33436
33437 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33438
33439 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33440
33441 fi
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33443 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33444
33445 # We no longer support different GC mechanisms. Emit an error if
33446 # the user configures with --with-gc.
33447
33448 # Check whether --with-gc was given.
33449 if test "${with_gc+set}" = set; then :
33450 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33451 fi
33452
33453
33454 # Libraries to use on the host. This will normally be set by the top
33455 # level Makefile. Here we simply capture the value for our Makefile.
33456 if test -z "${HOST_LIBS+set}"; then
33457 HOST_LIBS=
33458 fi
33459
33460
33461 # Use the system's zlib library.
33462
33463 # Use the system's zlib library.
33464 zlibdir="-L\$(top_builddir)/../zlib"
33465 zlibinc="-I\$(top_srcdir)/../zlib"
33466
33467 # Check whether --with-system-zlib was given.
33468 if test "${with_system_zlib+set}" = set; then :
33469 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33470 zlibdir=
33471 zlibinc=
33472 fi
33473
33474 fi
33475
33476
33477
33478
33479
33480
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33483 # Check whether --enable-maintainer-mode was given.
33484 if test "${enable_maintainer_mode+set}" = set; then :
33485 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33486 else
33487 maintainer_mode=no
33488 fi
33489
33490
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33492 $as_echo "$maintainer_mode" >&6; }
33493
33494 if test "$maintainer_mode" = "yes"; then
33495 MAINT=''
33496 else
33497 MAINT='#'
33498 fi
33499
33500 if test -z "$CTAGS"; then
33501 CTAGS=ctags
33502 fi
33503
33504 if test -z "$ETAGS"; then
33505 ETAGS=etags
33506 fi
33507
33508 if test -z "$CSCOPE"; then
33509 CSCOPE=cscope
33510 fi
33511
33512
33513
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33515 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33516 # Check whether --enable-link-mutex was given.
33517 if test "${enable_link_mutex+set}" = set; then :
33518 enableval=$enable_link_mutex; do_link_mutex=$enableval
33519 else
33520 do_link_mutex=no
33521 fi
33522
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33524 $as_echo "$do_link_mutex" >&6; }
33525
33526 if test "$do_link_mutex" = "yes"; then
33527 DO_LINK_MUTEX=true
33528 { $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
33529 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33530 else
33531 DO_LINK_MUTEX=false
33532 fi
33533
33534
33535
33536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33537 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33538 # Check whether --enable-link-serialization was given.
33539 if test "${enable_link_serialization+set}" = set; then :
33540 enableval=$enable_link_serialization; do_link_serialization=$enableval
33541 else
33542 do_link_serialization=no
33543 fi
33544
33545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33546 $as_echo "$do_link_serialization" >&6; }
33547
33548 case "$do_link_serialization" in
33549 yes)
33550 DO_LINK_SERIALIZATION=1;;
33551 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33552 DO_LINK_SERIALIZATION=$do_link_serialization;;
33553 no)
33554 DO_LINK_SERIALIZATION=;;
33555 *)
33556 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33557 esac
33558
33559
33560 # --------------
33561 # Language hooks
33562 # --------------
33563
33564 # Make empty files to contain the specs and options for each language.
33565 # Then add #include lines to for a compiler that has specs and/or options.
33566
33567 subdirs=
33568 lang_opt_files=
33569 lang_specs_files=
33570 lang_tree_files=
33571 # These (without "all_") are set in each config-lang.in.
33572 # `language' must be a single word so is spelled singularly.
33573 all_languages=
33574 all_compilers=
33575 all_outputs='Makefile'
33576 # List of language configure and makefile fragments.
33577 all_lang_configurefrags=
33578 all_lang_makefrags=
33579 # Additional files for gengtype
33580 all_gtfiles="$target_gtfiles"
33581
33582 # These are the languages that are set in --enable-languages,
33583 # and are available in the GCC tree.
33584 all_selected_languages=
33585
33586 # Add the language fragments.
33587 # Languages are added via two mechanisms. Some information must be
33588 # recorded in makefile variables, these are defined in config-lang.in.
33589 # We accumulate them and plug them into the main Makefile.
33590 # The other mechanism is a set of hooks for each of the main targets
33591 # like `clean', `install', etc.
33592
33593 language_hooks="Make-hooks"
33594
33595 for lang in ${srcdir}/*/config-lang.in
33596 do
33597 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33598
33599 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33600 if test "x$lang_alias" = x
33601 then
33602 echo "$lang doesn't set \$language." 1>&2
33603 exit 1
33604 fi
33605 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33606 subdirs="$subdirs $subdir"
33607
33608 # $gcc_subdir is where the gcc integration files are to be found
33609 # for a language, both for internal compiler purposes (compiler
33610 # sources implementing front-end to GCC tree converters), and for
33611 # build infrastructure purposes (Make-lang.in, etc.)
33612 #
33613 # This will be <subdir> (relative to $srcdir) if a line like
33614 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33615 # is found in <langdir>/config-lang.in, and will remain <langdir>
33616 # otherwise.
33617 #
33618 # Except for the language alias (fetched above), the regular
33619 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33620 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33621 # only this and the language alias.
33622
33623 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33624 if [ "$gcc_subdir" = "" ]; then
33625 gcc_subdir="$subdir"
33626 fi
33627
33628 case ",$enable_languages," in
33629 *,$lang_alias,*)
33630 all_selected_languages="$all_selected_languages $lang_alias"
33631 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33632 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33633 fi
33634 ;;
33635 esac
33636
33637 language=
33638 boot_language=
33639 compilers=
33640 outputs=
33641 gtfiles=
33642 subdir_requires=
33643 . ${srcdir}/$gcc_subdir/config-lang.in
33644 if test "x$language" = x
33645 then
33646 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33647 exit 1
33648 fi
33649
33650 ok=:
33651 case ",$enable_languages," in
33652 *,$lang_alias,*) ;;
33653 *)
33654 for i in $subdir_requires; do
33655 test -f "${srcdir}/$i/config-lang.in" && continue
33656 ok=false
33657 break
33658 done
33659 ;;
33660 esac
33661 $ok || continue
33662
33663 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33664 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33665 # Put c/Make-lang.in fragment first to match serialization languages order.
33666 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33667 else
33668 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33669 fi
33670 if test -f $srcdir/$gcc_subdir/lang.opt; then
33671 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33672 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33673 fi
33674 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33675 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33676 fi
33677 all_languages="$all_languages $language"
33678 all_compilers="$all_compilers $compilers"
33679 all_outputs="$all_outputs $outputs"
33680 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33681 case ",$enable_languages," in
33682 *,lto,*)
33683
33684 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33685
33686 enable_lto=yes
33687
33688 ;;
33689 *) ;;
33690 esac
33691 done
33692
33693 check_languages=
33694 for language in $all_selected_languages
33695 do
33696 check_languages="$check_languages check-$language"
33697 done
33698
33699 selftest_languages=
33700 for language in $all_selected_languages
33701 do
33702 selftest_languages="$selftest_languages selftest-$language"
33703 done
33704
33705 # We link each language in with a set of hooks, reached indirectly via
33706 # lang.${target}. Only do so for selected languages.
33707
33708 rm -f Make-hooks
33709 touch Make-hooks
33710 target_list="all.cross start.encap rest.encap tags \
33711 install-common install-man install-info install-dvi install-pdf \
33712 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33713 mostlyclean clean distclean maintainer-clean install-plugin"
33714
33715 for t in $target_list
33716 do
33717 x=
33718 for lang in $all_selected_languages
33719 do
33720 x="$x $lang.$t"
33721 done
33722 echo "lang.$t: $x" >> Make-hooks
33723 done
33724
33725 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33726 echo "SERIAL_LIST =" >> Make-hooks
33727 echo else >> Make-hooks
33728 lang_cnt=0
33729 lang_list=
33730 prev=c
33731 serialization_languages=c
33732 for lang in $all_selected_languages
33733 do
33734 test $lang = c && continue
33735 if test $lang = lto; then
33736 serialization_languages="$serialization_languages lto1 lto2"
33737 else
33738 serialization_languages="$serialization_languages $lang"
33739 fi
33740 done
33741 for lang in $serialization_languages
33742 do
33743 test $lang = c && continue
33744 lang_cnt=`expr $lang_cnt + 1`
33745 lang_list=" $prev$lang_list"
33746 prev=${lang}
33747 done
33748 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33749 echo endif >> Make-hooks
33750 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33751 echo "INDEX.c = 0" >> Make-hooks
33752 lang_idx=1
33753 for lang in $serialization_languages
33754 do
33755 test $lang = c && continue
33756 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33757 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33758 lang_cnt=`expr $lang_cnt - 1`
33759 lang_idx=`expr $lang_idx + 1`
33760 done
33761
33762 # --------
33763 # Option include files
33764 # --------
33765
33766 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33767 option_includes="option-includes.mk"
33768
33769
33770 # --------
33771 # UNSORTED
33772 # --------
33773
33774 # Create .gdbinit.
33775
33776 echo "dir ." > .gdbinit
33777 echo "dir ${srcdir}" >> .gdbinit
33778 if test x$gdb_needs_out_file_path = xyes
33779 then
33780 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33781 fi
33782 if test "x$subdirs" != x; then
33783 for s in $subdirs
33784 do
33785 echo "dir ${srcdir}/$s" >> .gdbinit
33786 done
33787 fi
33788 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33789 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33790
33791 # Put a breakpoint on __asan_report_error to help with debugging buffer
33792 # overflow.
33793 case "$CFLAGS" in
33794 *-fsanitize=address*)
33795 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33796 ;;
33797 esac
33798
33799 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33800
33801
33802
33803 # Find a directory in which to install a shared libgcc.
33804
33805 # Check whether --enable-version-specific-runtime-libs was given.
33806 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33807 enableval=$enable_version_specific_runtime_libs;
33808 fi
33809
33810
33811 # Substitute configuration variables
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884 # Echo link setup.
33885 if test x${build} = x${host} ; then
33886 if test x${host} = x${target} ; then
33887 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33888 else
33889 echo "Links are now set up to build a cross-compiler" 1>&2
33890 echo " from ${host} to ${target}." 1>&2
33891 fi
33892 else
33893 if test x${host} = x${target} ; then
33894 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33895 echo " for ${target}." 1>&2
33896 else
33897 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33898 echo " from ${host} to ${target}." 1>&2
33899 fi
33900 fi
33901
33902
33903
33904
33905
33906
33907 if test "x${ISLLIBS}" != "x" ; then
33908
33909 $as_echo "#define HAVE_isl 1" >>confdefs.h
33910
33911 fi
33912
33913 # Check for plugin support
33914 # Check whether --enable-plugin was given.
33915 if test "${enable_plugin+set}" = set; then :
33916 enableval=$enable_plugin; enable_plugin=$enableval
33917 else
33918 enable_plugin=yes; default_plugin=yes
33919 fi
33920
33921
33922 pluginlibs=
33923 plugin_check=yes
33924
33925 case "${host}" in
33926 *-*-mingw*)
33927 # Since plugin support under MinGW is not as straightforward as on
33928 # other platforms (e.g., we have to link import library, etc), we
33929 # only enable it if explicitly requested.
33930 if test x"$default_plugin" = x"yes"; then
33931 enable_plugin=no
33932 elif test x"$enable_plugin" = x"yes"; then
33933 # Use make's target variable to derive import library name.
33934 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
33935 plugin_check=no
33936 fi
33937 ;;
33938 *-*-darwin*)
33939 if test x$build = x$host; then
33940 export_sym_check="nm${exeext} -g"
33941 elif test x$host = x$target; then
33942 export_sym_check="$gcc_cv_nm -g"
33943 else
33944 export_sym_check=
33945 fi
33946 ;;
33947 *)
33948 if test x$build = x$host; then
33949 export_sym_check="$ac_cv_prog_OBJDUMP -T"
33950 elif test x$host = x$target; then
33951 export_sym_check="$gcc_cv_objdump -T"
33952 else
33953 export_sym_check="$ac_cv_prog_OBJDUMP -T"
33954 fi
33955 ;;
33956 esac
33957
33958 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
33959
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
33961 $as_echo_n "checking for exported symbols... " >&6; }
33962 if test "x$export_sym_check" != x; then
33963 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
33964 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
33965 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
33966 : # No need to use a flag
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33968 $as_echo "yes" >&6; }
33969 else
33970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33971 $as_echo "yes" >&6; }
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
33973 $as_echo_n "checking for -rdynamic... " >&6; }
33974 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
33975 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
33976 plugin_rdynamic=yes
33977 pluginlibs="-rdynamic"
33978 else
33979 plugin_rdynamic=no
33980 enable_plugin=no
33981 fi
33982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
33983 $as_echo "$plugin_rdynamic" >&6; }
33984 fi
33985 else
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
33987 $as_echo "unable to check" >&6; }
33988 fi
33989
33990 # Check -ldl
33991 saved_LIBS="$LIBS"
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
33993 $as_echo_n "checking for library containing dlopen... " >&6; }
33994 if ${ac_cv_search_dlopen+:} false; then :
33995 $as_echo_n "(cached) " >&6
33996 else
33997 ac_func_search_save_LIBS=$LIBS
33998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33999 /* end confdefs.h. */
34000
34001 /* Override any GCC internal prototype to avoid an error.
34002 Use char because int might match the return type of a GCC
34003 builtin and then its argument prototype would still apply. */
34004 #ifdef __cplusplus
34005 extern "C"
34006 #endif
34007 char dlopen ();
34008 int
34009 main ()
34010 {
34011 return dlopen ();
34012 ;
34013 return 0;
34014 }
34015 _ACEOF
34016 for ac_lib in '' dl; do
34017 if test -z "$ac_lib"; then
34018 ac_res="none required"
34019 else
34020 ac_res=-l$ac_lib
34021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34022 fi
34023 if ac_fn_cxx_try_link "$LINENO"; then :
34024 ac_cv_search_dlopen=$ac_res
34025 fi
34026 rm -f core conftest.err conftest.$ac_objext \
34027 conftest$ac_exeext
34028 if ${ac_cv_search_dlopen+:} false; then :
34029 break
34030 fi
34031 done
34032 if ${ac_cv_search_dlopen+:} false; then :
34033
34034 else
34035 ac_cv_search_dlopen=no
34036 fi
34037 rm conftest.$ac_ext
34038 LIBS=$ac_func_search_save_LIBS
34039 fi
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34041 $as_echo "$ac_cv_search_dlopen" >&6; }
34042 ac_res=$ac_cv_search_dlopen
34043 if test "$ac_res" != no; then :
34044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34045
34046 fi
34047
34048 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34049 pluginlibs="$pluginlibs -ldl"
34050 fi
34051 LIBS="$saved_LIBS"
34052
34053 # Check that we can build shared objects with -fPIC -shared
34054 saved_LDFLAGS="$LDFLAGS"
34055 saved_CFLAGS="$CFLAGS"
34056 saved_CXXFLAGS="$CXXFLAGS"
34057 case "${host}" in
34058 *-*-darwin*)
34059 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34060 CFLAGS="$CFLAGS -fPIC"
34061 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34062 CXXFLAGS="$CXXFLAGS -fPIC"
34063 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34064 ;;
34065 *)
34066 CFLAGS="$CFLAGS -fPIC"
34067 CXXFLAGS="$CXXFLAGS -fPIC"
34068 LDFLAGS="$LDFLAGS -fPIC -shared"
34069 ;;
34070 esac
34071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34072 $as_echo_n "checking for -fPIC -shared... " >&6; }
34073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34074 /* end confdefs.h. */
34075 extern int X;
34076 int
34077 main ()
34078 {
34079 return X == 0;
34080 ;
34081 return 0;
34082 }
34083 _ACEOF
34084 if ac_fn_cxx_try_link "$LINENO"; then :
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34086 $as_echo "yes" >&6; }; have_pic_shared=yes
34087 else
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34089 $as_echo "no" >&6; }; have_pic_shared=no
34090 fi
34091 rm -f core conftest.err conftest.$ac_objext \
34092 conftest$ac_exeext conftest.$ac_ext
34093 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34094 pluginlibs=
34095 enable_plugin=no
34096 fi
34097 LDFLAGS="$saved_LDFLAGS"
34098 CFLAGS="$saved_CFLAGS"
34099 CXXFLAGS="$saved_CXXFLAGS"
34100
34101 # If plugin support had been requested but not available, fail.
34102 if test x"$enable_plugin" = x"no" ; then
34103 if test x"$default_plugin" != x"yes"; then
34104 as_fn_error $? "
34105 Building GCC with plugin support requires a host that supports
34106 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34107 fi
34108 fi
34109 fi
34110
34111
34112
34113 if test x"$enable_plugin" = x"yes"; then
34114
34115 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34116
34117 fi
34118
34119
34120 # Enable --enable-host-shared
34121 # Check whether --enable-host-shared was given.
34122 if test "${enable_host_shared+set}" = set; then :
34123 enableval=$enable_host_shared;
34124 fi
34125
34126
34127
34128 # Enable --enable-host-pie
34129 # Check whether --enable-host-pie was given.
34130 if test "${enable_host_pie+set}" = set; then :
34131 enableval=$enable_host_pie;
34132 fi
34133
34134
34135
34136 # Enable --enable-host-bind-now
34137 # Check whether --enable-host-bind-now was given.
34138 if test "${enable_host_bind_now+set}" = set; then :
34139 enableval=$enable_host_bind_now;
34140 fi
34141
34142
34143
34144 # Check whether --enable-libquadmath-support was given.
34145 if test "${enable_libquadmath_support+set}" = set; then :
34146 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34147 else
34148 ENABLE_LIBQUADMATH_SUPPORT=yes
34149 fi
34150
34151 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34152
34153 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34154
34155 fi
34156
34157
34158 # Specify what hash style to use by default.
34159
34160 # Check whether --with-linker-hash-style was given.
34161 if test "${with_linker_hash_style+set}" = set; then :
34162 withval=$with_linker_hash_style; case x"$withval" in
34163 xsysv)
34164 LINKER_HASH_STYLE=sysv
34165 ;;
34166 xgnu)
34167 LINKER_HASH_STYLE=gnu
34168 ;;
34169 xboth)
34170 LINKER_HASH_STYLE=both
34171 ;;
34172 *)
34173 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34174 ;;
34175 esac
34176 else
34177 LINKER_HASH_STYLE=''
34178 fi
34179
34180 if test x"${LINKER_HASH_STYLE}" != x; then
34181
34182 cat >>confdefs.h <<_ACEOF
34183 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34184 _ACEOF
34185
34186 fi
34187
34188 # Specify what should be the default of -fdiagnostics-color option.
34189
34190 # Check whether --with-diagnostics-color was given.
34191 if test "${with_diagnostics_color+set}" = set; then :
34192 withval=$with_diagnostics_color; case x"$withval" in
34193 xnever)
34194 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34195 ;;
34196 xauto)
34197 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34198 ;;
34199 xauto-if-env)
34200 DIAGNOSTICS_COLOR_DEFAULT=-1
34201 ;;
34202 xalways)
34203 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34204 ;;
34205 *)
34206 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34207 ;;
34208 esac
34209 else
34210 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34211 fi
34212
34213
34214 cat >>confdefs.h <<_ACEOF
34215 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34216 _ACEOF
34217
34218
34219 # Specify what should be the default of -fdiagnostics-urls option.
34220
34221 # Check whether --with-diagnostics-urls was given.
34222 if test "${with_diagnostics_urls+set}" = set; then :
34223 withval=$with_diagnostics_urls; case x"$withval" in
34224 xnever)
34225 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34226 ;;
34227 xauto)
34228 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34229 ;;
34230 xauto-if-env)
34231 DIAGNOSTICS_URLS_DEFAULT=-1
34232 ;;
34233 xalways)
34234 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34235 ;;
34236 *)
34237 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34238 ;;
34239 esac
34240 else
34241 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34242 fi
34243
34244
34245 cat >>confdefs.h <<_ACEOF
34246 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34247 _ACEOF
34248
34249
34250 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34251 # of jit/jit-playback.cc.
34252 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34253 echo "gcc_driver_version: ${gcc_driver_version}"
34254 cat > gcc-driver-name.h <<EOF
34255 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34256 EOF
34257
34258 # Check whether --enable-default-pie was given.
34259 # Check whether --enable-default-pie was given.
34260 if test "${enable_default_pie+set}" = set; then :
34261 enableval=$enable_default_pie; enable_default_pie=$enableval
34262 else
34263 enable_default_pie=no
34264 fi
34265
34266 if test x$enable_default_pie = xyes ; then
34267
34268 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34269
34270 fi
34271
34272
34273 # Check if -fno-PIE works.
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34275 $as_echo_n "checking for -fno-PIE option... " >&6; }
34276 if ${gcc_cv_c_no_fpie+:} false; then :
34277 $as_echo_n "(cached) " >&6
34278 else
34279 saved_CXXFLAGS="$CXXFLAGS"
34280 CXXFLAGS="$CXXFLAGS -fno-PIE"
34281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34282 /* end confdefs.h. */
34283 int main(void) {return 0;}
34284 _ACEOF
34285 if ac_fn_cxx_try_compile "$LINENO"; then :
34286 gcc_cv_c_no_fpie=yes
34287 else
34288 gcc_cv_c_no_fpie=no
34289 fi
34290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34291 CXXFLAGS="$saved_CXXFLAGS"
34292 fi
34293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34294 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34295
34296 # Check if -no-pie works.
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34298 $as_echo_n "checking for -no-pie option... " >&6; }
34299 if ${gcc_cv_no_pie+:} false; then :
34300 $as_echo_n "(cached) " >&6
34301 else
34302 saved_LDFLAGS="$LDFLAGS"
34303 LDFLAGS="$LDFLAGS -no-pie"
34304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34305 /* end confdefs.h. */
34306 int main(void) {return 0;}
34307 _ACEOF
34308 if ac_fn_cxx_try_link "$LINENO"; then :
34309 gcc_cv_no_pie=yes
34310 else
34311 gcc_cv_no_pie=no
34312 fi
34313 rm -f core conftest.err conftest.$ac_objext \
34314 conftest$ac_exeext conftest.$ac_ext
34315 LDFLAGS="$saved_LDFLAGS"
34316 fi
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34318 $as_echo "$gcc_cv_no_pie" >&6; }
34319
34320 if test x$enable_host_shared = xyes; then
34321 PICFLAG=-fPIC
34322 elif test x$enable_host_pie = xyes; then
34323 PICFLAG=-fPIE
34324 elif test x$gcc_cv_c_no_fpie = xyes; then
34325 PICFLAG=-fno-PIE
34326 else
34327 PICFLAG=
34328 fi
34329
34330
34331
34332 if test x$enable_host_pie = xyes; then
34333 LD_PICFLAG=-pie
34334 elif test x$gcc_cv_no_pie = xyes; then
34335 LD_PICFLAG=-no-pie
34336 else
34337 LD_PICFLAG=
34338 fi
34339
34340 if test x$enable_host_bind_now = xyes; then
34341 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34342 fi
34343
34344
34345
34346 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34347 # Check whether --enable-cet was given.
34348 if test "${enable_cet+set}" = set; then :
34349 enableval=$enable_cet;
34350 case "$enableval" in
34351 yes|no|auto) ;;
34352 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34353 esac
34354
34355 else
34356 enable_cet=auto
34357 fi
34358
34359
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34361 $as_echo_n "checking for CET support... " >&6; }
34362
34363 case "$host" in
34364 i[34567]86-*-linux* | x86_64-*-linux*)
34365 may_have_cet=yes
34366 cet_save_CFLAGS="$CFLAGS"
34367 CFLAGS="$CFLAGS -fcf-protection"
34368 case "$enable_cet" in
34369 auto)
34370 # Check if target supports multi-byte NOPs
34371 # and if compiler and assembler support CET.
34372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34373 /* end confdefs.h. */
34374
34375 int
34376 main ()
34377 {
34378
34379 #if !defined(__SSE2__)
34380 #error target does not support multi-byte NOPs
34381 #else
34382 asm ("setssbsy");
34383 #endif
34384
34385 ;
34386 return 0;
34387 }
34388 _ACEOF
34389 if ac_fn_cxx_try_compile "$LINENO"; then :
34390 enable_cet=yes
34391 else
34392 enable_cet=no
34393 fi
34394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34395 ;;
34396 yes)
34397 # Check if compiler and assembler support CET.
34398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34399 /* end confdefs.h. */
34400
34401 int
34402 main ()
34403 {
34404 asm ("setssbsy");
34405 ;
34406 return 0;
34407 }
34408 _ACEOF
34409 if ac_fn_cxx_try_compile "$LINENO"; then :
34410 support_cet=yes
34411 else
34412 support_cet=no
34413 fi
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34415 if test $support_cet = "no"; then
34416 if test x$enable_bootstrap != xno \
34417 && test -z "${with_build_subdir}" \
34418 && (test ! -f ../stage_current \
34419 || test `cat ../stage_current` != "stage1"); then
34420 # Require CET support only for the final GCC build.
34421 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34422 else
34423 # Don't enable CET without CET support for non-bootstrap
34424 # build, in stage1 nor for build support.
34425 enable_cet=no
34426 fi
34427 fi
34428 ;;
34429 esac
34430 CFLAGS="$cet_save_CFLAGS"
34431 ;;
34432 *)
34433 may_have_cet=no
34434 enable_cet=no
34435 ;;
34436 esac
34437
34438 cet_save_CFLAGS="$CFLAGS"
34439 CFLAGS="$CFLAGS -fcf-protection=none"
34440 cet_save_LDFLAGS="$LDFLAGS"
34441 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34442 if test x$may_have_cet = xyes; then
34443 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34445 /* end confdefs.h. */
34446
34447 int
34448 main ()
34449 {
34450 return 0;
34451 ;
34452 return 0;
34453 }
34454 _ACEOF
34455 if ac_fn_cxx_try_link "$LINENO"; then :
34456 may_have_cet=yes
34457 else
34458 may_have_cet=no
34459 fi
34460 rm -f core conftest.err conftest.$ac_objext \
34461 conftest$ac_exeext conftest.$ac_ext
34462 fi
34463
34464 if test x$may_have_cet = xyes; then
34465 if test x$cross_compiling = xno; then
34466 if test "$cross_compiling" = yes; then :
34467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34469 as_fn_error $? "cannot run test program while cross compiling
34470 See \`config.log' for more details" "$LINENO" 5; }
34471 else
34472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34473 /* end confdefs.h. */
34474
34475 int
34476 main ()
34477 {
34478 asm ("endbr32");
34479 return 0;
34480 }
34481
34482 _ACEOF
34483 if ac_fn_cxx_try_run "$LINENO"; then :
34484 have_multi_byte_nop=yes
34485 else
34486 have_multi_byte_nop=no
34487 fi
34488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34489 conftest.$ac_objext conftest.beam conftest.$ac_ext
34490 fi
34491
34492 have_cet=no
34493 if test x$have_multi_byte_nop = xyes; then
34494 if test "$cross_compiling" = yes; then :
34495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34497 as_fn_error $? "cannot run test program while cross compiling
34498 See \`config.log' for more details" "$LINENO" 5; }
34499 else
34500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34501 /* end confdefs.h. */
34502
34503 static void
34504 foo (void)
34505 {
34506 }
34507
34508 static void
34509 __attribute__ ((noinline, noclone))
34510 xxx (void (*f) (void))
34511 {
34512 f ();
34513 }
34514
34515 static void
34516 __attribute__ ((noinline, noclone))
34517 bar (void)
34518 {
34519 xxx (foo);
34520 }
34521
34522 int
34523 main ()
34524 {
34525 bar ();
34526 return 0;
34527 }
34528
34529 _ACEOF
34530 if ac_fn_cxx_try_run "$LINENO"; then :
34531 have_cet=no
34532 else
34533 have_cet=yes
34534 fi
34535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34536 conftest.$ac_objext conftest.beam conftest.$ac_ext
34537 fi
34538
34539 fi
34540 if test x$enable_cet = xno -a x$have_cet = xyes; then
34541 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34542 fi
34543 fi
34544 else
34545 # Enable CET in cross compiler if possible so that it will run on both
34546 # CET and non-CET hosts.
34547 have_cet=yes
34548 fi
34549 if test x$enable_cet = xyes; then
34550 CET_HOST_FLAGS="-fcf-protection"
34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34552 $as_echo "yes" >&6; }
34553 else
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34555 $as_echo "no" >&6; }
34556 fi
34557 CFLAGS="$cet_save_CFLAGS"
34558 LDFLAGS="$cet_save_LDFLAGS"
34559
34560 case x$enable_languages in
34561 *jit*)
34562 ;;
34563 *)
34564 CET_HOST_FLAGS=
34565 ;;
34566 esac
34567
34568
34569 # Check linker supports '-z bndplt'
34570 ld_bndplt_support=no
34571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34572 $as_echo_n "checking linker -z bndplt option... " >&6; }
34573 if test x"$ld_is_gold" = xno; then
34574 if test $in_tree_ld = yes ; then
34575 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
34576 ld_bndplt_support=yes
34577 fi
34578 elif test x$gcc_cv_ld != x; then
34579 # Check if linker supports -z bndplt option
34580 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34581 ld_bndplt_support=yes
34582 fi
34583 fi
34584 fi
34585 if test x"$ld_bndplt_support" = xyes; then
34586
34587 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34588
34589 fi
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34591 $as_echo "$ld_bndplt_support" >&6; }
34592
34593 # Check linker supports '--push-state'/'--pop-state'
34594 ld_pushpopstate_support=no
34595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34596 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34597 if test x"$ld_is_gold" = xno; then
34598 if test $in_tree_ld = yes ; then
34599 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
34600 ld_pushpopstate_support=yes
34601 fi
34602 elif test x$gcc_cv_ld != x; then
34603 # Check if linker supports --push-state/--pop-state options
34604 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34605 ld_pushpopstate_support=yes
34606 fi
34607 fi
34608 fi
34609 if test x"$ld_pushpopstate_support" = xyes; then
34610
34611 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34612
34613 fi
34614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34615 $as_echo "$ld_pushpopstate_support" >&6; }
34616
34617 # On s390, float_t has historically been statically defined as double for no
34618 # good reason. To comply with the C standard in the light of this definition,
34619 # gcc has evaluated float expressions in double precision when in
34620 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34621 # a smooth transition towards the new model used by most architectures, where
34622 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34623 # float_t from that, this behavior can be configured with
34624 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34625 # the old model. When omitted, native builds and cross compiles that have target
34626 # libc headers will detect whether libc clamps float_t to double and in that
34627 # case maintain the old model. Otherwise, they will default to the new model.
34628 # Check whether --enable-s390-excess-float-precision was given.
34629 if test "${enable_s390_excess_float_precision+set}" = set; then :
34630 enableval=$enable_s390_excess_float_precision;
34631 else
34632 enable_s390_excess_float_precision=auto
34633 fi
34634
34635
34636 case $target in
34637 s390*-linux*)
34638 if test x"$enable_s390_excess_float_precision" = xauto; then
34639 # Can we autodetect the behavior of the target libc?
34640 if test "$target" = "$host" -a "$host" = "$build"; then
34641 enable_s390_excess_float_precision=autodetect
34642 elif test "x$with_headers" != xno; then
34643 # cross build. are target headers available?
34644 # carefully coerce the build-system compiler to use target headers
34645 saved_CXXFLAGS="$CXXFLAGS"
34646 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34647 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34648 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34650 /* end confdefs.h. */
34651
34652 #include <math.h>
34653
34654 _ACEOF
34655 if ac_fn_cxx_try_compile "$LINENO"; then :
34656 enable_s390_excess_float_precision=autodetect
34657 fi
34658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34659 CXXFLAGS="$saved_CXXFLAGS"
34660 fi
34661
34662 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34663 saved_CXXFLAGS="$CXXFLAGS"
34664 if ! test "$target" = "$host" -a "$host" = "$build"; then
34665 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34666 unset CROSS_TEST_CXXFLAGS
34667 fi
34668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34669 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34670 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34671 $as_echo_n "(cached) " >&6
34672 else
34673
34674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34675 /* end confdefs.h. */
34676
34677 #define __FLT_EVAL_METHOD__ 0
34678 #include <math.h>
34679 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34680
34681 _ACEOF
34682 if ac_fn_cxx_try_compile "$LINENO"; then :
34683 gcc_cv_float_t_clamped_to_double=yes
34684 else
34685 gcc_cv_float_t_clamped_to_double=no
34686 fi
34687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34688 fi
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34690 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34691 CXXFLAGS="$saved_CXXFLAGS"
34692 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34693 else
34694 # no way to detect behavior of target libc, default to new model
34695 enable_s390_excess_float_precision=no
34696 fi
34697 fi
34698
34699
34700 if test x"$enable_s390_excess_float_precision" = xyes; then
34701
34702 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34703
34704 fi
34705 ;;
34706 esac
34707
34708 # Check if the linker supports '-z now'
34709 ld_now_support=no
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34711 $as_echo_n "checking linker -z now option... " >&6; }
34712 if test x"$ld_is_gold" = xyes; then
34713 ld_now_support=yes
34714 elif test $in_tree_ld = yes ; then
34715 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
34716 ld_now_support=yes
34717 fi
34718 elif test x$gcc_cv_ld != x; then
34719 # Check if linker supports -z now
34720 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34721 ld_now_support=yes
34722 fi
34723 fi
34724
34725 cat >>confdefs.h <<_ACEOF
34726 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34727 _ACEOF
34728
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34730 $as_echo "$ld_now_support" >&6; }
34731
34732 # Check if the linker supports '-z relro'
34733 ld_relro_support=no
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34735 $as_echo_n "checking linker -z relro option... " >&6; }
34736 if test x"$ld_is_gold" = xyes; then
34737 ld_relro_support=yes
34738 elif test $in_tree_ld = yes ; then
34739 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
34740 ld_relro_support=yes
34741 fi
34742 elif test x$gcc_cv_ld != x; then
34743 # Check if linker supports -z relro
34744 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34745 ld_relro_support=yes
34746 fi
34747 fi
34748
34749 cat >>confdefs.h <<_ACEOF
34750 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34751 _ACEOF
34752
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34754 $as_echo "$ld_relro_support" >&6; }
34755
34756 case $target_os in
34757 linux* | gnu*)
34758 # -fhardened is only supported on GNU/Linux.
34759 fhardened_support=yes
34760 ;;
34761 *)
34762 fhardened_support=no
34763 ;;
34764 esac
34765
34766
34767 cat >>confdefs.h <<_ACEOF
34768 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34769 _ACEOF
34770
34771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34772 $as_echo "$fhardened_support" >&6; }
34773
34774 # Configure the subdirectories
34775 # AC_CONFIG_SUBDIRS($subdirs)
34776
34777 # Create the Makefile
34778 # and configure language subdirectories
34779 ac_config_files="$ac_config_files $all_outputs"
34780
34781
34782 ac_config_commands="$ac_config_commands default"
34783
34784 cat >confcache <<\_ACEOF
34785 # This file is a shell script that caches the results of configure
34786 # tests run on this system so they can be shared between configure
34787 # scripts and configure runs, see configure's option --config-cache.
34788 # It is not useful on other systems. If it contains results you don't
34789 # want to keep, you may remove or edit it.
34790 #
34791 # config.status only pays attention to the cache file if you give it
34792 # the --recheck option to rerun configure.
34793 #
34794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34796 # following values.
34797
34798 _ACEOF
34799
34800 # The following way of writing the cache mishandles newlines in values,
34801 # but we know of no workaround that is simple, portable, and efficient.
34802 # So, we kill variables containing newlines.
34803 # Ultrix sh set writes to stderr and can't be redirected directly,
34804 # and sets the high bit in the cache file unless we assign to the vars.
34805 (
34806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34807 eval ac_val=\$$ac_var
34808 case $ac_val in #(
34809 *${as_nl}*)
34810 case $ac_var in #(
34811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34813 esac
34814 case $ac_var in #(
34815 _ | IFS | as_nl) ;; #(
34816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34817 *) { eval $ac_var=; unset $ac_var;} ;;
34818 esac ;;
34819 esac
34820 done
34821
34822 (set) 2>&1 |
34823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34824 *${as_nl}ac_space=\ *)
34825 # `set' does not quote correctly, so add quotes: double-quote
34826 # substitution turns \\\\ into \\, and sed turns \\ into \.
34827 sed -n \
34828 "s/'/'\\\\''/g;
34829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34830 ;; #(
34831 *)
34832 # `set' quotes correctly as required by POSIX, so do not add quotes.
34833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34834 ;;
34835 esac |
34836 sort
34837 ) |
34838 sed '
34839 /^ac_cv_env_/b end
34840 t clear
34841 :clear
34842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34843 t end
34844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34845 :end' >>confcache
34846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34847 if test -w "$cache_file"; then
34848 if test "x$cache_file" != "x/dev/null"; then
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34850 $as_echo "$as_me: updating cache $cache_file" >&6;}
34851 if test ! -f "$cache_file" || test -h "$cache_file"; then
34852 cat confcache >"$cache_file"
34853 else
34854 case $cache_file in #(
34855 */* | ?:*)
34856 mv -f confcache "$cache_file"$$ &&
34857 mv -f "$cache_file"$$ "$cache_file" ;; #(
34858 *)
34859 mv -f confcache "$cache_file" ;;
34860 esac
34861 fi
34862 fi
34863 else
34864 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34865 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34866 fi
34867 fi
34868 rm -f confcache
34869
34870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34871 # Let make expand exec_prefix.
34872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34873
34874 DEFS=-DHAVE_CONFIG_H
34875
34876 ac_libobjs=
34877 ac_ltlibobjs=
34878 U=
34879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34880 # 1. Remove the extension, and $U if already installed.
34881 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34882 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34883 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34884 # will be set to the directory where LIBOBJS objects are built.
34885 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34886 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34887 done
34888 LIBOBJS=$ac_libobjs
34889
34890 LTLIBOBJS=$ac_ltlibobjs
34891
34892
34893
34894 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34895 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34897 fi
34898
34899 : "${CONFIG_STATUS=./config.status}"
34900 ac_write_fail=0
34901 ac_clean_files_save=$ac_clean_files
34902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34904 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34905 as_write_fail=0
34906 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34907 #! $SHELL
34908 # Generated by $as_me.
34909 # Run this file to recreate the current configuration.
34910 # Compiler output produced by configure, useful for debugging
34911 # configure, is in config.log if it exists.
34912
34913 debug=false
34914 ac_cs_recheck=false
34915 ac_cs_silent=false
34916
34917 SHELL=\${CONFIG_SHELL-$SHELL}
34918 export SHELL
34919 _ASEOF
34920 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34921 ## -------------------- ##
34922 ## M4sh Initialization. ##
34923 ## -------------------- ##
34924
34925 # Be more Bourne compatible
34926 DUALCASE=1; export DUALCASE # for MKS sh
34927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34928 emulate sh
34929 NULLCMD=:
34930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34931 # is contrary to our usage. Disable this feature.
34932 alias -g '${1+"$@"}'='"$@"'
34933 setopt NO_GLOB_SUBST
34934 else
34935 case `(set -o) 2>/dev/null` in #(
34936 *posix*) :
34937 set -o posix ;; #(
34938 *) :
34939 ;;
34940 esac
34941 fi
34942
34943
34944 as_nl='
34945 '
34946 export as_nl
34947 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34948 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34951 # Prefer a ksh shell builtin over an external printf program on Solaris,
34952 # but without wasting forks for bash or zsh.
34953 if test -z "$BASH_VERSION$ZSH_VERSION" \
34954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34955 as_echo='print -r --'
34956 as_echo_n='print -rn --'
34957 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34958 as_echo='printf %s\n'
34959 as_echo_n='printf %s'
34960 else
34961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34962 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34963 as_echo_n='/usr/ucb/echo -n'
34964 else
34965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34966 as_echo_n_body='eval
34967 arg=$1;
34968 case $arg in #(
34969 *"$as_nl"*)
34970 expr "X$arg" : "X\\(.*\\)$as_nl";
34971 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34972 esac;
34973 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34974 '
34975 export as_echo_n_body
34976 as_echo_n='sh -c $as_echo_n_body as_echo'
34977 fi
34978 export as_echo_body
34979 as_echo='sh -c $as_echo_body as_echo'
34980 fi
34981
34982 # The user is always right.
34983 if test "${PATH_SEPARATOR+set}" != set; then
34984 PATH_SEPARATOR=:
34985 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34986 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34987 PATH_SEPARATOR=';'
34988 }
34989 fi
34990
34991
34992 # IFS
34993 # We need space, tab and new line, in precisely that order. Quoting is
34994 # there to prevent editors from complaining about space-tab.
34995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34996 # splitting by setting IFS to empty value.)
34997 IFS=" "" $as_nl"
34998
34999 # Find who we are. Look in the path if we contain no directory separator.
35000 as_myself=
35001 case $0 in #((
35002 *[\\/]* ) as_myself=$0 ;;
35003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35004 for as_dir in $PATH
35005 do
35006 IFS=$as_save_IFS
35007 test -z "$as_dir" && as_dir=.
35008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35009 done
35010 IFS=$as_save_IFS
35011
35012 ;;
35013 esac
35014 # We did not find ourselves, most probably we were run as `sh COMMAND'
35015 # in which case we are not to be found in the path.
35016 if test "x$as_myself" = x; then
35017 as_myself=$0
35018 fi
35019 if test ! -f "$as_myself"; then
35020 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35021 exit 1
35022 fi
35023
35024 # Unset variables that we do not need and which cause bugs (e.g. in
35025 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35026 # suppresses any "Segmentation fault" message there. '((' could
35027 # trigger a bug in pdksh 5.2.14.
35028 for as_var in BASH_ENV ENV MAIL MAILPATH
35029 do eval test x\${$as_var+set} = xset \
35030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35031 done
35032 PS1='$ '
35033 PS2='> '
35034 PS4='+ '
35035
35036 # NLS nuisances.
35037 LC_ALL=C
35038 export LC_ALL
35039 LANGUAGE=C
35040 export LANGUAGE
35041
35042 # CDPATH.
35043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35044
35045
35046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35047 # ----------------------------------------
35048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35050 # script with STATUS, using 1 if that was 0.
35051 as_fn_error ()
35052 {
35053 as_status=$1; test $as_status -eq 0 && as_status=1
35054 if test "$4"; then
35055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35056 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35057 fi
35058 $as_echo "$as_me: error: $2" >&2
35059 as_fn_exit $as_status
35060 } # as_fn_error
35061
35062
35063 # as_fn_set_status STATUS
35064 # -----------------------
35065 # Set $? to STATUS, without forking.
35066 as_fn_set_status ()
35067 {
35068 return $1
35069 } # as_fn_set_status
35070
35071 # as_fn_exit STATUS
35072 # -----------------
35073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35074 as_fn_exit ()
35075 {
35076 set +e
35077 as_fn_set_status $1
35078 exit $1
35079 } # as_fn_exit
35080
35081 # as_fn_unset VAR
35082 # ---------------
35083 # Portably unset VAR.
35084 as_fn_unset ()
35085 {
35086 { eval $1=; unset $1;}
35087 }
35088 as_unset=as_fn_unset
35089 # as_fn_append VAR VALUE
35090 # ----------------------
35091 # Append the text in VALUE to the end of the definition contained in VAR. Take
35092 # advantage of any shell optimizations that allow amortized linear growth over
35093 # repeated appends, instead of the typical quadratic growth present in naive
35094 # implementations.
35095 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35096 eval 'as_fn_append ()
35097 {
35098 eval $1+=\$2
35099 }'
35100 else
35101 as_fn_append ()
35102 {
35103 eval $1=\$$1\$2
35104 }
35105 fi # as_fn_append
35106
35107 # as_fn_arith ARG...
35108 # ------------------
35109 # Perform arithmetic evaluation on the ARGs, and store the result in the
35110 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35111 # must be portable across $(()) and expr.
35112 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35113 eval 'as_fn_arith ()
35114 {
35115 as_val=$(( $* ))
35116 }'
35117 else
35118 as_fn_arith ()
35119 {
35120 as_val=`expr "$@" || test $? -eq 1`
35121 }
35122 fi # as_fn_arith
35123
35124
35125 if expr a : '\(a\)' >/dev/null 2>&1 &&
35126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35127 as_expr=expr
35128 else
35129 as_expr=false
35130 fi
35131
35132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35133 as_basename=basename
35134 else
35135 as_basename=false
35136 fi
35137
35138 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35139 as_dirname=dirname
35140 else
35141 as_dirname=false
35142 fi
35143
35144 as_me=`$as_basename -- "$0" ||
35145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35146 X"$0" : 'X\(//\)$' \| \
35147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35148 $as_echo X/"$0" |
35149 sed '/^.*\/\([^/][^/]*\)\/*$/{
35150 s//\1/
35151 q
35152 }
35153 /^X\/\(\/\/\)$/{
35154 s//\1/
35155 q
35156 }
35157 /^X\/\(\/\).*/{
35158 s//\1/
35159 q
35160 }
35161 s/.*/./; q'`
35162
35163 # Avoid depending upon Character Ranges.
35164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35167 as_cr_digits='0123456789'
35168 as_cr_alnum=$as_cr_Letters$as_cr_digits
35169
35170 ECHO_C= ECHO_N= ECHO_T=
35171 case `echo -n x` in #(((((
35172 -n*)
35173 case `echo 'xy\c'` in
35174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35175 xy) ECHO_C='\c';;
35176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35177 ECHO_T=' ';;
35178 esac;;
35179 *)
35180 ECHO_N='-n';;
35181 esac
35182
35183 rm -f conf$$ conf$$.exe conf$$.file
35184 if test -d conf$$.dir; then
35185 rm -f conf$$.dir/conf$$.file
35186 else
35187 rm -f conf$$.dir
35188 mkdir conf$$.dir 2>/dev/null
35189 fi
35190 if (echo >conf$$.file) 2>/dev/null; then
35191 if ln -s conf$$.file conf$$ 2>/dev/null; then
35192 as_ln_s='ln -s'
35193 # ... but there are two gotchas:
35194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35196 # In both cases, we have to default to `cp -pR'.
35197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35198 as_ln_s='cp -pR'
35199 elif ln conf$$.file conf$$ 2>/dev/null; then
35200 as_ln_s=ln
35201 else
35202 as_ln_s='cp -pR'
35203 fi
35204 else
35205 as_ln_s='cp -pR'
35206 fi
35207 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35208 rmdir conf$$.dir 2>/dev/null
35209
35210
35211 # as_fn_mkdir_p
35212 # -------------
35213 # Create "$as_dir" as a directory, including parents if necessary.
35214 as_fn_mkdir_p ()
35215 {
35216
35217 case $as_dir in #(
35218 -*) as_dir=./$as_dir;;
35219 esac
35220 test -d "$as_dir" || eval $as_mkdir_p || {
35221 as_dirs=
35222 while :; do
35223 case $as_dir in #(
35224 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35225 *) as_qdir=$as_dir;;
35226 esac
35227 as_dirs="'$as_qdir' $as_dirs"
35228 as_dir=`$as_dirname -- "$as_dir" ||
35229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35230 X"$as_dir" : 'X\(//\)[^/]' \| \
35231 X"$as_dir" : 'X\(//\)$' \| \
35232 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35233 $as_echo X"$as_dir" |
35234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35235 s//\1/
35236 q
35237 }
35238 /^X\(\/\/\)[^/].*/{
35239 s//\1/
35240 q
35241 }
35242 /^X\(\/\/\)$/{
35243 s//\1/
35244 q
35245 }
35246 /^X\(\/\).*/{
35247 s//\1/
35248 q
35249 }
35250 s/.*/./; q'`
35251 test -d "$as_dir" && break
35252 done
35253 test -z "$as_dirs" || eval "mkdir $as_dirs"
35254 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35255
35256
35257 } # as_fn_mkdir_p
35258 if mkdir -p . 2>/dev/null; then
35259 as_mkdir_p='mkdir -p "$as_dir"'
35260 else
35261 test -d ./-p && rmdir ./-p
35262 as_mkdir_p=false
35263 fi
35264
35265
35266 # as_fn_executable_p FILE
35267 # -----------------------
35268 # Test if FILE is an executable regular file.
35269 as_fn_executable_p ()
35270 {
35271 test -f "$1" && test -x "$1"
35272 } # as_fn_executable_p
35273 as_test_x='test -x'
35274 as_executable_p=as_fn_executable_p
35275
35276 # Sed expression to map a string onto a valid CPP name.
35277 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35278
35279 # Sed expression to map a string onto a valid variable name.
35280 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35281
35282
35283 exec 6>&1
35284 ## ----------------------------------- ##
35285 ## Main body of $CONFIG_STATUS script. ##
35286 ## ----------------------------------- ##
35287 _ASEOF
35288 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35289
35290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35291 # Save the log message, to keep $0 and so on meaningful, and to
35292 # report actual input values of CONFIG_FILES etc. instead of their
35293 # values after options handling.
35294 ac_log="
35295 This file was extended by $as_me, which was
35296 generated by GNU Autoconf 2.69. Invocation command line was
35297
35298 CONFIG_FILES = $CONFIG_FILES
35299 CONFIG_HEADERS = $CONFIG_HEADERS
35300 CONFIG_LINKS = $CONFIG_LINKS
35301 CONFIG_COMMANDS = $CONFIG_COMMANDS
35302 $ $0 $@
35303
35304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35305 "
35306
35307 _ACEOF
35308
35309 case $ac_config_files in *"
35310 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35311 esac
35312
35313 case $ac_config_headers in *"
35314 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35315 esac
35316
35317
35318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35319 # Files that config.status was made for.
35320 config_files="$ac_config_files"
35321 config_headers="$ac_config_headers"
35322 config_links="$ac_config_links"
35323 config_commands="$ac_config_commands"
35324
35325 _ACEOF
35326
35327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35328 ac_cs_usage="\
35329 \`$as_me' instantiates files and other configuration actions
35330 from templates according to the current configuration. Unless the files
35331 and actions are specified as TAGs, all are instantiated by default.
35332
35333 Usage: $0 [OPTION]... [TAG]...
35334
35335 -h, --help print this help, then exit
35336 -V, --version print version number and configuration settings, then exit
35337 --config print configuration, then exit
35338 -q, --quiet, --silent
35339 do not print progress messages
35340 -d, --debug don't remove temporary files
35341 --recheck update $as_me by reconfiguring in the same conditions
35342 --file=FILE[:TEMPLATE]
35343 instantiate the configuration file FILE
35344 --header=FILE[:TEMPLATE]
35345 instantiate the configuration header FILE
35346
35347 Configuration files:
35348 $config_files
35349
35350 Configuration headers:
35351 $config_headers
35352
35353 Configuration links:
35354 $config_links
35355
35356 Configuration commands:
35357 $config_commands
35358
35359 Report bugs to the package provider."
35360
35361 _ACEOF
35362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35363 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35364 ac_cs_version="\\
35365 config.status
35366 configured by $0, generated by GNU Autoconf 2.69,
35367 with options \\"\$ac_cs_config\\"
35368
35369 Copyright (C) 2012 Free Software Foundation, Inc.
35370 This config.status script is free software; the Free Software Foundation
35371 gives unlimited permission to copy, distribute and modify it."
35372
35373 ac_pwd='$ac_pwd'
35374 srcdir='$srcdir'
35375 INSTALL='$INSTALL'
35376 AWK='$AWK'
35377 test -n "\$AWK" || AWK=awk
35378 _ACEOF
35379
35380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35381 # The default lists apply if the user does not specify any file.
35382 ac_need_defaults=:
35383 while test $# != 0
35384 do
35385 case $1 in
35386 --*=?*)
35387 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35388 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35389 ac_shift=:
35390 ;;
35391 --*=)
35392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35393 ac_optarg=
35394 ac_shift=:
35395 ;;
35396 *)
35397 ac_option=$1
35398 ac_optarg=$2
35399 ac_shift=shift
35400 ;;
35401 esac
35402
35403 case $ac_option in
35404 # Handling of the options.
35405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35406 ac_cs_recheck=: ;;
35407 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35408 $as_echo "$ac_cs_version"; exit ;;
35409 --config | --confi | --conf | --con | --co | --c )
35410 $as_echo "$ac_cs_config"; exit ;;
35411 --debug | --debu | --deb | --de | --d | -d )
35412 debug=: ;;
35413 --file | --fil | --fi | --f )
35414 $ac_shift
35415 case $ac_optarg in
35416 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35417 '') as_fn_error $? "missing file argument" ;;
35418 esac
35419 as_fn_append CONFIG_FILES " '$ac_optarg'"
35420 ac_need_defaults=false;;
35421 --header | --heade | --head | --hea )
35422 $ac_shift
35423 case $ac_optarg in
35424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35425 esac
35426 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35427 ac_need_defaults=false;;
35428 --he | --h)
35429 # Conflict between --help and --header
35430 as_fn_error $? "ambiguous option: \`$1'
35431 Try \`$0 --help' for more information.";;
35432 --help | --hel | -h )
35433 $as_echo "$ac_cs_usage"; exit ;;
35434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35436 ac_cs_silent=: ;;
35437
35438 # This is an error.
35439 -*) as_fn_error $? "unrecognized option: \`$1'
35440 Try \`$0 --help' for more information." ;;
35441
35442 *) as_fn_append ac_config_targets " $1"
35443 ac_need_defaults=false ;;
35444
35445 esac
35446 shift
35447 done
35448
35449 ac_configure_extra_args=
35450
35451 if $ac_cs_silent; then
35452 exec 6>/dev/null
35453 ac_configure_extra_args="$ac_configure_extra_args --silent"
35454 fi
35455
35456 _ACEOF
35457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35458 if \$ac_cs_recheck; then
35459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35460 shift
35461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35462 CONFIG_SHELL='$SHELL'
35463 export CONFIG_SHELL
35464 exec "\$@"
35465 fi
35466
35467 _ACEOF
35468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35469 exec 5>>config.log
35470 {
35471 echo
35472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35473 ## Running $as_me. ##
35474 _ASBOX
35475 $as_echo "$ac_log"
35476 } >&5
35477
35478 _ACEOF
35479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35480 #
35481 # INIT-COMMANDS
35482 #
35483 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35484 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35485 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35486 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35487 # from automake.
35488 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35489 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35490 LINGUAS="${LINGUAS-%UNSET%}"
35491
35492 subdirs='$subdirs'
35493
35494 _ACEOF
35495
35496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35497
35498 # Handling of arguments.
35499 for ac_config_target in $ac_config_targets
35500 do
35501 case $ac_config_target in
35502 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35503 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35504 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35505 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35506 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35507 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35508 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35509 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35510 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35511 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35512 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35513
35514 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35515 esac
35516 done
35517
35518
35519 # If the user did not use the arguments to specify the items to instantiate,
35520 # then the envvar interface is used. Set only those that are not.
35521 # We use the long form for the default assignment because of an extremely
35522 # bizarre bug on SunOS 4.1.3.
35523 if $ac_need_defaults; then
35524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35526 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35528 fi
35529
35530 # Have a temporary directory for convenience. Make it in the build tree
35531 # simply because there is no reason against having it here, and in addition,
35532 # creating and moving files from /tmp can sometimes cause problems.
35533 # Hook for its removal unless debugging.
35534 # Note that there is a small window in which the directory will not be cleaned:
35535 # after its creation but before its name has been assigned to `$tmp'.
35536 $debug ||
35537 {
35538 tmp= ac_tmp=
35539 trap 'exit_status=$?
35540 : "${ac_tmp:=$tmp}"
35541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35542 ' 0
35543 trap 'as_fn_exit 1' 1 2 13 15
35544 }
35545 # Create a (secure) tmp directory for tmp files.
35546
35547 {
35548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35549 test -d "$tmp"
35550 } ||
35551 {
35552 tmp=./conf$$-$RANDOM
35553 (umask 077 && mkdir "$tmp")
35554 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35555 ac_tmp=$tmp
35556
35557 # Set up the scripts for CONFIG_FILES section.
35558 # No need to generate them if there are no CONFIG_FILES.
35559 # This happens for instance with `./config.status config.h'.
35560 if test -n "$CONFIG_FILES"; then
35561
35562 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35563 ac_cs_awk_getline=:
35564 ac_cs_awk_pipe_init=
35565 ac_cs_awk_read_file='
35566 while ((getline aline < (F[key])) > 0)
35567 print(aline)
35568 close(F[key])'
35569 ac_cs_awk_pipe_fini=
35570 else
35571 ac_cs_awk_getline=false
35572 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35573 ac_cs_awk_read_file='
35574 print "|#_!!_#|"
35575 print "cat " F[key] " &&"
35576 '$ac_cs_awk_pipe_init
35577 # The final `:' finishes the AND list.
35578 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35579 fi
35580 ac_cr=`echo X | tr X '\015'`
35581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35582 # But we know of no other shell where ac_cr would be empty at this
35583 # point, so we can use a bashism as a fallback.
35584 if test "x$ac_cr" = x; then
35585 eval ac_cr=\$\'\\r\'
35586 fi
35587 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35589 ac_cs_awk_cr='\\r'
35590 else
35591 ac_cs_awk_cr=$ac_cr
35592 fi
35593
35594 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35595 _ACEOF
35596
35597 # Create commands to substitute file output variables.
35598 {
35599 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35600 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35601 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35602 echo "_ACAWK" &&
35603 echo "_ACEOF"
35604 } >conf$$files.sh &&
35605 . ./conf$$files.sh ||
35606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35607 rm -f conf$$files.sh
35608
35609 {
35610 echo "cat >conf$$subs.awk <<_ACEOF" &&
35611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35612 echo "_ACEOF"
35613 } >conf$$subs.sh ||
35614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35616 ac_delim='%!_!# '
35617 for ac_last_try in false false false false false :; do
35618 . ./conf$$subs.sh ||
35619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35620
35621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35622 if test $ac_delim_n = $ac_delim_num; then
35623 break
35624 elif $ac_last_try; then
35625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35626 else
35627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35628 fi
35629 done
35630 rm -f conf$$subs.sh
35631
35632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35634 _ACEOF
35635 sed -n '
35636 h
35637 s/^/S["/; s/!.*/"]=/
35638 p
35639 g
35640 s/^[^!]*!//
35641 :repl
35642 t repl
35643 s/'"$ac_delim"'$//
35644 t delim
35645 :nl
35646 h
35647 s/\(.\{148\}\)..*/\1/
35648 t more1
35649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35650 p
35651 n
35652 b repl
35653 :more1
35654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35655 p
35656 g
35657 s/.\{148\}//
35658 t nl
35659 :delim
35660 h
35661 s/\(.\{148\}\)..*/\1/
35662 t more2
35663 s/["\\]/\\&/g; s/^/"/; s/$/"/
35664 p
35665 b
35666 :more2
35667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35668 p
35669 g
35670 s/.\{148\}//
35671 t delim
35672 ' <conf$$subs.awk | sed '
35673 /^[^""]/{
35674 N
35675 s/\n//
35676 }
35677 ' >>$CONFIG_STATUS || ac_write_fail=1
35678 rm -f conf$$subs.awk
35679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35680 _ACAWK
35681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35682 for (key in S) S_is_set[key] = 1
35683 FS = "\a"
35684 \$ac_cs_awk_pipe_init
35685 }
35686 {
35687 line = $ 0
35688 nfields = split(line, field, "@")
35689 substed = 0
35690 len = length(field[1])
35691 for (i = 2; i < nfields; i++) {
35692 key = field[i]
35693 keylen = length(key)
35694 if (S_is_set[key]) {
35695 value = S[key]
35696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35697 len += length(value) + length(field[++i])
35698 substed = 1
35699 } else
35700 len += 1 + keylen
35701 }
35702 if (nfields == 3 && !substed) {
35703 key = field[2]
35704 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35705 \$ac_cs_awk_read_file
35706 next
35707 }
35708 }
35709 print line
35710 }
35711 \$ac_cs_awk_pipe_fini
35712 _ACAWK
35713 _ACEOF
35714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35717 else
35718 cat
35719 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35721 _ACEOF
35722
35723 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35724 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35725 # trailing colons and then remove the whole line if VPATH becomes empty
35726 # (actually we leave an empty line to preserve line numbers).
35727 if test "x$srcdir" = x.; then
35728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35729 h
35730 s///
35731 s/^/:/
35732 s/[ ]*$/:/
35733 s/:\$(srcdir):/:/g
35734 s/:\${srcdir}:/:/g
35735 s/:@srcdir@:/:/g
35736 s/^:*//
35737 s/:*$//
35738 x
35739 s/\(=[ ]*\).*/\1/
35740 G
35741 s/\n//
35742 s/^[^=]*=[ ]*$//
35743 }'
35744 fi
35745
35746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35747 fi # test -n "$CONFIG_FILES"
35748
35749 # Set up the scripts for CONFIG_HEADERS section.
35750 # No need to generate them if there are no CONFIG_HEADERS.
35751 # This happens for instance with `./config.status Makefile'.
35752 if test -n "$CONFIG_HEADERS"; then
35753 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35754 BEGIN {
35755 _ACEOF
35756
35757 # Transform confdefs.h into an awk script `defines.awk', embedded as
35758 # here-document in config.status, that substitutes the proper values into
35759 # config.h.in to produce config.h.
35760
35761 # Create a delimiter string that does not exist in confdefs.h, to ease
35762 # handling of long lines.
35763 ac_delim='%!_!# '
35764 for ac_last_try in false false :; do
35765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35766 if test -z "$ac_tt"; then
35767 break
35768 elif $ac_last_try; then
35769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35770 else
35771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35772 fi
35773 done
35774
35775 # For the awk script, D is an array of macro values keyed by name,
35776 # likewise P contains macro parameters if any. Preserve backslash
35777 # newline sequences.
35778
35779 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35780 sed -n '
35781 s/.\{148\}/&'"$ac_delim"'/g
35782 t rset
35783 :rset
35784 s/^[ ]*#[ ]*define[ ][ ]*/ /
35785 t def
35786 d
35787 :def
35788 s/\\$//
35789 t bsnl
35790 s/["\\]/\\&/g
35791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35792 D["\1"]=" \3"/p
35793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35794 d
35795 :bsnl
35796 s/["\\]/\\&/g
35797 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35798 D["\1"]=" \3\\\\\\n"\\/p
35799 t cont
35800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35801 t cont
35802 d
35803 :cont
35804 n
35805 s/.\{148\}/&'"$ac_delim"'/g
35806 t clear
35807 :clear
35808 s/\\$//
35809 t bsnlc
35810 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35811 d
35812 :bsnlc
35813 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35814 b cont
35815 ' <confdefs.h | sed '
35816 s/'"$ac_delim"'/"\\\
35817 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35818
35819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35820 for (key in D) D_is_set[key] = 1
35821 FS = "\a"
35822 }
35823 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35824 line = \$ 0
35825 split(line, arg, " ")
35826 if (arg[1] == "#") {
35827 defundef = arg[2]
35828 mac1 = arg[3]
35829 } else {
35830 defundef = substr(arg[1], 2)
35831 mac1 = arg[2]
35832 }
35833 split(mac1, mac2, "(") #)
35834 macro = mac2[1]
35835 prefix = substr(line, 1, index(line, defundef) - 1)
35836 if (D_is_set[macro]) {
35837 # Preserve the white space surrounding the "#".
35838 print prefix "define", macro P[macro] D[macro]
35839 next
35840 } else {
35841 # Replace #undef with comments. This is necessary, for example,
35842 # in the case of _POSIX_SOURCE, which is predefined and required
35843 # on some systems where configure will not decide to define it.
35844 if (defundef == "undef") {
35845 print "/*", prefix defundef, macro, "*/"
35846 next
35847 }
35848 }
35849 }
35850 { print }
35851 _ACAWK
35852 _ACEOF
35853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35855 fi # test -n "$CONFIG_HEADERS"
35856
35857
35858 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35859 shift
35860 for ac_tag
35861 do
35862 case $ac_tag in
35863 :[FHLC]) ac_mode=$ac_tag; continue;;
35864 esac
35865 case $ac_mode$ac_tag in
35866 :[FHL]*:*);;
35867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35868 :[FH]-) ac_tag=-:-;;
35869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35870 esac
35871 ac_save_IFS=$IFS
35872 IFS=:
35873 set x $ac_tag
35874 IFS=$ac_save_IFS
35875 shift
35876 ac_file=$1
35877 shift
35878
35879 case $ac_mode in
35880 :L) ac_source=$1;;
35881 :[FH])
35882 ac_file_inputs=
35883 for ac_f
35884 do
35885 case $ac_f in
35886 -) ac_f="$ac_tmp/stdin";;
35887 *) # Look for the file first in the build tree, then in the source tree
35888 # (if the path is not absolute). The absolute path cannot be DOS-style,
35889 # because $ac_f cannot contain `:'.
35890 test -f "$ac_f" ||
35891 case $ac_f in
35892 [\\/$]*) false;;
35893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35894 esac ||
35895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35896 esac
35897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35898 as_fn_append ac_file_inputs " '$ac_f'"
35899 done
35900
35901 # Let's still pretend it is `configure' which instantiates (i.e., don't
35902 # use $as_me), people would be surprised to read:
35903 # /* config.h. Generated by config.status. */
35904 configure_input='Generated from '`
35905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35906 `' by configure.'
35907 if test x"$ac_file" != x-; then
35908 configure_input="$ac_file. $configure_input"
35909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35910 $as_echo "$as_me: creating $ac_file" >&6;}
35911 fi
35912 # Neutralize special characters interpreted by sed in replacement strings.
35913 case $configure_input in #(
35914 *\&* | *\|* | *\\* )
35915 ac_sed_conf_input=`$as_echo "$configure_input" |
35916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35917 *) ac_sed_conf_input=$configure_input;;
35918 esac
35919
35920 case $ac_tag in
35921 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35923 esac
35924 ;;
35925 esac
35926
35927 ac_dir=`$as_dirname -- "$ac_file" ||
35928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35929 X"$ac_file" : 'X\(//\)[^/]' \| \
35930 X"$ac_file" : 'X\(//\)$' \| \
35931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35932 $as_echo X"$ac_file" |
35933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35934 s//\1/
35935 q
35936 }
35937 /^X\(\/\/\)[^/].*/{
35938 s//\1/
35939 q
35940 }
35941 /^X\(\/\/\)$/{
35942 s//\1/
35943 q
35944 }
35945 /^X\(\/\).*/{
35946 s//\1/
35947 q
35948 }
35949 s/.*/./; q'`
35950 as_dir="$ac_dir"; as_fn_mkdir_p
35951 ac_builddir=.
35952
35953 case "$ac_dir" in
35954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35955 *)
35956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35957 # A ".." for each directory in $ac_dir_suffix.
35958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35959 case $ac_top_builddir_sub in
35960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35962 esac ;;
35963 esac
35964 ac_abs_top_builddir=$ac_pwd
35965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35966 # for backward compatibility:
35967 ac_top_builddir=$ac_top_build_prefix
35968
35969 case $srcdir in
35970 .) # We are building in place.
35971 ac_srcdir=.
35972 ac_top_srcdir=$ac_top_builddir_sub
35973 ac_abs_top_srcdir=$ac_pwd ;;
35974 [\\/]* | ?:[\\/]* ) # Absolute name.
35975 ac_srcdir=$srcdir$ac_dir_suffix;
35976 ac_top_srcdir=$srcdir
35977 ac_abs_top_srcdir=$srcdir ;;
35978 *) # Relative name.
35979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35980 ac_top_srcdir=$ac_top_build_prefix$srcdir
35981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35982 esac
35983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35984
35985
35986 case $ac_mode in
35987 :F)
35988 #
35989 # CONFIG_FILE
35990 #
35991
35992 case $INSTALL in
35993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35995 esac
35996 _ACEOF
35997
35998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35999 # If the template does not know about datarootdir, expand it.
36000 # FIXME: This hack should be removed a few years after 2.60.
36001 ac_datarootdir_hack=; ac_datarootdir_seen=
36002 ac_sed_dataroot='
36003 /datarootdir/ {
36004 p
36005 q
36006 }
36007 /@datadir@/p
36008 /@docdir@/p
36009 /@infodir@/p
36010 /@localedir@/p
36011 /@mandir@/p'
36012 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36013 *datarootdir*) ac_datarootdir_seen=yes;;
36014 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36016 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36017 _ACEOF
36018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36019 ac_datarootdir_hack='
36020 s&@datadir@&$datadir&g
36021 s&@docdir@&$docdir&g
36022 s&@infodir@&$infodir&g
36023 s&@localedir@&$localedir&g
36024 s&@mandir@&$mandir&g
36025 s&\\\${datarootdir}&$datarootdir&g' ;;
36026 esac
36027 _ACEOF
36028
36029 # Neutralize VPATH when `$srcdir' = `.'.
36030 # Shell code in configure.ac might set extrasub.
36031 # FIXME: do we really want to maintain this feature?
36032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36033 ac_sed_extra="$ac_vpsub
36034 $extrasub
36035 _ACEOF
36036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36037 :t
36038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36039 s|@configure_input@|$ac_sed_conf_input|;t t
36040 s&@top_builddir@&$ac_top_builddir_sub&;t t
36041 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36042 s&@srcdir@&$ac_srcdir&;t t
36043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36044 s&@top_srcdir@&$ac_top_srcdir&;t t
36045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36046 s&@builddir@&$ac_builddir&;t t
36047 s&@abs_builddir@&$ac_abs_builddir&;t t
36048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36049 s&@INSTALL@&$ac_INSTALL&;t t
36050 $ac_datarootdir_hack
36051 "
36052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36053 if $ac_cs_awk_getline; then
36054 $AWK -f "$ac_tmp/subs.awk"
36055 else
36056 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36057 fi \
36058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36059
36060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36063 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36065 which seems to be undefined. Please make sure it is defined" >&5
36066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36067 which seems to be undefined. Please make sure it is defined" >&2;}
36068
36069 rm -f "$ac_tmp/stdin"
36070 case $ac_file in
36071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36073 esac \
36074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36075 ;;
36076 :H)
36077 #
36078 # CONFIG_HEADER
36079 #
36080 if test x"$ac_file" != x-; then
36081 {
36082 $as_echo "/* $configure_input */" \
36083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36084 } >"$ac_tmp/config.h" \
36085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36089 else
36090 rm -f "$ac_file"
36091 mv "$ac_tmp/config.h" "$ac_file" \
36092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36093 fi
36094 else
36095 $as_echo "/* $configure_input */" \
36096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36097 || as_fn_error $? "could not create -" "$LINENO" 5
36098 fi
36099 ;;
36100 :L)
36101 #
36102 # CONFIG_LINK
36103 #
36104
36105 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36106 :
36107 else
36108 # Prefer the file from the source tree if names are identical.
36109 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36110 ac_source=$srcdir/$ac_source
36111 fi
36112
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36114 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36115
36116 if test ! -r "$ac_source"; then
36117 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36118 fi
36119 rm -f "$ac_file"
36120
36121 # Try a relative symlink, then a hard link, then a copy.
36122 case $ac_source in
36123 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36124 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36125 esac
36126 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36127 ln "$ac_source" "$ac_file" 2>/dev/null ||
36128 cp -p "$ac_source" "$ac_file" ||
36129 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36130 fi
36131 ;;
36132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36133 $as_echo "$as_me: executing $ac_file commands" >&6;}
36134 ;;
36135 esac
36136
36137
36138 case $ac_file$ac_mode in
36139 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36140 "gccdepdir":C)
36141 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36142 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36143 do
36144 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36145 done ;;
36146 "default-1":C)
36147 for ac_file in $CONFIG_FILES; do
36148 # Support "outfile[:infile[:infile...]]"
36149 case "$ac_file" in
36150 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36151 esac
36152 # PO directories have a Makefile.in generated from Makefile.in.in.
36153 case "$ac_file" in */Makefile.in)
36154 # Adjust a relative srcdir.
36155 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36156 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36157 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36158 # In autoconf-2.13 it is called $ac_given_srcdir.
36159 # In autoconf-2.50 it is called $srcdir.
36160 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36161 case "$ac_given_srcdir" in
36162 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36163 /*) top_srcdir="$ac_given_srcdir" ;;
36164 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36165 esac
36166 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36167 rm -f "$ac_dir/POTFILES"
36168 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36169 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36170 POMAKEFILEDEPS="POTFILES.in"
36171 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36172 # on $ac_dir but don't depend on user-specified configuration
36173 # parameters.
36174 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36175 # The LINGUAS file contains the set of available languages.
36176 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36177 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36178 fi
36179 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36180 # Hide the ALL_LINGUAS assigment from automake.
36181 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36182 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36183 else
36184 # The set of available languages was given in configure.ac.
36185 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36186 fi
36187 case "$ac_given_srcdir" in
36188 .) srcdirpre= ;;
36189 *) srcdirpre='$(srcdir)/' ;;
36190 esac
36191 POFILES=
36192 GMOFILES=
36193 UPDATEPOFILES=
36194 DUMMYPOFILES=
36195 for lang in $ALL_LINGUAS; do
36196 POFILES="$POFILES $srcdirpre$lang.po"
36197 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36198 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36199 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36200 done
36201 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36202 # environment variable.
36203 INST_LINGUAS=
36204 if test -n "$ALL_LINGUAS"; then
36205 for presentlang in $ALL_LINGUAS; do
36206 useit=no
36207 if test "%UNSET%" != "$LINGUAS"; then
36208 desiredlanguages="$LINGUAS"
36209 else
36210 desiredlanguages="$ALL_LINGUAS"
36211 fi
36212 for desiredlang in $desiredlanguages; do
36213 # Use the presentlang catalog if desiredlang is
36214 # a. equal to presentlang, or
36215 # b. a variant of presentlang (because in this case,
36216 # presentlang can be used as a fallback for messages
36217 # which are not translated in the desiredlang catalog).
36218 case "$desiredlang" in
36219 "$presentlang"*) useit=yes;;
36220 esac
36221 done
36222 if test $useit = yes; then
36223 INST_LINGUAS="$INST_LINGUAS $presentlang"
36224 fi
36225 done
36226 fi
36227 CATALOGS=
36228 if test -n "$INST_LINGUAS"; then
36229 for lang in $INST_LINGUAS; do
36230 CATALOGS="$CATALOGS $lang.gmo"
36231 done
36232 fi
36233 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36234 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"
36235 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36236 if test -f "$f"; then
36237 case "$f" in
36238 *.orig | *.bak | *~) ;;
36239 *) cat "$f" >> "$ac_dir/Makefile" ;;
36240 esac
36241 fi
36242 done
36243 fi
36244 ;;
36245 esac
36246 done ;;
36247 "as":F) chmod +x as ;;
36248 "collect-ld":F) chmod +x collect-ld ;;
36249 "nm":F) chmod +x nm ;;
36250 "dsymutil":F) chmod +x dsymutil ;;
36251 "default":C)
36252 case ${CONFIG_HEADERS} in
36253 *auto-host.h:config.in*)
36254 echo > cstamp-h ;;
36255 esac
36256 # Make sure all the subdirs exist.
36257 for d in $subdirs doc build common c-family
36258 do
36259 test -d $d || mkdir $d
36260 done
36261 ;;
36262
36263 esac
36264 done # for ac_tag
36265
36266
36267 as_fn_exit 0
36268 _ACEOF
36269 ac_clean_files=$ac_clean_files_save
36270
36271 test $ac_write_fail = 0 ||
36272 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36273
36274
36275 # configure is writing to config.log, and then calls config.status.
36276 # config.status does its own redirection, appending to config.log.
36277 # Unfortunately, on DOS this fails, as config.log is still kept open
36278 # by configure, so config.status won't be able to write to it; its
36279 # output is simply discarded. So we exec the FD to /dev/null,
36280 # effectively closing config.log, so it can be properly (re)opened and
36281 # appended to by config.status. When coming back to configure, we
36282 # need to make the FD available again.
36283 if test "$no_create" != yes; then
36284 ac_cs_success=:
36285 ac_config_status_args=
36286 test "$silent" = yes &&
36287 ac_config_status_args="$ac_config_status_args --quiet"
36288 exec 5>/dev/null
36289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36290 exec 5>>config.log
36291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36292 # would make configure fail if this is the last instruction.
36293 $ac_cs_success || as_fn_exit 1
36294 fi
36295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36297 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36298 fi
36299