Debian Codegraph @

gcc/configure

raw
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 [email protected] 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 libgccjit_version
640 enable_host_bind_now
641 LIBGDIAGNOSTICS
642 enable_libgdiagnostics
643 enable_host_pie
644 enable_host_shared
645 enable_plugin
646 pluginlibs
647 ISLINC
648 ISLLIBS
649 GMPINC
650 GMPLIBS
651 target_cpu_default
652 rust_target_objs
653 d_target_objs
654 fortran_target_objs
655 cxx_target_objs
656 c_target_objs
657 use_gcc_stdint
658 xm_defines
659 xm_include_list
660 xm_file_list
661 tm_rust_include_list
662 tm_rust_file_list
663 tm_d_include_list
664 tm_d_file_list
665 tm_p_include_list
666 tm_p_file_list
667 tm_defines
668 tm_include_list
669 tm_file_list
670 common_out_object_file
671 common_out_file
672 out_object_file
673 out_file
674 objc_boehm_gc
675 md_file
676 local_prefix
677 lang_tree_files
678 lang_specs_files
679 lang_opt_files
680 install
681 out_host_hook_obj
682 host_xm_defines
683 host_xm_include_list
684 host_xm_file_list
685 host_exeext
686 gcc_gxx_libcxx_include_dir_add_sysroot
687 gcc_gxx_libcxx_include_dir
688 gcc_gxx_include_dir_add_sysroot
689 gcc_gxx_include_dir
690 gcc_config_arguments
691 float_h_file
692 extra_programs
693 extra_objs
694 extra_headers_list
695 user_headers_inc_next_post
696 user_headers_inc_next_pre
697 extra_gcc_objs
698 TM_MULTILIB_EXCEPTIONS_CONFIG
699 TM_MULTILIB_CONFIG
700 TM_ENDIAN_CONFIG
701 tmake_file
702 xmake_file
703 cpp_install_dir
704 selftest_languages
705 check_languages
706 build_file_translate
707 build_xm_defines
708 build_xm_include_list
709 build_xm_file_list
710 build_install_headers_dir
711 build_exeext
712 all_selected_languages
713 all_languages
714 all_lang_makefrags
715 all_lang_configurefrags
716 all_gtfiles
717 all_compilers
718 srcdir
719 subdirs
720 dollar
721 gcc_tooldir
722 enable_lto
723 DO_LINK_SERIALIZATION
724 DO_LINK_MUTEX
725 CSCOPE
726 ETAGS
727 CTAGS
728 MAINT
729 zlibinc
730 zlibdir
731 HOST_LIBS
732 enable_default_ssp
733 thin_archive_support
734 ld_soname_option
735 ld_version_script_option
736 libgcc_visibility
737 ORIGINAL_DSYMUTIL_FOR_TARGET
738 gcc_cv_dsymutil
739 gcc_cv_otool
740 gcc_cv_readelf
741 gcc_cv_objdump
742 ORIGINAL_NM_FOR_TARGET
743 gcc_cv_nm
744 ORIGINAL_LD_GOLD_FOR_TARGET
745 ORIGINAL_LD_BFD_FOR_TARGET
746 ORIGINAL_LD_FOR_TARGET
747 ORIGINAL_PLUGIN_LD_FOR_TARGET
748 gcc_cv_ld
749 ORIGINAL_AS_FOR_TARGET
750 gcc_cv_as
751 ENABLE_DARWIN_AT_RPATH_FALSE
752 ENABLE_DARWIN_AT_RPATH_TRUE
753 enable_fast_install
754 objdir
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 STRIP
761 OBJDUMP
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 SED
767 LIBTOOL
768 collect2
769 STMP_FIXINC
770 BUILD_LDFLAGS
771 BUILD_CXXFLAGS
772 BUILD_CFLAGS
773 CXX_FOR_BUILD
774 CC_FOR_BUILD
775 inhibit_libc
776 BUILD_SYSTEM_HEADER_DIR
777 SYSTEM_HEADER_DIR
778 ALL
779 CROSS
780 CATOBJEXT
781 GENCAT
782 INSTOBJEXT
783 DATADIRNAME
784 CATALOGS
785 INCINTL
786 LIBINTL_DEP
787 POSUB
788 LTLIBINTL
789 LIBINTL
790 INTLLIBS
791 INTL_MACOSX_LIBS
792 MSGMERGE
793 XGETTEXT
794 GMSGFMT
795 MSGFMT
796 USE_NLS
797 MKINSTALLDIRS
798 INSTALL_SCRIPT
799 get_gcc_base_ver
800 HAVE_AUTO_BUILD
801 extra_opt_files
802 extra_modes_file
803 NATIVE_SYSTEM_HEADER_DIR
804 objext
805 manext
806 LIBICONV_DEP
807 LTLIBICONV
808 LIBICONV
809 ZSTD_LDFLAGS
810 ZSTD_CPPFLAGS
811 ZSTD_LIB
812 ZSTD_INCLUDE
813 DL_LIB
814 LDEXP_LIB
815 EXTRA_GCC_LIBS
816 GNAT_LIBEXC
817 COLLECT2_LIBS
818 CXXDEPMODE
819 DEPDIR
820 am__leading_dot
821 doc_build_sys
822 AR
823 NM
824 HAVE_PYTHON
825 PYTHON
826 BISON
827 FLEX
828 GENERATED_MANPAGES
829 MAKEINFO_TOC_INLINE_FLAG
830 BUILD_INFO
831 MAKEINFO
832 have_mktemp_command
833 make_compare_target
834 INSTALL_DATA
835 INSTALL_PROGRAM
836 INSTALL
837 ranlib_flags
838 RANLIB
839 LN
840 LN_S
841 AWK
842 SET_MAKE
843 omp_device_property_deps
844 omp_device_properties
845 accel_dir_suffix
846 real_target_noncanonical
847 enable_as_accelerator
848 gnat_install_lib
849 REPORT_BUGS_TEXI
850 REPORT_BUGS_TO
851 PKGVERSION
852 CONFIGURE_SPECS
853 enable_gcov
854 enable_shared
855 enable_fixed_point
856 enable_decimal_float
857 DEFAULT_INSNEMIT_PARTITIONS
858 DEFAULT_MATCHPD_PARTITIONS
859 with_float
860 with_cpu
861 enable_multiarch
862 enable_multilib
863 coverage_flags
864 valgrind_command
865 valgrind_path_defines
866 valgrind_path
867 TREECHECKING
868 noexception_flags
869 warn_cxxflags
870 warn_cflags
871 c_strict_warn
872 strict_warn
873 c_loose_warn
874 loose_warn
875 aliasing_flags
876 CPP
877 EGREP
878 GREP
879 CXXCPP
880 PICFLAG_FOR_TARGET
881 GDCFLAGS
882 GDC
883 GNATMAKE
884 GNATBIND
885 ac_ct_CXX
886 CXXFLAGS
887 CXX
888 OBJEXT
889 EXEEXT
890 ac_ct_CC
891 CPPFLAGS
892 LDFLAGS
893 CFLAGS
894 CC
895 GENINSRC
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
898 TARGET_SYSTEM_ROOT
899 SYSROOT_CFLAGS_FOR_TARGET
900 target_subdir
901 host_subdir
902 build_subdir
903 build_libsubdir
904 target_noncanonical
905 host_noncanonical
906 target_os
907 target_vendor
908 target_cpu
909 target
910 host_os
911 host_vendor
912 host_cpu
913 host
914 build_os
915 build_vendor
916 build_cpu
917 build
918 target_alias
919 host_alias
920 build_alias
921 LIBS
922 ECHO_T
923 ECHO_N
924 ECHO_C
925 DEFS
926 mandir
927 localedir
928 libdir
929 psdir
930 pdfdir
931 dvidir
932 htmldir
933 infodir
934 docdir
935 oldincludedir
936 includedir
937 localstatedir
938 sharedstatedir
939 sysconfdir
940 datadir
941 datarootdir
942 libexecdir
943 sbindir
944 bindir
945 program_transform_name
946 prefix
947 exec_prefix
948 PACKAGE_URL
949 PACKAGE_BUGREPORT
950 PACKAGE_STRING
951 PACKAGE_VERSION
952 PACKAGE_TARNAME
953 PACKAGE_NAME
954 PATH_SEPARATOR
955 SHELL'
956 ac_subst_files='option_includes
957 language_hooks'
958 ac_user_opts='
959 enable_option_checking
960 with_build_libsubdir
961 with_local_prefix
962 with_native_system_header_dir
963 with_build_sysroot
964 with_sysroot
965 with_gxx_include_dir
966 with_gxx_libcxx_include_dir
967 with_cpp_install_dir
968 enable_generated_files_in_srcdir
969 with_gnu_ld
970 with_ld
971 with_demangler_in_ld
972 with_dsymutil
973 with_gnu_as
974 with_as
975 enable_largefile
976 enable_build_format_warnings
977 enable_werror_always
978 enable_checking
979 enable_coverage
980 enable_gather_detailed_mem_stats
981 enable_valgrind_annotations
982 enable_multilib
983 enable_multilib_space
984 enable_multiarch
985 with_stack_clash_protection_guard_size
986 with_matchpd_partitions
987 with_insnemit_partitions
988 enable___cxa_atexit
989 enable_decimal_float
990 enable_fixed_point
991 enable_threads
992 enable_tls
993 enable_vtable_verify
994 enable_analyzer
995 enable_objc_gc
996 with_dwarf2
997 enable_shared
998 enable_gcov
999 with_specs
1000 with_pkgversion
1001 with_bugurl
1002 with_documentation_root_url
1003 with_changes_root_url
1004 enable_languages
1005 with_multilib_list
1006 with_multilib_generator
1007 with_picolibc
1008 with_zstd
1009 with_zstd_include
1010 with_zstd_lib
1011 enable_rpath
1012 with_libiconv_prefix
1013 with_libiconv_type
1014 enable_sjlj_exceptions
1015 enable_win32_utf8_manifest
1016 with_gcc_major_version_only
1017 enable_nls
1018 with_libintl_prefix
1019 with_libintl_type
1020 enable_secureplt
1021 enable_mingw_wildcard
1022 enable_large_address_aware
1023 enable_leading_mingw64_underscores
1024 enable_cld
1025 enable_frame_pointer
1026 enable_win32_registry
1027 enable_static
1028 with_pic
1029 enable_fast_install
1030 enable_libtool_lock
1031 enable_darwin_at_rpath
1032 with_darwin_extra_rpath
1033 enable_ld
1034 enable_gold
1035 with_plugin_ld
1036 enable_gnu_indirect_function
1037 enable_initfini_array
1038 enable_comdat
1039 enable_newlib_nano_formatted_io
1040 enable_standard_branch_protection
1041 enable_fix_cortex_a53_835769
1042 enable_fix_cortex_a53_843419
1043 with_glibc_version
1044 enable_gnu_unique_object
1045 enable_linker_build_id
1046 enable_libssp
1047 enable_default_ssp
1048 with_long_double_128
1049 with_long_double_format
1050 with_gc
1051 with_system_zlib
1052 enable_maintainer_mode
1053 enable_link_mutex
1054 enable_link_serialization
1055 enable_version_specific_runtime_libs
1056 enable_plugin
1057 enable_host_shared
1058 enable_host_pie
1059 enable_libgdiagnostics
1060 enable_host_bind_now
1061 enable_libquadmath_support
1062 with_linker_hash_style
1063 with_diagnostics_color
1064 with_diagnostics_urls
1065 enable_versioned_jit
1066 enable_default_pie
1067 enable_cet
1068 enable_s390_excess_float_precision
1069 '
1070 ac_precious_vars='build_alias
1071 host_alias
1072 target_alias
1073 CC
1074 CFLAGS
1075 LDFLAGS
1076 LIBS
1077 CPPFLAGS
1078 CXX
1079 CXXFLAGS
1080 CCC
1081 CXXCPP
1082 CPP
1083 GMPLIBS
1084 GMPINC
1085 ISLLIBS
1086 ISLINC'
1087
1088
1089 # Initialize some variables set by options.
1090 ac_init_help=
1091 ac_init_version=false
1092 ac_unrecognized_opts=
1093 ac_unrecognized_sep=
1094 # The variables have the same names as the options, with
1095 # dashes changed to underlines.
1096 cache_file=/dev/null
1097 exec_prefix=NONE
1098 no_create=
1099 no_recursion=
1100 prefix=NONE
1101 program_prefix=NONE
1102 program_suffix=NONE
1103 program_transform_name=s,x,x,
1104 silent=
1105 site=
1106 srcdir=
1107 verbose=
1108 x_includes=NONE
1109 x_libraries=NONE
1110
1111 # Installation directory options.
1112 # These are left unexpanded so users can "make install exec_prefix=/foo"
1113 # and all the variables that are supposed to be based on exec_prefix
1114 # by default will actually change.
1115 # Use braces instead of parens because sh, perl, etc. also accept them.
1116 # (The list follows the same order as the GNU Coding Standards.)
1117 bindir='${exec_prefix}/bin'
1118 sbindir='${exec_prefix}/sbin'
1119 libexecdir='${exec_prefix}/libexec'
1120 datarootdir='${prefix}/share'
1121 datadir='${datarootdir}'
1122 sysconfdir='${prefix}/etc'
1123 sharedstatedir='${prefix}/com'
1124 localstatedir='${prefix}/var'
1125 includedir='${prefix}/include'
1126 oldincludedir='/usr/include'
1127 docdir='${datarootdir}/doc/${PACKAGE}'
1128 infodir='${datarootdir}/info'
1129 htmldir='${docdir}'
1130 dvidir='${docdir}'
1131 pdfdir='${docdir}'
1132 psdir='${docdir}'
1133 libdir='${exec_prefix}/lib'
1134 localedir='${datarootdir}/locale'
1135 mandir='${datarootdir}/man'
1136
1137 ac_prev=
1138 ac_dashdash=
1139 for ac_option
1140 do
1141 # If the previous option needs an argument, assign it.
1142 if test -n "$ac_prev"; then
1143 eval $ac_prev=\$ac_option
1144 ac_prev=
1145 continue
1146 fi
1147
1148 case $ac_option in
1149 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1150 *=) ac_optarg= ;;
1151 *) ac_optarg=yes ;;
1152 esac
1153
1154 # Accept the important Cygnus configure options, so we can diagnose typos.
1155
1156 case $ac_dashdash$ac_option in
1157 --)
1158 ac_dashdash=yes ;;
1159
1160 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1161 ac_prev=bindir ;;
1162 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1163 bindir=$ac_optarg ;;
1164
1165 -build | --build | --buil | --bui | --bu)
1166 ac_prev=build_alias ;;
1167 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1168 build_alias=$ac_optarg ;;
1169
1170 -cache-file | --cache-file | --cache-fil | --cache-fi \
1171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1172 ac_prev=cache_file ;;
1173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1175 cache_file=$ac_optarg ;;
1176
1177 --config-cache | -C)
1178 cache_file=config.cache ;;
1179
1180 -datadir | --datadir | --datadi | --datad)
1181 ac_prev=datadir ;;
1182 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1183 datadir=$ac_optarg ;;
1184
1185 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1186 | --dataroo | --dataro | --datar)
1187 ac_prev=datarootdir ;;
1188 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1189 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1190 datarootdir=$ac_optarg ;;
1191
1192 -disable-* | --disable-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid feature name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "enable_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval enable_$ac_useropt=no ;;
1207
1208 -docdir | --docdir | --docdi | --doc | --do)
1209 ac_prev=docdir ;;
1210 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211 docdir=$ac_optarg ;;
1212
1213 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1214 ac_prev=dvidir ;;
1215 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216 dvidir=$ac_optarg ;;
1217
1218 -enable-* | --enable-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid feature name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "enable_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval enable_$ac_useropt=\$ac_optarg ;;
1233
1234 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1235 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1236 | --exec | --exe | --ex)
1237 ac_prev=exec_prefix ;;
1238 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1239 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1240 | --exec=* | --exe=* | --ex=*)
1241 exec_prefix=$ac_optarg ;;
1242
1243 -gas | --gas | --ga | --g)
1244 # Obsolete; use --with-gas.
1245 with_gas=yes ;;
1246
1247 -help | --help | --hel | --he | -h)
1248 ac_init_help=long ;;
1249 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1250 ac_init_help=recursive ;;
1251 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1252 ac_init_help=short ;;
1253
1254 -host | --host | --hos | --ho)
1255 ac_prev=host_alias ;;
1256 -host=* | --host=* | --hos=* | --ho=*)
1257 host_alias=$ac_optarg ;;
1258
1259 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1260 ac_prev=htmldir ;;
1261 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1262 | --ht=*)
1263 htmldir=$ac_optarg ;;
1264
1265 -includedir | --includedir | --includedi | --included | --include \
1266 | --includ | --inclu | --incl | --inc)
1267 ac_prev=includedir ;;
1268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1269 | --includ=* | --inclu=* | --incl=* | --inc=*)
1270 includedir=$ac_optarg ;;
1271
1272 -infodir | --infodir | --infodi | --infod | --info | --inf)
1273 ac_prev=infodir ;;
1274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1275 infodir=$ac_optarg ;;
1276
1277 -libdir | --libdir | --libdi | --libd)
1278 ac_prev=libdir ;;
1279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1280 libdir=$ac_optarg ;;
1281
1282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1283 | --libexe | --libex | --libe)
1284 ac_prev=libexecdir ;;
1285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1286 | --libexe=* | --libex=* | --libe=*)
1287 libexecdir=$ac_optarg ;;
1288
1289 -localedir | --localedir | --localedi | --localed | --locale)
1290 ac_prev=localedir ;;
1291 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1292 localedir=$ac_optarg ;;
1293
1294 -localstatedir | --localstatedir | --localstatedi | --localstated \
1295 | --localstate | --localstat | --localsta | --localst | --locals)
1296 ac_prev=localstatedir ;;
1297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1298 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1299 localstatedir=$ac_optarg ;;
1300
1301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1302 ac_prev=mandir ;;
1303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1304 mandir=$ac_optarg ;;
1305
1306 -nfp | --nfp | --nf)
1307 # Obsolete; use --without-fp.
1308 with_fp=no ;;
1309
1310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1311 | --no-cr | --no-c | -n)
1312 no_create=yes ;;
1313
1314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1316 no_recursion=yes ;;
1317
1318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1320 | --oldin | --oldi | --old | --ol | --o)
1321 ac_prev=oldincludedir ;;
1322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1325 oldincludedir=$ac_optarg ;;
1326
1327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1328 ac_prev=prefix ;;
1329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1330 prefix=$ac_optarg ;;
1331
1332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1333 | --program-pre | --program-pr | --program-p)
1334 ac_prev=program_prefix ;;
1335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1337 program_prefix=$ac_optarg ;;
1338
1339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1340 | --program-suf | --program-su | --program-s)
1341 ac_prev=program_suffix ;;
1342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1344 program_suffix=$ac_optarg ;;
1345
1346 -program-transform-name | --program-transform-name \
1347 | --program-transform-nam | --program-transform-na \
1348 | --program-transform-n | --program-transform- \
1349 | --program-transform | --program-transfor \
1350 | --program-transfo | --program-transf \
1351 | --program-trans | --program-tran \
1352 | --progr-tra | --program-tr | --program-t)
1353 ac_prev=program_transform_name ;;
1354 -program-transform-name=* | --program-transform-name=* \
1355 | --program-transform-nam=* | --program-transform-na=* \
1356 | --program-transform-n=* | --program-transform-=* \
1357 | --program-transform=* | --program-transfor=* \
1358 | --program-transfo=* | --program-transf=* \
1359 | --program-trans=* | --program-tran=* \
1360 | --progr-tra=* | --program-tr=* | --program-t=*)
1361 program_transform_name=$ac_optarg ;;
1362
1363 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1364 ac_prev=pdfdir ;;
1365 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1366 pdfdir=$ac_optarg ;;
1367
1368 -psdir | --psdir | --psdi | --psd | --ps)
1369 ac_prev=psdir ;;
1370 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1371 psdir=$ac_optarg ;;
1372
1373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1374 | -silent | --silent | --silen | --sile | --sil)
1375 silent=yes ;;
1376
1377 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1378 ac_prev=sbindir ;;
1379 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1380 | --sbi=* | --sb=*)
1381 sbindir=$ac_optarg ;;
1382
1383 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1384 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1385 | --sharedst | --shareds | --shared | --share | --shar \
1386 | --sha | --sh)
1387 ac_prev=sharedstatedir ;;
1388 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1389 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1390 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1391 | --sha=* | --sh=*)
1392 sharedstatedir=$ac_optarg ;;
1393
1394 -site | --site | --sit)
1395 ac_prev=site ;;
1396 -site=* | --site=* | --sit=*)
1397 site=$ac_optarg ;;
1398
1399 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1400 ac_prev=srcdir ;;
1401 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1402 srcdir=$ac_optarg ;;
1403
1404 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1405 | --syscon | --sysco | --sysc | --sys | --sy)
1406 ac_prev=sysconfdir ;;
1407 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1408 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1409 sysconfdir=$ac_optarg ;;
1410
1411 -target | --target | --targe | --targ | --tar | --ta | --t)
1412 ac_prev=target_alias ;;
1413 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1414 target_alias=$ac_optarg ;;
1415
1416 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1417 verbose=yes ;;
1418
1419 -version | --version | --versio | --versi | --vers | -V)
1420 ac_init_version=: ;;
1421
1422 -with-* | --with-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426 as_fn_error $? "invalid package name: $ac_useropt"
1427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1430 *"
1431 "with_$ac_useropt"
1432 "*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=\$ac_optarg ;;
1437
1438 -without-* | --without-*)
1439 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1440 # Reject names that are not valid shell variable names.
1441 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1442 as_fn_error $? "invalid package name: $ac_useropt"
1443 ac_useropt_orig=$ac_useropt
1444 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1445 case $ac_user_opts in
1446 *"
1447 "with_$ac_useropt"
1448 "*) ;;
1449 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1450 ac_unrecognized_sep=', ';;
1451 esac
1452 eval with_$ac_useropt=no ;;
1453
1454 --x)
1455 # Obsolete; use --with-x.
1456 with_x=yes ;;
1457
1458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1459 | --x-incl | --x-inc | --x-in | --x-i)
1460 ac_prev=x_includes ;;
1461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1463 x_includes=$ac_optarg ;;
1464
1465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1467 ac_prev=x_libraries ;;
1468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1470 x_libraries=$ac_optarg ;;
1471
1472 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1473 Try \`$0 --help' for more information"
1474 ;;
1475
1476 *=*)
1477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1478 # Reject names that are not valid shell variable names.
1479 case $ac_envvar in #(
1480 '' | [0-9]* | *[!_$as_cr_alnum]* )
1481 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1482 esac
1483 eval $ac_envvar=\$ac_optarg
1484 export $ac_envvar ;;
1485
1486 *)
1487 # FIXME: should be removed in autoconf 3.0.
1488 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1490 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1491 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1492 ;;
1493
1494 esac
1495 done
1496
1497 if test -n "$ac_prev"; then
1498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1499 as_fn_error $? "missing argument to $ac_option"
1500 fi
1501
1502 if test -n "$ac_unrecognized_opts"; then
1503 case $enable_option_checking in
1504 no) ;;
1505 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1506 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1507 esac
1508 fi
1509
1510 # Check all directory arguments for consistency.
1511 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1512 datadir sysconfdir sharedstatedir localstatedir includedir \
1513 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1514 libdir localedir mandir
1515 do
1516 eval ac_val=\$$ac_var
1517 # Remove trailing slashes.
1518 case $ac_val in
1519 */ )
1520 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1521 eval $ac_var=\$ac_val;;
1522 esac
1523 # Be sure to have absolute directory names.
1524 case $ac_val in
1525 [\\/$]* | ?:[\\/]* ) continue;;
1526 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1527 esac
1528 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1529 done
1530
1531 # There might be people who depend on the old broken behavior: `$host'
1532 # used to hold the argument of --host etc.
1533 # FIXME: To remove some day.
1534 build=$build_alias
1535 host=$host_alias
1536 target=$target_alias
1537
1538 # FIXME: To remove some day.
1539 if test "x$host_alias" != x; then
1540 if test "x$build_alias" = x; then
1541 cross_compiling=maybe
1542 elif test "x$build_alias" != "x$host_alias"; then
1543 cross_compiling=yes
1544 fi
1545 fi
1546
1547 ac_tool_prefix=
1548 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1549
1550 test "$silent" = yes && exec 6>/dev/null
1551
1552
1553 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1554 ac_ls_di=`ls -di .` &&
1555 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1556 as_fn_error $? "working directory cannot be determined"
1557 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1558 as_fn_error $? "pwd does not report name of working directory"
1559
1560
1561 # Find the source files, if location was not specified.
1562 if test -z "$srcdir"; then
1563 ac_srcdir_defaulted=yes
1564 # Try the directory containing this script, then the parent directory.
1565 ac_confdir=`$as_dirname -- "$as_myself" ||
1566 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1567 X"$as_myself" : 'X\(//\)[^/]' \| \
1568 X"$as_myself" : 'X\(//\)$' \| \
1569 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1570 $as_echo X"$as_myself" |
1571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1572 s//\1/
1573 q
1574 }
1575 /^X\(\/\/\)[^/].*/{
1576 s//\1/
1577 q
1578 }
1579 /^X\(\/\/\)$/{
1580 s//\1/
1581 q
1582 }
1583 /^X\(\/\).*/{
1584 s//\1/
1585 q
1586 }
1587 s/.*/./; q'`
1588 srcdir=$ac_confdir
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 srcdir=..
1591 fi
1592 else
1593 ac_srcdir_defaulted=no
1594 fi
1595 if test ! -r "$srcdir/$ac_unique_file"; then
1596 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1597 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1598 fi
1599 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1600 ac_abs_confdir=`(
1601 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1602 pwd)`
1603 # When building in place, set srcdir=.
1604 if test "$ac_abs_confdir" = "$ac_pwd"; then
1605 srcdir=.
1606 fi
1607 # Remove unnecessary trailing slashes from srcdir.
1608 # Double slashes in file names in object file debugging info
1609 # mess up M-x gdb in Emacs.
1610 case $srcdir in
1611 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1612 esac
1613 for ac_var in $ac_precious_vars; do
1614 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1615 eval ac_env_${ac_var}_value=\$${ac_var}
1616 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1617 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1618 done
1619
1620 #
1621 # Report the --help message.
1622 #
1623 if test "$ac_init_help" = "long"; then
1624 # Omit some internal or obsolete options to make the list less imposing.
1625 # This message is too long to be a string in the A/UX 3.1 sh.
1626 cat <<_ACEOF
1627 \`configure' configures this package to adapt to many kinds of systems.
1628
1629 Usage: $0 [OPTION]... [VAR=VALUE]...
1630
1631 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1632 VAR=VALUE. See below for descriptions of some of the useful variables.
1633
1634 Defaults for the options are specified in brackets.
1635
1636 Configuration:
1637 -h, --help display this help and exit
1638 --help=short display options specific to this package
1639 --help=recursive display the short help of all the included packages
1640 -V, --version display version information and exit
1641 -q, --quiet, --silent do not print \`checking ...' messages
1642 --cache-file=FILE cache test results in FILE [disabled]
1643 -C, --config-cache alias for \`--cache-file=config.cache'
1644 -n, --no-create do not create output files
1645 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1646
1647 Installation directories:
1648 --prefix=PREFIX install architecture-independent files in PREFIX
1649 [$ac_default_prefix]
1650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1651 [PREFIX]
1652
1653 By default, \`make install' will install all the files in
1654 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1655 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1656 for instance \`--prefix=\$HOME'.
1657
1658 For better control, use the options below.
1659
1660 Fine tuning of the installation directories:
1661 --bindir=DIR user executables [EPREFIX/bin]
1662 --sbindir=DIR system admin executables [EPREFIX/sbin]
1663 --libexecdir=DIR program executables [EPREFIX/libexec]
1664 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1665 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1666 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1667 --libdir=DIR object code libraries [EPREFIX/lib]
1668 --includedir=DIR C header files [PREFIX/include]
1669 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1670 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1671 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1672 --infodir=DIR info documentation [DATAROOTDIR/info]
1673 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1674 --mandir=DIR man documentation [DATAROOTDIR/man]
1675 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1676 --htmldir=DIR html documentation [DOCDIR]
1677 --dvidir=DIR dvi documentation [DOCDIR]
1678 --pdfdir=DIR pdf documentation [DOCDIR]
1679 --psdir=DIR ps documentation [DOCDIR]
1680 _ACEOF
1681
1682 cat <<\_ACEOF
1683
1684 Program names:
1685 --program-prefix=PREFIX prepend PREFIX to installed program names
1686 --program-suffix=SUFFIX append SUFFIX to installed program names
1687 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1688
1689 System types:
1690 --build=BUILD configure for building on BUILD [guessed]
1691 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1692 --target=TARGET configure for building compilers for TARGET [HOST]
1693 _ACEOF
1694 fi
1695
1696 if test -n "$ac_init_help"; then
1697
1698 cat <<\_ACEOF
1699
1700 Optional Features:
1701 --disable-option-checking ignore unrecognized --enable/--with options
1702 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1703 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1704 --enable-generated-files-in-srcdir
1705 put copies of generated files in source dir intended
1706 for creating source tarballs for users without
1707 texinfo bison or flex
1708 --disable-largefile omit support for large files
1709 --disable-build-format-warnings
1710 don't use -Wformat while building GCC
1711 --enable-werror-always enable -Werror despite compiler version
1712 --enable-checking[=LIST]
1713 enable expensive run-time checks. With LIST, enable
1714 only specific categories of checks. Categories are:
1715 yes,no,all,none,release. Flags are:
1716 assert,df,extra,fold,gc,gcac,gimple,misc,
1717 rtlflag,rtl,runtime,tree,valgrind,types
1718 --enable-coverage[=LEVEL]
1719 enable compiler's code coverage collection. Use to
1720 measure compiler performance and locate unused parts
1721 of the compiler. With LEVEL, specify optimization.
1722 Values are opt, noopt, default is noopt
1723 --enable-gather-detailed-mem-stats
1724 enable detailed memory allocation stats gathering
1725 --enable-valgrind-annotations
1726 enable valgrind runtime interaction
1727 --enable-multilib enable library support for multiple ABIs
1728 --enable-multilib-space=yes,no,except
1729 enable extra -Os variant for every multilib ABI
1730 --enable-multiarch enable support for multiarch paths
1731 --enable-__cxa_atexit enable __cxa_atexit for C++
1732 --enable-decimal-float={no,yes,bid,dpd}
1733 enable decimal float extension to C. Selecting 'bid'
1734 or 'dpd' choses which decimal floating point format
1735 to use
1736 --enable-fixed-point enable fixed-point arithmetic extension to C
1737 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1738 package
1739 --enable-tls enable or disable generation of tls code overriding
1740 the assembler check for tls support
1741 --enable-vtable-verify enable vtable verification feature
1742 --disable-analyzer disable -fanalyzer static analyzer
1743 --enable-objc-gc enable the use of Boehm's garbage collector with the
1744 GNU Objective-C runtime
1745 --disable-shared don't provide a shared libgcc
1746 --disable-gcov don't provide libgcov and related host tools
1747 --enable-languages=LIST specify which front-ends to build
1748 --disable-rpath do not hardcode runtime library paths
1749 --enable-sjlj-exceptions
1750 arrange to use setjmp/longjmp exception handling
1751 --disable-win32-utf8-manifest
1752 disable embedding a utf8 manifest on mingw hosts
1753 --enable-win32-utf8-manifest
1754 enable embedding a utf8 manifest on mingw hosts
1755 (default)
1756 --disable-nls do not use Native Language Support
1757 --enable-secureplt enable -msecure-plt by default for PowerPC
1758 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1759 Default to platform configuration
1760 --enable-large-address-aware
1761 Link mingw executables with --large-address-aware
1762 --enable-leading-mingw64-underscores
1763 enable leading underscores on 64 bit mingw targets
1764 --enable-cld enable -mcld by default for 32bit x86
1765 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1766 --disable-win32-registry
1767 disable lookup of installation paths in the Registry
1768 on Windows hosts
1769 --enable-win32-registry enable registry lookup (default)
1770 --enable-win32-registry=KEY
1771 use KEY instead of GCC version as the last portion
1772 of the registry key
1773 --enable-shared[=PKGS] build shared libraries [default=yes]
1774 --enable-static[=PKGS] build static libraries [default=yes]
1775 --enable-fast-install[=PKGS]
1776 optimize for fast installation [default=yes]
1777 --disable-libtool-lock avoid locking (might break parallel builds)
1778 --enable-darwin-at-rpath
1779 install libraries with @rpath/library-name, requires
1780 rpaths to be added to executables
1781 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1782 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1783 --enable-gnu-indirect-function
1784 enable the use of the @gnu_indirect_function to
1785 glibc systems
1786 --enable-initfini-array use .init_array/.fini_array sections
1787 --enable-comdat enable COMDAT group support
1788 --enable-newlib-nano-formatted-io
1789 Use nano version formatted IO
1790
1791 --enable-standard-branch-protection
1792 enable Branch Target Identification Mechanism,
1793 Return Address Signing, and Guarded Control Stack by
1794 default for AArch64
1795 --disable-standard-branch-protection
1796 disable Branch Target Identification Mechanism,
1797 Return Address Signing, and Guarded Control Stack by
1798 default for AArch64
1799
1800
1801 --enable-fix-cortex-a53-835769
1802 enable workaround for AArch64 Cortex-A53 erratum
1803 835769 by default
1804 --disable-fix-cortex-a53-835769
1805 disable workaround for AArch64 Cortex-A53 erratum
1806 835769 by default
1807
1808
1809 --enable-fix-cortex-a53-843419
1810 enable workaround for AArch64 Cortex-A53 erratum
1811 843419 by default
1812 --disable-fix-cortex-a53-843419
1813 disable workaround for AArch64 Cortex-A53 erratum
1814 843419 by default
1815
1816 --enable-gnu-unique-object
1817 enable the use of the @gnu_unique_object ELF
1818 extension on glibc systems
1819 --enable-linker-build-id
1820 compiler will always pass --build-id to linker
1821 --enable-libssp enable linking against libssp
1822 --enable-default-ssp enable Stack Smashing Protection as default
1823 --enable-maintainer-mode
1824 enable make rules and dependencies not useful (and
1825 sometimes confusing) to the casual installer
1826 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1827 thrashing on the build machine
1828 --enable-link-serialization
1829 avoid linking multiple GCC front-ends at once using
1830 make dependencies to avoid thrashing on the build
1831 machine
1832 --enable-version-specific-runtime-libs
1833 specify that runtime libraries should be installed
1834 in a compiler-specific directory
1835 --enable-plugin enable plugin support
1836 --enable-host-shared build host code as shared libraries
1837 --enable-host-pie build host code as PIE
1838 --enable-libgdiagnostics
1839 build libgdiagnostics shared library
1840 --enable-host-bind-now link host code as BIND_NOW
1841 --disable-libquadmath-support
1842 disable libquadmath support for Fortran
1843 --enable-versioned-jit enable versioned libgccjit build
1844 --enable-default-pie enable Position Independent Executable as default
1845 --enable-cet enable Intel CET in host libraries [default=auto]
1846 --enable-s390-excess-float-precision
1847 on s390 targets, evaluate float with double
1848 precision when in standards-conforming mode
1849
1850 Optional Packages:
1851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1853 --with-build-libsubdir=DIR Directory where to find libraries for build system
1854 --with-local-prefix=DIR specifies directory to put local include
1855 --with-native-system-header-dir=dir
1856 use dir as the directory to look for standard
1857 system header files in. Defaults to /usr/include.
1858 --with-build-sysroot=sysroot
1859 use sysroot as the system root during the build
1860 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1861 --with-gxx-include-dir=DIR
1862 specifies directory to put g++ header files
1863 --with-gxx-libcxx-include-dir=DIR
1864 specifies directory to find libc++ header files
1865 --with-cpp-install-dir=DIR
1866 install the user visible C preprocessor in DIR
1867 (relative to PREFIX) as well as PREFIX/bin
1868 --with-gnu-ld arrange to work with GNU ld
1869 --with-ld arrange to use the specified ld (full pathname)
1870 --with-demangler-in-ld try to use demangler in GNU ld
1871 --with-dsymutil arrange to use the specified dsymutil (full
1872 pathname)
1873 --with-gnu-as arrange to work with GNU as
1874 --with-as arrange to use the specified as (full pathname)
1875 --with-stack-clash-protection-guard-size=size
1876 Set the default stack clash protection guard size
1877 for specific targets as a power of two in bytes.
1878 --with-matchpd-partitions=num
1879 Set the number of partitions to make for gimple and
1880 generic when splitting match.pd. [default=10]
1881 --with-insnemit-partitions=num
1882 Set the number of partitions of insn-emit.cc for
1883 genemit and genrecog to create. [default=10]
1884 --with-dwarf2 force the default debug format to be DWARF 2 (or
1885 later)
1886 --with-specs=SPECS add SPECS to driver command-line processing
1887 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1888 --with-bugurl=URL Direct users to URL to report a bug
1889 --with-documentation-root-url=URL
1890 Root for documentation URLs
1891 --with-changes-root-url=URL
1892 Root for GCC changes URLs
1893 --with-multilib-list select multilibs (AArch64, ARM, AVR, nvptx, OR1K,
1894 RISC-V, SH and x86-64 only)
1895 --with-multilib-generator
1896 Multi-libs configuration string (RISC-V only)
1897 --with-picolibc Support for picolibc, including command line options
1898 and spec rules
1899 --with-zstd=PATH specify prefix directory for installed zstd library.
1900 Equivalent to --with-zstd-include=PATH/include plus
1901 --with-zstd-lib=PATH/lib
1902 --with-zstd-include=PATH
1903 specify directory for installed zstd include files
1904 --with-zstd-lib=PATH specify directory for the installed zstd library
1905 --with-gnu-ld assume the C compiler uses GNU ld default=no
1906 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1907 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1908 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1909 --with-gcc-major-version-only
1910 use only GCC major number in filesystem paths
1911 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1912 --without-libintl-prefix don't search for libintl in includedir and libdir
1913 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1914 --with-pic try to use only PIC/non-PIC objects [default=use
1915 both]
1916 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1917 --with-darwin-extra-rpath=[ARG]
1918 Specify a runpath directory, additional to those
1919 provided by the compiler
1920 --with-plugin-ld=[ARG] specify the plugin linker
1921 --with-glibc-version=M.N
1922 assume GCC used with glibc version M.N or later
1923 --with-long-double-128 use 128-bit long double by default
1924 --with-long-double-format={ieee,ibm}
1925 Specify whether PowerPC long double uses IEEE or IBM format
1926
1927 --with-gc={page,zone} this option is not supported anymore. It used to
1928 choose the garbage collection mechanism to use with
1929 the compiler
1930 --with-system-zlib use installed libz
1931 --with-linker-hash-style={sysv,gnu,both}
1932 specify the linker hash style
1933 --with-diagnostics-color={never,auto,auto-if-env,always}
1934 specify the default of -fdiagnostics-color option
1935 auto-if-env stands for -fdiagnostics-color=auto if
1936 GCC_COLOR environment variable is present and
1937 -fdiagnostics-color=never otherwise
1938 --with-diagnostics-urls={never,auto,auto-if-env,always}
1939 specify the default of -fdiagnostics-urls option
1940 auto-if-env stands for -fdiagnostics-urls=auto if
1941 GCC_URLS or TERM_URLS environment variable is
1942 present and -fdiagnostics-urls=never otherwise
1943
1944 Some influential environment variables:
1945 CC C compiler command
1946 CFLAGS C compiler flags
1947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1948 nonstandard directory <lib dir>
1949 LIBS libraries to pass to the linker, e.g. -l<library>
1950 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1951 you have headers in a nonstandard directory <include dir>
1952 CXX C++ compiler command
1953 CXXFLAGS C++ compiler flags
1954 CXXCPP C++ preprocessor
1955 CPP C preprocessor
1956 GMPLIBS How to link GMP
1957 GMPINC How to find GMP include files
1958 ISLLIBS How to link isl
1959 ISLINC How to find isl include files
1960
1961 Use these variables to override the choices made by `configure' or to help
1962 it to find libraries and programs with nonstandard names/locations.
1963
1964 Report bugs to the package provider.
1965 _ACEOF
1966 ac_status=$?
1967 fi
1968
1969 if test "$ac_init_help" = "recursive"; then
1970 # If there are subdirs, report their specific --help.
1971 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1972 test -d "$ac_dir" ||
1973 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1974 continue
1975 ac_builddir=.
1976
1977 case "$ac_dir" in
1978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *)
1980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1981 # A ".." for each directory in $ac_dir_suffix.
1982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1983 case $ac_top_builddir_sub in
1984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1986 esac ;;
1987 esac
1988 ac_abs_top_builddir=$ac_pwd
1989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1990 # for backward compatibility:
1991 ac_top_builddir=$ac_top_build_prefix
1992
1993 case $srcdir in
1994 .) # We are building in place.
1995 ac_srcdir=.
1996 ac_top_srcdir=$ac_top_builddir_sub
1997 ac_abs_top_srcdir=$ac_pwd ;;
1998 [\\/]* | ?:[\\/]* ) # Absolute name.
1999 ac_srcdir=$srcdir$ac_dir_suffix;
2000 ac_top_srcdir=$srcdir
2001 ac_abs_top_srcdir=$srcdir ;;
2002 *) # Relative name.
2003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2004 ac_top_srcdir=$ac_top_build_prefix$srcdir
2005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2006 esac
2007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2008
2009 cd "$ac_dir" || { ac_status=$?; continue; }
2010 # Check for guested configure.
2011 if test -f "$ac_srcdir/configure.gnu"; then
2012 echo &&
2013 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2014 elif test -f "$ac_srcdir/configure"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure" --help=recursive
2017 else
2018 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2019 fi || ac_status=$?
2020 cd "$ac_pwd" || { ac_status=$?; break; }
2021 done
2022 fi
2023
2024 test -n "$ac_init_help" && exit $ac_status
2025 if $ac_init_version; then
2026 cat <<\_ACEOF
2027 configure
2028 generated by GNU Autoconf 2.69
2029
2030 Copyright (C) 2012 Free Software Foundation, Inc.
2031 This configure script is free software; the Free Software Foundation
2032 gives unlimited permission to copy, distribute and modify it.
2033 _ACEOF
2034 exit
2035 fi
2036
2037 ## ------------------------ ##
2038 ## Autoconf initialization. ##
2039 ## ------------------------ ##
2040
2041 # ac_fn_c_try_compile LINENO
2042 # --------------------------
2043 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_c_try_compile ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext
2048 if { { ac_try="$ac_compile"
2049 case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_compile") 2>conftest.err
2056 ac_status=$?
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2061 fi
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_c_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest.$ac_objext; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_retval=1
2073 fi
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2076
2077 } # ac_fn_c_try_compile
2078
2079 # ac_fn_cxx_try_compile LINENO
2080 # ----------------------------
2081 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2082 ac_fn_cxx_try_compile ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_cxx_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106 else
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111 fi
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 as_fn_set_status $ac_retval
2114
2115 } # ac_fn_cxx_try_compile
2116
2117 # ac_fn_cxx_try_cpp LINENO
2118 # ------------------------
2119 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_cxx_try_cpp ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124 case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } > conftest.i && {
2139 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143 else
2144 $as_echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148 fi
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 as_fn_set_status $ac_retval
2151
2152 } # ac_fn_cxx_try_cpp
2153
2154 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2155 # ---------------------------------------------------------
2156 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157 # the include files in INCLUDES and setting the cache variable VAR
2158 # accordingly.
2159 ac_fn_cxx_check_header_mongrel ()
2160 {
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if eval \${$3+:} false; then :
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 else
2172 # Is the header compilable?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174 $as_echo_n "checking $2 usability... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_cxx_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182 else
2183 ac_header_compiler=no
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187 $as_echo "$ac_header_compiler" >&6; }
2188
2189 # Is the header present?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191 $as_echo_n "checking $2 presence... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_cxx_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198 else
2199 ac_header_preproc=no
2200 fi
2201 rm -f conftest.err conftest.i conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203 $as_echo "$ac_header_preproc" >&6; }
2204
2205 # So? What about this header?
2206 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 ;;
2225 esac
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 eval "$3=\$ac_header_compiler"
2232 fi
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 fi
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_cxx_check_header_mongrel
2240
2241 # ac_fn_cxx_try_run LINENO
2242 # ------------------------
2243 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2244 # that executables *can* be run.
2245 ac_fn_cxx_try_run ()
2246 {
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { { ac_try="$ac_link"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_link") 2>&5
2256 ac_status=$?
2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2259 { { case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262 esac
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_try") 2>&5
2266 ac_status=$?
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; }; }; then :
2269 ac_retval=0
2270 else
2271 $as_echo "$as_me: program exited with status $ac_status" >&5
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_retval=$ac_status
2276 fi
2277 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 as_fn_set_status $ac_retval
2280
2281 } # ac_fn_cxx_try_run
2282
2283 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2284 # ---------------------------------------------------------
2285 # Tests whether HEADER exists and can be compiled using the include files in
2286 # INCLUDES, setting the cache variable VAR accordingly.
2287 ac_fn_cxx_check_header_compile ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval \${$3+:} false; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $4
2298 #include <$2>
2299 _ACEOF
2300 if ac_fn_cxx_try_compile "$LINENO"; then :
2301 eval "$3=yes"
2302 else
2303 eval "$3=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_cxx_check_header_compile
2313
2314 # ac_fn_c_try_cpp LINENO
2315 # ----------------------
2316 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2317 ac_fn_c_try_cpp ()
2318 {
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 if { { ac_try="$ac_cpp conftest.$ac_ext"
2321 case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2328 ac_status=$?
2329 if test -s conftest.err; then
2330 grep -v '^ *+' conftest.err >conftest.er1
2331 cat conftest.er1 >&5
2332 mv -f conftest.er1 conftest.err
2333 fi
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } > conftest.i && {
2336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2337 test ! -s conftest.err
2338 }; then :
2339 ac_retval=0
2340 else
2341 $as_echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=1
2345 fi
2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 as_fn_set_status $ac_retval
2348
2349 } # ac_fn_c_try_cpp
2350
2351 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2352 # ----------------------------------------------
2353 # Tries to find the compile-time value of EXPR in a program that includes
2354 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2355 # computed
2356 ac_fn_cxx_compute_int ()
2357 {
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 if test "$cross_compiling" = yes; then
2360 # Depending upon the size, compute the lo and hi bounds.
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2363 $4
2364 int
2365 main ()
2366 {
2367 static int test_array [1 - 2 * !(($2) >= 0)];
2368 test_array [0] = 0;
2369 return test_array [0];
2370
2371 ;
2372 return 0;
2373 }
2374 _ACEOF
2375 if ac_fn_cxx_try_compile "$LINENO"; then :
2376 ac_lo=0 ac_mid=0
2377 while :; do
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380 $4
2381 int
2382 main ()
2383 {
2384 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2385 test_array [0] = 0;
2386 return test_array [0];
2387
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_cxx_try_compile "$LINENO"; then :
2393 ac_hi=$ac_mid; break
2394 else
2395 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2396 if test $ac_lo -le $ac_mid; then
2397 ac_lo= ac_hi=
2398 break
2399 fi
2400 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 done
2404 else
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $4
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(($2) < 0)];
2412 test_array [0] = 0;
2413 return test_array [0];
2414
2415 ;
2416 return 0;
2417 }
2418 _ACEOF
2419 if ac_fn_cxx_try_compile "$LINENO"; then :
2420 ac_hi=-1 ac_mid=-1
2421 while :; do
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2424 $4
2425 int
2426 main ()
2427 {
2428 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2429 test_array [0] = 0;
2430 return test_array [0];
2431
2432 ;
2433 return 0;
2434 }
2435 _ACEOF
2436 if ac_fn_cxx_try_compile "$LINENO"; then :
2437 ac_lo=$ac_mid; break
2438 else
2439 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2440 if test $ac_mid -le $ac_hi; then
2441 ac_lo= ac_hi=
2442 break
2443 fi
2444 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 done
2448 else
2449 ac_lo= ac_hi=
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 # Binary search between lo and hi bounds.
2455 while test "x$ac_lo" != "x$ac_hi"; do
2456 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 $4
2460 int
2461 main ()
2462 {
2463 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2464 test_array [0] = 0;
2465 return test_array [0];
2466
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_cxx_try_compile "$LINENO"; then :
2472 ac_hi=$ac_mid
2473 else
2474 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2475 fi
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 done
2478 case $ac_lo in #((
2479 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2480 '') ac_retval=1 ;;
2481 esac
2482 else
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2485 $4
2486 static long int longval () { return $2; }
2487 static unsigned long int ulongval () { return $2; }
2488 #include <stdio.h>
2489 #include <stdlib.h>
2490 int
2491 main ()
2492 {
2493
2494 FILE *f = fopen ("conftest.val", "w");
2495 if (! f)
2496 return 1;
2497 if (($2) < 0)
2498 {
2499 long int i = longval ();
2500 if (i != ($2))
2501 return 1;
2502 fprintf (f, "%ld", i);
2503 }
2504 else
2505 {
2506 unsigned long int i = ulongval ();
2507 if (i != ($2))
2508 return 1;
2509 fprintf (f, "%lu", i);
2510 }
2511 /* Do not output a trailing newline, as this causes \r\n confusion
2512 on some platforms. */
2513 return ferror (f) || fclose (f) != 0;
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_cxx_try_run "$LINENO"; then :
2520 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2521 else
2522 ac_retval=1
2523 fi
2524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2525 conftest.$ac_objext conftest.beam conftest.$ac_ext
2526 rm -f conftest.val
2527
2528 fi
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 as_fn_set_status $ac_retval
2531
2532 } # ac_fn_cxx_compute_int
2533
2534 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2535 # ---------------------------------------------
2536 # Tests whether TYPE exists after having included INCLUDES, setting cache
2537 # variable VAR accordingly.
2538 ac_fn_cxx_check_type ()
2539 {
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if eval \${$3+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 eval "$3=no"
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549 $4
2550 int
2551 main ()
2552 {
2553 if (sizeof ($2))
2554 return 0;
2555 ;
2556 return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_cxx_try_compile "$LINENO"; then :
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2562 $4
2563 int
2564 main ()
2565 {
2566 if (sizeof (($2)))
2567 return 0;
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_cxx_try_compile "$LINENO"; then :
2573
2574 else
2575 eval "$3=yes"
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 fi
2581 eval ac_res=\$$3
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2585
2586 } # ac_fn_cxx_check_type
2587
2588 # ac_fn_c_find_intX_t LINENO BITS VAR
2589 # -----------------------------------
2590 # Finds a signed integer type with width BITS, setting cache variable VAR
2591 # accordingly.
2592 ac_fn_c_find_intX_t ()
2593 {
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2596 $as_echo_n "checking for int$2_t... " >&6; }
2597 if eval \${$3+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 eval "$3=no"
2601 # Order is important - never check a type that is potentially smaller
2602 # than half of the expected target width.
2603 for ac_type in int$2_t 'int' 'long int' \
2604 'long long int' 'short int' 'signed char'; do
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h. */
2607 $ac_includes_default
2608 enum { N = $2 / 2 - 1 };
2609 int
2610 main ()
2611 {
2612 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2613 test_array [0] = 0;
2614 return test_array [0];
2615
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_cxx_try_compile "$LINENO"; then :
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2623 $ac_includes_default
2624 enum { N = $2 / 2 - 1 };
2625 int
2626 main ()
2627 {
2628 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2629 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2630 test_array [0] = 0;
2631 return test_array [0];
2632
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638
2639 else
2640 case $ac_type in #(
2641 int$2_t) :
2642 eval "$3=yes" ;; #(
2643 *) :
2644 eval "$3=\$ac_type" ;;
2645 esac
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 fi
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 if eval test \"x\$"$3"\" = x"no"; then :
2651
2652 else
2653 break
2654 fi
2655 done
2656 fi
2657 eval ac_res=\$$3
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 $as_echo "$ac_res" >&6; }
2660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661
2662 } # ac_fn_c_find_intX_t
2663
2664 # ac_fn_cxx_try_link LINENO
2665 # -------------------------
2666 # Try to link conftest.$ac_ext, and return whether this succeeded.
2667 ac_fn_cxx_try_link ()
2668 {
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { { ac_try="$ac_link"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_link") 2>conftest.err
2679 ac_status=$?
2680 if test -s conftest.err; then
2681 grep -v '^ *+' conftest.err >conftest.er1
2682 cat conftest.er1 >&5
2683 mv -f conftest.er1 conftest.err
2684 fi
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; } && {
2687 test -z "$ac_cxx_werror_flag" ||
2688 test ! -s conftest.err
2689 } && test -s conftest$ac_exeext && {
2690 test "$cross_compiling" = yes ||
2691 test -x conftest$ac_exeext
2692 }; then :
2693 ac_retval=0
2694 else
2695 $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 ac_retval=1
2699 fi
2700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2702 # interfere with the next link command; also delete a directory that is
2703 # left behind by Apple's compiler. We do this before executing the actions.
2704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706 as_fn_set_status $ac_retval
2707
2708 } # ac_fn_cxx_try_link
2709
2710 # ac_fn_c_find_uintX_t LINENO BITS VAR
2711 # ------------------------------------
2712 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2713 # accordingly.
2714 ac_fn_c_find_uintX_t ()
2715 {
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2718 $as_echo_n "checking for uint$2_t... " >&6; }
2719 if eval \${$3+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 eval "$3=no"
2723 # Order is important - never check a type that is potentially smaller
2724 # than half of the expected target width.
2725 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2726 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h. */
2729 $ac_includes_default
2730 int
2731 main ()
2732 {
2733 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2734 test_array [0] = 0;
2735 return test_array [0];
2736
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 if ac_fn_cxx_try_compile "$LINENO"; then :
2742 case $ac_type in #(
2743 uint$2_t) :
2744 eval "$3=yes" ;; #(
2745 *) :
2746 eval "$3=\$ac_type" ;;
2747 esac
2748 fi
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 if eval test \"x\$"$3"\" = x"no"; then :
2751
2752 else
2753 break
2754 fi
2755 done
2756 fi
2757 eval ac_res=\$$3
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761
2762 } # ac_fn_c_find_uintX_t
2763
2764 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2765 # ------------------------------------------------
2766 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2767 ac_fn_cxx_check_header_preproc ()
2768 {
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771 $as_echo_n "checking for $2... " >&6; }
2772 if eval \${$3+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 #include <$2>
2778 _ACEOF
2779 if ac_fn_cxx_try_cpp "$LINENO"; then :
2780 eval "$3=yes"
2781 else
2782 eval "$3=no"
2783 fi
2784 rm -f conftest.err conftest.i conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790
2791 } # ac_fn_cxx_check_header_preproc
2792
2793 # ac_fn_cxx_check_func LINENO FUNC VAR
2794 # ------------------------------------
2795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2796 ac_fn_cxx_check_func ()
2797 {
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if eval \${$3+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2808 #define $2 innocuous_$2
2809
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $2 (); below.
2812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 <limits.h> exists even on freestanding compilers. */
2814
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2820
2821 #undef $2
2822
2823 /* Override any GCC internal prototype to avoid an error.
2824 Use char because int might match the return type of a GCC
2825 builtin and then its argument prototype would still apply. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 char $2 ();
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined __stub_$2 || defined __stub___$2
2834 choke me
2835 #endif
2836
2837 int
2838 main ()
2839 {
2840 return $2 ();
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_cxx_try_link "$LINENO"; then :
2846 eval "$3=yes"
2847 else
2848 eval "$3=no"
2849 fi
2850 rm -f core conftest.err conftest.$ac_objext \
2851 conftest$ac_exeext conftest.$ac_ext
2852 fi
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2857
2858 } # ac_fn_cxx_check_func
2859
2860 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2861 # -----------------------------------------------
2862 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2863 # accordingly.
2864 ac_fn_cxx_check_decl ()
2865 {
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 as_decl_name=`echo $2|sed 's/ *(.*//'`
2868 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2870 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2871 if eval \${$3+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876 $4
2877 int
2878 main ()
2879 {
2880 #ifndef $as_decl_name
2881 #ifdef __cplusplus
2882 (void) $as_decl_use;
2883 #else
2884 (void) $as_decl_name;
2885 #endif
2886 #endif
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_cxx_try_compile "$LINENO"; then :
2893 eval "$3=yes"
2894 else
2895 eval "$3=no"
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 fi
2899 eval ac_res=\$$3
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2901 $as_echo "$ac_res" >&6; }
2902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2903
2904 } # ac_fn_cxx_check_decl
2905
2906 # ac_fn_c_try_link LINENO
2907 # -----------------------
2908 # Try to link conftest.$ac_ext, and return whether this succeeded.
2909 ac_fn_c_try_link ()
2910 {
2911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2912 rm -f conftest.$ac_objext conftest$ac_exeext
2913 if { { ac_try="$ac_link"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link") 2>conftest.err
2921 ac_status=$?
2922 if test -s conftest.err; then
2923 grep -v '^ *+' conftest.err >conftest.er1
2924 cat conftest.er1 >&5
2925 mv -f conftest.er1 conftest.err
2926 fi
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; } && {
2929 test -z "$ac_c_werror_flag" ||
2930 test ! -s conftest.err
2931 } && test -s conftest$ac_exeext && {
2932 test "$cross_compiling" = yes ||
2933 test -x conftest$ac_exeext
2934 }; then :
2935 ac_retval=0
2936 else
2937 $as_echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 ac_retval=1
2941 fi
2942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2944 # interfere with the next link command; also delete a directory that is
2945 # left behind by Apple's compiler. We do this before executing the actions.
2946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2948 as_fn_set_status $ac_retval
2949
2950 } # ac_fn_c_try_link
2951
2952 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2953 # ----------------------------------------------
2954 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2955 ac_fn_c_check_header_preproc ()
2956 {
2957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2959 $as_echo_n "checking for $2... " >&6; }
2960 if eval \${$3+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2965 #include <$2>
2966 _ACEOF
2967 if ac_fn_c_try_cpp "$LINENO"; then :
2968 eval "$3=yes"
2969 else
2970 eval "$3=no"
2971 fi
2972 rm -f conftest.err conftest.i conftest.$ac_ext
2973 fi
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2978
2979 } # ac_fn_c_check_header_preproc
2980
2981 # ac_fn_c_check_func LINENO FUNC VAR
2982 # ----------------------------------
2983 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2984 ac_fn_c_check_func ()
2985 {
2986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2988 $as_echo_n "checking for $2... " >&6; }
2989 if eval \${$3+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2996 #define $2 innocuous_$2
2997
2998 /* System header to define __stub macros and hopefully few prototypes,
2999 which can conflict with char $2 (); below.
3000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 <limits.h> exists even on freestanding compilers. */
3002
3003 #ifdef __STDC__
3004 # include <limits.h>
3005 #else
3006 # include <assert.h>
3007 #endif
3008
3009 #undef $2
3010
3011 /* Override any GCC internal prototype to avoid an error.
3012 Use char because int might match the return type of a GCC
3013 builtin and then its argument prototype would still apply. */
3014 #ifdef __cplusplus
3015 extern "C"
3016 #endif
3017 char $2 ();
3018 /* The GNU C library defines this for functions which it implements
3019 to always fail with ENOSYS. Some functions are actually named
3020 something starting with __ and the normal name is an alias. */
3021 #if defined __stub_$2 || defined __stub___$2
3022 choke me
3023 #endif
3024
3025 int
3026 main ()
3027 {
3028 return $2 ();
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 if ac_fn_c_try_link "$LINENO"; then :
3034 eval "$3=yes"
3035 else
3036 eval "$3=no"
3037 fi
3038 rm -f core conftest.err conftest.$ac_objext \
3039 conftest$ac_exeext conftest.$ac_ext
3040 fi
3041 eval ac_res=\$$3
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3043 $as_echo "$ac_res" >&6; }
3044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3045
3046 } # ac_fn_c_check_func
3047 cat >config.log <<_ACEOF
3048 This file contains any messages produced by compilers while
3049 running configure, to aid debugging if configure makes a mistake.
3050
3051 It was created by $as_me, which was
3052 generated by GNU Autoconf 2.69. Invocation command line was
3053
3054 $ $0 $@
3055
3056 _ACEOF
3057 exec 5>>config.log
3058 {
3059 cat <<_ASUNAME
3060 ## --------- ##
3061 ## Platform. ##
3062 ## --------- ##
3063
3064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3069
3070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3072
3073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3076 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3080
3081 _ASUNAME
3082
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 $as_echo "PATH: $as_dir"
3089 done
3090 IFS=$as_save_IFS
3091
3092 } >&5
3093
3094 cat >&5 <<_ACEOF
3095
3096
3097 ## ----------- ##
3098 ## Core tests. ##
3099 ## ----------- ##
3100
3101 _ACEOF
3102
3103
3104 # Keep a trace of the command line.
3105 # Strip out --no-create and --no-recursion so they do not pile up.
3106 # Strip out --silent because we don't want to record it for future runs.
3107 # Also quote any args containing shell meta-characters.
3108 # Make two passes to allow for proper duplicate-argument suppression.
3109 ac_configure_args=
3110 ac_configure_args0=
3111 ac_configure_args1=
3112 ac_must_keep_next=false
3113 for ac_pass in 1 2
3114 do
3115 for ac_arg
3116 do
3117 case $ac_arg in
3118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3120 | -silent | --silent | --silen | --sile | --sil)
3121 continue ;;
3122 *\'*)
3123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3124 esac
3125 case $ac_pass in
3126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3127 2)
3128 as_fn_append ac_configure_args1 " '$ac_arg'"
3129 if test $ac_must_keep_next = true; then
3130 ac_must_keep_next=false # Got value, back to normal.
3131 else
3132 case $ac_arg in
3133 *=* | --config-cache | -C | -disable-* | --disable-* \
3134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3136 | -with-* | --with-* | -without-* | --without-* | --x)
3137 case "$ac_configure_args0 " in
3138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3139 esac
3140 ;;
3141 -* ) ac_must_keep_next=true ;;
3142 esac
3143 fi
3144 as_fn_append ac_configure_args " '$ac_arg'"
3145 ;;
3146 esac
3147 done
3148 done
3149 { ac_configure_args0=; unset ac_configure_args0;}
3150 { ac_configure_args1=; unset ac_configure_args1;}
3151
3152 # When interrupted or exit'd, cleanup temporary files, and complete
3153 # config.log. We remove comments because anyway the quotes in there
3154 # would cause problems or look ugly.
3155 # WARNING: Use '\'' to represent an apostrophe within the trap.
3156 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3157 trap 'exit_status=$?
3158 # Save into config.log some information that might help in debugging.
3159 {
3160 echo
3161
3162 $as_echo "## ---------------- ##
3163 ## Cache variables. ##
3164 ## ---------------- ##"
3165 echo
3166 # The following way of writing the cache mishandles newlines in values,
3167 (
3168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3169 eval ac_val=\$$ac_var
3170 case $ac_val in #(
3171 *${as_nl}*)
3172 case $ac_var in #(
3173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3175 esac
3176 case $ac_var in #(
3177 _ | IFS | as_nl) ;; #(
3178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3179 *) { eval $ac_var=; unset $ac_var;} ;;
3180 esac ;;
3181 esac
3182 done
3183 (set) 2>&1 |
3184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3185 *${as_nl}ac_space=\ *)
3186 sed -n \
3187 "s/'\''/'\''\\\\'\'''\''/g;
3188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3189 ;; #(
3190 *)
3191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3192 ;;
3193 esac |
3194 sort
3195 )
3196 echo
3197
3198 $as_echo "## ----------------- ##
3199 ## Output variables. ##
3200 ## ----------------- ##"
3201 echo
3202 for ac_var in $ac_subst_vars
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
3212 if test -n "$ac_subst_files"; then
3213 $as_echo "## ------------------- ##
3214 ## File substitutions. ##
3215 ## ------------------- ##"
3216 echo
3217 for ac_var in $ac_subst_files
3218 do
3219 eval ac_val=\$$ac_var
3220 case $ac_val in
3221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3222 esac
3223 $as_echo "$ac_var='\''$ac_val'\''"
3224 done | sort
3225 echo
3226 fi
3227
3228 if test -s confdefs.h; then
3229 $as_echo "## ----------- ##
3230 ## confdefs.h. ##
3231 ## ----------- ##"
3232 echo
3233 cat confdefs.h
3234 echo
3235 fi
3236 test "$ac_signal" != 0 &&
3237 $as_echo "$as_me: caught signal $ac_signal"
3238 $as_echo "$as_me: exit $exit_status"
3239 } >&5
3240 rm -f core *.core core.conftest.* &&
3241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3242 exit $exit_status
3243 ' 0
3244 for ac_signal in 1 2 13 15; do
3245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3246 done
3247 ac_signal=0
3248
3249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3250 rm -f -r conftest* confdefs.h
3251
3252 $as_echo "/* confdefs.h */" > confdefs.h
3253
3254 # Predefined preprocessor variables.
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_NAME "$PACKAGE_NAME"
3258 _ACEOF
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3262 _ACEOF
3263
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3266 _ACEOF
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_STRING "$PACKAGE_STRING"
3270 _ACEOF
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3274 _ACEOF
3275
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE_URL "$PACKAGE_URL"
3278 _ACEOF
3279
3280
3281 # Let the site file select an alternate cache file if it wants to.
3282 # Prefer an explicitly selected file to automatically selected ones.
3283 ac_site_file1=NONE
3284 ac_site_file2=NONE
3285 if test -n "$CONFIG_SITE"; then
3286 # We do not want a PATH search for config.site.
3287 case $CONFIG_SITE in #((
3288 -*) ac_site_file1=./$CONFIG_SITE;;
3289 */*) ac_site_file1=$CONFIG_SITE;;
3290 *) ac_site_file1=./$CONFIG_SITE;;
3291 esac
3292 elif test "x$prefix" != xNONE; then
3293 ac_site_file1=$prefix/share/config.site
3294 ac_site_file2=$prefix/etc/config.site
3295 else
3296 ac_site_file1=$ac_default_prefix/share/config.site
3297 ac_site_file2=$ac_default_prefix/etc/config.site
3298 fi
3299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3300 do
3301 test "x$ac_site_file" = xNONE && continue
3302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3305 sed 's/^/| /' "$ac_site_file" >&5
3306 . "$ac_site_file" \
3307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "failed to load site script $ac_site_file
3310 See \`config.log' for more details" "$LINENO" 5; }
3311 fi
3312 done
3313
3314 if test -r "$cache_file"; then
3315 # Some versions of bash will fail to source /dev/null (special files
3316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3319 $as_echo "$as_me: loading cache $cache_file" >&6;}
3320 case $cache_file in
3321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3322 *) . "./$cache_file";;
3323 esac
3324 fi
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3327 $as_echo "$as_me: creating cache $cache_file" >&6;}
3328 >$cache_file
3329 fi
3330
3331 gt_needs="$gt_needs "
3332 # Check that the precious variables saved in the cache have kept the same
3333 # value.
3334 ac_cache_corrupted=false
3335 for ac_var in $ac_precious_vars; do
3336 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3337 eval ac_new_set=\$ac_env_${ac_var}_set
3338 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3339 eval ac_new_val=\$ac_env_${ac_var}_value
3340 case $ac_old_set,$ac_new_set in
3341 set,)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3344 ac_cache_corrupted=: ;;
3345 ,set)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3348 ac_cache_corrupted=: ;;
3349 ,);;
3350 *)
3351 if test "x$ac_old_val" != "x$ac_new_val"; then
3352 # differences in whitespace do not lead to failure.
3353 ac_old_val_w=`echo x $ac_old_val`
3354 ac_new_val_w=`echo x $ac_new_val`
3355 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3358 ac_cache_corrupted=:
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3362 eval $ac_var=\$ac_old_val
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3365 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3367 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3368 fi;;
3369 esac
3370 # Pass precious variables to config.status.
3371 if test "$ac_new_set" = set; then
3372 case $ac_new_val in
3373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3374 *) ac_arg=$ac_var=$ac_new_val ;;
3375 esac
3376 case " $ac_configure_args " in
3377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3378 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3379 esac
3380 fi
3381 done
3382 if $ac_cache_corrupted; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3388 fi
3389 ## -------------------- ##
3390 ## Main body of script. ##
3391 ## -------------------- ##
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400
3401
3402
3403
3404
3405 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3406
3407
3408 gcc_version=`cat $srcdir/BASE-VER`
3409
3410 # Determine the host, build, and target systems
3411 ac_aux_dir=
3412 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3413 if test -f "$ac_dir/install-sh"; then
3414 ac_aux_dir=$ac_dir
3415 ac_install_sh="$ac_aux_dir/install-sh -c"
3416 break
3417 elif test -f "$ac_dir/install.sh"; then
3418 ac_aux_dir=$ac_dir
3419 ac_install_sh="$ac_aux_dir/install.sh -c"
3420 break
3421 elif test -f "$ac_dir/shtool"; then
3422 ac_aux_dir=$ac_dir
3423 ac_install_sh="$ac_aux_dir/shtool install -c"
3424 break
3425 fi
3426 done
3427 if test -z "$ac_aux_dir"; then
3428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3429 fi
3430
3431 # These three variables are undocumented and unsupported,
3432 # and are intended to be withdrawn in a future Autoconf release.
3433 # They can cause serious problems if a builder's source tree is in a directory
3434 # whose full name contains unusual characters.
3435 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3436 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3437 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3438
3439
3440 # Make sure we can run config.sub.
3441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3445 $as_echo_n "checking build system type... " >&6; }
3446 if ${ac_cv_build+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 ac_build_alias=$build_alias
3450 test "x$ac_build_alias" = x &&
3451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3452 test "x$ac_build_alias" = x &&
3453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3456
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3459 $as_echo "$ac_cv_build" >&6; }
3460 case $ac_cv_build in
3461 *-*-*) ;;
3462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3463 esac
3464 build=$ac_cv_build
3465 ac_save_IFS=$IFS; IFS='-'
3466 set x $ac_cv_build
3467 shift
3468 build_cpu=$1
3469 build_vendor=$2
3470 shift; shift
3471 # Remember, the first character of IFS is used to create $*,
3472 # except with old shells:
3473 build_os=$*
3474 IFS=$ac_save_IFS
3475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3476
3477
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3479 $as_echo_n "checking host system type... " >&6; }
3480 if ${ac_cv_host+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test "x$host_alias" = x; then
3484 ac_cv_host=$ac_cv_build
3485 else
3486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3488 fi
3489
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3492 $as_echo "$ac_cv_host" >&6; }
3493 case $ac_cv_host in
3494 *-*-*) ;;
3495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3496 esac
3497 host=$ac_cv_host
3498 ac_save_IFS=$IFS; IFS='-'
3499 set x $ac_cv_host
3500 shift
3501 host_cpu=$1
3502 host_vendor=$2
3503 shift; shift
3504 # Remember, the first character of IFS is used to create $*,
3505 # except with old shells:
3506 host_os=$*
3507 IFS=$ac_save_IFS
3508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3509
3510
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3512 $as_echo_n "checking target system type... " >&6; }
3513 if ${ac_cv_target+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test "x$target_alias" = x; then
3517 ac_cv_target=$ac_cv_host
3518 else
3519 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3521 fi
3522
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3525 $as_echo "$ac_cv_target" >&6; }
3526 case $ac_cv_target in
3527 *-*-*) ;;
3528 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3529 esac
3530 target=$ac_cv_target
3531 ac_save_IFS=$IFS; IFS='-'
3532 set x $ac_cv_target
3533 shift
3534 target_cpu=$1
3535 target_vendor=$2
3536 shift; shift
3537 # Remember, the first character of IFS is used to create $*,
3538 # except with old shells:
3539 target_os=$*
3540 IFS=$ac_save_IFS
3541 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3542
3543
3544 # The aliases save the names the user supplied, while $host etc.
3545 # will get canonicalized.
3546 test -n "$target_alias" &&
3547 test "$program_prefix$program_suffix$program_transform_name" = \
3548 NONENONEs,x,x, &&
3549 program_prefix=${target_alias}-
3550
3551 # Determine the noncanonical host name, for Ada.
3552 case ${build_alias} in
3553 "") build_noncanonical=${build} ;;
3554 *) build_noncanonical=${build_alias} ;;
3555 esac
3556
3557 case ${host_alias} in
3558 "") host_noncanonical=${build_noncanonical} ;;
3559 *) host_noncanonical=${host_alias} ;;
3560 esac
3561
3562
3563
3564
3565 # Determine the noncanonical target name, for directory use.
3566 case ${target_alias} in
3567 "") target_noncanonical=${host_noncanonical} ;;
3568 *) target_noncanonical=${target_alias} ;;
3569 esac
3570
3571
3572
3573
3574 # Used for constructing correct paths for offload compilers.
3575 real_target_noncanonical=${target_noncanonical}
3576 accel_dir_suffix=
3577
3578 # Determine the target- and build-specific subdirectories
3579
3580 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3581 # have matching libraries, they should use host libraries: Makefile.tpl
3582 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3583 # However, they still use the build modules, because the corresponding
3584 # host modules (e.g. bison) are only built for the host when bootstrap
3585 # finishes. So:
3586 # - build_subdir is where we find build modules, and never changes.
3587 # - build_libsubdir is where we find build libraries, and can be overridden.
3588
3589 # Prefix 'build-' so this never conflicts with target_subdir.
3590 build_subdir="build-${build_noncanonical}"
3591
3592 # Check whether --with-build-libsubdir was given.
3593 if test "${with_build_libsubdir+set}" = set; then :
3594 withval=$with_build_libsubdir; build_libsubdir="$withval"
3595 else
3596 build_libsubdir="$build_subdir"
3597 fi
3598
3599 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3600 if ( test $srcdir = . && test -d gcc ) \
3601 || test -d $srcdir/../host-${host_noncanonical}; then
3602 host_subdir="host-${host_noncanonical}"
3603 else
3604 host_subdir=.
3605 fi
3606 # No prefix.
3607 target_subdir=${target_noncanonical}
3608
3609
3610 # Set program_transform_name
3611 test "$program_prefix" != NONE &&
3612 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3613 # Use a double $ so make ignores it.
3614 test "$program_suffix" != NONE &&
3615 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3616 # Double any \ or $.
3617 # By default was `s,x,x', remove it if useless.
3618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3620
3621
3622 # Check for bogus environment variables.
3623 # Test if LIBRARY_PATH contains the notation for the current directory
3624 # since this would lead to problems installing/building glibc.
3625 # LIBRARY_PATH contains the current directory if one of the following
3626 # is true:
3627 # - one of the terminals (":" and ";") is the first or last sign
3628 # - two terminals occur directly after each other
3629 # - the path contains an element with a dot in it
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3631 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3632 case ${LIBRARY_PATH} in
3633 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3634 library_path_setting="contains current directory"
3635 ;;
3636 *)
3637 library_path_setting="ok"
3638 ;;
3639 esac
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3641 $as_echo "$library_path_setting" >&6; }
3642 if test "$library_path_setting" != "ok"; then
3643 as_fn_error $? "
3644 *** LIBRARY_PATH shouldn't contain the current directory when
3645 *** building gcc. Please change the environment variable
3646 *** and run configure again." "$LINENO" 5
3647 fi
3648
3649 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3650 # since this would lead to problems installing/building glibc.
3651 # GCC_EXEC_PREFIX contains the current directory if one of the following
3652 # is true:
3653 # - one of the terminals (":" and ";") is the first or last sign
3654 # - two terminals occur directly after each other
3655 # - the path contains an element with a dot in it
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3657 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3658 case ${GCC_EXEC_PREFIX} in
3659 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3660 gcc_exec_prefix_setting="contains current directory"
3661 ;;
3662 *)
3663 gcc_exec_prefix_setting="ok"
3664 ;;
3665 esac
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3667 $as_echo "$gcc_exec_prefix_setting" >&6; }
3668 if test "$gcc_exec_prefix_setting" != "ok"; then
3669 as_fn_error $? "
3670 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3671 *** building gcc. Please change the environment variable
3672 *** and run configure again." "$LINENO" 5
3673 fi
3674
3675 # -----------
3676 # Directories
3677 # -----------
3678
3679 # Specify the local prefix
3680 local_prefix=
3681
3682 # Check whether --with-local-prefix was given.
3683 if test "${with_local_prefix+set}" = set; then :
3684 withval=$with_local_prefix; case "${withval}" in
3685 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3686 no) ;;
3687 *) local_prefix=$with_local_prefix ;;
3688 esac
3689 fi
3690
3691
3692 # Default local prefix if it is empty
3693 if test x$local_prefix = x; then
3694 local_prefix=/usr/local
3695 fi
3696
3697
3698 # Check whether --with-native-system-header-dir was given.
3699 if test "${with_native_system_header_dir+set}" = set; then :
3700 withval=$with_native_system_header_dir;
3701 case ${with_native_system_header_dir} in
3702 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3703 /* | [A-Za-z]:[\\/]*) ;;
3704 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3705 esac
3706 configured_native_system_header_dir="${withval}"
3707
3708 else
3709 configured_native_system_header_dir=
3710 fi
3711
3712
3713
3714 # Check whether --with-build-sysroot was given.
3715 if test "${with_build_sysroot+set}" = set; then :
3716 withval=$with_build_sysroot; if test x"$withval" != x ; then
3717 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3718 fi
3719 else
3720 SYSROOT_CFLAGS_FOR_TARGET=
3721 fi
3722
3723
3724
3725 if test "x$prefix" = xNONE; then
3726 test_prefix=/usr/local
3727 else
3728 test_prefix=$prefix
3729 fi
3730 if test "x$exec_prefix" = xNONE; then
3731 test_exec_prefix=$test_prefix
3732 else
3733 test_exec_prefix=$exec_prefix
3734 fi
3735
3736
3737 # Check whether --with-sysroot was given.
3738 if test "${with_sysroot+set}" = set; then :
3739 withval=$with_sysroot;
3740 case ${with_sysroot} in
3741 /) ;;
3742 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3743 esac
3744 case ${with_sysroot} in
3745 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3746 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3747 esac
3748
3749 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3750 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3751
3752 case ${TARGET_SYSTEM_ROOT} in
3753 "${test_prefix}"|"${test_prefix}/"*|\
3754 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3755 '${prefix}'|'${prefix}/'*|\
3756 '${exec_prefix}'|'${exec_prefix}/'*)
3757 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3758 TARGET_SYSTEM_ROOT_DEFINE="$t"
3759 ;;
3760 esac
3761
3762 else
3763
3764 TARGET_SYSTEM_ROOT=
3765 TARGET_SYSTEM_ROOT_DEFINE=
3766 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3767
3768 fi
3769
3770
3771
3772
3773
3774 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3775 # passed in by the toplevel make and thus we'd get different behavior
3776 # depending on where we built the sources.
3777 gcc_gxx_include_dir=
3778 # Specify the g++ header file directory
3779
3780 # Check whether --with-gxx-include-dir was given.
3781 if test "${with_gxx_include_dir+set}" = set; then :
3782 withval=$with_gxx_include_dir; case "${withval}" in
3783 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3784 no) ;;
3785 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3786 esac
3787 fi
3788
3789
3790 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3791 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3792 # relative to the sysroot.
3793 gcc_gxx_include_dir_add_sysroot=0
3794
3795 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3796 if test x${gcc_gxx_include_dir} = x; then
3797 if test x${enable_version_specific_runtime_libs} = xyes; then
3798 gcc_gxx_include_dir='${libsubdir}/include/c++'
3799 else
3800 libstdcxx_incdir='include/c++/$(version)'
3801 if test x$host != x$target; then
3802 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3803 fi
3804 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3805 fi
3806 elif test "${with_sysroot+set}" = set; then
3807 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3808 if test "${gcc_gxx_without_sysroot}"; then
3809 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3810 gcc_gxx_include_dir_add_sysroot=1
3811 fi
3812 fi
3813
3814 # Configuration for an alternate set of C++ headers.
3815 gcc_gxx_libcxx_include_dir=
3816 # Specify the alternate g++ header file directory
3817
3818 # Check whether --with-gxx-libcxx-include-dir was given.
3819 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3820 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3821 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3822 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3823 esac
3824 fi
3825
3826
3827 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3828 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3829 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3830 # based on the platform (to be available on platform versions where it is the
3831 # default for the system tools). We also use a default path within the compiler
3832 # install tree.
3833 # Otherwise, we use the path provided and enable the stdlib option.
3834 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3835 # check to see if the latter starts with the former and, upon success, compute
3836 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3837 gcc_gxx_libcxx_include_dir_add_sysroot=0
3838 gcc_enable_stdlib_opt=0
3839 if test x${gcc_gxx_libcxx_include_dir} != x; then
3840 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3841 # set defaults for the dir, but the option is disabled anyway.
3842 gcc_gxx_libcxx_include_dir=
3843 else
3844 gcc_enable_stdlib_opt=1
3845 fi
3846 else
3847 case $target in
3848 *-darwin1[1-9]* | *-darwin2*)
3849 # Default this on for Darwin versions which default to libcxx,
3850 # and embed the path in the compiler install so that we get a
3851 # self-contained toolchain.
3852 gcc_enable_stdlib_opt=1
3853 ;;
3854 *) ;;
3855 esac
3856 fi
3857
3858 cat >>confdefs.h <<_ACEOF
3859 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3860 _ACEOF
3861
3862
3863 # Sysroot behaviour as for gxx-include-dir
3864 if test x${gcc_gxx_libcxx_include_dir} = x; then
3865 # default path,embedded in the compiler tree.
3866 libcxx_incdir='include/c++/v1'
3867 if test x${enable_version_specific_runtime_libs} = xyes; then
3868 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3869 else
3870 if test x$host != x$target; then
3871 libcxx_incdir="$target_alias/$libcxx_incdir"
3872 fi
3873 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3874 fi
3875 elif test "${with_sysroot+set}" = set; then
3876 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3877 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3878 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3879 gcc_gxx_libcxx_include_dir_add_sysroot=1
3880 fi
3881 fi
3882
3883
3884 # Check whether --with-cpp_install_dir was given.
3885 if test "${with_cpp_install_dir+set}" = set; then :
3886 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3887 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3888 elif test x$withval != xno; then
3889 cpp_install_dir=$withval
3890 fi
3891 fi
3892
3893
3894 # We would like to our source tree to be readonly. However when releases or
3895 # pre-releases are generated, the flex/bison generated files as well as the
3896 # various formats of manuals need to be included along with the rest of the
3897 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3898 # just that.
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3901 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3902 # Check whether --enable-generated-files-in-srcdir was given.
3903 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3904 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3905 else
3906 generated_files_in_srcdir=no
3907 fi
3908
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3911 $as_echo "$generated_files_in_srcdir" >&6; }
3912
3913 if test "$generated_files_in_srcdir" = "yes"; then
3914 GENINSRC=''
3915 else
3916 GENINSRC='#'
3917 fi
3918
3919
3920 # -------------------
3921 # Find default linker
3922 # -------------------
3923
3924 # With GNU ld
3925
3926 # Check whether --with-gnu-ld was given.
3927 if test "${with_gnu_ld+set}" = set; then :
3928 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3929 else
3930 gnu_ld_flag=no
3931 fi
3932
3933
3934 case $target in
3935 *darwin*)
3936 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3937 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3938 ;;
3939 *)
3940 ld64_flag=no
3941 dsymutil_flag=no
3942 ;;
3943 esac
3944
3945 # With pre-defined ld
3946
3947 # Check whether --with-ld was given.
3948 if test "${with_ld+set}" = set; then :
3949 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3950 fi
3951
3952 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3953 if test ! -x "$DEFAULT_LINKER"; then
3954 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3955 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3956 gnu_ld_flag=yes
3957 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep 'PROJECT:ld\(64\)*-' > /dev/null; then
3958 ld64_flag=yes
3959 fi
3960
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3963 _ACEOF
3964
3965 fi
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3968 $as_echo_n "checking whether a default linker was specified... " >&6; }
3969 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3970 if test x"$gnu_ld_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3972 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3975 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3976 fi
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982 # With demangler in GNU ld
3983
3984 # Check whether --with-demangler-in-ld was given.
3985 if test "${with_demangler_in_ld+set}" = set; then :
3986 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3987 else
3988 demangler_in_ld=yes
3989 fi
3990
3991
3992 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3993
3994 # Check whether --with-dsymutil was given.
3995 if test "${with_dsymutil+set}" = set; then :
3996 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3997 fi
3998
3999
4000 dsymutil_vers=
4001 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4002 if test ! -x "$DEFAULT_DSYMUTIL"; then
4003 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
4004 else
4005 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
4006 dsymutil_flag=yes
4007 fi
4008 fi
4009
4010 cat >>confdefs.h <<_ACEOF
4011 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
4012 _ACEOF
4013
4014 fi
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4017 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4018 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4020 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026 # ----------------------
4027 # Find default assembler
4028 # ----------------------
4029
4030 # With GNU as
4031
4032 # Check whether --with-gnu-as was given.
4033 if test "${with_gnu_as+set}" = set; then :
4034 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4035 else
4036 gas_flag=no
4037 fi
4038
4039
4040
4041 # Check whether --with-as was given.
4042 if test "${with_as+set}" = set; then :
4043 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4044 fi
4045
4046 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4047 if test ! -x "$DEFAULT_ASSEMBLER"; then
4048 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4049 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4050 gas_flag=yes
4051 fi
4052
4053 cat >>confdefs.h <<_ACEOF
4054 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4055 _ACEOF
4056
4057 fi
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4060 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4061 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4062 if test x"$gas_flag" = x"no"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4064 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4067 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4068 fi
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4072 fi
4073
4074 # ---------------
4075 # Find C compiler
4076 # ---------------
4077
4078 # If a non-executable a.out is present (e.g. created by GNU as above even if
4079 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4080 # file, even when creating an executable, so an execution test fails.
4081 # Remove possible default executable files to avoid this.
4082 #
4083 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4084 # Autoconf includes it.
4085 rm -f a.out a.exe b.out
4086
4087 # Find the native compiler
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_CC"; then
4133 ac_ct_CC=$CC
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170 if test "x$ac_ct_CC" = x; then
4171 CC=""
4172 else
4173 case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4178 esac
4179 CC=$ac_ct_CC
4180 fi
4181 else
4182 CC="$ac_cv_prog_CC"
4183 fi
4184
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 CC=$ac_cv_prog_CC
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224 fi
4225 fi
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237 ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4247 continue
4248 fi
4249 ac_cv_prog_CC="cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4260 shift
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4265 shift
4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267 fi
4268 fi
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 fi
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in cl.exe
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CC=$ac_cv_prog_CC
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323 test -n "$CC" && break
4324 done
4325 fi
4326 if test -z "$CC"; then
4327 ac_ct_CC=$CC
4328 for ac_prog in cl.exe
4329 do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$ac_ct_CC" && break
4368 done
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CC=$ac_ct_CC
4380 fi
4381 fi
4382
4383 fi
4384
4385
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4390
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4393 set X $ac_compile
4394 ac_compiler=$2
4395 for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4404 ac_status=$?
4405 if test -s conftest.err; then
4406 sed '10a\
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4410 fi
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4414 done
4415
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main ()
4421 {
4422
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4431 # of exeext.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439 ac_rmfiles=
4440 for ac_file in $ac_files
4441 do
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445 esac
4446 done
4447 rm -f $ac_rmfiles
4448
4449 if { { ac_try="$ac_link_default"
4450 case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4457 ac_status=$?
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4464 # Autoconf.
4465 for ac_file in $ac_files ''
4466 do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470 ;;
4471 [ab].out )
4472 # We found the default executable, but exeext='' is most
4473 # certainly right.
4474 break;;
4475 *.* )
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4477 then :; else
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 fi
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4484 # actually working.
4485 break;;
4486 * )
4487 break;;
4488 esac
4489 done
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
4492 else
4493 ac_file=''
4494 fi
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4514
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4527 ac_status=$?
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4533 # `rm'.
4534 for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4536 case $ac_file in
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 break;;
4540 * ) break;;
4541 esac
4542 done
4543 else
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4552
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4555 ac_exeext=$EXEEXT
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <stdio.h>
4559 int
4560 main ()
4561 {
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4597 cross_compiling=no
4598 else
4599 if test "$cross_compiling" = maybe; then
4600 cross_compiling=yes
4601 else
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4607 fi
4608 fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4612
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4645 case $ac_file in
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648 break;;
4649 esac
4650 done
4651 else
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4659 fi
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4665 ac_objext=$OBJEXT
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673
4674 int
4675 main ()
4676 {
4677 #ifndef __GNUC__
4678 choke me
4679 #endif
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_compiler_gnu=yes
4687 else
4688 ac_compiler_gnu=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4697 GCC=yes
4698 else
4699 GCC=
4700 fi
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
4725 else
4726 CFLAGS=""
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739
4740 else
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4742 CFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746 int
4747 main ()
4748 {
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_g=yes
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774 else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_cv_prog_cc_c89=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <stdarg.h>
4791 #include <stdio.h>
4792 struct stat;
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4797 char **p;
4798 int i;
4799 {
4800 return p[i];
4801 }
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4803 {
4804 char *s;
4805 va_list v;
4806 va_start (v,p);
4807 s = g (p, va_arg (v,int));
4808 va_end (v);
4809 return s;
4810 }
4811
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4823 #define FOO(x) 'x'
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4830 int argc;
4831 char **argv;
4832 int
4833 main ()
4834 {
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 do
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4849 done
4850 rm -f conftest.$ac_ext
4851 CC=$ac_save_CC
4852
4853 fi
4854 # AC_CACHE_VAL
4855 case "x$ac_cv_prog_cc_c89" in
4856 x)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4859 xno)
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4862 *)
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4866 esac
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868
4869 fi
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 ac_ext=cpp
4878 ac_cpp='$CXXCPP $CPPFLAGS'
4879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4882 if test -z "$CXX"; then
4883 if test -n "$CCC"; then
4884 CXX=$CCC
4885 else
4886 if test -n "$ac_tool_prefix"; then
4887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4888 do
4889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_CXX+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$CXX"; then
4897 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 CXX=$ac_cv_prog_CXX
4917 if test -n "$CXX"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4919 $as_echo "$CXX" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926 test -n "$CXX" && break
4927 done
4928 fi
4929 if test -z "$CXX"; then
4930 ac_ct_CXX=$CXX
4931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4932 do
4933 # Extract the first word of "$ac_prog", so it can be a program name with args.
4934 set dummy $ac_prog; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_CXX"; then
4941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_ac_ct_CXX="$ac_prog"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4961 if test -n "$ac_ct_CXX"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4963 $as_echo "$ac_ct_CXX" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969
4970 test -n "$ac_ct_CXX" && break
4971 done
4972
4973 if test "x$ac_ct_CXX" = x; then
4974 CXX="g++"
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982 CXX=$ac_ct_CXX
4983 fi
4984 fi
4985
4986 fi
4987 fi
4988 # Provide some information about the compiler.
4989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4990 set X $ac_compile
4991 ac_compiler=$2
4992 for ac_option in --version -v -V -qversion; do
4993 { { ac_try="$ac_compiler $ac_option >&5"
4994 case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997 esac
4998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4999 $as_echo "$ac_try_echo"; } >&5
5000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5001 ac_status=$?
5002 if test -s conftest.err; then
5003 sed '10a\
5004 ... rest of stderr output deleted ...
5005 10q' conftest.err >conftest.er1
5006 cat conftest.er1 >&5
5007 fi
5008 rm -f conftest.er1 conftest.err
5009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5010 test $ac_status = 0; }
5011 done
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5014 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5015 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020
5021 int
5022 main ()
5023 {
5024 #ifndef __GNUC__
5025 choke me
5026 #endif
5027
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_cxx_try_compile "$LINENO"; then :
5033 ac_compiler_gnu=yes
5034 else
5035 ac_compiler_gnu=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5042 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5043 if test $ac_compiler_gnu = yes; then
5044 GXX=yes
5045 else
5046 GXX=
5047 fi
5048 ac_test_CXXFLAGS=${CXXFLAGS+set}
5049 ac_save_CXXFLAGS=$CXXFLAGS
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5051 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5052 if ${ac_cv_prog_cxx_g+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5056 ac_cxx_werror_flag=yes
5057 ac_cv_prog_cxx_g=no
5058 CXXFLAGS="-g"
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 ac_cv_prog_cxx_g=yes
5072 else
5073 CXXFLAGS=""
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076
5077 int
5078 main ()
5079 {
5080
5081 ;
5082 return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_cxx_try_compile "$LINENO"; then :
5086
5087 else
5088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5089 CXXFLAGS="-g"
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092
5093 int
5094 main ()
5095 {
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_cxx_try_compile "$LINENO"; then :
5102 ac_cv_prog_cxx_g=yes
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5112 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5113 if test "$ac_test_CXXFLAGS" = set; then
5114 CXXFLAGS=$ac_save_CXXFLAGS
5115 elif test $ac_cv_prog_cxx_g = yes; then
5116 if test "$GXX" = yes; then
5117 CXXFLAGS="-g -O2"
5118 else
5119 CXXFLAGS="-g"
5120 fi
5121 else
5122 if test "$GXX" = yes; then
5123 CXXFLAGS="-O2"
5124 else
5125 CXXFLAGS=
5126 fi
5127 fi
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135
5136
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATBIND+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATBIND"; then
5146 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 GNATBIND=$ac_cv_prog_GNATBIND
5166 if test -n "$GNATBIND"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5168 $as_echo "$GNATBIND" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174
5175 fi
5176 if test -z "$ac_cv_prog_GNATBIND"; then
5177 ac_ct_GNATBIND=$GNATBIND
5178 # Extract the first word of "gnatbind", so it can be a program name with args.
5179 set dummy gnatbind; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATBIND"; then
5186 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5206 if test -n "$ac_ct_GNATBIND"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5208 $as_echo "$ac_ct_GNATBIND" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214 if test "x$ac_ct_GNATBIND" = x; then
5215 GNATBIND="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATBIND=$ac_ct_GNATBIND
5224 fi
5225 else
5226 GNATBIND="$ac_cv_prog_GNATBIND"
5227 fi
5228
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_GNATMAKE+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$GNATMAKE"; then
5238 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 GNATMAKE=$ac_cv_prog_GNATMAKE
5258 if test -n "$GNATMAKE"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5260 $as_echo "$GNATMAKE" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 fi
5268 if test -z "$ac_cv_prog_GNATMAKE"; then
5269 ac_ct_GNATMAKE=$GNATMAKE
5270 # Extract the first word of "gnatmake", so it can be a program name with args.
5271 set dummy gnatmake; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$ac_ct_GNATMAKE"; then
5278 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5298 if test -n "$ac_ct_GNATMAKE"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5300 $as_echo "$ac_ct_GNATMAKE" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306 if test "x$ac_ct_GNATMAKE" = x; then
5307 GNATMAKE="no"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313 ac_tool_warned=yes ;;
5314 esac
5315 GNATMAKE=$ac_ct_GNATMAKE
5316 fi
5317 else
5318 GNATMAKE="$ac_cv_prog_GNATMAKE"
5319 fi
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5322 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5323 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 cat >conftest.adb <<EOF
5327 pragma Warnings (Off);
5328 with System.CRTL;
5329 pragma Warnings (On);
5330 use type System.CRTL.int64;
5331 procedure conftest is begin null; end conftest;
5332 EOF
5333 acx_cv_cc_gcc_supports_ada=no
5334 # There is a bug in old released versions of GCC which causes the
5335 # driver to exit successfully when the appropriate language module
5336 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5337 # Therefore we must check for the error message as well as an
5338 # unsuccessful exit.
5339 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5340 # given a .adb file, but produce no object file. So we must check
5341 # if an object file was really produced to guard against this.
5342 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5343 if test x"$errors" = x && test -f conftest.$ac_objext; then
5344 acx_cv_cc_gcc_supports_ada=yes
5345 fi
5346 rm -f conftest.*
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5349 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5350
5351 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5352 have_gnat=yes
5353 else
5354 have_gnat=no
5355 fi
5356
5357
5358
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_GDC+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$GDC"; then
5368 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 GDC=$ac_cv_prog_GDC
5388 if test -n "$GDC"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5390 $as_echo "$GDC" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 fi
5398 if test -z "$ac_cv_prog_GDC"; then
5399 ac_ct_GDC=$GDC
5400 # Extract the first word of "gdc", so it can be a program name with args.
5401 set dummy gdc; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_GDC"; then
5408 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_GDC="gdc"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5428 if test -n "$ac_ct_GDC"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5430 $as_echo "$ac_ct_GDC" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436 if test "x$ac_ct_GDC" = x; then
5437 GDC="no"
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445 GDC=$ac_ct_GDC
5446 fi
5447 else
5448 GDC="$ac_cv_prog_GDC"
5449 fi
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5452 $as_echo_n "checking whether the D compiler works... " >&6; }
5453 if ${acx_cv_d_compiler_works+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 cat >conftest.d <<EOF
5457 module conftest; int main() { return 0; }
5458 EOF
5459 acx_cv_d_compiler_works=no
5460 if test "x$GDC" != xno; then
5461 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5462 if test x"$errors" = x && test -f conftest.$ac_objext; then
5463 acx_cv_d_compiler_works=yes
5464 fi
5465 rm -f conftest.*
5466 fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5469 $as_echo "$acx_cv_d_compiler_works" >&6; }
5470 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5471 have_gdc=yes
5472 else
5473 have_gdc=no
5474 fi
5475
5476
5477 # Do configure tests with the C++ compiler, since that's what we build with.
5478 ac_ext=cpp
5479 ac_cpp='$CXXCPP $CPPFLAGS'
5480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5483
5484
5485 # Remove all -O flags: for historical reasons, unless bootstrapping we prefer
5486 # optimizations to be activated explicitly by the toplevel.
5487 case "$CC" in
5488 */prev-gcc/xgcc*) ;;
5489 *)
5490 new_CFLAGS=
5491 for flag in $CFLAGS; do
5492 case $flag in
5493 -O*) ;;
5494 *) new_CFLAGS="$new_CFLAGS $flag" ;;
5495 esac
5496 done
5497 CFLAGS=$new_CFLAGS
5498 new_CXXFLAGS=
5499 for flag in $CXXFLAGS; do
5500 case $flag in
5501 -O*) ;;
5502 *) new_CXXFLAGS="$new_CXXFLAGS $flag" ;;
5503 esac
5504 done
5505 CXXFLAGS=$new_CXXFLAGS
5506 ;;
5507 esac
5508
5509
5510
5511
5512 # Determine PICFLAG for target gnatlib.
5513
5514
5515
5516
5517 case "${target}" in
5518 # PIC is the default on some targets or must not be used.
5519 *-*-darwin*)
5520 # For darwin, common symbols are not allowed in MH_DYLIB files
5521 case "${CFLAGS}" in
5522 # If we are using a compiler supporting mdynamic-no-pic
5523 # and the option has been tested as safe to add, then cancel
5524 # it here, since the code generated is incompatible with shared
5525 # libs.
5526 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5527 *) PICFLAG_FOR_TARGET=-fno-common ;;
5528 esac
5529 ;;
5530 alpha*-dec-osf5*)
5531 # PIC is the default.
5532 ;;
5533 hppa*64*-*-hpux*)
5534 # PIC is the default for 64-bit PA HP-UX.
5535 ;;
5536 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5537 ;;
5538 i[34567]86-*-mingw* | x86_64-*-mingw*)
5539 ;;
5540 i[34567]86-*-interix[3-9]*)
5541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5542 # Instead, we relocate shared libraries at runtime.
5543 ;;
5544 i[34567]86-*-nto-qnx*)
5545 # QNX uses GNU C++, but need to define -shared option too, otherwise
5546 # it will coredump.
5547 PICFLAG_FOR_TARGET='-fPIC -shared'
5548 ;;
5549 i[34567]86-pc-msdosdjgpp*)
5550 # DJGPP does not support shared libraries at all.
5551 ;;
5552 ia64*-*-hpux*)
5553 # On IA64 HP-UX, PIC is the default but the pic flag
5554 # sets the default TLS model and affects inlining.
5555 PICFLAG_FOR_TARGET=-fPIC
5556 ;;
5557 loongarch*-*-*)
5558 PICFLAG_FOR_TARGET=-fpic
5559 ;;
5560 mips-sgi-irix6*)
5561 # PIC is the default.
5562 ;;
5563 rs6000-ibm-aix* | powerpc-ibm-aix*)
5564 # All AIX code is PIC.
5565 ;;
5566
5567 # Some targets support both -fPIC and -fpic, but prefer the latter.
5568 # FIXME: Why?
5569 i[34567]86-*-* | x86_64-*-*)
5570 PICFLAG_FOR_TARGET=-fpic
5571 ;;
5572 # FIXME: Override -fPIC default in libgcc only?
5573 sh-*-linux* | sh[2346lbe]*-*-linux*)
5574 PICFLAG_FOR_TARGET=-fpic
5575 ;;
5576 sh*-*-netbsd*)
5577 PICFLAG_FOR_TARGET=-fpic
5578 ;;
5579 # Default to -fPIC unless specified otherwise.
5580 *)
5581 PICFLAG_FOR_TARGET=-fPIC
5582 ;;
5583 esac
5584
5585 # If the user explicitly uses -fpic/-fPIC, keep that.
5586 case "${CFLAGS_FOR_TARGET}" in
5587 *-fpic*)
5588 PICFLAG_FOR_TARGET=-fpic
5589 ;;
5590 *-fPIC*)
5591 PICFLAG_FOR_TARGET=-fPIC
5592 ;;
5593 esac
5594
5595
5596
5597 # -------------------------
5598 # Check C compiler features
5599 # -------------------------
5600
5601
5602 ac_ext=cpp
5603 ac_cpp='$CXXCPP $CPPFLAGS'
5604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5608 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5609 if test -z "$CXXCPP"; then
5610 if ${ac_cv_prog_CXXCPP+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 # Double quotes because CXXCPP needs to be expanded
5614 for CXXCPP in "$CXX -E" "/lib/cpp"
5615 do
5616 ac_preproc_ok=false
5617 for ac_cxx_preproc_warn_flag in '' yes
5618 do
5619 # Use a header file that comes with gcc, so configuring glibc
5620 # with a fresh cross-compiler works.
5621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622 # <limits.h> exists even on freestanding compilers.
5623 # On the NeXT, cc -E runs the code through the compiler's parser,
5624 # not just through cpp. "Syntax error" is here to catch this case.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #ifdef __STDC__
5628 # include <limits.h>
5629 #else
5630 # include <assert.h>
5631 #endif
5632 Syntax error
5633 _ACEOF
5634 if ac_fn_cxx_try_cpp "$LINENO"; then :
5635
5636 else
5637 # Broken: fails on valid input.
5638 continue
5639 fi
5640 rm -f conftest.err conftest.i conftest.$ac_ext
5641
5642 # OK, works on sane cases. Now check whether nonexistent headers
5643 # can be detected and how.
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <ac_nonexistent.h>
5647 _ACEOF
5648 if ac_fn_cxx_try_cpp "$LINENO"; then :
5649 # Broken: success on invalid input.
5650 continue
5651 else
5652 # Passes both tests.
5653 ac_preproc_ok=:
5654 break
5655 fi
5656 rm -f conftest.err conftest.i conftest.$ac_ext
5657
5658 done
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.i conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok; then :
5662 break
5663 fi
5664
5665 done
5666 ac_cv_prog_CXXCPP=$CXXCPP
5667
5668 fi
5669 CXXCPP=$ac_cv_prog_CXXCPP
5670 else
5671 ac_cv_prog_CXXCPP=$CXXCPP
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5674 $as_echo "$CXXCPP" >&6; }
5675 ac_preproc_ok=false
5676 for ac_cxx_preproc_warn_flag in '' yes
5677 do
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #ifdef __STDC__
5687 # include <limits.h>
5688 #else
5689 # include <assert.h>
5690 #endif
5691 Syntax error
5692 _ACEOF
5693 if ac_fn_cxx_try_cpp "$LINENO"; then :
5694
5695 else
5696 # Broken: fails on valid input.
5697 continue
5698 fi
5699 rm -f conftest.err conftest.i conftest.$ac_ext
5700
5701 # OK, works on sane cases. Now check whether nonexistent headers
5702 # can be detected and how.
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #include <ac_nonexistent.h>
5706 _ACEOF
5707 if ac_fn_cxx_try_cpp "$LINENO"; then :
5708 # Broken: success on invalid input.
5709 continue
5710 else
5711 # Passes both tests.
5712 ac_preproc_ok=:
5713 break
5714 fi
5715 rm -f conftest.err conftest.i conftest.$ac_ext
5716
5717 done
5718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5719 rm -f conftest.i conftest.err conftest.$ac_ext
5720 if $ac_preproc_ok; then :
5721
5722 else
5723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5725 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5726 See \`config.log' for more details" "$LINENO" 5; }
5727 fi
5728
5729 ac_ext=cpp
5730 ac_cpp='$CXXCPP $CPPFLAGS'
5731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5737 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5738 if ${ac_cv_path_GREP+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -z "$GREP"; then
5742 ac_path_GREP_found=false
5743 # Loop through the user's path and test for each of PROGNAME-LIST
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_prog in grep ggrep; do
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5752 as_fn_executable_p "$ac_path_GREP" || continue
5753 # Check for GNU ac_path_GREP and select it if it is found.
5754 # Check for GNU $ac_path_GREP
5755 case `"$ac_path_GREP" --version 2>&1` in
5756 *GNU*)
5757 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5758 *)
5759 ac_count=0
5760 $as_echo_n 0123456789 >"conftest.in"
5761 while :
5762 do
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 $as_echo 'GREP' >> "conftest.nl"
5767 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_GREP="$ac_path_GREP"
5773 ac_path_GREP_max=$ac_count
5774 fi
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5777 done
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779 esac
5780
5781 $ac_path_GREP_found && break 3
5782 done
5783 done
5784 done
5785 IFS=$as_save_IFS
5786 if test -z "$ac_cv_path_GREP"; then
5787 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788 fi
5789 else
5790 ac_cv_path_GREP=$GREP
5791 fi
5792
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5795 $as_echo "$ac_cv_path_GREP" >&6; }
5796 GREP="$ac_cv_path_GREP"
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5800 $as_echo_n "checking for egrep... " >&6; }
5801 if ${ac_cv_path_EGREP+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5805 then ac_cv_path_EGREP="$GREP -E"
5806 else
5807 if test -z "$EGREP"; then
5808 ac_path_EGREP_found=false
5809 # Loop through the user's path and test for each of PROGNAME-LIST
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_prog in egrep; do
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5818 as_fn_executable_p "$ac_path_EGREP" || continue
5819 # Check for GNU ac_path_EGREP and select it if it is found.
5820 # Check for GNU $ac_path_EGREP
5821 case `"$ac_path_EGREP" --version 2>&1` in
5822 *GNU*)
5823 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5824 *)
5825 ac_count=0
5826 $as_echo_n 0123456789 >"conftest.in"
5827 while :
5828 do
5829 cat "conftest.in" "conftest.in" >"conftest.tmp"
5830 mv "conftest.tmp" "conftest.in"
5831 cp "conftest.in" "conftest.nl"
5832 $as_echo 'EGREP' >> "conftest.nl"
5833 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5835 as_fn_arith $ac_count + 1 && ac_count=$as_val
5836 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5837 # Best one so far, save it but keep looking for a better one
5838 ac_cv_path_EGREP="$ac_path_EGREP"
5839 ac_path_EGREP_max=$ac_count
5840 fi
5841 # 10*(2^10) chars as input seems more than enough
5842 test $ac_count -gt 10 && break
5843 done
5844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5845 esac
5846
5847 $ac_path_EGREP_found && break 3
5848 done
5849 done
5850 done
5851 IFS=$as_save_IFS
5852 if test -z "$ac_cv_path_EGREP"; then
5853 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5854 fi
5855 else
5856 ac_cv_path_EGREP=$EGREP
5857 fi
5858
5859 fi
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5862 $as_echo "$ac_cv_path_EGREP" >&6; }
5863 EGREP="$ac_cv_path_EGREP"
5864
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5867 $as_echo_n "checking for ANSI C header files... " >&6; }
5868 if ${ac_cv_header_stdc+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <stdlib.h>
5874 #include <stdarg.h>
5875 #include <string.h>
5876 #include <float.h>
5877
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_cxx_try_compile "$LINENO"; then :
5887 ac_cv_header_stdc=yes
5888 else
5889 ac_cv_header_stdc=no
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892
5893 if test $ac_cv_header_stdc = yes; then
5894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 #include <string.h>
5898
5899 _ACEOF
5900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901 $EGREP "memchr" >/dev/null 2>&1; then :
5902
5903 else
5904 ac_cv_header_stdc=no
5905 fi
5906 rm -f conftest*
5907
5908 fi
5909
5910 if test $ac_cv_header_stdc = yes; then
5911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <stdlib.h>
5915
5916 _ACEOF
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "free" >/dev/null 2>&1; then :
5919
5920 else
5921 ac_cv_header_stdc=no
5922 fi
5923 rm -f conftest*
5924
5925 fi
5926
5927 if test $ac_cv_header_stdc = yes; then
5928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5929 if test "$cross_compiling" = yes; then :
5930 :
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 #include <ctype.h>
5935 #include <stdlib.h>
5936 #if ((' ' & 0x0FF) == 0x020)
5937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5939 #else
5940 # define ISLOWER(c) \
5941 (('a' <= (c) && (c) <= 'i') \
5942 || ('j' <= (c) && (c) <= 'r') \
5943 || ('s' <= (c) && (c) <= 'z'))
5944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5945 #endif
5946
5947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5948 int
5949 main ()
5950 {
5951 int i;
5952 for (i = 0; i < 256; i++)
5953 if (XOR (islower (i), ISLOWER (i))
5954 || toupper (i) != TOUPPER (i))
5955 return 2;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_cxx_try_run "$LINENO"; then :
5960
5961 else
5962 ac_cv_header_stdc=no
5963 fi
5964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5965 conftest.$ac_objext conftest.beam conftest.$ac_ext
5966 fi
5967
5968 fi
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5971 $as_echo "$ac_cv_header_stdc" >&6; }
5972 if test $ac_cv_header_stdc = yes; then
5973
5974 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5975
5976 fi
5977
5978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5980 inttypes.h stdint.h unistd.h
5981 do :
5982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5984 "
5985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5986 cat >>confdefs.h <<_ACEOF
5987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991
5992 done
5993
5994
5995
5996 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5997 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5998 MINIX=yes
5999 else
6000 MINIX=
6001 fi
6002
6003
6004 if test "$MINIX" = yes; then
6005
6006 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6007
6008
6009 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6010
6011
6012 $as_echo "#define _MINIX 1" >>confdefs.h
6013
6014 fi
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6018 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6019 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024
6025 # define __EXTENSIONS__ 1
6026 $ac_includes_default
6027 int
6028 main ()
6029 {
6030
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_cxx_try_compile "$LINENO"; then :
6036 ac_cv_safe_to_define___extensions__=yes
6037 else
6038 ac_cv_safe_to_define___extensions__=no
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6043 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6044 test $ac_cv_safe_to_define___extensions__ = yes &&
6045 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6046
6047 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6048
6049 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6050
6051 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6052
6053 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6054
6055
6056
6057 ac_ext=c
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6064 # On Suns, sometimes $CPP names a directory.
6065 if test -n "$CPP" && test -d "$CPP"; then
6066 CPP=
6067 fi
6068 if test -z "$CPP"; then
6069 if ${ac_cv_prog_CPP+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 # Double quotes because CPP needs to be expanded
6073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6074 do
6075 ac_preproc_ok=false
6076 for ac_c_preproc_warn_flag in '' yes
6077 do
6078 # Use a header file that comes with gcc, so configuring glibc
6079 # with a fresh cross-compiler works.
6080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081 # <limits.h> exists even on freestanding compilers.
6082 # On the NeXT, cc -E runs the code through the compiler's parser,
6083 # not just through cpp. "Syntax error" is here to catch this case.
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #ifdef __STDC__
6087 # include <limits.h>
6088 #else
6089 # include <assert.h>
6090 #endif
6091 Syntax error
6092 _ACEOF
6093 if ac_fn_c_try_cpp "$LINENO"; then :
6094
6095 else
6096 # Broken: fails on valid input.
6097 continue
6098 fi
6099 rm -f conftest.err conftest.i conftest.$ac_ext
6100
6101 # OK, works on sane cases. Now check whether nonexistent headers
6102 # can be detected and how.
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if ac_fn_c_try_cpp "$LINENO"; then :
6108 # Broken: success on invalid input.
6109 continue
6110 else
6111 # Passes both tests.
6112 ac_preproc_ok=:
6113 break
6114 fi
6115 rm -f conftest.err conftest.i conftest.$ac_ext
6116
6117 done
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.i conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then :
6121 break
6122 fi
6123
6124 done
6125 ac_cv_prog_CPP=$CPP
6126
6127 fi
6128 CPP=$ac_cv_prog_CPP
6129 else
6130 ac_cv_prog_CPP=$CPP
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6133 $as_echo "$CPP" >&6; }
6134 ac_preproc_ok=false
6135 for ac_c_preproc_warn_flag in '' yes
6136 do
6137 # Use a header file that comes with gcc, so configuring glibc
6138 # with a fresh cross-compiler works.
6139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 # <limits.h> exists even on freestanding compilers.
6141 # On the NeXT, cc -E runs the code through the compiler's parser,
6142 # not just through cpp. "Syntax error" is here to catch this case.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #ifdef __STDC__
6146 # include <limits.h>
6147 #else
6148 # include <assert.h>
6149 #endif
6150 Syntax error
6151 _ACEOF
6152 if ac_fn_c_try_cpp "$LINENO"; then :
6153
6154 else
6155 # Broken: fails on valid input.
6156 continue
6157 fi
6158 rm -f conftest.err conftest.i conftest.$ac_ext
6159
6160 # OK, works on sane cases. Now check whether nonexistent headers
6161 # can be detected and how.
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <ac_nonexistent.h>
6165 _ACEOF
6166 if ac_fn_c_try_cpp "$LINENO"; then :
6167 # Broken: success on invalid input.
6168 continue
6169 else
6170 # Passes both tests.
6171 ac_preproc_ok=:
6172 break
6173 fi
6174 rm -f conftest.err conftest.i conftest.$ac_ext
6175
6176 done
6177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6178 rm -f conftest.i conftest.err conftest.$ac_ext
6179 if $ac_preproc_ok; then :
6180
6181 else
6182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6184 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6185 See \`config.log' for more details" "$LINENO" 5; }
6186 fi
6187
6188 ac_ext=cpp
6189 ac_cpp='$CXXCPP $CPPFLAGS'
6190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6195 $as_echo_n "checking for inline... " >&6; }
6196 if ${ac_cv_c_inline+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 ac_cv_c_inline=no
6200 for ac_kw in inline __inline__ __inline; do
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #ifndef __cplusplus
6204 typedef int foo_t;
6205 static $ac_kw foo_t static_foo () {return 0; }
6206 $ac_kw foo_t foo () {return 0; }
6207 #endif
6208
6209 _ACEOF
6210 if ac_fn_cxx_try_compile "$LINENO"; then :
6211 ac_cv_c_inline=$ac_kw
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 test "$ac_cv_c_inline" != no && break
6215 done
6216
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6219 $as_echo "$ac_cv_c_inline" >&6; }
6220
6221 case $ac_cv_c_inline in
6222 inline | yes) ;;
6223 *)
6224 case $ac_cv_c_inline in
6225 no) ac_val=;;
6226 *) ac_val=$ac_cv_c_inline;;
6227 esac
6228 cat >>confdefs.h <<_ACEOF
6229 #ifndef __cplusplus
6230 #define inline $ac_val
6231 #endif
6232 _ACEOF
6233 ;;
6234 esac
6235
6236
6237 # Check whether --enable-largefile was given.
6238 if test "${enable_largefile+set}" = set; then :
6239 enableval=$enable_largefile;
6240 fi
6241
6242 if test "$enable_largefile" != no; then
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6245 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6246 if ${ac_cv_sys_largefile_CC+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 ac_cv_sys_largefile_CC=no
6250 if test "$GCC" != yes; then
6251 ac_save_CC=$CC
6252 while :; do
6253 # IRIX 6.2 and later do not support large files by default,
6254 # so use the C compiler's -n32 option if that helps.
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <sys/types.h>
6258 /* Check that off_t can represent 2**63 - 1 correctly.
6259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6260 since some C++ compilers masquerading as C compilers
6261 incorrectly reject 9223372036854775807. */
6262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6264 && LARGE_OFF_T % 2147483647 == 1)
6265 ? 1 : -1];
6266 int
6267 main ()
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_cxx_try_compile "$LINENO"; then :
6275 break
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext
6278 CC="$CC -n32"
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6280 ac_cv_sys_largefile_CC=' -n32'; break
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext
6283 break
6284 done
6285 CC=$ac_save_CC
6286 rm -f conftest.$ac_ext
6287 fi
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6290 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6291 if test "$ac_cv_sys_largefile_CC" != no; then
6292 CC=$CC$ac_cv_sys_largefile_CC
6293 fi
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6296 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6297 if ${ac_cv_sys_file_offset_bits+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 while :; do
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 #include <sys/types.h>
6304 /* Check that off_t can represent 2**63 - 1 correctly.
6305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6306 since some C++ compilers masquerading as C compilers
6307 incorrectly reject 9223372036854775807. */
6308 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6310 && LARGE_OFF_T % 2147483647 == 1)
6311 ? 1 : -1];
6312 int
6313 main ()
6314 {
6315
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_cxx_try_compile "$LINENO"; then :
6321 ac_cv_sys_file_offset_bits=no; break
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #define _FILE_OFFSET_BITS 64
6327 #include <sys/types.h>
6328 /* Check that off_t can represent 2**63 - 1 correctly.
6329 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6330 since some C++ compilers masquerading as C compilers
6331 incorrectly reject 9223372036854775807. */
6332 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6334 && LARGE_OFF_T % 2147483647 == 1)
6335 ? 1 : -1];
6336 int
6337 main ()
6338 {
6339
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_cxx_try_compile "$LINENO"; then :
6345 ac_cv_sys_file_offset_bits=64; break
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 ac_cv_sys_file_offset_bits=unknown
6349 break
6350 done
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6353 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6354 case $ac_cv_sys_file_offset_bits in #(
6355 no | unknown) ;;
6356 *)
6357 cat >>confdefs.h <<_ACEOF
6358 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6359 _ACEOF
6360 ;;
6361 esac
6362 rm -rf conftest*
6363 if test $ac_cv_sys_file_offset_bits = unknown; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6365 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6366 if ${ac_cv_sys_large_files+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 while :; do
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 #include <sys/types.h>
6373 /* Check that off_t can represent 2**63 - 1 correctly.
6374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6375 since some C++ compilers masquerading as C compilers
6376 incorrectly reject 9223372036854775807. */
6377 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6379 && LARGE_OFF_T % 2147483647 == 1)
6380 ? 1 : -1];
6381 int
6382 main ()
6383 {
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_cxx_try_compile "$LINENO"; then :
6390 ac_cv_sys_large_files=no; break
6391 fi
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 #define _LARGE_FILES 1
6396 #include <sys/types.h>
6397 /* Check that off_t can represent 2**63 - 1 correctly.
6398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6399 since some C++ compilers masquerading as C compilers
6400 incorrectly reject 9223372036854775807. */
6401 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6403 && LARGE_OFF_T % 2147483647 == 1)
6404 ? 1 : -1];
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_cxx_try_compile "$LINENO"; then :
6414 ac_cv_sys_large_files=1; break
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 ac_cv_sys_large_files=unknown
6418 break
6419 done
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6422 $as_echo "$ac_cv_sys_large_files" >&6; }
6423 case $ac_cv_sys_large_files in #(
6424 no | unknown) ;;
6425 *)
6426 cat >>confdefs.h <<_ACEOF
6427 #define _LARGE_FILES $ac_cv_sys_large_files
6428 _ACEOF
6429 ;;
6430 esac
6431 rm -rf conftest*
6432 fi
6433
6434
6435 fi
6436
6437 # The cast to long int works around a bug in the HP C Compiler
6438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6440 # This bug is HP SR number 8606223364.
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6442 $as_echo_n "checking size of ino_t... " >&6; }
6443 if ${ac_cv_sizeof_ino_t+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6447
6448 else
6449 if test "$ac_cv_type_ino_t" = yes; then
6450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6452 as_fn_error 77 "cannot compute sizeof (ino_t)
6453 See \`config.log' for more details" "$LINENO" 5; }
6454 else
6455 ac_cv_sizeof_ino_t=0
6456 fi
6457 fi
6458
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6461 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6462
6463
6464
6465 cat >>confdefs.h <<_ACEOF
6466 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6467 _ACEOF
6468
6469
6470 # The cast to long int works around a bug in the HP C Compiler
6471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6473 # This bug is HP SR number 8606223364.
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6475 $as_echo_n "checking size of dev_t... " >&6; }
6476 if ${ac_cv_sizeof_dev_t+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6480
6481 else
6482 if test "$ac_cv_type_dev_t" = yes; then
6483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6485 as_fn_error 77 "cannot compute sizeof (dev_t)
6486 See \`config.log' for more details" "$LINENO" 5; }
6487 else
6488 ac_cv_sizeof_dev_t=0
6489 fi
6490 fi
6491
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6494 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6495
6496
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6500 _ACEOF
6501
6502
6503
6504 # Select the right stat being able to handle 64bit inodes, if needed.
6505 if test "$enable_largefile" != no; then
6506 case "$host, $build" in
6507 *-*-aix*,*|*,*-*-aix*)
6508 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6509
6510 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6511
6512 fi;;
6513 esac
6514 fi
6515
6516
6517 # sizeof(char) is 1 by definition.
6518 # The cast to long int works around a bug in the HP C Compiler
6519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6521 # This bug is HP SR number 8606223364.
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6523 $as_echo_n "checking size of void *... " >&6; }
6524 if ${ac_cv_sizeof_void_p+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6528
6529 else
6530 if test "$ac_cv_type_void_p" = yes; then
6531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6533 as_fn_error 77 "cannot compute sizeof (void *)
6534 See \`config.log' for more details" "$LINENO" 5; }
6535 else
6536 ac_cv_sizeof_void_p=0
6537 fi
6538 fi
6539
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6542 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6543
6544
6545
6546 cat >>confdefs.h <<_ACEOF
6547 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6548 _ACEOF
6549
6550
6551 # The cast to long int works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6556 $as_echo_n "checking size of short... " >&6; }
6557 if ${ac_cv_sizeof_short+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6561
6562 else
6563 if test "$ac_cv_type_short" = yes; then
6564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6566 as_fn_error 77 "cannot compute sizeof (short)
6567 See \`config.log' for more details" "$LINENO" 5; }
6568 else
6569 ac_cv_sizeof_short=0
6570 fi
6571 fi
6572
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6575 $as_echo "$ac_cv_sizeof_short" >&6; }
6576
6577
6578
6579 cat >>confdefs.h <<_ACEOF
6580 #define SIZEOF_SHORT $ac_cv_sizeof_short
6581 _ACEOF
6582
6583
6584 # The cast to long int works around a bug in the HP C Compiler
6585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6587 # This bug is HP SR number 8606223364.
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6589 $as_echo_n "checking size of int... " >&6; }
6590 if ${ac_cv_sizeof_int+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6594
6595 else
6596 if test "$ac_cv_type_int" = yes; then
6597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6599 as_fn_error 77 "cannot compute sizeof (int)
6600 See \`config.log' for more details" "$LINENO" 5; }
6601 else
6602 ac_cv_sizeof_int=0
6603 fi
6604 fi
6605
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6608 $as_echo "$ac_cv_sizeof_int" >&6; }
6609
6610
6611
6612 cat >>confdefs.h <<_ACEOF
6613 #define SIZEOF_INT $ac_cv_sizeof_int
6614 _ACEOF
6615
6616
6617 # The cast to long int works around a bug in the HP C Compiler
6618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6620 # This bug is HP SR number 8606223364.
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6622 $as_echo_n "checking size of long... " >&6; }
6623 if ${ac_cv_sizeof_long+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6627
6628 else
6629 if test "$ac_cv_type_long" = yes; then
6630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6632 as_fn_error 77 "cannot compute sizeof (long)
6633 See \`config.log' for more details" "$LINENO" 5; }
6634 else
6635 ac_cv_sizeof_long=0
6636 fi
6637 fi
6638
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6641 $as_echo "$ac_cv_sizeof_long" >&6; }
6642
6643
6644
6645 cat >>confdefs.h <<_ACEOF
6646 #define SIZEOF_LONG $ac_cv_sizeof_long
6647 _ACEOF
6648
6649
6650 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6651 if test "x$ac_cv_type_long_long" = xyes; then :
6652
6653 cat >>confdefs.h <<_ACEOF
6654 #define HAVE_LONG_LONG 1
6655 _ACEOF
6656
6657 # The cast to long int works around a bug in the HP C Compiler
6658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6660 # This bug is HP SR number 8606223364.
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6662 $as_echo_n "checking size of long long... " >&6; }
6663 if ${ac_cv_sizeof_long_long+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6667
6668 else
6669 if test "$ac_cv_type_long_long" = yes; then
6670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6672 as_fn_error 77 "cannot compute sizeof (long long)
6673 See \`config.log' for more details" "$LINENO" 5; }
6674 else
6675 ac_cv_sizeof_long_long=0
6676 fi
6677 fi
6678
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6681 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6682
6683
6684
6685 cat >>confdefs.h <<_ACEOF
6686 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6687 _ACEOF
6688
6689
6690 fi
6691
6692 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6693 case $ac_cv_c_int8_t in #(
6694 no|yes) ;; #(
6695 *)
6696
6697 cat >>confdefs.h <<_ACEOF
6698 #define int8_t $ac_cv_c_int8_t
6699 _ACEOF
6700 ;;
6701 esac
6702
6703 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6704 case $ac_cv_c_int16_t in #(
6705 no|yes) ;; #(
6706 *)
6707
6708 cat >>confdefs.h <<_ACEOF
6709 #define int16_t $ac_cv_c_int16_t
6710 _ACEOF
6711 ;;
6712 esac
6713
6714 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6715 case $ac_cv_c_int32_t in #(
6716 no|yes) ;; #(
6717 *)
6718
6719 cat >>confdefs.h <<_ACEOF
6720 #define int32_t $ac_cv_c_int32_t
6721 _ACEOF
6722 ;;
6723 esac
6724
6725 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6726 case $ac_cv_c_int64_t in #(
6727 no|yes) ;; #(
6728 *)
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define int64_t $ac_cv_c_int64_t
6732 _ACEOF
6733 ;;
6734 esac
6735
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6738 $as_echo_n "checking for unsigned long long int... " >&6; }
6739 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 ac_cv_type_unsigned_long_long_int=yes
6743 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746
6747 /* For now, do not test the preprocessor; as of 2007 there are too many
6748 implementations with broken preprocessors. Perhaps this can
6749 be revisited in 2012. In the meantime, code should not expect
6750 #if to work with literals wider than 32 bits. */
6751 /* Test literals. */
6752 long long int ll = 9223372036854775807ll;
6753 long long int nll = -9223372036854775807LL;
6754 unsigned long long int ull = 18446744073709551615ULL;
6755 /* Test constant expressions. */
6756 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6757 ? 1 : -1)];
6758 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6759 ? 1 : -1)];
6760 int i = 63;
6761 int
6762 main ()
6763 {
6764 /* Test availability of runtime routines for shift and division. */
6765 long long int llmax = 9223372036854775807ll;
6766 unsigned long long int ullmax = 18446744073709551615ull;
6767 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6768 | (llmax / ll) | (llmax % ll)
6769 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6770 | (ullmax / ull) | (ullmax % ull));
6771 ;
6772 return 0;
6773 }
6774
6775 _ACEOF
6776 if ac_fn_cxx_try_link "$LINENO"; then :
6777
6778 else
6779 ac_cv_type_unsigned_long_long_int=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6783 fi
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6786 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6787 if test $ac_cv_type_unsigned_long_long_int = yes; then
6788
6789 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6790
6791 fi
6792
6793
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6796 $as_echo_n "checking for long long int... " >&6; }
6797 if ${ac_cv_type_long_long_int+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_cv_type_long_long_int=yes
6801 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6802 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6803 if test $ac_cv_type_long_long_int = yes; then
6804 if test "$cross_compiling" = yes; then :
6805 :
6806 else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <limits.h>
6810 #ifndef LLONG_MAX
6811 # define HALF \
6812 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6813 # define LLONG_MAX (HALF - 1 + HALF)
6814 #endif
6815 int
6816 main ()
6817 {
6818 long long int n = 1;
6819 int i;
6820 for (i = 0; ; i++)
6821 {
6822 long long int m = n << i;
6823 if (m >> i != n)
6824 return 1;
6825 if (LLONG_MAX / 2 < m)
6826 break;
6827 }
6828 return 0;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_cxx_try_run "$LINENO"; then :
6834
6835 else
6836 ac_cv_type_long_long_int=no
6837 fi
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6839 conftest.$ac_objext conftest.beam conftest.$ac_ext
6840 fi
6841
6842 fi
6843 fi
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6846 $as_echo "$ac_cv_type_long_long_int" >&6; }
6847 if test $ac_cv_type_long_long_int = yes; then
6848
6849 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6850
6851 fi
6852
6853
6854
6855 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6856 if test "x$ac_cv_type_intmax_t" = xyes; then :
6857
6858 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6859
6860 else
6861 test $ac_cv_type_long_long_int = yes \
6862 && ac_type='long long int' \
6863 || ac_type='long int'
6864
6865 cat >>confdefs.h <<_ACEOF
6866 #define intmax_t $ac_type
6867 _ACEOF
6868
6869 fi
6870
6871
6872
6873 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6874 if test "x$ac_cv_type_intptr_t" = xyes; then :
6875
6876 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6877
6878 else
6879 for ac_type in 'int' 'long int' 'long long int'; do
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 int
6884 main ()
6885 {
6886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6887 test_array [0] = 0;
6888 return test_array [0];
6889
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 if ac_fn_cxx_try_compile "$LINENO"; then :
6895
6896 cat >>confdefs.h <<_ACEOF
6897 #define intptr_t $ac_type
6898 _ACEOF
6899
6900 ac_type=
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 test -z "$ac_type" && break
6904 done
6905 fi
6906
6907
6908 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6909 case $ac_cv_c_uint8_t in #(
6910 no|yes) ;; #(
6911 *)
6912
6913 $as_echo "#define _UINT8_T 1" >>confdefs.h
6914
6915
6916 cat >>confdefs.h <<_ACEOF
6917 #define uint8_t $ac_cv_c_uint8_t
6918 _ACEOF
6919 ;;
6920 esac
6921
6922 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6923 case $ac_cv_c_uint16_t in #(
6924 no|yes) ;; #(
6925 *)
6926
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define uint16_t $ac_cv_c_uint16_t
6930 _ACEOF
6931 ;;
6932 esac
6933
6934 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6935 case $ac_cv_c_uint32_t in #(
6936 no|yes) ;; #(
6937 *)
6938
6939 $as_echo "#define _UINT32_T 1" >>confdefs.h
6940
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define uint32_t $ac_cv_c_uint32_t
6944 _ACEOF
6945 ;;
6946 esac
6947
6948 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6949 case $ac_cv_c_uint64_t in #(
6950 no|yes) ;; #(
6951 *)
6952
6953 $as_echo "#define _UINT64_T 1" >>confdefs.h
6954
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define uint64_t $ac_cv_c_uint64_t
6958 _ACEOF
6959 ;;
6960 esac
6961
6962
6963
6964 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6965 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6966
6967 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6968
6969 else
6970 test $ac_cv_type_unsigned_long_long_int = yes \
6971 && ac_type='unsigned long long int' \
6972 || ac_type='unsigned long int'
6973
6974 cat >>confdefs.h <<_ACEOF
6975 #define uintmax_t $ac_type
6976 _ACEOF
6977
6978 fi
6979
6980
6981
6982 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6983 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6984
6985 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6986
6987 else
6988 for ac_type in 'unsigned int' 'unsigned long int' \
6989 'unsigned long long int'; do
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 $ac_includes_default
6993 int
6994 main ()
6995 {
6996 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6997 test_array [0] = 0;
6998 return test_array [0];
6999
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 if ac_fn_cxx_try_compile "$LINENO"; then :
7005
7006 cat >>confdefs.h <<_ACEOF
7007 #define uintptr_t $ac_type
7008 _ACEOF
7009
7010 ac_type=
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 test -z "$ac_type" && break
7014 done
7015 fi
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7031 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7032 fi
7033
7034 # check what underlying integer type int64_t uses
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7036 $as_echo_n "checking for int64_t underlying type... " >&6; }
7037 if ${ac_cv_int64_t_type+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043
7044 #ifdef HAVE_STDINT_H
7045 #include <stdint.h>
7046 #endif
7047 template <typename T> struct X { };
7048 template <>
7049 struct X<long> { typedef long t; };
7050
7051 int
7052 main ()
7053 {
7054 X<int64_t>::t x;
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_cxx_try_compile "$LINENO"; then :
7060 ac_cv_int64_t_type=long
7061 else
7062 ac_cv_int64_t_type="long long"
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7067 $as_echo "$ac_cv_int64_t_type" >&6; }
7068 if test "$ac_cv_int64_t_type" = "long"; then
7069
7070 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7071
7072 else
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075
7076 #ifdef HAVE_STDINT_H
7077 #include <stdint.h>
7078 #endif
7079 template <typename T> struct X { };
7080 template <>
7081 struct X<long long> { typedef long long t; };
7082
7083 int
7084 main ()
7085 {
7086 X<int64_t>::t x;
7087 ;
7088 return 0;
7089 }
7090 _ACEOF
7091 if ac_fn_cxx_try_compile "$LINENO"; then :
7092
7093 else
7094 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7100 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7101 if ${ac_cv_std_swap_in_utility+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107
7108 #include <utility>
7109
7110 int
7111 main ()
7112 {
7113 int a, b; std::swap(a,b);
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_cxx_try_compile "$LINENO"; then :
7119 ac_cv_std_swap_in_utility=yes
7120 else
7121 ac_cv_std_swap_in_utility=no
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7126 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7127 if test $ac_cv_std_swap_in_utility = yes; then
7128
7129 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7130
7131 fi
7132
7133 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7134 # If the host compiler is affected by the bug, and we build with optimization
7135 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7136 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7137 # Since there is no reliable feature check for the presence of this bug,
7138 # we simply use a GCC version number check. (This should never trigger for
7139 # stages 2 or 3 of a native bootstrap.)
7140 aliasing_flags=
7141 if test "$GCC" = yes; then
7142 saved_CXXFLAGS="$CXXFLAGS"
7143
7144 # The following test compilation will succeed if and only if $CXX accepts
7145 # -fno-strict-aliasing *and* is older than GCC 4.3.
7146 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7148 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151
7152 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7153 #error compiler not affected by placement new aliasing bug
7154 #endif
7155
7156 _ACEOF
7157 if ac_fn_cxx_try_compile "$LINENO"; then :
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7159 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165
7166 CXXFLAGS="$saved_CXXFLAGS"
7167 fi
7168
7169
7170
7171
7172 # ---------------------
7173 # Warnings and checking
7174 # ---------------------
7175
7176 # Check $CC warning features (if it's GCC).
7177 # We want to use -pedantic, but we don't want warnings about
7178 # * 'long long'
7179 # * variadic macros
7180 # * overlong strings
7181 # So, we only use -pedantic if we can disable those warnings.
7182
7183 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7184 # Check whether --enable-build-format-warnings was given.
7185 if test "${enable_build_format_warnings+set}" = set; then :
7186 enableval=$enable_build_format_warnings;
7187 else
7188 enable_build_format_warnings=yes
7189 fi
7190
7191 if test $enable_build_format_warnings = no; then :
7192 wf_opt=-Wno-format
7193 else
7194 wf_opt=
7195 fi
7196 ac_ext=cpp
7197 ac_cpp='$CXXCPP $CPPFLAGS'
7198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7201
7202 loose_warn=
7203 save_CXXFLAGS="$CXXFLAGS"
7204 for real_option in -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7205 # Do the check with the no- prefix removed since gcc silently
7206 # accepts any -Wno-* option on purpose
7207 case $real_option in
7208 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7209 *) option=$real_option ;;
7210 esac
7211 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7214 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7215 if eval \${$as_acx_Woption+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 CXXFLAGS="$option"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221
7222 int
7223 main ()
7224 {
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_cxx_try_compile "$LINENO"; then :
7231 eval "$as_acx_Woption=yes"
7232 else
7233 eval "$as_acx_Woption=no"
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236
7237 fi
7238 eval ac_res=\$$as_acx_Woption
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7240 $as_echo "$ac_res" >&6; }
7241 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7242 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7243 fi
7244 done
7245 CXXFLAGS="$save_CXXFLAGS"
7246 ac_ext=cpp
7247 ac_cpp='$CXXCPP $CPPFLAGS'
7248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7251
7252
7253
7254 ac_ext=c
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
7260 c_loose_warn=
7261 save_CFLAGS="$CFLAGS"
7262 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7263 # Do the check with the no- prefix removed since gcc silently
7264 # accepts any -Wno-* option on purpose
7265 case $real_option in
7266 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7267 *) option=$real_option ;;
7268 esac
7269 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7272 $as_echo_n "checking whether $CC supports $option... " >&6; }
7273 if eval \${$as_acx_Woption+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 CFLAGS="$option"
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279
7280 int
7281 main ()
7282 {
7283
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 eval "$as_acx_Woption=yes"
7290 else
7291 eval "$as_acx_Woption=no"
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294
7295 fi
7296 eval ac_res=\$$as_acx_Woption
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7298 $as_echo "$ac_res" >&6; }
7299 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7300 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7301 fi
7302 done
7303 CFLAGS="$save_CFLAGS"
7304 ac_ext=cpp
7305 ac_cpp='$CXXCPP $CPPFLAGS'
7306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7309
7310
7311 ac_ext=cpp
7312 ac_cpp='$CXXCPP $CPPFLAGS'
7313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7316
7317 strict_warn=
7318 save_CXXFLAGS="$CXXFLAGS"
7319 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7320 # Do the check with the no- prefix removed since gcc silently
7321 # accepts any -Wno-* option on purpose
7322 case $real_option in
7323 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7324 *) option=$real_option ;;
7325 esac
7326 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7329 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7330 if eval \${$as_acx_Woption+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 CXXFLAGS="$option"
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336
7337 int
7338 main ()
7339 {
7340
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_cxx_try_compile "$LINENO"; then :
7346 eval "$as_acx_Woption=yes"
7347 else
7348 eval "$as_acx_Woption=no"
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351
7352 fi
7353 eval ac_res=\$$as_acx_Woption
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7355 $as_echo "$ac_res" >&6; }
7356 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7357 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7358 fi
7359 done
7360 CXXFLAGS="$save_CXXFLAGS"
7361 ac_ext=cpp
7362 ac_cpp='$CXXCPP $CPPFLAGS'
7363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7366
7367
7368 ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374 c_strict_warn=
7375 save_CFLAGS="$CFLAGS"
7376 for real_option in -Wold-style-definition -Wc++-compat; do
7377 # Do the check with the no- prefix removed since gcc silently
7378 # accepts any -Wno-* option on purpose
7379 case $real_option in
7380 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7381 *) option=$real_option ;;
7382 esac
7383 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7386 $as_echo_n "checking whether $CC supports $option... " >&6; }
7387 if eval \${$as_acx_Woption+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 CFLAGS="$option"
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393
7394 int
7395 main ()
7396 {
7397
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"; then :
7403 eval "$as_acx_Woption=yes"
7404 else
7405 eval "$as_acx_Woption=no"
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408
7409 fi
7410 eval ac_res=\$$as_acx_Woption
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7412 $as_echo "$ac_res" >&6; }
7413 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7414 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7415 fi
7416 done
7417 CFLAGS="$save_CFLAGS"
7418 ac_ext=cpp
7419 ac_cpp='$CXXCPP $CPPFLAGS'
7420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7423
7424
7425 ac_ext=cpp
7426 ac_cpp='$CXXCPP $CPPFLAGS'
7427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7430
7431 # Do the check with the no- prefix removed from the warning options
7432 # since gcc silently accepts any -Wno-* option on purpose
7433 if test "$GXX" = yes; then :
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7435 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7436 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 save_CXXFLAGS="$CXXFLAGS"
7440 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443
7444 int
7445 main ()
7446 {
7447
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_cxx_try_compile "$LINENO"; then :
7453 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7454 else
7455 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 CXXFLAGS="$save_CXXFLAGS"
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7461 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7462 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7463 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7464 fi
7465
7466 fi
7467 ac_ext=cpp
7468 ac_cpp='$CXXCPP $CPPFLAGS'
7469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7472
7473
7474 ac_ext=cpp
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7479
7480 # Check whether --enable-werror-always was given.
7481 if test "${enable_werror_always+set}" = set; then :
7482 enableval=$enable_werror_always;
7483 else
7484 enable_werror_always=no
7485 fi
7486
7487 if test $enable_werror_always = yes; then :
7488 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7489 fi
7490
7491 ac_ext=cpp
7492 ac_cpp='$CXXCPP $CPPFLAGS'
7493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7496
7497
7498
7499 # The above macros do nothing if the compiler is not GCC. However, the
7500 # Makefile has more goo to add other flags, so these variables are used
7501 # to enable warnings only for GCC.
7502 warn_cflags=
7503 warn_cxxflags=
7504 if test "x$GCC" = "xyes"; then
7505 warn_cflags='$(GCC_WARN_CFLAGS)'
7506 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7507 fi
7508
7509
7510
7511 # Disable exceptions and RTTI if building with g++
7512 ac_ext=c
7513 ac_cpp='$CPP $CPPFLAGS'
7514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7517
7518 noexception_flags=
7519 save_CFLAGS="$CFLAGS"
7520 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7521 # Do the check with the no- prefix removed since gcc silently
7522 # accepts any -Wno-* option on purpose
7523 case $real_option in
7524 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7525 *) option=$real_option ;;
7526 esac
7527 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7530 $as_echo_n "checking whether $CC supports $option... " >&6; }
7531 if eval \${$as_acx_Woption+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 CFLAGS="$option"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537
7538 int
7539 main ()
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547 eval "$as_acx_Woption=yes"
7548 else
7549 eval "$as_acx_Woption=no"
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552
7553 fi
7554 eval ac_res=\$$as_acx_Woption
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7556 $as_echo "$ac_res" >&6; }
7557 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7558 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7559 fi
7560 done
7561 CFLAGS="$save_CFLAGS"
7562 ac_ext=cpp
7563 ac_cpp='$CXXCPP $CPPFLAGS'
7564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7567
7568
7569
7570 # Enable expensive internal checks
7571 is_release=
7572 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7573 is_release=yes
7574 fi
7575
7576 # Check whether --enable-checking was given.
7577 if test "${enable_checking+set}" = set; then :
7578 enableval=$enable_checking; ac_checking_flags="${enableval}"
7579 else
7580
7581 # Determine the default checks.
7582 if test x$is_release = x ; then
7583 ac_checking_flags=yes,extra
7584 else
7585 ac_checking_flags=release
7586 fi
7587 fi
7588
7589 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7590 for check in release $ac_checking_flags
7591 do
7592 case $check in
7593 # these set all the flags to specific states
7594 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7595 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7596 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7597 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7598 ac_tree_checking=1 ; ac_valgrind_checking= ;
7599 ac_types_checking=1 ;;
7600 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7601 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7602 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7603 ac_rtlflag_checking= ; ac_runtime_checking= ;
7604 ac_tree_checking= ; ac_valgrind_checking= ;
7605 ac_types_checking= ;;
7606 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7607 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7608 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7609 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7610 ac_tree_checking=1 ; ac_valgrind_checking= ;
7611 ac_types_checking=1 ;;
7612 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7613 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7614 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7615 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7616 ac_tree_checking= ; ac_valgrind_checking= ;
7617 ac_types_checking= ;;
7618 # these enable particular checks
7619 assert) ac_assert_checking=1 ;;
7620 df) ac_df_checking=1 ;;
7621 extra) ac_extra_checking=1 ;;
7622 fold) ac_fold_checking=1 ;;
7623 gc) ac_gc_checking=1 ;;
7624 gcac) ac_gc_always_collect=1 ;;
7625 gimple) ac_gimple_checking=1 ;;
7626 misc) ac_checking=1 ;;
7627 rtl) ac_rtl_checking=1 ;;
7628 rtlflag) ac_rtlflag_checking=1 ;;
7629 runtime) ac_runtime_checking=1 ;;
7630 tree) ac_tree_checking=1 ;;
7631 types) ac_types_checking=1 ;;
7632 valgrind) ac_valgrind_checking=1 ;;
7633 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7634 esac
7635 done
7636 IFS="$ac_save_IFS"
7637
7638 if test x$ac_checking != x ; then
7639
7640 $as_echo "#define CHECKING_P 1" >>confdefs.h
7641
7642 else
7643 $as_echo "#define CHECKING_P 0" >>confdefs.h
7644
7645 fi
7646 if test x$ac_extra_checking != x ; then
7647
7648 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7649
7650 else
7651 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7652
7653 fi
7654 if test x$ac_df_checking != x ; then
7655
7656 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7657
7658 fi
7659 if test x$ac_assert_checking != x ; then
7660
7661 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7662
7663 fi
7664 if test x$ac_gimple_checking != x ; then
7665
7666 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7667
7668 fi
7669
7670 if test x$ac_runtime_checking != x ; then
7671
7672 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7673
7674 fi
7675 if test x$ac_tree_checking != x ; then
7676
7677 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7678
7679 TREECHECKING=yes
7680 fi
7681 if test x$ac_types_checking != x ; then
7682
7683 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7684
7685 fi
7686
7687 if test x$ac_rtl_checking != x ; then
7688
7689 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7690
7691 fi
7692 if test x$ac_rtlflag_checking != x ; then
7693
7694 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7695
7696 fi
7697 if test x$ac_gc_checking != x ; then
7698
7699 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7700
7701 fi
7702 if test x$ac_gc_always_collect != x ; then
7703
7704 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7705
7706 fi
7707 if test x$ac_fold_checking != x ; then
7708
7709 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7710
7711 fi
7712 valgrind_path_defines=
7713 valgrind_command=
7714 if test x$ac_valgrind_checking != x ; then
7715
7716 # Prepare PATH_SEPARATOR.
7717 # The user is always right.
7718 if test "${PATH_SEPARATOR+set}" != set; then
7719 echo "#! /bin/sh" >conf$$.sh
7720 echo "exit 0" >>conf$$.sh
7721 chmod +x conf$$.sh
7722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7723 PATH_SEPARATOR=';'
7724 else
7725 PATH_SEPARATOR=:
7726 fi
7727 rm -f conf$$.sh
7728 fi
7729
7730 # Find out how to test for executable files. Don't use a zero-byte file,
7731 # as systems may use methods other than mode bits to determine executability.
7732 cat >conf$$.file <<_ASEOF
7733 #! /bin/sh
7734 exit 0
7735 _ASEOF
7736 chmod +x conf$$.file
7737 if test -x conf$$.file >/dev/null 2>&1; then
7738 ac_executable_p="test -x"
7739 else
7740 ac_executable_p="test -f"
7741 fi
7742 rm -f conf$$.file
7743
7744 # Extract the first word of "valgrind", so it can be a program name with args.
7745 set dummy valgrind; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_path_valgrind_path+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 case "$valgrind_path" in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7757 for ac_dir in $PATH; do
7758 IFS="$ac_save_IFS"
7759 test -z "$ac_dir" && ac_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7762 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7763 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7764 break 2
7765 fi
7766 fi
7767 done
7768 done
7769 IFS="$ac_save_IFS"
7770 ;;
7771 esac
7772 fi
7773 valgrind_path="$ac_cv_path_valgrind_path"
7774 if test -n "$valgrind_path"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7776 $as_echo "$valgrind_path" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782 if test "x$valgrind_path" = "x"; then
7783 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7784 fi
7785 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7786 valgrind_command="$valgrind_path -q"
7787
7788 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7789
7790 fi
7791
7792
7793
7794 # Enable code coverage collection
7795 # Check whether --enable-coverage was given.
7796 if test "${enable_coverage+set}" = set; then :
7797 enableval=$enable_coverage; case "${enableval}" in
7798 yes|noopt)
7799 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7800 ;;
7801 opt)
7802 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7803 ;;
7804 no)
7805 # a.k.a. --disable-coverage
7806 coverage_flags=""
7807 ;;
7808 *)
7809 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7810 ;;
7811 esac
7812 else
7813 coverage_flags=""
7814 fi
7815
7816
7817
7818 # Check whether --enable-gather-detailed-mem-stats was given.
7819 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7820 enableval=$enable_gather_detailed_mem_stats;
7821 else
7822 enable_gather_detailed_mem_stats=no
7823 fi
7824
7825 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define GATHER_STATISTICS $gather_stats
7829 _ACEOF
7830
7831
7832 # Check whether --enable-valgrind-annotations was given.
7833 if test "${enable_valgrind_annotations+set}" = set; then :
7834 enableval=$enable_valgrind_annotations;
7835 else
7836 enable_valgrind_annotations=no
7837 fi
7838
7839 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7840 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7841
7842 fi
7843
7844
7845 if test x$enable_valgrind_annotations != xno \
7846 || test x$ac_valgrind_checking != x; then
7847 if test $ac_cv_header_valgrind_memcheck_h = no; then
7848 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7849 fi
7850
7851 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7852
7853 fi
7854
7855 # -------------------------------
7856 # Miscenalleous configure options
7857 # -------------------------------
7858
7859 # Determine whether or not multilibs are enabled.
7860 # Check whether --enable-multilib was given.
7861 if test "${enable_multilib+set}" = set; then :
7862 enableval=$enable_multilib;
7863 else
7864 enable_multilib=yes
7865 fi
7866
7867
7868
7869 # Determine whether or not -Os multilibs are enabled.
7870 # Check whether --enable-multilib-space was given.
7871 if test "${enable_multilib_space+set}" = set; then :
7872 enableval=$enable_multilib_space; case "$enableval" in
7873 yes|no|except) ;;
7874 *) as_fn_error $? "bad value $enableval for multilib-space option" "$LINENO" 5 ;;
7875 esac
7876 else
7877 enable_multilib_space=no
7878 fi
7879
7880 if test x$enable_multilib_space != xno; then
7881
7882 $as_echo "#define ENABLE_MULTILIB_SPACE 1" >>confdefs.h
7883
7884 fi
7885
7886 # Determine whether or not multiarch is enabled.
7887 # Check whether --enable-multiarch was given.
7888 if test "${enable_multiarch+set}" = set; then :
7889 enableval=$enable_multiarch; case "${enableval}" in
7890 yes|no|auto) enable_multiarch=$enableval;;
7891 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7892 esac
7893 else
7894 enable_multiarch=auto
7895 fi
7896
7897 if test x${enable_multiarch} = xauto; then
7898 if test x${with_native_system_header_dir} != x; then
7899 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7900 enable_multiarch=no
7901 fi
7902 if test x$host != x$target && test "x$with_sysroot" = x; then
7903 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7904 enable_multiarch=no
7905 fi
7906 fi
7907 if test x${enable_multiarch} = xyes; then
7908
7909 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7913 $as_echo_n "checking for multiarch configuration... " >&6; }
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7916 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7917
7918 # needed for setting the multiarch name for soft-float/hard-float ABIs
7919
7920
7921
7922 # default stack clash protection guard size as power of twos in bytes.
7923 # Please keep these in sync with params.def.
7924 stk_clash_min=12
7925 stk_clash_max=30
7926
7927 # Keep the default value when the option is not used to 0, this allows us to
7928 # distinguish between the cases where the user specifially set a value via
7929 # configure and when the normal default value is used.
7930
7931 # Check whether --with-stack-clash-protection-guard-size was given.
7932 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7933 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7934 else
7935 DEFAULT_STK_CLASH_GUARD_SIZE=0
7936 fi
7937
7938 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7939 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7940 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7941 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
7942 fi
7943
7944
7945 cat >>confdefs.h <<_ACEOF
7946 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7947 _ACEOF
7948
7949
7950 # Specify the number of splits of match.pd to generate.
7951
7952 # Check whether --with-matchpd-partitions was given.
7953 if test "${with_matchpd_partitions+set}" = set; then :
7954 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7955 else
7956 DEFAULT_MATCHPD_PARTITIONS=10
7957 fi
7958
7959 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7960 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7961 fi
7962
7963
7964
7965 # Specify the number of splits of insn-emit.cc and insn-recog.cc to generate.
7966
7967 # Check whether --with-insnemit-partitions was given.
7968 if test "${with_insnemit_partitions+set}" = set; then :
7969 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7970 else
7971 DEFAULT_INSNEMIT_PARTITIONS=10
7972 fi
7973
7974 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7975 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7976 fi
7977
7978
7979
7980 # Enable __cxa_atexit for C++.
7981 # Check whether --enable-__cxa_atexit was given.
7982 if test "${enable___cxa_atexit+set}" = set; then :
7983 enableval=$enable___cxa_atexit;
7984 fi
7985
7986
7987 # Enable C extension for decimal float if target supports it.
7988
7989 # Check whether --enable-decimal-float was given.
7990 if test "${enable_decimal_float+set}" = set; then :
7991 enableval=$enable_decimal_float;
7992 case $enable_decimal_float in
7993 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7994 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7995 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7996 esac
7997
7998 else
7999
8000 case $target in
8001 aarch64* | \
8002 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
8003 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
8004 i?86*-*-mingw* | x86_64*-*-mingw* | \
8005 i?86*-*-cygwin* | x86_64*-*-cygwin*)
8006 enable_decimal_float=yes
8007 ;;
8008 *)
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8010 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8011 enable_decimal_float=no
8012 ;;
8013 esac
8014
8015 fi
8016
8017
8018 # x86's use BID format instead of DPD
8019 case x$enable_decimal_float in
8020 xyes)
8021 case $target in
8022 aarch64* | i?86*-*-* | x86_64*-*-*)
8023 enable_decimal_float=bid
8024 ;;
8025 *)
8026 enable_decimal_float=dpd
8027 ;;
8028 esac
8029 default_decimal_float=$enable_decimal_float
8030 ;;
8031 xno)
8032 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8033 # dependency on libdecnumber.
8034 default_decimal_float=dpd
8035 ;;
8036 esac
8037
8038
8039
8040
8041 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8042
8043 cat >>confdefs.h <<_ACEOF
8044 #define ENABLE_DECIMAL_FLOAT $dfp
8045 _ACEOF
8046
8047
8048 # Use default_decimal_float for dependency.
8049 enable_decimal_float=$default_decimal_float
8050
8051 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8052
8053 cat >>confdefs.h <<_ACEOF
8054 #define ENABLE_DECIMAL_BID_FORMAT $bid
8055 _ACEOF
8056
8057
8058 # Enable C extension for fixed-point arithmetic.
8059 # Check whether --enable-fixed-point was given.
8060 if test "${enable_fixed_point+set}" = set; then :
8061 enableval=$enable_fixed_point;
8062 else
8063
8064 case $target in
8065 arm*)
8066 enable_fixed_point=yes
8067 ;;
8068
8069 mips*-*-*)
8070 enable_fixed_point=yes
8071 ;;
8072 loongarch*-*-*)
8073 enable_fixed_point=yes
8074 ;;
8075 *)
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8077 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8078 enable_fixed_point=no
8079 ;;
8080 esac
8081
8082 fi
8083
8084
8085
8086 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8087
8088 cat >>confdefs.h <<_ACEOF
8089 #define ENABLE_FIXED_POINT $fixedpoint
8090 _ACEOF
8091
8092
8093 # Enable threads
8094 # Pass with no value to take the default
8095 # Pass with a value to specify a thread package
8096 # Check whether --enable-threads was given.
8097 if test "${enable_threads+set}" = set; then :
8098 enableval=$enable_threads;
8099 else
8100 enable_threads=''
8101 fi
8102
8103
8104 # Check whether --enable-tls was given.
8105 if test "${enable_tls+set}" = set; then :
8106 enableval=$enable_tls;
8107 case $enable_tls in
8108 yes | no) ;;
8109 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8110 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8111 esac
8112
8113 else
8114 enable_tls=''
8115 fi
8116
8117
8118 # Check whether --enable-vtable-verify was given.
8119 if test "${enable_vtable_verify+set}" = set; then :
8120 enableval=$enable_vtable_verify;
8121 else
8122 enable_vtable_verify=no
8123 fi
8124
8125 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8126
8127 cat >>confdefs.h <<_ACEOF
8128 #define ENABLE_VTABLE_VERIFY $vtable_verify
8129 _ACEOF
8130
8131
8132 # Check whether --enable-analyzer was given.
8133 if test "${enable_analyzer+set}" = set; then :
8134 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8135 analyzer=0
8136 else
8137 analyzer=1
8138 fi
8139 else
8140 analyzer=1
8141 fi
8142
8143
8144 cat >>confdefs.h <<_ACEOF
8145 #define ENABLE_ANALYZER $analyzer
8146 _ACEOF
8147
8148
8149 # Check whether --enable-objc-gc was given.
8150 if test "${enable_objc_gc+set}" = set; then :
8151 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8152 objc_boehm_gc=''
8153 else
8154 objc_boehm_gc=1
8155 fi
8156 else
8157 objc_boehm_gc=''
8158 fi
8159
8160
8161
8162 # Check whether --with-dwarf2 was given.
8163 if test "${with_dwarf2+set}" = set; then :
8164 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8165 else
8166 dwarf2=no
8167 fi
8168
8169
8170 # Check whether --enable-shared was given.
8171 if test "${enable_shared+set}" = set; then :
8172 enableval=$enable_shared;
8173 case $enable_shared in
8174 yes | no) ;;
8175 *)
8176 enable_shared=no
8177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8178 for pkg in $enableval; do
8179 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8180 enable_shared=yes
8181 fi
8182 done
8183 IFS="$ac_save_ifs"
8184 ;;
8185 esac
8186
8187 else
8188 enable_shared=yes
8189 fi
8190
8191
8192
8193 # Check whether --enable-gcov was given.
8194 if test "${enable_gcov+set}" = set; then :
8195 enableval=$enable_gcov;
8196 else
8197 case $target in
8198 bpf-*-*)
8199 enable_gcov=no
8200 ;;
8201 *)
8202 enable_gcov=yes
8203 ;;
8204 esac
8205 fi
8206
8207
8208
8209
8210
8211 # Check whether --with-specs was given.
8212 if test "${with_specs+set}" = set; then :
8213 withval=$with_specs; CONFIGURE_SPECS=$withval
8214 else
8215 CONFIGURE_SPECS=
8216
8217 fi
8218
8219
8220
8221
8222
8223 # Check whether --with-pkgversion was given.
8224 if test "${with_pkgversion+set}" = set; then :
8225 withval=$with_pkgversion; case "$withval" in
8226 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8227 no) PKGVERSION= ;;
8228 *) PKGVERSION="($withval) " ;;
8229 esac
8230 else
8231 PKGVERSION="(GCC) "
8232
8233 fi
8234
8235
8236
8237
8238
8239 # Check whether --with-bugurl was given.
8240 if test "${with_bugurl+set}" = set; then :
8241 withval=$with_bugurl; case "$withval" in
8242 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8243 no) BUGURL=
8244 ;;
8245 *) BUGURL="$withval"
8246 ;;
8247 esac
8248 else
8249 BUGURL="https://gcc.gnu.org/bugs/"
8250
8251 fi
8252
8253 case ${BUGURL} in
8254 "")
8255 REPORT_BUGS_TO=
8256 REPORT_BUGS_TEXI=
8257 ;;
8258 *)
8259 REPORT_BUGS_TO="<$BUGURL>"
8260 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8261 ;;
8262 esac;
8263
8264
8265
8266
8267 # Allow overriding the default URL for documentation
8268
8269 # Check whether --with-documentation-root-url was given.
8270 if test "${with_documentation_root_url+set}" = set; then :
8271 withval=$with_documentation_root_url; case "$withval" in
8272 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8273 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8274 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8275 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8276 esac
8277 else
8278
8279 docroot_url_suffix=
8280 case "$gcc_version" in
8281 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8282 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8283 esac
8284 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8285
8286 fi
8287
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8291 _ACEOF
8292
8293
8294 # Allow overriding the default URL for GCC changes
8295
8296 # Check whether --with-changes-root-url was given.
8297 if test "${with_changes_root_url+set}" = set; then :
8298 withval=$with_changes_root_url; case "$withval" in
8299 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8300 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8301 */) CHANGES_ROOT_URL="$withval" ;;
8302 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8303 esac
8304 else
8305 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8306
8307 fi
8308
8309
8310 cat >>confdefs.h <<_ACEOF
8311 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8312 _ACEOF
8313
8314
8315 # Sanity check enable_languages in case someone does not run the toplevel
8316 # configure # script.
8317 # Check whether --enable-languages was given.
8318 if test "${enable_languages+set}" = set; then :
8319 enableval=$enable_languages; case ,${enable_languages}, in
8320 ,,|,yes,)
8321 # go safe -- we cannot be much sure without the toplevel
8322 # configure's
8323 # analysis of which target libs are present and usable
8324 enable_languages=c
8325 ;;
8326 *,all,*)
8327 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8328 ;;
8329 *,c,*)
8330 ;;
8331 *)
8332 enable_languages=c,${enable_languages}
8333 ;;
8334 esac
8335 else
8336 enable_languages=c
8337 fi
8338
8339
8340 # If top-level libada has been disabled, then wire in install-gnatlib
8341 # invocation with `make install', so that one can build and install
8342 # the library manually with `make -C gcc all gnatlib gnattools install'.
8343 if test x"$enable_libada" = xno; then
8344 gnat_install_lib=gnat-install-lib
8345 else
8346 gnat_install_lib=
8347 fi
8348
8349
8350 if test x"$enable_as_accelerator_for" != x; then
8351
8352 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8353
8354 enable_as_accelerator=yes
8355 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8356 program_transform_name=`echo $program_transform_name | sed $sedscript`
8357 accel_dir_suffix=/accel/${target_noncanonical}
8358 real_target_noncanonical=${enable_as_accelerator_for}
8359 fi
8360
8361
8362
8363
8364 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8365 tgt=`echo $tgt | sed 's/=.*//'`
8366
8367 enable_offloading=1
8368 case "$tgt" in
8369 amdgcn*)
8370 omp_device_property=omp-device-properties-gcn
8371 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8372 ;;
8373 nvptx*)
8374 omp_device_property=omp-device-properties-nvptx
8375 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8376 ;;
8377 *)
8378 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8379 ;;
8380 esac
8381 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8382 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8383
8384 if test x"$offload_targets" = x; then
8385 offload_targets=$tgt
8386 else
8387 offload_targets="$offload_targets,$tgt"
8388 fi
8389 done
8390
8391
8392
8393
8394 cat >>confdefs.h <<_ACEOF
8395 #define OFFLOAD_TARGETS "$offload_targets"
8396 _ACEOF
8397
8398 if test x"$enable_offloading" != x; then
8399
8400 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8401
8402 else
8403
8404 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8405
8406 fi
8407
8408 if test "x$enable_offload_defaulted" = xyes; then
8409
8410 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8411
8412 fi
8413
8414
8415 # Check whether --with-multilib-list was given.
8416 if test "${with_multilib_list+set}" = set; then :
8417 withval=$with_multilib_list; :
8418 else
8419 with_multilib_list=default
8420 fi
8421
8422
8423
8424 # Check whether --with-multilib-generator was given.
8425 if test "${with_multilib_generator+set}" = set; then :
8426 withval=$with_multilib_generator; :
8427 else
8428 with_multilib_generator=default
8429 fi
8430
8431
8432
8433 # Check whether --with-picolibc was given.
8434 if test "${with_picolibc+set}" = set; then :
8435 withval=$with_picolibc;
8436 fi
8437
8438
8439 # -------------------------
8440 # Checks for other programs
8441 # -------------------------
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8444 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8445 set x ${MAKE-make}
8446 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8447 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 cat >conftest.make <<\_ACEOF
8451 SHELL = /bin/sh
8452 all:
8453 @echo '@@@%%%=$(MAKE)=@@@%%%'
8454 _ACEOF
8455 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8457 *@@@%%%=?*=@@@%%%*)
8458 eval ac_cv_prog_make_${ac_make}_set=yes;;
8459 *)
8460 eval ac_cv_prog_make_${ac_make}_set=no;;
8461 esac
8462 rm -f conftest.make
8463 fi
8464 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8466 $as_echo "yes" >&6; }
8467 SET_MAKE=
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 SET_MAKE="MAKE=${MAKE-make}"
8472 fi
8473
8474
8475 # Find some useful tools
8476 for ac_prog in gawk mawk nawk awk
8477 do
8478 # Extract the first word of "$ac_prog", so it can be a program name with args.
8479 set dummy $ac_prog; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_AWK+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 if test -n "$AWK"; then
8486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_AWK="$ac_prog"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8498 fi
8499 done
8500 done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 AWK=$ac_cv_prog_AWK
8506 if test -n "$AWK"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8508 $as_echo "$AWK" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514
8515 test -n "$AWK" && break
8516 done
8517
8518 # We need awk to create options.cc and options.h.
8519 # Bail out if it's missing.
8520 case ${AWK} in
8521 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8522 esac
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8525 $as_echo_n "checking whether ln -s works... " >&6; }
8526 if ${gcc_cv_prog_LN_S+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 rm -f conftestdata_t
8530 echo >conftestdata_f
8531 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8532 then
8533 gcc_cv_prog_LN_S="ln -s"
8534 else
8535 if ln conftestdata_f conftestdata_t 2>/dev/null
8536 then
8537 gcc_cv_prog_LN_S=ln
8538 else
8539 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8540 then
8541 gcc_cv_prog_LN_S="cp -p"
8542 else
8543 gcc_cv_prog_LN_S=cp
8544 fi
8545 fi
8546 fi
8547 rm -f conftestdata_f conftestdata_t
8548
8549 fi
8550 LN_S="$gcc_cv_prog_LN_S"
8551 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553 $as_echo "yes" >&6; }
8554 else
8555 if test "$gcc_cv_prog_LN_S" = "ln"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8557 $as_echo "no, using ln" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8560 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8561 fi
8562 fi
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8565 $as_echo_n "checking whether ln works... " >&6; }
8566 if ${acx_cv_prog_LN+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 rm -f conftestdata_t
8570 echo >conftestdata_f
8571 if ln conftestdata_f conftestdata_t 2>/dev/null
8572 then
8573 acx_cv_prog_LN=ln
8574 else
8575 acx_cv_prog_LN=no
8576 fi
8577 rm -f conftestdata_f conftestdata_t
8578
8579 fi
8580 if test $acx_cv_prog_LN = no; then
8581 LN="$LN_S"
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8583 $as_echo "no, using $LN" >&6; }
8584 else
8585 LN="$acx_cv_prog_LN"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8588 fi
8589
8590 if test -n "$ac_tool_prefix"; then
8591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_RANLIB+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$RANLIB"; then
8599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616 fi
8617 fi
8618 RANLIB=$ac_cv_prog_RANLIB
8619 if test -n "$RANLIB"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8621 $as_echo "$RANLIB" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628 fi
8629 if test -z "$ac_cv_prog_RANLIB"; then
8630 ac_ct_RANLIB=$RANLIB
8631 # Extract the first word of "ranlib", so it can be a program name with args.
8632 set dummy ranlib; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$ac_ct_RANLIB"; then
8639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_RANLIB="ranlib"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi
8657 fi
8658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8659 if test -n "$ac_ct_RANLIB"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8661 $as_echo "$ac_ct_RANLIB" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8665 fi
8666
8667 if test "x$ac_ct_RANLIB" = x; then
8668 RANLIB=":"
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671 yes:)
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 RANLIB=$ac_ct_RANLIB
8677 fi
8678 else
8679 RANLIB="$ac_cv_prog_RANLIB"
8680 fi
8681
8682 ranlib_flags=""
8683
8684
8685 # Find a good install program. We prefer a C program (faster),
8686 # so one script is as good as another. But avoid the broken or
8687 # incompatible versions:
8688 # SysV /etc/install, /usr/sbin/install
8689 # SunOS /usr/etc/install
8690 # IRIX /sbin/install
8691 # AIX /bin/install
8692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8694 # ./install, which can be erroneously created by make from ./install.sh.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8696 $as_echo_n "checking for a BSD compatible install... " >&6; }
8697 if test -z "$INSTALL"; then
8698 if ${ac_cv_path_install+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8702 for ac_dir in $PATH; do
8703 # Account for people who put trailing slashes in PATH elements.
8704 case "$ac_dir/" in
8705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8706 *)
8707 # OSF1 and SCO ODT 3.0 have their own names for install.
8708 for ac_prog in ginstall scoinst install; do
8709 if test -f $ac_dir/$ac_prog; then
8710 if test $ac_prog = install &&
8711 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8712 # AIX install. It has an incompatible calling convention.
8713 # OSF/1 installbsd also uses dspmsg, but is usable.
8714 :
8715 else
8716 ac_cv_path_install="$ac_dir/$ac_prog -c"
8717 break 2
8718 fi
8719 fi
8720 done
8721 ;;
8722 esac
8723 done
8724 IFS="$ac_save_IFS"
8725
8726 fi
8727 if test "${ac_cv_path_install+set}" = set; then
8728 INSTALL="$ac_cv_path_install"
8729 else
8730 # As a last resort, use the slow shell script. We don't cache a
8731 # path for INSTALL within a source directory, because that will
8732 # break other packages using the cache if that directory is
8733 # removed, or if the path is relative.
8734 INSTALL="$ac_install_sh"
8735 fi
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8738 $as_echo "$INSTALL" >&6; }
8739
8740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8741 # It thinks the first close brace ends the variable substitution.
8742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8743
8744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8745
8746
8747 # See if cmp has --ignore-initial.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8749 $as_echo_n "checking for cmp's capabilities... " >&6; }
8750 if ${gcc_cv_prog_cmp_skip+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 echo abfoo >t1
8754 echo cdfoo >t2
8755 gcc_cv_prog_cmp_skip=slowcompare
8756 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8757 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8758 :
8759 else
8760 gcc_cv_prog_cmp_skip=gnucompare
8761 fi
8762 fi
8763 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8764 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8765 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8766 :
8767 else
8768 gcc_cv_prog_cmp_skip=fastcompare
8769 fi
8770 fi
8771 fi
8772 rm t1 t2
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8776 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8777 make_compare_target=$gcc_cv_prog_cmp_skip
8778
8779
8780
8781 # See if we have the mktemp command.
8782 # Extract the first word of "mktemp", so it can be a program name with args.
8783 set dummy mktemp; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$have_mktemp_command"; then
8790 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_have_mktemp_command="yes"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8805 IFS=$as_save_IFS
8806
8807 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8808 fi
8809 fi
8810 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8811 if test -n "$have_mktemp_command"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8813 $as_echo "$have_mktemp_command" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8818
8819
8820
8821 # See if makeinfo has been installed and is modern enough
8822 # that we can use it.
8823
8824 # Extract the first word of "makeinfo", so it can be a program name with args.
8825 set dummy makeinfo; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_MAKEINFO+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$MAKEINFO"; then
8832 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_MAKEINFO="makeinfo"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 MAKEINFO=$ac_cv_prog_MAKEINFO
8852 if test -n "$MAKEINFO"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8854 $as_echo "$MAKEINFO" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861 if test -n "$MAKEINFO"; then
8862 # Found it, now check the version.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8864 $as_echo_n "checking for modern makeinfo... " >&6; }
8865 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8869 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8870
8871 case $ac_prog_version in
8872 '') gcc_cv_prog_makeinfo_modern=no;;
8873 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8874 *) gcc_cv_prog_makeinfo_modern=no;;
8875 esac
8876
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8879 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8880 else
8881 gcc_cv_prog_makeinfo_modern=no
8882 fi
8883 if test $gcc_cv_prog_makeinfo_modern = no; then
8884 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8885 fi
8886
8887 if test $gcc_cv_prog_makeinfo_modern = no; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8889 *** Makeinfo is missing or too old.
8890 *** Info documentation will not be built." >&5
8891 $as_echo "$as_me: WARNING:
8892 *** Makeinfo is missing or too old.
8893 *** Info documentation will not be built." >&2;}
8894 BUILD_INFO=no-info
8895 else
8896 BUILD_INFO=info
8897 fi
8898
8899
8900 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8901 # If it does, we want to pass it to makeinfo in order to restore the old
8902 # behavior of @{summary,}contents placement.
8903 MAKEINFO_TOC_INLINE_FLAG=
8904 if test x"$MAKEINFO" != x; then :
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8907 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8908 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911
8912 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8913 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8914 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8915 gcc_cv_texi_add_toc_inline_flags=no
8916 else
8917 gcc_cv_texi_add_toc_inline_flags=yes
8918 fi
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8922 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8923 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8924 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8925 fi
8926
8927 fi
8928
8929
8930 # Is pod2man recent enough to regenerate manpages?
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8932 $as_echo_n "checking for recent Pod::Man... " >&6; }
8933 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8935 $as_echo "yes" >&6; }
8936 GENERATED_MANPAGES=generated-manpages
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 GENERATED_MANPAGES=
8941 fi
8942
8943
8944 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8945
8946 # How about lex?
8947 for ac_prog in flex
8948 do
8949 # Extract the first word of "$ac_prog", so it can be a program name with args.
8950 set dummy $ac_prog; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_prog_FLEX+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 if test -n "$FLEX"; then
8957 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8961 do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_FLEX="$ac_prog"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 FLEX=$ac_cv_prog_FLEX
8977 if test -n "$FLEX"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8979 $as_echo "$FLEX" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984
8985
8986 test -n "$FLEX" && break
8987 done
8988 test -n "$FLEX" || FLEX="$MISSING flex"
8989
8990
8991 # Bison?
8992 for ac_prog in bison
8993 do
8994 # Extract the first word of "$ac_prog", so it can be a program name with args.
8995 set dummy $ac_prog; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_BISON+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$BISON"; then
9002 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_BISON="$ac_prog"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015 done
9016 done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 BISON=$ac_cv_prog_BISON
9022 if test -n "$BISON"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9024 $as_echo "$BISON" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031 test -n "$BISON" && break
9032 done
9033 test -n "$BISON" || BISON="$MISSING bison"
9034
9035
9036 # Python3?
9037
9038 # Extract the first word of "python3", so it can be a program name with args.
9039 set dummy python3; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_PYTHON+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$PYTHON"; then
9046 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_PYTHON="python3"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059 done
9060 done
9061 IFS=$as_save_IFS
9062
9063 fi
9064 fi
9065 PYTHON=$ac_cv_prog_PYTHON
9066 if test -n "$PYTHON"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9068 $as_echo "$PYTHON" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072 fi
9073
9074
9075 if test -n "$PYTHON"; then
9076 # Found it, now check the version.
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9078 $as_echo_n "checking for modern python3... " >&6; }
9079 if ${gcc_cv_prog_python3_modern+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 ac_prog_version=`eval $PYTHON --version 2>&1 |
9083 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9084
9085 case $ac_prog_version in
9086 '') gcc_cv_prog_python3_modern=no;;
9087 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9088 *) gcc_cv_prog_python3_modern=no;;
9089 esac
9090
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9093 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9094 else
9095 gcc_cv_prog_python3_modern=no
9096 fi
9097 if test $gcc_cv_prog_python3_modern = no; then
9098 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9099 fi
9100
9101 if test $gcc_cv_prog_python3_modern = no; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9103 *** Python3 is missing.
9104 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9105 $as_echo "$as_me: WARNING:
9106 *** Python3 is missing.
9107 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9108 HAVE_PYTHON=no
9109 else
9110 HAVE_PYTHON=yes
9111 fi
9112
9113
9114 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9115 # check for build == host before using them.
9116
9117 # NM
9118 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9119 && test -d ../binutils ; then
9120 NM='../binutils/nm-new'
9121 else
9122 # Extract the first word of "nm", so it can be a program name with args.
9123 set dummy nm; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_NM+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$NM"; then
9130 ac_cv_prog_NM="$NM" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_NM="nm"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143 done
9144 done
9145 IFS=$as_save_IFS
9146
9147 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9148 fi
9149 fi
9150 NM=$ac_cv_prog_NM
9151 if test -n "$NM"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9153 $as_echo "$NM" >&6; }
9154 else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158
9159
9160 fi
9161
9162 # AR
9163 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9164 && test -d ../binutils ; then
9165 AR='../binutils/ar'
9166 else
9167 # Extract the first word of "ar", so it can be a program name with args.
9168 set dummy ar; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_prog_AR+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test -n "$AR"; then
9175 ac_cv_prog_AR="$AR" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_prog_AR="ar"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9187 fi
9188 done
9189 done
9190 IFS=$as_save_IFS
9191
9192 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9193 fi
9194 fi
9195 AR=$ac_cv_prog_AR
9196 if test -n "$AR"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9198 $as_echo "$AR" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9202 fi
9203
9204
9205 fi
9206
9207 # The jit documentation looks better if built with sphinx, but can be
9208 # built with texinfo if sphinx is not available.
9209 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9210 # Extract the first word of "sphinx-build", so it can be a program name with args.
9211 set dummy sphinx-build; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_doc_build_sys+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$doc_build_sys"; then
9218 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_doc_build_sys="sphinx"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231 done
9232 done
9233 IFS=$as_save_IFS
9234
9235 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9236 fi
9237 fi
9238 doc_build_sys=$ac_cv_prog_doc_build_sys
9239 if test -n "$doc_build_sys"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9241 $as_echo "$doc_build_sys" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246
9247
9248
9249 # --------------------
9250 # Checks for C headers
9251 # --------------------
9252
9253 # Need to reject headers which give warnings, so that the -Werror bootstrap
9254 # works later. *sigh* This needs to come before all header checks.
9255
9256 ac_c_preproc_warn_flag=yes
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9259 $as_echo_n "checking for ANSI C header files... " >&6; }
9260 if ${ac_cv_header_stdc+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <stdlib.h>
9266 #include <stdarg.h>
9267 #include <string.h>
9268 #include <float.h>
9269
9270 int
9271 main ()
9272 {
9273
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_cxx_try_compile "$LINENO"; then :
9279 ac_cv_header_stdc=yes
9280 else
9281 ac_cv_header_stdc=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284
9285 if test $ac_cv_header_stdc = yes; then
9286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <string.h>
9290
9291 _ACEOF
9292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9293 $EGREP "memchr" >/dev/null 2>&1; then :
9294
9295 else
9296 ac_cv_header_stdc=no
9297 fi
9298 rm -f conftest*
9299
9300 fi
9301
9302 if test $ac_cv_header_stdc = yes; then
9303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <stdlib.h>
9307
9308 _ACEOF
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 $EGREP "free" >/dev/null 2>&1; then :
9311
9312 else
9313 ac_cv_header_stdc=no
9314 fi
9315 rm -f conftest*
9316
9317 fi
9318
9319 if test $ac_cv_header_stdc = yes; then
9320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9321 if test "$cross_compiling" = yes; then :
9322 :
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <ctype.h>
9327 #include <stdlib.h>
9328 #if ((' ' & 0x0FF) == 0x020)
9329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9331 #else
9332 # define ISLOWER(c) \
9333 (('a' <= (c) && (c) <= 'i') \
9334 || ('j' <= (c) && (c) <= 'r') \
9335 || ('s' <= (c) && (c) <= 'z'))
9336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9337 #endif
9338
9339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9340 int
9341 main ()
9342 {
9343 int i;
9344 for (i = 0; i < 256; i++)
9345 if (XOR (islower (i), ISLOWER (i))
9346 || toupper (i) != TOUPPER (i))
9347 return 2;
9348 return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_cxx_try_run "$LINENO"; then :
9352
9353 else
9354 ac_cv_header_stdc=no
9355 fi
9356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9357 conftest.$ac_objext conftest.beam conftest.$ac_ext
9358 fi
9359
9360 fi
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9363 $as_echo "$ac_cv_header_stdc" >&6; }
9364 if test $ac_cv_header_stdc = yes; then
9365
9366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9367
9368 fi
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9372 if ${ac_cv_header_time+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 #include <sys/types.h>
9378 #include <sys/time.h>
9379 #include <time.h>
9380
9381 int
9382 main ()
9383 {
9384 if ((struct tm *) 0)
9385 return 0;
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_cxx_try_compile "$LINENO"; then :
9391 ac_cv_header_time=yes
9392 else
9393 ac_cv_header_time=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9398 $as_echo "$ac_cv_header_time" >&6; }
9399 if test $ac_cv_header_time = yes; then
9400
9401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9402
9403 fi
9404
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9406 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9407 if ${gcc_cv_header_string+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <string.h>
9413 #include <strings.h>
9414 int
9415 main ()
9416 {
9417
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_cxx_try_compile "$LINENO"; then :
9423 gcc_cv_header_string=yes
9424 else
9425 gcc_cv_header_string=no
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9430 $as_echo "$gcc_cv_header_string" >&6; }
9431 if test $gcc_cv_header_string = yes; then
9432
9433 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9434
9435 fi
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9438 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9439 if ${ac_cv_header_sys_wait_h+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <sys/types.h>
9445 #include <sys/wait.h>
9446 #ifndef WEXITSTATUS
9447 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9448 #endif
9449 #ifndef WIFEXITED
9450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9451 #endif
9452
9453 int
9454 main ()
9455 {
9456 int s;
9457 wait (&s);
9458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_cxx_try_compile "$LINENO"; then :
9464 ac_cv_header_sys_wait_h=yes
9465 else
9466 ac_cv_header_sys_wait_h=no
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 fi
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9471 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9472 if test $ac_cv_header_sys_wait_h = yes; then
9473
9474 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9475
9476 fi
9477
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9479 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9480 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9486 #include <termios.h>
9487 #ifdef TIOCGWINSZ
9488 yes
9489 #endif
9490
9491 _ACEOF
9492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9493 $EGREP "yes" >/dev/null 2>&1; then :
9494 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9495 else
9496 ac_cv_sys_tiocgwinsz_in_termios_h=no
9497 fi
9498 rm -f conftest*
9499
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9502 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9503
9504 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9506 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9507 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 #include <sys/types.h>
9513 #include <sys/ioctl.h>
9514 #ifdef TIOCGWINSZ
9515 yes
9516 #endif
9517
9518 _ACEOF
9519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9520 $EGREP "yes" >/dev/null 2>&1; then :
9521 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9522 else
9523 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9524 fi
9525 rm -f conftest*
9526
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9529 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9530
9531 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9532
9533 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9534
9535 fi
9536 fi
9537
9538 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9539 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9540 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9541 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libgen.h
9542 do :
9543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9548 _ACEOF
9549
9550 fi
9551 done
9552
9553
9554 # Check for thread headers.
9555 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9556 if test "x$ac_cv_header_thread_h" = xyes; then :
9557 have_thread_h=yes
9558 else
9559 have_thread_h=
9560 fi
9561
9562 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9563 if test "x$ac_cv_header_pthread_h" = xyes; then :
9564 have_pthread_h=yes
9565 else
9566 have_pthread_h=
9567 fi
9568
9569
9570 # These tests can't be done till we know if we have limits.h.
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9572 $as_echo_n "checking for CHAR_BIT... " >&6; }
9573 if ${gcc_cv_decl_char_bit+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 #ifdef HAVE_LIMITS_H
9579 #include <limits.h>
9580 #endif
9581 #ifdef CHAR_BIT
9582 found
9583 #endif
9584 _ACEOF
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "found" >/dev/null 2>&1; then :
9587 gcc_cv_decl_char_bit=yes
9588 else
9589 gcc_cv_decl_char_bit=no
9590 fi
9591 rm -f conftest*
9592
9593
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9596 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9597 if test $gcc_cv_decl_char_bit = no; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9599 $as_echo_n "checking number of bits in a byte... " >&6; }
9600 if ${gcc_cv_c_nbby+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 i=8
9604 gcc_cv_c_nbby=
9605 while test $i -lt 65; do
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608
9609 int
9610 main ()
9611 {
9612 switch(0) {
9613 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9614 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9615 ; }
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 if ac_fn_cxx_try_compile "$LINENO"; then :
9621 gcc_cv_c_nbby=$i; break
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 i=`expr $i + 1`
9625 done
9626 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9627
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9630 $as_echo "$gcc_cv_c_nbby" >&6; }
9631 if test $gcc_cv_c_nbby = failed; then
9632 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9633 else
9634
9635 cat >>confdefs.h <<_ACEOF
9636 #define CHAR_BIT $gcc_cv_c_nbby
9637 _ACEOF
9638
9639 fi
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9643 if ${ac_cv_c_bigendian+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 ac_cv_c_bigendian=unknown
9647 # See if we're dealing with a universal compiler.
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #ifndef __APPLE_CC__
9651 not a universal capable compiler
9652 #endif
9653 typedef int dummy;
9654
9655 _ACEOF
9656 if ac_fn_cxx_try_compile "$LINENO"; then :
9657
9658 # Check for potential -arch flags. It is not universal unless
9659 # there are at least two -arch flags with different values.
9660 ac_arch=
9661 ac_prev=
9662 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9663 if test -n "$ac_prev"; then
9664 case $ac_word in
9665 i?86 | x86_64 | ppc | ppc64)
9666 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9667 ac_arch=$ac_word
9668 else
9669 ac_cv_c_bigendian=universal
9670 break
9671 fi
9672 ;;
9673 esac
9674 ac_prev=
9675 elif test "x$ac_word" = "x-arch"; then
9676 ac_prev=arch
9677 fi
9678 done
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 if test $ac_cv_c_bigendian = unknown; then
9682 # See if sys/param.h defines the BYTE_ORDER macro.
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include <sys/types.h>
9686 #include <sys/param.h>
9687
9688 int
9689 main ()
9690 {
9691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9692 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9693 && LITTLE_ENDIAN)
9694 bogus endian macros
9695 #endif
9696
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 if ac_fn_cxx_try_compile "$LINENO"; then :
9702 # It does; now see whether it defined to BIG_ENDIAN or not.
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <sys/types.h>
9706 #include <sys/param.h>
9707
9708 int
9709 main ()
9710 {
9711 #if BYTE_ORDER != BIG_ENDIAN
9712 not big endian
9713 #endif
9714
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_cxx_try_compile "$LINENO"; then :
9720 ac_cv_c_bigendian=yes
9721 else
9722 ac_cv_c_bigendian=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 fi
9728 if test $ac_cv_c_bigendian = unknown; then
9729 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <limits.h>
9733
9734 int
9735 main ()
9736 {
9737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9738 bogus endian macros
9739 #endif
9740
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_cxx_try_compile "$LINENO"; then :
9746 # It does; now see whether it defined to _BIG_ENDIAN or not.
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <limits.h>
9750
9751 int
9752 main ()
9753 {
9754 #ifndef _BIG_ENDIAN
9755 not big endian
9756 #endif
9757
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_cxx_try_compile "$LINENO"; then :
9763 ac_cv_c_bigendian=yes
9764 else
9765 ac_cv_c_bigendian=no
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9770 fi
9771 if test $ac_cv_c_bigendian = unknown; then
9772 # Compile a test program.
9773 if test "$cross_compiling" = yes; then :
9774 # Try to guess by grepping values from an object file.
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 short int ascii_mm[] =
9778 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9779 short int ascii_ii[] =
9780 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9781 int use_ascii (int i) {
9782 return ascii_mm[i] + ascii_ii[i];
9783 }
9784 short int ebcdic_ii[] =
9785 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9786 short int ebcdic_mm[] =
9787 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9788 int use_ebcdic (int i) {
9789 return ebcdic_mm[i] + ebcdic_ii[i];
9790 }
9791 extern int foo;
9792
9793 int
9794 main ()
9795 {
9796 return use_ascii (foo) == use_ebcdic (foo);
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_cxx_try_compile "$LINENO"; then :
9802 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9803 ac_cv_c_bigendian=yes
9804 fi
9805 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9806 if test "$ac_cv_c_bigendian" = unknown; then
9807 ac_cv_c_bigendian=no
9808 else
9809 # finding both strings is unlikely to happen, but who knows?
9810 ac_cv_c_bigendian=unknown
9811 fi
9812 fi
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 int
9820 main ()
9821 {
9822
9823 /* Are we little or big endian? From Harbison&Steele. */
9824 union
9825 {
9826 long int l;
9827 char c[sizeof (long int)];
9828 } u;
9829 u.l = 1;
9830 return u.c[sizeof (long int) - 1] == 1;
9831
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_cxx_try_run "$LINENO"; then :
9837 ac_cv_c_bigendian=no
9838 else
9839 ac_cv_c_bigendian=yes
9840 fi
9841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9842 conftest.$ac_objext conftest.beam conftest.$ac_ext
9843 fi
9844
9845 fi
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9848 $as_echo "$ac_cv_c_bigendian" >&6; }
9849 case $ac_cv_c_bigendian in #(
9850 yes)
9851 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9852 ;; #(
9853 no)
9854 ;; #(
9855 universal)
9856
9857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9858
9859 ;; #(
9860 *)
9861 as_fn_error $? "unknown endianness
9862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9863 esac
9864
9865
9866 # ----------------------
9867 # Checks for C++ headers
9868 # ----------------------
9869
9870 ac_ext=cpp
9871 ac_cpp='$CXXCPP $CPPFLAGS'
9872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9877 if test -z "$CXXCPP"; then
9878 if ${ac_cv_prog_CXXCPP+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 # Double quotes because CXXCPP needs to be expanded
9882 for CXXCPP in "$CXX -E" "/lib/cpp"
9883 do
9884 ac_preproc_ok=false
9885 for ac_cxx_preproc_warn_flag in '' yes
9886 do
9887 # Use a header file that comes with gcc, so configuring glibc
9888 # with a fresh cross-compiler works.
9889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 # <limits.h> exists even on freestanding compilers.
9891 # On the NeXT, cc -E runs the code through the compiler's parser,
9892 # not just through cpp. "Syntax error" is here to catch this case.
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900 Syntax error
9901 _ACEOF
9902 if ac_fn_cxx_try_cpp "$LINENO"; then :
9903
9904 else
9905 # Broken: fails on valid input.
9906 continue
9907 fi
9908 rm -f conftest.err conftest.i conftest.$ac_ext
9909
9910 # OK, works on sane cases. Now check whether nonexistent headers
9911 # can be detected and how.
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 #include <ac_nonexistent.h>
9915 _ACEOF
9916 if ac_fn_cxx_try_cpp "$LINENO"; then :
9917 # Broken: success on invalid input.
9918 continue
9919 else
9920 # Passes both tests.
9921 ac_preproc_ok=:
9922 break
9923 fi
9924 rm -f conftest.err conftest.i conftest.$ac_ext
9925
9926 done
9927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9928 rm -f conftest.i conftest.err conftest.$ac_ext
9929 if $ac_preproc_ok; then :
9930 break
9931 fi
9932
9933 done
9934 ac_cv_prog_CXXCPP=$CXXCPP
9935
9936 fi
9937 CXXCPP=$ac_cv_prog_CXXCPP
9938 else
9939 ac_cv_prog_CXXCPP=$CXXCPP
9940 fi
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9942 $as_echo "$CXXCPP" >&6; }
9943 ac_preproc_ok=false
9944 for ac_cxx_preproc_warn_flag in '' yes
9945 do
9946 # Use a header file that comes with gcc, so configuring glibc
9947 # with a fresh cross-compiler works.
9948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949 # <limits.h> exists even on freestanding compilers.
9950 # On the NeXT, cc -E runs the code through the compiler's parser,
9951 # not just through cpp. "Syntax error" is here to catch this case.
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 #ifdef __STDC__
9955 # include <limits.h>
9956 #else
9957 # include <assert.h>
9958 #endif
9959 Syntax error
9960 _ACEOF
9961 if ac_fn_cxx_try_cpp "$LINENO"; then :
9962
9963 else
9964 # Broken: fails on valid input.
9965 continue
9966 fi
9967 rm -f conftest.err conftest.i conftest.$ac_ext
9968
9969 # OK, works on sane cases. Now check whether nonexistent headers
9970 # can be detected and how.
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <ac_nonexistent.h>
9974 _ACEOF
9975 if ac_fn_cxx_try_cpp "$LINENO"; then :
9976 # Broken: success on invalid input.
9977 continue
9978 else
9979 # Passes both tests.
9980 ac_preproc_ok=:
9981 break
9982 fi
9983 rm -f conftest.err conftest.i conftest.$ac_ext
9984
9985 done
9986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9987 rm -f conftest.i conftest.err conftest.$ac_ext
9988 if $ac_preproc_ok; then :
9989
9990 else
9991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9994 See \`config.log' for more details" >&5
9995 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9996 See \`config.log' for more details" >&2;}; }
9997 fi
9998
9999 ac_ext=cpp
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10004
10005
10006 for ac_header in unordered_map
10007 do :
10008 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10009 if test "x$ac_cv_header_unordered_map" = xyes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_UNORDERED_MAP 1
10012 _ACEOF
10013
10014 fi
10015 done
10016
10017 for ac_header in tr1/unordered_map
10018 do :
10019 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10020 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10021 cat >>confdefs.h <<_ACEOF
10022 #define HAVE_TR1_UNORDERED_MAP 1
10023 _ACEOF
10024
10025 fi
10026 done
10027
10028 for ac_header in ext/hash_map
10029 do :
10030 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10031 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE_EXT_HASH_MAP 1
10034 _ACEOF
10035
10036 fi
10037 done
10038
10039
10040 # --------
10041 # Dependency checking.
10042 # --------
10043
10044 rm -rf .tst 2>/dev/null
10045 mkdir .tst 2>/dev/null
10046 if test -d .tst; then
10047 am__leading_dot=.
10048 else
10049 am__leading_dot=_
10050 fi
10051 rmdir .tst 2>/dev/null
10052
10053 DEPDIR="${am__leading_dot}deps"
10054
10055 ac_config_commands="$ac_config_commands depdir"
10056
10057
10058 ac_config_commands="$ac_config_commands gccdepdir"
10059
10060
10061 depcc="$CXX" am_compiler_list=
10062
10063 am_depcomp=$ac_aux_dir/depcomp
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10065 $as_echo_n "checking dependency style of $depcc... " >&6; }
10066 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 if test -f "$am_depcomp"; then
10070 # We make a subdir and do the tests there. Otherwise we can end up
10071 # making bogus files that we don't know about and never remove. For
10072 # instance it was reported that on HP-UX the gcc test will end up
10073 # making a dummy file named `D' -- because `-MD' means `put the output
10074 # in D'.
10075 mkdir conftest.dir
10076 # Copy depcomp to subdir because otherwise we won't find it if we're
10077 # using a relative directory.
10078 cp "$am_depcomp" conftest.dir
10079 cd conftest.dir
10080 # We will build objects and dependencies in a subdirectory because
10081 # it helps to detect inapplicable dependency modes. For instance
10082 # both Tru64's cc and ICC support -MD to output dependencies as a
10083 # side effect of compilation, but ICC will put the dependencies in
10084 # the current directory while Tru64 will put them in the object
10085 # directory.
10086 mkdir sub
10087
10088 am_cv_CXX_dependencies_compiler_type=none
10089 if test "$am_compiler_list" = ""; then
10090 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10091 fi
10092 for depmode in $am_compiler_list; do
10093 if test $depmode = none; then break; fi
10094
10095 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10096 # Setup a source with many dependencies, because some compilers
10097 # like to wrap large dependency lists on column 80 (with \), and
10098 # we should not choose a depcomp mode which is confused by this.
10099 #
10100 # We need to recreate these files for each test, as the compiler may
10101 # overwrite some of them when testing with obscure command lines.
10102 # This happens at least with the AIX C compiler.
10103 : > sub/conftest.c
10104 for i in 1 2 3 4 5 6; do
10105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10107 # Solaris 8's {/usr,}/bin/sh.
10108 touch sub/conftst$i.h
10109 done
10110 echo "include sub/conftest.Po" > confmf
10111
10112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10113 # mode. It turns out that the SunPro C++ compiler does not properly
10114 # handle `-M -o', and we need to detect this.
10115 depcmd="depmode=$depmode \
10116 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10118 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10119 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10120 if env $depcmd > conftest.err 2>&1 &&
10121 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10122 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10123 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10124 # icc doesn't choke on unknown options, it will just issue warnings
10125 # or remarks (even with -Werror). So we grep stderr for any message
10126 # that says an option was ignored or not supported.
10127 # When given -MP, icc 7.0 and 7.1 complain thusly:
10128 # icc: Command line warning: ignoring option '-M'; no argument required
10129 # The diagnosis changed in icc 8.0:
10130 # icc: Command line remark: option '-MP' not supported
10131 if (grep 'ignoring option' conftest.err ||
10132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10133 am_cv_CXX_dependencies_compiler_type=$depmode
10134 $as_echo "$as_me:$LINENO: success" >&5
10135 break
10136 fi
10137 fi
10138 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10139 sed -e 's/^/| /' < conftest.err >&5
10140 done
10141
10142 cd ..
10143 rm -rf conftest.dir
10144 else
10145 am_cv_CXX_dependencies_compiler_type=none
10146 fi
10147
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10150 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10151 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10152 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10153 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10154
10155 fi
10156
10157
10158 # --------
10159 # UNSORTED
10160 # --------
10161
10162
10163 # These libraries may be used by collect2.
10164 # We may need a special search path to get them linked.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10166 $as_echo_n "checking for collect2 libraries... " >&6; }
10167 if ${gcc_cv_collect2_libs+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 save_LIBS="$LIBS"
10171 for libs in '' -lld -lmld \
10172 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10173 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10174 do
10175 LIBS="$libs"
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char ldopen ();
10186 int
10187 main ()
10188 {
10189 return ldopen ();
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_cxx_try_link "$LINENO"; then :
10195 gcc_cv_collect2_libs="$libs"; break
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 done
10200 LIBS="$save_LIBS"
10201 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10204 $as_echo "$gcc_cv_collect2_libs" >&6; }
10205 case $gcc_cv_collect2_libs in
10206 "none required") ;;
10207 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10208 esac
10209
10210
10211 # When building Ada code on Alpha, we need exc_resume which is usually in
10212 # -lexc. So test for it.
10213 save_LIBS="$LIBS"
10214 LIBS=
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10216 $as_echo_n "checking for library containing exc_resume... " >&6; }
10217 if ${ac_cv_search_exc_resume+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 ac_func_search_save_LIBS=$LIBS
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 char exc_resume ();
10231 int
10232 main ()
10233 {
10234 return exc_resume ();
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 for ac_lib in '' exc; do
10240 if test -z "$ac_lib"; then
10241 ac_res="none required"
10242 else
10243 ac_res=-l$ac_lib
10244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10245 fi
10246 if ac_fn_cxx_try_link "$LINENO"; then :
10247 ac_cv_search_exc_resume=$ac_res
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext
10251 if ${ac_cv_search_exc_resume+:} false; then :
10252 break
10253 fi
10254 done
10255 if ${ac_cv_search_exc_resume+:} false; then :
10256
10257 else
10258 ac_cv_search_exc_resume=no
10259 fi
10260 rm conftest.$ac_ext
10261 LIBS=$ac_func_search_save_LIBS
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10264 $as_echo "$ac_cv_search_exc_resume" >&6; }
10265 ac_res=$ac_cv_search_exc_resume
10266 if test "$ac_res" != no; then :
10267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10268
10269 fi
10270
10271 GNAT_LIBEXC="$LIBS"
10272 LIBS="$save_LIBS"
10273
10274
10275 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10276 save_LIBS="$LIBS"
10277 LIBS=
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10279 $as_echo_n "checking for library containing kstat_open... " >&6; }
10280 if ${ac_cv_search_kstat_open+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 ac_func_search_save_LIBS=$LIBS
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char kstat_open ();
10294 int
10295 main ()
10296 {
10297 return kstat_open ();
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 for ac_lib in '' kstat; do
10303 if test -z "$ac_lib"; then
10304 ac_res="none required"
10305 else
10306 ac_res=-l$ac_lib
10307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10308 fi
10309 if ac_fn_cxx_try_link "$LINENO"; then :
10310 ac_cv_search_kstat_open=$ac_res
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext
10314 if ${ac_cv_search_kstat_open+:} false; then :
10315 break
10316 fi
10317 done
10318 if ${ac_cv_search_kstat_open+:} false; then :
10319
10320 else
10321 ac_cv_search_kstat_open=no
10322 fi
10323 rm conftest.$ac_ext
10324 LIBS=$ac_func_search_save_LIBS
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10327 $as_echo "$ac_cv_search_kstat_open" >&6; }
10328 ac_res=$ac_cv_search_kstat_open
10329 if test "$ac_res" != no; then :
10330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10331
10332 fi
10333
10334 EXTRA_GCC_LIBS="$LIBS"
10335 LIBS="$save_LIBS"
10336
10337
10338 # Some systems put ldexp and frexp in libm instead of libc; assume
10339 # they're both in the same place. jcf-dump needs them.
10340 save_LIBS="$LIBS"
10341 LIBS=
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10343 $as_echo_n "checking for library containing ldexp... " >&6; }
10344 if ${ac_cv_search_ldexp+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 ac_func_search_save_LIBS=$LIBS
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char ldexp ();
10358 int
10359 main ()
10360 {
10361 return ldexp ();
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 for ac_lib in '' m; do
10367 if test -z "$ac_lib"; then
10368 ac_res="none required"
10369 else
10370 ac_res=-l$ac_lib
10371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10372 fi
10373 if ac_fn_cxx_try_link "$LINENO"; then :
10374 ac_cv_search_ldexp=$ac_res
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext
10378 if ${ac_cv_search_ldexp+:} false; then :
10379 break
10380 fi
10381 done
10382 if ${ac_cv_search_ldexp+:} false; then :
10383
10384 else
10385 ac_cv_search_ldexp=no
10386 fi
10387 rm conftest.$ac_ext
10388 LIBS=$ac_func_search_save_LIBS
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10391 $as_echo "$ac_cv_search_ldexp" >&6; }
10392 ac_res=$ac_cv_search_ldexp
10393 if test "$ac_res" != no; then :
10394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10395
10396 fi
10397
10398 LDEXP_LIB="$LIBS"
10399 LIBS="$save_LIBS"
10400
10401
10402 # Some systems need dlopen
10403 save_LIBS="$LIBS"
10404 LIBS=
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10406 $as_echo_n "checking for library containing dlopen... " >&6; }
10407 if ${ac_cv_search_dlopen+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 ac_func_search_save_LIBS=$LIBS
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char dlopen ();
10421 int
10422 main ()
10423 {
10424 return dlopen ();
10425 ;
10426 return 0;
10427 }
10428 _ACEOF
10429 for ac_lib in '' dl; do
10430 if test -z "$ac_lib"; then
10431 ac_res="none required"
10432 else
10433 ac_res=-l$ac_lib
10434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10435 fi
10436 if ac_fn_cxx_try_link "$LINENO"; then :
10437 ac_cv_search_dlopen=$ac_res
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext
10441 if ${ac_cv_search_dlopen+:} false; then :
10442 break
10443 fi
10444 done
10445 if ${ac_cv_search_dlopen+:} false; then :
10446
10447 else
10448 ac_cv_search_dlopen=no
10449 fi
10450 rm conftest.$ac_ext
10451 LIBS=$ac_func_search_save_LIBS
10452 fi
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10454 $as_echo "$ac_cv_search_dlopen" >&6; }
10455 ac_res=$ac_cv_search_dlopen
10456 if test "$ac_res" != no; then :
10457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10458
10459 fi
10460
10461 DL_LIB="$LIBS"
10462 LIBS="$save_LIBS"
10463
10464
10465 # Use <inttypes.h> only if it exists,
10466 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10467 # PRId64
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10469 $as_echo_n "checking for inttypes.h... " >&6; }
10470 if ${gcc_cv_header_inttypes_h+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #define __STDC_FORMAT_MACROS
10476 #include <sys/types.h>
10477 #include <inttypes.h>
10478 int
10479 main ()
10480 {
10481 intmax_t i = -1;
10482 #ifndef PRId64
10483 choke me
10484 #endif
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_cxx_try_compile "$LINENO"; then :
10490 gcc_cv_header_inttypes_h=yes
10491 else
10492 gcc_cv_header_inttypes_h=no
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495 fi
10496
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10498 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10499 if test $gcc_cv_header_inttypes_h = yes; then
10500
10501 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10502
10503 fi
10504
10505 # Look for the ZSTD package.
10506 ZSTD_INCLUDE=
10507 ZSTD_LIB=
10508
10509
10510 ZSTD_CPPFLAGS=
10511 ZSTD_LDFLAGS=
10512
10513
10514
10515 # Check whether --with-zstd was given.
10516 if test "${with_zstd+set}" = set; then :
10517 withval=$with_zstd;
10518 fi
10519
10520
10521 # Check whether --with-zstd-include was given.
10522 if test "${with_zstd_include+set}" = set; then :
10523 withval=$with_zstd_include;
10524 fi
10525
10526
10527 # Check whether --with-zstd-lib was given.
10528 if test "${with_zstd_lib+set}" = set; then :
10529 withval=$with_zstd_lib;
10530 fi
10531
10532 case "x$with_zstd" in
10533 x) ;;
10534 xno)
10535 ZSTD_INCLUDE=
10536 ZSTD_LIB=
10537 ;;
10538 *) ZSTD_INCLUDE=$with_zstd/include
10539 ZSTD_LIB=$with_zstd/lib
10540 ;;
10541 esac
10542
10543 if test "x$with_zstd" != xno; then
10544 if test "x$with_zstd_include" != x; then
10545 ZSTD_INCLUDE=$with_zstd_include
10546 fi
10547 if test "x$with_zstd_lib" != x; then
10548 ZSTD_LIB=$with_zstd_lib
10549 fi
10550 if test "x$ZSTD_INCLUDE" != x \
10551 && test "x$ZSTD_INCLUDE" != xno; then
10552 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10553 fi
10554 if test "x$ZSTD_LIB" != x \
10555 && test "x$ZSTD_LIB" != xno; then
10556 ZSTD_LDFLAGS=-L$ZSTD_LIB
10557 fi
10558
10559 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10560 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10561
10562 # LTO can use zstd compression algorithm
10563 save_LIBS="$LIBS"
10564 LIBS=
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10566 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10567 if ${ac_cv_search_ZSTD_compress+:} false; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 ac_func_search_save_LIBS=$LIBS
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char ZSTD_compress ();
10581 int
10582 main ()
10583 {
10584 return ZSTD_compress ();
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 for ac_lib in '' zstd; do
10590 if test -z "$ac_lib"; then
10591 ac_res="none required"
10592 else
10593 ac_res=-l$ac_lib
10594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10595 fi
10596 if ac_fn_cxx_try_link "$LINENO"; then :
10597 ac_cv_search_ZSTD_compress=$ac_res
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext
10601 if ${ac_cv_search_ZSTD_compress+:} false; then :
10602 break
10603 fi
10604 done
10605 if ${ac_cv_search_ZSTD_compress+:} false; then :
10606
10607 else
10608 ac_cv_search_ZSTD_compress=no
10609 fi
10610 rm conftest.$ac_ext
10611 LIBS=$ac_func_search_save_LIBS
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10614 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10615 ac_res=$ac_cv_search_ZSTD_compress
10616 if test "$ac_res" != no; then :
10617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10618
10619 else
10620 gcc_cv_header_zstd_h=no
10621 fi
10622
10623 ZSTD_LIB="$LIBS"
10624 LIBS="$save_LIBS"
10625
10626
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10628 $as_echo_n "checking for zstd.h... " >&6; }
10629 if ${gcc_cv_header_zstd_h+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 # We require version 1.3.0 or later. This is the first version that has
10633 # ZSTD_getFrameContentSize.
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #include <zstd.h>
10637 #if ZSTD_VERSION_NUMBER < 10300
10638 #error "need zstd 1.3.0 or better"
10639 #endif
10640 int
10641 main ()
10642 {
10643
10644 ;
10645 return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_cxx_try_compile "$LINENO"; then :
10649 gcc_cv_header_zstd_h=yes
10650 else
10651 gcc_cv_header_zstd_h=no
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 fi
10655
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10657 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10658 if test $gcc_cv_header_zstd_h = yes; then
10659
10660 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10661
10662 elif test "x$with_zstd" != x; then
10663 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10664 fi
10665 fi
10666
10667
10668
10669 for ac_func in times clock kill getrlimit setrlimit atoq \
10670 popen sysconf strsignal getrusage nl_langinfo \
10671 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10672 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 \
10673 clock_gettime munmap msync get_current_dir_name memrchr
10674 do :
10675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10677 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10678 cat >>confdefs.h <<_ACEOF
10679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10680 _ACEOF
10681
10682 fi
10683 done
10684
10685
10686 # At least for glibc, clock_gettime is in librt. But don't pull that
10687 # in if it still doesn't give us the function we want.
10688 if test $ac_cv_func_clock_gettime = no; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
10690 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10691 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-lrt $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char clock_gettime ();
10706 int
10707 main ()
10708 {
10709 return clock_gettime ();
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_cxx_try_link "$LINENO"; then :
10715 ac_cv_lib_rt_clock_gettime=yes
10716 else
10717 ac_cv_lib_rt_clock_gettime=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
10724 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10725 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
10726 LIBS="-lrt $LIBS"
10727
10728 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10729
10730 fi
10731
10732 fi
10733
10734 if test x$ac_cv_func_mbstowcs = xyes; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10736 $as_echo_n "checking whether mbstowcs works... " >&6; }
10737 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test "$cross_compiling" = yes; then :
10741 gcc_cv_func_mbstowcs_works=yes
10742 else
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 #include <stdlib.h>
10746 int main()
10747 {
10748 mbstowcs(0, "", 0);
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_run "$LINENO"; then :
10753 gcc_cv_func_mbstowcs_works=yes
10754 else
10755 gcc_cv_func_mbstowcs_works=no
10756 fi
10757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10758 conftest.$ac_objext conftest.beam conftest.$ac_ext
10759 fi
10760
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10763 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10764 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10765
10766 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10767
10768 fi
10769 fi
10770
10771 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10772 if test "x$ac_cv_type_ssize_t" = xyes; then :
10773
10774 else
10775
10776 cat >>confdefs.h <<_ACEOF
10777 #define ssize_t int
10778 _ACEOF
10779
10780 fi
10781
10782 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10783 if test "x$ac_cv_type_caddr_t" = xyes; then :
10784
10785 else
10786
10787 cat >>confdefs.h <<_ACEOF
10788 #define caddr_t char *
10789 _ACEOF
10790
10791 fi
10792
10793 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10794 "
10795 if test "x$ac_cv_type_sighander_t" = xyes; then :
10796
10797 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10798
10799 fi
10800
10801
10802
10803 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10804 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10805 gcc_header_sys_mman_h=yes
10806 else
10807 gcc_header_sys_mman_h=no
10808 fi
10809
10810 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10811 if test "x$ac_cv_func_mmap" = xyes; then :
10812 gcc_func_mmap=yes
10813 else
10814 gcc_func_mmap=no
10815 fi
10816
10817 if test "$gcc_header_sys_mman_h" != yes \
10818 || test "$gcc_func_mmap" != yes; then
10819 gcc_cv_func_mmap_file=no
10820 gcc_cv_func_mmap_dev_zero=no
10821 gcc_cv_func_mmap_anon=no
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10824 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10825 if ${gcc_cv_func_mmap_file+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 # Add a system to this blacklist if
10829 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10830 # memory area containing the same data that you'd get if you applied
10831 # read() to the same fd. The only system known to have a problem here
10832 # is VMS, where text files have record structure.
10833 case "$host_os" in
10834 *vms* | ultrix*)
10835 gcc_cv_func_mmap_file=no ;;
10836 *)
10837 gcc_cv_func_mmap_file=yes;;
10838 esac
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10841 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10843 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10844 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 # Add a system to this blacklist if it has mmap() but /dev/zero
10848 # does not exist, or if mmapping /dev/zero does not give anonymous
10849 # zeroed pages with both the following properties:
10850 # 1. If you map N consecutive pages in with one call, and then
10851 # unmap any subset of those pages, the pages that were not
10852 # explicitly unmapped remain accessible.
10853 # 2. If you map two adjacent blocks of memory and then unmap them
10854 # both at once, they must both go away.
10855 # Systems known to be in this category are Windows (all variants),
10856 # VMS, and Darwin.
10857 case "$host_os" in
10858 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10859 gcc_cv_func_mmap_dev_zero=no ;;
10860 *)
10861 gcc_cv_func_mmap_dev_zero=yes;;
10862 esac
10863 fi
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10865 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10866
10867 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10869 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10870 if ${gcc_cv_decl_map_anon+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875 #include <sys/types.h>
10876 #include <sys/mman.h>
10877 #include <unistd.h>
10878
10879 #ifndef MAP_ANONYMOUS
10880 #define MAP_ANONYMOUS MAP_ANON
10881 #endif
10882
10883 int
10884 main ()
10885 {
10886 int n = MAP_ANONYMOUS;
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_cxx_try_compile "$LINENO"; then :
10892 gcc_cv_decl_map_anon=yes
10893 else
10894 gcc_cv_decl_map_anon=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10899 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10900
10901 if test $gcc_cv_decl_map_anon = no; then
10902 gcc_cv_func_mmap_anon=no
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10905 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10906 if ${gcc_cv_func_mmap_anon+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10910 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10911 # doesn't give anonymous zeroed pages with the same properties listed
10912 # above for use of /dev/zero.
10913 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10914 case "$host_os" in
10915 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10916 gcc_cv_func_mmap_anon=no ;;
10917 *)
10918 gcc_cv_func_mmap_anon=yes;;
10919 esac
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10922 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10923 fi
10924 fi
10925
10926 if test $gcc_cv_func_mmap_file = yes; then
10927
10928 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10929
10930 fi
10931 if test $gcc_cv_func_mmap_dev_zero = yes; then
10932
10933 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10934
10935 fi
10936 if test $gcc_cv_func_mmap_anon = yes; then
10937
10938 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10939
10940 fi
10941
10942
10943 case "${host}" in
10944 *-*-*vms*)
10945 # Under VMS, vfork works very differently than on Unix. The standard test
10946 # won't work, and it isn't easily adaptable. It makes more sense to
10947 # just force it.
10948 ac_cv_func_vfork_works=yes
10949 ;;
10950 esac
10951 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10952 if test "x$ac_cv_type_pid_t" = xyes; then :
10953
10954 else
10955
10956 cat >>confdefs.h <<_ACEOF
10957 #define pid_t int
10958 _ACEOF
10959
10960 fi
10961
10962 for ac_header in vfork.h
10963 do :
10964 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10965 if test "x$ac_cv_header_vfork_h" = xyes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_VFORK_H 1
10968 _ACEOF
10969
10970 fi
10971 done
10972
10973 for ac_func in fork vfork
10974 do :
10975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10976 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10977 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10978 cat >>confdefs.h <<_ACEOF
10979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10980 _ACEOF
10981
10982 fi
10983 done
10984
10985 if test "x$ac_cv_func_fork" = xyes; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10987 $as_echo_n "checking for working fork... " >&6; }
10988 if ${ac_cv_func_fork_works+:} false; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 if test "$cross_compiling" = yes; then :
10992 ac_cv_func_fork_works=cross
10993 else
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 $ac_includes_default
10997 int
10998 main ()
10999 {
11000
11001 /* By Ruediger Kuhlmann. */
11002 return fork () < 0;
11003
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_cxx_try_run "$LINENO"; then :
11009 ac_cv_func_fork_works=yes
11010 else
11011 ac_cv_func_fork_works=no
11012 fi
11013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11014 conftest.$ac_objext conftest.beam conftest.$ac_ext
11015 fi
11016
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11019 $as_echo "$ac_cv_func_fork_works" >&6; }
11020
11021 else
11022 ac_cv_func_fork_works=$ac_cv_func_fork
11023 fi
11024 if test "x$ac_cv_func_fork_works" = xcross; then
11025 case $host in
11026 *-*-amigaos* | *-*-msdosdjgpp*)
11027 # Override, as these systems have only a dummy fork() stub
11028 ac_cv_func_fork_works=no
11029 ;;
11030 *)
11031 ac_cv_func_fork_works=yes
11032 ;;
11033 esac
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11035 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11036 fi
11037 ac_cv_func_vfork_works=$ac_cv_func_vfork
11038 if test "x$ac_cv_func_vfork" = xyes; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11040 $as_echo_n "checking for working vfork... " >&6; }
11041 if ${ac_cv_func_vfork_works+:} false; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 if test "$cross_compiling" = yes; then :
11045 ac_cv_func_vfork_works=cross
11046 else
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 /* Thanks to Paul Eggert for this test. */
11050 $ac_includes_default
11051 #include <sys/wait.h>
11052 #ifdef HAVE_VFORK_H
11053 # include <vfork.h>
11054 #endif
11055 /* On some sparc systems, changes by the child to local and incoming
11056 argument registers are propagated back to the parent. The compiler
11057 is told about this with #include <vfork.h>, but some compilers
11058 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11059 static variable whose address is put into a register that is
11060 clobbered by the vfork. */
11061 static void
11062 #ifdef __cplusplus
11063 sparc_address_test (int arg)
11064 # else
11065 sparc_address_test (arg) int arg;
11066 #endif
11067 {
11068 static pid_t child;
11069 if (!child) {
11070 child = vfork ();
11071 if (child < 0) {
11072 perror ("vfork");
11073 _exit(2);
11074 }
11075 if (!child) {
11076 arg = getpid();
11077 write(-1, "", 0);
11078 _exit (arg);
11079 }
11080 }
11081 }
11082
11083 int
11084 main ()
11085 {
11086 pid_t parent = getpid ();
11087 pid_t child;
11088
11089 sparc_address_test (0);
11090
11091 child = vfork ();
11092
11093 if (child == 0) {
11094 /* Here is another test for sparc vfork register problems. This
11095 test uses lots of local variables, at least as many local
11096 variables as main has allocated so far including compiler
11097 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11098 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11099 reuse the register of parent for one of the local variables,
11100 since it will think that parent can't possibly be used any more
11101 in this routine. Assigning to the local variable will thus
11102 munge parent in the parent process. */
11103 pid_t
11104 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11105 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11106 /* Convince the compiler that p..p7 are live; otherwise, it might
11107 use the same hardware register for all 8 local variables. */
11108 if (p != p1 || p != p2 || p != p3 || p != p4
11109 || p != p5 || p != p6 || p != p7)
11110 _exit(1);
11111
11112 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11113 from child file descriptors. If the child closes a descriptor
11114 before it execs or exits, this munges the parent's descriptor
11115 as well. Test for this by closing stdout in the child. */
11116 _exit(close(fileno(stdout)) != 0);
11117 } else {
11118 int status;
11119 struct stat st;
11120
11121 while (wait(&status) != child)
11122 ;
11123 return (
11124 /* Was there some problem with vforking? */
11125 child < 0
11126
11127 /* Did the child fail? (This shouldn't happen.) */
11128 || status
11129
11130 /* Did the vfork/compiler bug occur? */
11131 || parent != getpid()
11132
11133 /* Did the file descriptor bug occur? */
11134 || fstat(fileno(stdout), &st) != 0
11135 );
11136 }
11137 }
11138 _ACEOF
11139 if ac_fn_cxx_try_run "$LINENO"; then :
11140 ac_cv_func_vfork_works=yes
11141 else
11142 ac_cv_func_vfork_works=no
11143 fi
11144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11145 conftest.$ac_objext conftest.beam conftest.$ac_ext
11146 fi
11147
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11150 $as_echo "$ac_cv_func_vfork_works" >&6; }
11151
11152 fi;
11153 if test "x$ac_cv_func_fork_works" = xcross; then
11154 ac_cv_func_vfork_works=$ac_cv_func_vfork
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11156 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11157 fi
11158
11159 if test "x$ac_cv_func_vfork_works" = xyes; then
11160
11161 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11162
11163 else
11164
11165 $as_echo "#define vfork fork" >>confdefs.h
11166
11167 fi
11168 if test "x$ac_cv_func_fork_works" = xyes; then
11169
11170 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11171
11172 fi
11173
11174
11175
11176 if test "X$prefix" = "XNONE"; then
11177 acl_final_prefix="$ac_default_prefix"
11178 else
11179 acl_final_prefix="$prefix"
11180 fi
11181 if test "X$exec_prefix" = "XNONE"; then
11182 acl_final_exec_prefix='${prefix}'
11183 else
11184 acl_final_exec_prefix="$exec_prefix"
11185 fi
11186 acl_save_prefix="$prefix"
11187 prefix="$acl_final_prefix"
11188 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11189 prefix="$acl_save_prefix"
11190
11191
11192 # Check whether --with-gnu-ld was given.
11193 if test "${with_gnu_ld+set}" = set; then :
11194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11195 else
11196 with_gnu_ld=no
11197 fi
11198
11199 # Prepare PATH_SEPARATOR.
11200 # The user is always right.
11201 if test "${PATH_SEPARATOR+set}" != set; then
11202 echo "#! /bin/sh" >conf$$.sh
11203 echo "exit 0" >>conf$$.sh
11204 chmod +x conf$$.sh
11205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11206 PATH_SEPARATOR=';'
11207 else
11208 PATH_SEPARATOR=:
11209 fi
11210 rm -f conf$$.sh
11211 fi
11212 ac_prog=ld
11213 if test "$GCC" = yes; then
11214 # Check if gcc -print-prog-name=ld gives a path.
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11216 $as_echo_n "checking for ld used by GCC... " >&6; }
11217 case $host in
11218 *-*-mingw*)
11219 # gcc leaves a trailing carriage return which upsets mingw
11220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11221 *)
11222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11223 esac
11224 case $ac_prog in
11225 # Accept absolute paths.
11226 [\\/]* | [A-Za-z]:[\\/]*)
11227 re_direlt='/[^/][^/]*/\.\./'
11228 # Canonicalize the path of ld
11229 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11230 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11231 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11232 done
11233 test -z "$LD" && LD="$ac_prog"
11234 ;;
11235 "")
11236 # If it fails, then pretend we aren't using GCC.
11237 ac_prog=ld
11238 ;;
11239 *)
11240 # If it is relative, then search for the first ld in PATH.
11241 with_gnu_ld=unknown
11242 ;;
11243 esac
11244 elif test "$with_gnu_ld" = yes; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11246 $as_echo_n "checking for GNU ld... " >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11249 $as_echo_n "checking for non-GNU ld... " >&6; }
11250 fi
11251 if ${acl_cv_path_LD+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 if test -z "$LD"; then
11255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11256 for ac_dir in $PATH; do
11257 test -z "$ac_dir" && ac_dir=.
11258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11259 acl_cv_path_LD="$ac_dir/$ac_prog"
11260 # Check to see if the program is GNU ld. I'd rather use --version,
11261 # but apparently some GNU ld's only accept -v.
11262 # Break only if it was the GNU/non-GNU ld that we prefer.
11263 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11264 test "$with_gnu_ld" != no && break
11265 else
11266 test "$with_gnu_ld" != yes && break
11267 fi
11268 fi
11269 done
11270 IFS="$ac_save_ifs"
11271 else
11272 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11273 fi
11274 fi
11275
11276 LD="$acl_cv_path_LD"
11277 if test -n "$LD"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11279 $as_echo "$LD" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11286 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11287 if ${acl_cv_prog_gnu_ld+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11291 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11292 acl_cv_prog_gnu_ld=yes
11293 else
11294 acl_cv_prog_gnu_ld=no
11295 fi
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11298 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11299 with_gnu_ld=$acl_cv_prog_gnu_ld
11300
11301
11302
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11304 $as_echo_n "checking for shared library run path origin... " >&6; }
11305 if ${acl_cv_rpath+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308
11309 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11310 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11311 . ./conftest.sh
11312 rm -f ./conftest.sh
11313 acl_cv_rpath=done
11314
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11317 $as_echo "$acl_cv_rpath" >&6; }
11318 wl="$acl_cv_wl"
11319 libext="$acl_cv_libext"
11320 shlibext="$acl_cv_shlibext"
11321 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11322 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11323 hardcode_direct="$acl_cv_hardcode_direct"
11324 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11325 # Check whether --enable-rpath was given.
11326 if test "${enable_rpath+set}" = set; then :
11327 enableval=$enable_rpath; :
11328 else
11329 enable_rpath=yes
11330 fi
11331
11332
11333
11334
11335
11336
11337
11338
11339 use_additional=yes
11340
11341 acl_save_prefix="$prefix"
11342 prefix="$acl_final_prefix"
11343 acl_save_exec_prefix="$exec_prefix"
11344 exec_prefix="$acl_final_exec_prefix"
11345
11346 eval additional_includedir=\"$includedir\"
11347 eval additional_libdir=\"$libdir\"
11348
11349 exec_prefix="$acl_save_exec_prefix"
11350 prefix="$acl_save_prefix"
11351
11352
11353 # Check whether --with-libiconv-prefix was given.
11354 if test "${with_libiconv_prefix+set}" = set; then :
11355 withval=$with_libiconv_prefix;
11356 if test "X$withval" = "Xno"; then
11357 use_additional=no
11358 else
11359 if test "X$withval" = "X"; then
11360
11361 acl_save_prefix="$prefix"
11362 prefix="$acl_final_prefix"
11363 acl_save_exec_prefix="$exec_prefix"
11364 exec_prefix="$acl_final_exec_prefix"
11365
11366 eval additional_includedir=\"$includedir\"
11367 eval additional_libdir=\"$libdir\"
11368
11369 exec_prefix="$acl_save_exec_prefix"
11370 prefix="$acl_save_prefix"
11371
11372 else
11373 additional_includedir="$withval/include"
11374 additional_libdir="$withval/lib"
11375 fi
11376 fi
11377
11378 fi
11379
11380
11381 # Check whether --with-libiconv-type was given.
11382 if test "${with_libiconv_type+set}" = set; then :
11383 withval=$with_libiconv_type; with_libiconv_type=$withval
11384 else
11385 with_libiconv_type=auto
11386 fi
11387
11388 lib_type=`eval echo \$with_libiconv_type`
11389
11390 LIBICONV=
11391 LTLIBICONV=
11392 INCICONV=
11393 rpathdirs=
11394 ltrpathdirs=
11395 names_already_handled=
11396 names_next_round='iconv '
11397 while test -n "$names_next_round"; do
11398 names_this_round="$names_next_round"
11399 names_next_round=
11400 for name in $names_this_round; do
11401 already_handled=
11402 for n in $names_already_handled; do
11403 if test "$n" = "$name"; then
11404 already_handled=yes
11405 break
11406 fi
11407 done
11408 if test -z "$already_handled"; then
11409 names_already_handled="$names_already_handled $name"
11410 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11411 eval value=\"\$HAVE_LIB$uppername\"
11412 if test -n "$value"; then
11413 if test "$value" = yes; then
11414 eval value=\"\$LIB$uppername\"
11415 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11416 eval value=\"\$LTLIB$uppername\"
11417 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11418 else
11419 :
11420 fi
11421 else
11422 found_dir=
11423 found_la=
11424 found_so=
11425 found_a=
11426 if test $use_additional = yes; then
11427 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11428 found_dir="$additional_libdir"
11429 found_so="$additional_libdir/lib$name.$shlibext"
11430 if test -f "$additional_libdir/lib$name.la"; then
11431 found_la="$additional_libdir/lib$name.la"
11432 fi
11433 elif test x$lib_type != xshared; then
11434 if test -f "$additional_libdir/lib$name.$libext"; then
11435 found_dir="$additional_libdir"
11436 found_a="$additional_libdir/lib$name.$libext"
11437 if test -f "$additional_libdir/lib$name.la"; then
11438 found_la="$additional_libdir/lib$name.la"
11439 fi
11440 fi
11441 fi
11442 fi
11443 if test "X$found_dir" = "X"; then
11444 for x in $LDFLAGS $LTLIBICONV; do
11445
11446 acl_save_prefix="$prefix"
11447 prefix="$acl_final_prefix"
11448 acl_save_exec_prefix="$exec_prefix"
11449 exec_prefix="$acl_final_exec_prefix"
11450 eval x=\"$x\"
11451 exec_prefix="$acl_save_exec_prefix"
11452 prefix="$acl_save_prefix"
11453
11454 case "$x" in
11455 -L*)
11456 dir=`echo "X$x" | sed -e 's/^X-L//'`
11457 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11458 found_dir="$dir"
11459 found_so="$dir/lib$name.$shlibext"
11460 if test -f "$dir/lib$name.la"; then
11461 found_la="$dir/lib$name.la"
11462 fi
11463 elif test x$lib_type != xshared; then
11464 if test -f "$dir/lib$name.$libext"; then
11465 found_dir="$dir"
11466 found_a="$dir/lib$name.$libext"
11467 if test -f "$dir/lib$name.la"; then
11468 found_la="$dir/lib$name.la"
11469 fi
11470 fi
11471 fi
11472 ;;
11473 esac
11474 if test "X$found_dir" != "X"; then
11475 break
11476 fi
11477 done
11478 fi
11479 if test "X$found_dir" != "X"; then
11480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11481 if test "X$found_so" != "X"; then
11482 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11484 else
11485 haveit=
11486 for x in $ltrpathdirs; do
11487 if test "X$x" = "X$found_dir"; then
11488 haveit=yes
11489 break
11490 fi
11491 done
11492 if test -z "$haveit"; then
11493 ltrpathdirs="$ltrpathdirs $found_dir"
11494 fi
11495 if test "$hardcode_direct" = yes; then
11496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11497 else
11498 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11500 haveit=
11501 for x in $rpathdirs; do
11502 if test "X$x" = "X$found_dir"; then
11503 haveit=yes
11504 break
11505 fi
11506 done
11507 if test -z "$haveit"; then
11508 rpathdirs="$rpathdirs $found_dir"
11509 fi
11510 else
11511 haveit=
11512 for x in $LDFLAGS $LIBICONV; do
11513
11514 acl_save_prefix="$prefix"
11515 prefix="$acl_final_prefix"
11516 acl_save_exec_prefix="$exec_prefix"
11517 exec_prefix="$acl_final_exec_prefix"
11518 eval x=\"$x\"
11519 exec_prefix="$acl_save_exec_prefix"
11520 prefix="$acl_save_prefix"
11521
11522 if test "X$x" = "X-L$found_dir"; then
11523 haveit=yes
11524 break
11525 fi
11526 done
11527 if test -z "$haveit"; then
11528 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11529 fi
11530 if test "$hardcode_minus_L" != no; then
11531 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11532 else
11533 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11534 fi
11535 fi
11536 fi
11537 fi
11538 else
11539 if test "X$found_a" != "X"; then
11540 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11541 else
11542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11543 fi
11544 fi
11545 additional_includedir=
11546 case "$found_dir" in
11547 */lib | */lib/)
11548 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11549 additional_includedir="$basedir/include"
11550 ;;
11551 esac
11552 if test "X$additional_includedir" != "X"; then
11553 if test "X$additional_includedir" != "X/usr/include"; then
11554 haveit=
11555 if test "X$additional_includedir" = "X/usr/local/include"; then
11556 if test -n "$GCC"; then
11557 case $host_os in
11558 linux*) haveit=yes;;
11559 esac
11560 fi
11561 fi
11562 if test -z "$haveit"; then
11563 for x in $CPPFLAGS $INCICONV; do
11564
11565 acl_save_prefix="$prefix"
11566 prefix="$acl_final_prefix"
11567 acl_save_exec_prefix="$exec_prefix"
11568 exec_prefix="$acl_final_exec_prefix"
11569 eval x=\"$x\"
11570 exec_prefix="$acl_save_exec_prefix"
11571 prefix="$acl_save_prefix"
11572
11573 if test "X$x" = "X-I$additional_includedir"; then
11574 haveit=yes
11575 break
11576 fi
11577 done
11578 if test -z "$haveit"; then
11579 if test -d "$additional_includedir"; then
11580 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11581 fi
11582 fi
11583 fi
11584 fi
11585 fi
11586 if test -n "$found_la"; then
11587 save_libdir="$libdir"
11588 case "$found_la" in
11589 */* | *\\*) . "$found_la" ;;
11590 *) . "./$found_la" ;;
11591 esac
11592 libdir="$save_libdir"
11593 for dep in $dependency_libs; do
11594 case "$dep" in
11595 -L*)
11596 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11597 if test "X$additional_libdir" != "X/usr/lib"; then
11598 haveit=
11599 if test "X$additional_libdir" = "X/usr/local/lib"; then
11600 if test -n "$GCC"; then
11601 case $host_os in
11602 linux*) haveit=yes;;
11603 esac
11604 fi
11605 fi
11606 if test -z "$haveit"; then
11607 haveit=
11608 for x in $LDFLAGS $LIBICONV; do
11609
11610 acl_save_prefix="$prefix"
11611 prefix="$acl_final_prefix"
11612 acl_save_exec_prefix="$exec_prefix"
11613 exec_prefix="$acl_final_exec_prefix"
11614 eval x=\"$x\"
11615 exec_prefix="$acl_save_exec_prefix"
11616 prefix="$acl_save_prefix"
11617
11618 if test "X$x" = "X-L$additional_libdir"; then
11619 haveit=yes
11620 break
11621 fi
11622 done
11623 if test -z "$haveit"; then
11624 if test -d "$additional_libdir"; then
11625 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11626 fi
11627 fi
11628 haveit=
11629 for x in $LDFLAGS $LTLIBICONV; do
11630
11631 acl_save_prefix="$prefix"
11632 prefix="$acl_final_prefix"
11633 acl_save_exec_prefix="$exec_prefix"
11634 exec_prefix="$acl_final_exec_prefix"
11635 eval x=\"$x\"
11636 exec_prefix="$acl_save_exec_prefix"
11637 prefix="$acl_save_prefix"
11638
11639 if test "X$x" = "X-L$additional_libdir"; then
11640 haveit=yes
11641 break
11642 fi
11643 done
11644 if test -z "$haveit"; then
11645 if test -d "$additional_libdir"; then
11646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11647 fi
11648 fi
11649 fi
11650 fi
11651 ;;
11652 -R*)
11653 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11654 if test "$enable_rpath" != no; then
11655 haveit=
11656 for x in $rpathdirs; do
11657 if test "X$x" = "X$dir"; then
11658 haveit=yes
11659 break
11660 fi
11661 done
11662 if test -z "$haveit"; then
11663 rpathdirs="$rpathdirs $dir"
11664 fi
11665 haveit=
11666 for x in $ltrpathdirs; do
11667 if test "X$x" = "X$dir"; then
11668 haveit=yes
11669 break
11670 fi
11671 done
11672 if test -z "$haveit"; then
11673 ltrpathdirs="$ltrpathdirs $dir"
11674 fi
11675 fi
11676 ;;
11677 -l*)
11678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11679 ;;
11680 *.la)
11681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11682 ;;
11683 *)
11684 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11686 ;;
11687 esac
11688 done
11689 fi
11690 else
11691 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11692 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11694 else
11695 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11696 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11697 fi
11698 fi
11699 fi
11700 fi
11701 done
11702 done
11703 if test "X$rpathdirs" != "X"; then
11704 if test -n "$hardcode_libdir_separator"; then
11705 alldirs=
11706 for found_dir in $rpathdirs; do
11707 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11708 done
11709 acl_save_libdir="$libdir"
11710 libdir="$alldirs"
11711 eval flag=\"$hardcode_libdir_flag_spec\"
11712 libdir="$acl_save_libdir"
11713 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11714 else
11715 for found_dir in $rpathdirs; do
11716 acl_save_libdir="$libdir"
11717 libdir="$found_dir"
11718 eval flag=\"$hardcode_libdir_flag_spec\"
11719 libdir="$acl_save_libdir"
11720 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11721 done
11722 fi
11723 fi
11724 if test "X$ltrpathdirs" != "X"; then
11725 for found_dir in $ltrpathdirs; do
11726 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11727 done
11728 fi
11729
11730
11731
11732
11733
11734
11735
11736 am_save_CPPFLAGS="$CPPFLAGS"
11737
11738 for element in $INCICONV; do
11739 haveit=
11740 for x in $CPPFLAGS; do
11741
11742 acl_save_prefix="$prefix"
11743 prefix="$acl_final_prefix"
11744 acl_save_exec_prefix="$exec_prefix"
11745 exec_prefix="$acl_final_exec_prefix"
11746 eval x=\"$x\"
11747 exec_prefix="$acl_save_exec_prefix"
11748 prefix="$acl_save_prefix"
11749
11750 if test "X$x" = "X$element"; then
11751 haveit=yes
11752 break
11753 fi
11754 done
11755 if test -z "$haveit"; then
11756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11757 fi
11758 done
11759
11760
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11762 $as_echo_n "checking for iconv... " >&6; }
11763 if ${am_cv_func_iconv+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766
11767 am_cv_func_iconv="no, consider installing GNU libiconv"
11768 am_cv_lib_iconv=no
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771
11772 #include <stdlib.h>
11773 #include <iconv.h>
11774
11775 int
11776 main ()
11777 {
11778 iconv_t cd = iconv_open("","");
11779 iconv(cd,NULL,NULL,NULL,NULL);
11780 iconv_close(cd);
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_cxx_try_link "$LINENO"; then :
11786 am_cv_func_iconv=yes
11787 fi
11788 rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 if test "$am_cv_func_iconv" != yes; then
11791 am_save_LIBS="$LIBS"
11792 LIBS="$LIBS $LIBICONV"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11795
11796 #include <stdlib.h>
11797 #include <iconv.h>
11798
11799 int
11800 main ()
11801 {
11802 iconv_t cd = iconv_open("","");
11803 iconv(cd,NULL,NULL,NULL,NULL);
11804 iconv_close(cd);
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_cxx_try_link "$LINENO"; then :
11810 am_cv_lib_iconv=yes
11811 am_cv_func_iconv=yes
11812 fi
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815 LIBS="$am_save_LIBS"
11816 fi
11817
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11820 $as_echo "$am_cv_func_iconv" >&6; }
11821 if test "$am_cv_func_iconv" = yes; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11823 $as_echo_n "checking for working iconv... " >&6; }
11824 if ${am_cv_func_iconv_works+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827
11828 am_save_LIBS="$LIBS"
11829 if test $am_cv_lib_iconv = yes; then
11830 LIBS="$LIBS $LIBICONV"
11831 fi
11832 am_cv_func_iconv_works=no
11833 for ac_iconv_const in '' 'const'; do
11834 if test "$cross_compiling" = yes; then :
11835 case "$host_os" in
11836 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11837 *) am_cv_func_iconv_works="guessing yes" ;;
11838 esac
11839 else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842
11843 #include <iconv.h>
11844 #include <string.h>
11845
11846 #ifndef ICONV_CONST
11847 # define ICONV_CONST $ac_iconv_const
11848 #endif
11849
11850 int
11851 main ()
11852 {
11853 int result = 0;
11854 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11855 successful returns. This is even documented in
11856 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11857 {
11858 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11859 if (cd_utf8_to_88591 != (iconv_t)(-1))
11860 {
11861 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11862 char buf[10];
11863 ICONV_CONST char *inptr = input;
11864 size_t inbytesleft = strlen (input);
11865 char *outptr = buf;
11866 size_t outbytesleft = sizeof (buf);
11867 size_t res = iconv (cd_utf8_to_88591,
11868 &inptr, &inbytesleft,
11869 &outptr, &outbytesleft);
11870 if (res == 0)
11871 result |= 1;
11872 iconv_close (cd_utf8_to_88591);
11873 }
11874 }
11875 /* Test against Solaris 10 bug: Failures are not distinguishable from
11876 successful returns. */
11877 {
11878 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11879 if (cd_ascii_to_88591 != (iconv_t)(-1))
11880 {
11881 static ICONV_CONST char input[] = "\263";
11882 char buf[10];
11883 ICONV_CONST char *inptr = input;
11884 size_t inbytesleft = strlen (input);
11885 char *outptr = buf;
11886 size_t outbytesleft = sizeof (buf);
11887 size_t res = iconv (cd_ascii_to_88591,
11888 &inptr, &inbytesleft,
11889 &outptr, &outbytesleft);
11890 if (res == 0)
11891 result |= 2;
11892 iconv_close (cd_ascii_to_88591);
11893 }
11894 }
11895 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11896 {
11897 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11898 if (cd_88591_to_utf8 != (iconv_t)(-1))
11899 {
11900 static ICONV_CONST char input[] = "\304";
11901 static char buf[2] = { (char)0xDE, (char)0xAD };
11902 ICONV_CONST char *inptr = input;
11903 size_t inbytesleft = 1;
11904 char *outptr = buf;
11905 size_t outbytesleft = 1;
11906 size_t res = iconv (cd_88591_to_utf8,
11907 &inptr, &inbytesleft,
11908 &outptr, &outbytesleft);
11909 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11910 result |= 4;
11911 iconv_close (cd_88591_to_utf8);
11912 }
11913 }
11914 #if 0 /* This bug could be worked around by the caller. */
11915 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11916 {
11917 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11918 if (cd_88591_to_utf8 != (iconv_t)(-1))
11919 {
11920 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11921 char buf[50];
11922 ICONV_CONST char *inptr = input;
11923 size_t inbytesleft = strlen (input);
11924 char *outptr = buf;
11925 size_t outbytesleft = sizeof (buf);
11926 size_t res = iconv (cd_88591_to_utf8,
11927 &inptr, &inbytesleft,
11928 &outptr, &outbytesleft);
11929 if ((int)res > 0)
11930 result |= 8;
11931 iconv_close (cd_88591_to_utf8);
11932 }
11933 }
11934 #endif
11935 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11936 provided. */
11937 {
11938 /* Try standardized names. */
11939 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11940 /* Try IRIX, OSF/1 names. */
11941 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11942 /* Try AIX names. */
11943 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11944 /* Try HP-UX names. */
11945 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11946 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11947 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11948 result |= 16;
11949 if (cd1 != (iconv_t)(-1))
11950 iconv_close (cd1);
11951 if (cd2 != (iconv_t)(-1))
11952 iconv_close (cd2);
11953 if (cd3 != (iconv_t)(-1))
11954 iconv_close (cd3);
11955 if (cd4 != (iconv_t)(-1))
11956 iconv_close (cd4);
11957 }
11958 return result;
11959
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_cxx_try_run "$LINENO"; then :
11965 am_cv_func_iconv_works=yes
11966 fi
11967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11968 conftest.$ac_objext conftest.beam conftest.$ac_ext
11969 fi
11970
11971 test "$am_cv_func_iconv_works" = no || break
11972 done
11973 LIBS="$am_save_LIBS"
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11977 $as_echo "$am_cv_func_iconv_works" >&6; }
11978 case "$am_cv_func_iconv_works" in
11979 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11980 *) am_func_iconv=yes ;;
11981 esac
11982 else
11983 am_func_iconv=no am_cv_lib_iconv=no
11984 fi
11985 if test "$am_func_iconv" = yes; then
11986
11987 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11988
11989 fi
11990 if test "$am_cv_lib_iconv" = yes; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11992 $as_echo_n "checking how to link with libiconv... " >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11994 $as_echo "$LIBICONV" >&6; }
11995 else
11996 CPPFLAGS="$am_save_CPPFLAGS"
11997 LIBICONV=
11998 LTLIBICONV=
11999 fi
12000
12001
12002
12003 if test "$am_cv_func_iconv" = yes; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12005 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12006 if ${gl_cv_iconv_nonconst+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011
12012 #include <stdlib.h>
12013 #include <iconv.h>
12014 extern
12015 #ifdef __cplusplus
12016 "C"
12017 #endif
12018 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12019
12020 int
12021 main ()
12022 {
12023
12024 ;
12025 return 0;
12026 }
12027 _ACEOF
12028 if ac_fn_cxx_try_compile "$LINENO"; then :
12029 gl_cv_iconv_nonconst=yes
12030 else
12031 gl_cv_iconv_nonconst=no
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12037 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12038 else
12039 gl_cv_iconv_nonconst=yes
12040 fi
12041 if test $gl_cv_iconv_nonconst = yes; then
12042 iconv_arg1=""
12043 else
12044 iconv_arg1="const"
12045 fi
12046
12047 cat >>confdefs.h <<_ACEOF
12048 #define ICONV_CONST $iconv_arg1
12049 _ACEOF
12050
12051
12052
12053 if test "$am_func_iconv" = yes; then
12054 if test -n "$LIBICONV"; then
12055 am_cv_func_iconv_summary='yes, in libiconv'
12056 else
12057 am_cv_func_iconv_summary='yes, in libc'
12058 fi
12059 else
12060 if test "$am_cv_func_iconv" = yes; then
12061 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12062 else
12063 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12064 fi
12065 fi
12066
12067
12068 # Until we have in-tree GNU iconv:
12069 LIBICONV_DEP=
12070 if test -f "$LTLIBICONV"; then
12071 LIBICONV_DEP=$LTLIBICONV
12072 fi
12073
12074
12075
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12077 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12078 if ${am_cv_val_LC_MESSAGES+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083 #include <locale.h>
12084 int
12085 main ()
12086 {
12087 return LC_MESSAGES
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_cxx_try_link "$LINENO"; then :
12093 am_cv_val_LC_MESSAGES=yes
12094 else
12095 am_cv_val_LC_MESSAGES=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12101 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12102 if test $am_cv_val_LC_MESSAGES = yes; then
12103
12104 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12105
12106 fi
12107
12108
12109
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12111 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12112 if ${am_cv_langinfo_codeset+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117 #include <langinfo.h>
12118 int
12119 main ()
12120 {
12121 char* cs = nl_langinfo(CODESET);
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_cxx_try_link "$LINENO"; then :
12127 am_cv_langinfo_codeset=yes
12128 else
12129 am_cv_langinfo_codeset=no
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133
12134 fi
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12136 $as_echo "$am_cv_langinfo_codeset" >&6; }
12137 if test $am_cv_langinfo_codeset = yes; then
12138
12139 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12140
12141 fi
12142
12143
12144 # We will need to find libiberty.h and ansidecl.h
12145 saved_CFLAGS="$CFLAGS"
12146 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12147 saved_CXXFLAGS="$CXXFLAGS"
12148 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12149
12150 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12151 # normal autoconf function for these. But force definition of
12152 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12153 # basename handling in libiberty.h.
12154 # Match the configure test in libiberty so that we have a consistent result.
12155 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char*)" | $as_tr_sh`
12156 ac_fn_cxx_check_decl "$LINENO" "basename(char*)" "$as_ac_Symbol" "
12157 #undef HAVE_DECL_BASENAME
12158 #define HAVE_DECL_BASENAME 1
12159 #if HAVE_LIBGEN_H
12160 # include <libgen.h>
12161 #endif
12162 #include \"ansidecl.h\"
12163 #include \"system.h\"
12164 "
12165 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12166 ac_have_decl=1
12167 else
12168 ac_have_decl=0
12169 fi
12170
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_BASENAME $ac_have_decl
12173 _ACEOF
12174
12175
12176 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12177 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12178 #include \"ansidecl.h\"
12179 #include \"system.h\"
12180 "
12181 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12182 ac_have_decl=1
12183 else
12184 ac_have_decl=0
12185 fi
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define HAVE_DECL_STRSTR $ac_have_decl
12189 _ACEOF
12190
12191
12192 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12193 madvise mkstemps stpcpy strnlen strsignal strverscmp \
12194 strtol strtoul strtoll strtoull setenv unsetenv \
12195 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12196 free getopt clock getpagesize ffs fmemopen 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
12197 do
12198 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12200 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12201 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #undef $ac_tr_decl
12207 #define $ac_tr_decl 1
12208
12209 #include "ansidecl.h"
12210 #include "system.h"
12211
12212 int
12213 main ()
12214 {
12215 #ifndef $ac_func
12216 char *(*pfn) = (char *(*)) $ac_func ;
12217 #endif
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_cxx_try_compile "$LINENO"; then :
12223 eval "gcc_cv_have_decl_$ac_func=yes"
12224 else
12225 eval "gcc_cv_have_decl_$ac_func=no"
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 fi
12229
12230 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12232 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12233 #define $ac_tr_decl 1
12234 _ACEOF
12235
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12239 #define $ac_tr_decl 0
12240 _ACEOF
12241
12242 fi
12243
12244 done
12245
12246
12247 for ac_func in getrlimit setrlimit getrusage
12248 do
12249 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12251 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12252 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #undef $ac_tr_decl
12258 #define $ac_tr_decl 1
12259
12260 #include "ansidecl.h"
12261 #include "system.h"
12262 #ifdef HAVE_SYS_RESOURCE_H
12263 #include <sys/resource.h>
12264 #endif
12265
12266
12267 int
12268 main ()
12269 {
12270 #ifndef $ac_func
12271 char *(*pfn) = (char *(*)) $ac_func ;
12272 #endif
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_cxx_try_compile "$LINENO"; then :
12278 eval "gcc_cv_have_decl_$ac_func=yes"
12279 else
12280 eval "gcc_cv_have_decl_$ac_func=no"
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 fi
12284
12285 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12288 #define $ac_tr_decl 1
12289 _ACEOF
12290
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12294 #define $ac_tr_decl 0
12295 _ACEOF
12296
12297 fi
12298
12299 done
12300
12301
12302 for ac_func in mallinfo mallinfo2
12303 do
12304 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12306 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12307 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 #undef $ac_tr_decl
12313 #define $ac_tr_decl 1
12314
12315 #include "ansidecl.h"
12316 #include "system.h"
12317 #ifdef HAVE_MALLOC_H
12318 #include <malloc.h>
12319 #endif
12320
12321
12322 int
12323 main ()
12324 {
12325 #ifndef $ac_func
12326 char *(*pfn) = (char *(*)) $ac_func ;
12327 #endif
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_cxx_try_compile "$LINENO"; then :
12333 eval "gcc_cv_have_decl_$ac_func=yes"
12334 else
12335 eval "gcc_cv_have_decl_$ac_func=no"
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339
12340 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12343 #define $ac_tr_decl 1
12344 _ACEOF
12345
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12349 #define $ac_tr_decl 0
12350 _ACEOF
12351
12352 fi
12353
12354 done
12355
12356
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 #include "ansidecl.h"
12361 #include "system.h"
12362 #ifdef HAVE_SYS_RESOURCE_H
12363 #include <sys/resource.h>
12364 #endif
12365
12366 int
12367 main ()
12368 {
12369 rlim_t l = 0;
12370 ;
12371 return 0;
12372 }
12373 _ACEOF
12374 if ac_fn_cxx_try_compile "$LINENO"; then :
12375
12376 else
12377
12378 $as_echo "#define rlim_t long" >>confdefs.h
12379
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382
12383 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12384 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12385 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12386 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12387 for ac_func in ldgetname
12388 do
12389 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12391 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12392 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 #undef $ac_tr_decl
12398 #define $ac_tr_decl 1
12399
12400 #include "ansidecl.h"
12401 #include "system.h"
12402 #ifdef HAVE_LDFCN_H
12403 #undef FREAD
12404 #undef FWRITE
12405 #include <ldfcn.h>
12406 #endif
12407
12408
12409 int
12410 main ()
12411 {
12412 #ifndef $ac_func
12413 char *(*pfn) = (char *(*)) $ac_func ;
12414 #endif
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 if ac_fn_cxx_try_compile "$LINENO"; then :
12420 eval "gcc_cv_have_decl_$ac_func=yes"
12421 else
12422 eval "gcc_cv_have_decl_$ac_func=no"
12423 fi
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 fi
12426
12427 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12430 #define $ac_tr_decl 1
12431 _ACEOF
12432
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12436 #define $ac_tr_decl 0
12437 _ACEOF
12438
12439 fi
12440
12441 done
12442
12443
12444 for ac_func in times
12445 do
12446 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12448 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12449 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #undef $ac_tr_decl
12455 #define $ac_tr_decl 1
12456
12457 #include "ansidecl.h"
12458 #include "system.h"
12459 #ifdef HAVE_SYS_TIMES_H
12460 #include <sys/times.h>
12461 #endif
12462
12463
12464 int
12465 main ()
12466 {
12467 #ifndef $ac_func
12468 char *(*pfn) = (char *(*)) $ac_func ;
12469 #endif
12470 ;
12471 return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_cxx_try_compile "$LINENO"; then :
12475 eval "gcc_cv_have_decl_$ac_func=yes"
12476 else
12477 eval "gcc_cv_have_decl_$ac_func=no"
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 fi
12481
12482 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12485 #define $ac_tr_decl 1
12486 _ACEOF
12487
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12491 #define $ac_tr_decl 0
12492 _ACEOF
12493
12494 fi
12495
12496 done
12497
12498
12499 for ac_func in sigaltstack
12500 do
12501 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12503 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12504 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #undef $ac_tr_decl
12510 #define $ac_tr_decl 1
12511
12512 #include "ansidecl.h"
12513 #include "system.h"
12514 #include <signal.h>
12515
12516
12517 int
12518 main ()
12519 {
12520 #ifndef $ac_func
12521 char *(*pfn) = (char *(*)) $ac_func ;
12522 #endif
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_cxx_try_compile "$LINENO"; then :
12528 eval "gcc_cv_have_decl_$ac_func=yes"
12529 else
12530 eval "gcc_cv_have_decl_$ac_func=no"
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533 fi
12534
12535 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12537 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12538 #define $ac_tr_decl 1
12539 _ACEOF
12540
12541 else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12544 #define $ac_tr_decl 0
12545 _ACEOF
12546
12547 fi
12548
12549 done
12550
12551
12552 # More time-related stuff.
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12554 $as_echo_n "checking for struct tms... " >&6; }
12555 if ${ac_cv_struct_tms+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561
12562 #include "ansidecl.h"
12563 #include "system.h"
12564 #ifdef HAVE_SYS_TIMES_H
12565 #include <sys/times.h>
12566 #endif
12567
12568 int
12569 main ()
12570 {
12571 struct tms tms;
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_cxx_try_compile "$LINENO"; then :
12577 ac_cv_struct_tms=yes
12578 else
12579 ac_cv_struct_tms=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12584 $as_echo "$ac_cv_struct_tms" >&6; }
12585 if test $ac_cv_struct_tms = yes; then
12586
12587 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12588
12589 fi
12590
12591 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12592 # revisit after autoconf 2.50.
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12594 $as_echo_n "checking for clock_t... " >&6; }
12595 if ${gcc_cv_type_clock_t+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601
12602 #include "ansidecl.h"
12603 #include "system.h"
12604
12605 int
12606 main ()
12607 {
12608 clock_t x;
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_cxx_try_compile "$LINENO"; then :
12614 gcc_cv_type_clock_t=yes
12615 else
12616 gcc_cv_type_clock_t=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12621 $as_echo "$gcc_cv_type_clock_t" >&6; }
12622 if test $gcc_cv_type_clock_t = yes; then
12623
12624 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12625
12626 fi
12627
12628 # Check if F_SETLKW is supported by fcntl.
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12630 $as_echo_n "checking for F_SETLKW... " >&6; }
12631 if ${ac_cv_f_setlkw+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12637
12638 #include <fcntl.h>
12639 int
12640 main ()
12641 {
12642
12643 struct flock fl;
12644 fl.l_whence = 0;
12645 fl.l_start = 0;
12646 fl.l_len = 0;
12647 fl.l_pid = 0;
12648 return fcntl (1, F_SETLKW, &fl);
12649 ;
12650 return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_cxx_try_compile "$LINENO"; then :
12654 ac_cv_f_setlkw=yes
12655 else
12656 ac_cv_f_setlkw=no
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12661 $as_echo "$ac_cv_f_setlkw" >&6; }
12662 if test $ac_cv_f_setlkw = yes; then
12663
12664 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12665
12666 fi
12667
12668 # Check if O_CLOEXEC is defined by fcntl
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12670 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12671 if ${ac_cv_o_cloexec+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677
12678 #include <fcntl.h>
12679 int
12680 main ()
12681 {
12682
12683 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_cxx_try_compile "$LINENO"; then :
12689 ac_cv_o_cloexec=yes
12690 else
12691 ac_cv_o_cloexec=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12696 $as_echo "$ac_cv_o_cloexec" >&6; }
12697 if test $ac_cv_o_cloexec = yes; then
12698
12699 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12700
12701 fi
12702
12703 # Check if O_NONBLOCK is defined by fcntl
12704 for ac_header in fcntl.h
12705 do :
12706 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12707 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_FCNTL_H 1
12710 _ACEOF
12711
12712 fi
12713 done
12714
12715 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12716 "
12717 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12718
12719 fi
12720
12721 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12722
12723 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12724
12725 fi
12726
12727 # Check if personality and ADDR_NO_RANDOMIZE are declared
12728 # in sys/personality.h
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for personality ADDR_NO_RANDOMIZE" >&5
12730 $as_echo_n "checking for personality ADDR_NO_RANDOMIZE... " >&6; }
12731 if ${ac_cv_personality_addr_no_randomize+:} false; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 #include <sys/personality.h>
12739 int
12740 main ()
12741 {
12742
12743 personality (personality (0xffffffffU) | ADDR_NO_RANDOMIZE);
12744 ;
12745 return 0;
12746 }
12747 _ACEOF
12748 if ac_fn_cxx_try_compile "$LINENO"; then :
12749 ac_cv_personality_addr_no_randomize=yes
12750 else
12751 ac_cv_personality_addr_no_randomize=no
12752 fi
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_personality_addr_no_randomize" >&5
12756 $as_echo "$ac_cv_personality_addr_no_randomize" >&6; }
12757 if test $ac_cv_personality_addr_no_randomize = yes; then
12758
12759 $as_echo "#define HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE 1" >>confdefs.h
12760
12761 fi
12762
12763
12764 # C++ Modules would like some networking features to provide the mapping
12765 # server. You can still use modules without them though.
12766 # The following network-related checks could probably do with some
12767 # Windows and other non-linux defenses and checking.
12768
12769 # Local socket connectivity wants AF_UNIX networking
12770 # Check for AF_UNIX networking
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12772 $as_echo_n "checking for AF_UNIX... " >&6; }
12773 if ${ac_cv_af_unix+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779
12780 #include <sys/types.h>
12781 #include <sys/socket.h>
12782 #include <sys/un.h>
12783 #include <netinet/in.h>
12784 int
12785 main ()
12786 {
12787
12788 sockaddr_un un;
12789 un.sun_family = AF_UNSPEC;
12790 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12791 connect (fd, (sockaddr *)&un, sizeof (un));
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_cxx_try_compile "$LINENO"; then :
12797 ac_cv_af_unix=yes
12798 else
12799 ac_cv_af_unix=no
12800 fi
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12804 $as_echo "$ac_cv_af_unix" >&6; }
12805 if test $ac_cv_af_unix = yes; then
12806
12807 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12808
12809 fi
12810
12811 # Remote socket connectivity wants AF_INET6 networking
12812 # Check for AF_INET6 networking
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12814 $as_echo_n "checking for AF_INET6... " >&6; }
12815 if ${ac_cv_af_inet6+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821
12822 #include <sys/types.h>
12823 #include <sys/socket.h>
12824 #include <netinet/in.h>
12825 #include <netdb.h>
12826 int
12827 main ()
12828 {
12829
12830 sockaddr_in6 in6;
12831 in6.sin6_family = AF_UNSPEC;
12832 struct addrinfo *addrs = 0;
12833 struct addrinfo hints;
12834 hints.ai_flags = 0;
12835 hints.ai_family = AF_INET6;
12836 hints.ai_socktype = SOCK_STREAM;
12837 hints.ai_protocol = 0;
12838 hints.ai_canonname = 0;
12839 hints.ai_addr = 0;
12840 hints.ai_next = 0;
12841 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12842 const char *str = gai_strerror (e);
12843 freeaddrinfo (addrs);
12844 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12845 connect (fd, (sockaddr *)&in6, sizeof (in6));
12846 ;
12847 return 0;
12848 }
12849 _ACEOF
12850 if ac_fn_cxx_try_compile "$LINENO"; then :
12851 ac_cv_af_inet6=yes
12852 else
12853 ac_cv_af_inet6=no
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12858 $as_echo "$ac_cv_af_inet6" >&6; }
12859 if test $ac_cv_af_inet6 = yes; then
12860
12861 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12862
12863 fi
12864
12865 # Check if _LK_LOCK is supported by _locking
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12867 $as_echo_n "checking for _LK_LOCK... " >&6; }
12868 if ${ac_cv_lk_lock+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 #include <io.h>
12876 #include <sys/locking.h>
12877 int
12878 main ()
12879 {
12880
12881 int fd;
12882 return _locking (fd, _LK_LOCK, 0);
12883 ;
12884 return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_cxx_try_compile "$LINENO"; then :
12888 ac_cv_lk_lock=yes
12889 else
12890 ac_cv_lk_lock=no
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 fi
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12895 $as_echo "$ac_cv_lk_lock" >&6; }
12896 if test $ac_cv_lk_lock = yes; then
12897
12898 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12899
12900 fi
12901
12902 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12903 CFLAGS="$saved_CFLAGS"
12904 CXXFLAGS="$saved_CXXFLAGS"
12905
12906 # mkdir takes a single argument on some systems.
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12908 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12909 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914
12915 #include <sys/types.h>
12916 #ifdef HAVE_SYS_STAT_H
12917 # include <sys/stat.h>
12918 #endif
12919 #ifdef HAVE_UNISTD_H
12920 # include <unistd.h>
12921 #endif
12922 #ifdef HAVE_DIRECT_H
12923 # include <direct.h>
12924 #endif
12925 int
12926 main ()
12927 {
12928 mkdir ("foo", 0);
12929 ;
12930 return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_cxx_try_compile "$LINENO"; then :
12934 gcc_cv_mkdir_takes_one_arg=no
12935 else
12936 gcc_cv_mkdir_takes_one_arg=yes
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12941 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12942 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12943
12944 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12945
12946 fi
12947
12948
12949 # File extensions
12950 manext='.1'
12951 objext='.o'
12952
12953
12954
12955 # With Setjmp/Longjmp based exception handling.
12956 # Check whether --enable-sjlj-exceptions was given.
12957 if test "${enable_sjlj_exceptions+set}" = set; then :
12958 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12959 else
12960 case $target in
12961 lm32*-*-*)
12962 force_sjlj_exceptions=yes
12963 enableval=yes
12964 ;;
12965 *)
12966 force_sjlj_exceptions=no
12967 ;;
12968 esac
12969 fi
12970
12971 if test $force_sjlj_exceptions = yes; then
12972 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12973
12974 cat >>confdefs.h <<_ACEOF
12975 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12976 _ACEOF
12977
12978 fi
12979
12980 # Windows32 UTF-8 manifest support for running the driver and compiler
12981 # executables with the UTF-8 active code page on mingw hosts.
12982 # Non-mingw hosts ignore this option.
12983 # The shell variables this sets are picked up from the mingw branches
12984 # of config.host so they have to be set before it gets sourced.
12985 # Check whether --enable-win32-utf8-manifest was given.
12986 if test "${enable_win32_utf8_manifest+set}" = set; then :
12987 enableval=$enable_win32_utf8_manifest;
12988 fi
12989
12990
12991 if test "x$enable_win32_utf8_manifest" != xno; then
12992 host_xmake_mingw=i386/x-mingw32-utf8
12993 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
12994 host_extra_objs_mingw=utf8-mingw32.o
12995 fi
12996
12997 # --------------------------------------------------------
12998 # Build, host, and target specific configuration fragments
12999 # --------------------------------------------------------
13000
13001 # Collect build-machine-specific information.
13002 . ${srcdir}/config.build || exit 1
13003
13004 # Collect host-machine-specific information.
13005 . ${srcdir}/config.host || exit 1
13006
13007 target_gtfiles=
13008
13009 # Collect target-machine-specific information.
13010 . ${srcdir}/config.gcc || exit 1
13011
13012 extra_objs="${host_extra_objs} ${extra_objs}"
13013 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13014
13015 # Default the target-machine variables that were not explicitly set.
13016 if test x"$tm_file" = x
13017 then tm_file=$cpu_type/$cpu_type.h; fi
13018
13019 if test x"$extra_headers" = x
13020 then extra_headers=; fi
13021
13022 if test x$md_file = x
13023 then md_file=$cpu_type/$cpu_type.md; fi
13024
13025 if test x$out_file = x
13026 then out_file=$cpu_type/$cpu_type.cc; fi
13027
13028 if test x"$tmake_file" = x
13029 then tmake_file=$cpu_type/t-$cpu_type
13030 fi
13031
13032 # Support --enable-initfini-array.
13033 if test x$enable_initfini_array != xno; then
13034 tm_file="${tm_file} initfini-array.h"
13035 fi
13036
13037 if test x"$dwarf2" = xyes
13038 then tm_file="$tm_file tm-dwarf2.h"
13039 fi
13040
13041 # Say what files are being used for the output code and MD file.
13042 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13043 echo "Using \`$srcdir/config/$md_file' as machine description file."
13044
13045 # If any of the xm_file variables contain nonexistent files, warn
13046 # about them and drop them.
13047
13048 bx=
13049 for x in $build_xm_file; do
13050 if test -f $srcdir/config/$x
13051 then bx="$bx $x"
13052 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13053 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13054 fi
13055 done
13056 build_xm_file="$bx"
13057
13058 hx=
13059 for x in $host_xm_file; do
13060 if test -f $srcdir/config/$x
13061 then hx="$hx $x"
13062 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13063 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13064 fi
13065 done
13066 host_xm_file="$hx"
13067
13068 tx=
13069 for x in $xm_file; do
13070 if test -f $srcdir/config/$x
13071 then tx="$tx $x"
13072 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13073 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13074 fi
13075 done
13076 xm_file="$tx"
13077
13078 count=a
13079 for f in $tm_file; do
13080 count=${count}x
13081 done
13082 if test $count = ax; then
13083 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13084 else
13085 echo "Using the following target machine macro files:"
13086 for f in $tm_file; do
13087 echo " $srcdir/config/$f"
13088 done
13089 fi
13090
13091 if test x$use_long_long_for_widest_fast_int = xyes; then
13092
13093 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13094
13095 fi
13096
13097 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13098
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_GNU_LD $gnu_ld_bool
13101 _ACEOF
13102
13103
13104 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13105
13106 cat >>confdefs.h <<_ACEOF
13107 #define HAVE_GNU_AS $gnu_as_bool
13108 _ACEOF
13109
13110
13111 count=a
13112 for f in $host_xm_file; do
13113 count=${count}x
13114 done
13115 if test $count = a; then
13116 :
13117 elif test $count = ax; then
13118 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13119 else
13120 echo "Using the following host machine macro files:"
13121 for f in $host_xm_file; do
13122 echo " $srcdir/config/$f"
13123 done
13124 fi
13125 echo "Using ${out_host_hook_obj} for host machine hooks."
13126
13127 if test "$host_xm_file" != "$build_xm_file"; then
13128 count=a
13129 for f in $build_xm_file; do
13130 count=${count}x
13131 done
13132 if test $count = a; then
13133 :
13134 elif test $count = ax; then
13135 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13136 else
13137 echo "Using the following build machine macro files:"
13138 for f in $build_xm_file; do
13139 echo " $srcdir/config/$f"
13140 done
13141 fi
13142 fi
13143
13144 if test -n "$configured_native_system_header_dir"; then
13145 native_system_header_dir=$configured_native_system_header_dir
13146 fi
13147 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13148
13149
13150 case ${host} in
13151 powerpc*-*-darwin*)
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13153 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13154 if ${gcc_cv_mcontext_underscores+:} false; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159
13160 #include <sys/cdefs.h>
13161 #include <sys/signal.h>
13162 #include <ucontext.h>
13163 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13164
13165 _ACEOF
13166 if ac_fn_cxx_try_compile "$LINENO"; then :
13167 gcc_cv_mcontext_underscores=no
13168 else
13169 gcc_cv_mcontext_underscores=yes
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 fi
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13174 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13175 if test $gcc_cv_mcontext_underscores = yes; then
13176
13177 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13178
13179 fi
13180 ;;
13181 esac
13182
13183 # ---------
13184 # Threading
13185 # ---------
13186
13187 # Check if a valid thread package
13188 case ${enable_threads} in
13189 "" | no)
13190 # No threads
13191 target_thread_file='single'
13192 ;;
13193 yes)
13194 # default
13195 target_thread_file='single'
13196 ;;
13197 aix | dce | lynx | mipssde | posix | rtems | \
13198 single | tpf | vxworks | win32 | mcf)
13199 target_thread_file=${enable_threads}
13200 ;;
13201 *)
13202 echo "${enable_threads} is an unknown thread package" 1>&2
13203 exit 1
13204 ;;
13205 esac
13206
13207 if test x${thread_file} = x; then
13208 # No thread file set by target-specific clauses in config.gcc,
13209 # so use file chosen by default logic above
13210 thread_file=${target_thread_file}
13211 fi
13212
13213 # --------
13214 # UNSORTED
13215 # --------
13216
13217 use_cxa_atexit=no
13218 if test x$enable___cxa_atexit = xyes || \
13219 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13220 if test x$host = x$target; then
13221 case $host in
13222 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13223 # keyed to flag_use_cxa_atexit
13224 *-*-mingw32*)
13225 use_cxa_atexit=yes
13226 ;;
13227 powerpc-ibm-aix*)
13228 use_cxa_atexit=yes
13229 ;;
13230 *)
13231 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13232 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13233 use_cxa_atexit=yes
13234 else
13235 echo "__cxa_atexit can't be enabled on this target"
13236 fi
13237
13238 ;;
13239 esac
13240 else
13241 # We can't check for __cxa_atexit when building a cross, so assume
13242 # it is available
13243 use_cxa_atexit=yes
13244 fi
13245 if test x$use_cxa_atexit = xyes; then
13246
13247 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13248
13249 fi
13250 fi
13251
13252 # Look for a file containing extra machine modes.
13253 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13254 extra_modes_file='$(srcdir)'/config/${extra_modes}
13255
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define EXTRA_MODES_FILE "config/$extra_modes"
13259 _ACEOF
13260
13261 fi
13262
13263 # Convert extra_options into a form suitable for Makefile use.
13264 extra_opt_files=
13265 all_opt_files=
13266 for f in $extra_options; do
13267 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13268 all_opt_files="$all_opt_files $srcdir/config/$f"
13269 done
13270
13271
13272 # auto-host.h is the file containing items generated by autoconf and is
13273 # the first file included by config.h.
13274 # If host=build, it is correct to have bconfig include auto-host.h
13275 # as well. If host!=build, we are in error and need to do more
13276 # work to find out the build config parameters.
13277 if test x$host = x$build
13278 then
13279 build_auto=auto-host.h
13280 HAVE_AUTO_BUILD='# '
13281 else
13282 # We create a subdir, then run autoconf in the subdir.
13283 # To prevent recursion we set host and build for the new
13284 # invocation of configure to the build for this invocation
13285 # of configure.
13286 tempdir=build.$$
13287 rm -rf $tempdir
13288 mkdir $tempdir
13289 cd $tempdir
13290 case ${srcdir} in
13291 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13292 *) realsrcdir=../${srcdir};;
13293 esac
13294 # Clearing GMPINC is necessary to prevent host headers being
13295 # used by the build compiler. Defining GENERATOR_FILE stops
13296 # system.h from including gmp.h.
13297 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13298 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13299 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13300 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13301 ${realsrcdir}/configure \
13302 --enable-languages=${enable_languages-all} \
13303 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13304 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13305 --target=$target_alias --host=$build_alias \
13306 --build=$build_alias || exit # retaining $tempdir
13307
13308 # We just finished tests for the build machine, so rename
13309 # the file auto-build.h in the gcc directory.
13310 mv auto-host.h ../auto-build.h
13311 cd ..
13312 rm -rf $tempdir
13313 build_auto=auto-build.h
13314 HAVE_AUTO_BUILD=
13315 fi
13316
13317
13318
13319 tm_file="${tm_file} defaults.h"
13320 tm_p_file="${tm_p_file} tm-preds.h"
13321 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13322 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13323 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13324 # put this back in temporarily.
13325 xm_file="auto-host.h ansidecl.h ${xm_file}"
13326
13327 # --------
13328 # UNSORTED
13329 # --------
13330
13331 # Compile in configure arguments.
13332 if test -f configargs.h ; then
13333 # Being re-configured.
13334 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13335 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13336 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13337 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13338 fi
13339 else
13340 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13341 fi
13342
13343 # Double all backslashes and backslash all quotes to turn
13344 # gcc_config_arguments into a C string.
13345 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13346 $gcc_config_arguments
13347 EOF
13348 gcc_config_arguments_str=`cat conftest.out`
13349 rm -f conftest.out
13350
13351 cat > configargs.h <<EOF
13352 /* Generated automatically. */
13353 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13354 static const char thread_model[] = "$thread_file";
13355
13356 static const struct {
13357 const char *name, *value;
13358 } configure_default_options[] = $configure_default_options;
13359 EOF
13360
13361 gcc_BASEVER=`cat $srcdir/BASE-VER`
13362 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13363 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13364 if test -f $srcdir/REVISION ; then
13365 gcc_REVISION=`cat $srcdir/REVISION`
13366 else
13367 gcc_REVISION=""
13368 fi
13369 cat > plugin-version.h <<EOF
13370 #include "configargs.h"
13371
13372 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13373 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13374 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13375 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13376
13377 static char basever[] = "$gcc_BASEVER";
13378 static char datestamp[] = "$gcc_DATESTAMP";
13379 static char devphase[] = "$gcc_DEVPHASE";
13380 static char revision[] = "$gcc_REVISION";
13381
13382 /* FIXME plugins: We should make the version information more precise.
13383 One way to do is to add a checksum. */
13384
13385 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13386 devphase, revision,
13387 configuration_arguments};
13388 EOF
13389
13390 # Determine what GCC version number to use in filesystem paths.
13391
13392 get_gcc_base_ver="cat"
13393
13394 # Check whether --with-gcc-major-version-only was given.
13395 if test "${with_gcc_major_version_only+set}" = set; then :
13396 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13397 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13398 fi
13399
13400 fi
13401
13402
13403
13404
13405 # Internationalization
13406 # Find a good install program. We prefer a C program (faster),
13407 # so one script is as good as another. But avoid the broken or
13408 # incompatible versions:
13409 # SysV /etc/install, /usr/sbin/install
13410 # SunOS /usr/etc/install
13411 # IRIX /sbin/install
13412 # AIX /bin/install
13413 # AmigaOS /C/install, which installs bootblocks on floppy discs
13414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13417 # OS/2's system install, which has a completely different semantic
13418 # ./install, which can be erroneously created by make from ./install.sh.
13419 # Reject install programs that cannot install multiple files.
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13422 if test -z "$INSTALL"; then
13423 if ${ac_cv_path_install+:} false; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13428 do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 # Account for people who put trailing slashes in PATH elements.
13432 case $as_dir/ in #((
13433 ./ | .// | /[cC]/* | \
13434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13436 /usr/ucb/* ) ;;
13437 *)
13438 # OSF1 and SCO ODT 3.0 have their own names for install.
13439 # Don't use installbsd from OSF since it installs stuff as root
13440 # by default.
13441 for ac_prog in ginstall scoinst install; do
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13444 if test $ac_prog = install &&
13445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13446 # AIX install. It has an incompatible calling convention.
13447 :
13448 elif test $ac_prog = install &&
13449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13450 # program-specific install script used by HP pwplus--don't use.
13451 :
13452 else
13453 rm -rf conftest.one conftest.two conftest.dir
13454 echo one > conftest.one
13455 echo two > conftest.two
13456 mkdir conftest.dir
13457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13458 test -s conftest.one && test -s conftest.two &&
13459 test -s conftest.dir/conftest.one &&
13460 test -s conftest.dir/conftest.two
13461 then
13462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13463 break 3
13464 fi
13465 fi
13466 fi
13467 done
13468 done
13469 ;;
13470 esac
13471
13472 done
13473 IFS=$as_save_IFS
13474
13475 rm -rf conftest.one conftest.two conftest.dir
13476
13477 fi
13478 if test "${ac_cv_path_install+set}" = set; then
13479 INSTALL=$ac_cv_path_install
13480 else
13481 # As a last resort, use the slow shell script. Don't cache a
13482 # value for INSTALL within a source directory, because that will
13483 # break other packages using the cache if that directory is
13484 # removed, or if the value is a relative name.
13485 INSTALL=$ac_install_sh
13486 fi
13487 fi
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13489 $as_echo "$INSTALL" >&6; }
13490
13491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13492 # It thinks the first close brace ends the variable substitution.
13493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13494
13495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13496
13497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13498
13499
13500 MKINSTALLDIRS=
13501 if test -n "$ac_aux_dir"; then
13502 case "$ac_aux_dir" in
13503 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13504 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13505 esac
13506 fi
13507 if test -z "$MKINSTALLDIRS"; then
13508 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13509 fi
13510
13511
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13514 $as_echo_n "checking whether NLS is requested... " >&6; }
13515 # Check whether --enable-nls was given.
13516 if test "${enable_nls+set}" = set; then :
13517 enableval=$enable_nls; USE_NLS=$enableval
13518 else
13519 USE_NLS=yes
13520 fi
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13523 $as_echo "$USE_NLS" >&6; }
13524
13525
13526
13527
13528
13529
13530 # Prepare PATH_SEPARATOR.
13531 # The user is always right.
13532 if test "${PATH_SEPARATOR+set}" != set; then
13533 echo "#! /bin/sh" >conf$$.sh
13534 echo "exit 0" >>conf$$.sh
13535 chmod +x conf$$.sh
13536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13537 PATH_SEPARATOR=';'
13538 else
13539 PATH_SEPARATOR=:
13540 fi
13541 rm -f conf$$.sh
13542 fi
13543
13544 # Find out how to test for executable files. Don't use a zero-byte file,
13545 # as systems may use methods other than mode bits to determine executability.
13546 cat >conf$$.file <<_ASEOF
13547 #! /bin/sh
13548 exit 0
13549 _ASEOF
13550 chmod +x conf$$.file
13551 if test -x conf$$.file >/dev/null 2>&1; then
13552 ac_executable_p="test -x"
13553 else
13554 ac_executable_p="test -f"
13555 fi
13556 rm -f conf$$.file
13557
13558 # Extract the first word of "msgfmt", so it can be a program name with args.
13559 set dummy msgfmt; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_path_MSGFMT+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 case "$MSGFMT" in
13566 [\\/]* | ?:[\\/]*)
13567 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13568 ;;
13569 *)
13570 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13571 for ac_dir in $PATH; do
13572 IFS="$ac_save_IFS"
13573 test -z "$ac_dir" && ac_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13576 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13577 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13578 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13579 break 2
13580 fi
13581 fi
13582 done
13583 done
13584 IFS="$ac_save_IFS"
13585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13586 ;;
13587 esac
13588 fi
13589 MSGFMT="$ac_cv_path_MSGFMT"
13590 if test "$MSGFMT" != ":"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13592 $as_echo "$MSGFMT" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597
13598 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13599 set dummy gmsgfmt; ac_word=$2
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601 $as_echo_n "checking for $ac_word... " >&6; }
13602 if ${ac_cv_path_GMSGFMT+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 case $GMSGFMT in
13606 [\\/]* | ?:[\\/]*)
13607 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13608 ;;
13609 *)
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13612 do
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13620 fi
13621 done
13622 done
13623 IFS=$as_save_IFS
13624
13625 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13626 ;;
13627 esac
13628 fi
13629 GMSGFMT=$ac_cv_path_GMSGFMT
13630 if test -n "$GMSGFMT"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13632 $as_echo "$GMSGFMT" >&6; }
13633 else
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13636 fi
13637
13638
13639
13640
13641 # Prepare PATH_SEPARATOR.
13642 # The user is always right.
13643 if test "${PATH_SEPARATOR+set}" != set; then
13644 echo "#! /bin/sh" >conf$$.sh
13645 echo "exit 0" >>conf$$.sh
13646 chmod +x conf$$.sh
13647 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13648 PATH_SEPARATOR=';'
13649 else
13650 PATH_SEPARATOR=:
13651 fi
13652 rm -f conf$$.sh
13653 fi
13654
13655 # Find out how to test for executable files. Don't use a zero-byte file,
13656 # as systems may use methods other than mode bits to determine executability.
13657 cat >conf$$.file <<_ASEOF
13658 #! /bin/sh
13659 exit 0
13660 _ASEOF
13661 chmod +x conf$$.file
13662 if test -x conf$$.file >/dev/null 2>&1; then
13663 ac_executable_p="test -x"
13664 else
13665 ac_executable_p="test -f"
13666 fi
13667 rm -f conf$$.file
13668
13669 # Extract the first word of "xgettext", so it can be a program name with args.
13670 set dummy xgettext; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if ${ac_cv_path_XGETTEXT+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 case "$XGETTEXT" in
13677 [\\/]* | ?:[\\/]*)
13678 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13679 ;;
13680 *)
13681 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13682 for ac_dir in $PATH; do
13683 IFS="$ac_save_IFS"
13684 test -z "$ac_dir" && ac_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13687 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13688 (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
13689 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13690 break 2
13691 fi
13692 fi
13693 done
13694 done
13695 IFS="$ac_save_IFS"
13696 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13697 ;;
13698 esac
13699 fi
13700 XGETTEXT="$ac_cv_path_XGETTEXT"
13701 if test "$XGETTEXT" != ":"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13703 $as_echo "$XGETTEXT" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708
13709 rm -f messages.po
13710
13711
13712 # Prepare PATH_SEPARATOR.
13713 # The user is always right.
13714 if test "${PATH_SEPARATOR+set}" != set; then
13715 echo "#! /bin/sh" >conf$$.sh
13716 echo "exit 0" >>conf$$.sh
13717 chmod +x conf$$.sh
13718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13719 PATH_SEPARATOR=';'
13720 else
13721 PATH_SEPARATOR=:
13722 fi
13723 rm -f conf$$.sh
13724 fi
13725
13726 # Find out how to test for executable files. Don't use a zero-byte file,
13727 # as systems may use methods other than mode bits to determine executability.
13728 cat >conf$$.file <<_ASEOF
13729 #! /bin/sh
13730 exit 0
13731 _ASEOF
13732 chmod +x conf$$.file
13733 if test -x conf$$.file >/dev/null 2>&1; then
13734 ac_executable_p="test -x"
13735 else
13736 ac_executable_p="test -f"
13737 fi
13738 rm -f conf$$.file
13739
13740 # Extract the first word of "msgmerge", so it can be a program name with args.
13741 set dummy msgmerge; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if ${ac_cv_path_MSGMERGE+:} false; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 case "$MSGMERGE" in
13748 [\\/]* | ?:[\\/]*)
13749 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13750 ;;
13751 *)
13752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13753 for ac_dir in $PATH; do
13754 IFS="$ac_save_IFS"
13755 test -z "$ac_dir" && ac_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13758 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13759 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13760 break 2
13761 fi
13762 fi
13763 done
13764 done
13765 IFS="$ac_save_IFS"
13766 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13767 ;;
13768 esac
13769 fi
13770 MSGMERGE="$ac_cv_path_MSGMERGE"
13771 if test "$MSGMERGE" != ":"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13773 $as_echo "$MSGMERGE" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13777 fi
13778
13779
13780 if test "$GMSGFMT" != ":"; then
13781 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13782 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13783 : ;
13784 else
13785 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13787 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13788 GMSGFMT=":"
13789 fi
13790 fi
13791
13792 if test "$XGETTEXT" != ":"; then
13793 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13794 (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
13795 : ;
13796 else
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13798 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13799 XGETTEXT=":"
13800 fi
13801 rm -f messages.po
13802 fi
13803
13804 ac_config_commands="$ac_config_commands default-1"
13805
13806
13807
13808
13809
13810 if test -f ../gettext/uninstalled-config.sh; then
13811 relative_builddir='$(top_builddir)/../gettext'
13812 . ../gettext/uninstalled-config.sh
13813 else
13814 # The sister gettext directory doesn't exist and won't collect information on
13815 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13840 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13841 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 gt_save_LIBS="$LIBS"
13845 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include <CoreFoundation/CFPreferences.h>
13849 int
13850 main ()
13851 {
13852 CFPreferencesCopyAppValue(NULL, NULL)
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_cxx_try_link "$LINENO"; then :
13858 gt_cv_func_CFPreferencesCopyAppValue=yes
13859 else
13860 gt_cv_func_CFPreferencesCopyAppValue=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS="$gt_save_LIBS"
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13867 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13868 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13869
13870 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13871
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13874 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13875 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 gt_save_LIBS="$LIBS"
13879 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <CoreFoundation/CFLocale.h>
13883 int
13884 main ()
13885 {
13886 CFLocaleCopyPreferredLanguages();
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_cxx_try_link "$LINENO"; then :
13892 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13893 else
13894 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13895 fi
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LIBS="$gt_save_LIBS"
13899 fi
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13901 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13902 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13903
13904 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13905
13906 fi
13907 INTL_MACOSX_LIBS=
13908 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13909 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13910 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13911 fi
13912
13913
13914
13915
13916
13917
13918 LIBINTL=
13919 LTLIBINTL=
13920 POSUB=
13921
13922 case " $gt_needs " in
13923 *" need-formatstring-macros "*) gt_api_version=3 ;;
13924 *" need-ngettext "*) gt_api_version=2 ;;
13925 *) gt_api_version=1 ;;
13926 esac
13927 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13928 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13929
13930 if test "$USE_NLS" = "yes"; then
13931 gt_use_preinstalled_gnugettext=no
13932
13933
13934 if test $gt_api_version -ge 3; then
13935 gt_revision_test_code='
13936 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13937 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13938 #endif
13939 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13940 '
13941 else
13942 gt_revision_test_code=
13943 fi
13944 if test $gt_api_version -ge 2; then
13945 gt_expression_test_code=' + * ngettext ("", "", 0)'
13946 else
13947 gt_expression_test_code=
13948 fi
13949
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13951 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13952 if eval \${$gt_func_gnugettext_libc+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957
13958 #include <libintl.h>
13959 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13960 extern int _nl_msg_cat_cntr;
13961 extern int *_nl_domain_bindings;
13962 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13963 #else
13964 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13965 #endif
13966 $gt_revision_test_code
13967
13968 int
13969 main ()
13970 {
13971
13972 bindtextdomain ("", "");
13973 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13974
13975 ;
13976 return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_cxx_try_link "$LINENO"; then :
13980 eval "$gt_func_gnugettext_libc=yes"
13981 else
13982 eval "$gt_func_gnugettext_libc=no"
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 fi
13987 eval ac_res=\$$gt_func_gnugettext_libc
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13989 $as_echo "$ac_res" >&6; }
13990
13991 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13992
13993
13994
13995
13996
13997 am_save_CPPFLAGS="$CPPFLAGS"
13998
13999 for element in $INCICONV; do
14000 haveit=
14001 for x in $CPPFLAGS; do
14002
14003 acl_save_prefix="$prefix"
14004 prefix="$acl_final_prefix"
14005 acl_save_exec_prefix="$exec_prefix"
14006 exec_prefix="$acl_final_exec_prefix"
14007 eval x=\"$x\"
14008 exec_prefix="$acl_save_exec_prefix"
14009 prefix="$acl_save_prefix"
14010
14011 if test "X$x" = "X$element"; then
14012 haveit=yes
14013 break
14014 fi
14015 done
14016 if test -z "$haveit"; then
14017 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14018 fi
14019 done
14020
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14023 $as_echo_n "checking for iconv... " >&6; }
14024 if ${am_cv_func_iconv+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027
14028 am_cv_func_iconv="no, consider installing GNU libiconv"
14029 am_cv_lib_iconv=no
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032
14033 #include <stdlib.h>
14034 #include <iconv.h>
14035
14036 int
14037 main ()
14038 {
14039 iconv_t cd = iconv_open("","");
14040 iconv(cd,NULL,NULL,NULL,NULL);
14041 iconv_close(cd);
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_cxx_try_link "$LINENO"; then :
14047 am_cv_func_iconv=yes
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 if test "$am_cv_func_iconv" != yes; then
14052 am_save_LIBS="$LIBS"
14053 LIBS="$LIBS $LIBICONV"
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056
14057 #include <stdlib.h>
14058 #include <iconv.h>
14059
14060 int
14061 main ()
14062 {
14063 iconv_t cd = iconv_open("","");
14064 iconv(cd,NULL,NULL,NULL,NULL);
14065 iconv_close(cd);
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 if ac_fn_cxx_try_link "$LINENO"; then :
14071 am_cv_lib_iconv=yes
14072 am_cv_func_iconv=yes
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 LIBS="$am_save_LIBS"
14077 fi
14078
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14081 $as_echo "$am_cv_func_iconv" >&6; }
14082 if test "$am_cv_func_iconv" = yes; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14084 $as_echo_n "checking for working iconv... " >&6; }
14085 if ${am_cv_func_iconv_works+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088
14089 am_save_LIBS="$LIBS"
14090 if test $am_cv_lib_iconv = yes; then
14091 LIBS="$LIBS $LIBICONV"
14092 fi
14093 am_cv_func_iconv_works=no
14094 for ac_iconv_const in '' 'const'; do
14095 if test "$cross_compiling" = yes; then :
14096 case "$host_os" in
14097 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14098 *) am_cv_func_iconv_works="guessing yes" ;;
14099 esac
14100 else
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103
14104 #include <iconv.h>
14105 #include <string.h>
14106
14107 #ifndef ICONV_CONST
14108 # define ICONV_CONST $ac_iconv_const
14109 #endif
14110
14111 int
14112 main ()
14113 {
14114 int result = 0;
14115 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14116 successful returns. This is even documented in
14117 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14118 {
14119 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14120 if (cd_utf8_to_88591 != (iconv_t)(-1))
14121 {
14122 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14123 char buf[10];
14124 ICONV_CONST char *inptr = input;
14125 size_t inbytesleft = strlen (input);
14126 char *outptr = buf;
14127 size_t outbytesleft = sizeof (buf);
14128 size_t res = iconv (cd_utf8_to_88591,
14129 &inptr, &inbytesleft,
14130 &outptr, &outbytesleft);
14131 if (res == 0)
14132 result |= 1;
14133 iconv_close (cd_utf8_to_88591);
14134 }
14135 }
14136 /* Test against Solaris 10 bug: Failures are not distinguishable from
14137 successful returns. */
14138 {
14139 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14140 if (cd_ascii_to_88591 != (iconv_t)(-1))
14141 {
14142 static ICONV_CONST char input[] = "\263";
14143 char buf[10];
14144 ICONV_CONST char *inptr = input;
14145 size_t inbytesleft = strlen (input);
14146 char *outptr = buf;
14147 size_t outbytesleft = sizeof (buf);
14148 size_t res = iconv (cd_ascii_to_88591,
14149 &inptr, &inbytesleft,
14150 &outptr, &outbytesleft);
14151 if (res == 0)
14152 result |= 2;
14153 iconv_close (cd_ascii_to_88591);
14154 }
14155 }
14156 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14157 {
14158 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14159 if (cd_88591_to_utf8 != (iconv_t)(-1))
14160 {
14161 static ICONV_CONST char input[] = "\304";
14162 static char buf[2] = { (char)0xDE, (char)0xAD };
14163 ICONV_CONST char *inptr = input;
14164 size_t inbytesleft = 1;
14165 char *outptr = buf;
14166 size_t outbytesleft = 1;
14167 size_t res = iconv (cd_88591_to_utf8,
14168 &inptr, &inbytesleft,
14169 &outptr, &outbytesleft);
14170 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14171 result |= 4;
14172 iconv_close (cd_88591_to_utf8);
14173 }
14174 }
14175 #if 0 /* This bug could be worked around by the caller. */
14176 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14177 {
14178 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14179 if (cd_88591_to_utf8 != (iconv_t)(-1))
14180 {
14181 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14182 char buf[50];
14183 ICONV_CONST char *inptr = input;
14184 size_t inbytesleft = strlen (input);
14185 char *outptr = buf;
14186 size_t outbytesleft = sizeof (buf);
14187 size_t res = iconv (cd_88591_to_utf8,
14188 &inptr, &inbytesleft,
14189 &outptr, &outbytesleft);
14190 if ((int)res > 0)
14191 result |= 8;
14192 iconv_close (cd_88591_to_utf8);
14193 }
14194 }
14195 #endif
14196 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14197 provided. */
14198 {
14199 /* Try standardized names. */
14200 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14201 /* Try IRIX, OSF/1 names. */
14202 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14203 /* Try AIX names. */
14204 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14205 /* Try HP-UX names. */
14206 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14207 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14208 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14209 result |= 16;
14210 if (cd1 != (iconv_t)(-1))
14211 iconv_close (cd1);
14212 if (cd2 != (iconv_t)(-1))
14213 iconv_close (cd2);
14214 if (cd3 != (iconv_t)(-1))
14215 iconv_close (cd3);
14216 if (cd4 != (iconv_t)(-1))
14217 iconv_close (cd4);
14218 }
14219 return result;
14220
14221 ;
14222 return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_cxx_try_run "$LINENO"; then :
14226 am_cv_func_iconv_works=yes
14227 fi
14228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14229 conftest.$ac_objext conftest.beam conftest.$ac_ext
14230 fi
14231
14232 test "$am_cv_func_iconv_works" = no || break
14233 done
14234 LIBS="$am_save_LIBS"
14235
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14238 $as_echo "$am_cv_func_iconv_works" >&6; }
14239 case "$am_cv_func_iconv_works" in
14240 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14241 *) am_func_iconv=yes ;;
14242 esac
14243 else
14244 am_func_iconv=no am_cv_lib_iconv=no
14245 fi
14246 if test "$am_func_iconv" = yes; then
14247
14248 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14249
14250 fi
14251 if test "$am_cv_lib_iconv" = yes; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14253 $as_echo_n "checking how to link with libiconv... " >&6; }
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14255 $as_echo "$LIBICONV" >&6; }
14256 else
14257 CPPFLAGS="$am_save_CPPFLAGS"
14258 LIBICONV=
14259 LTLIBICONV=
14260 fi
14261
14262
14263
14264
14265
14266
14267 use_additional=yes
14268
14269 acl_save_prefix="$prefix"
14270 prefix="$acl_final_prefix"
14271 acl_save_exec_prefix="$exec_prefix"
14272 exec_prefix="$acl_final_exec_prefix"
14273
14274 eval additional_includedir=\"$includedir\"
14275 eval additional_libdir=\"$libdir\"
14276
14277 exec_prefix="$acl_save_exec_prefix"
14278 prefix="$acl_save_prefix"
14279
14280
14281 # Check whether --with-libintl-prefix was given.
14282 if test "${with_libintl_prefix+set}" = set; then :
14283 withval=$with_libintl_prefix;
14284 if test "X$withval" = "Xno"; then
14285 use_additional=no
14286 else
14287 if test "X$withval" = "X"; then
14288
14289 acl_save_prefix="$prefix"
14290 prefix="$acl_final_prefix"
14291 acl_save_exec_prefix="$exec_prefix"
14292 exec_prefix="$acl_final_exec_prefix"
14293
14294 eval additional_includedir=\"$includedir\"
14295 eval additional_libdir=\"$libdir\"
14296
14297 exec_prefix="$acl_save_exec_prefix"
14298 prefix="$acl_save_prefix"
14299
14300 else
14301 additional_includedir="$withval/include"
14302 additional_libdir="$withval/lib"
14303 fi
14304 fi
14305
14306 fi
14307
14308
14309 # Check whether --with-libintl-type was given.
14310 if test "${with_libintl_type+set}" = set; then :
14311 withval=$with_libintl_type; with_libintl_type=$withval
14312 else
14313 with_libintl_type=auto
14314 fi
14315
14316 lib_type=`eval echo \$with_libintl_type`
14317
14318 LIBINTL=
14319 LTLIBINTL=
14320 INCINTL=
14321 rpathdirs=
14322 ltrpathdirs=
14323 names_already_handled=
14324 names_next_round='intl '
14325 while test -n "$names_next_round"; do
14326 names_this_round="$names_next_round"
14327 names_next_round=
14328 for name in $names_this_round; do
14329 already_handled=
14330 for n in $names_already_handled; do
14331 if test "$n" = "$name"; then
14332 already_handled=yes
14333 break
14334 fi
14335 done
14336 if test -z "$already_handled"; then
14337 names_already_handled="$names_already_handled $name"
14338 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14339 eval value=\"\$HAVE_LIB$uppername\"
14340 if test -n "$value"; then
14341 if test "$value" = yes; then
14342 eval value=\"\$LIB$uppername\"
14343 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14344 eval value=\"\$LTLIB$uppername\"
14345 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14346 else
14347 :
14348 fi
14349 else
14350 found_dir=
14351 found_la=
14352 found_so=
14353 found_a=
14354 if test $use_additional = yes; then
14355 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14356 found_dir="$additional_libdir"
14357 found_so="$additional_libdir/lib$name.$shlibext"
14358 if test -f "$additional_libdir/lib$name.la"; then
14359 found_la="$additional_libdir/lib$name.la"
14360 fi
14361 elif test x$lib_type != xshared; then
14362 if test -f "$additional_libdir/lib$name.$libext"; then
14363 found_dir="$additional_libdir"
14364 found_a="$additional_libdir/lib$name.$libext"
14365 if test -f "$additional_libdir/lib$name.la"; then
14366 found_la="$additional_libdir/lib$name.la"
14367 fi
14368 fi
14369 fi
14370 fi
14371 if test "X$found_dir" = "X"; then
14372 for x in $LDFLAGS $LTLIBINTL; do
14373
14374 acl_save_prefix="$prefix"
14375 prefix="$acl_final_prefix"
14376 acl_save_exec_prefix="$exec_prefix"
14377 exec_prefix="$acl_final_exec_prefix"
14378 eval x=\"$x\"
14379 exec_prefix="$acl_save_exec_prefix"
14380 prefix="$acl_save_prefix"
14381
14382 case "$x" in
14383 -L*)
14384 dir=`echo "X$x" | sed -e 's/^X-L//'`
14385 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14386 found_dir="$dir"
14387 found_so="$dir/lib$name.$shlibext"
14388 if test -f "$dir/lib$name.la"; then
14389 found_la="$dir/lib$name.la"
14390 fi
14391 elif test x$lib_type != xshared; then
14392 if test -f "$dir/lib$name.$libext"; then
14393 found_dir="$dir"
14394 found_a="$dir/lib$name.$libext"
14395 if test -f "$dir/lib$name.la"; then
14396 found_la="$dir/lib$name.la"
14397 fi
14398 fi
14399 fi
14400 ;;
14401 esac
14402 if test "X$found_dir" != "X"; then
14403 break
14404 fi
14405 done
14406 fi
14407 if test "X$found_dir" != "X"; then
14408 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14409 if test "X$found_so" != "X"; then
14410 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14412 else
14413 haveit=
14414 for x in $ltrpathdirs; do
14415 if test "X$x" = "X$found_dir"; then
14416 haveit=yes
14417 break
14418 fi
14419 done
14420 if test -z "$haveit"; then
14421 ltrpathdirs="$ltrpathdirs $found_dir"
14422 fi
14423 if test "$hardcode_direct" = yes; then
14424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14425 else
14426 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14427 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14428 haveit=
14429 for x in $rpathdirs; do
14430 if test "X$x" = "X$found_dir"; then
14431 haveit=yes
14432 break
14433 fi
14434 done
14435 if test -z "$haveit"; then
14436 rpathdirs="$rpathdirs $found_dir"
14437 fi
14438 else
14439 haveit=
14440 for x in $LDFLAGS $LIBINTL; do
14441
14442 acl_save_prefix="$prefix"
14443 prefix="$acl_final_prefix"
14444 acl_save_exec_prefix="$exec_prefix"
14445 exec_prefix="$acl_final_exec_prefix"
14446 eval x=\"$x\"
14447 exec_prefix="$acl_save_exec_prefix"
14448 prefix="$acl_save_prefix"
14449
14450 if test "X$x" = "X-L$found_dir"; then
14451 haveit=yes
14452 break
14453 fi
14454 done
14455 if test -z "$haveit"; then
14456 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14457 fi
14458 if test "$hardcode_minus_L" != no; then
14459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14460 else
14461 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14462 fi
14463 fi
14464 fi
14465 fi
14466 else
14467 if test "X$found_a" != "X"; then
14468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14469 else
14470 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14471 fi
14472 fi
14473 additional_includedir=
14474 case "$found_dir" in
14475 */lib | */lib/)
14476 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14477 additional_includedir="$basedir/include"
14478 ;;
14479 esac
14480 if test "X$additional_includedir" != "X"; then
14481 if test "X$additional_includedir" != "X/usr/include"; then
14482 haveit=
14483 if test "X$additional_includedir" = "X/usr/local/include"; then
14484 if test -n "$GCC"; then
14485 case $host_os in
14486 linux*) haveit=yes;;
14487 esac
14488 fi
14489 fi
14490 if test -z "$haveit"; then
14491 for x in $CPPFLAGS $INCINTL; do
14492
14493 acl_save_prefix="$prefix"
14494 prefix="$acl_final_prefix"
14495 acl_save_exec_prefix="$exec_prefix"
14496 exec_prefix="$acl_final_exec_prefix"
14497 eval x=\"$x\"
14498 exec_prefix="$acl_save_exec_prefix"
14499 prefix="$acl_save_prefix"
14500
14501 if test "X$x" = "X-I$additional_includedir"; then
14502 haveit=yes
14503 break
14504 fi
14505 done
14506 if test -z "$haveit"; then
14507 if test -d "$additional_includedir"; then
14508 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14509 fi
14510 fi
14511 fi
14512 fi
14513 fi
14514 if test -n "$found_la"; then
14515 save_libdir="$libdir"
14516 case "$found_la" in
14517 */* | *\\*) . "$found_la" ;;
14518 *) . "./$found_la" ;;
14519 esac
14520 libdir="$save_libdir"
14521 for dep in $dependency_libs; do
14522 case "$dep" in
14523 -L*)
14524 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14525 if test "X$additional_libdir" != "X/usr/lib"; then
14526 haveit=
14527 if test "X$additional_libdir" = "X/usr/local/lib"; then
14528 if test -n "$GCC"; then
14529 case $host_os in
14530 linux*) haveit=yes;;
14531 esac
14532 fi
14533 fi
14534 if test -z "$haveit"; then
14535 haveit=
14536 for x in $LDFLAGS $LIBINTL; do
14537
14538 acl_save_prefix="$prefix"
14539 prefix="$acl_final_prefix"
14540 acl_save_exec_prefix="$exec_prefix"
14541 exec_prefix="$acl_final_exec_prefix"
14542 eval x=\"$x\"
14543 exec_prefix="$acl_save_exec_prefix"
14544 prefix="$acl_save_prefix"
14545
14546 if test "X$x" = "X-L$additional_libdir"; then
14547 haveit=yes
14548 break
14549 fi
14550 done
14551 if test -z "$haveit"; then
14552 if test -d "$additional_libdir"; then
14553 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14554 fi
14555 fi
14556 haveit=
14557 for x in $LDFLAGS $LTLIBINTL; do
14558
14559 acl_save_prefix="$prefix"
14560 prefix="$acl_final_prefix"
14561 acl_save_exec_prefix="$exec_prefix"
14562 exec_prefix="$acl_final_exec_prefix"
14563 eval x=\"$x\"
14564 exec_prefix="$acl_save_exec_prefix"
14565 prefix="$acl_save_prefix"
14566
14567 if test "X$x" = "X-L$additional_libdir"; then
14568 haveit=yes
14569 break
14570 fi
14571 done
14572 if test -z "$haveit"; then
14573 if test -d "$additional_libdir"; then
14574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14575 fi
14576 fi
14577 fi
14578 fi
14579 ;;
14580 -R*)
14581 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14582 if test "$enable_rpath" != no; then
14583 haveit=
14584 for x in $rpathdirs; do
14585 if test "X$x" = "X$dir"; then
14586 haveit=yes
14587 break
14588 fi
14589 done
14590 if test -z "$haveit"; then
14591 rpathdirs="$rpathdirs $dir"
14592 fi
14593 haveit=
14594 for x in $ltrpathdirs; do
14595 if test "X$x" = "X$dir"; then
14596 haveit=yes
14597 break
14598 fi
14599 done
14600 if test -z "$haveit"; then
14601 ltrpathdirs="$ltrpathdirs $dir"
14602 fi
14603 fi
14604 ;;
14605 -l*)
14606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14607 ;;
14608 *.la)
14609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14610 ;;
14611 *)
14612 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14614 ;;
14615 esac
14616 done
14617 fi
14618 else
14619 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14620 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14621 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14622 else
14623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14625 fi
14626 fi
14627 fi
14628 fi
14629 done
14630 done
14631 if test "X$rpathdirs" != "X"; then
14632 if test -n "$hardcode_libdir_separator"; then
14633 alldirs=
14634 for found_dir in $rpathdirs; do
14635 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14636 done
14637 acl_save_libdir="$libdir"
14638 libdir="$alldirs"
14639 eval flag=\"$hardcode_libdir_flag_spec\"
14640 libdir="$acl_save_libdir"
14641 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14642 else
14643 for found_dir in $rpathdirs; do
14644 acl_save_libdir="$libdir"
14645 libdir="$found_dir"
14646 eval flag=\"$hardcode_libdir_flag_spec\"
14647 libdir="$acl_save_libdir"
14648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14649 done
14650 fi
14651 fi
14652 if test "X$ltrpathdirs" != "X"; then
14653 for found_dir in $ltrpathdirs; do
14654 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14655 done
14656 fi
14657
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14659 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14660 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14661 $as_echo_n "(cached) " >&6
14662 else
14663 gt_save_CPPFLAGS="$CPPFLAGS"
14664 CPPFLAGS="$CPPFLAGS $INCINTL"
14665 gt_save_LIBS="$LIBS"
14666 LIBS="$LIBS $LIBINTL"
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669
14670 #include <libintl.h>
14671 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14672 extern int _nl_msg_cat_cntr;
14673 extern
14674 #ifdef __cplusplus
14675 "C"
14676 #endif
14677 const char *_nl_expand_alias (const char *);
14678 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14679 #else
14680 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14681 #endif
14682 $gt_revision_test_code
14683
14684 int
14685 main ()
14686 {
14687
14688 bindtextdomain ("", "");
14689 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14690
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 if ac_fn_cxx_try_link "$LINENO"; then :
14696 eval "$gt_func_gnugettext_libintl=yes"
14697 else
14698 eval "$gt_func_gnugettext_libintl=no"
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14703 LIBS="$LIBS $LIBICONV"
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706
14707 #include <libintl.h>
14708 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14709 extern int _nl_msg_cat_cntr;
14710 extern
14711 #ifdef __cplusplus
14712 "C"
14713 #endif
14714 const char *_nl_expand_alias (const char *);
14715 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14716 #else
14717 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14718 #endif
14719 $gt_revision_test_code
14720
14721 int
14722 main ()
14723 {
14724
14725 bindtextdomain ("", "");
14726 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14727
14728 ;
14729 return 0;
14730 }
14731 _ACEOF
14732 if ac_fn_cxx_try_link "$LINENO"; then :
14733 LIBINTL="$LIBINTL $LIBICONV"
14734 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14735 eval "$gt_func_gnugettext_libintl=yes"
14736
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 fi
14741 CPPFLAGS="$gt_save_CPPFLAGS"
14742 LIBS="$gt_save_LIBS"
14743 fi
14744 eval ac_res=\$$gt_func_gnugettext_libintl
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14746 $as_echo "$ac_res" >&6; }
14747 fi
14748
14749 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14750 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14751 && test "$PACKAGE" != gettext-runtime \
14752 && test "$PACKAGE" != gettext-tools; }; then
14753 gt_use_preinstalled_gnugettext=yes
14754 else
14755 LIBINTL=
14756 LTLIBINTL=
14757 INCINTL=
14758 fi
14759
14760
14761
14762 if test -n "$INTL_MACOSX_LIBS"; then
14763 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14764 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14765 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14766 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14767 fi
14768 fi
14769
14770 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14771 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14772
14773 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14774
14775 else
14776 USE_NLS=no
14777 fi
14778 fi
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14781 $as_echo_n "checking whether to use NLS... " >&6; }
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14783 $as_echo "$USE_NLS" >&6; }
14784 if test "$USE_NLS" = "yes"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14786 $as_echo_n "checking where the gettext function comes from... " >&6; }
14787 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14788 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14789 gt_source="external libintl"
14790 else
14791 gt_source="libc"
14792 fi
14793 else
14794 gt_source="included intl directory"
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14797 $as_echo "$gt_source" >&6; }
14798 fi
14799
14800 if test "$USE_NLS" = "yes"; then
14801
14802 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14803 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14805 $as_echo_n "checking how to link with libintl... " >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14807 $as_echo "$LIBINTL" >&6; }
14808
14809 for element in $INCINTL; do
14810 haveit=
14811 for x in $CPPFLAGS; do
14812
14813 acl_save_prefix="$prefix"
14814 prefix="$acl_final_prefix"
14815 acl_save_exec_prefix="$exec_prefix"
14816 exec_prefix="$acl_final_exec_prefix"
14817 eval x=\"$x\"
14818 exec_prefix="$acl_save_exec_prefix"
14819 prefix="$acl_save_prefix"
14820
14821 if test "X$x" = "X$element"; then
14822 haveit=yes
14823 break
14824 fi
14825 done
14826 if test -z "$haveit"; then
14827 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14828 fi
14829 done
14830
14831 fi
14832
14833
14834 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14835
14836
14837 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14838
14839 fi
14840
14841 POSUB=po
14842 fi
14843
14844
14845
14846 INTLLIBS="$LIBINTL"
14847
14848
14849
14850
14851
14852
14853 fi
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14866 $as_echo_n "checking whether NLS is requested... " >&6; }
14867 if test x"$USE_NLS" != xyes; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14870 else
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14872 $as_echo "yes" >&6; }
14873
14874 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14875
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14878 $as_echo_n "checking for catalogs to be installed... " >&6; }
14879 # Look for .po and .gmo files in the source directory.
14880 CATALOGS=
14881 XLINGUAS=
14882 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14883 # If there aren't any .gmo files the shell will give us the
14884 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14885 # weeded out.
14886 case "$cat" in *\**)
14887 continue;;
14888 esac
14889 # The quadruple backslash is collapsed to a double backslash
14890 # by the backticks, then collapsed again by the double quotes,
14891 # leaving us with one backslash in the sed expression (right
14892 # before the dot that mustn't act as a wildcard).
14893 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14894 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14895 # The user is allowed to set LINGUAS to a list of languages to
14896 # install catalogs for. If it's empty that means "all of them."
14897 if test "x$LINGUAS" = x; then
14898 CATALOGS="$CATALOGS $cat"
14899 XLINGUAS="$XLINGUAS $lang"
14900 else
14901 case "$LINGUAS" in *$lang*)
14902 CATALOGS="$CATALOGS $cat"
14903 XLINGUAS="$XLINGUAS $lang"
14904 ;;
14905 esac
14906 fi
14907 done
14908 LINGUAS="$XLINGUAS"
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14910 $as_echo "$LINGUAS" >&6; }
14911
14912
14913 DATADIRNAME=share
14914
14915 INSTOBJEXT=.mo
14916
14917 GENCAT=gencat
14918
14919 CATOBJEXT=.gmo
14920
14921 fi
14922
14923 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14924 # -liconv on the link line twice.
14925 case "$LIBINTL" in *$LIBICONV*)
14926 LIBICONV= ;;
14927 esac
14928
14929 # Check whether --enable-secureplt was given.
14930 if test "${enable_secureplt+set}" = set; then :
14931 enableval=$enable_secureplt;
14932 fi
14933
14934
14935 # Check whether --enable-mingw-wildcard was given.
14936 if test "${enable_mingw_wildcard+set}" = set; then :
14937 enableval=$enable_mingw_wildcard;
14938 else
14939 enable_mingw_wildcard=platform
14940 fi
14941
14942 if test x"$enable_mingw_wildcard" != xplatform ; then :
14943
14944 cat >>confdefs.h <<_ACEOF
14945 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14946 _ACEOF
14947
14948 fi
14949
14950 # Check whether --enable-large-address-aware was given.
14951 if test "${enable_large_address_aware+set}" = set; then :
14952 enableval=$enable_large_address_aware;
14953 fi
14954
14955 if test x"$enable_large_address_aware" = xyes; then :
14956
14957 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14958
14959 fi
14960
14961 # Check whether --enable-leading-mingw64-underscores was given.
14962 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14963 enableval=$enable_leading_mingw64_underscores;
14964 fi
14965
14966 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14967
14968 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14969
14970 fi
14971
14972 # Check whether --enable-cld was given.
14973 if test "${enable_cld+set}" = set; then :
14974 enableval=$enable_cld;
14975 else
14976 enable_cld=no
14977 fi
14978
14979
14980 # Check whether --enable-frame-pointer was given.
14981 if test "${enable_frame_pointer+set}" = set; then :
14982 enableval=$enable_frame_pointer;
14983 else
14984
14985 case $target_os in
14986 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
14987 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14988 enable_frame_pointer=no
14989 ;;
14990 *)
14991 enable_frame_pointer=yes
14992 ;;
14993 esac
14994
14995 fi
14996
14997
14998 case $target in
14999 i[34567]86-*-* | x86_64-*-*)
15000 if test "x$enable_cld" = xyes; then
15001 tm_defines="${tm_defines} USE_IX86_CLD=1"
15002 fi
15003 if test "x$enable_frame_pointer" = xyes; then
15004 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
15005 fi
15006 ;;
15007 esac
15008
15009 # Windows32 Registry support for specifying GCC installation paths.
15010 # Check whether --enable-win32-registry was given.
15011 if test "${enable_win32_registry+set}" = set; then :
15012 enableval=$enable_win32_registry;
15013 fi
15014
15015
15016 case $host_os in
15017 win32 | pe | cygwin* | mingw32*)
15018 if test "x$enable_win32_registry" != xno; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15020 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15021 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 ac_func_search_save_LIBS=$LIBS
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char RegOpenKeyExA ();
15035 int
15036 main ()
15037 {
15038 return RegOpenKeyExA ();
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 for ac_lib in '' advapi32; do
15044 if test -z "$ac_lib"; then
15045 ac_res="none required"
15046 else
15047 ac_res=-l$ac_lib
15048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15049 fi
15050 if ac_fn_cxx_try_link "$LINENO"; then :
15051 ac_cv_search_RegOpenKeyExA=$ac_res
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext
15055 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15056 break
15057 fi
15058 done
15059 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15060
15061 else
15062 ac_cv_search_RegOpenKeyExA=no
15063 fi
15064 rm conftest.$ac_ext
15065 LIBS=$ac_func_search_save_LIBS
15066 fi
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15068 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15069 ac_res=$ac_cv_search_RegOpenKeyExA
15070 if test "$ac_res" != no; then :
15071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15072
15073 else
15074 enable_win32_registry=no
15075 fi
15076
15077 fi
15078
15079 if test "x$enable_win32_registry" != xno; then
15080
15081 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15082
15083
15084 if test "x$enable_win32_registry" != xyes \
15085 && test "x$enable_win32_registry" != x; then
15086
15087 cat >>confdefs.h <<_ACEOF
15088 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15089 _ACEOF
15090
15091 fi
15092 fi
15093 ;;
15094 esac
15095
15096 # Get an absolute path to the GCC top-level source directory
15097 holddir=`${PWDCMD-pwd}`
15098 cd $srcdir
15099 topdir=`${PWDCMD-pwd}`
15100 cd $holddir
15101
15102 # Conditionalize the makefile for this host machine.
15103 xmake_file=
15104 for f in ${host_xmake_file}
15105 do
15106 if test -f ${srcdir}/config/$f
15107 then
15108 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15109 fi
15110 done
15111
15112 # Conditionalize the makefile for this target machine.
15113 tmake_file_=
15114 for f in ${tmake_file}
15115 do
15116 if test -f ${srcdir}/config/$f
15117 then
15118 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15119 fi
15120 done
15121 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15122
15123 out_object_file=`basename $out_file .cc`.o
15124 common_out_object_file=`basename $common_out_file .cc`.o
15125
15126 tm_file_list="options.h"
15127 tm_include_list="options.h insn-constants.h"
15128 for f in $tm_file; do
15129 case $f in
15130 ./* )
15131 f=`echo $f | sed 's/^..//'`
15132 tm_file_list="${tm_file_list} $f"
15133 tm_include_list="${tm_include_list} $f"
15134 ;;
15135 defaults.h )
15136 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15137 tm_include_list="${tm_include_list} $f"
15138 ;;
15139 * )
15140 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15141 tm_include_list="${tm_include_list} config/$f"
15142 ;;
15143 esac
15144 done
15145
15146 tm_p_file_list=
15147 tm_p_include_list=
15148 for f in $tm_p_file; do
15149 case $f in
15150 tm-preds.h )
15151 tm_p_file_list="${tm_p_file_list} $f"
15152 tm_p_include_list="${tm_p_include_list} $f"
15153 ;;
15154 * )
15155 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15156 tm_p_include_list="${tm_p_include_list} config/$f"
15157 esac
15158 done
15159
15160 tm_d_file_list=
15161 tm_d_include_list=
15162 for f in $tm_d_file; do
15163 case $f in
15164 * )
15165 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15166 tm_d_include_list="${tm_d_include_list} config/$f"
15167 ;;
15168 esac
15169 done
15170
15171 tm_rust_file_list=
15172 tm_rust_include_list=
15173 for f in $tm_rust_file; do
15174 case $f in
15175 * )
15176 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15177 tm_rust_include_list="${tm_rust_include_list} config/$f"
15178 ;;
15179 esac
15180 done
15181
15182 xm_file_list=
15183 xm_include_list=
15184 for f in $xm_file; do
15185 case $f in
15186 ansidecl.h )
15187 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15188 xm_include_list="${xm_include_list} $f"
15189 ;;
15190 auto-host.h )
15191 xm_file_list="${xm_file_list} $f"
15192 xm_include_list="${xm_include_list} $f"
15193 ;;
15194 * )
15195 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15196 xm_include_list="${xm_include_list} config/$f"
15197 ;;
15198 esac
15199 done
15200
15201 host_xm_file_list=
15202 host_xm_include_list=
15203 for f in $host_xm_file; do
15204 case $f in
15205 ansidecl.h )
15206 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15207 host_xm_include_list="${host_xm_include_list} $f"
15208 ;;
15209 auto-host.h )
15210 host_xm_file_list="${host_xm_file_list} $f"
15211 host_xm_include_list="${host_xm_include_list} $f"
15212 ;;
15213 * )
15214 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15215 host_xm_include_list="${host_xm_include_list} config/$f"
15216 ;;
15217 esac
15218 done
15219
15220 build_xm_file_list=
15221 for f in $build_xm_file; do
15222 case $f in
15223 ansidecl.h )
15224 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15225 build_xm_include_list="${build_xm_include_list} $f"
15226 ;;
15227 auto-build.h | auto-host.h )
15228 build_xm_file_list="${build_xm_file_list} $f"
15229 build_xm_include_list="${build_xm_include_list} $f"
15230 ;;
15231 * )
15232 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15233 build_xm_include_list="${build_xm_include_list} config/$f"
15234 ;;
15235 esac
15236 done
15237
15238 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15239 # cross-compiler which does not use the native headers and libraries.
15240 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15241 CROSS=
15242 ALL=all.internal
15243 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15244 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15245
15246 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15247 test x$build != x$host || test "x$with_build_sysroot" != x; then
15248 if test "x$with_build_sysroot" != x; then
15249 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15250 else
15251 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15252 fi
15253
15254 if test x$host != x$target
15255 then
15256 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15257 ALL=all.cross
15258 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15259 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15260 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15261 fi
15262
15263 if test "x$with_build_sysroot" != "x"; then
15264 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15265 elif test "x$with_sysroot" = x; then
15266 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15267 elif test "x$with_sysroot" = xyes; then
15268 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15269 else
15270 target_header_dir="${with_sysroot}${native_system_header_dir}"
15271 fi
15272 else
15273 target_header_dir=${native_system_header_dir}
15274 fi
15275
15276 # If this is a cross-compiler that does not
15277 # have its own set of headers then define
15278 # inhibit_libc
15279
15280 # If this is using newlib, without having the headers available now,
15281 # then define inhibit_libc in LIBGCC2_CFLAGS.
15282 # This prevents libgcc2 from containing any code which requires libc
15283 # support.
15284 : ${inhibit_libc=false}
15285 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15286 test x$with_newlib = xyes ; } &&
15287 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15288 inhibit_libc=true
15289 fi
15290
15291
15292 # When building gcc with a cross-compiler, we need to adjust things so
15293 # that the generator programs are still built with the native compiler.
15294 # Also, we cannot run fixincludes.
15295
15296 # These are the normal (build=host) settings:
15297 CC_FOR_BUILD='$(CC)'
15298 CXX_FOR_BUILD='$(CXX)'
15299 BUILD_CFLAGS='$(ALL_CFLAGS)'
15300 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15301 BUILD_LDFLAGS='$(LDFLAGS)'
15302 STMP_FIXINC=stmp-fixinc
15303
15304 # And these apply if build != host, or we are generating coverage data
15305 if test x$build != x$host || test "x$coverage_flags" != x
15306 then
15307 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15308 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15309 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15310 fi
15311
15312
15313 if test x$enable_fixincludes = xno;
15314 then
15315 STMP_FIXINC=''
15316 fi
15317
15318 # Expand extra_headers to include complete path.
15319 # This substitutes for lots of t-* files.
15320 extra_headers_list=
15321 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15322 for file in ${extra_headers} ; do
15323 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15324 done
15325
15326 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15327 if test x"$use_gcc_tgmath" = xyes
15328 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15329 fi
15330
15331 # Define collect2 in Makefile.
15332 case $host_can_use_collect2 in
15333 no) collect2= ;;
15334 *) collect2='collect2$(exeext)' ;;
15335 esac
15336
15337
15338 # Add a definition of USE_COLLECT2 if system wants one.
15339 case $use_collect2 in
15340 no) use_collect2= ;;
15341 "") ;;
15342 *)
15343 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15344 xm_defines="${xm_defines} USE_COLLECT2"
15345 case $host_can_use_collect2 in
15346 no)
15347 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15348 ;;
15349 esac
15350 ;;
15351 esac
15352
15353
15354 cat >>confdefs.h <<_ACEOF
15355 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15356 _ACEOF
15357
15358
15359 # ---------------------------
15360 # Assembler & linker features
15361 # ---------------------------
15362
15363 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15364 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15365 # However when ld-new is first executed from the build tree, libtool will
15366 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15367 # to the build tree. While doing this we need to use the previous-stage
15368 # linker, or we have an infinite loop. The presence of a shell script as
15369 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15370 # the gcc/collect-ld script. So we need to know how libtool works, or
15371 # exec-tool will fail.
15372
15373
15374 case `pwd` in
15375 *\ * | *\ *)
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15377 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15378 esac
15379
15380
15381
15382 macro_version='2.2.7a'
15383 macro_revision='1.3134'
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397 ltmain="$ac_aux_dir/ltmain.sh"
15398
15399 # Backslashify metacharacters that are still active within
15400 # double-quoted strings.
15401 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15402
15403 # Same as above, but do not quote variable references.
15404 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15405
15406 # Sed substitution to delay expansion of an escaped shell variable in a
15407 # double_quote_subst'ed string.
15408 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15409
15410 # Sed substitution to delay expansion of an escaped single quote.
15411 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15412
15413 # Sed substitution to avoid accidental globbing in evaled expressions
15414 no_glob_subst='s/\*/\\\*/g'
15415
15416 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15417 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15418 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15421 $as_echo_n "checking how to print strings... " >&6; }
15422 # Test print first, because it will be a builtin if present.
15423 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15424 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15425 ECHO='print -r --'
15426 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15427 ECHO='printf %s\n'
15428 else
15429 # Use this function as a fallback that always works.
15430 func_fallback_echo ()
15431 {
15432 eval 'cat <<_LTECHO_EOF
15433 $1
15434 _LTECHO_EOF'
15435 }
15436 ECHO='func_fallback_echo'
15437 fi
15438
15439 # func_echo_all arg...
15440 # Invoke $ECHO with all args, space-separated.
15441 func_echo_all ()
15442 {
15443 $ECHO ""
15444 }
15445
15446 case "$ECHO" in
15447 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15448 $as_echo "printf" >&6; } ;;
15449 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15450 $as_echo "print -r" >&6; } ;;
15451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15452 $as_echo "cat" >&6; } ;;
15453 esac
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15469 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15470 if ${ac_cv_path_SED+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15474 for ac_i in 1 2 3 4 5 6 7; do
15475 ac_script="$ac_script$as_nl$ac_script"
15476 done
15477 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15478 { ac_script=; unset ac_script;}
15479 if test -z "$SED"; then
15480 ac_path_SED_found=false
15481 # Loop through the user's path and test for each of PROGNAME-LIST
15482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483 for as_dir in $PATH
15484 do
15485 IFS=$as_save_IFS
15486 test -z "$as_dir" && as_dir=.
15487 for ac_prog in sed gsed; do
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15490 as_fn_executable_p "$ac_path_SED" || continue
15491 # Check for GNU ac_path_SED and select it if it is found.
15492 # Check for GNU $ac_path_SED
15493 case `"$ac_path_SED" --version 2>&1` in
15494 *GNU*)
15495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15496 *)
15497 ac_count=0
15498 $as_echo_n 0123456789 >"conftest.in"
15499 while :
15500 do
15501 cat "conftest.in" "conftest.in" >"conftest.tmp"
15502 mv "conftest.tmp" "conftest.in"
15503 cp "conftest.in" "conftest.nl"
15504 $as_echo '' >> "conftest.nl"
15505 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15507 as_fn_arith $ac_count + 1 && ac_count=$as_val
15508 if test $ac_count -gt ${ac_path_SED_max-0}; then
15509 # Best one so far, save it but keep looking for a better one
15510 ac_cv_path_SED="$ac_path_SED"
15511 ac_path_SED_max=$ac_count
15512 fi
15513 # 10*(2^10) chars as input seems more than enough
15514 test $ac_count -gt 10 && break
15515 done
15516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15517 esac
15518
15519 $ac_path_SED_found && break 3
15520 done
15521 done
15522 done
15523 IFS=$as_save_IFS
15524 if test -z "$ac_cv_path_SED"; then
15525 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15526 fi
15527 else
15528 ac_cv_path_SED=$SED
15529 fi
15530
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15533 $as_echo "$ac_cv_path_SED" >&6; }
15534 SED="$ac_cv_path_SED"
15535 rm -f conftest.sed
15536
15537 test -z "$SED" && SED=sed
15538 Xsed="$SED -e 1s/^X//"
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15551 $as_echo_n "checking for fgrep... " >&6; }
15552 if ${ac_cv_path_FGREP+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15556 then ac_cv_path_FGREP="$GREP -F"
15557 else
15558 if test -z "$FGREP"; then
15559 ac_path_FGREP_found=false
15560 # Loop through the user's path and test for each of PROGNAME-LIST
15561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15563 do
15564 IFS=$as_save_IFS
15565 test -z "$as_dir" && as_dir=.
15566 for ac_prog in fgrep; do
15567 for ac_exec_ext in '' $ac_executable_extensions; do
15568 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15569 as_fn_executable_p "$ac_path_FGREP" || continue
15570 # Check for GNU ac_path_FGREP and select it if it is found.
15571 # Check for GNU $ac_path_FGREP
15572 case `"$ac_path_FGREP" --version 2>&1` in
15573 *GNU*)
15574 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15575 *)
15576 ac_count=0
15577 $as_echo_n 0123456789 >"conftest.in"
15578 while :
15579 do
15580 cat "conftest.in" "conftest.in" >"conftest.tmp"
15581 mv "conftest.tmp" "conftest.in"
15582 cp "conftest.in" "conftest.nl"
15583 $as_echo 'FGREP' >> "conftest.nl"
15584 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15586 as_fn_arith $ac_count + 1 && ac_count=$as_val
15587 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15588 # Best one so far, save it but keep looking for a better one
15589 ac_cv_path_FGREP="$ac_path_FGREP"
15590 ac_path_FGREP_max=$ac_count
15591 fi
15592 # 10*(2^10) chars as input seems more than enough
15593 test $ac_count -gt 10 && break
15594 done
15595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15596 esac
15597
15598 $ac_path_FGREP_found && break 3
15599 done
15600 done
15601 done
15602 IFS=$as_save_IFS
15603 if test -z "$ac_cv_path_FGREP"; then
15604 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15605 fi
15606 else
15607 ac_cv_path_FGREP=$FGREP
15608 fi
15609
15610 fi
15611 fi
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15613 $as_echo "$ac_cv_path_FGREP" >&6; }
15614 FGREP="$ac_cv_path_FGREP"
15615
15616
15617 test -z "$GREP" && GREP=grep
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 # Check whether --with-gnu-ld was given.
15638 if test "${with_gnu_ld+set}" = set; then :
15639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15640 else
15641 with_gnu_ld=no
15642 fi
15643
15644 ac_prog=ld
15645 if test "$GCC" = yes; then
15646 # Check if gcc -print-prog-name=ld gives a path.
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15648 $as_echo_n "checking for ld used by $CC... " >&6; }
15649 case $host in
15650 *-*-mingw*)
15651 # gcc leaves a trailing carriage return which upsets mingw
15652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15653 *)
15654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15655 esac
15656 case $ac_prog in
15657 # Accept absolute paths.
15658 [\\/]* | ?:[\\/]*)
15659 re_direlt='/[^/][^/]*/\.\./'
15660 # Canonicalize the pathname of ld
15661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15664 done
15665 test -z "$LD" && LD="$ac_prog"
15666 ;;
15667 "")
15668 # If it fails, then pretend we aren't using GCC.
15669 ac_prog=ld
15670 ;;
15671 *)
15672 # If it is relative, then search for the first ld in PATH.
15673 with_gnu_ld=unknown
15674 ;;
15675 esac
15676 elif test "$with_gnu_ld" = yes; then
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15678 $as_echo_n "checking for GNU ld... " >&6; }
15679 else
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15681 $as_echo_n "checking for non-GNU ld... " >&6; }
15682 fi
15683 if ${lt_cv_path_LD+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 if test -z "$LD"; then
15687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15688 for ac_dir in $PATH; do
15689 IFS="$lt_save_ifs"
15690 test -z "$ac_dir" && ac_dir=.
15691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15692 lt_cv_path_LD="$ac_dir/$ac_prog"
15693 # Check to see if the program is GNU ld. I'd rather use --version,
15694 # but apparently some variants of GNU ld only accept -v.
15695 # Break only if it was the GNU/non-GNU ld that we prefer.
15696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15697 *GNU* | *'with BFD'*)
15698 test "$with_gnu_ld" != no && break
15699 ;;
15700 *)
15701 test "$with_gnu_ld" != yes && break
15702 ;;
15703 esac
15704 fi
15705 done
15706 IFS="$lt_save_ifs"
15707 else
15708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15709 fi
15710 fi
15711
15712 LD="$lt_cv_path_LD"
15713 if test -n "$LD"; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15715 $as_echo "$LD" >&6; }
15716 else
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15719 fi
15720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15723 if ${lt_cv_prog_gnu_ld+:} false; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15727 case `$LD -v 2>&1 </dev/null` in
15728 *GNU* | *'with BFD'*)
15729 lt_cv_prog_gnu_ld=yes
15730 ;;
15731 *)
15732 lt_cv_prog_gnu_ld=no
15733 ;;
15734 esac
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15738 with_gnu_ld=$lt_cv_prog_gnu_ld
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15749 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15750 if ${lt_cv_path_NM+:} false; then :
15751 $as_echo_n "(cached) " >&6
15752 else
15753 if test -n "$NM"; then
15754 # Let the user override the nm to test.
15755 lt_nm_to_check="$NM"
15756 else
15757 lt_nm_to_check="${ac_tool_prefix}nm"
15758 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15759 lt_nm_to_check="$lt_nm_to_check nm"
15760 fi
15761 fi
15762 for lt_tmp_nm in "$lt_nm_to_check"; do
15763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15765 IFS="$lt_save_ifs"
15766 test -z "$ac_dir" && ac_dir=.
15767 # Strip out any user-provided options from the nm to test twice,
15768 # the first time to test to see if nm (rather than its options) has
15769 # an explicit path, the second time to yield a file which can be
15770 # nm'ed itself.
15771 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15772 case "$tmp_nm_path" in
15773 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15774 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15775 esac
15776 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15777 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15778 # Check to see if the nm accepts a BSD-compat flag.
15779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15780 # nm: unknown option "B" ignored
15781 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15782 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15783 break
15784 ;;
15785 *)
15786 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15787 *$tmp_nm*)
15788 lt_cv_path_NM="$tmp_nm -p"
15789 break
15790 ;;
15791 *)
15792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15793 continue # so that we can try to find one that supports BSD flags
15794 ;;
15795 esac
15796 ;;
15797 esac
15798 fi
15799 done
15800 IFS="$lt_save_ifs"
15801 done
15802 : ${lt_cv_path_NM=no}
15803 fi
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15805 $as_echo "$lt_cv_path_NM" >&6; }
15806 if test "$lt_cv_path_NM" != "no"; then
15807 NM="$lt_cv_path_NM"
15808 else
15809 # Didn't find any BSD compatible name lister, look for dumpbin.
15810 if test -n "$DUMPBIN"; then :
15811 # Let the user override the test.
15812 else
15813 if test -n "$ac_tool_prefix"; then
15814 for ac_prog in dumpbin "link -dump"
15815 do
15816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15819 $as_echo_n "checking for $ac_word... " >&6; }
15820 if ${ac_cv_prog_DUMPBIN+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15823 if test -n "$DUMPBIN"; then
15824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15825 else
15826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15827 for as_dir in $PATH
15828 do
15829 IFS=$as_save_IFS
15830 test -z "$as_dir" && as_dir=.
15831 for ac_exec_ext in '' $ac_executable_extensions; do
15832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15833 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15835 break 2
15836 fi
15837 done
15838 done
15839 IFS=$as_save_IFS
15840
15841 fi
15842 fi
15843 DUMPBIN=$ac_cv_prog_DUMPBIN
15844 if test -n "$DUMPBIN"; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15846 $as_echo "$DUMPBIN" >&6; }
15847 else
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850 fi
15851
15852
15853 test -n "$DUMPBIN" && break
15854 done
15855 fi
15856 if test -z "$DUMPBIN"; then
15857 ac_ct_DUMPBIN=$DUMPBIN
15858 for ac_prog in dumpbin "link -dump"
15859 do
15860 # Extract the first word of "$ac_prog", so it can be a program name with args.
15861 set dummy $ac_prog; ac_word=$2
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863 $as_echo_n "checking for $ac_word... " >&6; }
15864 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 if test -n "$ac_ct_DUMPBIN"; then
15868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15869 else
15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15872 do
15873 IFS=$as_save_IFS
15874 test -z "$as_dir" && as_dir=.
15875 for ac_exec_ext in '' $ac_executable_extensions; do
15876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879 break 2
15880 fi
15881 done
15882 done
15883 IFS=$as_save_IFS
15884
15885 fi
15886 fi
15887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15888 if test -n "$ac_ct_DUMPBIN"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15890 $as_echo "$ac_ct_DUMPBIN" >&6; }
15891 else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893 $as_echo "no" >&6; }
15894 fi
15895
15896
15897 test -n "$ac_ct_DUMPBIN" && break
15898 done
15899
15900 if test "x$ac_ct_DUMPBIN" = x; then
15901 DUMPBIN=":"
15902 else
15903 case $cross_compiling:$ac_tool_warned in
15904 yes:)
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15907 ac_tool_warned=yes ;;
15908 esac
15909 DUMPBIN=$ac_ct_DUMPBIN
15910 fi
15911 fi
15912
15913 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15914 *COFF*)
15915 DUMPBIN="$DUMPBIN -symbols"
15916 ;;
15917 *)
15918 DUMPBIN=:
15919 ;;
15920 esac
15921 fi
15922
15923 if test "$DUMPBIN" != ":"; then
15924 NM="$DUMPBIN"
15925 fi
15926 fi
15927 test -z "$NM" && NM=nm
15928
15929
15930
15931
15932
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15935 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15936 if ${lt_cv_nm_interface+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 lt_cv_nm_interface="BSD nm"
15940 echo "int some_variable = 0;" > conftest.$ac_ext
15941 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15942 (eval "$ac_compile" 2>conftest.err)
15943 cat conftest.err >&5
15944 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15946 cat conftest.err >&5
15947 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15948 cat conftest.out >&5
15949 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15950 lt_cv_nm_interface="MS dumpbin"
15951 fi
15952 rm -f conftest*
15953 fi
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15955 $as_echo "$lt_cv_nm_interface" >&6; }
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15958 $as_echo_n "checking whether ln -s works... " >&6; }
15959 LN_S=$as_ln_s
15960 if test "$LN_S" = "ln -s"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15962 $as_echo "yes" >&6; }
15963 else
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15965 $as_echo "no, using $LN_S" >&6; }
15966 fi
15967
15968 # find the maximum length of command line arguments
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15970 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15971 if ${lt_cv_sys_max_cmd_len+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 i=0
15975 teststring="ABCD"
15976
15977 case $build_os in
15978 msdosdjgpp*)
15979 # On DJGPP, this test can blow up pretty badly due to problems in libc
15980 # (any single argument exceeding 2000 bytes causes a buffer overrun
15981 # during glob expansion). Even if it were fixed, the result of this
15982 # check would be larger than it should be.
15983 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15984 ;;
15985
15986 gnu*)
15987 # Under GNU Hurd, this test is not required because there is
15988 # no limit to the length of command line arguments.
15989 # Libtool will interpret -1 as no limit whatsoever
15990 lt_cv_sys_max_cmd_len=-1;
15991 ;;
15992
15993 cygwin* | mingw* | cegcc*)
15994 # On Win9x/ME, this test blows up -- it succeeds, but takes
15995 # about 5 minutes as the teststring grows exponentially.
15996 # Worse, since 9x/ME are not pre-emptively multitasking,
15997 # you end up with a "frozen" computer, even though with patience
15998 # the test eventually succeeds (with a max line length of 256k).
15999 # Instead, let's just punt: use the minimum linelength reported by
16000 # all of the supported platforms: 8192 (on NT/2K/XP).
16001 lt_cv_sys_max_cmd_len=8192;
16002 ;;
16003
16004 mint*)
16005 # On MiNT this can take a long time and run out of memory.
16006 lt_cv_sys_max_cmd_len=8192;
16007 ;;
16008
16009 amigaos*)
16010 # On AmigaOS with pdksh, this test takes hours, literally.
16011 # So we just punt and use a minimum line length of 8192.
16012 lt_cv_sys_max_cmd_len=8192;
16013 ;;
16014
16015 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16016 # This has been around since 386BSD, at least. Likely further.
16017 if test -x /sbin/sysctl; then
16018 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16019 elif test -x /usr/sbin/sysctl; then
16020 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16021 else
16022 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16023 fi
16024 # And add a safety zone
16025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16027 ;;
16028
16029 interix*)
16030 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16031 lt_cv_sys_max_cmd_len=196608
16032 ;;
16033
16034 osf*)
16035 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16036 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16037 # nice to cause kernel panics so lets avoid the loop below.
16038 # First set a reasonable default.
16039 lt_cv_sys_max_cmd_len=16384
16040 #
16041 if test -x /sbin/sysconfig; then
16042 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16043 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16044 esac
16045 fi
16046 ;;
16047 sco3.2v5*)
16048 lt_cv_sys_max_cmd_len=102400
16049 ;;
16050 sysv5* | sco5v6* | sysv4.2uw2*)
16051 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16052 if test -n "$kargmax"; then
16053 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16054 else
16055 lt_cv_sys_max_cmd_len=32768
16056 fi
16057 ;;
16058 *)
16059 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16060 if test -n "$lt_cv_sys_max_cmd_len"; then
16061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16063 else
16064 # Make teststring a little bigger before we do anything with it.
16065 # a 1K string should be a reasonable start.
16066 for i in 1 2 3 4 5 6 7 8 ; do
16067 teststring=$teststring$teststring
16068 done
16069 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16070 # If test is not a shell built-in, we'll probably end up computing a
16071 # maximum length that is only half of the actual maximum length, but
16072 # we can't tell.
16073 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16074 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16075 test $i != 17 # 1/2 MB should be enough
16076 do
16077 i=`expr $i + 1`
16078 teststring=$teststring$teststring
16079 done
16080 # Only check the string length outside the loop.
16081 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16082 teststring=
16083 # Add a significant safety factor because C++ compilers can tack on
16084 # massive amounts of additional arguments before passing them to the
16085 # linker. It appears as though 1/2 is a usable value.
16086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16087 fi
16088 ;;
16089 esac
16090
16091 fi
16092
16093 if test -n $lt_cv_sys_max_cmd_len ; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16095 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16096 else
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16098 $as_echo "none" >&6; }
16099 fi
16100 max_cmd_len=$lt_cv_sys_max_cmd_len
16101
16102
16103
16104
16105
16106
16107 : ${CP="cp -f"}
16108 : ${MV="mv -f"}
16109 : ${RM="rm -f"}
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16112 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16113 # Try some XSI features
16114 xsi_shell=no
16115 ( _lt_dummy="a/b/c"
16116 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16117 = c,a/b,, \
16118 && eval 'test $(( 1 + 1 )) -eq 2 \
16119 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16120 && xsi_shell=yes
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16122 $as_echo "$xsi_shell" >&6; }
16123
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16126 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16127 lt_shell_append=no
16128 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16129 >/dev/null 2>&1 \
16130 && lt_shell_append=yes
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16132 $as_echo "$lt_shell_append" >&6; }
16133
16134
16135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16136 lt_unset=unset
16137 else
16138 lt_unset=false
16139 fi
16140
16141
16142
16143
16144
16145 # test EBCDIC or ASCII
16146 case `echo X|tr X '\101'` in
16147 A) # ASCII based system
16148 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16149 lt_SP2NL='tr \040 \012'
16150 lt_NL2SP='tr \015\012 \040\040'
16151 ;;
16152 *) # EBCDIC based system
16153 lt_SP2NL='tr \100 \n'
16154 lt_NL2SP='tr \r\n \100\100'
16155 ;;
16156 esac
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16167 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16168 if ${lt_cv_ld_reload_flag+:} false; then :
16169 $as_echo_n "(cached) " >&6
16170 else
16171 lt_cv_ld_reload_flag='-r'
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16174 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16175 reload_flag=$lt_cv_ld_reload_flag
16176 case $reload_flag in
16177 "" | " "*) ;;
16178 *) reload_flag=" $reload_flag" ;;
16179 esac
16180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16181 case $host_os in
16182 darwin*)
16183 if test "$GCC" = yes; then
16184 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16185 else
16186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16187 fi
16188 ;;
16189 esac
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199 if test -n "$ac_tool_prefix"; then
16200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if ${ac_cv_prog_OBJDUMP+:} false; then :
16205 $as_echo_n "(cached) " >&6
16206 else
16207 if test -n "$OBJDUMP"; then
16208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16209 else
16210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16211 for as_dir in $PATH
16212 do
16213 IFS=$as_save_IFS
16214 test -z "$as_dir" && as_dir=.
16215 for ac_exec_ext in '' $ac_executable_extensions; do
16216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16219 break 2
16220 fi
16221 done
16222 done
16223 IFS=$as_save_IFS
16224
16225 fi
16226 fi
16227 OBJDUMP=$ac_cv_prog_OBJDUMP
16228 if test -n "$OBJDUMP"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16230 $as_echo "$OBJDUMP" >&6; }
16231 else
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233 $as_echo "no" >&6; }
16234 fi
16235
16236
16237 fi
16238 if test -z "$ac_cv_prog_OBJDUMP"; then
16239 ac_ct_OBJDUMP=$OBJDUMP
16240 # Extract the first word of "objdump", so it can be a program name with args.
16241 set dummy objdump; ac_word=$2
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16243 $as_echo_n "checking for $ac_word... " >&6; }
16244 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 if test -n "$ac_ct_OBJDUMP"; then
16248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16249 else
16250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $PATH
16252 do
16253 IFS=$as_save_IFS
16254 test -z "$as_dir" && as_dir=.
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16259 break 2
16260 fi
16261 done
16262 done
16263 IFS=$as_save_IFS
16264
16265 fi
16266 fi
16267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16268 if test -n "$ac_ct_OBJDUMP"; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16270 $as_echo "$ac_ct_OBJDUMP" >&6; }
16271 else
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273 $as_echo "no" >&6; }
16274 fi
16275
16276 if test "x$ac_ct_OBJDUMP" = x; then
16277 OBJDUMP="false"
16278 else
16279 case $cross_compiling:$ac_tool_warned in
16280 yes:)
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16283 ac_tool_warned=yes ;;
16284 esac
16285 OBJDUMP=$ac_ct_OBJDUMP
16286 fi
16287 else
16288 OBJDUMP="$ac_cv_prog_OBJDUMP"
16289 fi
16290
16291 test -z "$OBJDUMP" && OBJDUMP=objdump
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16303 if ${lt_cv_deplibs_check_method+:} false; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 lt_cv_file_magic_cmd='$MAGIC_CMD'
16307 lt_cv_file_magic_test_file=
16308 lt_cv_deplibs_check_method='unknown'
16309 # Need to set the preceding variable on all platforms that support
16310 # interlibrary dependencies.
16311 # 'none' -- dependencies not supported.
16312 # `unknown' -- same as none, but documents that we really don't know.
16313 # 'pass_all' -- all dependencies passed with no checks.
16314 # 'test_compile' -- check by making test program.
16315 # 'file_magic [[regex]]' -- check by looking for files in library path
16316 # which responds to the $file_magic_cmd with a given extended regex.
16317 # If you have `file' or equivalent on your system and you're not sure
16318 # whether `pass_all' will *always* work, you probably want this one.
16319
16320 case $host_os in
16321 aix[4-9]*)
16322 lt_cv_deplibs_check_method=pass_all
16323 ;;
16324
16325 beos*)
16326 lt_cv_deplibs_check_method=pass_all
16327 ;;
16328
16329 bsdi[45]*)
16330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16331 lt_cv_file_magic_cmd='/usr/bin/file -L'
16332 lt_cv_file_magic_test_file=/shlib/libc.so
16333 ;;
16334
16335 cygwin*)
16336 # func_win32_libid is a shell function defined in ltmain.sh
16337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16338 lt_cv_file_magic_cmd='func_win32_libid'
16339 ;;
16340
16341 mingw* | pw32*)
16342 # Base MSYS/MinGW do not provide the 'file' command needed by
16343 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16344 # unless we find 'file', for example because we are cross-compiling.
16345 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16346 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16348 lt_cv_file_magic_cmd='func_win32_libid'
16349 else
16350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16351 lt_cv_file_magic_cmd='$OBJDUMP -f'
16352 fi
16353 ;;
16354
16355 cegcc*)
16356 # use the weaker test based on 'objdump'. See mingw*.
16357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16358 lt_cv_file_magic_cmd='$OBJDUMP -f'
16359 ;;
16360
16361 darwin* | rhapsody*)
16362 lt_cv_deplibs_check_method=pass_all
16363 ;;
16364
16365 freebsd* | dragonfly*)
16366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16367 case $host_cpu in
16368 i*86 )
16369 # Not sure whether the presence of OpenBSD here was a mistake.
16370 # Let's accept both of them until this is cleared up.
16371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16372 lt_cv_file_magic_cmd=/usr/bin/file
16373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16374 ;;
16375 esac
16376 else
16377 lt_cv_deplibs_check_method=pass_all
16378 fi
16379 ;;
16380
16381 gnu*)
16382 lt_cv_deplibs_check_method=pass_all
16383 ;;
16384
16385 haiku*)
16386 lt_cv_deplibs_check_method=pass_all
16387 ;;
16388
16389 hpux10.20* | hpux11*)
16390 lt_cv_file_magic_cmd=/usr/bin/file
16391 case $host_cpu in
16392 ia64*)
16393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16395 ;;
16396 hppa*64*)
16397 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]'
16398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16399 ;;
16400 *)
16401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16403 ;;
16404 esac
16405 ;;
16406
16407 interix[3-9]*)
16408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16410 ;;
16411
16412 irix5* | irix6* | nonstopux*)
16413 case $LD in
16414 *-32|*"-32 ") libmagic=32-bit;;
16415 *-n32|*"-n32 ") libmagic=N32;;
16416 *-64|*"-64 ") libmagic=64-bit;;
16417 *) libmagic=never-match;;
16418 esac
16419 lt_cv_deplibs_check_method=pass_all
16420 ;;
16421
16422 # This must be Linux ELF.
16423 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16424 lt_cv_deplibs_check_method=pass_all
16425 ;;
16426
16427 netbsd*)
16428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16430 else
16431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16432 fi
16433 ;;
16434
16435 newos6*)
16436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16437 lt_cv_file_magic_cmd=/usr/bin/file
16438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16439 ;;
16440
16441 *nto* | *qnx*)
16442 lt_cv_deplibs_check_method=pass_all
16443 ;;
16444
16445 openbsd*)
16446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16448 else
16449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16450 fi
16451 ;;
16452
16453 osf3* | osf4* | osf5*)
16454 lt_cv_deplibs_check_method=pass_all
16455 ;;
16456
16457 rdos*)
16458 lt_cv_deplibs_check_method=pass_all
16459 ;;
16460
16461 solaris*)
16462 lt_cv_deplibs_check_method=pass_all
16463 ;;
16464
16465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16466 lt_cv_deplibs_check_method=pass_all
16467 ;;
16468
16469 sysv4 | sysv4.3*)
16470 case $host_vendor in
16471 motorola)
16472 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]'
16473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16474 ;;
16475 ncr)
16476 lt_cv_deplibs_check_method=pass_all
16477 ;;
16478 sequent)
16479 lt_cv_file_magic_cmd='/bin/file'
16480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16481 ;;
16482 sni)
16483 lt_cv_file_magic_cmd='/bin/file'
16484 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16485 lt_cv_file_magic_test_file=/lib/libc.so
16486 ;;
16487 siemens)
16488 lt_cv_deplibs_check_method=pass_all
16489 ;;
16490 pc)
16491 lt_cv_deplibs_check_method=pass_all
16492 ;;
16493 esac
16494 ;;
16495
16496 tpf*)
16497 lt_cv_deplibs_check_method=pass_all
16498 ;;
16499 vxworks*)
16500 # Assume VxWorks cross toolchains are built on Linux, possibly
16501 # as canadian for Windows hosts.
16502 lt_cv_deplibs_check_method=pass_all
16503 ;;
16504 esac
16505
16506 fi
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16508 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16509 file_magic_cmd=$lt_cv_file_magic_cmd
16510 deplibs_check_method=$lt_cv_deplibs_check_method
16511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524 plugin_option=
16525 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16526 for plugin in $plugin_names; do
16527 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16528 if test x$plugin_so = x$plugin; then
16529 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16530 fi
16531 if test x$plugin_so != x$plugin; then
16532 plugin_option="--plugin $plugin_so"
16533 break
16534 fi
16535 done
16536
16537 if test -n "$ac_tool_prefix"; then
16538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16539 set dummy ${ac_tool_prefix}ar; ac_word=$2
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16541 $as_echo_n "checking for $ac_word... " >&6; }
16542 if ${ac_cv_prog_AR+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 if test -n "$AR"; then
16546 ac_cv_prog_AR="$AR" # Let the user override the test.
16547 else
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16550 do
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
16554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16555 ac_cv_prog_AR="${ac_tool_prefix}ar"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 break 2
16558 fi
16559 done
16560 done
16561 IFS=$as_save_IFS
16562
16563 fi
16564 fi
16565 AR=$ac_cv_prog_AR
16566 if test -n "$AR"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16568 $as_echo "$AR" >&6; }
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16572 fi
16573
16574
16575 fi
16576 if test -z "$ac_cv_prog_AR"; then
16577 ac_ct_AR=$AR
16578 # Extract the first word of "ar", so it can be a program name with args.
16579 set dummy ar; ac_word=$2
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16581 $as_echo_n "checking for $ac_word... " >&6; }
16582 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 if test -n "$ac_ct_AR"; then
16586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16587 else
16588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589 for as_dir in $PATH
16590 do
16591 IFS=$as_save_IFS
16592 test -z "$as_dir" && as_dir=.
16593 for ac_exec_ext in '' $ac_executable_extensions; do
16594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16595 ac_cv_prog_ac_ct_AR="ar"
16596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16597 break 2
16598 fi
16599 done
16600 done
16601 IFS=$as_save_IFS
16602
16603 fi
16604 fi
16605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16606 if test -n "$ac_ct_AR"; then
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16608 $as_echo "$ac_ct_AR" >&6; }
16609 else
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16612 fi
16613
16614 if test "x$ac_ct_AR" = x; then
16615 AR="false"
16616 else
16617 case $cross_compiling:$ac_tool_warned in
16618 yes:)
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16621 ac_tool_warned=yes ;;
16622 esac
16623 AR=$ac_ct_AR
16624 fi
16625 else
16626 AR="$ac_cv_prog_AR"
16627 fi
16628
16629 test -z "$AR" && AR=ar
16630 if test -n "$plugin_option"; then
16631 if $AR --help 2>&1 | grep -q "\--plugin"; then
16632 touch conftest.c
16633 $AR $plugin_option rc conftest.a conftest.c
16634 if test "$?" != 0; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16636 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16637 else
16638 AR="$AR $plugin_option"
16639 fi
16640 rm -f conftest.*
16641 fi
16642 fi
16643 test -z "$AR_FLAGS" && AR_FLAGS=cru
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655 if test -n "$ac_tool_prefix"; then
16656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16657 set dummy ${ac_tool_prefix}strip; ac_word=$2
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16659 $as_echo_n "checking for $ac_word... " >&6; }
16660 if ${ac_cv_prog_STRIP+:} false; then :
16661 $as_echo_n "(cached) " >&6
16662 else
16663 if test -n "$STRIP"; then
16664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16665 else
16666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16667 for as_dir in $PATH
16668 do
16669 IFS=$as_save_IFS
16670 test -z "$as_dir" && as_dir=.
16671 for ac_exec_ext in '' $ac_executable_extensions; do
16672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16675 break 2
16676 fi
16677 done
16678 done
16679 IFS=$as_save_IFS
16680
16681 fi
16682 fi
16683 STRIP=$ac_cv_prog_STRIP
16684 if test -n "$STRIP"; then
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16686 $as_echo "$STRIP" >&6; }
16687 else
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16690 fi
16691
16692
16693 fi
16694 if test -z "$ac_cv_prog_STRIP"; then
16695 ac_ct_STRIP=$STRIP
16696 # Extract the first word of "strip", so it can be a program name with args.
16697 set dummy strip; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 if test -n "$ac_ct_STRIP"; then
16704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16705 else
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16708 do
16709 IFS=$as_save_IFS
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_ac_ct_STRIP="strip"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715 break 2
16716 fi
16717 done
16718 done
16719 IFS=$as_save_IFS
16720
16721 fi
16722 fi
16723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16724 if test -n "$ac_ct_STRIP"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16726 $as_echo "$ac_ct_STRIP" >&6; }
16727 else
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16730 fi
16731
16732 if test "x$ac_ct_STRIP" = x; then
16733 STRIP=":"
16734 else
16735 case $cross_compiling:$ac_tool_warned in
16736 yes:)
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16739 ac_tool_warned=yes ;;
16740 esac
16741 STRIP=$ac_ct_STRIP
16742 fi
16743 else
16744 STRIP="$ac_cv_prog_STRIP"
16745 fi
16746
16747 test -z "$STRIP" && STRIP=:
16748
16749
16750
16751
16752
16753
16754 if test -n "$ac_tool_prefix"; then
16755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16758 $as_echo_n "checking for $ac_word... " >&6; }
16759 if ${ac_cv_prog_RANLIB+:} false; then :
16760 $as_echo_n "(cached) " >&6
16761 else
16762 if test -n "$RANLIB"; then
16763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16764 else
16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766 for as_dir in $PATH
16767 do
16768 IFS=$as_save_IFS
16769 test -z "$as_dir" && as_dir=.
16770 for ac_exec_ext in '' $ac_executable_extensions; do
16771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16774 break 2
16775 fi
16776 done
16777 done
16778 IFS=$as_save_IFS
16779
16780 fi
16781 fi
16782 RANLIB=$ac_cv_prog_RANLIB
16783 if test -n "$RANLIB"; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16785 $as_echo "$RANLIB" >&6; }
16786 else
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789 fi
16790
16791
16792 fi
16793 if test -z "$ac_cv_prog_RANLIB"; then
16794 ac_ct_RANLIB=$RANLIB
16795 # Extract the first word of "ranlib", so it can be a program name with args.
16796 set dummy ranlib; ac_word=$2
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16798 $as_echo_n "checking for $ac_word... " >&6; }
16799 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16800 $as_echo_n "(cached) " >&6
16801 else
16802 if test -n "$ac_ct_RANLIB"; then
16803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16804 else
16805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16806 for as_dir in $PATH
16807 do
16808 IFS=$as_save_IFS
16809 test -z "$as_dir" && as_dir=.
16810 for ac_exec_ext in '' $ac_executable_extensions; do
16811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16812 ac_cv_prog_ac_ct_RANLIB="ranlib"
16813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16814 break 2
16815 fi
16816 done
16817 done
16818 IFS=$as_save_IFS
16819
16820 fi
16821 fi
16822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16823 if test -n "$ac_ct_RANLIB"; then
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16825 $as_echo "$ac_ct_RANLIB" >&6; }
16826 else
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16828 $as_echo "no" >&6; }
16829 fi
16830
16831 if test "x$ac_ct_RANLIB" = x; then
16832 RANLIB=":"
16833 else
16834 case $cross_compiling:$ac_tool_warned in
16835 yes:)
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16838 ac_tool_warned=yes ;;
16839 esac
16840 RANLIB=$ac_ct_RANLIB
16841 fi
16842 else
16843 RANLIB="$ac_cv_prog_RANLIB"
16844 fi
16845
16846 test -z "$RANLIB" && RANLIB=:
16847 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16848 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16849 RANLIB="$RANLIB $plugin_option"
16850 fi
16851 fi
16852
16853
16854
16855
16856
16857
16858 # Determine commands to create old-style static archives.
16859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16860 old_postinstall_cmds='chmod 644 $oldlib'
16861 old_postuninstall_cmds=
16862
16863 if test -n "$RANLIB"; then
16864 case $host_os in
16865 openbsd*)
16866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16867 ;;
16868 *)
16869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16870 ;;
16871 esac
16872 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16873 fi
16874
16875 case $host_os in
16876 darwin*)
16877 lock_old_archive_extraction=yes ;;
16878 *)
16879 lock_old_archive_extraction=no ;;
16880 esac
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920 # If no C compiler was specified, use CC.
16921 LTCC=${LTCC-"$CC"}
16922
16923 # If no C compiler flags were specified, use CFLAGS.
16924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16925
16926 # Allow CC to be a program name with arguments.
16927 compiler=$CC
16928
16929
16930 # Check for command to grab the raw symbol name followed by C symbol from nm.
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16932 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16933 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16934 $as_echo_n "(cached) " >&6
16935 else
16936
16937 # These are sane defaults that work on at least a few old systems.
16938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16939
16940 # Character class describing NM global symbol codes.
16941 symcode='[BCDEGRST]'
16942
16943 # Regexp to match symbols that can be accessed directly from C.
16944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16945
16946 # Define system-specific variables.
16947 case $host_os in
16948 aix*)
16949 symcode='[BCDT]'
16950 ;;
16951 cygwin* | mingw* | pw32* | cegcc*)
16952 symcode='[ABCDGISTW]'
16953 ;;
16954 hpux*)
16955 if test "$host_cpu" = ia64; then
16956 symcode='[ABCDEGRST]'
16957 fi
16958 ;;
16959 irix* | nonstopux*)
16960 symcode='[BCDEGRST]'
16961 ;;
16962 osf*)
16963 symcode='[BCDEGQRST]'
16964 ;;
16965 solaris*)
16966 symcode='[BCDRT]'
16967 ;;
16968 sco3.2v5*)
16969 symcode='[DT]'
16970 ;;
16971 sysv4.2uw2*)
16972 symcode='[DT]'
16973 ;;
16974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16975 symcode='[ABDT]'
16976 ;;
16977 sysv4)
16978 symcode='[DFNSTU]'
16979 ;;
16980 esac
16981
16982 # If we're using GNU nm, then use its standard symbol codes.
16983 case `$NM -V 2>&1` in
16984 *GNU* | *'with BFD'*)
16985 symcode='[ABCDGIRSTW]' ;;
16986 esac
16987
16988 # Transform an extracted symbol line into a proper C declaration.
16989 # Some systems (esp. on ia64) link data and code symbols differently,
16990 # so use this general approach.
16991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16992
16993 # Transform an extracted symbol line into symbol name and symbol address
16994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16995 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'"
16996
16997 # Handle CRLF in mingw tool chain
16998 opt_cr=
16999 case $build_os in
17000 mingw*)
17001 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17002 ;;
17003 esac
17004
17005 # Try without a prefix underscore, then with it.
17006 for ac_symprfx in "" "_"; do
17007
17008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17009 symxfrm="\\1 $ac_symprfx\\2 \\2"
17010
17011 # Write the raw and C identifiers.
17012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17013 # Fake it for dumpbin and say T for any non-static function
17014 # and D for any global variable.
17015 # Also find C++ and __fastcall symbols from MSVC++,
17016 # which start with @ or ?.
17017 lt_cv_sys_global_symbol_pipe="$AWK '"\
17018 " {last_section=section; section=\$ 3};"\
17019 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17020 " \$ 0!~/External *\|/{next};"\
17021 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17022 " {if(hide[section]) next};"\
17023 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17024 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17025 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17026 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17027 " ' prfx=^$ac_symprfx"
17028 else
17029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17030 fi
17031
17032 # Check to see that the pipe works correctly.
17033 pipe_works=no
17034
17035 rm -f conftest*
17036 cat > conftest.$ac_ext <<_LT_EOF
17037 #ifdef __cplusplus
17038 extern "C" {
17039 #endif
17040 char nm_test_var;
17041 void nm_test_func(void);
17042 void nm_test_func(void){}
17043 #ifdef __cplusplus
17044 }
17045 #endif
17046 int main(){nm_test_var='a';nm_test_func();return(0);}
17047 _LT_EOF
17048
17049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17050 (eval $ac_compile) 2>&5
17051 ac_status=$?
17052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17053 test $ac_status = 0; }; then
17054 # Now try to grab the symbols.
17055 nlist=conftest.nm
17056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17057 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17058 ac_status=$?
17059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17060 test $ac_status = 0; } && test -s "$nlist"; then
17061 # Try sorting and uniquifying the output.
17062 if sort "$nlist" | uniq > "$nlist"T; then
17063 mv -f "$nlist"T "$nlist"
17064 else
17065 rm -f "$nlist"T
17066 fi
17067
17068 # Make sure that we snagged all the symbols we need.
17069 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17070 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17071 cat <<_LT_EOF > conftest.$ac_ext
17072 #ifdef __cplusplus
17073 extern "C" {
17074 #endif
17075
17076 _LT_EOF
17077 # Now generate the symbol file.
17078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17079
17080 cat <<_LT_EOF >> conftest.$ac_ext
17081
17082 /* The mapping between symbol names and symbols. */
17083 const struct {
17084 const char *name;
17085 void *address;
17086 }
17087 lt__PROGRAM__LTX_preloaded_symbols[] =
17088 {
17089 { "@PROGRAM@", (void *) 0 },
17090 _LT_EOF
17091 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17092 cat <<\_LT_EOF >> conftest.$ac_ext
17093 {0, (void *) 0}
17094 };
17095
17096 /* This works around a problem in FreeBSD linker */
17097 #ifdef FREEBSD_WORKAROUND
17098 static const void *lt_preloaded_setup() {
17099 return lt__PROGRAM__LTX_preloaded_symbols;
17100 }
17101 #endif
17102
17103 #ifdef __cplusplus
17104 }
17105 #endif
17106 _LT_EOF
17107 # Now try linking the two files.
17108 mv conftest.$ac_objext conftstm.$ac_objext
17109 lt_save_LIBS="$LIBS"
17110 lt_save_CFLAGS="$CFLAGS"
17111 LIBS="conftstm.$ac_objext"
17112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17114 (eval $ac_link) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17118 pipe_works=yes
17119 fi
17120 LIBS="$lt_save_LIBS"
17121 CFLAGS="$lt_save_CFLAGS"
17122 else
17123 echo "cannot find nm_test_func in $nlist" >&5
17124 fi
17125 else
17126 echo "cannot find nm_test_var in $nlist" >&5
17127 fi
17128 else
17129 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17130 fi
17131 else
17132 echo "$progname: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17134 fi
17135 rm -rf conftest* conftst*
17136
17137 # Do not use the global_symbol_pipe unless it works.
17138 if test "$pipe_works" = yes; then
17139 break
17140 else
17141 lt_cv_sys_global_symbol_pipe=
17142 fi
17143 done
17144
17145 fi
17146
17147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17148 lt_cv_sys_global_symbol_to_cdecl=
17149 fi
17150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17152 $as_echo "failed" >&6; }
17153 else
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17155 $as_echo "ok" >&6; }
17156 fi
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179 # Check whether --enable-libtool-lock was given.
17180 if test "${enable_libtool_lock+set}" = set; then :
17181 enableval=$enable_libtool_lock;
17182 fi
17183
17184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17185
17186 # Some flags need to be propagated to the compiler or linker for good
17187 # libtool support.
17188 case $host in
17189 ia64-*-hpux*)
17190 # Find out which ABI we are using.
17191 echo 'int i;' > conftest.$ac_ext
17192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17193 (eval $ac_compile) 2>&5
17194 ac_status=$?
17195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17196 test $ac_status = 0; }; then
17197 case `/usr/bin/file conftest.$ac_objext` in
17198 *ELF-32*)
17199 HPUX_IA64_MODE="32"
17200 ;;
17201 *ELF-64*)
17202 HPUX_IA64_MODE="64"
17203 ;;
17204 esac
17205 fi
17206 rm -rf conftest*
17207 ;;
17208 *-*-irix6*)
17209 # Find out which ABI we are using.
17210 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17212 (eval $ac_compile) 2>&5
17213 ac_status=$?
17214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17215 test $ac_status = 0; }; then
17216 if test "$lt_cv_prog_gnu_ld" = yes; then
17217 case `/usr/bin/file conftest.$ac_objext` in
17218 *32-bit*)
17219 LD="${LD-ld} -melf32bsmip"
17220 ;;
17221 *N32*)
17222 LD="${LD-ld} -melf32bmipn32"
17223 ;;
17224 *64-bit*)
17225 LD="${LD-ld} -melf64bmip"
17226 ;;
17227 esac
17228 else
17229 case `/usr/bin/file conftest.$ac_objext` in
17230 *32-bit*)
17231 LD="${LD-ld} -32"
17232 ;;
17233 *N32*)
17234 LD="${LD-ld} -n32"
17235 ;;
17236 *64-bit*)
17237 LD="${LD-ld} -64"
17238 ;;
17239 esac
17240 fi
17241 fi
17242 rm -rf conftest*
17243 ;;
17244
17245 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17246 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17247 # Find out which ABI we are using.
17248 echo 'int i;' > conftest.$ac_ext
17249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17250 (eval $ac_compile) 2>&5
17251 ac_status=$?
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; then
17254 case `/usr/bin/file conftest.o` in
17255 *32-bit*)
17256 case $host in
17257 x86_64-*kfreebsd*-gnu)
17258 LD="${LD-ld} -m elf_i386_fbsd"
17259 ;;
17260 x86_64-*linux*)
17261 case `/usr/bin/file conftest.o` in
17262 *x86-64*)
17263 LD="${LD-ld} -m elf32_x86_64"
17264 ;;
17265 *)
17266 LD="${LD-ld} -m elf_i386"
17267 ;;
17268 esac
17269 ;;
17270 powerpc64le-*linux*)
17271 LD="${LD-ld} -m elf32lppclinux"
17272 ;;
17273 powerpc64-*linux*)
17274 LD="${LD-ld} -m elf32ppclinux"
17275 ;;
17276 s390x-*linux*)
17277 LD="${LD-ld} -m elf_s390"
17278 ;;
17279 sparc64-*linux*)
17280 LD="${LD-ld} -m elf32_sparc"
17281 ;;
17282 esac
17283 ;;
17284 *64-bit*)
17285 case $host in
17286 x86_64-*kfreebsd*-gnu)
17287 LD="${LD-ld} -m elf_x86_64_fbsd"
17288 ;;
17289 x86_64-*linux*)
17290 LD="${LD-ld} -m elf_x86_64"
17291 ;;
17292 powerpcle-*linux*)
17293 LD="${LD-ld} -m elf64lppc"
17294 ;;
17295 powerpc-*linux*)
17296 LD="${LD-ld} -m elf64ppc"
17297 ;;
17298 s390*-*linux*|s390*-*tpf*)
17299 LD="${LD-ld} -m elf64_s390"
17300 ;;
17301 sparc*-*linux*)
17302 LD="${LD-ld} -m elf64_sparc"
17303 ;;
17304 esac
17305 ;;
17306 esac
17307 fi
17308 rm -rf conftest*
17309 ;;
17310
17311 *-*-sco3.2v5*)
17312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17313 SAVE_CFLAGS="$CFLAGS"
17314 CFLAGS="$CFLAGS -belf"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17316 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17317 if ${lt_cv_cc_needs_belf+:} false; then :
17318 $as_echo_n "(cached) " >&6
17319 else
17320 ac_ext=c
17321 ac_cpp='$CPP $CPPFLAGS'
17322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17325
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328
17329 int
17330 main ()
17331 {
17332
17333 ;
17334 return 0;
17335 }
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338 lt_cv_cc_needs_belf=yes
17339 else
17340 lt_cv_cc_needs_belf=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 ac_ext=c
17345 ac_cpp='$CPP $CPPFLAGS'
17346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17349
17350 fi
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17352 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17353 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17354 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17355 CFLAGS="$SAVE_CFLAGS"
17356 fi
17357 ;;
17358 sparc*-*solaris*)
17359 # Find out which ABI we are using.
17360 echo 'int i;' > conftest.$ac_ext
17361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17362 (eval $ac_compile) 2>&5
17363 ac_status=$?
17364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17365 test $ac_status = 0; }; then
17366 case `/usr/bin/file conftest.o` in
17367 *64-bit*)
17368 case $lt_cv_prog_gnu_ld in
17369 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17370 *)
17371 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17372 LD="${LD-ld} -64"
17373 fi
17374 ;;
17375 esac
17376 ;;
17377 esac
17378 fi
17379 rm -rf conftest*
17380 ;;
17381 esac
17382
17383 need_locks="$enable_libtool_lock"
17384
17385
17386 case $host_os in
17387 rhapsody* | darwin*)
17388 if test -n "$ac_tool_prefix"; then
17389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17390 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17392 $as_echo_n "checking for $ac_word... " >&6; }
17393 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 if test -n "$DSYMUTIL"; then
17397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17398 else
17399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17400 for as_dir in $PATH
17401 do
17402 IFS=$as_save_IFS
17403 test -z "$as_dir" && as_dir=.
17404 for ac_exec_ext in '' $ac_executable_extensions; do
17405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17408 break 2
17409 fi
17410 done
17411 done
17412 IFS=$as_save_IFS
17413
17414 fi
17415 fi
17416 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17417 if test -n "$DSYMUTIL"; then
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17419 $as_echo "$DSYMUTIL" >&6; }
17420 else
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422 $as_echo "no" >&6; }
17423 fi
17424
17425
17426 fi
17427 if test -z "$ac_cv_prog_DSYMUTIL"; then
17428 ac_ct_DSYMUTIL=$DSYMUTIL
17429 # Extract the first word of "dsymutil", so it can be a program name with args.
17430 set dummy dsymutil; ac_word=$2
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17432 $as_echo_n "checking for $ac_word... " >&6; }
17433 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 if test -n "$ac_ct_DSYMUTIL"; then
17437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17438 else
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17441 do
17442 IFS=$as_save_IFS
17443 test -z "$as_dir" && as_dir=.
17444 for ac_exec_ext in '' $ac_executable_extensions; do
17445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17448 break 2
17449 fi
17450 done
17451 done
17452 IFS=$as_save_IFS
17453
17454 fi
17455 fi
17456 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17457 if test -n "$ac_ct_DSYMUTIL"; then
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17459 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17460 else
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 fi
17464
17465 if test "x$ac_ct_DSYMUTIL" = x; then
17466 DSYMUTIL=":"
17467 else
17468 case $cross_compiling:$ac_tool_warned in
17469 yes:)
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17472 ac_tool_warned=yes ;;
17473 esac
17474 DSYMUTIL=$ac_ct_DSYMUTIL
17475 fi
17476 else
17477 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17478 fi
17479
17480 if test -n "$ac_tool_prefix"; then
17481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17482 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17484 $as_echo_n "checking for $ac_word... " >&6; }
17485 if ${ac_cv_prog_NMEDIT+:} false; then :
17486 $as_echo_n "(cached) " >&6
17487 else
17488 if test -n "$NMEDIT"; then
17489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17490 else
17491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17493 do
17494 IFS=$as_save_IFS
17495 test -z "$as_dir" && as_dir=.
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500 break 2
17501 fi
17502 done
17503 done
17504 IFS=$as_save_IFS
17505
17506 fi
17507 fi
17508 NMEDIT=$ac_cv_prog_NMEDIT
17509 if test -n "$NMEDIT"; then
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17511 $as_echo "$NMEDIT" >&6; }
17512 else
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17514 $as_echo "no" >&6; }
17515 fi
17516
17517
17518 fi
17519 if test -z "$ac_cv_prog_NMEDIT"; then
17520 ac_ct_NMEDIT=$NMEDIT
17521 # Extract the first word of "nmedit", so it can be a program name with args.
17522 set dummy nmedit; ac_word=$2
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17524 $as_echo_n "checking for $ac_word... " >&6; }
17525 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if test -n "$ac_ct_NMEDIT"; then
17529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17530 else
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17533 do
17534 IFS=$as_save_IFS
17535 test -z "$as_dir" && as_dir=.
17536 for ac_exec_ext in '' $ac_executable_extensions; do
17537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17538 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17540 break 2
17541 fi
17542 done
17543 done
17544 IFS=$as_save_IFS
17545
17546 fi
17547 fi
17548 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17549 if test -n "$ac_ct_NMEDIT"; then
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17551 $as_echo "$ac_ct_NMEDIT" >&6; }
17552 else
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555 fi
17556
17557 if test "x$ac_ct_NMEDIT" = x; then
17558 NMEDIT=":"
17559 else
17560 case $cross_compiling:$ac_tool_warned in
17561 yes:)
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17564 ac_tool_warned=yes ;;
17565 esac
17566 NMEDIT=$ac_ct_NMEDIT
17567 fi
17568 else
17569 NMEDIT="$ac_cv_prog_NMEDIT"
17570 fi
17571
17572 if test -n "$ac_tool_prefix"; then
17573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17574 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_prog_LIPO+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 if test -n "$LIPO"; then
17581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17582 else
17583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584 for as_dir in $PATH
17585 do
17586 IFS=$as_save_IFS
17587 test -z "$as_dir" && as_dir=.
17588 for ac_exec_ext in '' $ac_executable_extensions; do
17589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592 break 2
17593 fi
17594 done
17595 done
17596 IFS=$as_save_IFS
17597
17598 fi
17599 fi
17600 LIPO=$ac_cv_prog_LIPO
17601 if test -n "$LIPO"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17603 $as_echo "$LIPO" >&6; }
17604 else
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606 $as_echo "no" >&6; }
17607 fi
17608
17609
17610 fi
17611 if test -z "$ac_cv_prog_LIPO"; then
17612 ac_ct_LIPO=$LIPO
17613 # Extract the first word of "lipo", so it can be a program name with args.
17614 set dummy lipo; ac_word=$2
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616 $as_echo_n "checking for $ac_word... " >&6; }
17617 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 if test -n "$ac_ct_LIPO"; then
17621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17622 else
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624 for as_dir in $PATH
17625 do
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
17628 for ac_exec_ext in '' $ac_executable_extensions; do
17629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17630 ac_cv_prog_ac_ct_LIPO="lipo"
17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632 break 2
17633 fi
17634 done
17635 done
17636 IFS=$as_save_IFS
17637
17638 fi
17639 fi
17640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17641 if test -n "$ac_ct_LIPO"; then
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17643 $as_echo "$ac_ct_LIPO" >&6; }
17644 else
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646 $as_echo "no" >&6; }
17647 fi
17648
17649 if test "x$ac_ct_LIPO" = x; then
17650 LIPO=":"
17651 else
17652 case $cross_compiling:$ac_tool_warned in
17653 yes:)
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17656 ac_tool_warned=yes ;;
17657 esac
17658 LIPO=$ac_ct_LIPO
17659 fi
17660 else
17661 LIPO="$ac_cv_prog_LIPO"
17662 fi
17663
17664 if test -n "$ac_tool_prefix"; then
17665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17666 set dummy ${ac_tool_prefix}otool; ac_word=$2
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17668 $as_echo_n "checking for $ac_word... " >&6; }
17669 if ${ac_cv_prog_OTOOL+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 if test -n "$OTOOL"; then
17673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17674 else
17675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in $PATH
17677 do
17678 IFS=$as_save_IFS
17679 test -z "$as_dir" && as_dir=.
17680 for ac_exec_ext in '' $ac_executable_extensions; do
17681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17684 break 2
17685 fi
17686 done
17687 done
17688 IFS=$as_save_IFS
17689
17690 fi
17691 fi
17692 OTOOL=$ac_cv_prog_OTOOL
17693 if test -n "$OTOOL"; then
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17695 $as_echo "$OTOOL" >&6; }
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17699 fi
17700
17701
17702 fi
17703 if test -z "$ac_cv_prog_OTOOL"; then
17704 ac_ct_OTOOL=$OTOOL
17705 # Extract the first word of "otool", so it can be a program name with args.
17706 set dummy otool; ac_word=$2
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17708 $as_echo_n "checking for $ac_word... " >&6; }
17709 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 if test -n "$ac_ct_OTOOL"; then
17713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17714 else
17715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17716 for as_dir in $PATH
17717 do
17718 IFS=$as_save_IFS
17719 test -z "$as_dir" && as_dir=.
17720 for ac_exec_ext in '' $ac_executable_extensions; do
17721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17722 ac_cv_prog_ac_ct_OTOOL="otool"
17723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17724 break 2
17725 fi
17726 done
17727 done
17728 IFS=$as_save_IFS
17729
17730 fi
17731 fi
17732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17733 if test -n "$ac_ct_OTOOL"; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17735 $as_echo "$ac_ct_OTOOL" >&6; }
17736 else
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738 $as_echo "no" >&6; }
17739 fi
17740
17741 if test "x$ac_ct_OTOOL" = x; then
17742 OTOOL=":"
17743 else
17744 case $cross_compiling:$ac_tool_warned in
17745 yes:)
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17748 ac_tool_warned=yes ;;
17749 esac
17750 OTOOL=$ac_ct_OTOOL
17751 fi
17752 else
17753 OTOOL="$ac_cv_prog_OTOOL"
17754 fi
17755
17756 if test -n "$ac_tool_prefix"; then
17757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17760 $as_echo_n "checking for $ac_word... " >&6; }
17761 if ${ac_cv_prog_OTOOL64+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 if test -n "$OTOOL64"; then
17765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17766 else
17767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17768 for as_dir in $PATH
17769 do
17770 IFS=$as_save_IFS
17771 test -z "$as_dir" && as_dir=.
17772 for ac_exec_ext in '' $ac_executable_extensions; do
17773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17776 break 2
17777 fi
17778 done
17779 done
17780 IFS=$as_save_IFS
17781
17782 fi
17783 fi
17784 OTOOL64=$ac_cv_prog_OTOOL64
17785 if test -n "$OTOOL64"; then
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17787 $as_echo "$OTOOL64" >&6; }
17788 else
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17790 $as_echo "no" >&6; }
17791 fi
17792
17793
17794 fi
17795 if test -z "$ac_cv_prog_OTOOL64"; then
17796 ac_ct_OTOOL64=$OTOOL64
17797 # Extract the first word of "otool64", so it can be a program name with args.
17798 set dummy otool64; ac_word=$2
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17800 $as_echo_n "checking for $ac_word... " >&6; }
17801 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 if test -n "$ac_ct_OTOOL64"; then
17805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17806 else
17807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17808 for as_dir in $PATH
17809 do
17810 IFS=$as_save_IFS
17811 test -z "$as_dir" && as_dir=.
17812 for ac_exec_ext in '' $ac_executable_extensions; do
17813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17814 ac_cv_prog_ac_ct_OTOOL64="otool64"
17815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17816 break 2
17817 fi
17818 done
17819 done
17820 IFS=$as_save_IFS
17821
17822 fi
17823 fi
17824 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17825 if test -n "$ac_ct_OTOOL64"; then
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17827 $as_echo "$ac_ct_OTOOL64" >&6; }
17828 else
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 fi
17832
17833 if test "x$ac_ct_OTOOL64" = x; then
17834 OTOOL64=":"
17835 else
17836 case $cross_compiling:$ac_tool_warned in
17837 yes:)
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17840 ac_tool_warned=yes ;;
17841 esac
17842 OTOOL64=$ac_ct_OTOOL64
17843 fi
17844 else
17845 OTOOL64="$ac_cv_prog_OTOOL64"
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17875 $as_echo_n "checking for -single_module linker flag... " >&6; }
17876 if ${lt_cv_apple_cc_single_mod+:} false; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 lt_cv_apple_cc_single_mod=no
17880 if test -z "${LT_MULTI_MODULE}"; then
17881 # By default we will add the -single_module flag. You can override
17882 # by either setting the environment variable LT_MULTI_MODULE
17883 # non-empty at configure time, or by adding -multi_module to the
17884 # link flags.
17885 rm -rf libconftest.dylib*
17886 echo "int foo(void){return 1;}" > conftest.c
17887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17888 -dynamiclib -Wl,-single_module conftest.c" >&5
17889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17891 _lt_result=$?
17892 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17893 lt_cv_apple_cc_single_mod=yes
17894 else
17895 cat conftest.err >&5
17896 fi
17897 rm -rf libconftest.dylib*
17898 rm -f conftest.*
17899 fi
17900 fi
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17902 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17905 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17906 $as_echo_n "(cached) " >&6
17907 else
17908 lt_cv_ld_exported_symbols_list=no
17909 save_LDFLAGS=$LDFLAGS
17910 echo "_main" > conftest.sym
17911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17914
17915 int
17916 main ()
17917 {
17918
17919 ;
17920 return 0;
17921 }
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924 lt_cv_ld_exported_symbols_list=yes
17925 else
17926 lt_cv_ld_exported_symbols_list=no
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 LDFLAGS="$save_LDFLAGS"
17931
17932 fi
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17934 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17936 $as_echo_n "checking for -force_load linker flag... " >&6; }
17937 if ${lt_cv_ld_force_load+:} false; then :
17938 $as_echo_n "(cached) " >&6
17939 else
17940 lt_cv_ld_force_load=no
17941 cat > conftest.c << _LT_EOF
17942 int forced_loaded() { return 2;}
17943 _LT_EOF
17944 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17945 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17946 echo "$AR cru libconftest.a conftest.o" >&5
17947 $AR cru libconftest.a conftest.o 2>&5
17948 cat > conftest.c << _LT_EOF
17949 int main() { return 0;}
17950 _LT_EOF
17951 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17952 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17953 _lt_result=$?
17954 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17955 lt_cv_ld_force_load=yes
17956 else
17957 cat conftest.err >&5
17958 fi
17959 rm -f conftest.err libconftest.a conftest conftest.c
17960 rm -rf conftest.dSYM
17961
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17964 $as_echo "$lt_cv_ld_force_load" >&6; }
17965 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17966 # build without first building modern cctools / linker.
17967 case $host_cpu-$host_os in
17968 *-rhapsody* | *-darwin1.[012])
17969 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17970 *-darwin1.*)
17971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17972 *-darwin*)
17973 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17974 # deployment target is forced to an earlier version.
17975 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17976 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17977 ;;
17978 10.[012][,.]*)
17979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17980 ;;
17981 *)
17982 ;;
17983 esac
17984 ;;
17985 esac
17986 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17987 _lt_dar_single_mod='$single_module'
17988 fi
17989 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17990 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17991 else
17992 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17993 fi
17994 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17995 _lt_dsymutil='~$DSYMUTIL $lib || :'
17996 else
17997 _lt_dsymutil=
17998 fi
17999 ;;
18000 esac
18001
18002
18003 for ac_header in dlfcn.h
18004 do :
18005 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
18006 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18007 cat >>confdefs.h <<_ACEOF
18008 #define HAVE_DLFCN_H 1
18009 _ACEOF
18010
18011 fi
18012 done
18013
18014
18015
18016
18017
18018 # Set options
18019
18020
18021
18022 enable_dlopen=no
18023
18024
18025 enable_win32_dll=no
18026
18027
18028 # Check whether --enable-shared was given.
18029 if test "${enable_shared+set}" = set; then :
18030 enableval=$enable_shared; p=${PACKAGE-default}
18031 case $enableval in
18032 yes) enable_shared=yes ;;
18033 no) enable_shared=no ;;
18034 *)
18035 enable_shared=no
18036 # Look at the argument we got. We use all the common list separators.
18037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18038 for pkg in $enableval; do
18039 IFS="$lt_save_ifs"
18040 if test "X$pkg" = "X$p"; then
18041 enable_shared=yes
18042 fi
18043 done
18044 IFS="$lt_save_ifs"
18045 ;;
18046 esac
18047 else
18048 enable_shared=yes
18049 fi
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059 # Check whether --enable-static was given.
18060 if test "${enable_static+set}" = set; then :
18061 enableval=$enable_static; p=${PACKAGE-default}
18062 case $enableval in
18063 yes) enable_static=yes ;;
18064 no) enable_static=no ;;
18065 *)
18066 enable_static=no
18067 # Look at the argument we got. We use all the common list separators.
18068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18069 for pkg in $enableval; do
18070 IFS="$lt_save_ifs"
18071 if test "X$pkg" = "X$p"; then
18072 enable_static=yes
18073 fi
18074 done
18075 IFS="$lt_save_ifs"
18076 ;;
18077 esac
18078 else
18079 enable_static=yes
18080 fi
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091 # Check whether --with-pic was given.
18092 if test "${with_pic+set}" = set; then :
18093 withval=$with_pic; pic_mode="$withval"
18094 else
18095 pic_mode=default
18096 fi
18097
18098
18099 test -z "$pic_mode" && pic_mode=default
18100
18101
18102
18103
18104
18105
18106
18107 # Check whether --enable-fast-install was given.
18108 if test "${enable_fast_install+set}" = set; then :
18109 enableval=$enable_fast_install; p=${PACKAGE-default}
18110 case $enableval in
18111 yes) enable_fast_install=yes ;;
18112 no) enable_fast_install=no ;;
18113 *)
18114 enable_fast_install=no
18115 # Look at the argument we got. We use all the common list separators.
18116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18117 for pkg in $enableval; do
18118 IFS="$lt_save_ifs"
18119 if test "X$pkg" = "X$p"; then
18120 enable_fast_install=yes
18121 fi
18122 done
18123 IFS="$lt_save_ifs"
18124 ;;
18125 esac
18126 else
18127 enable_fast_install=yes
18128 fi
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140 # This can be used to rebuild libtool when needed
18141 LIBTOOL_DEPS="$ltmain"
18142
18143 # Always use our own libtool.
18144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171 test -z "$LN_S" && LN_S="ln -s"
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186 if test -n "${ZSH_VERSION+set}" ; then
18187 setopt NO_GLOB_SUBST
18188 fi
18189
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18191 $as_echo_n "checking for objdir... " >&6; }
18192 if ${lt_cv_objdir+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 rm -f .libs 2>/dev/null
18196 mkdir .libs 2>/dev/null
18197 if test -d .libs; then
18198 lt_cv_objdir=.libs
18199 else
18200 # MS-DOS does not allow filenames that begin with a dot.
18201 lt_cv_objdir=_libs
18202 fi
18203 rmdir .libs 2>/dev/null
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18206 $as_echo "$lt_cv_objdir" >&6; }
18207 objdir=$lt_cv_objdir
18208
18209
18210
18211
18212
18213 cat >>confdefs.h <<_ACEOF
18214 #define LT_OBJDIR "$lt_cv_objdir/"
18215 _ACEOF
18216
18217
18218
18219
18220 case $host_os in
18221 aix3*)
18222 # AIX sometimes has problems with the GCC collect2 program. For some
18223 # reason, if we set the COLLECT_NAMES environment variable, the problems
18224 # vanish in a puff of smoke.
18225 if test "X${COLLECT_NAMES+set}" != Xset; then
18226 COLLECT_NAMES=
18227 export COLLECT_NAMES
18228 fi
18229 ;;
18230 esac
18231
18232 # Global variables:
18233 ofile=libtool
18234 can_build_shared=yes
18235
18236 # All known linkers require a `.a' archive for static linking (except MSVC,
18237 # which needs '.lib').
18238 libext=a
18239
18240 with_gnu_ld="$lt_cv_prog_gnu_ld"
18241
18242 old_CC="$CC"
18243 old_CFLAGS="$CFLAGS"
18244
18245 # Set sane defaults for various variables
18246 test -z "$CC" && CC=cc
18247 test -z "$LTCC" && LTCC=$CC
18248 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18249 test -z "$LD" && LD=ld
18250 test -z "$ac_objext" && ac_objext=o
18251
18252 for cc_temp in $compiler""; do
18253 case $cc_temp in
18254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18256 \-*) ;;
18257 *) break;;
18258 esac
18259 done
18260 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18261
18262
18263 # Only perform the check for file, if the check method requires it
18264 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18265 case $deplibs_check_method in
18266 file_magic*)
18267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18269 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18270 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 case $MAGIC_CMD in
18274 [\\/*] | ?:[\\/]*)
18275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18276 ;;
18277 *)
18278 lt_save_MAGIC_CMD="$MAGIC_CMD"
18279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18281 for ac_dir in $ac_dummy; do
18282 IFS="$lt_save_ifs"
18283 test -z "$ac_dir" && ac_dir=.
18284 if test -f $ac_dir/${ac_tool_prefix}file; then
18285 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18286 if test -n "$file_magic_test_file"; then
18287 case $deplibs_check_method in
18288 "file_magic "*)
18289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18292 $EGREP "$file_magic_regex" > /dev/null; then
18293 :
18294 else
18295 cat <<_LT_EOF 1>&2
18296
18297 *** Warning: the command libtool uses to detect shared libraries,
18298 *** $file_magic_cmd, produces output that libtool cannot recognize.
18299 *** The result is that libtool may fail to recognize shared libraries
18300 *** as such. This will affect the creation of libtool libraries that
18301 *** depend on shared libraries, but programs linked with such libtool
18302 *** libraries will work regardless of this problem. Nevertheless, you
18303 *** may want to report the problem to your system manager and/or to
18304 *** [email protected]
18305
18306 _LT_EOF
18307 fi ;;
18308 esac
18309 fi
18310 break
18311 fi
18312 done
18313 IFS="$lt_save_ifs"
18314 MAGIC_CMD="$lt_save_MAGIC_CMD"
18315 ;;
18316 esac
18317 fi
18318
18319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18320 if test -n "$MAGIC_CMD"; then
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18322 $as_echo "$MAGIC_CMD" >&6; }
18323 else
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 $as_echo "no" >&6; }
18326 fi
18327
18328
18329
18330
18331
18332 if test -z "$lt_cv_path_MAGIC_CMD"; then
18333 if test -n "$ac_tool_prefix"; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18335 $as_echo_n "checking for file... " >&6; }
18336 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18337 $as_echo_n "(cached) " >&6
18338 else
18339 case $MAGIC_CMD in
18340 [\\/*] | ?:[\\/]*)
18341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18342 ;;
18343 *)
18344 lt_save_MAGIC_CMD="$MAGIC_CMD"
18345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18347 for ac_dir in $ac_dummy; do
18348 IFS="$lt_save_ifs"
18349 test -z "$ac_dir" && ac_dir=.
18350 if test -f $ac_dir/file; then
18351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18352 if test -n "$file_magic_test_file"; then
18353 case $deplibs_check_method in
18354 "file_magic "*)
18355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18358 $EGREP "$file_magic_regex" > /dev/null; then
18359 :
18360 else
18361 cat <<_LT_EOF 1>&2
18362
18363 *** Warning: the command libtool uses to detect shared libraries,
18364 *** $file_magic_cmd, produces output that libtool cannot recognize.
18365 *** The result is that libtool may fail to recognize shared libraries
18366 *** as such. This will affect the creation of libtool libraries that
18367 *** depend on shared libraries, but programs linked with such libtool
18368 *** libraries will work regardless of this problem. Nevertheless, you
18369 *** may want to report the problem to your system manager and/or to
18370 *** [email protected]
18371
18372 _LT_EOF
18373 fi ;;
18374 esac
18375 fi
18376 break
18377 fi
18378 done
18379 IFS="$lt_save_ifs"
18380 MAGIC_CMD="$lt_save_MAGIC_CMD"
18381 ;;
18382 esac
18383 fi
18384
18385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18386 if test -n "$MAGIC_CMD"; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18388 $as_echo "$MAGIC_CMD" >&6; }
18389 else
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391 $as_echo "no" >&6; }
18392 fi
18393
18394
18395 else
18396 MAGIC_CMD=:
18397 fi
18398 fi
18399
18400 fi
18401 ;;
18402 esac
18403
18404 # Use C for the default configuration in the libtool script
18405
18406 lt_save_CC="$CC"
18407 ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413
18414 # Source file extension for C test sources.
18415 ac_ext=c
18416
18417 # Object file extension for compiled C test sources.
18418 objext=o
18419 objext=$objext
18420
18421 # Code to be used in simple compile tests
18422 lt_simple_compile_test_code="int some_variable = 0;"
18423
18424 # Code to be used in simple link tests
18425 lt_simple_link_test_code='int main(){return(0);}'
18426
18427
18428
18429
18430
18431
18432
18433 # If no C compiler was specified, use CC.
18434 LTCC=${LTCC-"$CC"}
18435
18436 # If no C compiler flags were specified, use CFLAGS.
18437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18438
18439 # Allow CC to be a program name with arguments.
18440 compiler=$CC
18441
18442 # Save the default compiler, since it gets overwritten when the other
18443 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18444 compiler_DEFAULT=$CC
18445
18446 # save warnings/boilerplate of simple test code
18447 ac_outfile=conftest.$ac_objext
18448 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18450 _lt_compiler_boilerplate=`cat conftest.err`
18451 $RM conftest*
18452
18453 ac_outfile=conftest.$ac_objext
18454 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18456 _lt_linker_boilerplate=`cat conftest.err`
18457 $RM -r conftest*
18458
18459
18460 ## CAVEAT EMPTOR:
18461 ## There is no encapsulation within the following macros, do not change
18462 ## the running order or otherwise move them around unless you know exactly
18463 ## what you are doing...
18464 if test -n "$compiler"; then
18465
18466 lt_prog_compiler_no_builtin_flag=
18467
18468 if test "$GCC" = yes; then
18469 case $cc_basename in
18470 nvcc*)
18471 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18472 *)
18473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18474 esac
18475
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18477 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18478 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18479 $as_echo_n "(cached) " >&6
18480 else
18481 lt_cv_prog_compiler_rtti_exceptions=no
18482 ac_outfile=conftest.$ac_objext
18483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18484 lt_compiler_flag="-fno-rtti -fno-exceptions"
18485 # Insert the option either (1) after the last *FLAGS variable, or
18486 # (2) before a word containing "conftest.", or (3) at the end.
18487 # Note that $ac_compile itself does not contain backslashes and begins
18488 # with a dollar sign (not a hyphen), so the echo should work correctly.
18489 # The option is referenced via a variable to avoid confusing sed.
18490 lt_compile=`echo "$ac_compile" | $SED \
18491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18493 -e 's:$: $lt_compiler_flag:'`
18494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18495 (eval "$lt_compile" 2>conftest.err)
18496 ac_status=$?
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 if (exit $ac_status) && test -s "$ac_outfile"; then
18500 # The compiler can only warn and ignore the option if not recognized
18501 # So say no if there are warnings other than the usual output.
18502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18505 lt_cv_prog_compiler_rtti_exceptions=yes
18506 fi
18507 fi
18508 $RM conftest*
18509
18510 fi
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18512 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18513
18514 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18516 else
18517 :
18518 fi
18519
18520 fi
18521
18522
18523
18524
18525
18526
18527 lt_prog_compiler_wl=
18528 lt_prog_compiler_pic=
18529 lt_prog_compiler_static=
18530
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18533
18534 if test "$GCC" = yes; then
18535 lt_prog_compiler_wl='-Wl,'
18536 lt_prog_compiler_static='-static'
18537
18538 case $host_os in
18539 aix*)
18540 # All AIX code is PIC.
18541 if test "$host_cpu" = ia64; then
18542 # AIX 5 now supports IA64 processor
18543 lt_prog_compiler_static='-Bstatic'
18544 fi
18545 lt_prog_compiler_pic='-fPIC'
18546 ;;
18547
18548 amigaos*)
18549 case $host_cpu in
18550 powerpc)
18551 # see comment about AmigaOS4 .so support
18552 lt_prog_compiler_pic='-fPIC'
18553 ;;
18554 m68k)
18555 # FIXME: we need at least 68020 code to build shared libraries, but
18556 # adding the `-m68020' flag to GCC prevents building anything better,
18557 # like `-m68040'.
18558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18559 ;;
18560 esac
18561 ;;
18562
18563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18564 # PIC is the default for these OSes.
18565 ;;
18566
18567 mingw* | cygwin* | pw32* | os2* | cegcc*)
18568 # This hack is so that the source file can tell whether it is being
18569 # built for inclusion in a dll (and should export symbols for example).
18570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18571 # (--disable-auto-import) libraries
18572 lt_prog_compiler_pic='-DDLL_EXPORT'
18573 ;;
18574
18575 darwin* | rhapsody*)
18576 # PIC is the default on this platform
18577 # Common symbols not allowed in MH_DYLIB files
18578 lt_prog_compiler_pic='-fno-common'
18579 ;;
18580
18581 haiku*)
18582 # PIC is the default for Haiku.
18583 # The "-static" flag exists, but is broken.
18584 lt_prog_compiler_static=
18585 ;;
18586
18587 hpux*)
18588 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18589 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18590 # sets the default TLS model and affects inlining.
18591 case $host_cpu in
18592 hppa*64*)
18593 # +Z the default
18594 ;;
18595 *)
18596 lt_prog_compiler_pic='-fPIC'
18597 ;;
18598 esac
18599 ;;
18600
18601 interix[3-9]*)
18602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18603 # Instead, we relocate shared libraries at runtime.
18604 ;;
18605
18606 msdosdjgpp*)
18607 # Just because we use GCC doesn't mean we suddenly get shared libraries
18608 # on systems that don't support them.
18609 lt_prog_compiler_can_build_shared=no
18610 enable_shared=no
18611 ;;
18612
18613 *nto* | *qnx*)
18614 # QNX uses GNU C++, but need to define -shared option too, otherwise
18615 # it will coredump.
18616 lt_prog_compiler_pic='-fPIC -shared'
18617 ;;
18618
18619 sysv4*MP*)
18620 if test -d /usr/nec; then
18621 lt_prog_compiler_pic=-Kconform_pic
18622 fi
18623 ;;
18624
18625 *)
18626 lt_prog_compiler_pic='-fPIC'
18627 ;;
18628 esac
18629
18630 case $cc_basename in
18631 nvcc*) # Cuda Compiler Driver 2.2
18632 lt_prog_compiler_wl='-Xlinker '
18633 lt_prog_compiler_pic='-Xcompiler -fPIC'
18634 ;;
18635 esac
18636 else
18637 # PORTME Check for flag to pass linker flags through the system compiler.
18638 case $host_os in
18639 aix*)
18640 lt_prog_compiler_wl='-Wl,'
18641 if test "$host_cpu" = ia64; then
18642 # AIX 5 now supports IA64 processor
18643 lt_prog_compiler_static='-Bstatic'
18644 else
18645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18646 fi
18647 ;;
18648
18649 mingw* | cygwin* | pw32* | os2* | cegcc*)
18650 # This hack is so that the source file can tell whether it is being
18651 # built for inclusion in a dll (and should export symbols for example).
18652 lt_prog_compiler_pic='-DDLL_EXPORT'
18653 ;;
18654
18655 hpux9* | hpux10* | hpux11*)
18656 lt_prog_compiler_wl='-Wl,'
18657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18658 # not for PA HP-UX.
18659 case $host_cpu in
18660 hppa*64*|ia64*)
18661 # +Z the default
18662 ;;
18663 *)
18664 lt_prog_compiler_pic='+Z'
18665 ;;
18666 esac
18667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18668 lt_prog_compiler_static='${wl}-a ${wl}archive'
18669 ;;
18670
18671 irix5* | irix6* | nonstopux*)
18672 lt_prog_compiler_wl='-Wl,'
18673 # PIC (with -KPIC) is the default.
18674 lt_prog_compiler_static='-non_shared'
18675 ;;
18676
18677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18678 case $cc_basename in
18679 # old Intel for x86_64 which still supported -KPIC.
18680 ecc*)
18681 lt_prog_compiler_wl='-Wl,'
18682 lt_prog_compiler_pic='-KPIC'
18683 lt_prog_compiler_static='-static'
18684 ;;
18685 # icc used to be incompatible with GCC.
18686 # ICC 10 doesn't accept -KPIC any more.
18687 icc* | ifort*)
18688 lt_prog_compiler_wl='-Wl,'
18689 lt_prog_compiler_pic='-fPIC'
18690 lt_prog_compiler_static='-static'
18691 ;;
18692 # Lahey Fortran 8.1.
18693 lf95*)
18694 lt_prog_compiler_wl='-Wl,'
18695 lt_prog_compiler_pic='--shared'
18696 lt_prog_compiler_static='--static'
18697 ;;
18698 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18699 # Portland Group compilers (*not* the Pentium gcc compiler,
18700 # which looks to be a dead project)
18701 lt_prog_compiler_wl='-Wl,'
18702 lt_prog_compiler_pic='-fpic'
18703 lt_prog_compiler_static='-Bstatic'
18704 ;;
18705 ccc*)
18706 lt_prog_compiler_wl='-Wl,'
18707 # All Alpha code is PIC.
18708 lt_prog_compiler_static='-non_shared'
18709 ;;
18710 xl* | bgxl* | bgf* | mpixl*)
18711 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18712 lt_prog_compiler_wl='-Wl,'
18713 lt_prog_compiler_pic='-qpic'
18714 lt_prog_compiler_static='-qstaticlink'
18715 ;;
18716 *)
18717 case `$CC -V 2>&1 | sed 5q` in
18718 *Sun\ F* | *Sun*Fortran*)
18719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18720 lt_prog_compiler_pic='-KPIC'
18721 lt_prog_compiler_static='-Bstatic'
18722 lt_prog_compiler_wl=''
18723 ;;
18724 *Sun\ C*)
18725 # Sun C 5.9
18726 lt_prog_compiler_pic='-KPIC'
18727 lt_prog_compiler_static='-Bstatic'
18728 lt_prog_compiler_wl='-Wl,'
18729 ;;
18730 esac
18731 ;;
18732 esac
18733 ;;
18734
18735 newsos6)
18736 lt_prog_compiler_pic='-KPIC'
18737 lt_prog_compiler_static='-Bstatic'
18738 ;;
18739
18740 *nto* | *qnx*)
18741 # QNX uses GNU C++, but need to define -shared option too, otherwise
18742 # it will coredump.
18743 lt_prog_compiler_pic='-fPIC -shared'
18744 ;;
18745
18746 osf3* | osf4* | osf5*)
18747 lt_prog_compiler_wl='-Wl,'
18748 # All OSF/1 code is PIC.
18749 lt_prog_compiler_static='-non_shared'
18750 ;;
18751
18752 rdos*)
18753 lt_prog_compiler_static='-non_shared'
18754 ;;
18755
18756 solaris*)
18757 lt_prog_compiler_pic='-KPIC'
18758 lt_prog_compiler_static='-Bstatic'
18759 case $cc_basename in
18760 f77* | f90* | f95*)
18761 lt_prog_compiler_wl='-Qoption ld ';;
18762 *)
18763 lt_prog_compiler_wl='-Wl,';;
18764 esac
18765 ;;
18766
18767 sunos4*)
18768 lt_prog_compiler_wl='-Qoption ld '
18769 lt_prog_compiler_pic='-PIC'
18770 lt_prog_compiler_static='-Bstatic'
18771 ;;
18772
18773 sysv4 | sysv4.2uw2* | sysv4.3*)
18774 lt_prog_compiler_wl='-Wl,'
18775 lt_prog_compiler_pic='-KPIC'
18776 lt_prog_compiler_static='-Bstatic'
18777 ;;
18778
18779 sysv4*MP*)
18780 if test -d /usr/nec ;then
18781 lt_prog_compiler_pic='-Kconform_pic'
18782 lt_prog_compiler_static='-Bstatic'
18783 fi
18784 ;;
18785
18786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18787 lt_prog_compiler_wl='-Wl,'
18788 lt_prog_compiler_pic='-KPIC'
18789 lt_prog_compiler_static='-Bstatic'
18790 ;;
18791
18792 unicos*)
18793 lt_prog_compiler_wl='-Wl,'
18794 lt_prog_compiler_can_build_shared=no
18795 ;;
18796
18797 uts4*)
18798 lt_prog_compiler_pic='-pic'
18799 lt_prog_compiler_static='-Bstatic'
18800 ;;
18801
18802 *)
18803 lt_prog_compiler_can_build_shared=no
18804 ;;
18805 esac
18806 fi
18807
18808 case $host_os in
18809 # For platforms which do not support PIC, -DPIC is meaningless:
18810 *djgpp*)
18811 lt_prog_compiler_pic=
18812 ;;
18813 *)
18814 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18815 ;;
18816 esac
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18818 $as_echo "$lt_prog_compiler_pic" >&6; }
18819
18820
18821
18822
18823
18824
18825 #
18826 # Check to make sure the PIC flag actually works.
18827 #
18828 if test -n "$lt_prog_compiler_pic"; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18831 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18832 $as_echo_n "(cached) " >&6
18833 else
18834 lt_cv_prog_compiler_pic_works=no
18835 ac_outfile=conftest.$ac_objext
18836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18838 # Insert the option either (1) after the last *FLAGS variable, or
18839 # (2) before a word containing "conftest.", or (3) at the end.
18840 # Note that $ac_compile itself does not contain backslashes and begins
18841 # with a dollar sign (not a hyphen), so the echo should work correctly.
18842 # The option is referenced via a variable to avoid confusing sed.
18843 lt_compile=`echo "$ac_compile" | $SED \
18844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18846 -e 's:$: $lt_compiler_flag:'`
18847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18848 (eval "$lt_compile" 2>conftest.err)
18849 ac_status=$?
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 if (exit $ac_status) && test -s "$ac_outfile"; then
18853 # The compiler can only warn and ignore the option if not recognized
18854 # So say no if there are warnings other than the usual output.
18855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18858 lt_cv_prog_compiler_pic_works=yes
18859 fi
18860 fi
18861 $RM conftest*
18862
18863 fi
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18866
18867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18868 case $lt_prog_compiler_pic in
18869 "" | " "*) ;;
18870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18871 esac
18872 else
18873 lt_prog_compiler_pic=
18874 lt_prog_compiler_can_build_shared=no
18875 fi
18876
18877 fi
18878
18879
18880
18881
18882
18883
18884 #
18885 # Check to make sure the static flag actually works.
18886 #
18887 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18889 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18890 if ${lt_cv_prog_compiler_static_works+:} false; then :
18891 $as_echo_n "(cached) " >&6
18892 else
18893 lt_cv_prog_compiler_static_works=no
18894 save_LDFLAGS="$LDFLAGS"
18895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18896 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18898 # The linker can only warn and ignore the option if not recognized
18899 # So say no if there are warnings
18900 if test -s conftest.err; then
18901 # Append any errors to the config.log.
18902 cat conftest.err 1>&5
18903 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18905 if diff conftest.exp conftest.er2 >/dev/null; then
18906 lt_cv_prog_compiler_static_works=yes
18907 fi
18908 else
18909 lt_cv_prog_compiler_static_works=yes
18910 fi
18911 fi
18912 $RM -r conftest*
18913 LDFLAGS="$save_LDFLAGS"
18914
18915 fi
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18917 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18918
18919 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18920 :
18921 else
18922 lt_prog_compiler_static=
18923 fi
18924
18925
18926
18927
18928
18929
18930
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18933 if ${lt_cv_prog_compiler_c_o+:} false; then :
18934 $as_echo_n "(cached) " >&6
18935 else
18936 lt_cv_prog_compiler_c_o=no
18937 $RM -r conftest 2>/dev/null
18938 mkdir conftest
18939 cd conftest
18940 mkdir out
18941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18942
18943 lt_compiler_flag="-o out/conftest2.$ac_objext"
18944 # Insert the option either (1) after the last *FLAGS variable, or
18945 # (2) before a word containing "conftest.", or (3) at the end.
18946 # Note that $ac_compile itself does not contain backslashes and begins
18947 # with a dollar sign (not a hyphen), so the echo should work correctly.
18948 lt_compile=`echo "$ac_compile" | $SED \
18949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18951 -e 's:$: $lt_compiler_flag:'`
18952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18953 (eval "$lt_compile" 2>out/conftest.err)
18954 ac_status=$?
18955 cat out/conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18958 then
18959 # The compiler can only warn and ignore the option if not recognized
18960 # So say no if there are warnings
18961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18964 lt_cv_prog_compiler_c_o=yes
18965 fi
18966 fi
18967 chmod u+w . 2>&5
18968 $RM conftest*
18969 # SGI C++ compiler will create directory out/ii_files/ for
18970 # template instantiation
18971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18972 $RM out/* && rmdir out
18973 cd ..
18974 $RM -r conftest
18975 $RM conftest*
18976
18977 fi
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18980
18981
18982
18983
18984
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18988 if ${lt_cv_prog_compiler_c_o+:} false; then :
18989 $as_echo_n "(cached) " >&6
18990 else
18991 lt_cv_prog_compiler_c_o=no
18992 $RM -r conftest 2>/dev/null
18993 mkdir conftest
18994 cd conftest
18995 mkdir out
18996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18997
18998 lt_compiler_flag="-o out/conftest2.$ac_objext"
18999 # Insert the option either (1) after the last *FLAGS variable, or
19000 # (2) before a word containing "conftest.", or (3) at the end.
19001 # Note that $ac_compile itself does not contain backslashes and begins
19002 # with a dollar sign (not a hyphen), so the echo should work correctly.
19003 lt_compile=`echo "$ac_compile" | $SED \
19004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19006 -e 's:$: $lt_compiler_flag:'`
19007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19008 (eval "$lt_compile" 2>out/conftest.err)
19009 ac_status=$?
19010 cat out/conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19013 then
19014 # The compiler can only warn and ignore the option if not recognized
19015 # So say no if there are warnings
19016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19019 lt_cv_prog_compiler_c_o=yes
19020 fi
19021 fi
19022 chmod u+w . 2>&5
19023 $RM conftest*
19024 # SGI C++ compiler will create directory out/ii_files/ for
19025 # template instantiation
19026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19027 $RM out/* && rmdir out
19028 cd ..
19029 $RM -r conftest
19030 $RM conftest*
19031
19032 fi
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19035
19036
19037
19038
19039 hard_links="nottested"
19040 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19041 # do not overwrite the value of need_locks provided by the user
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19043 $as_echo_n "checking if we can lock with hard links... " >&6; }
19044 hard_links=yes
19045 $RM conftest*
19046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19047 touch conftest.a
19048 ln conftest.a conftest.b 2>&5 || hard_links=no
19049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19051 $as_echo "$hard_links" >&6; }
19052 if test "$hard_links" = no; then
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19054 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19055 need_locks=warn
19056 fi
19057 else
19058 need_locks=no
19059 fi
19060
19061
19062
19063
19064
19065
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19067 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19068
19069 runpath_var=
19070 allow_undefined_flag=
19071 always_export_symbols=no
19072 archive_cmds=
19073 archive_expsym_cmds=
19074 compiler_needs_object=no
19075 enable_shared_with_static_runtimes=no
19076 export_dynamic_flag_spec=
19077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19078 hardcode_automatic=no
19079 hardcode_direct=no
19080 hardcode_direct_absolute=no
19081 hardcode_libdir_flag_spec=
19082 hardcode_libdir_flag_spec_ld=
19083 hardcode_libdir_separator=
19084 hardcode_minus_L=no
19085 hardcode_shlibpath_var=unsupported
19086 inherit_rpath=no
19087 link_all_deplibs=unknown
19088 module_cmds=
19089 module_expsym_cmds=
19090 old_archive_from_new_cmds=
19091 old_archive_from_expsyms_cmds=
19092 thread_safe_flag_spec=
19093 whole_archive_flag_spec=
19094 # include_expsyms should be a list of space-separated symbols to be *always*
19095 # included in the symbol list
19096 include_expsyms=
19097 # exclude_expsyms can be an extended regexp of symbols to exclude
19098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19100 # as well as any symbol that contains `d'.
19101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19103 # platforms (ab)use it in PIC code, but their linkers get confused if
19104 # the symbol is explicitly referenced. Since portable code cannot
19105 # rely on this symbol name, it's probably fine to never include it in
19106 # preloaded symbol tables.
19107 # Exclude shared library initialization/finalization symbols.
19108 extract_expsyms_cmds=
19109
19110 case $host_os in
19111 cygwin* | mingw* | pw32* | cegcc*)
19112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19113 # When not using gcc, we currently assume that we are using
19114 # Microsoft Visual C++.
19115 if test "$GCC" != yes; then
19116 with_gnu_ld=no
19117 fi
19118 ;;
19119 interix*)
19120 # we just hope/assume this is gcc and not c89 (= MSVC++)
19121 with_gnu_ld=yes
19122 ;;
19123 openbsd*)
19124 with_gnu_ld=no
19125 ;;
19126 esac
19127
19128 ld_shlibs=yes
19129
19130 # On some targets, GNU ld is compatible enough with the native linker
19131 # that we're better off using the native interface for both.
19132 lt_use_gnu_ld_interface=no
19133 if test "$with_gnu_ld" = yes; then
19134 case $host_os in
19135 aix*)
19136 # The AIX port of GNU ld has always aspired to compatibility
19137 # with the native linker. However, as the warning in the GNU ld
19138 # block says, versions before 2.19.5* couldn't really create working
19139 # shared libraries, regardless of the interface used.
19140 case `$LD -v 2>&1` in
19141 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19142 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19143 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19144 *)
19145 lt_use_gnu_ld_interface=yes
19146 ;;
19147 esac
19148 ;;
19149 *)
19150 lt_use_gnu_ld_interface=yes
19151 ;;
19152 esac
19153 fi
19154
19155 if test "$lt_use_gnu_ld_interface" = yes; then
19156 # If archive_cmds runs LD, not CC, wlarc should be empty
19157 wlarc='${wl}'
19158
19159 # Set some defaults for GNU ld with shared library support. These
19160 # are reset later if shared libraries are not supported. Putting them
19161 # here allows them to be overridden if necessary.
19162 runpath_var=LD_RUN_PATH
19163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19164 export_dynamic_flag_spec='${wl}--export-dynamic'
19165 # ancient GNU ld didn't support --whole-archive et. al.
19166 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19168 else
19169 whole_archive_flag_spec=
19170 fi
19171 supports_anon_versioning=no
19172 case `$LD -v 2>&1` in
19173 *GNU\ gold*) supports_anon_versioning=yes ;;
19174 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19177 *\ 2.11.*) ;; # other 2.11 versions
19178 *) supports_anon_versioning=yes ;;
19179 esac
19180
19181 # See if GNU ld supports shared libraries.
19182 case $host_os in
19183 aix[3-9]*)
19184 # On AIX/PPC, the GNU linker is very broken
19185 if test "$host_cpu" != ia64; then
19186 ld_shlibs=no
19187 cat <<_LT_EOF 1>&2
19188
19189 *** Warning: the GNU linker, at least up to release 2.19, is reported
19190 *** to be unable to reliably create shared libraries on AIX.
19191 *** Therefore, libtool is disabling shared libraries support. If you
19192 *** really care for shared libraries, you may want to install binutils
19193 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19194 *** You will then need to restart the configuration process.
19195
19196 _LT_EOF
19197 fi
19198 ;;
19199
19200 amigaos*)
19201 case $host_cpu in
19202 powerpc)
19203 # see comment about AmigaOS4 .so support
19204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19205 archive_expsym_cmds=''
19206 ;;
19207 m68k)
19208 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)'
19209 hardcode_libdir_flag_spec='-L$libdir'
19210 hardcode_minus_L=yes
19211 ;;
19212 esac
19213 ;;
19214
19215 beos*)
19216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19217 allow_undefined_flag=unsupported
19218 # Joseph Beckenbach <[email protected]> says some releases of gcc
19219 # support --undefined. This deserves some investigation. FIXME
19220 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19221 else
19222 ld_shlibs=no
19223 fi
19224 ;;
19225
19226 cygwin* | mingw* | pw32* | cegcc*)
19227 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19228 # as there is no search path for DLLs.
19229 hardcode_libdir_flag_spec='-L$libdir'
19230 export_dynamic_flag_spec='${wl}--export-all-symbols'
19231 allow_undefined_flag=unsupported
19232 always_export_symbols=no
19233 enable_shared_with_static_runtimes=yes
19234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19235
19236 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19238 # If the export-symbols file already is a .def file (1st line
19239 # is EXPORTS), use it as is; otherwise, prepend...
19240 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19241 cp $export_symbols $output_objdir/$soname.def;
19242 else
19243 echo EXPORTS > $output_objdir/$soname.def;
19244 cat $export_symbols >> $output_objdir/$soname.def;
19245 fi~
19246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19247 else
19248 ld_shlibs=no
19249 fi
19250 ;;
19251
19252 haiku*)
19253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19254 link_all_deplibs=yes
19255 ;;
19256
19257 interix[3-9]*)
19258 hardcode_direct=no
19259 hardcode_shlibpath_var=no
19260 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19261 export_dynamic_flag_spec='${wl}-E'
19262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19263 # Instead, shared libraries are loaded at an image base (0x10000000 by
19264 # default) and relocated if they conflict, which is a slow very memory
19265 # consuming and fragmenting process. To avoid this, we pick a random,
19266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19269 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'
19270 ;;
19271
19272 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19273 tmp_diet=no
19274 if test "$host_os" = linux-dietlibc; then
19275 case $cc_basename in
19276 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19277 esac
19278 fi
19279 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19280 && test "$tmp_diet" = no
19281 then
19282 tmp_addflag=' $pic_flag'
19283 tmp_sharedflag='-shared'
19284 case $cc_basename,$host_cpu in
19285 pgcc*) # Portland Group C compiler
19286 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'
19287 tmp_addflag=' $pic_flag'
19288 ;;
19289 pgf77* | pgf90* | pgf95* | pgfortran*)
19290 # Portland Group f77 and f90 compilers
19291 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'
19292 tmp_addflag=' $pic_flag -Mnomain' ;;
19293 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19294 tmp_addflag=' -i_dynamic' ;;
19295 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19296 tmp_addflag=' -i_dynamic -nofor_main' ;;
19297 ifc* | ifort*) # Intel Fortran compiler
19298 tmp_addflag=' -nofor_main' ;;
19299 lf95*) # Lahey Fortran 8.1
19300 whole_archive_flag_spec=
19301 tmp_sharedflag='--shared' ;;
19302 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19303 tmp_sharedflag='-qmkshrobj'
19304 tmp_addflag= ;;
19305 nvcc*) # Cuda Compiler Driver 2.2
19306 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'
19307 compiler_needs_object=yes
19308 ;;
19309 esac
19310 case `$CC -V 2>&1 | sed 5q` in
19311 *Sun\ C*) # Sun C 5.9
19312 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'
19313 compiler_needs_object=yes
19314 tmp_sharedflag='-G' ;;
19315 *Sun\ F*) # Sun Fortran 8.3
19316 tmp_sharedflag='-G' ;;
19317 esac
19318 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19319
19320 if test "x$supports_anon_versioning" = xyes; then
19321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19323 echo "local: *; };" >> $output_objdir/$libname.ver~
19324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19325 fi
19326
19327 case $cc_basename in
19328 xlf* | bgf* | bgxlf* | mpixlf*)
19329 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19330 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19331 hardcode_libdir_flag_spec=
19332 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19333 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19334 if test "x$supports_anon_versioning" = xyes; then
19335 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19337 echo "local: *; };" >> $output_objdir/$libname.ver~
19338 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19339 fi
19340 ;;
19341 esac
19342 else
19343 ld_shlibs=no
19344 fi
19345 ;;
19346
19347 netbsd*)
19348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19349 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19350 wlarc=
19351 else
19352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19354 fi
19355 ;;
19356
19357 solaris*)
19358 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19359 ld_shlibs=no
19360 cat <<_LT_EOF 1>&2
19361
19362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19363 *** create shared libraries on Solaris systems. Therefore, libtool
19364 *** is disabling shared libraries support. We urge you to upgrade GNU
19365 *** binutils to release 2.9.1 or newer. Another option is to modify
19366 *** your PATH or compiler configuration so that the native linker is
19367 *** used, and then restart.
19368
19369 _LT_EOF
19370 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19373 else
19374 ld_shlibs=no
19375 fi
19376 ;;
19377
19378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19379 case `$LD -v 2>&1` in
19380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19381 ld_shlibs=no
19382 cat <<_LT_EOF 1>&2
19383
19384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19385 *** reliably create shared libraries on SCO systems. Therefore, libtool
19386 *** is disabling shared libraries support. We urge you to upgrade GNU
19387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19388 *** your PATH or compiler configuration so that the native linker is
19389 *** used, and then restart.
19390
19391 _LT_EOF
19392 ;;
19393 *)
19394 # For security reasons, it is highly recommended that you always
19395 # use absolute paths for naming shared libraries, and exclude the
19396 # DT_RUNPATH tag from executables and libraries. But doing so
19397 # requires that you compile everything twice, which is a pain.
19398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19402 else
19403 ld_shlibs=no
19404 fi
19405 ;;
19406 esac
19407 ;;
19408
19409 sunos4*)
19410 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19411 wlarc=
19412 hardcode_direct=yes
19413 hardcode_shlibpath_var=no
19414 ;;
19415
19416 *)
19417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19420 else
19421 ld_shlibs=no
19422 fi
19423 ;;
19424 esac
19425
19426 if test "$ld_shlibs" = no; then
19427 runpath_var=
19428 hardcode_libdir_flag_spec=
19429 export_dynamic_flag_spec=
19430 whole_archive_flag_spec=
19431 fi
19432 else
19433 # PORTME fill in a description of your system's linker (not GNU ld)
19434 case $host_os in
19435 aix3*)
19436 allow_undefined_flag=unsupported
19437 always_export_symbols=yes
19438 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'
19439 # Note: this linker hardcodes the directories in LIBPATH if there
19440 # are no directories specified by -L.
19441 hardcode_minus_L=yes
19442 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19443 # Neither direct hardcoding nor static linking is supported with a
19444 # broken collect2.
19445 hardcode_direct=unsupported
19446 fi
19447 ;;
19448
19449 aix[4-9]*)
19450 if test "$host_cpu" = ia64; then
19451 # On IA64, the linker does run time linking by default, so we don't
19452 # have to do anything special.
19453 aix_use_runtimelinking=no
19454 exp_sym_flag='-Bexport'
19455 no_entry_flag=""
19456 else
19457 # If we're using GNU nm, then we don't want the "-C" option.
19458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19459 # Also, AIX nm treats weak defined symbols like other global
19460 # defined symbols, whereas GNU nm marks them as "W".
19461 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19462 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'
19463 else
19464 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'
19465 fi
19466 aix_use_runtimelinking=no
19467
19468 # Test if we are trying to use run time linking or normal
19469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19470 # need to do runtime linking.
19471 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19472 for ld_flag in $LDFLAGS; do
19473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19474 aix_use_runtimelinking=yes
19475 break
19476 fi
19477 done
19478 ;;
19479 esac
19480
19481 exp_sym_flag='-bexport'
19482 no_entry_flag='-bnoentry'
19483 fi
19484
19485 # When large executables or shared objects are built, AIX ld can
19486 # have problems creating the table of contents. If linking a library
19487 # or program results in "error TOC overflow" add -mminimal-toc to
19488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19490
19491 archive_cmds=''
19492 hardcode_direct=yes
19493 hardcode_direct_absolute=yes
19494 hardcode_libdir_separator=':'
19495 link_all_deplibs=yes
19496 file_list_spec='${wl}-f,'
19497
19498 if test "$GCC" = yes; then
19499 case $host_os in aix4.[012]|aix4.[012].*)
19500 # We only want to do this on AIX 4.2 and lower, the check
19501 # below for broken collect2 doesn't work under 4.3+
19502 collect2name=`${CC} -print-prog-name=collect2`
19503 if test -f "$collect2name" &&
19504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19505 then
19506 # We have reworked collect2
19507 :
19508 else
19509 # We have old collect2
19510 hardcode_direct=unsupported
19511 # It fails to find uninstalled libraries when the uninstalled
19512 # path is not listed in the libpath. Setting hardcode_minus_L
19513 # to unsupported forces relinking
19514 hardcode_minus_L=yes
19515 hardcode_libdir_flag_spec='-L$libdir'
19516 hardcode_libdir_separator=
19517 fi
19518 ;;
19519 esac
19520 shared_flag='-shared'
19521 if test "$aix_use_runtimelinking" = yes; then
19522 shared_flag="$shared_flag "'${wl}-G'
19523 fi
19524 else
19525 # not using gcc
19526 if test "$host_cpu" = ia64; then
19527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19528 # chokes on -Wl,-G. The following line is correct:
19529 shared_flag='-G'
19530 else
19531 if test "$aix_use_runtimelinking" = yes; then
19532 shared_flag='${wl}-G'
19533 else
19534 shared_flag='${wl}-bM:SRE'
19535 fi
19536 fi
19537 fi
19538
19539 export_dynamic_flag_spec='${wl}-bexpall'
19540 # It seems that -bexpall does not export symbols beginning with
19541 # underscore (_), so it is better to generate a list of symbols to export.
19542 always_export_symbols=yes
19543 if test "$aix_use_runtimelinking" = yes; then
19544 # Warning - without using the other runtime loading flags (-brtl),
19545 # -berok will link without error, but may produce a broken library.
19546 allow_undefined_flag='-berok'
19547 # Determine the default libpath from the value encoded in an
19548 # empty executable.
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551
19552 int
19553 main ()
19554 {
19555
19556 ;
19557 return 0;
19558 }
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561
19562 lt_aix_libpath_sed='
19563 /Import File Strings/,/^$/ {
19564 /^0/ {
19565 s/^0 *\(.*\)$/\1/
19566 p
19567 }
19568 }'
19569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19570 # Check for a 64-bit object if we didn't find anything.
19571 if test -z "$aix_libpath"; then
19572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19573 fi
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19578
19579 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19580 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"
19581 else
19582 if test "$host_cpu" = ia64; then
19583 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19584 allow_undefined_flag="-z nodefs"
19585 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"
19586 else
19587 # Determine the default libpath from the value encoded in an
19588 # empty executable.
19589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h. */
19591
19592 int
19593 main ()
19594 {
19595
19596 ;
19597 return 0;
19598 }
19599 _ACEOF
19600 if ac_fn_c_try_link "$LINENO"; then :
19601
19602 lt_aix_libpath_sed='
19603 /Import File Strings/,/^$/ {
19604 /^0/ {
19605 s/^0 *\(.*\)$/\1/
19606 p
19607 }
19608 }'
19609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19610 # Check for a 64-bit object if we didn't find anything.
19611 if test -z "$aix_libpath"; then
19612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19613 fi
19614 fi
19615 rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19618
19619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19620 # Warning - without using the other run time loading flags,
19621 # -berok will link without error, but may produce a broken library.
19622 no_undefined_flag=' ${wl}-bernotok'
19623 allow_undefined_flag=' ${wl}-berok'
19624 if test "$with_gnu_ld" = yes; then
19625 # We only use this code for GNU lds that support --whole-archive.
19626 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19627 else
19628 # Exported symbols can be pulled into shared objects from archives
19629 whole_archive_flag_spec='$convenience'
19630 fi
19631 archive_cmds_need_lc=yes
19632 # This is similar to how AIX traditionally builds its shared libraries.
19633 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'
19634 fi
19635 fi
19636 ;;
19637
19638 amigaos*)
19639 case $host_cpu in
19640 powerpc)
19641 # see comment about AmigaOS4 .so support
19642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19643 archive_expsym_cmds=''
19644 ;;
19645 m68k)
19646 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)'
19647 hardcode_libdir_flag_spec='-L$libdir'
19648 hardcode_minus_L=yes
19649 ;;
19650 esac
19651 ;;
19652
19653 bsdi[45]*)
19654 export_dynamic_flag_spec=-rdynamic
19655 ;;
19656
19657 cygwin* | mingw* | pw32* | cegcc*)
19658 # When not using gcc, we currently assume that we are using
19659 # Microsoft Visual C++.
19660 # hardcode_libdir_flag_spec is actually meaningless, as there is
19661 # no search path for DLLs.
19662 hardcode_libdir_flag_spec=' '
19663 allow_undefined_flag=unsupported
19664 # Tell ltmain to make .lib files, not .a files.
19665 libext=lib
19666 # Tell ltmain to make .dll files, not .so files.
19667 shrext_cmds=".dll"
19668 # FIXME: Setting linknames here is a bad hack.
19669 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19670 # The linker will automatically build a .lib file if we build a DLL.
19671 old_archive_from_new_cmds='true'
19672 # FIXME: Should let the user specify the lib program.
19673 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19674 fix_srcfile_path='`cygpath -w "$srcfile"`'
19675 enable_shared_with_static_runtimes=yes
19676 ;;
19677
19678 darwin* | rhapsody*)
19679
19680
19681
19682 # Publish an arg to allow the user to select that Darwin host (and target)
19683 # libraries should be given install-names like @rpath/libfoo.dylib. This
19684 # requires that the user of the library then adds an 'rpath' to the DSO that
19685 # needs access.
19686 # NOTE: there are defaults below, for systems that support rpaths. The person
19687 # configuring can override the defaults for any system version that supports
19688 # them - they are, however, forced off for system versions without support.
19689 # Check whether --enable-darwin-at-rpath was given.
19690 if test "${enable_darwin_at_rpath+set}" = set; then :
19691 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19692 # This is not supported before macOS 10.5 / Darwin9.
19693 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19694 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19696 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19697 enable_darwin_at_rpath=no
19698 ;;
19699 esac
19700 fi
19701 else
19702 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19703 # As above, before 10.5 / Darwin9 this does not work.
19704 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19705 enable_darwin_at_rpath=no
19706 ;;
19707
19708 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19709 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19710 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19711 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19713 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19714 enable_darwin_at_rpath=yes
19715 ;;
19716 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19717 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19718
19719 esac
19720
19721 fi
19722
19723
19724 archive_cmds_need_lc=no
19725 hardcode_direct=no
19726 hardcode_automatic=yes
19727 hardcode_shlibpath_var=unsupported
19728 if test "$lt_cv_ld_force_load" = "yes"; then
19729 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\"`'
19730 else
19731 whole_archive_flag_spec=''
19732 fi
19733 link_all_deplibs=yes
19734 allow_undefined_flag="$_lt_dar_allow_undefined"
19735 case $cc_basename in
19736 ifort*) _lt_dar_can_shared=yes ;;
19737 *) _lt_dar_can_shared=$GCC ;;
19738 esac
19739 if test "$_lt_dar_can_shared" = "yes"; then
19740 output_verbose_link_cmd=func_echo_all
19741 _lt_install_name='\$rpath/\$soname'
19742 if test "x$enable_darwin_at_rpath" = "xyes"; then
19743 _lt_install_name='@rpath/\$soname'
19744 fi
19745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19747 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}"
19748 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}"
19749
19750 else
19751 ld_shlibs=no
19752 fi
19753
19754 ;;
19755
19756 dgux*)
19757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19758 hardcode_libdir_flag_spec='-L$libdir'
19759 hardcode_shlibpath_var=no
19760 ;;
19761
19762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19763 # support. Future versions do this automatically, but an explicit c++rt0.o
19764 # does not break anything, and helps significantly (at the cost of a little
19765 # extra space).
19766 freebsd2.2*)
19767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19768 hardcode_libdir_flag_spec='-R$libdir'
19769 hardcode_direct=yes
19770 hardcode_shlibpath_var=no
19771 ;;
19772
19773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19774 freebsd2.*)
19775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19776 hardcode_direct=yes
19777 hardcode_minus_L=yes
19778 hardcode_shlibpath_var=no
19779 ;;
19780
19781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19782 freebsd* | dragonfly*)
19783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19784 hardcode_libdir_flag_spec='-R$libdir'
19785 hardcode_direct=yes
19786 hardcode_shlibpath_var=no
19787 ;;
19788
19789 hpux9*)
19790 if test "$GCC" = yes; then
19791 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'
19792 else
19793 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'
19794 fi
19795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19796 hardcode_libdir_separator=:
19797 hardcode_direct=yes
19798
19799 # hardcode_minus_L: Not really in the search PATH,
19800 # but as the default location of the library.
19801 hardcode_minus_L=yes
19802 export_dynamic_flag_spec='${wl}-E'
19803 ;;
19804
19805 hpux10*)
19806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19808 else
19809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19810 fi
19811 if test "$with_gnu_ld" = no; then
19812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19813 hardcode_libdir_flag_spec_ld='+b $libdir'
19814 hardcode_libdir_separator=:
19815 hardcode_direct=yes
19816 hardcode_direct_absolute=yes
19817 export_dynamic_flag_spec='${wl}-E'
19818 # hardcode_minus_L: Not really in the search PATH,
19819 # but as the default location of the library.
19820 hardcode_minus_L=yes
19821 fi
19822 ;;
19823
19824 hpux11*)
19825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19826 case $host_cpu in
19827 hppa*64*)
19828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19829 ;;
19830 ia64*)
19831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19832 ;;
19833 *)
19834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19835 ;;
19836 esac
19837 else
19838 case $host_cpu in
19839 hppa*64*)
19840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19841 ;;
19842 ia64*)
19843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19844 ;;
19845 *)
19846
19847 # Older versions of the 11.00 compiler do not understand -b yet
19848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19850 $as_echo_n "checking if $CC understands -b... " >&6; }
19851 if ${lt_cv_prog_compiler__b+:} false; then :
19852 $as_echo_n "(cached) " >&6
19853 else
19854 lt_cv_prog_compiler__b=no
19855 save_LDFLAGS="$LDFLAGS"
19856 LDFLAGS="$LDFLAGS -b"
19857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19859 # The linker can only warn and ignore the option if not recognized
19860 # So say no if there are warnings
19861 if test -s conftest.err; then
19862 # Append any errors to the config.log.
19863 cat conftest.err 1>&5
19864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19866 if diff conftest.exp conftest.er2 >/dev/null; then
19867 lt_cv_prog_compiler__b=yes
19868 fi
19869 else
19870 lt_cv_prog_compiler__b=yes
19871 fi
19872 fi
19873 $RM -r conftest*
19874 LDFLAGS="$save_LDFLAGS"
19875
19876 fi
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19878 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19879
19880 if test x"$lt_cv_prog_compiler__b" = xyes; then
19881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19882 else
19883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19884 fi
19885
19886 ;;
19887 esac
19888 fi
19889 if test "$with_gnu_ld" = no; then
19890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19891 hardcode_libdir_separator=:
19892
19893 case $host_cpu in
19894 hppa*64*|ia64*)
19895 hardcode_direct=no
19896 hardcode_shlibpath_var=no
19897 ;;
19898 *)
19899 hardcode_direct=yes
19900 hardcode_direct_absolute=yes
19901 export_dynamic_flag_spec='${wl}-E'
19902
19903 # hardcode_minus_L: Not really in the search PATH,
19904 # but as the default location of the library.
19905 hardcode_minus_L=yes
19906 ;;
19907 esac
19908 fi
19909 ;;
19910
19911 irix5* | irix6* | nonstopux*)
19912 if test "$GCC" = yes; then
19913 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'
19914 # Try to use the -exported_symbol ld option, if it does not
19915 # work, assume that -exports_file does not work either and
19916 # implicitly export all symbols.
19917 save_LDFLAGS="$LDFLAGS"
19918 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19921 int foo(void) {}
19922 _ACEOF
19923 if ac_fn_c_try_link "$LINENO"; then :
19924 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'
19925
19926 fi
19927 rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LDFLAGS="$save_LDFLAGS"
19930 else
19931 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'
19932 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'
19933 fi
19934 archive_cmds_need_lc='no'
19935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19936 hardcode_libdir_separator=:
19937 inherit_rpath=yes
19938 link_all_deplibs=yes
19939 ;;
19940
19941 netbsd*)
19942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19944 else
19945 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19946 fi
19947 hardcode_libdir_flag_spec='-R$libdir'
19948 hardcode_direct=yes
19949 hardcode_shlibpath_var=no
19950 ;;
19951
19952 newsos6)
19953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19954 hardcode_direct=yes
19955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19956 hardcode_libdir_separator=:
19957 hardcode_shlibpath_var=no
19958 ;;
19959
19960 *nto* | *qnx*)
19961 ;;
19962
19963 openbsd*)
19964 if test -f /usr/libexec/ld.so; then
19965 hardcode_direct=yes
19966 hardcode_shlibpath_var=no
19967 hardcode_direct_absolute=yes
19968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19970 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19972 export_dynamic_flag_spec='${wl}-E'
19973 else
19974 case $host_os in
19975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19977 hardcode_libdir_flag_spec='-R$libdir'
19978 ;;
19979 *)
19980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19982 ;;
19983 esac
19984 fi
19985 else
19986 ld_shlibs=no
19987 fi
19988 ;;
19989
19990 os2*)
19991 hardcode_libdir_flag_spec='-L$libdir'
19992 hardcode_minus_L=yes
19993 allow_undefined_flag=unsupported
19994 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'
19995 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19996 ;;
19997
19998 osf3*)
19999 if test "$GCC" = yes; then
20000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20001 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'
20002 else
20003 allow_undefined_flag=' -expect_unresolved \*'
20004 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'
20005 fi
20006 archive_cmds_need_lc='no'
20007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20008 hardcode_libdir_separator=:
20009 ;;
20010
20011 osf4* | osf5*) # as osf3* with the addition of -msym flag
20012 if test "$GCC" = yes; then
20013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20014 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'
20015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20016 else
20017 allow_undefined_flag=' -expect_unresolved \*'
20018 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'
20019 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~
20020 $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'
20021
20022 # Both c and cxx compiler support -rpath directly
20023 hardcode_libdir_flag_spec='-rpath $libdir'
20024 fi
20025 archive_cmds_need_lc='no'
20026 hardcode_libdir_separator=:
20027 ;;
20028
20029 solaris*)
20030 no_undefined_flag=' -z defs'
20031 if test "$GCC" = yes; then
20032 wlarc='${wl}'
20033 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20035 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20036 else
20037 case `$CC -V 2>&1` in
20038 *"Compilers 5.0"*)
20039 wlarc=''
20040 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20042 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20043 ;;
20044 *)
20045 wlarc='${wl}'
20046 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20048 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20049 ;;
20050 esac
20051 fi
20052 hardcode_libdir_flag_spec='-R$libdir'
20053 hardcode_shlibpath_var=no
20054 case $host_os in
20055 solaris2.[0-5] | solaris2.[0-5].*) ;;
20056 *)
20057 # The compiler driver will combine and reorder linker options,
20058 # but understands `-z linker_flag'. GCC discards it without `$wl',
20059 # but is careful enough not to reorder.
20060 # Supported since Solaris 2.6 (maybe 2.5.1?)
20061 if test "$GCC" = yes; then
20062 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20063 else
20064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20065 fi
20066 ;;
20067 esac
20068 link_all_deplibs=yes
20069 ;;
20070
20071 sunos4*)
20072 if test "x$host_vendor" = xsequent; then
20073 # Use $CC to link under sequent, because it throws in some extra .o
20074 # files that make .init and .fini sections work.
20075 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20076 else
20077 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20078 fi
20079 hardcode_libdir_flag_spec='-L$libdir'
20080 hardcode_direct=yes
20081 hardcode_minus_L=yes
20082 hardcode_shlibpath_var=no
20083 ;;
20084
20085 sysv4)
20086 case $host_vendor in
20087 sni)
20088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20089 hardcode_direct=yes # is this really true???
20090 ;;
20091 siemens)
20092 ## LD is ld it makes a PLAMLIB
20093 ## CC just makes a GrossModule.
20094 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20095 reload_cmds='$CC -r -o $output$reload_objs'
20096 hardcode_direct=no
20097 ;;
20098 motorola)
20099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20100 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20101 ;;
20102 esac
20103 runpath_var='LD_RUN_PATH'
20104 hardcode_shlibpath_var=no
20105 ;;
20106
20107 sysv4.3*)
20108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20109 hardcode_shlibpath_var=no
20110 export_dynamic_flag_spec='-Bexport'
20111 ;;
20112
20113 sysv4*MP*)
20114 if test -d /usr/nec; then
20115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20116 hardcode_shlibpath_var=no
20117 runpath_var=LD_RUN_PATH
20118 hardcode_runpath_var=yes
20119 ld_shlibs=yes
20120 fi
20121 ;;
20122
20123 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20124 no_undefined_flag='${wl}-z,text'
20125 archive_cmds_need_lc=no
20126 hardcode_shlibpath_var=no
20127 runpath_var='LD_RUN_PATH'
20128
20129 if test "$GCC" = yes; then
20130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20132 else
20133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20135 fi
20136 ;;
20137
20138 sysv5* | sco3.2v5* | sco5v6*)
20139 # Note: We can NOT use -z defs as we might desire, because we do not
20140 # link with -lc, and that would cause any symbols used from libc to
20141 # always be unresolved, which means just about no library would
20142 # ever link correctly. If we're not using GNU ld we use -z text
20143 # though, which does catch some bad symbols but isn't as heavy-handed
20144 # as -z defs.
20145 no_undefined_flag='${wl}-z,text'
20146 allow_undefined_flag='${wl}-z,nodefs'
20147 archive_cmds_need_lc=no
20148 hardcode_shlibpath_var=no
20149 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20150 hardcode_libdir_separator=':'
20151 link_all_deplibs=yes
20152 export_dynamic_flag_spec='${wl}-Bexport'
20153 runpath_var='LD_RUN_PATH'
20154
20155 if test "$GCC" = yes; then
20156 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20157 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20158 else
20159 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20160 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20161 fi
20162 ;;
20163
20164 uts4*)
20165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20166 hardcode_libdir_flag_spec='-L$libdir'
20167 hardcode_shlibpath_var=no
20168 ;;
20169
20170 *)
20171 ld_shlibs=no
20172 ;;
20173 esac
20174
20175 if test x$host_vendor = xsni; then
20176 case $host in
20177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20178 export_dynamic_flag_spec='${wl}-Blargedynsym'
20179 ;;
20180 esac
20181 fi
20182 fi
20183
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20185 $as_echo "$ld_shlibs" >&6; }
20186 test "$ld_shlibs" = no && can_build_shared=no
20187
20188 with_gnu_ld=$with_gnu_ld
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204 #
20205 # Do we need to explicitly link libc?
20206 #
20207 case "x$archive_cmds_need_lc" in
20208 x|xyes)
20209 # Assume -lc should be added
20210 archive_cmds_need_lc=yes
20211
20212 if test "$enable_shared" = yes && test "$GCC" = yes; then
20213 case $archive_cmds in
20214 *'~'*)
20215 # FIXME: we may have to deal with multi-command sequences.
20216 ;;
20217 '$CC '*)
20218 # Test whether the compiler implicitly links with -lc since on some
20219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220 # to ld, don't add -lc before -lgcc.
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20222 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20223 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20224 $as_echo_n "(cached) " >&6
20225 else
20226 $RM conftest*
20227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20228
20229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20230 (eval $ac_compile) 2>&5
20231 ac_status=$?
20232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20233 test $ac_status = 0; } 2>conftest.err; then
20234 soname=conftest
20235 lib=conftest
20236 libobjs=conftest.$ac_objext
20237 deplibs=
20238 wl=$lt_prog_compiler_wl
20239 pic_flag=$lt_prog_compiler_pic
20240 compiler_flags=-v
20241 linker_flags=-v
20242 verstring=
20243 output_objdir=.
20244 libname=conftest
20245 lt_save_allow_undefined_flag=$allow_undefined_flag
20246 allow_undefined_flag=
20247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20249 ac_status=$?
20250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20251 test $ac_status = 0; }
20252 then
20253 lt_cv_archive_cmds_need_lc=no
20254 else
20255 lt_cv_archive_cmds_need_lc=yes
20256 fi
20257 allow_undefined_flag=$lt_save_allow_undefined_flag
20258 else
20259 cat conftest.err 1>&5
20260 fi
20261 $RM conftest*
20262
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20265 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20266 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20267 ;;
20268 esac
20269 fi
20270 ;;
20271 esac
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20430 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20431
20432 if test "$GCC" = yes; then
20433 case $host_os in
20434 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20435 *) lt_awk_arg="/^libraries:/" ;;
20436 esac
20437 case $host_os in
20438 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20439 *) lt_sed_strip_eq="s,=/,/,g" ;;
20440 esac
20441 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20442 case $lt_search_path_spec in
20443 *\;*)
20444 # if the path contains ";" then we assume it to be the separator
20445 # otherwise default to the standard path separator (i.e. ":") - it is
20446 # assumed that no part of a normal pathname contains ";" but that should
20447 # okay in the real world where ";" in dirpaths is itself problematic.
20448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20449 ;;
20450 *)
20451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20452 ;;
20453 esac
20454 # Ok, now we have the path, separated by spaces, we can step through it
20455 # and add multilib dir if necessary.
20456 lt_tmp_lt_search_path_spec=
20457 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20458 for lt_sys_path in $lt_search_path_spec; do
20459 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20461 else
20462 test -d "$lt_sys_path" && \
20463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20464 fi
20465 done
20466 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20467 BEGIN {RS=" "; FS="/|\n";} {
20468 lt_foo="";
20469 lt_count=0;
20470 for (lt_i = NF; lt_i > 0; lt_i--) {
20471 if ($lt_i != "" && $lt_i != ".") {
20472 if ($lt_i == "..") {
20473 lt_count++;
20474 } else {
20475 if (lt_count == 0) {
20476 lt_foo="/" $lt_i lt_foo;
20477 } else {
20478 lt_count--;
20479 }
20480 }
20481 }
20482 }
20483 if (lt_foo != "") { lt_freq[lt_foo]++; }
20484 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20485 }'`
20486 # AWK program above erroneously prepends '/' to C:/dos/paths
20487 # for these hosts.
20488 case $host_os in
20489 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20490 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20491 esac
20492 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20493 else
20494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20495 fi
20496 library_names_spec=
20497 libname_spec='lib$name'
20498 soname_spec=
20499 shrext_cmds=".so"
20500 postinstall_cmds=
20501 postuninstall_cmds=
20502 finish_cmds=
20503 finish_eval=
20504 shlibpath_var=
20505 shlibpath_overrides_runpath=unknown
20506 version_type=none
20507 dynamic_linker="$host_os ld.so"
20508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20509 need_lib_prefix=unknown
20510 hardcode_into_libs=no
20511
20512 # when you set need_version to no, make sure it does not cause -set_version
20513 # flags to be left without arguments
20514 need_version=unknown
20515
20516 case $host_os in
20517 aix3*)
20518 version_type=linux
20519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20520 shlibpath_var=LIBPATH
20521
20522 # AIX 3 has no versioning support, so we append a major version to the name.
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 ;;
20525
20526 aix[4-9]*)
20527 version_type=linux
20528 need_lib_prefix=no
20529 need_version=no
20530 hardcode_into_libs=yes
20531 if test "$host_cpu" = ia64; then
20532 # AIX 5 supports IA64
20533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 else
20536 # With GCC up to 2.95.x, collect2 would create an import file
20537 # for dependence libraries. The import file would start with
20538 # the line `#! .'. This would cause the generated library to
20539 # depend on `.', always an invalid library. This was fixed in
20540 # development snapshots of GCC prior to 3.0.
20541 case $host_os in
20542 aix4 | aix4.[01] | aix4.[01].*)
20543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20544 echo ' yes '
20545 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20546 :
20547 else
20548 can_build_shared=no
20549 fi
20550 ;;
20551 esac
20552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20553 # soname into executable. Probably we can add versioning support to
20554 # collect2, so additional links can be useful in future.
20555 if test "$aix_use_runtimelinking" = yes; then
20556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20557 # instead of lib<name>.a to let people know that these are not
20558 # typical AIX shared libraries.
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560 else
20561 # We preserve .a as extension for shared libraries through AIX4.2
20562 # and later when we are not doing run time linking.
20563 library_names_spec='${libname}${release}.a $libname.a'
20564 soname_spec='${libname}${release}${shared_ext}$major'
20565 fi
20566 shlibpath_var=LIBPATH
20567 fi
20568 ;;
20569
20570 amigaos*)
20571 case $host_cpu in
20572 powerpc)
20573 # Since July 2007 AmigaOS4 officially supports .so libraries.
20574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20576 ;;
20577 m68k)
20578 library_names_spec='$libname.ixlibrary $libname.a'
20579 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20580 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'
20581 ;;
20582 esac
20583 ;;
20584
20585 beos*)
20586 library_names_spec='${libname}${shared_ext}'
20587 dynamic_linker="$host_os ld.so"
20588 shlibpath_var=LIBRARY_PATH
20589 ;;
20590
20591 bsdi[45]*)
20592 version_type=linux
20593 need_version=no
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20595 soname_spec='${libname}${release}${shared_ext}$major'
20596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20600 # the default ld.so.conf also contains /usr/contrib/lib and
20601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20602 # libtool to hard-code these into programs
20603 ;;
20604
20605 cygwin* | mingw* | pw32* | cegcc*)
20606 version_type=windows
20607 shrext_cmds=".dll"
20608 need_version=no
20609 need_lib_prefix=no
20610
20611 case $GCC,$host_os in
20612 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20613 library_names_spec='$libname.dll.a'
20614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20615 postinstall_cmds='base_file=`basename \${file}`~
20616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20617 dldir=$destdir/`dirname \$dlpath`~
20618 test -d \$dldir || mkdir -p \$dldir~
20619 $install_prog $dir/$dlname \$dldir/$dlname~
20620 chmod a+x \$dldir/$dlname~
20621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20623 fi'
20624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20625 dlpath=$dir/\$dldll~
20626 $RM \$dlpath'
20627 shlibpath_overrides_runpath=yes
20628
20629 case $host_os in
20630 cygwin*)
20631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20633
20634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20635 ;;
20636 mingw* | cegcc*)
20637 # MinGW DLLs use traditional 'lib' prefix
20638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20639 ;;
20640 pw32*)
20641 # pw32 DLLs use 'pw' prefix rather than 'lib'
20642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20643 ;;
20644 esac
20645 ;;
20646
20647 *)
20648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20649 ;;
20650 esac
20651 dynamic_linker='Win32 ld.exe'
20652 # FIXME: first we should search . and the directory the executable is in
20653 shlibpath_var=PATH
20654 ;;
20655
20656 darwin* | rhapsody*)
20657 dynamic_linker="$host_os dyld"
20658 version_type=darwin
20659 need_lib_prefix=no
20660 need_version=no
20661 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20662 soname_spec='${libname}${release}${major}$shared_ext'
20663 shlibpath_overrides_runpath=yes
20664 shlibpath_var=DYLD_LIBRARY_PATH
20665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20666
20667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20669 ;;
20670
20671 dgux*)
20672 version_type=linux
20673 need_lib_prefix=no
20674 need_version=no
20675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20676 soname_spec='${libname}${release}${shared_ext}$major'
20677 shlibpath_var=LD_LIBRARY_PATH
20678 ;;
20679
20680 freebsd* | dragonfly*)
20681 # DragonFly does not have aout. When/if they implement a new
20682 # versioning mechanism, adjust this.
20683 if test -x /usr/bin/objformat; then
20684 objformat=`/usr/bin/objformat`
20685 else
20686 case $host_os in
20687 freebsd[23].*) objformat=aout ;;
20688 *) objformat=elf ;;
20689 esac
20690 fi
20691 version_type=freebsd-$objformat
20692 case $version_type in
20693 freebsd-elf*)
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20695 need_version=no
20696 need_lib_prefix=no
20697 ;;
20698 freebsd-*)
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20700 need_version=yes
20701 ;;
20702 esac
20703 shlibpath_var=LD_LIBRARY_PATH
20704 case $host_os in
20705 freebsd2.*)
20706 shlibpath_overrides_runpath=yes
20707 ;;
20708 freebsd3.[01]* | freebsdelf3.[01]*)
20709 shlibpath_overrides_runpath=yes
20710 hardcode_into_libs=yes
20711 ;;
20712 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20713 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20714 shlibpath_overrides_runpath=no
20715 hardcode_into_libs=yes
20716 ;;
20717 *) # from 4.6 on, and DragonFly
20718 shlibpath_overrides_runpath=yes
20719 hardcode_into_libs=yes
20720 ;;
20721 esac
20722 ;;
20723
20724 haiku*)
20725 version_type=linux
20726 need_lib_prefix=no
20727 need_version=no
20728 dynamic_linker="$host_os runtime_loader"
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LIBRARY_PATH
20732 shlibpath_overrides_runpath=yes
20733 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20734 hardcode_into_libs=yes
20735 ;;
20736
20737 hpux9* | hpux10* | hpux11*)
20738 # Give a soname corresponding to the major version so that dld.sl refuses to
20739 # link against other versions.
20740 version_type=sunos
20741 need_lib_prefix=no
20742 need_version=no
20743 case $host_cpu in
20744 ia64*)
20745 shrext_cmds='.so'
20746 hardcode_into_libs=yes
20747 dynamic_linker="$host_os dld.so"
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 if test "X$HPUX_IA64_MODE" = X32; then
20753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20754 else
20755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20756 fi
20757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20758 ;;
20759 hppa*64*)
20760 shrext_cmds='.sl'
20761 hardcode_into_libs=yes
20762 dynamic_linker="$host_os dld.sl"
20763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20769 ;;
20770 *)
20771 shrext_cmds='.sl'
20772 dynamic_linker="$host_os dld.sl"
20773 shlibpath_var=SHLIB_PATH
20774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 ;;
20778 esac
20779 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20780 postinstall_cmds='chmod 555 $lib'
20781 # or fails outright, so override atomically:
20782 install_override_mode=555
20783 ;;
20784
20785 interix[3-9]*)
20786 version_type=linux
20787 need_lib_prefix=no
20788 need_version=no
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 shlibpath_overrides_runpath=no
20794 hardcode_into_libs=yes
20795 ;;
20796
20797 irix5* | irix6* | nonstopux*)
20798 case $host_os in
20799 nonstopux*) version_type=nonstopux ;;
20800 *)
20801 if test "$lt_cv_prog_gnu_ld" = yes; then
20802 version_type=linux
20803 else
20804 version_type=irix
20805 fi ;;
20806 esac
20807 need_lib_prefix=no
20808 need_version=no
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20811 case $host_os in
20812 irix5* | nonstopux*)
20813 libsuff= shlibsuff=
20814 ;;
20815 *)
20816 case $LD in # libtool.m4 will add one of these switches to LD
20817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20818 libsuff= shlibsuff= libmagic=32-bit;;
20819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20820 libsuff=32 shlibsuff=N32 libmagic=N32;;
20821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20823 *) libsuff= shlibsuff= libmagic=never-match;;
20824 esac
20825 ;;
20826 esac
20827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20828 shlibpath_overrides_runpath=no
20829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20831 hardcode_into_libs=yes
20832 ;;
20833
20834 # No shared lib support for Linux oldld, aout, or coff.
20835 linux*oldld* | linux*aout* | linux*coff*)
20836 dynamic_linker=no
20837 ;;
20838
20839 # This must be Linux ELF.
20840
20841 # uclinux* changes (here and below) have been submitted to the libtool
20842 # project, but have not yet been accepted: they are GCC-local changes
20843 # for the time being. (See
20844 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20845 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20846 version_type=linux
20847 need_lib_prefix=no
20848 need_version=no
20849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 soname_spec='${libname}${release}${shared_ext}$major'
20851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=no
20854
20855 # Some binutils ld are patched to set DT_RUNPATH
20856 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20857 $as_echo_n "(cached) " >&6
20858 else
20859 lt_cv_shlibpath_overrides_runpath=no
20860 save_LDFLAGS=$LDFLAGS
20861 save_libdir=$libdir
20862 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20863 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20866
20867 int
20868 main ()
20869 {
20870
20871 ;
20872 return 0;
20873 }
20874 _ACEOF
20875 if ac_fn_c_try_link "$LINENO"; then :
20876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20877 lt_cv_shlibpath_overrides_runpath=yes
20878 fi
20879 fi
20880 rm -f core conftest.err conftest.$ac_objext \
20881 conftest$ac_exeext conftest.$ac_ext
20882 LDFLAGS=$save_LDFLAGS
20883 libdir=$save_libdir
20884
20885 fi
20886
20887 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20888
20889 # This implies no fast_install, which is unacceptable.
20890 # Some rework will be needed to allow for fast_install
20891 # before this can be enabled.
20892 hardcode_into_libs=yes
20893
20894 # Append ld.so.conf contents to the search path
20895 if test -f /etc/ld.so.conf; then
20896 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' ' '`
20897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20898 fi
20899
20900 # We used to test for /lib/ld.so.1 and disable shared libraries on
20901 # powerpc, because MkLinux only supported shared libraries with the
20902 # GNU dynamic linker. Since this was broken with cross compilers,
20903 # most powerpc-linux boxes support dynamic linking these days and
20904 # people can always --disable-shared, the test was removed, and we
20905 # assume the GNU/Linux dynamic linker is in use.
20906 dynamic_linker='GNU/Linux ld.so'
20907 ;;
20908
20909 netbsd*)
20910 version_type=sunos
20911 need_lib_prefix=no
20912 need_version=no
20913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20916 dynamic_linker='NetBSD (a.out) ld.so'
20917 else
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20920 dynamic_linker='NetBSD ld.elf_so'
20921 fi
20922 shlibpath_var=LD_LIBRARY_PATH
20923 shlibpath_overrides_runpath=yes
20924 hardcode_into_libs=yes
20925 ;;
20926
20927 newsos6)
20928 version_type=linux
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 shlibpath_var=LD_LIBRARY_PATH
20931 shlibpath_overrides_runpath=yes
20932 ;;
20933
20934 *nto* | *qnx*)
20935 version_type=qnx
20936 need_lib_prefix=no
20937 need_version=no
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=no
20942 hardcode_into_libs=yes
20943 dynamic_linker='ldqnx.so'
20944 ;;
20945
20946 openbsd*)
20947 version_type=sunos
20948 sys_lib_dlsearch_path_spec="/usr/lib"
20949 need_lib_prefix=no
20950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20951 case $host_os in
20952 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20953 *) need_version=no ;;
20954 esac
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20957 shlibpath_var=LD_LIBRARY_PATH
20958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20959 case $host_os in
20960 openbsd2.[89] | openbsd2.[89].*)
20961 shlibpath_overrides_runpath=no
20962 ;;
20963 *)
20964 shlibpath_overrides_runpath=yes
20965 ;;
20966 esac
20967 else
20968 shlibpath_overrides_runpath=yes
20969 fi
20970 ;;
20971
20972 os2*)
20973 libname_spec='$name'
20974 shrext_cmds=".dll"
20975 need_lib_prefix=no
20976 library_names_spec='$libname${shared_ext} $libname.a'
20977 dynamic_linker='OS/2 ld.exe'
20978 shlibpath_var=LIBPATH
20979 ;;
20980
20981 osf3* | osf4* | osf5*)
20982 version_type=osf
20983 need_lib_prefix=no
20984 need_version=no
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 shlibpath_var=LD_LIBRARY_PATH
20988 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20989 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20990 ;;
20991
20992 rdos*)
20993 dynamic_linker=no
20994 ;;
20995
20996 solaris*)
20997 version_type=linux
20998 need_lib_prefix=no
20999 need_version=no
21000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 shlibpath_var=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath=yes
21004 hardcode_into_libs=yes
21005 # ldd complains unless libraries are executable
21006 postinstall_cmds='chmod +x $lib'
21007 ;;
21008
21009 sunos4*)
21010 version_type=sunos
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 shlibpath_overrides_runpath=yes
21015 if test "$with_gnu_ld" = yes; then
21016 need_lib_prefix=no
21017 fi
21018 need_version=yes
21019 ;;
21020
21021 sysv4 | sysv4.3*)
21022 version_type=linux
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 soname_spec='${libname}${release}${shared_ext}$major'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 case $host_vendor in
21027 sni)
21028 shlibpath_overrides_runpath=no
21029 need_lib_prefix=no
21030 runpath_var=LD_RUN_PATH
21031 ;;
21032 siemens)
21033 need_lib_prefix=no
21034 ;;
21035 motorola)
21036 need_lib_prefix=no
21037 need_version=no
21038 shlibpath_overrides_runpath=no
21039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21040 ;;
21041 esac
21042 ;;
21043
21044 sysv4*MP*)
21045 if test -d /usr/nec ;then
21046 version_type=linux
21047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21048 soname_spec='$libname${shared_ext}.$major'
21049 shlibpath_var=LD_LIBRARY_PATH
21050 fi
21051 ;;
21052
21053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21054 version_type=freebsd-elf
21055 need_lib_prefix=no
21056 need_version=no
21057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21058 soname_spec='${libname}${release}${shared_ext}$major'
21059 shlibpath_var=LD_LIBRARY_PATH
21060 shlibpath_overrides_runpath=yes
21061 hardcode_into_libs=yes
21062 if test "$with_gnu_ld" = yes; then
21063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21064 else
21065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21066 case $host_os in
21067 sco3.2v5*)
21068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21069 ;;
21070 esac
21071 fi
21072 sys_lib_dlsearch_path_spec='/usr/lib'
21073 ;;
21074
21075 tpf*)
21076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21077 version_type=linux
21078 need_lib_prefix=no
21079 need_version=no
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 shlibpath_var=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath=no
21083 hardcode_into_libs=yes
21084 ;;
21085
21086 uts4*)
21087 version_type=linux
21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 shlibpath_var=LD_LIBRARY_PATH
21091 ;;
21092
21093 # Shared libraries for VwWorks, >= 7 only at this stage
21094 # and (fpic) still incompatible with "large" code models
21095 # in a few configurations. Only for RTP mode in any case,
21096 # and upon explicit request at configure time.
21097 vxworks7*)
21098 dynamic_linker=no
21099 case ${with_multisubdir}-${enable_shared} in
21100 *large*)
21101 ;;
21102 *mrtp*-yes)
21103 version_type=linux
21104 need_lib_prefix=no
21105 need_version=no
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107 soname_spec='${libname}${release}${shared_ext}$major'
21108 dynamic_linker="$host_os module_loader"
21109 ;;
21110 esac
21111 ;;
21112 *)
21113 dynamic_linker=no
21114 ;;
21115 esac
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21117 $as_echo "$dynamic_linker" >&6; }
21118 test "$dynamic_linker" = no && can_build_shared=no
21119
21120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21121 if test "$GCC" = yes; then
21122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21123 fi
21124
21125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21126 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21127 fi
21128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21129 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21130 fi
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21224 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21225 hardcode_action=
21226 if test -n "$hardcode_libdir_flag_spec" ||
21227 test -n "$runpath_var" ||
21228 test "X$hardcode_automatic" = "Xyes" ; then
21229
21230 # We can hardcode non-existent directories.
21231 if test "$hardcode_direct" != no &&
21232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21233 # have to relink, otherwise we might link with an installed library
21234 # when we should be linking with a yet-to-be-installed one
21235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21236 test "$hardcode_minus_L" != no; then
21237 # Linking always hardcodes the temporary library directory.
21238 hardcode_action=relink
21239 else
21240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21241 hardcode_action=immediate
21242 fi
21243 else
21244 # We cannot hardcode anything, or else we can only hardcode existing
21245 # directories.
21246 hardcode_action=unsupported
21247 fi
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21249 $as_echo "$hardcode_action" >&6; }
21250
21251 if test "$hardcode_action" = relink ||
21252 test "$inherit_rpath" = yes; then
21253 # Fast installation is not supported
21254 enable_fast_install=no
21255 elif test "$shlibpath_overrides_runpath" = yes ||
21256 test "$enable_shared" = no; then
21257 # Fast installation is not necessary
21258 enable_fast_install=needless
21259 fi
21260
21261
21262
21263
21264
21265
21266 if test "x$enable_dlopen" != xyes; then
21267 enable_dlopen=unknown
21268 enable_dlopen_self=unknown
21269 enable_dlopen_self_static=unknown
21270 else
21271 lt_cv_dlopen=no
21272 lt_cv_dlopen_libs=
21273
21274 case $host_os in
21275 beos*)
21276 lt_cv_dlopen="load_add_on"
21277 lt_cv_dlopen_libs=
21278 lt_cv_dlopen_self=yes
21279 ;;
21280
21281 mingw* | pw32* | cegcc*)
21282 lt_cv_dlopen="LoadLibrary"
21283 lt_cv_dlopen_libs=
21284 ;;
21285
21286 cygwin*)
21287 lt_cv_dlopen="dlopen"
21288 lt_cv_dlopen_libs=
21289 ;;
21290
21291 darwin*)
21292 # if libdl is installed we need to link against it
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21294 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21295 if ${ac_cv_lib_dl_dlopen+:} false; then :
21296 $as_echo_n "(cached) " >&6
21297 else
21298 ac_check_lib_save_LIBS=$LIBS
21299 LIBS="-ldl $LIBS"
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302
21303 /* Override any GCC internal prototype to avoid an error.
21304 Use char because int might match the return type of a GCC
21305 builtin and then its argument prototype would still apply. */
21306 #ifdef __cplusplus
21307 extern "C"
21308 #endif
21309 char dlopen ();
21310 int
21311 main ()
21312 {
21313 return dlopen ();
21314 ;
21315 return 0;
21316 }
21317 _ACEOF
21318 if ac_fn_c_try_link "$LINENO"; then :
21319 ac_cv_lib_dl_dlopen=yes
21320 else
21321 ac_cv_lib_dl_dlopen=no
21322 fi
21323 rm -f core conftest.err conftest.$ac_objext \
21324 conftest$ac_exeext conftest.$ac_ext
21325 LIBS=$ac_check_lib_save_LIBS
21326 fi
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21328 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21329 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21331 else
21332
21333 lt_cv_dlopen="dyld"
21334 lt_cv_dlopen_libs=
21335 lt_cv_dlopen_self=yes
21336
21337 fi
21338
21339 ;;
21340
21341 *)
21342 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21343 if test "x$ac_cv_func_shl_load" = xyes; then :
21344 lt_cv_dlopen="shl_load"
21345 else
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21347 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21348 if ${ac_cv_lib_dld_shl_load+:} false; then :
21349 $as_echo_n "(cached) " >&6
21350 else
21351 ac_check_lib_save_LIBS=$LIBS
21352 LIBS="-ldld $LIBS"
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21355
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char shl_load ();
21363 int
21364 main ()
21365 {
21366 return shl_load ();
21367 ;
21368 return 0;
21369 }
21370 _ACEOF
21371 if ac_fn_c_try_link "$LINENO"; then :
21372 ac_cv_lib_dld_shl_load=yes
21373 else
21374 ac_cv_lib_dld_shl_load=no
21375 fi
21376 rm -f core conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 LIBS=$ac_check_lib_save_LIBS
21379 fi
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21381 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21382 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21384 else
21385 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21386 if test "x$ac_cv_func_dlopen" = xyes; then :
21387 lt_cv_dlopen="dlopen"
21388 else
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21390 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21391 if ${ac_cv_lib_dl_dlopen+:} false; then :
21392 $as_echo_n "(cached) " >&6
21393 else
21394 ac_check_lib_save_LIBS=$LIBS
21395 LIBS="-ldl $LIBS"
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21398
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21402 #ifdef __cplusplus
21403 extern "C"
21404 #endif
21405 char dlopen ();
21406 int
21407 main ()
21408 {
21409 return dlopen ();
21410 ;
21411 return 0;
21412 }
21413 _ACEOF
21414 if ac_fn_c_try_link "$LINENO"; then :
21415 ac_cv_lib_dl_dlopen=yes
21416 else
21417 ac_cv_lib_dl_dlopen=no
21418 fi
21419 rm -f core conftest.err conftest.$ac_objext \
21420 conftest$ac_exeext conftest.$ac_ext
21421 LIBS=$ac_check_lib_save_LIBS
21422 fi
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21425 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21427 else
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21429 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21430 if ${ac_cv_lib_svld_dlopen+:} false; then :
21431 $as_echo_n "(cached) " >&6
21432 else
21433 ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-lsvld $LIBS"
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21437
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char dlopen ();
21445 int
21446 main ()
21447 {
21448 return dlopen ();
21449 ;
21450 return 0;
21451 }
21452 _ACEOF
21453 if ac_fn_c_try_link "$LINENO"; then :
21454 ac_cv_lib_svld_dlopen=yes
21455 else
21456 ac_cv_lib_svld_dlopen=no
21457 fi
21458 rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21461 fi
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21463 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21464 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21466 else
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21468 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21469 if ${ac_cv_lib_dld_dld_link+:} false; then :
21470 $as_echo_n "(cached) " >&6
21471 else
21472 ac_check_lib_save_LIBS=$LIBS
21473 LIBS="-ldld $LIBS"
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char dld_link ();
21484 int
21485 main ()
21486 {
21487 return dld_link ();
21488 ;
21489 return 0;
21490 }
21491 _ACEOF
21492 if ac_fn_c_try_link "$LINENO"; then :
21493 ac_cv_lib_dld_dld_link=yes
21494 else
21495 ac_cv_lib_dld_dld_link=no
21496 fi
21497 rm -f core conftest.err conftest.$ac_objext \
21498 conftest$ac_exeext conftest.$ac_ext
21499 LIBS=$ac_check_lib_save_LIBS
21500 fi
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21502 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21503 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21504 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21505 fi
21506
21507
21508 fi
21509
21510
21511 fi
21512
21513
21514 fi
21515
21516
21517 fi
21518
21519
21520 fi
21521
21522 ;;
21523 esac
21524
21525 if test "x$lt_cv_dlopen" != xno; then
21526 enable_dlopen=yes
21527 else
21528 enable_dlopen=no
21529 fi
21530
21531 case $lt_cv_dlopen in
21532 dlopen)
21533 save_CPPFLAGS="$CPPFLAGS"
21534 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21535
21536 save_LDFLAGS="$LDFLAGS"
21537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21538
21539 save_LIBS="$LIBS"
21540 LIBS="$lt_cv_dlopen_libs $LIBS"
21541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21543 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21544 if ${lt_cv_dlopen_self+:} false; then :
21545 $as_echo_n "(cached) " >&6
21546 else
21547 if test "$cross_compiling" = yes; then :
21548 lt_cv_dlopen_self=cross
21549 else
21550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21551 lt_status=$lt_dlunknown
21552 cat > conftest.$ac_ext <<_LT_EOF
21553 #line 21553 "configure"
21554 #include "confdefs.h"
21555
21556 #if HAVE_DLFCN_H
21557 #include <dlfcn.h>
21558 #endif
21559
21560 #include <stdio.h>
21561
21562 #ifdef RTLD_GLOBAL
21563 # define LT_DLGLOBAL RTLD_GLOBAL
21564 #else
21565 # ifdef DL_GLOBAL
21566 # define LT_DLGLOBAL DL_GLOBAL
21567 # else
21568 # define LT_DLGLOBAL 0
21569 # endif
21570 #endif
21571
21572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21573 find out it does not work in some platform. */
21574 #ifndef LT_DLLAZY_OR_NOW
21575 # ifdef RTLD_LAZY
21576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21577 # else
21578 # ifdef DL_LAZY
21579 # define LT_DLLAZY_OR_NOW DL_LAZY
21580 # else
21581 # ifdef RTLD_NOW
21582 # define LT_DLLAZY_OR_NOW RTLD_NOW
21583 # else
21584 # ifdef DL_NOW
21585 # define LT_DLLAZY_OR_NOW DL_NOW
21586 # else
21587 # define LT_DLLAZY_OR_NOW 0
21588 # endif
21589 # endif
21590 # endif
21591 # endif
21592 #endif
21593
21594 /* When -fvisbility=hidden is used, assume the code has been annotated
21595 correspondingly for the symbols needed. */
21596 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21597 void fnord () __attribute__((visibility("default")));
21598 #endif
21599
21600 void fnord () { int i=42; }
21601 int main ()
21602 {
21603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21604 int status = $lt_dlunknown;
21605
21606 if (self)
21607 {
21608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21609 else
21610 {
21611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21612 else puts (dlerror ());
21613 }
21614 /* dlclose (self); */
21615 }
21616 else
21617 puts (dlerror ());
21618
21619 return status;
21620 }
21621 _LT_EOF
21622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21623 (eval $ac_link) 2>&5
21624 ac_status=$?
21625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21627 (./conftest; exit; ) >&5 2>/dev/null
21628 lt_status=$?
21629 case x$lt_status in
21630 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21631 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21632 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21633 esac
21634 else :
21635 # compilation failed
21636 lt_cv_dlopen_self=no
21637 fi
21638 fi
21639 rm -fr conftest*
21640
21641
21642 fi
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21644 $as_echo "$lt_cv_dlopen_self" >&6; }
21645
21646 if test "x$lt_cv_dlopen_self" = xyes; then
21647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21649 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21650 if ${lt_cv_dlopen_self_static+:} false; then :
21651 $as_echo_n "(cached) " >&6
21652 else
21653 if test "$cross_compiling" = yes; then :
21654 lt_cv_dlopen_self_static=cross
21655 else
21656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21657 lt_status=$lt_dlunknown
21658 cat > conftest.$ac_ext <<_LT_EOF
21659 #line 21659 "configure"
21660 #include "confdefs.h"
21661
21662 #if HAVE_DLFCN_H
21663 #include <dlfcn.h>
21664 #endif
21665
21666 #include <stdio.h>
21667
21668 #ifdef RTLD_GLOBAL
21669 # define LT_DLGLOBAL RTLD_GLOBAL
21670 #else
21671 # ifdef DL_GLOBAL
21672 # define LT_DLGLOBAL DL_GLOBAL
21673 # else
21674 # define LT_DLGLOBAL 0
21675 # endif
21676 #endif
21677
21678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21679 find out it does not work in some platform. */
21680 #ifndef LT_DLLAZY_OR_NOW
21681 # ifdef RTLD_LAZY
21682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21683 # else
21684 # ifdef DL_LAZY
21685 # define LT_DLLAZY_OR_NOW DL_LAZY
21686 # else
21687 # ifdef RTLD_NOW
21688 # define LT_DLLAZY_OR_NOW RTLD_NOW
21689 # else
21690 # ifdef DL_NOW
21691 # define LT_DLLAZY_OR_NOW DL_NOW
21692 # else
21693 # define LT_DLLAZY_OR_NOW 0
21694 # endif
21695 # endif
21696 # endif
21697 # endif
21698 #endif
21699
21700 /* When -fvisbility=hidden is used, assume the code has been annotated
21701 correspondingly for the symbols needed. */
21702 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21703 void fnord () __attribute__((visibility("default")));
21704 #endif
21705
21706 void fnord () { int i=42; }
21707 int main ()
21708 {
21709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21710 int status = $lt_dlunknown;
21711
21712 if (self)
21713 {
21714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21715 else
21716 {
21717 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21718 else puts (dlerror ());
21719 }
21720 /* dlclose (self); */
21721 }
21722 else
21723 puts (dlerror ());
21724
21725 return status;
21726 }
21727 _LT_EOF
21728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21729 (eval $ac_link) 2>&5
21730 ac_status=$?
21731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21732 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21733 (./conftest; exit; ) >&5 2>/dev/null
21734 lt_status=$?
21735 case x$lt_status in
21736 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21737 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21738 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21739 esac
21740 else :
21741 # compilation failed
21742 lt_cv_dlopen_self_static=no
21743 fi
21744 fi
21745 rm -fr conftest*
21746
21747
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21750 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21751 fi
21752
21753 CPPFLAGS="$save_CPPFLAGS"
21754 LDFLAGS="$save_LDFLAGS"
21755 LIBS="$save_LIBS"
21756 ;;
21757 esac
21758
21759 case $lt_cv_dlopen_self in
21760 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21761 *) enable_dlopen_self=unknown ;;
21762 esac
21763
21764 case $lt_cv_dlopen_self_static in
21765 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21766 *) enable_dlopen_self_static=unknown ;;
21767 esac
21768 fi
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786 striplib=
21787 old_striplib=
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21789 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21790 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21791 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21792 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21794 $as_echo "yes" >&6; }
21795 else
21796 # FIXME - insert some real tests, host_os isn't really good enough
21797 case $host_os in
21798 darwin*)
21799 if test -n "$STRIP" ; then
21800 striplib="$STRIP -x"
21801 old_striplib="$STRIP -S"
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21803 $as_echo "yes" >&6; }
21804 else
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21806 $as_echo "no" >&6; }
21807 fi
21808 ;;
21809 *)
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21812 ;;
21813 esac
21814 fi
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827 # Report which library types will actually be built
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21829 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21831 $as_echo "$can_build_shared" >&6; }
21832
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21834 $as_echo_n "checking whether to build shared libraries... " >&6; }
21835 test "$can_build_shared" = "no" && enable_shared=no
21836
21837 # On AIX, shared libraries and static libraries use the same namespace, and
21838 # are all built from PIC.
21839 case $host_os in
21840 aix3*)
21841 test "$enable_shared" = yes && enable_static=no
21842 if test -n "$RANLIB"; then
21843 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21844 postinstall_cmds='$RANLIB $lib'
21845 fi
21846 ;;
21847
21848 aix[4-9]*)
21849 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21850 test "$enable_shared" = yes && enable_static=no
21851 fi
21852 ;;
21853 esac
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21855 $as_echo "$enable_shared" >&6; }
21856
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21858 $as_echo_n "checking whether to build static libraries... " >&6; }
21859 # Make sure either enable_shared or enable_static is yes.
21860 test "$enable_shared" = yes || enable_static=yes
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21862 $as_echo "$enable_static" >&6; }
21863
21864
21865
21866
21867 fi
21868 ac_ext=cpp
21869 ac_cpp='$CXXCPP $CPPFLAGS'
21870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21873
21874 CC="$lt_save_CC"
21875
21876 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21877 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21878 (test "X$CXX" != "Xg++"))) ; then
21879 ac_ext=cpp
21880 ac_cpp='$CXXCPP $CPPFLAGS'
21881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21885 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21886 if test -z "$CXXCPP"; then
21887 if ${ac_cv_prog_CXXCPP+:} false; then :
21888 $as_echo_n "(cached) " >&6
21889 else
21890 # Double quotes because CXXCPP needs to be expanded
21891 for CXXCPP in "$CXX -E" "/lib/cpp"
21892 do
21893 ac_preproc_ok=false
21894 for ac_cxx_preproc_warn_flag in '' yes
21895 do
21896 # Use a header file that comes with gcc, so configuring glibc
21897 # with a fresh cross-compiler works.
21898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21899 # <limits.h> exists even on freestanding compilers.
21900 # On the NeXT, cc -E runs the code through the compiler's parser,
21901 # not just through cpp. "Syntax error" is here to catch this case.
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21904 #ifdef __STDC__
21905 # include <limits.h>
21906 #else
21907 # include <assert.h>
21908 #endif
21909 Syntax error
21910 _ACEOF
21911 if ac_fn_cxx_try_cpp "$LINENO"; then :
21912
21913 else
21914 # Broken: fails on valid input.
21915 continue
21916 fi
21917 rm -f conftest.err conftest.i conftest.$ac_ext
21918
21919 # OK, works on sane cases. Now check whether nonexistent headers
21920 # can be detected and how.
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21923 #include <ac_nonexistent.h>
21924 _ACEOF
21925 if ac_fn_cxx_try_cpp "$LINENO"; then :
21926 # Broken: success on invalid input.
21927 continue
21928 else
21929 # Passes both tests.
21930 ac_preproc_ok=:
21931 break
21932 fi
21933 rm -f conftest.err conftest.i conftest.$ac_ext
21934
21935 done
21936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21937 rm -f conftest.i conftest.err conftest.$ac_ext
21938 if $ac_preproc_ok; then :
21939 break
21940 fi
21941
21942 done
21943 ac_cv_prog_CXXCPP=$CXXCPP
21944
21945 fi
21946 CXXCPP=$ac_cv_prog_CXXCPP
21947 else
21948 ac_cv_prog_CXXCPP=$CXXCPP
21949 fi
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21951 $as_echo "$CXXCPP" >&6; }
21952 ac_preproc_ok=false
21953 for ac_cxx_preproc_warn_flag in '' yes
21954 do
21955 # Use a header file that comes with gcc, so configuring glibc
21956 # with a fresh cross-compiler works.
21957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21958 # <limits.h> exists even on freestanding compilers.
21959 # On the NeXT, cc -E runs the code through the compiler's parser,
21960 # not just through cpp. "Syntax error" is here to catch this case.
21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h. */
21963 #ifdef __STDC__
21964 # include <limits.h>
21965 #else
21966 # include <assert.h>
21967 #endif
21968 Syntax error
21969 _ACEOF
21970 if ac_fn_cxx_try_cpp "$LINENO"; then :
21971
21972 else
21973 # Broken: fails on valid input.
21974 continue
21975 fi
21976 rm -f conftest.err conftest.i conftest.$ac_ext
21977
21978 # OK, works on sane cases. Now check whether nonexistent headers
21979 # can be detected and how.
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21982 #include <ac_nonexistent.h>
21983 _ACEOF
21984 if ac_fn_cxx_try_cpp "$LINENO"; then :
21985 # Broken: success on invalid input.
21986 continue
21987 else
21988 # Passes both tests.
21989 ac_preproc_ok=:
21990 break
21991 fi
21992 rm -f conftest.err conftest.i conftest.$ac_ext
21993
21994 done
21995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21996 rm -f conftest.i conftest.err conftest.$ac_ext
21997 if $ac_preproc_ok; then :
21998
21999 else
22000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22002 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22003 See \`config.log' for more details" "$LINENO" 5; }
22004 fi
22005
22006 ac_ext=cpp
22007 ac_cpp='$CXXCPP $CPPFLAGS'
22008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22011
22012 else
22013 _lt_caught_CXX_error=yes
22014 fi
22015
22016 ac_ext=cpp
22017 ac_cpp='$CXXCPP $CPPFLAGS'
22018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22021
22022 archive_cmds_need_lc_CXX=no
22023 allow_undefined_flag_CXX=
22024 always_export_symbols_CXX=no
22025 archive_expsym_cmds_CXX=
22026 compiler_needs_object_CXX=no
22027 export_dynamic_flag_spec_CXX=
22028 hardcode_direct_CXX=no
22029 hardcode_direct_absolute_CXX=no
22030 hardcode_libdir_flag_spec_CXX=
22031 hardcode_libdir_flag_spec_ld_CXX=
22032 hardcode_libdir_separator_CXX=
22033 hardcode_minus_L_CXX=no
22034 hardcode_shlibpath_var_CXX=unsupported
22035 hardcode_automatic_CXX=no
22036 inherit_rpath_CXX=no
22037 module_cmds_CXX=
22038 module_expsym_cmds_CXX=
22039 link_all_deplibs_CXX=unknown
22040 old_archive_cmds_CXX=$old_archive_cmds
22041 reload_flag_CXX=$reload_flag
22042 reload_cmds_CXX=$reload_cmds
22043 no_undefined_flag_CXX=
22044 whole_archive_flag_spec_CXX=
22045 enable_shared_with_static_runtimes_CXX=no
22046
22047 # Source file extension for C++ test sources.
22048 ac_ext=cpp
22049
22050 # Object file extension for compiled C++ test sources.
22051 objext=o
22052 objext_CXX=$objext
22053
22054 # No sense in running all these tests if we already determined that
22055 # the CXX compiler isn't working. Some variables (like enable_shared)
22056 # are currently assumed to apply to all compilers on this platform,
22057 # and will be corrupted by setting them based on a non-working compiler.
22058 if test "$_lt_caught_CXX_error" != yes; then
22059 # Code to be used in simple compile tests
22060 lt_simple_compile_test_code="int some_variable = 0;"
22061
22062 # Code to be used in simple link tests
22063 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22064
22065 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22066
22067
22068
22069
22070
22071
22072 # If no C compiler was specified, use CC.
22073 LTCC=${LTCC-"$CC"}
22074
22075 # If no C compiler flags were specified, use CFLAGS.
22076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22077
22078 # Allow CC to be a program name with arguments.
22079 compiler=$CC
22080
22081
22082 # save warnings/boilerplate of simple test code
22083 ac_outfile=conftest.$ac_objext
22084 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22086 _lt_compiler_boilerplate=`cat conftest.err`
22087 $RM conftest*
22088
22089 ac_outfile=conftest.$ac_objext
22090 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22092 _lt_linker_boilerplate=`cat conftest.err`
22093 $RM -r conftest*
22094
22095
22096 # Allow CC to be a program name with arguments.
22097 lt_save_CC=$CC
22098 lt_save_LD=$LD
22099 lt_save_GCC=$GCC
22100 GCC=$GXX
22101 lt_save_with_gnu_ld=$with_gnu_ld
22102 lt_save_path_LD=$lt_cv_path_LD
22103 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22104 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22105 else
22106 $as_unset lt_cv_prog_gnu_ld
22107 fi
22108 if test -n "${lt_cv_path_LDCXX+set}"; then
22109 lt_cv_path_LD=$lt_cv_path_LDCXX
22110 else
22111 $as_unset lt_cv_path_LD
22112 fi
22113 test -z "${LDCXX+set}" || LD=$LDCXX
22114 CC=${CXX-"c++"}
22115 compiler=$CC
22116 compiler_CXX=$CC
22117 for cc_temp in $compiler""; do
22118 case $cc_temp in
22119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22121 \-*) ;;
22122 *) break;;
22123 esac
22124 done
22125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22126
22127
22128 if test -n "$compiler"; then
22129 # We don't want -fno-exception when compiling C++ code, so set the
22130 # no_builtin_flag separately
22131 if test "$GXX" = yes; then
22132 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22133 else
22134 lt_prog_compiler_no_builtin_flag_CXX=
22135 fi
22136
22137 if test "$GXX" = yes; then
22138 # Set up default GNU C++ configuration
22139
22140
22141
22142 # Check whether --with-gnu-ld was given.
22143 if test "${with_gnu_ld+set}" = set; then :
22144 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22145 else
22146 with_gnu_ld=no
22147 fi
22148
22149 ac_prog=ld
22150 if test "$GCC" = yes; then
22151 # Check if gcc -print-prog-name=ld gives a path.
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22153 $as_echo_n "checking for ld used by $CC... " >&6; }
22154 case $host in
22155 *-*-mingw*)
22156 # gcc leaves a trailing carriage return which upsets mingw
22157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22158 *)
22159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22160 esac
22161 case $ac_prog in
22162 # Accept absolute paths.
22163 [\\/]* | ?:[\\/]*)
22164 re_direlt='/[^/][^/]*/\.\./'
22165 # Canonicalize the pathname of ld
22166 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22167 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22168 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22169 done
22170 test -z "$LD" && LD="$ac_prog"
22171 ;;
22172 "")
22173 # If it fails, then pretend we aren't using GCC.
22174 ac_prog=ld
22175 ;;
22176 *)
22177 # If it is relative, then search for the first ld in PATH.
22178 with_gnu_ld=unknown
22179 ;;
22180 esac
22181 elif test "$with_gnu_ld" = yes; then
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22183 $as_echo_n "checking for GNU ld... " >&6; }
22184 else
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22186 $as_echo_n "checking for non-GNU ld... " >&6; }
22187 fi
22188 if ${lt_cv_path_LD+:} false; then :
22189 $as_echo_n "(cached) " >&6
22190 else
22191 if test -z "$LD"; then
22192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22193 for ac_dir in $PATH; do
22194 IFS="$lt_save_ifs"
22195 test -z "$ac_dir" && ac_dir=.
22196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22197 lt_cv_path_LD="$ac_dir/$ac_prog"
22198 # Check to see if the program is GNU ld. I'd rather use --version,
22199 # but apparently some variants of GNU ld only accept -v.
22200 # Break only if it was the GNU/non-GNU ld that we prefer.
22201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22202 *GNU* | *'with BFD'*)
22203 test "$with_gnu_ld" != no && break
22204 ;;
22205 *)
22206 test "$with_gnu_ld" != yes && break
22207 ;;
22208 esac
22209 fi
22210 done
22211 IFS="$lt_save_ifs"
22212 else
22213 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22214 fi
22215 fi
22216
22217 LD="$lt_cv_path_LD"
22218 if test -n "$LD"; then
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22220 $as_echo "$LD" >&6; }
22221 else
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223 $as_echo "no" >&6; }
22224 fi
22225 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22227 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22228 if ${lt_cv_prog_gnu_ld+:} false; then :
22229 $as_echo_n "(cached) " >&6
22230 else
22231 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22232 case `$LD -v 2>&1 </dev/null` in
22233 *GNU* | *'with BFD'*)
22234 lt_cv_prog_gnu_ld=yes
22235 ;;
22236 *)
22237 lt_cv_prog_gnu_ld=no
22238 ;;
22239 esac
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22242 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22243 with_gnu_ld=$lt_cv_prog_gnu_ld
22244
22245
22246
22247
22248
22249
22250
22251 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22252 # archiving commands below assume that GNU ld is being used.
22253 if test "$with_gnu_ld" = yes; then
22254 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22255 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'
22256
22257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22259
22260 # If archive_cmds runs LD, not CC, wlarc should be empty
22261 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22262 # investigate it a little bit more. (MM)
22263 wlarc='${wl}'
22264
22265 # ancient GNU ld didn't support --whole-archive et. al.
22266 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22267 $GREP 'no-whole-archive' > /dev/null; then
22268 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22269 else
22270 whole_archive_flag_spec_CXX=
22271 fi
22272 else
22273 with_gnu_ld=no
22274 wlarc=
22275
22276 # A generic and very simple default shared library creation
22277 # command for GNU C++ for the case where it uses the native
22278 # linker, instead of GNU ld. If possible, this setting should
22279 # overridden to take advantage of the native linker features on
22280 # the platform it is being used on.
22281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22282 fi
22283
22284 # Commands to make compiler produce verbose output that lists
22285 # what "hidden" libraries, object files and flags are used when
22286 # linking a shared library.
22287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22288
22289 else
22290 GXX=no
22291 with_gnu_ld=no
22292 wlarc=
22293 fi
22294
22295 # PORTME: fill in a description of your system's C++ link characteristics
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22297 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22298 ld_shlibs_CXX=yes
22299 case $host_os in
22300 aix3*)
22301 # FIXME: insert proper C++ library support
22302 ld_shlibs_CXX=no
22303 ;;
22304 aix[4-9]*)
22305 if test "$host_cpu" = ia64; then
22306 # On IA64, the linker does run time linking by default, so we don't
22307 # have to do anything special.
22308 aix_use_runtimelinking=no
22309 exp_sym_flag='-Bexport'
22310 no_entry_flag=""
22311 else
22312 aix_use_runtimelinking=no
22313
22314 # Test if we are trying to use run time linking or normal
22315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22316 # need to do runtime linking.
22317 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22318 for ld_flag in $LDFLAGS; do
22319 case $ld_flag in
22320 *-brtl*)
22321 aix_use_runtimelinking=yes
22322 break
22323 ;;
22324 esac
22325 done
22326 ;;
22327 esac
22328
22329 exp_sym_flag='-bexport'
22330 no_entry_flag='-bnoentry'
22331 fi
22332
22333 # When large executables or shared objects are built, AIX ld can
22334 # have problems creating the table of contents. If linking a library
22335 # or program results in "error TOC overflow" add -mminimal-toc to
22336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22338
22339 archive_cmds_CXX=''
22340 hardcode_direct_CXX=yes
22341 hardcode_direct_absolute_CXX=yes
22342 hardcode_libdir_separator_CXX=':'
22343 link_all_deplibs_CXX=yes
22344 file_list_spec_CXX='${wl}-f,'
22345
22346 if test "$GXX" = yes; then
22347 case $host_os in aix4.[012]|aix4.[012].*)
22348 # We only want to do this on AIX 4.2 and lower, the check
22349 # below for broken collect2 doesn't work under 4.3+
22350 collect2name=`${CC} -print-prog-name=collect2`
22351 if test -f "$collect2name" &&
22352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22353 then
22354 # We have reworked collect2
22355 :
22356 else
22357 # We have old collect2
22358 hardcode_direct_CXX=unsupported
22359 # It fails to find uninstalled libraries when the uninstalled
22360 # path is not listed in the libpath. Setting hardcode_minus_L
22361 # to unsupported forces relinking
22362 hardcode_minus_L_CXX=yes
22363 hardcode_libdir_flag_spec_CXX='-L$libdir'
22364 hardcode_libdir_separator_CXX=
22365 fi
22366 esac
22367 shared_flag='-shared'
22368 if test "$aix_use_runtimelinking" = yes; then
22369 shared_flag="$shared_flag "'${wl}-G'
22370 fi
22371 else
22372 # not using gcc
22373 if test "$host_cpu" = ia64; then
22374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22375 # chokes on -Wl,-G. The following line is correct:
22376 shared_flag='-G'
22377 else
22378 if test "$aix_use_runtimelinking" = yes; then
22379 shared_flag='${wl}-G'
22380 else
22381 shared_flag='${wl}-bM:SRE'
22382 fi
22383 fi
22384 fi
22385
22386 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22387 # It seems that -bexpall does not export symbols beginning with
22388 # underscore (_), so it is better to generate a list of symbols to
22389 # export.
22390 always_export_symbols_CXX=yes
22391 if test "$aix_use_runtimelinking" = yes; then
22392 # Warning - without using the other runtime loading flags (-brtl),
22393 # -berok will link without error, but may produce a broken library.
22394 allow_undefined_flag_CXX='-berok'
22395 # Determine the default libpath from the value encoded in an empty
22396 # executable.
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22399
22400 int
22401 main ()
22402 {
22403
22404 ;
22405 return 0;
22406 }
22407 _ACEOF
22408 if ac_fn_cxx_try_link "$LINENO"; then :
22409
22410 lt_aix_libpath_sed='
22411 /Import File Strings/,/^$/ {
22412 /^0/ {
22413 s/^0 *\(.*\)$/\1/
22414 p
22415 }
22416 }'
22417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22418 # Check for a 64-bit object if we didn't find anything.
22419 if test -z "$aix_libpath"; then
22420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22421 fi
22422 fi
22423 rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22426
22427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22428
22429 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"
22430 else
22431 if test "$host_cpu" = ia64; then
22432 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22433 allow_undefined_flag_CXX="-z nodefs"
22434 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"
22435 else
22436 # Determine the default libpath from the value encoded in an
22437 # empty executable.
22438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h. */
22440
22441 int
22442 main ()
22443 {
22444
22445 ;
22446 return 0;
22447 }
22448 _ACEOF
22449 if ac_fn_cxx_try_link "$LINENO"; then :
22450
22451 lt_aix_libpath_sed='
22452 /Import File Strings/,/^$/ {
22453 /^0/ {
22454 s/^0 *\(.*\)$/\1/
22455 p
22456 }
22457 }'
22458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22459 # Check for a 64-bit object if we didn't find anything.
22460 if test -z "$aix_libpath"; then
22461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22462 fi
22463 fi
22464 rm -f core conftest.err conftest.$ac_objext \
22465 conftest$ac_exeext conftest.$ac_ext
22466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22467
22468 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22469 # Warning - without using the other run time loading flags,
22470 # -berok will link without error, but may produce a broken library.
22471 no_undefined_flag_CXX=' ${wl}-bernotok'
22472 allow_undefined_flag_CXX=' ${wl}-berok'
22473 if test "$with_gnu_ld" = yes; then
22474 # We only use this code for GNU lds that support --whole-archive.
22475 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22476 else
22477 # Exported symbols can be pulled into shared objects from archives
22478 whole_archive_flag_spec_CXX='$convenience'
22479 fi
22480 archive_cmds_need_lc_CXX=yes
22481 # This is similar to how AIX traditionally builds its shared
22482 # libraries.
22483 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'
22484 fi
22485 fi
22486 ;;
22487
22488 beos*)
22489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22490 allow_undefined_flag_CXX=unsupported
22491 # Joseph Beckenbach <[email protected]> says some releases of gcc
22492 # support --undefined. This deserves some investigation. FIXME
22493 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22494 else
22495 ld_shlibs_CXX=no
22496 fi
22497 ;;
22498
22499 chorus*)
22500 case $cc_basename in
22501 *)
22502 # FIXME: insert proper C++ library support
22503 ld_shlibs_CXX=no
22504 ;;
22505 esac
22506 ;;
22507
22508 cygwin* | mingw* | pw32* | cegcc*)
22509 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22510 # as there is no search path for DLLs.
22511 hardcode_libdir_flag_spec_CXX='-L$libdir'
22512 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22513 allow_undefined_flag_CXX=unsupported
22514 always_export_symbols_CXX=no
22515 enable_shared_with_static_runtimes_CXX=yes
22516
22517 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22518 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'
22519 # If the export-symbols file already is a .def file (1st line
22520 # is EXPORTS), use it as is; otherwise, prepend...
22521 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22522 cp $export_symbols $output_objdir/$soname.def;
22523 else
22524 echo EXPORTS > $output_objdir/$soname.def;
22525 cat $export_symbols >> $output_objdir/$soname.def;
22526 fi~
22527 $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'
22528 else
22529 ld_shlibs_CXX=no
22530 fi
22531 ;;
22532 darwin* | rhapsody*)
22533
22534
22535
22536 # Publish an arg to allow the user to select that Darwin host (and target)
22537 # libraries should be given install-names like @rpath/libfoo.dylib. This
22538 # requires that the user of the library then adds an 'rpath' to the DSO that
22539 # needs access.
22540 # NOTE: there are defaults below, for systems that support rpaths. The person
22541 # configuring can override the defaults for any system version that supports
22542 # them - they are, however, forced off for system versions without support.
22543 # Check whether --enable-darwin-at-rpath was given.
22544 if test "${enable_darwin_at_rpath+set}" = set; then :
22545 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22546 # This is not supported before macOS 10.5 / Darwin9.
22547 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22548 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22550 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22551 enable_darwin_at_rpath=no
22552 ;;
22553 esac
22554 fi
22555 else
22556 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22557 # As above, before 10.5 / Darwin9 this does not work.
22558 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22559 enable_darwin_at_rpath=no
22560 ;;
22561
22562 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22563 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22564 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22565 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22567 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22568 enable_darwin_at_rpath=yes
22569 ;;
22570 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22571 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22572
22573 esac
22574
22575 fi
22576
22577
22578 archive_cmds_need_lc_CXX=no
22579 hardcode_direct_CXX=no
22580 hardcode_automatic_CXX=yes
22581 hardcode_shlibpath_var_CXX=unsupported
22582 if test "$lt_cv_ld_force_load" = "yes"; then
22583 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\"`'
22584 else
22585 whole_archive_flag_spec_CXX=''
22586 fi
22587 link_all_deplibs_CXX=yes
22588 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22589 case $cc_basename in
22590 ifort*) _lt_dar_can_shared=yes ;;
22591 *) _lt_dar_can_shared=$GCC ;;
22592 esac
22593 if test "$_lt_dar_can_shared" = "yes"; then
22594 output_verbose_link_cmd=func_echo_all
22595 _lt_install_name='\$rpath/\$soname'
22596 if test "x$enable_darwin_at_rpath" = "xyes"; then
22597 _lt_install_name='@rpath/\$soname'
22598 fi
22599 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22600 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22601 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}"
22602 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}"
22603 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22604 _lt_install_name='\$rpath/\$soname'
22605 if test "x$enable_darwin_at_rpath" = "xyes"; then
22606 _lt_install_name='@rpath/\$soname'
22607 fi
22608 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}"
22609 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}"
22610 fi
22611
22612 else
22613 ld_shlibs_CXX=no
22614 fi
22615
22616 ;;
22617
22618 dgux*)
22619 case $cc_basename in
22620 ec++*)
22621 # FIXME: insert proper C++ library support
22622 ld_shlibs_CXX=no
22623 ;;
22624 ghcx*)
22625 # Green Hills C++ Compiler
22626 # FIXME: insert proper C++ library support
22627 ld_shlibs_CXX=no
22628 ;;
22629 *)
22630 # FIXME: insert proper C++ library support
22631 ld_shlibs_CXX=no
22632 ;;
22633 esac
22634 ;;
22635
22636 freebsd2.*)
22637 # C++ shared libraries reported to be fairly broken before
22638 # switch to ELF
22639 ld_shlibs_CXX=no
22640 ;;
22641
22642 freebsd-elf*)
22643 archive_cmds_need_lc_CXX=no
22644 ;;
22645
22646 freebsd* | dragonfly*)
22647 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22648 # conventions
22649 ld_shlibs_CXX=yes
22650 ;;
22651
22652 gnu*)
22653 ;;
22654
22655 haiku*)
22656 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22657 link_all_deplibs_CXX=yes
22658 ;;
22659
22660 hpux9*)
22661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22662 hardcode_libdir_separator_CXX=:
22663 export_dynamic_flag_spec_CXX='${wl}-E'
22664 hardcode_direct_CXX=yes
22665 hardcode_minus_L_CXX=yes # Not in the search PATH,
22666 # but as the default
22667 # location of the library.
22668
22669 case $cc_basename in
22670 CC*)
22671 # FIXME: insert proper C++ library support
22672 ld_shlibs_CXX=no
22673 ;;
22674 aCC*)
22675 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'
22676 # Commands to make compiler produce verbose output that lists
22677 # what "hidden" libraries, object files and flags are used when
22678 # linking a shared library.
22679 #
22680 # There doesn't appear to be a way to prevent this compiler from
22681 # explicitly linking system object files so we need to strip them
22682 # from the output so that they don't get included in the library
22683 # dependencies.
22684 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"'
22685 ;;
22686 *)
22687 if test "$GXX" = yes; then
22688 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'
22689 else
22690 # FIXME: insert proper C++ library support
22691 ld_shlibs_CXX=no
22692 fi
22693 ;;
22694 esac
22695 ;;
22696
22697 hpux10*|hpux11*)
22698 if test $with_gnu_ld = no; then
22699 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22700 hardcode_libdir_separator_CXX=:
22701
22702 case $host_cpu in
22703 hppa*64*|ia64*)
22704 ;;
22705 *)
22706 export_dynamic_flag_spec_CXX='${wl}-E'
22707 ;;
22708 esac
22709 fi
22710 case $host_cpu in
22711 hppa*64*|ia64*)
22712 hardcode_direct_CXX=no
22713 hardcode_shlibpath_var_CXX=no
22714 ;;
22715 *)
22716 hardcode_direct_CXX=yes
22717 hardcode_direct_absolute_CXX=yes
22718 hardcode_minus_L_CXX=yes # Not in the search PATH,
22719 # but as the default
22720 # location of the library.
22721 ;;
22722 esac
22723
22724 case $cc_basename in
22725 CC*)
22726 # FIXME: insert proper C++ library support
22727 ld_shlibs_CXX=no
22728 ;;
22729 aCC*)
22730 case $host_cpu in
22731 hppa*64*)
22732 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22733 ;;
22734 ia64*)
22735 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22736 ;;
22737 *)
22738 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22739 ;;
22740 esac
22741 # Commands to make compiler produce verbose output that lists
22742 # what "hidden" libraries, object files and flags are used when
22743 # linking a shared library.
22744 #
22745 # There doesn't appear to be a way to prevent this compiler from
22746 # explicitly linking system object files so we need to strip them
22747 # from the output so that they don't get included in the library
22748 # dependencies.
22749 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"'
22750 ;;
22751 *)
22752 if test "$GXX" = yes; then
22753 if test $with_gnu_ld = no; then
22754 case $host_cpu in
22755 hppa*64*)
22756 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22757 ;;
22758 ia64*)
22759 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22760 ;;
22761 *)
22762 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'
22763 ;;
22764 esac
22765 fi
22766 else
22767 # FIXME: insert proper C++ library support
22768 ld_shlibs_CXX=no
22769 fi
22770 ;;
22771 esac
22772 ;;
22773
22774 interix[3-9]*)
22775 hardcode_direct_CXX=no
22776 hardcode_shlibpath_var_CXX=no
22777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22778 export_dynamic_flag_spec_CXX='${wl}-E'
22779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22780 # Instead, shared libraries are loaded at an image base (0x10000000 by
22781 # default) and relocated if they conflict, which is a slow very memory
22782 # consuming and fragmenting process. To avoid this, we pick a random,
22783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22784 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22785 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'
22786 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'
22787 ;;
22788 irix5* | irix6*)
22789 case $cc_basename in
22790 CC*)
22791 # SGI C++
22792 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'
22793
22794 # Archives containing C++ object files must be created using
22795 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22796 # necessary to make sure instantiated templates are included
22797 # in the archive.
22798 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22799 ;;
22800 *)
22801 if test "$GXX" = yes; then
22802 if test "$with_gnu_ld" = no; then
22803 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'
22804 else
22805 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'
22806 fi
22807 fi
22808 link_all_deplibs_CXX=yes
22809 ;;
22810 esac
22811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22812 hardcode_libdir_separator_CXX=:
22813 inherit_rpath_CXX=yes
22814 ;;
22815
22816 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22817 case $cc_basename in
22818 KCC*)
22819 # Kuck and Associates, Inc. (KAI) C++ Compiler
22820
22821 # KCC will only create a shared library if the output file
22822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22823 # to its proper name (with version) after linking.
22824 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'
22825 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'
22826 # Commands to make compiler produce verbose output that lists
22827 # what "hidden" libraries, object files and flags are used when
22828 # linking a shared library.
22829 #
22830 # There doesn't appear to be a way to prevent this compiler from
22831 # explicitly linking system object files so we need to strip them
22832 # from the output so that they don't get included in the library
22833 # dependencies.
22834 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"'
22835
22836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22838
22839 # Archives containing C++ object files must be created using
22840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22842 ;;
22843 icpc* | ecpc* )
22844 # Intel C++
22845 with_gnu_ld=yes
22846 # version 8.0 and above of icpc choke on multiply defined symbols
22847 # if we add $predep_objects and $postdep_objects, however 7.1 and
22848 # earlier do not add the objects themselves.
22849 case `$CC -V 2>&1` in
22850 *"Version 7."*)
22851 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22852 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'
22853 ;;
22854 *) # Version 8.0 or newer
22855 tmp_idyn=
22856 case $host_cpu in
22857 ia64*) tmp_idyn=' -i_dynamic';;
22858 esac
22859 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22860 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'
22861 ;;
22862 esac
22863 archive_cmds_need_lc_CXX=no
22864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22867 ;;
22868 pgCC* | pgcpp*)
22869 # Portland Group C++ compiler
22870 case `$CC -V` in
22871 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22872 prelink_cmds_CXX='tpldir=Template.dir~
22873 rm -rf $tpldir~
22874 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22875 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22876 old_archive_cmds_CXX='tpldir=Template.dir~
22877 rm -rf $tpldir~
22878 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22879 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22880 $RANLIB $oldlib'
22881 archive_cmds_CXX='tpldir=Template.dir~
22882 rm -rf $tpldir~
22883 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22884 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22885 archive_expsym_cmds_CXX='tpldir=Template.dir~
22886 rm -rf $tpldir~
22887 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22888 $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'
22889 ;;
22890 *) # Version 6 and above use weak symbols
22891 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22892 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'
22893 ;;
22894 esac
22895
22896 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22898 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'
22899 ;;
22900 cxx*)
22901 # Compaq C++
22902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22903 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'
22904
22905 runpath_var=LD_RUN_PATH
22906 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22907 hardcode_libdir_separator_CXX=:
22908
22909 # Commands to make compiler produce verbose output that lists
22910 # what "hidden" libraries, object files and flags are used when
22911 # linking a shared library.
22912 #
22913 # There doesn't appear to be a way to prevent this compiler from
22914 # explicitly linking system object files so we need to strip them
22915 # from the output so that they don't get included in the library
22916 # dependencies.
22917 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'
22918 ;;
22919 xl* | mpixl* | bgxl*)
22920 # IBM XL 8.0 on PPC, with GNU ld
22921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22923 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22924 if test "x$supports_anon_versioning" = xyes; then
22925 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22927 echo "local: *; };" >> $output_objdir/$libname.ver~
22928 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22929 fi
22930 ;;
22931 *)
22932 case `$CC -V 2>&1 | sed 5q` in
22933 *Sun\ C*)
22934 # Sun C++ 5.9
22935 no_undefined_flag_CXX=' -zdefs'
22936 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22937 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'
22938 hardcode_libdir_flag_spec_CXX='-R$libdir'
22939 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'
22940 compiler_needs_object_CXX=yes
22941
22942 # Not sure whether something based on
22943 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22944 # would be better.
22945 output_verbose_link_cmd='func_echo_all'
22946
22947 # Archives containing C++ object files must be created using
22948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22949 # necessary to make sure instantiated templates are included
22950 # in the archive.
22951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22952 ;;
22953 esac
22954 ;;
22955 esac
22956 ;;
22957
22958 lynxos*)
22959 # FIXME: insert proper C++ library support
22960 ld_shlibs_CXX=no
22961 ;;
22962
22963 m88k*)
22964 # FIXME: insert proper C++ library support
22965 ld_shlibs_CXX=no
22966 ;;
22967
22968 mvs*)
22969 case $cc_basename in
22970 cxx*)
22971 # FIXME: insert proper C++ library support
22972 ld_shlibs_CXX=no
22973 ;;
22974 *)
22975 # FIXME: insert proper C++ library support
22976 ld_shlibs_CXX=no
22977 ;;
22978 esac
22979 ;;
22980
22981 netbsd*)
22982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22983 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22984 wlarc=
22985 hardcode_libdir_flag_spec_CXX='-R$libdir'
22986 hardcode_direct_CXX=yes
22987 hardcode_shlibpath_var_CXX=no
22988 fi
22989 # Workaround some broken pre-1.5 toolchains
22990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22991 ;;
22992
22993 *nto* | *qnx*)
22994 ld_shlibs_CXX=yes
22995 ;;
22996
22997 openbsd2*)
22998 # C++ shared libraries are fairly broken
22999 ld_shlibs_CXX=no
23000 ;;
23001
23002 openbsd*)
23003 if test -f /usr/libexec/ld.so; then
23004 hardcode_direct_CXX=yes
23005 hardcode_shlibpath_var_CXX=no
23006 hardcode_direct_absolute_CXX=yes
23007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23010 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23011 export_dynamic_flag_spec_CXX='${wl}-E'
23012 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23013 fi
23014 output_verbose_link_cmd=func_echo_all
23015 else
23016 ld_shlibs_CXX=no
23017 fi
23018 ;;
23019
23020 osf3* | osf4* | osf5*)
23021 case $cc_basename in
23022 KCC*)
23023 # Kuck and Associates, Inc. (KAI) C++ Compiler
23024
23025 # KCC will only create a shared library if the output file
23026 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23027 # to its proper name (with version) after linking.
23028 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'
23029
23030 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23031 hardcode_libdir_separator_CXX=:
23032
23033 # Archives containing C++ object files must be created using
23034 # the KAI C++ compiler.
23035 case $host in
23036 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23037 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23038 esac
23039 ;;
23040 RCC*)
23041 # Rational C++ 2.4.1
23042 # FIXME: insert proper C++ library support
23043 ld_shlibs_CXX=no
23044 ;;
23045 cxx*)
23046 case $host in
23047 osf3*)
23048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23049 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'
23050 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23051 ;;
23052 *)
23053 allow_undefined_flag_CXX=' -expect_unresolved \*'
23054 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'
23055 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23056 echo "-hidden">> $lib.exp~
23057 $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~
23058 $RM $lib.exp'
23059 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23060 ;;
23061 esac
23062
23063 hardcode_libdir_separator_CXX=:
23064
23065 # Commands to make compiler produce verbose output that lists
23066 # what "hidden" libraries, object files and flags are used when
23067 # linking a shared library.
23068 #
23069 # There doesn't appear to be a way to prevent this compiler from
23070 # explicitly linking system object files so we need to strip them
23071 # from the output so that they don't get included in the library
23072 # dependencies.
23073 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"'
23074 ;;
23075 *)
23076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23078 case $host in
23079 osf3*)
23080 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'
23081 ;;
23082 *)
23083 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'
23084 ;;
23085 esac
23086
23087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23088 hardcode_libdir_separator_CXX=:
23089
23090 # Commands to make compiler produce verbose output that lists
23091 # what "hidden" libraries, object files and flags are used when
23092 # linking a shared library.
23093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23094
23095 else
23096 # FIXME: insert proper C++ library support
23097 ld_shlibs_CXX=no
23098 fi
23099 ;;
23100 esac
23101 ;;
23102
23103 psos*)
23104 # FIXME: insert proper C++ library support
23105 ld_shlibs_CXX=no
23106 ;;
23107
23108 sunos4*)
23109 case $cc_basename in
23110 CC*)
23111 # Sun C++ 4.x
23112 # FIXME: insert proper C++ library support
23113 ld_shlibs_CXX=no
23114 ;;
23115 lcc*)
23116 # Lucid
23117 # FIXME: insert proper C++ library support
23118 ld_shlibs_CXX=no
23119 ;;
23120 *)
23121 # FIXME: insert proper C++ library support
23122 ld_shlibs_CXX=no
23123 ;;
23124 esac
23125 ;;
23126
23127 solaris*)
23128 case $cc_basename in
23129 CC*)
23130 # Sun C++ 4.2, 5.x and Centerline C++
23131 archive_cmds_need_lc_CXX=yes
23132 no_undefined_flag_CXX=' -zdefs'
23133 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23135 $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'
23136
23137 hardcode_libdir_flag_spec_CXX='-R$libdir'
23138 hardcode_shlibpath_var_CXX=no
23139 case $host_os in
23140 solaris2.[0-5] | solaris2.[0-5].*) ;;
23141 *)
23142 # The compiler driver will combine and reorder linker options,
23143 # but understands `-z linker_flag'.
23144 # Supported since Solaris 2.6 (maybe 2.5.1?)
23145 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23146 ;;
23147 esac
23148 link_all_deplibs_CXX=yes
23149
23150 output_verbose_link_cmd='func_echo_all'
23151
23152 # Archives containing C++ object files must be created using
23153 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23154 # necessary to make sure instantiated templates are included
23155 # in the archive.
23156 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23157 ;;
23158 gcx*)
23159 # Green Hills C++ Compiler
23160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23161
23162 # The C++ compiler must be used to create the archive.
23163 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23164 ;;
23165 *)
23166 # GNU C++ compiler with Solaris linker
23167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23168 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23169 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23170 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23171 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23172 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23173
23174 # Commands to make compiler produce verbose output that lists
23175 # what "hidden" libraries, object files and flags are used when
23176 # linking a shared library.
23177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23178 else
23179 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23180 # platform.
23181 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23182 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23183 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23184
23185 # Commands to make compiler produce verbose output that lists
23186 # what "hidden" libraries, object files and flags are used when
23187 # linking a shared library.
23188 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23189 fi
23190
23191 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23192 case $host_os in
23193 solaris2.[0-5] | solaris2.[0-5].*) ;;
23194 *)
23195 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23196 ;;
23197 esac
23198 fi
23199 ;;
23200 esac
23201 ;;
23202
23203 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23204 no_undefined_flag_CXX='${wl}-z,text'
23205 archive_cmds_need_lc_CXX=no
23206 hardcode_shlibpath_var_CXX=no
23207 runpath_var='LD_RUN_PATH'
23208
23209 case $cc_basename in
23210 CC*)
23211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23213 ;;
23214 *)
23215 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23216 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23217 ;;
23218 esac
23219 ;;
23220
23221 sysv5* | sco3.2v5* | sco5v6*)
23222 # Note: We can NOT use -z defs as we might desire, because we do not
23223 # link with -lc, and that would cause any symbols used from libc to
23224 # always be unresolved, which means just about no library would
23225 # ever link correctly. If we're not using GNU ld we use -z text
23226 # though, which does catch some bad symbols but isn't as heavy-handed
23227 # as -z defs.
23228 no_undefined_flag_CXX='${wl}-z,text'
23229 allow_undefined_flag_CXX='${wl}-z,nodefs'
23230 archive_cmds_need_lc_CXX=no
23231 hardcode_shlibpath_var_CXX=no
23232 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23233 hardcode_libdir_separator_CXX=':'
23234 link_all_deplibs_CXX=yes
23235 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23236 runpath_var='LD_RUN_PATH'
23237
23238 case $cc_basename in
23239 CC*)
23240 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23241 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23242 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23243 '"$old_archive_cmds_CXX"
23244 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23245 '"$reload_cmds_CXX"
23246 ;;
23247 *)
23248 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23249 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23250 ;;
23251 esac
23252 ;;
23253
23254 tandem*)
23255 case $cc_basename in
23256 NCC*)
23257 # NonStop-UX NCC 3.20
23258 # FIXME: insert proper C++ library support
23259 ld_shlibs_CXX=no
23260 ;;
23261 *)
23262 # FIXME: insert proper C++ library support
23263 ld_shlibs_CXX=no
23264 ;;
23265 esac
23266 ;;
23267
23268 vxworks*)
23269 # For VxWorks ports, we assume the use of a GNU linker with
23270 # standard elf conventions.
23271 ld_shlibs_CXX=yes
23272 ;;
23273
23274 *)
23275 # FIXME: insert proper C++ library support
23276 ld_shlibs_CXX=no
23277 ;;
23278 esac
23279
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23281 $as_echo "$ld_shlibs_CXX" >&6; }
23282 test "$ld_shlibs_CXX" = no && can_build_shared=no
23283
23284 GCC_CXX="$GXX"
23285 LD_CXX="$LD"
23286
23287 ## CAVEAT EMPTOR:
23288 ## There is no encapsulation within the following macros, do not change
23289 ## the running order or otherwise move them around unless you know exactly
23290 ## what you are doing...
23291 # Dependencies to place before and after the object being linked:
23292 predep_objects_CXX=
23293 postdep_objects_CXX=
23294 predeps_CXX=
23295 postdeps_CXX=
23296 compiler_lib_search_path_CXX=
23297
23298 cat > conftest.$ac_ext <<_LT_EOF
23299 class Foo
23300 {
23301 public:
23302 Foo (void) { a = 0; }
23303 private:
23304 int a;
23305 };
23306 _LT_EOF
23307
23308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23309 (eval $ac_compile) 2>&5
23310 ac_status=$?
23311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23312 test $ac_status = 0; }; then
23313 # Parse the compiler output and extract the necessary
23314 # objects, libraries and library flags.
23315
23316 # Sentinel used to keep track of whether or not we are before
23317 # the conftest object file.
23318 pre_test_object_deps_done=no
23319
23320 for p in `eval "$output_verbose_link_cmd"`; do
23321 case $p in
23322
23323 -L* | -R* | -l*)
23324 # Some compilers place space between "-{L,R}" and the path.
23325 # Remove the space.
23326 if test $p = "-L" ||
23327 test $p = "-R"; then
23328 prev=$p
23329 continue
23330 else
23331 prev=
23332 fi
23333
23334 if test "$pre_test_object_deps_done" = no; then
23335 case $p in
23336 -L* | -R*)
23337 # Internal compiler library paths should come after those
23338 # provided the user. The postdeps already come after the
23339 # user supplied libs so there is no need to process them.
23340 if test -z "$compiler_lib_search_path_CXX"; then
23341 compiler_lib_search_path_CXX="${prev}${p}"
23342 else
23343 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23344 fi
23345 ;;
23346 # The "-l" case would never come before the object being
23347 # linked, so don't bother handling this case.
23348 esac
23349 else
23350 if test -z "$postdeps_CXX"; then
23351 postdeps_CXX="${prev}${p}"
23352 else
23353 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23354 fi
23355 fi
23356 ;;
23357
23358 *.$objext)
23359 # This assumes that the test object file only shows up
23360 # once in the compiler output.
23361 if test "$p" = "conftest.$objext"; then
23362 pre_test_object_deps_done=yes
23363 continue
23364 fi
23365
23366 if test "$pre_test_object_deps_done" = no; then
23367 if test -z "$predep_objects_CXX"; then
23368 predep_objects_CXX="$p"
23369 else
23370 predep_objects_CXX="$predep_objects_CXX $p"
23371 fi
23372 else
23373 if test -z "$postdep_objects_CXX"; then
23374 postdep_objects_CXX="$p"
23375 else
23376 postdep_objects_CXX="$postdep_objects_CXX $p"
23377 fi
23378 fi
23379 ;;
23380
23381 *) ;; # Ignore the rest.
23382
23383 esac
23384 done
23385
23386 # Clean up.
23387 rm -f a.out a.exe
23388 else
23389 echo "libtool.m4: error: problem compiling CXX test program"
23390 fi
23391
23392 $RM -f confest.$objext
23393
23394 # PORTME: override above test on systems where it is broken
23395 case $host_os in
23396 interix[3-9]*)
23397 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23398 # hack all around it, let's just trust "g++" to DTRT.
23399 predep_objects_CXX=
23400 postdep_objects_CXX=
23401 postdeps_CXX=
23402 ;;
23403
23404 linux*)
23405 case `$CC -V 2>&1 | sed 5q` in
23406 *Sun\ C*)
23407 # Sun C++ 5.9
23408
23409 # The more standards-conforming stlport4 library is
23410 # incompatible with the Cstd library. Avoid specifying
23411 # it if it's in CXXFLAGS. Ignore libCrun as
23412 # -library=stlport4 depends on it.
23413 case " $CXX $CXXFLAGS " in
23414 *" -library=stlport4 "*)
23415 solaris_use_stlport4=yes
23416 ;;
23417 esac
23418
23419 if test "$solaris_use_stlport4" != yes; then
23420 postdeps_CXX='-library=Cstd -library=Crun'
23421 fi
23422 ;;
23423 esac
23424 ;;
23425
23426 solaris*)
23427 case $cc_basename in
23428 CC*)
23429 # The more standards-conforming stlport4 library is
23430 # incompatible with the Cstd library. Avoid specifying
23431 # it if it's in CXXFLAGS. Ignore libCrun as
23432 # -library=stlport4 depends on it.
23433 case " $CXX $CXXFLAGS " in
23434 *" -library=stlport4 "*)
23435 solaris_use_stlport4=yes
23436 ;;
23437 esac
23438
23439 # Adding this requires a known-good setup of shared libraries for
23440 # Sun compiler versions before 5.6, else PIC objects from an old
23441 # archive will be linked into the output, leading to subtle bugs.
23442 if test "$solaris_use_stlport4" != yes; then
23443 postdeps_CXX='-library=Cstd -library=Crun'
23444 fi
23445 ;;
23446 esac
23447 ;;
23448 esac
23449
23450
23451 case " $postdeps_CXX " in
23452 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23453 esac
23454 compiler_lib_search_dirs_CXX=
23455 if test -n "${compiler_lib_search_path_CXX}"; then
23456 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23457 fi
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489 lt_prog_compiler_wl_CXX=
23490 lt_prog_compiler_pic_CXX=
23491 lt_prog_compiler_static_CXX=
23492
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23495
23496 # C++ specific cases for pic, static, wl, etc.
23497 if test "$GXX" = yes; then
23498 lt_prog_compiler_wl_CXX='-Wl,'
23499 lt_prog_compiler_static_CXX='-static'
23500
23501 case $host_os in
23502 aix*)
23503 # All AIX code is PIC.
23504 if test "$host_cpu" = ia64; then
23505 # AIX 5 now supports IA64 processor
23506 lt_prog_compiler_static_CXX='-Bstatic'
23507 fi
23508 lt_prog_compiler_pic_CXX='-fPIC'
23509 ;;
23510
23511 amigaos*)
23512 case $host_cpu in
23513 powerpc)
23514 # see comment about AmigaOS4 .so support
23515 lt_prog_compiler_pic_CXX='-fPIC'
23516 ;;
23517 m68k)
23518 # FIXME: we need at least 68020 code to build shared libraries, but
23519 # adding the `-m68020' flag to GCC prevents building anything better,
23520 # like `-m68040'.
23521 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23522 ;;
23523 esac
23524 ;;
23525
23526 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23527 # PIC is the default for these OSes.
23528 ;;
23529 mingw* | cygwin* | os2* | pw32* | cegcc*)
23530 # This hack is so that the source file can tell whether it is being
23531 # built for inclusion in a dll (and should export symbols for example).
23532 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23533 # (--disable-auto-import) libraries
23534 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23535 ;;
23536 darwin* | rhapsody*)
23537 # PIC is the default on this platform
23538 # Common symbols not allowed in MH_DYLIB files
23539 lt_prog_compiler_pic_CXX='-fno-common'
23540 ;;
23541 *djgpp*)
23542 # DJGPP does not support shared libraries at all
23543 lt_prog_compiler_pic_CXX=
23544 ;;
23545 haiku*)
23546 # PIC is the default for Haiku.
23547 # The "-static" flag exists, but is broken.
23548 lt_prog_compiler_static_CXX=
23549 ;;
23550 interix[3-9]*)
23551 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23552 # Instead, we relocate shared libraries at runtime.
23553 ;;
23554 sysv4*MP*)
23555 if test -d /usr/nec; then
23556 lt_prog_compiler_pic_CXX=-Kconform_pic
23557 fi
23558 ;;
23559 hpux*)
23560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23562 # sets the default TLS model and affects inlining.
23563 case $host_cpu in
23564 hppa*64*)
23565 ;;
23566 *)
23567 lt_prog_compiler_pic_CXX='-fPIC'
23568 ;;
23569 esac
23570 ;;
23571 *qnx* | *nto*)
23572 # QNX uses GNU C++, but need to define -shared option too, otherwise
23573 # it will coredump.
23574 lt_prog_compiler_pic_CXX='-fPIC -shared'
23575 ;;
23576 *)
23577 lt_prog_compiler_pic_CXX='-fPIC'
23578 ;;
23579 esac
23580 else
23581 case $host_os in
23582 aix[4-9]*)
23583 # All AIX code is PIC.
23584 if test "$host_cpu" = ia64; then
23585 # AIX 5 now supports IA64 processor
23586 lt_prog_compiler_static_CXX='-Bstatic'
23587 else
23588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23589 fi
23590 ;;
23591 chorus*)
23592 case $cc_basename in
23593 cxch68*)
23594 # Green Hills C++ Compiler
23595 # _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"
23596 ;;
23597 esac
23598 ;;
23599 dgux*)
23600 case $cc_basename in
23601 ec++*)
23602 lt_prog_compiler_pic_CXX='-KPIC'
23603 ;;
23604 ghcx*)
23605 # Green Hills C++ Compiler
23606 lt_prog_compiler_pic_CXX='-pic'
23607 ;;
23608 *)
23609 ;;
23610 esac
23611 ;;
23612 freebsd* | dragonfly*)
23613 # FreeBSD uses GNU C++
23614 ;;
23615 hpux9* | hpux10* | hpux11*)
23616 case $cc_basename in
23617 CC*)
23618 lt_prog_compiler_wl_CXX='-Wl,'
23619 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23620 if test "$host_cpu" != ia64; then
23621 lt_prog_compiler_pic_CXX='+Z'
23622 fi
23623 ;;
23624 aCC*)
23625 lt_prog_compiler_wl_CXX='-Wl,'
23626 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23627 case $host_cpu in
23628 hppa*64*|ia64*)
23629 # +Z the default
23630 ;;
23631 *)
23632 lt_prog_compiler_pic_CXX='+Z'
23633 ;;
23634 esac
23635 ;;
23636 *)
23637 ;;
23638 esac
23639 ;;
23640 interix*)
23641 # This is c89, which is MS Visual C++ (no shared libs)
23642 # Anyone wants to do a port?
23643 ;;
23644 irix5* | irix6* | nonstopux*)
23645 case $cc_basename in
23646 CC*)
23647 lt_prog_compiler_wl_CXX='-Wl,'
23648 lt_prog_compiler_static_CXX='-non_shared'
23649 # CC pic flag -KPIC is the default.
23650 ;;
23651 *)
23652 ;;
23653 esac
23654 ;;
23655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23656 case $cc_basename in
23657 KCC*)
23658 # KAI C++ Compiler
23659 lt_prog_compiler_wl_CXX='--backend -Wl,'
23660 lt_prog_compiler_pic_CXX='-fPIC'
23661 ;;
23662 ecpc* )
23663 # old Intel C++ for x86_64 which still supported -KPIC.
23664 lt_prog_compiler_wl_CXX='-Wl,'
23665 lt_prog_compiler_pic_CXX='-KPIC'
23666 lt_prog_compiler_static_CXX='-static'
23667 ;;
23668 icpc* )
23669 # Intel C++, used to be incompatible with GCC.
23670 # ICC 10 doesn't accept -KPIC any more.
23671 lt_prog_compiler_wl_CXX='-Wl,'
23672 lt_prog_compiler_pic_CXX='-fPIC'
23673 lt_prog_compiler_static_CXX='-static'
23674 ;;
23675 pgCC* | pgcpp*)
23676 # Portland Group C++ compiler
23677 lt_prog_compiler_wl_CXX='-Wl,'
23678 lt_prog_compiler_pic_CXX='-fpic'
23679 lt_prog_compiler_static_CXX='-Bstatic'
23680 ;;
23681 cxx*)
23682 # Compaq C++
23683 # Make sure the PIC flag is empty. It appears that all Alpha
23684 # Linux and Compaq Tru64 Unix objects are PIC.
23685 lt_prog_compiler_pic_CXX=
23686 lt_prog_compiler_static_CXX='-non_shared'
23687 ;;
23688 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23689 # IBM XL 8.0, 9.0 on PPC and BlueGene
23690 lt_prog_compiler_wl_CXX='-Wl,'
23691 lt_prog_compiler_pic_CXX='-qpic'
23692 lt_prog_compiler_static_CXX='-qstaticlink'
23693 ;;
23694 *)
23695 case `$CC -V 2>&1 | sed 5q` in
23696 *Sun\ C*)
23697 # Sun C++ 5.9
23698 lt_prog_compiler_pic_CXX='-KPIC'
23699 lt_prog_compiler_static_CXX='-Bstatic'
23700 lt_prog_compiler_wl_CXX='-Qoption ld '
23701 ;;
23702 esac
23703 ;;
23704 esac
23705 ;;
23706 lynxos*)
23707 ;;
23708 m88k*)
23709 ;;
23710 mvs*)
23711 case $cc_basename in
23712 cxx*)
23713 lt_prog_compiler_pic_CXX='-W c,exportall'
23714 ;;
23715 *)
23716 ;;
23717 esac
23718 ;;
23719 netbsd*)
23720 ;;
23721 *qnx* | *nto*)
23722 # QNX uses GNU C++, but need to define -shared option too, otherwise
23723 # it will coredump.
23724 lt_prog_compiler_pic_CXX='-fPIC -shared'
23725 ;;
23726 osf3* | osf4* | osf5*)
23727 case $cc_basename in
23728 KCC*)
23729 lt_prog_compiler_wl_CXX='--backend -Wl,'
23730 ;;
23731 RCC*)
23732 # Rational C++ 2.4.1
23733 lt_prog_compiler_pic_CXX='-pic'
23734 ;;
23735 cxx*)
23736 # Digital/Compaq C++
23737 lt_prog_compiler_wl_CXX='-Wl,'
23738 # Make sure the PIC flag is empty. It appears that all Alpha
23739 # Linux and Compaq Tru64 Unix objects are PIC.
23740 lt_prog_compiler_pic_CXX=
23741 lt_prog_compiler_static_CXX='-non_shared'
23742 ;;
23743 *)
23744 ;;
23745 esac
23746 ;;
23747 psos*)
23748 ;;
23749 solaris*)
23750 case $cc_basename in
23751 CC*)
23752 # Sun C++ 4.2, 5.x and Centerline C++
23753 lt_prog_compiler_pic_CXX='-KPIC'
23754 lt_prog_compiler_static_CXX='-Bstatic'
23755 lt_prog_compiler_wl_CXX='-Qoption ld '
23756 ;;
23757 gcx*)
23758 # Green Hills C++ Compiler
23759 lt_prog_compiler_pic_CXX='-PIC'
23760 ;;
23761 *)
23762 ;;
23763 esac
23764 ;;
23765 sunos4*)
23766 case $cc_basename in
23767 CC*)
23768 # Sun C++ 4.x
23769 lt_prog_compiler_pic_CXX='-pic'
23770 lt_prog_compiler_static_CXX='-Bstatic'
23771 ;;
23772 lcc*)
23773 # Lucid
23774 lt_prog_compiler_pic_CXX='-pic'
23775 ;;
23776 *)
23777 ;;
23778 esac
23779 ;;
23780 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23781 case $cc_basename in
23782 CC*)
23783 lt_prog_compiler_wl_CXX='-Wl,'
23784 lt_prog_compiler_pic_CXX='-KPIC'
23785 lt_prog_compiler_static_CXX='-Bstatic'
23786 ;;
23787 esac
23788 ;;
23789 tandem*)
23790 case $cc_basename in
23791 NCC*)
23792 # NonStop-UX NCC 3.20
23793 lt_prog_compiler_pic_CXX='-KPIC'
23794 ;;
23795 *)
23796 ;;
23797 esac
23798 ;;
23799 vxworks*)
23800 ;;
23801 *)
23802 lt_prog_compiler_can_build_shared_CXX=no
23803 ;;
23804 esac
23805 fi
23806
23807 case $host_os in
23808 # For platforms which do not support PIC, -DPIC is meaningless:
23809 *djgpp*)
23810 lt_prog_compiler_pic_CXX=
23811 ;;
23812 *)
23813 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23814 ;;
23815 esac
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23817 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23818
23819
23820
23821 #
23822 # Check to make sure the PIC flag actually works.
23823 #
23824 if test -n "$lt_prog_compiler_pic_CXX"; then
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23826 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23827 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23828 $as_echo_n "(cached) " >&6
23829 else
23830 lt_cv_prog_compiler_pic_works_CXX=no
23831 ac_outfile=conftest.$ac_objext
23832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23833 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23834 # Insert the option either (1) after the last *FLAGS variable, or
23835 # (2) before a word containing "conftest.", or (3) at the end.
23836 # Note that $ac_compile itself does not contain backslashes and begins
23837 # with a dollar sign (not a hyphen), so the echo should work correctly.
23838 # The option is referenced via a variable to avoid confusing sed.
23839 lt_compile=`echo "$ac_compile" | $SED \
23840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23842 -e 's:$: $lt_compiler_flag:'`
23843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23844 (eval "$lt_compile" 2>conftest.err)
23845 ac_status=$?
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 if (exit $ac_status) && test -s "$ac_outfile"; then
23849 # The compiler can only warn and ignore the option if not recognized
23850 # So say no if there are warnings other than the usual output.
23851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23854 lt_cv_prog_compiler_pic_works_CXX=yes
23855 fi
23856 fi
23857 $RM conftest*
23858
23859 fi
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23861 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23862
23863 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23864 case $lt_prog_compiler_pic_CXX in
23865 "" | " "*) ;;
23866 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23867 esac
23868 else
23869 lt_prog_compiler_pic_CXX=
23870 lt_prog_compiler_can_build_shared_CXX=no
23871 fi
23872
23873 fi
23874
23875
23876
23877 #
23878 # Check to make sure the static flag actually works.
23879 #
23880 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23883 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23884 $as_echo_n "(cached) " >&6
23885 else
23886 lt_cv_prog_compiler_static_works_CXX=no
23887 save_LDFLAGS="$LDFLAGS"
23888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23891 # The linker can only warn and ignore the option if not recognized
23892 # So say no if there are warnings
23893 if test -s conftest.err; then
23894 # Append any errors to the config.log.
23895 cat conftest.err 1>&5
23896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23898 if diff conftest.exp conftest.er2 >/dev/null; then
23899 lt_cv_prog_compiler_static_works_CXX=yes
23900 fi
23901 else
23902 lt_cv_prog_compiler_static_works_CXX=yes
23903 fi
23904 fi
23905 $RM -r conftest*
23906 LDFLAGS="$save_LDFLAGS"
23907
23908 fi
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23910 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23911
23912 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23913 :
23914 else
23915 lt_prog_compiler_static_CXX=
23916 fi
23917
23918
23919
23920
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23923 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23924 $as_echo_n "(cached) " >&6
23925 else
23926 lt_cv_prog_compiler_c_o_CXX=no
23927 $RM -r conftest 2>/dev/null
23928 mkdir conftest
23929 cd conftest
23930 mkdir out
23931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23932
23933 lt_compiler_flag="-o out/conftest2.$ac_objext"
23934 # Insert the option either (1) after the last *FLAGS variable, or
23935 # (2) before a word containing "conftest.", or (3) at the end.
23936 # Note that $ac_compile itself does not contain backslashes and begins
23937 # with a dollar sign (not a hyphen), so the echo should work correctly.
23938 lt_compile=`echo "$ac_compile" | $SED \
23939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23941 -e 's:$: $lt_compiler_flag:'`
23942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23943 (eval "$lt_compile" 2>out/conftest.err)
23944 ac_status=$?
23945 cat out/conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23948 then
23949 # The compiler can only warn and ignore the option if not recognized
23950 # So say no if there are warnings
23951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23954 lt_cv_prog_compiler_c_o_CXX=yes
23955 fi
23956 fi
23957 chmod u+w . 2>&5
23958 $RM conftest*
23959 # SGI C++ compiler will create directory out/ii_files/ for
23960 # template instantiation
23961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23962 $RM out/* && rmdir out
23963 cd ..
23964 $RM -r conftest
23965 $RM conftest*
23966
23967 fi
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23969 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23970
23971
23972
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23975 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23976 $as_echo_n "(cached) " >&6
23977 else
23978 lt_cv_prog_compiler_c_o_CXX=no
23979 $RM -r conftest 2>/dev/null
23980 mkdir conftest
23981 cd conftest
23982 mkdir out
23983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23984
23985 lt_compiler_flag="-o out/conftest2.$ac_objext"
23986 # Insert the option either (1) after the last *FLAGS variable, or
23987 # (2) before a word containing "conftest.", or (3) at the end.
23988 # Note that $ac_compile itself does not contain backslashes and begins
23989 # with a dollar sign (not a hyphen), so the echo should work correctly.
23990 lt_compile=`echo "$ac_compile" | $SED \
23991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23993 -e 's:$: $lt_compiler_flag:'`
23994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23995 (eval "$lt_compile" 2>out/conftest.err)
23996 ac_status=$?
23997 cat out/conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24000 then
24001 # The compiler can only warn and ignore the option if not recognized
24002 # So say no if there are warnings
24003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24006 lt_cv_prog_compiler_c_o_CXX=yes
24007 fi
24008 fi
24009 chmod u+w . 2>&5
24010 $RM conftest*
24011 # SGI C++ compiler will create directory out/ii_files/ for
24012 # template instantiation
24013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24014 $RM out/* && rmdir out
24015 cd ..
24016 $RM -r conftest
24017 $RM conftest*
24018
24019 fi
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24021 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24022
24023
24024
24025
24026 hard_links="nottested"
24027 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24028 # do not overwrite the value of need_locks provided by the user
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24030 $as_echo_n "checking if we can lock with hard links... " >&6; }
24031 hard_links=yes
24032 $RM conftest*
24033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24034 touch conftest.a
24035 ln conftest.a conftest.b 2>&5 || hard_links=no
24036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24038 $as_echo "$hard_links" >&6; }
24039 if test "$hard_links" = no; then
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24041 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24042 need_locks=warn
24043 fi
24044 else
24045 need_locks=no
24046 fi
24047
24048
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24052
24053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24054 case $host_os in
24055 aix[4-9]*)
24056 # If we're using GNU nm, then we don't want the "-C" option.
24057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24058 # Also, AIX nm treats weak defined symbols like other global defined
24059 # symbols, whereas GNU nm marks them as "W".
24060 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24061 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'
24062 else
24063 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'
24064 fi
24065 ;;
24066 pw32*)
24067 export_symbols_cmds_CXX="$ltdll_cmds"
24068 ;;
24069 cygwin* | mingw* | cegcc*)
24070 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'
24071 ;;
24072 *)
24073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24074 ;;
24075 esac
24076 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24077
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24079 $as_echo "$ld_shlibs_CXX" >&6; }
24080 test "$ld_shlibs_CXX" = no && can_build_shared=no
24081
24082 with_gnu_ld_CXX=$with_gnu_ld
24083
24084
24085
24086
24087
24088
24089 #
24090 # Do we need to explicitly link libc?
24091 #
24092 case "x$archive_cmds_need_lc_CXX" in
24093 x|xyes)
24094 # Assume -lc should be added
24095 archive_cmds_need_lc_CXX=yes
24096
24097 if test "$enable_shared" = yes && test "$GCC" = yes; then
24098 case $archive_cmds_CXX in
24099 *'~'*)
24100 # FIXME: we may have to deal with multi-command sequences.
24101 ;;
24102 '$CC '*)
24103 # Test whether the compiler implicitly links with -lc since on some
24104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24105 # to ld, don't add -lc before -lgcc.
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24108 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24109 $as_echo_n "(cached) " >&6
24110 else
24111 $RM conftest*
24112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24113
24114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24115 (eval $ac_compile) 2>&5
24116 ac_status=$?
24117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118 test $ac_status = 0; } 2>conftest.err; then
24119 soname=conftest
24120 lib=conftest
24121 libobjs=conftest.$ac_objext
24122 deplibs=
24123 wl=$lt_prog_compiler_wl_CXX
24124 pic_flag=$lt_prog_compiler_pic_CXX
24125 compiler_flags=-v
24126 linker_flags=-v
24127 verstring=
24128 output_objdir=.
24129 libname=conftest
24130 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24131 allow_undefined_flag_CXX=
24132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24133 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24134 ac_status=$?
24135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136 test $ac_status = 0; }
24137 then
24138 lt_cv_archive_cmds_need_lc_CXX=no
24139 else
24140 lt_cv_archive_cmds_need_lc_CXX=yes
24141 fi
24142 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24143 else
24144 cat conftest.err 1>&5
24145 fi
24146 $RM conftest*
24147
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24150 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24151 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24152 ;;
24153 esac
24154 fi
24155 ;;
24156 esac
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24222 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24223
24224 library_names_spec=
24225 libname_spec='lib$name'
24226 soname_spec=
24227 shrext_cmds=".so"
24228 postinstall_cmds=
24229 postuninstall_cmds=
24230 finish_cmds=
24231 finish_eval=
24232 shlibpath_var=
24233 shlibpath_overrides_runpath=unknown
24234 version_type=none
24235 dynamic_linker="$host_os ld.so"
24236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24237 need_lib_prefix=unknown
24238 hardcode_into_libs=no
24239
24240 # when you set need_version to no, make sure it does not cause -set_version
24241 # flags to be left without arguments
24242 need_version=unknown
24243
24244 case $host_os in
24245 aix3*)
24246 version_type=linux
24247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24248 shlibpath_var=LIBPATH
24249
24250 # AIX 3 has no versioning support, so we append a major version to the name.
24251 soname_spec='${libname}${release}${shared_ext}$major'
24252 ;;
24253
24254 aix[4-9]*)
24255 version_type=linux
24256 need_lib_prefix=no
24257 need_version=no
24258 hardcode_into_libs=yes
24259 if test "$host_cpu" = ia64; then
24260 # AIX 5 supports IA64
24261 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24262 shlibpath_var=LD_LIBRARY_PATH
24263 else
24264 # With GCC up to 2.95.x, collect2 would create an import file
24265 # for dependence libraries. The import file would start with
24266 # the line `#! .'. This would cause the generated library to
24267 # depend on `.', always an invalid library. This was fixed in
24268 # development snapshots of GCC prior to 3.0.
24269 case $host_os in
24270 aix4 | aix4.[01] | aix4.[01].*)
24271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24272 echo ' yes '
24273 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24274 :
24275 else
24276 can_build_shared=no
24277 fi
24278 ;;
24279 esac
24280 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24281 # soname into executable. Probably we can add versioning support to
24282 # collect2, so additional links can be useful in future.
24283 if test "$aix_use_runtimelinking" = yes; then
24284 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24285 # instead of lib<name>.a to let people know that these are not
24286 # typical AIX shared libraries.
24287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24288 else
24289 # We preserve .a as extension for shared libraries through AIX4.2
24290 # and later when we are not doing run time linking.
24291 library_names_spec='${libname}${release}.a $libname.a'
24292 soname_spec='${libname}${release}${shared_ext}$major'
24293 fi
24294 shlibpath_var=LIBPATH
24295 fi
24296 ;;
24297
24298 amigaos*)
24299 case $host_cpu in
24300 powerpc)
24301 # Since July 2007 AmigaOS4 officially supports .so libraries.
24302 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24304 ;;
24305 m68k)
24306 library_names_spec='$libname.ixlibrary $libname.a'
24307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24308 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'
24309 ;;
24310 esac
24311 ;;
24312
24313 beos*)
24314 library_names_spec='${libname}${shared_ext}'
24315 dynamic_linker="$host_os ld.so"
24316 shlibpath_var=LIBRARY_PATH
24317 ;;
24318
24319 bsdi[45]*)
24320 version_type=linux
24321 need_version=no
24322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24323 soname_spec='${libname}${release}${shared_ext}$major'
24324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24325 shlibpath_var=LD_LIBRARY_PATH
24326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24328 # the default ld.so.conf also contains /usr/contrib/lib and
24329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24330 # libtool to hard-code these into programs
24331 ;;
24332
24333 cygwin* | mingw* | pw32* | cegcc*)
24334 version_type=windows
24335 shrext_cmds=".dll"
24336 need_version=no
24337 need_lib_prefix=no
24338
24339 case $GCC,$host_os in
24340 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24341 library_names_spec='$libname.dll.a'
24342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24343 postinstall_cmds='base_file=`basename \${file}`~
24344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24345 dldir=$destdir/`dirname \$dlpath`~
24346 test -d \$dldir || mkdir -p \$dldir~
24347 $install_prog $dir/$dlname \$dldir/$dlname~
24348 chmod a+x \$dldir/$dlname~
24349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24351 fi'
24352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24353 dlpath=$dir/\$dldll~
24354 $RM \$dlpath'
24355 shlibpath_overrides_runpath=yes
24356
24357 case $host_os in
24358 cygwin*)
24359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24361
24362 ;;
24363 mingw* | cegcc*)
24364 # MinGW DLLs use traditional 'lib' prefix
24365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24366 ;;
24367 pw32*)
24368 # pw32 DLLs use 'pw' prefix rather than 'lib'
24369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24370 ;;
24371 esac
24372 ;;
24373
24374 *)
24375 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24376 ;;
24377 esac
24378 dynamic_linker='Win32 ld.exe'
24379 # FIXME: first we should search . and the directory the executable is in
24380 shlibpath_var=PATH
24381 ;;
24382
24383 darwin* | rhapsody*)
24384 dynamic_linker="$host_os dyld"
24385 version_type=darwin
24386 need_lib_prefix=no
24387 need_version=no
24388 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24389 soname_spec='${libname}${release}${major}$shared_ext'
24390 shlibpath_overrides_runpath=yes
24391 shlibpath_var=DYLD_LIBRARY_PATH
24392 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24393
24394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24395 ;;
24396
24397 dgux*)
24398 version_type=linux
24399 need_lib_prefix=no
24400 need_version=no
24401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24402 soname_spec='${libname}${release}${shared_ext}$major'
24403 shlibpath_var=LD_LIBRARY_PATH
24404 ;;
24405
24406 freebsd* | dragonfly*)
24407 # DragonFly does not have aout. When/if they implement a new
24408 # versioning mechanism, adjust this.
24409 if test -x /usr/bin/objformat; then
24410 objformat=`/usr/bin/objformat`
24411 else
24412 case $host_os in
24413 freebsd[23].*) objformat=aout ;;
24414 *) objformat=elf ;;
24415 esac
24416 fi
24417 version_type=freebsd-$objformat
24418 case $version_type in
24419 freebsd-elf*)
24420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24421 need_version=no
24422 need_lib_prefix=no
24423 ;;
24424 freebsd-*)
24425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24426 need_version=yes
24427 ;;
24428 esac
24429 shlibpath_var=LD_LIBRARY_PATH
24430 case $host_os in
24431 freebsd2.*)
24432 shlibpath_overrides_runpath=yes
24433 ;;
24434 freebsd3.[01]* | freebsdelf3.[01]*)
24435 shlibpath_overrides_runpath=yes
24436 hardcode_into_libs=yes
24437 ;;
24438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24440 shlibpath_overrides_runpath=no
24441 hardcode_into_libs=yes
24442 ;;
24443 *) # from 4.6 on, and DragonFly
24444 shlibpath_overrides_runpath=yes
24445 hardcode_into_libs=yes
24446 ;;
24447 esac
24448 ;;
24449
24450 haiku*)
24451 version_type=linux
24452 need_lib_prefix=no
24453 need_version=no
24454 dynamic_linker="$host_os runtime_loader"
24455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24456 soname_spec='${libname}${release}${shared_ext}$major'
24457 shlibpath_var=LIBRARY_PATH
24458 shlibpath_overrides_runpath=yes
24459 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24460 hardcode_into_libs=yes
24461 ;;
24462
24463 hpux9* | hpux10* | hpux11*)
24464 # Give a soname corresponding to the major version so that dld.sl refuses to
24465 # link against other versions.
24466 version_type=sunos
24467 need_lib_prefix=no
24468 need_version=no
24469 case $host_cpu in
24470 ia64*)
24471 shrext_cmds='.so'
24472 hardcode_into_libs=yes
24473 dynamic_linker="$host_os dld.so"
24474 shlibpath_var=LD_LIBRARY_PATH
24475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24477 soname_spec='${libname}${release}${shared_ext}$major'
24478 if test "X$HPUX_IA64_MODE" = X32; then
24479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24480 else
24481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24482 fi
24483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24484 ;;
24485 hppa*64*)
24486 shrext_cmds='.sl'
24487 hardcode_into_libs=yes
24488 dynamic_linker="$host_os dld.sl"
24489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492 soname_spec='${libname}${release}${shared_ext}$major'
24493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24495 ;;
24496 *)
24497 shrext_cmds='.sl'
24498 dynamic_linker="$host_os dld.sl"
24499 shlibpath_var=SHLIB_PATH
24500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24502 soname_spec='${libname}${release}${shared_ext}$major'
24503 ;;
24504 esac
24505 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24506 postinstall_cmds='chmod 555 $lib'
24507 # or fails outright, so override atomically:
24508 install_override_mode=555
24509 ;;
24510
24511 interix[3-9]*)
24512 version_type=linux
24513 need_lib_prefix=no
24514 need_version=no
24515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24516 soname_spec='${libname}${release}${shared_ext}$major'
24517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24518 shlibpath_var=LD_LIBRARY_PATH
24519 shlibpath_overrides_runpath=no
24520 hardcode_into_libs=yes
24521 ;;
24522
24523 irix5* | irix6* | nonstopux*)
24524 case $host_os in
24525 nonstopux*) version_type=nonstopux ;;
24526 *)
24527 if test "$lt_cv_prog_gnu_ld" = yes; then
24528 version_type=linux
24529 else
24530 version_type=irix
24531 fi ;;
24532 esac
24533 need_lib_prefix=no
24534 need_version=no
24535 soname_spec='${libname}${release}${shared_ext}$major'
24536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24537 case $host_os in
24538 irix5* | nonstopux*)
24539 libsuff= shlibsuff=
24540 ;;
24541 *)
24542 case $LD in # libtool.m4 will add one of these switches to LD
24543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24544 libsuff= shlibsuff= libmagic=32-bit;;
24545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24546 libsuff=32 shlibsuff=N32 libmagic=N32;;
24547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24549 *) libsuff= shlibsuff= libmagic=never-match;;
24550 esac
24551 ;;
24552 esac
24553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24554 shlibpath_overrides_runpath=no
24555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24557 hardcode_into_libs=yes
24558 ;;
24559
24560 # No shared lib support for Linux oldld, aout, or coff.
24561 linux*oldld* | linux*aout* | linux*coff*)
24562 dynamic_linker=no
24563 ;;
24564
24565 # This must be Linux ELF.
24566
24567 # uclinux* changes (here and below) have been submitted to the libtool
24568 # project, but have not yet been accepted: they are GCC-local changes
24569 # for the time being. (See
24570 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24572 version_type=linux
24573 need_lib_prefix=no
24574 need_version=no
24575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24576 soname_spec='${libname}${release}${shared_ext}$major'
24577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24578 shlibpath_var=LD_LIBRARY_PATH
24579 shlibpath_overrides_runpath=no
24580
24581 # Some binutils ld are patched to set DT_RUNPATH
24582 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24583 $as_echo_n "(cached) " >&6
24584 else
24585 lt_cv_shlibpath_overrides_runpath=no
24586 save_LDFLAGS=$LDFLAGS
24587 save_libdir=$libdir
24588 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24589 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24591 /* end confdefs.h. */
24592
24593 int
24594 main ()
24595 {
24596
24597 ;
24598 return 0;
24599 }
24600 _ACEOF
24601 if ac_fn_cxx_try_link "$LINENO"; then :
24602 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24603 lt_cv_shlibpath_overrides_runpath=yes
24604 fi
24605 fi
24606 rm -f core conftest.err conftest.$ac_objext \
24607 conftest$ac_exeext conftest.$ac_ext
24608 LDFLAGS=$save_LDFLAGS
24609 libdir=$save_libdir
24610
24611 fi
24612
24613 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24614
24615 # This implies no fast_install, which is unacceptable.
24616 # Some rework will be needed to allow for fast_install
24617 # before this can be enabled.
24618 hardcode_into_libs=yes
24619
24620 # Append ld.so.conf contents to the search path
24621 if test -f /etc/ld.so.conf; then
24622 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' ' '`
24623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24624 fi
24625
24626 # We used to test for /lib/ld.so.1 and disable shared libraries on
24627 # powerpc, because MkLinux only supported shared libraries with the
24628 # GNU dynamic linker. Since this was broken with cross compilers,
24629 # most powerpc-linux boxes support dynamic linking these days and
24630 # people can always --disable-shared, the test was removed, and we
24631 # assume the GNU/Linux dynamic linker is in use.
24632 dynamic_linker='GNU/Linux ld.so'
24633 ;;
24634
24635 netbsd*)
24636 version_type=sunos
24637 need_lib_prefix=no
24638 need_version=no
24639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24642 dynamic_linker='NetBSD (a.out) ld.so'
24643 else
24644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24645 soname_spec='${libname}${release}${shared_ext}$major'
24646 dynamic_linker='NetBSD ld.elf_so'
24647 fi
24648 shlibpath_var=LD_LIBRARY_PATH
24649 shlibpath_overrides_runpath=yes
24650 hardcode_into_libs=yes
24651 ;;
24652
24653 newsos6)
24654 version_type=linux
24655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24656 shlibpath_var=LD_LIBRARY_PATH
24657 shlibpath_overrides_runpath=yes
24658 ;;
24659
24660 *nto* | *qnx*)
24661 version_type=qnx
24662 need_lib_prefix=no
24663 need_version=no
24664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24665 soname_spec='${libname}${release}${shared_ext}$major'
24666 shlibpath_var=LD_LIBRARY_PATH
24667 shlibpath_overrides_runpath=no
24668 hardcode_into_libs=yes
24669 dynamic_linker='ldqnx.so'
24670 ;;
24671
24672 openbsd*)
24673 version_type=sunos
24674 sys_lib_dlsearch_path_spec="/usr/lib"
24675 need_lib_prefix=no
24676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24677 case $host_os in
24678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24679 *) need_version=no ;;
24680 esac
24681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24683 shlibpath_var=LD_LIBRARY_PATH
24684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24685 case $host_os in
24686 openbsd2.[89] | openbsd2.[89].*)
24687 shlibpath_overrides_runpath=no
24688 ;;
24689 *)
24690 shlibpath_overrides_runpath=yes
24691 ;;
24692 esac
24693 else
24694 shlibpath_overrides_runpath=yes
24695 fi
24696 ;;
24697
24698 os2*)
24699 libname_spec='$name'
24700 shrext_cmds=".dll"
24701 need_lib_prefix=no
24702 library_names_spec='$libname${shared_ext} $libname.a'
24703 dynamic_linker='OS/2 ld.exe'
24704 shlibpath_var=LIBPATH
24705 ;;
24706
24707 osf3* | osf4* | osf5*)
24708 version_type=osf
24709 need_lib_prefix=no
24710 need_version=no
24711 soname_spec='${libname}${release}${shared_ext}$major'
24712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24713 shlibpath_var=LD_LIBRARY_PATH
24714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24716 ;;
24717
24718 rdos*)
24719 dynamic_linker=no
24720 ;;
24721
24722 solaris*)
24723 version_type=linux
24724 need_lib_prefix=no
24725 need_version=no
24726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24727 soname_spec='${libname}${release}${shared_ext}$major'
24728 shlibpath_var=LD_LIBRARY_PATH
24729 shlibpath_overrides_runpath=yes
24730 hardcode_into_libs=yes
24731 # ldd complains unless libraries are executable
24732 postinstall_cmds='chmod +x $lib'
24733 ;;
24734
24735 sunos4*)
24736 version_type=sunos
24737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24739 shlibpath_var=LD_LIBRARY_PATH
24740 shlibpath_overrides_runpath=yes
24741 if test "$with_gnu_ld" = yes; then
24742 need_lib_prefix=no
24743 fi
24744 need_version=yes
24745 ;;
24746
24747 sysv4 | sysv4.3*)
24748 version_type=linux
24749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24750 soname_spec='${libname}${release}${shared_ext}$major'
24751 shlibpath_var=LD_LIBRARY_PATH
24752 case $host_vendor in
24753 sni)
24754 shlibpath_overrides_runpath=no
24755 need_lib_prefix=no
24756 runpath_var=LD_RUN_PATH
24757 ;;
24758 siemens)
24759 need_lib_prefix=no
24760 ;;
24761 motorola)
24762 need_lib_prefix=no
24763 need_version=no
24764 shlibpath_overrides_runpath=no
24765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24766 ;;
24767 esac
24768 ;;
24769
24770 sysv4*MP*)
24771 if test -d /usr/nec ;then
24772 version_type=linux
24773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24774 soname_spec='$libname${shared_ext}.$major'
24775 shlibpath_var=LD_LIBRARY_PATH
24776 fi
24777 ;;
24778
24779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24780 version_type=freebsd-elf
24781 need_lib_prefix=no
24782 need_version=no
24783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24784 soname_spec='${libname}${release}${shared_ext}$major'
24785 shlibpath_var=LD_LIBRARY_PATH
24786 shlibpath_overrides_runpath=yes
24787 hardcode_into_libs=yes
24788 if test "$with_gnu_ld" = yes; then
24789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24790 else
24791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24792 case $host_os in
24793 sco3.2v5*)
24794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24795 ;;
24796 esac
24797 fi
24798 sys_lib_dlsearch_path_spec='/usr/lib'
24799 ;;
24800
24801 tpf*)
24802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24803 version_type=linux
24804 need_lib_prefix=no
24805 need_version=no
24806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24807 shlibpath_var=LD_LIBRARY_PATH
24808 shlibpath_overrides_runpath=no
24809 hardcode_into_libs=yes
24810 ;;
24811
24812 uts4*)
24813 version_type=linux
24814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24815 soname_spec='${libname}${release}${shared_ext}$major'
24816 shlibpath_var=LD_LIBRARY_PATH
24817 ;;
24818
24819 # Shared libraries for VwWorks, >= 7 only at this stage
24820 # and (fpic) still incompatible with "large" code models
24821 # in a few configurations. Only for RTP mode in any case,
24822 # and upon explicit request at configure time.
24823 vxworks7*)
24824 dynamic_linker=no
24825 case ${with_multisubdir}-${enable_shared} in
24826 *large*)
24827 ;;
24828 *mrtp*-yes)
24829 version_type=linux
24830 need_lib_prefix=no
24831 need_version=no
24832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24833 soname_spec='${libname}${release}${shared_ext}$major'
24834 dynamic_linker="$host_os module_loader"
24835 ;;
24836 esac
24837 ;;
24838 *)
24839 dynamic_linker=no
24840 ;;
24841 esac
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24843 $as_echo "$dynamic_linker" >&6; }
24844 test "$dynamic_linker" = no && can_build_shared=no
24845
24846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24847 if test "$GCC" = yes; then
24848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24849 fi
24850
24851 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24852 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24853 fi
24854 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24855 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24856 fi
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24896 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24897 hardcode_action_CXX=
24898 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24899 test -n "$runpath_var_CXX" ||
24900 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24901
24902 # We can hardcode non-existent directories.
24903 if test "$hardcode_direct_CXX" != no &&
24904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24905 # have to relink, otherwise we might link with an installed library
24906 # when we should be linking with a yet-to-be-installed one
24907 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24908 test "$hardcode_minus_L_CXX" != no; then
24909 # Linking always hardcodes the temporary library directory.
24910 hardcode_action_CXX=relink
24911 else
24912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24913 hardcode_action_CXX=immediate
24914 fi
24915 else
24916 # We cannot hardcode anything, or else we can only hardcode existing
24917 # directories.
24918 hardcode_action_CXX=unsupported
24919 fi
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24921 $as_echo "$hardcode_action_CXX" >&6; }
24922
24923 if test "$hardcode_action_CXX" = relink ||
24924 test "$inherit_rpath_CXX" = yes; then
24925 # Fast installation is not supported
24926 enable_fast_install=no
24927 elif test "$shlibpath_overrides_runpath" = yes ||
24928 test "$enable_shared" = no; then
24929 # Fast installation is not necessary
24930 enable_fast_install=needless
24931 fi
24932
24933
24934
24935
24936
24937
24938
24939 fi # test -n "$compiler"
24940
24941 CC=$lt_save_CC
24942 LDCXX=$LD
24943 LD=$lt_save_LD
24944 GCC=$lt_save_GCC
24945 with_gnu_ld=$lt_save_with_gnu_ld
24946 lt_cv_path_LDCXX=$lt_cv_path_LD
24947 lt_cv_path_LD=$lt_save_path_LD
24948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24950 fi # test "$_lt_caught_CXX_error" != yes
24951
24952 ac_ext=cpp
24953 ac_cpp='$CXXCPP $CPPFLAGS'
24954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973 # Only expand once:
24974
24975
24976
24977
24978
24979 if test x$enable_darwin_at_rpath = xyes; then
24980 ENABLE_DARWIN_AT_RPATH_TRUE=
24981 ENABLE_DARWIN_AT_RPATH_FALSE='#'
24982 else
24983 ENABLE_DARWIN_AT_RPATH_TRUE='#'
24984 ENABLE_DARWIN_AT_RPATH_FALSE=
24985 fi
24986
24987 DARWIN_DO_EXTRA_RPATH=0
24988
24989 # Check whether --with-darwin-extra-rpath was given.
24990 if test "${with_darwin_extra_rpath+set}" = set; then :
24991 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
24992 DARWIN_ADD_RPATH="$withval"
24993 DARWIN_DO_EXTRA_RPATH=1
24994 fi
24995 fi
24996
24997
24998 cat >>confdefs.h <<_ACEOF
24999 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25000 _ACEOF
25001
25002
25003 cat >>confdefs.h <<_ACEOF
25004 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25005 _ACEOF
25006
25007
25008 # Identify the assembler which will work hand-in-glove with the newly
25009 # built GCC, so that we can examine its features. This is the assembler
25010 # which will be driven by the driver program.
25011 #
25012 # If build != host, and we aren't building gas in-tree, we identify a
25013 # build->target assembler and hope that it will have the same features
25014 # as the host->target assembler we'll be using.
25015 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25016
25017 if ${gcc_cv_as+:} false; then :
25018
25019 else
25020
25021 if test -x "$DEFAULT_ASSEMBLER"; then
25022 gcc_cv_as="$DEFAULT_ASSEMBLER"
25023 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25024 && test -f ../gas/Makefile \
25025 && test x$build = x$host; then
25026 gcc_cv_as=../gas/as-new$build_exeext
25027 elif test -x as$build_exeext; then
25028 # Build using assembler in the current directory.
25029 gcc_cv_as=./as$build_exeext
25030 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
25031 gcc_cv_as="$AS_FOR_TARGET"
25032 else
25033 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25034 set dummy $AS_FOR_TARGET; ac_word=$2
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25036 $as_echo_n "checking for $ac_word... " >&6; }
25037 if ${ac_cv_path_gcc_cv_as+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 case $gcc_cv_as in
25041 [\\/]* | ?:[\\/]*)
25042 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
25043 ;;
25044 *)
25045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25046 for as_dir in $PATH
25047 do
25048 IFS=$as_save_IFS
25049 test -z "$as_dir" && as_dir=.
25050 for ac_exec_ext in '' $ac_executable_extensions; do
25051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25052 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
25053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25054 break 2
25055 fi
25056 done
25057 done
25058 IFS=$as_save_IFS
25059
25060 ;;
25061 esac
25062 fi
25063 gcc_cv_as=$ac_cv_path_gcc_cv_as
25064 if test -n "$gcc_cv_as"; then
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25066 $as_echo "$gcc_cv_as" >&6; }
25067 else
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25069 $as_echo "no" >&6; }
25070 fi
25071
25072
25073 fi
25074 fi
25075
25076 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25077
25078 case "$ORIGINAL_AS_FOR_TARGET" in
25079 ./as | ./as$build_exeext) ;;
25080 *) ac_config_files="$ac_config_files as:exec-tool.in"
25081 ;;
25082 esac
25083
25084 default_ld=
25085 # Check whether --enable-ld was given.
25086 if test "${enable_ld+set}" = set; then :
25087 enableval=$enable_ld; case "${enableval}" in
25088 no)
25089 default_ld=ld.gold
25090 ;;
25091 esac
25092 fi
25093
25094
25095 install_gold_as_default=no
25096 # Check whether --enable-gold was given.
25097 if test "${enable_gold+set}" = set; then :
25098 enableval=$enable_gold; case "${enableval}" in
25099 default)
25100 install_gold_as_default=yes
25101 ;;
25102 yes)
25103 if test x${default_ld} != x; then
25104 install_gold_as_default=yes
25105 fi
25106 ;;
25107 no)
25108 ;;
25109 *)
25110 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25111 ;;
25112 esac
25113 fi
25114
25115
25116 # Identify the linker which will work hand-in-glove with the newly
25117 # built GCC, so that we can examine its features. This is the linker
25118 # which will be driven by the driver program.
25119 #
25120 # If build != host, and we aren't building gas in-tree, we identify a
25121 # build->target linker and hope that it will have the same features
25122 # as the host->target linker we'll be using.
25123 gcc_cv_gld_major_version=
25124 gcc_cv_gld_minor_version=
25125 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25126 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25127 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25128
25129 if ${gcc_cv_ld+:} false; then :
25130
25131 else
25132
25133 if test -x "$DEFAULT_LINKER"; then
25134 gcc_cv_ld="$DEFAULT_LINKER"
25135 elif test $install_gold_as_default = yes \
25136 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25137 && test -f ../gold/Makefile \
25138 && test x$build = x$host; then
25139 gcc_cv_ld=../gold/ld-new$build_exeext
25140 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25141 && test -f ../ld/Makefile \
25142 && test x$build = x$host; then
25143 gcc_cv_ld=../ld/ld-new$build_exeext
25144 elif test -x collect-ld$build_exeext; then
25145 # Build using linker in the current directory.
25146 gcc_cv_ld=./collect-ld$build_exeext
25147 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25148 gcc_cv_ld="$LD_FOR_TARGET"
25149 else
25150 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25151 set dummy $LD_FOR_TARGET; ac_word=$2
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25153 $as_echo_n "checking for $ac_word... " >&6; }
25154 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 case $gcc_cv_ld in
25158 [\\/]* | ?:[\\/]*)
25159 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25160 ;;
25161 *)
25162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25163 for as_dir in $PATH
25164 do
25165 IFS=$as_save_IFS
25166 test -z "$as_dir" && as_dir=.
25167 for ac_exec_ext in '' $ac_executable_extensions; do
25168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25169 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25171 break 2
25172 fi
25173 done
25174 done
25175 IFS=$as_save_IFS
25176
25177 ;;
25178 esac
25179 fi
25180 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25181 if test -n "$gcc_cv_ld"; then
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25183 $as_echo "$gcc_cv_ld" >&6; }
25184 else
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25187 fi
25188
25189
25190 fi
25191 fi
25192
25193 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25194 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25195 # if the PLUGIN_LD is set ld-new, just have it as ld
25196 # as that is the installed named.
25197 if test x$PLUGIN_LD_SUFFIX = xld-new \
25198 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25199 PLUGIN_LD_SUFFIX=ld
25200 fi
25201
25202 # Check whether --with-plugin-ld was given.
25203 if test "${with_plugin_ld+set}" = set; then :
25204 withval=$with_plugin_ld; if test x"$withval" != x; then
25205 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25206 PLUGIN_LD_SUFFIX="$withval"
25207 fi
25208 fi
25209
25210
25211
25212 cat >>confdefs.h <<_ACEOF
25213 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25214 _ACEOF
25215
25216
25217 # Check to see if we are using gold instead of ld
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25219 $as_echo_n "checking whether we are using gold... " >&6; }
25220 ld_is_gold=no
25221 if test x$gcc_cv_ld != x; then
25222 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25223 | grep "GNU gold" > /dev/null; then
25224 ld_is_gold=yes
25225 fi
25226 fi
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25228 $as_echo "$ld_is_gold" >&6; }
25229
25230 # Check to see if we are using mold instead of ld
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25232 $as_echo_n "checking whether we are using mold... " >&6; }
25233 ld_is_mold=no
25234 if test x$gcc_cv_ld != x; then
25235 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25236 | grep "mold" > /dev/null; then
25237 ld_is_mold=yes
25238 fi
25239 fi
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25241 $as_echo "$ld_is_mold" >&6; }
25242
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25245 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25246 # Check to see if default ld is not gold, but gold is
25247 # available and has support for split stack. If gcc was configured
25248 # with gold then no checking is done.
25249 #
25250 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25251
25252 # For platforms other than powerpc64*, enable as appropriate.
25253
25254 gold_non_default=no
25255 ld_gold=`which ${gcc_cv_ld}.gold`
25256 # Make sure this gold has minimal split stack support
25257 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25258 ld_vers=`$ld_gold --version | sed 1q`
25259 gold_vers=`echo $ld_vers | sed -n \
25260 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25261 case $target in
25262 # check that the gold version contains the complete split stack support
25263 # on powerpc64 big and little endian
25264 powerpc64*-*-*)
25265 case "$gold_vers" in
25266 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25267 ;;
25268 *) gold_non_default=no
25269 ;;
25270 esac
25271 ;;
25272 esac
25273 fi
25274 if test $gold_non_default = yes; then
25275
25276 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25277
25278 fi
25279 fi
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25281 $as_echo "$gold_non_default" >&6; }
25282
25283 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25284
25285 case "$ORIGINAL_LD_FOR_TARGET" in
25286 ./collect-ld | ./collect-ld$build_exeext) ;;
25287 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25288 ;;
25289 esac
25290
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25292 $as_echo_n "checking what linker to use... " >&6; }
25293 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25294 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25295 # Single tree build which includes ld. We want to prefer it
25296 # over whatever linker top-level may have detected, since
25297 # we'll use what we're building after installation anyway.
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25299 $as_echo "newly built ld" >&6; }
25300 in_tree_ld=yes
25301 in_tree_ld_is_elf=no
25302 if (grep 'EMUL = .*elf' ../ld/Makefile \
25303 || grep 'EMUL = .*linux' ../ld/Makefile \
25304 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25305 in_tree_ld_is_elf=yes
25306 elif test "$ld_is_gold" = yes; then
25307 in_tree_ld_is_elf=yes
25308 fi
25309 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
25310 do
25311 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25312 if test x$gcc_cv_gld_version != x; then
25313 break
25314 fi
25315 done
25316 case $gcc_cv_gld_version in
25317 VERSION=[0-9]*) ;;
25318 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25319 esac
25320 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25321 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25322 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25323 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25324 else
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25326 $as_echo "$gcc_cv_ld" >&6; }
25327 in_tree_ld=no
25328 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25329 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25330 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25331 fi
25332
25333
25334
25335
25336 # Figure out what nm we will be using.
25337 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25338 if ${gcc_cv_nm+:} false; then :
25339
25340 else
25341
25342 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25343 && test -f ../binutils/Makefile \
25344 && test x$build = x$host; then
25345 gcc_cv_nm=../binutils/nm-new$build_exeext
25346 elif test -x nm$build_exeext; then
25347 gcc_cv_nm=./nm$build_exeext
25348 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25349 gcc_cv_nm="$NM_FOR_TARGET"
25350 else
25351 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25352 set dummy $NM_FOR_TARGET; ac_word=$2
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25354 $as_echo_n "checking for $ac_word... " >&6; }
25355 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 case $gcc_cv_nm in
25359 [\\/]* | ?:[\\/]*)
25360 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25361 ;;
25362 *)
25363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25364 for as_dir in $PATH
25365 do
25366 IFS=$as_save_IFS
25367 test -z "$as_dir" && as_dir=.
25368 for ac_exec_ext in '' $ac_executable_extensions; do
25369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25370 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25372 break 2
25373 fi
25374 done
25375 done
25376 IFS=$as_save_IFS
25377
25378 ;;
25379 esac
25380 fi
25381 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25382 if test -n "$gcc_cv_nm"; then
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25384 $as_echo "$gcc_cv_nm" >&6; }
25385 else
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387 $as_echo "no" >&6; }
25388 fi
25389
25390
25391 fi
25392 fi
25393
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25395 $as_echo_n "checking what nm to use... " >&6; }
25396 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25397 # Single tree build which includes binutils.
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25399 $as_echo "newly built nm" >&6; }
25400 in_tree_nm=yes
25401 else
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25403 $as_echo "$gcc_cv_nm" >&6; }
25404 in_tree_nm=no
25405 fi
25406
25407 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25408
25409 case "$ORIGINAL_NM_FOR_TARGET" in
25410 ./nm | ./nm$build_exeext) ;;
25411 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25412 ;;
25413 esac
25414
25415
25416 # Figure out what objdump we will be using.
25417 if ${gcc_cv_objdump+:} false; then :
25418
25419 else
25420
25421 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25422 && test -f ../binutils/Makefile \
25423 && test x$build = x$host; then
25424 # Single tree build which includes binutils.
25425 gcc_cv_objdump=../binutils/objdump$build_exeext
25426 elif test -x objdump$build_exeext; then
25427 gcc_cv_objdump=./objdump$build_exeext
25428 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25429 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25430 else
25431 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25432 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25434 $as_echo_n "checking for $ac_word... " >&6; }
25435 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 case $gcc_cv_objdump in
25439 [\\/]* | ?:[\\/]*)
25440 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25441 ;;
25442 *)
25443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25444 for as_dir in $PATH
25445 do
25446 IFS=$as_save_IFS
25447 test -z "$as_dir" && as_dir=.
25448 for ac_exec_ext in '' $ac_executable_extensions; do
25449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25450 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25452 break 2
25453 fi
25454 done
25455 done
25456 IFS=$as_save_IFS
25457
25458 ;;
25459 esac
25460 fi
25461 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25462 if test -n "$gcc_cv_objdump"; then
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25464 $as_echo "$gcc_cv_objdump" >&6; }
25465 else
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25467 $as_echo "no" >&6; }
25468 fi
25469
25470
25471 fi
25472 fi
25473
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25475 $as_echo_n "checking what objdump to use... " >&6; }
25476 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25477 # Single tree build which includes binutils.
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25479 $as_echo "newly built objdump" >&6; }
25480 elif test x$gcc_cv_objdump = x; then
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25482 $as_echo "not found" >&6; }
25483 else
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25485 $as_echo "$gcc_cv_objdump" >&6; }
25486 fi
25487
25488 # Figure out what readelf we will be using.
25489 if ${gcc_cv_readelf+:} false; then :
25490
25491 else
25492
25493 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25494 && test -f ../binutils/Makefile \
25495 && test x$build = x$host; then
25496 # Single tree build which includes binutils.
25497 gcc_cv_readelf=../binutils/readelf$build_exeext
25498 elif test -x readelf$build_exeext; then
25499 gcc_cv_readelf=./readelf$build_exeext
25500 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25501 gcc_cv_readelf="$READELF_FOR_TARGET"
25502 else
25503 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25504 set dummy $READELF_FOR_TARGET; ac_word=$2
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25506 $as_echo_n "checking for $ac_word... " >&6; }
25507 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 case $gcc_cv_readelf in
25511 [\\/]* | ?:[\\/]*)
25512 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25513 ;;
25514 *)
25515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25516 for as_dir in $PATH
25517 do
25518 IFS=$as_save_IFS
25519 test -z "$as_dir" && as_dir=.
25520 for ac_exec_ext in '' $ac_executable_extensions; do
25521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25522 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25524 break 2
25525 fi
25526 done
25527 done
25528 IFS=$as_save_IFS
25529
25530 ;;
25531 esac
25532 fi
25533 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25534 if test -n "$gcc_cv_readelf"; then
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25536 $as_echo "$gcc_cv_readelf" >&6; }
25537 else
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25539 $as_echo "no" >&6; }
25540 fi
25541
25542
25543 fi
25544 fi
25545
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25547 $as_echo_n "checking what readelf to use... " >&6; }
25548 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25549 # Single tree build which includes binutils.
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25551 $as_echo "newly built readelf" >&6; }
25552 elif test x$gcc_cv_readelf = x; then
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25554 $as_echo "not found" >&6; }
25555 else
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25557 $as_echo "$gcc_cv_readelf" >&6; }
25558 fi
25559
25560 # Figure out what otool we will be using.
25561 if ${gcc_cv_otool+:} false; then :
25562
25563 else
25564
25565 if test -x otool$build_exeext; then
25566 gcc_cv_otool=./otool$build_exeext
25567 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25568 gcc_cv_otool="$OTOOL_FOR_TARGET"
25569 else
25570 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25571 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25573 $as_echo_n "checking for $ac_word... " >&6; }
25574 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25575 $as_echo_n "(cached) " >&6
25576 else
25577 case $gcc_cv_otool in
25578 [\\/]* | ?:[\\/]*)
25579 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25580 ;;
25581 *)
25582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25583 for as_dir in $PATH
25584 do
25585 IFS=$as_save_IFS
25586 test -z "$as_dir" && as_dir=.
25587 for ac_exec_ext in '' $ac_executable_extensions; do
25588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25589 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25591 break 2
25592 fi
25593 done
25594 done
25595 IFS=$as_save_IFS
25596
25597 ;;
25598 esac
25599 fi
25600 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25601 if test -n "$gcc_cv_otool"; then
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25603 $as_echo "$gcc_cv_otool" >&6; }
25604 else
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25606 $as_echo "no" >&6; }
25607 fi
25608
25609
25610 fi
25611 fi
25612
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25614 $as_echo_n "checking what otool to use... " >&6; }
25615 if test x$gcc_cv_otool = x; then
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25617 $as_echo "not found" >&6; }
25618 else
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25620 $as_echo "$gcc_cv_otool" >&6; }
25621 fi
25622
25623 # Figure out the dsymutil we will use.
25624 if ${gcc_cv_dsymutil+:} false; then :
25625
25626 else
25627
25628 if test -x "$DEFAULT_DSYMUTIL"; then
25629 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25630 elif test -x dsymutil$build_exeext; then
25631 gcc_cv_dsymutil=./dsymutil$build_exeext
25632 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25633 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25634 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25635 gcc_cv_dsymutil=$DSYMUTIL
25636 else
25637 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25638 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25640 $as_echo_n "checking for $ac_word... " >&6; }
25641 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 case $gcc_cv_dsymutil in
25645 [\\/]* | ?:[\\/]*)
25646 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25647 ;;
25648 *)
25649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25650 for as_dir in $PATH
25651 do
25652 IFS=$as_save_IFS
25653 test -z "$as_dir" && as_dir=.
25654 for ac_exec_ext in '' $ac_executable_extensions; do
25655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25656 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25658 break 2
25659 fi
25660 done
25661 done
25662 IFS=$as_save_IFS
25663
25664 ;;
25665 esac
25666 fi
25667 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25668 if test -n "$gcc_cv_dsymutil"; then
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25670 $as_echo "$gcc_cv_dsymutil" >&6; }
25671 else
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 $as_echo "no" >&6; }
25674 fi
25675
25676
25677 fi
25678 fi
25679
25680 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25681
25682 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25683 ./dsymutil | ./dsymutil$build_exeext) ;;
25684 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25685 ;;
25686 esac
25687
25688 # Figure out what assembler alignment features are present.
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25690 $as_echo_n "checking assembler flags... " >&6; }
25691 if ${gcc_cv_as_flags+:} false; then :
25692 $as_echo_n "(cached) " >&6
25693 else
25694 case "$target" in
25695 i[34567]86-*-linux*)
25696 gcc_cv_as_flags=--32
25697 ;;
25698 x86_64-*-linux-gnux32)
25699 gcc_cv_as_flags=--x32
25700 ;;
25701 x86_64-*-linux*)
25702 gcc_cv_as_flags=--64
25703 ;;
25704 powerpc*-*-darwin*)
25705 gcc_cv_as_flags="-arch ppc"
25706 ;;
25707 *)
25708 gcc_cv_as_flags=" "
25709 ;;
25710 esac
25711 fi
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25713 $as_echo "$gcc_cv_as_flags" >&6; }
25714
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25716 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25717 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25718 $as_echo_n "(cached) " >&6
25719 else
25720 gcc_cv_as_balign_and_p2align=no
25721 if test x$gcc_cv_as != x; then
25722 $as_echo '.balign 4
25723 .p2align 2' > conftest.s
25724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25730 then
25731 gcc_cv_as_balign_and_p2align=yes
25732 else
25733 echo "configure: failed program was" >&5
25734 cat conftest.s >&5
25735 fi
25736 rm -f conftest.o conftest.s
25737 fi
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25740 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25741 if test $gcc_cv_as_balign_and_p2align = yes; then
25742
25743 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25744
25745 fi
25746
25747
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25749 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25750 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25751 $as_echo_n "(cached) " >&6
25752 else
25753 gcc_cv_as_max_skip_p2align=no
25754 if test x$gcc_cv_as != x; then
25755 $as_echo '.p2align 4,,7' > conftest.s
25756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25762 then
25763 gcc_cv_as_max_skip_p2align=yes
25764 else
25765 echo "configure: failed program was" >&5
25766 cat conftest.s >&5
25767 fi
25768 rm -f conftest.o conftest.s
25769 fi
25770 fi
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25772 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25773 if test $gcc_cv_as_max_skip_p2align = yes; then
25774
25775 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25776
25777 fi
25778
25779
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25781 $as_echo_n "checking assembler for .literal16... " >&6; }
25782 if ${gcc_cv_as_literal16+:} false; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_literal16=no
25786 if test x$gcc_cv_as != x; then
25787 $as_echo '.literal16' > 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_literal16=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_literal16" >&5
25804 $as_echo "$gcc_cv_as_literal16" >&6; }
25805 if test $gcc_cv_as_literal16 = yes; then
25806
25807 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25808
25809 fi
25810
25811
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25813 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25814 if ${gcc_cv_as_subsection_m1+:} false; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_as_subsection_m1=no
25818 if test x$gcc_cv_as != x; then
25819 $as_echo 'conftest_label1: .word 0
25820 .subsection -1
25821 conftest_label2: .word 0
25822 .previous' > conftest.s
25823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25826 ac_status=$?
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25829 then
25830 if test x$gcc_cv_nm != x; then
25831 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25832 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25833 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25834 then :
25835 else gcc_cv_as_subsection_m1=yes
25836 fi
25837 rm -f conftest.nm1 conftest.nm2
25838 fi
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25842 fi
25843 rm -f conftest.o conftest.s
25844 fi
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25847 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25848 if test $gcc_cv_as_subsection_m1 = yes; then
25849
25850 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25851
25852 fi
25853
25854
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25856 $as_echo_n "checking assembler for .weak... " >&6; }
25857 if ${gcc_cv_as_weak+:} false; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_weak=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo ' .weak foobar' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_weak=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25874 fi
25875 rm -f conftest.o conftest.s
25876 fi
25877 fi
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25879 $as_echo "$gcc_cv_as_weak" >&6; }
25880 if test $gcc_cv_as_weak = yes; then
25881
25882 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25883
25884 fi
25885
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25888 $as_echo_n "checking assembler for .weakref... " >&6; }
25889 if ${gcc_cv_as_weakref+:} false; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_weakref=no
25893 if test x$gcc_cv_as != x; then
25894 $as_echo ' .weakref foobar, barfnot' > conftest.s
25895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25900 test $ac_status = 0; }; }
25901 then
25902 gcc_cv_as_weakref=yes
25903 else
25904 echo "configure: failed program was" >&5
25905 cat conftest.s >&5
25906 fi
25907 rm -f conftest.o conftest.s
25908 fi
25909 fi
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25911 $as_echo "$gcc_cv_as_weakref" >&6; }
25912 if test $gcc_cv_as_weakref = yes; then
25913
25914 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25915
25916 fi
25917
25918
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25920 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25921 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25922 $as_echo_n "(cached) " >&6
25923 else
25924 gcc_cv_as_nsubspa_comdat=no
25925 if test x$gcc_cv_as != x; then
25926 $as_echo ' .SPACE $TEXT$
25927 .NSUBSPA $CODE$,COMDAT' > conftest.s
25928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25933 test $ac_status = 0; }; }
25934 then
25935 gcc_cv_as_nsubspa_comdat=yes
25936 else
25937 echo "configure: failed program was" >&5
25938 cat conftest.s >&5
25939 fi
25940 rm -f conftest.o conftest.s
25941 fi
25942 fi
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25944 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25945 if test $gcc_cv_as_nsubspa_comdat = yes; then
25946
25947 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25948
25949 fi
25950
25951
25952 # .hidden needs to be supported in both the assembler and the linker,
25953 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25954 # This is irritatingly difficult to feature test for; we have to check the
25955 # date string after the version number. If we've got an in-tree
25956 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25957 # to be safe.
25958 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25959 case "${target}" in
25960 *-*-aix*)
25961 conftest_s=' .globl foobar,hidden'
25962 ;;
25963 *)
25964 conftest_s=' .hidden foobar
25965 foobar:'
25966 ;;
25967 esac
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25969 $as_echo_n "checking assembler for .hidden... " >&6; }
25970 if ${gcc_cv_as_hidden+:} false; then :
25971 $as_echo_n "(cached) " >&6
25972 else
25973 gcc_cv_as_hidden=no
25974 if test x$gcc_cv_as != x; then
25975 $as_echo "$conftest_s" > conftest.s
25976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25981 test $ac_status = 0; }; }
25982 then
25983 gcc_cv_as_hidden=yes
25984 else
25985 echo "configure: failed program was" >&5
25986 cat conftest.s >&5
25987 fi
25988 rm -f conftest.o conftest.s
25989 fi
25990 fi
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25992 $as_echo "$gcc_cv_as_hidden" >&6; }
25993
25994
25995 case "${target}" in
25996 *-*-darwin*)
25997 # Darwin as has some visibility support, though with a different syntax.
25998 gcc_cv_as_hidden=yes
25999 ;;
26000 esac
26001
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .base64" >&5
26003 $as_echo_n "checking assembler for .base64... " >&6; }
26004 if ${gcc_cv_as_base64+:} false; then :
26005 $as_echo_n "(cached) " >&6
26006 else
26007 gcc_cv_as_base64=no
26008 if test x$gcc_cv_as != x; then
26009 $as_echo ' .section .rodata
26010 .base64 "Tm9uIHB1ZG9yIGVzdCBuaWwgc2NpcmUsIHB1ZG9yIG5pbCBkaXNjZXJlIHZlbGxlLgo="' > conftest.s
26011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016 test $ac_status = 0; }; }
26017 then
26018 gcc_cv_as_base64=yes
26019 else
26020 echo "configure: failed program was" >&5
26021 cat conftest.s >&5
26022 fi
26023 rm -f conftest.o conftest.s
26024 fi
26025 fi
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_base64" >&5
26027 $as_echo "$gcc_cv_as_base64" >&6; }
26028 if test $gcc_cv_as_base64 = yes; then
26029
26030 $as_echo "#define HAVE_GAS_BASE64 1" >>confdefs.h
26031
26032 fi
26033
26034
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .cv_ucomp" >&5
26036 $as_echo_n "checking assembler for .cv_ucomp... " >&6; }
26037 if ${gcc_cv_as_cv_ucomp+:} false; then :
26038 $as_echo_n "(cached) " >&6
26039 else
26040 gcc_cv_as_cv_ucomp=no
26041 if test x$gcc_cv_as != x; then
26042 $as_echo '.cv_ucomp 0' > conftest.s
26043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26048 test $ac_status = 0; }; }
26049 then
26050 gcc_cv_as_cv_ucomp=yes
26051 else
26052 echo "configure: failed program was" >&5
26053 cat conftest.s >&5
26054 fi
26055 rm -f conftest.o conftest.s
26056 fi
26057 fi
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cv_ucomp" >&5
26059 $as_echo "$gcc_cv_as_cv_ucomp" >&6; }
26060 if test $gcc_cv_as_cv_ucomp = yes; then
26061
26062 $as_echo "#define HAVE_GAS_CV_UCOMP 1" >>confdefs.h
26063
26064 fi
26065
26066
26067 # gnu_indirect_function type is an extension proposed at
26068 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26069 # selection of function implementation
26070 # Check whether --enable-gnu-indirect-function was given.
26071 if test "${enable_gnu_indirect_function+set}" = set; then :
26072 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26073 yes | no) ;;
26074 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26075 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26076 esac
26077 else
26078 enable_gnu_indirect_function="$default_gnu_indirect_function"
26079 fi
26080
26081
26082 case "${target}" in
26083 riscv*-*-linux*)
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26085 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26086 cat > conftest.s <<EOF
26087 .text
26088 .type foo_resolver, @function
26089 foo_resolver:
26090 ret
26091 .size foo_resolver, .-foo_resolver
26092
26093 .globl foo
26094 .type foo, %gnu_indirect_function
26095 .set foo, foo_resolver
26096
26097 .globl bar
26098 .type bar, @function
26099 bar:
26100 call foo
26101 ret
26102 .size bar, .-bar
26103 EOF
26104 if test x$gcc_cv_as != x \
26105 && test x$gcc_cv_ld != x \
26106 && test x$gcc_cv_readelf != x \
26107 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26108 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26109 && $gcc_cv_readelf --relocs --wide conftest \
26110 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26111 enable_gnu_indirect_function=yes
26112 fi
26113 rm -f conftest conftest.o conftest.s
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26115 $as_echo "$enable_gnu_indirect_function" >&6; }
26116 ;;
26117 esac
26118
26119 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26120
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26123 _ACEOF
26124
26125
26126
26127 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26128 if test $in_tree_ld != yes ; then
26129 if echo "$ld_ver" | grep GNU > /dev/null; then
26130 if test x"$ld_is_gold" = xyes; then
26131 # GNU gold --version looks like this:
26132 #
26133 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26134 #
26135 # We extract the binutils version which is more familiar and specific
26136 # than the gold version.
26137 ld_vers=`echo $ld_ver | sed -n \
26138 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26139 else
26140 # GNU ld --version looks like this:
26141 #
26142 # GNU ld (GNU Binutils) 2.21.51.20110225
26143 ld_vers=`echo $ld_ver | sed -n \
26144 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26145 fi
26146 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'`
26147 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26148 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26149 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26150 else
26151 case "${target}" in
26152 *-*-solaris2*)
26153 # Solaris 2 ld -V output looks like this for a regular version:
26154 #
26155 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26156 #
26157 # but test versions add stuff at the end:
26158 #
26159 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26160 #
26161 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26162 # numbers can be used in ld.so.1 feature checks even if a different
26163 # linker is configured.
26164 ld_ver=`$gcc_cv_ld -V 2>&1`
26165 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26166 ld_vers=`echo $ld_ver | sed -n \
26167 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26168 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26169 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26170 fi
26171 ;;
26172 esac
26173 fi
26174 fi
26175
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26177 $as_echo_n "checking linker for .hidden support... " >&6; }
26178 if ${gcc_cv_ld_hidden+:} false; then :
26179 $as_echo_n "(cached) " >&6
26180 else
26181 if test $in_tree_ld = yes ; then
26182 gcc_cv_ld_hidden=no
26183 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 \
26184 && test $in_tree_ld_is_elf = yes; then
26185 gcc_cv_ld_hidden=yes
26186 fi
26187 else
26188 gcc_cv_ld_hidden=yes
26189 if test x"$ld_is_gold" = xyes; then
26190 :
26191 elif test x"$ld_is_mold" = xyes; then
26192 :
26193 elif echo "$ld_ver" | grep GNU > /dev/null; then
26194 if test 0"$ld_date" -lt 20020404; then
26195 if test -n "$ld_date"; then
26196 # If there was date string, but was earlier than 2002-04-04, fail
26197 gcc_cv_ld_hidden=no
26198 elif test -z "$ld_vers"; then
26199 # If there was no date string nor ld version number, something is wrong
26200 gcc_cv_ld_hidden=no
26201 else
26202 test -z "$ld_vers_patch" && ld_vers_patch=0
26203 if test "$ld_vers_major" -lt 2; then
26204 gcc_cv_ld_hidden=no
26205 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26206 gcc_cv_ld_hidden="no"
26207 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26208 gcc_cv_ld_hidden=no
26209 fi
26210 fi
26211 fi
26212 else
26213 case "${target}" in
26214 *-*-aix[789]*)
26215 gcc_cv_ld_hidden=yes
26216 ;;
26217 *-*-darwin*)
26218 # Darwin ld has some visibility support.
26219 gcc_cv_ld_hidden=yes
26220 ;;
26221 hppa64*-*-hpux* | ia64*-*-hpux*)
26222 gcc_cv_ld_hidden=yes
26223 ;;
26224 *-*-solaris2*)
26225 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26226 # .symbolic was only added in Solaris 9 12/02.
26227 gcc_cv_ld_hidden=yes
26228 ;;
26229 *)
26230 gcc_cv_ld_hidden=no
26231 ;;
26232 esac
26233 fi
26234 fi
26235 fi
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26237 $as_echo "$gcc_cv_ld_hidden" >&6; }
26238 libgcc_visibility=no
26239
26240
26241 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26242 libgcc_visibility=yes
26243
26244 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26245
26246 fi
26247
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26249 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26250 gcc_cv_ld_ro_rw_mix=unknown
26251 if test $in_tree_ld = yes ; then
26252 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 \
26253 && test $in_tree_ld_is_elf = yes; then
26254 gcc_cv_ld_ro_rw_mix=read-write
26255 fi
26256 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26257 echo '.section myfoosect, "a"' > conftest1.s
26258 echo '.section myfoosect, "aw"' > conftest2.s
26259 echo '.byte 1' >> conftest2.s
26260 echo '.section myfoosect, "a"' > conftest3.s
26261 echo '.byte 0' >> conftest3.s
26262 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26263 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26264 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26265 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26266 conftest2.o conftest3.o > /dev/null 2>&1 \
26267 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26268 conftest2.o conftest3.o > /dev/null 2>&1; then
26269 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26270 | sed -e '/myfoosect/!d' -e N`
26271 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26272 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26273 gcc_cv_ld_ro_rw_mix=read-only
26274 else
26275 gcc_cv_ld_ro_rw_mix=read-write
26276 fi
26277 fi
26278 fi
26279 fi
26280 rm -f conftest.* conftest[123].*
26281 fi
26282 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26283
26284 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26285
26286 fi
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26288 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26289
26290 # Check whether --enable-initfini-array was given.
26291 if test "${enable_initfini_array+set}" = set; then :
26292 enableval=$enable_initfini_array;
26293 else
26294
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26296 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26297 if ${gcc_cv_initfini_array+:} false; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26300 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26301 case "${target}" in
26302 ia64-*)
26303 if test "$cross_compiling" = yes; then :
26304 gcc_cv_initfini_array=no
26305 else
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26308
26309 #ifndef __ELF__
26310 #error Not an ELF OS
26311 #endif
26312 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26313 if it can be used. */
26314 static int x = -1;
26315 int main (void) { return x; }
26316 int foo (void) { x = 0; }
26317 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26318
26319 _ACEOF
26320 if ac_fn_cxx_try_run "$LINENO"; then :
26321 gcc_cv_initfini_array=yes
26322 else
26323 gcc_cv_initfini_array=no
26324 fi
26325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26326 conftest.$ac_objext conftest.beam conftest.$ac_ext
26327 fi
26328 ;;
26329 *)
26330 gcc_cv_initfini_array=no
26331 if test $in_tree_ld = yes ; then
26332 if test "$gcc_cv_gld_major_version" -eq 2 \
26333 -a "$gcc_cv_gld_minor_version" -ge 22 \
26334 -o "$gcc_cv_gld_major_version" -gt 2 \
26335 && test $in_tree_ld_is_elf = yes; then
26336 gcc_cv_initfini_array=yes
26337 fi
26338 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26339 case $target:$gas in
26340 *:yes)
26341 sh_flags='"a"'
26342 sh_type='%progbits'
26343 ;;
26344 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26345 sh_flags='"a"'
26346 sh_type='@progbits'
26347 ;;
26348 sparc*-*-solaris2*:no)
26349 sh_flags='#alloc'
26350 sh_type='#progbits'
26351 sh_quote='"'
26352 ;;
26353 esac
26354 case "$target:$gnu_ld" in
26355 *:yes)
26356 cat > conftest.s <<EOF
26357 .section .dtors,$sh_flags,$sh_type
26358 .balign 4
26359 .byte 'A', 'A', 'A', 'A'
26360 .section .ctors,$sh_flags,$sh_type
26361 .balign 4
26362 .byte 'B', 'B', 'B', 'B'
26363 .section .fini_array.65530,$sh_flags,$sh_type
26364 .balign 4
26365 .byte 'C', 'C', 'C', 'C'
26366 .section .init_array.65530,$sh_flags,$sh_type
26367 .balign 4
26368 .byte 'D', 'D', 'D', 'D'
26369 .section .dtors.64528,$sh_flags,$sh_type
26370 .balign 4
26371 .byte 'E', 'E', 'E', 'E'
26372 .section .ctors.64528,$sh_flags,$sh_type
26373 .balign 4
26374 .byte 'F', 'F', 'F', 'F'
26375 .section .fini_array.01005,$sh_flags,$sh_type
26376 .balign 4
26377 .byte 'G', 'G', 'G', 'G'
26378 .section .init_array.01005,$sh_flags,$sh_type
26379 .balign 4
26380 .byte 'H', 'H', 'H', 'H'
26381 .text
26382 .globl _start
26383 _start:
26384 EOF
26385 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26386 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26387 && $gcc_cv_objdump -s -j .init_array conftest \
26388 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26389 && $gcc_cv_objdump -s -j .fini_array conftest \
26390 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26391 gcc_cv_initfini_array=yes
26392 fi
26393 ;;
26394 *-*-solaris2*:no)
26395 # When Solaris ld added constructor priority support, it was
26396 # decided to only handle .init_array.N/.fini_array.N since
26397 # there was no need for backwards compatibility with
26398 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26399 # sections with correct execution order resp. to
26400 # .init_array/.fini_array, while gld merges them into
26401 # .init_array/.fini_array.
26402 cat > conftest.s <<EOF
26403 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26404 .align 4
26405 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26406 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26407 .align 4
26408 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26409 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26410 .align 4
26411 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26412 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26413 .align 4
26414 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26415 .text
26416 .globl _start
26417 _start:
26418 EOF
26419 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26421 && $gcc_cv_objdump -s -j .init_array conftest \
26422 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26423 && $gcc_cv_objdump -s -j .fini_array conftest \
26424 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26425 gcc_cv_initfini_array=yes
26426 fi
26427 ;;
26428 esac
26429 rm -f conftest conftest.*
26430 fi
26431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432 /* end confdefs.h. */
26433
26434 #ifndef __ELF__
26435 # error Not an ELF OS
26436 #endif
26437 #include <stdlib.h>
26438 #if defined __GLIBC_PREREQ
26439 # if __GLIBC_PREREQ (2, 4)
26440 # else
26441 # error GLIBC 2.4 required
26442 # endif
26443 #else
26444 # if defined __sun__ && defined __svr4__
26445 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26446 # else
26447 # error The C library not known to support .init_array/.fini_array
26448 # endif
26449 #endif
26450
26451 _ACEOF
26452 if ac_fn_cxx_try_cpp "$LINENO"; then :
26453
26454 else
26455 gcc_cv_initfini_array=no
26456 fi
26457 rm -f conftest.err conftest.i conftest.$ac_ext;;
26458 esac
26459 else
26460 case "${target}" in
26461 aarch64*-linux-gnu*)
26462 # AArch64 postdates glibc support for .init_array/.fini_array,
26463 # so we don't need the preprocessor test above.
26464 gcc_cv_initfini_array=yes
26465 ;;
26466
26467 *)
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26469 $as_echo_n "checking cross compile... guessing... " >&6; }
26470 gcc_cv_initfini_array=no
26471 ;;
26472 esac
26473 fi
26474 fi
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26476 $as_echo "$gcc_cv_initfini_array" >&6; }
26477 enable_initfini_array=$gcc_cv_initfini_array
26478
26479 fi
26480
26481
26482 cat >>confdefs.h <<_ACEOF
26483 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26484 _ACEOF
26485
26486
26487
26488
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the host/build supports symbol aliases" >&5
26490 $as_echo_n "checking whether the host/build supports symbol aliases... " >&6; }
26491 if ${gcc_cv_have_attribute_alias+:} false; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494
26495 if test "x${build}" = "x${host}"; then
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h. */
26498
26499 extern "C" void foo(void) { }
26500 extern void bar(void) __attribute__((alias("foo")));
26501 int
26502 main ()
26503 {
26504 bar();
26505 ;
26506 return 0;
26507 }
26508 _ACEOF
26509 if ac_fn_cxx_try_link "$LINENO"; then :
26510 gcc_cv_have_attribute_alias=yes
26511 else
26512 gcc_cv_have_attribute_alias=no
26513 fi
26514 rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
26516 else
26517 gcc_cv_have_attribute_alias=no
26518 fi
26519 fi
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_attribute_alias" >&5
26521 $as_echo "$gcc_cv_have_attribute_alias" >&6; }
26522 if test $gcc_cv_have_attribute_alias = yes; then
26523
26524 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26525
26526 fi
26527
26528 # Some assemblers (GNU as for LoongArch) generates relocations for
26529 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26530 # probing leb128 support then.
26531 case $target in
26532 loongarch*-*-*)
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26534 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26535 if ${gcc_cv_as_mno_relax+:} false; then :
26536 $as_echo_n "(cached) " >&6
26537 else
26538 gcc_cv_as_mno_relax=no
26539 if test x$gcc_cv_as != x; then
26540 $as_echo '.text' > conftest.s
26541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26546 test $ac_status = 0; }; }
26547 then
26548 gcc_cv_as_mno_relax=yes
26549 else
26550 echo "configure: failed program was" >&5
26551 cat conftest.s >&5
26552 fi
26553 rm -f conftest.o conftest.s
26554 fi
26555 fi
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26557 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26558 if test $gcc_cv_as_mno_relax = yes; then
26559 check_leb128_asflags=-mno-relax
26560 fi
26561
26562 ;;
26563 *)
26564 check_leb128_asflags=
26565 ;;
26566 esac
26567
26568 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26569 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26570 # these directives, even when they appear to accept them.
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26572 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26573 if ${gcc_cv_as_leb128+:} false; then :
26574 $as_echo_n "(cached) " >&6
26575 else
26576 gcc_cv_as_leb128=no
26577 if test x$gcc_cv_as != x; then
26578 $as_echo ' .data
26579 .uleb128 L2 - L1
26580 L1:
26581 .uleb128 1280
26582 .sleb128 -1010
26583 L2:
26584 .uleb128 0x8000000000000000
26585 ' > conftest.s
26586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26592 then
26593
26594 if test "x$gcc_cv_objdump" != x; then
26595 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26596 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26597 gcc_cv_as_leb128=yes
26598 fi
26599 elif test "x$gcc_cv_otool" != x; then
26600 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26601 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26602 gcc_cv_as_leb128=yes
26603 fi
26604 else
26605 # play safe, assume the assembler is broken.
26606 :
26607 fi
26608
26609 else
26610 echo "configure: failed program was" >&5
26611 cat conftest.s >&5
26612 fi
26613 rm -f conftest.o conftest.s
26614 fi
26615 fi
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26617 $as_echo "$gcc_cv_as_leb128" >&6; }
26618 if test $gcc_cv_as_leb128 = yes; then
26619
26620 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26621
26622 fi
26623 if test $gcc_cv_as_leb128 != yes; then
26624
26625 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26626
26627 fi
26628
26629 # Determine if an .eh_frame section is read-only.
26630 gcc_fn_eh_frame_ro () {
26631 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26632 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26633 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26634 }
26635
26636 # Check if we have assembler support for unwind directives.
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26638 $as_echo_n "checking assembler for cfi directives... " >&6; }
26639 if ${gcc_cv_as_cfi_directive+:} false; then :
26640 $as_echo_n "(cached) " >&6
26641 else
26642 gcc_cv_as_cfi_directive=no
26643 if test x$gcc_cv_as != x; then
26644 $as_echo ' .text
26645 .cfi_startproc
26646 .cfi_offset 0, 0
26647 .cfi_same_value 1
26648 .cfi_def_cfa 1, 2
26649 .cfi_escape 1, 2, 3, 4, 5
26650 .cfi_endproc' > conftest.s
26651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26656 test $ac_status = 0; }; }
26657 then
26658 case "$target" in
26659 *-*-solaris*)
26660 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26661 # read-only and read-write sections, we need to make sure that the
26662 # assembler used emits read-write .eh_frame sections.
26663 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26664 gcc_cv_as_cfi_directive=yes
26665 elif test "x$gcc_cv_objdump" = x; then
26666 # No objdump, err on the side of caution.
26667 gcc_cv_as_cfi_directive=no
26668 else
26669 if test x$gas = xyes; then
26670 as_32_opt="--32"
26671 as_64_opt="--64"
26672 else
26673 as_32_opt="-m32"
26674 as_64_opt="-m64"
26675 fi
26676 case "$target" in
26677 sparc*-*-solaris2.*)
26678 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26679 if gcc_fn_eh_frame_ro $as_32_opt \
26680 || gcc_fn_eh_frame_ro $as_64_opt; then
26681 gcc_cv_as_cfi_directive=no
26682 else
26683 gcc_cv_as_cfi_directive=yes
26684 fi
26685 ;;
26686 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26687 # On Solaris/x86, make sure that GCC and assembler agree on using
26688 # read-only .eh_frame sections for 64-bit.
26689 if gcc_fn_eh_frame_ro $as_32_opt; then
26690 gcc_cv_as_cfi_directive=no
26691 elif gcc_fn_eh_frame_ro $as_64_opt; then
26692 gcc_cv_as_cfi_directive=yes
26693 else
26694 gcc_cv_as_cfi_directive=no
26695 fi
26696 ;;
26697 esac
26698 fi
26699 ;;
26700 *-*-*)
26701 gcc_cv_as_cfi_directive=yes
26702 ;;
26703 esac
26704 else
26705 echo "configure: failed program was" >&5
26706 cat conftest.s >&5
26707 fi
26708 rm -f conftest.o conftest.s
26709 fi
26710 fi
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26712 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26713
26714
26715 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26717 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26718 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_cfi_advance_working=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo ' .text
26724 .cfi_startproc
26725 .cfi_adjust_cfa_offset 64
26726 .skip 75040, 0
26727 .cfi_adjust_cfa_offset 128
26728 .cfi_endproc' > conftest.s
26729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26734 test $ac_status = 0; }; }
26735 then
26736
26737 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26738 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26739 gcc_cv_as_cfi_advance_working=yes
26740 fi
26741
26742 else
26743 echo "configure: failed program was" >&5
26744 cat conftest.s >&5
26745 fi
26746 rm -f conftest.o conftest.s
26747 fi
26748 fi
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26750 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26751
26752
26753 else
26754 # no objdump, err on the side of caution
26755 gcc_cv_as_cfi_advance_working=no
26756 fi
26757
26758
26759 cat >>confdefs.h <<_ACEOF
26760 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26761 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26762 _ACEOF
26763
26764
26765
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26767 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26768 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_as_cfi_personality_directive=no
26772 if test x$gcc_cv_as != x; then
26773 $as_echo ' .text
26774 .cfi_startproc
26775 .cfi_personality 0, symbol
26776 .cfi_endproc' > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_cfi_personality_directive=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26788 fi
26789 rm -f conftest.o conftest.s
26790 fi
26791 fi
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26793 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26794
26795
26796
26797 cat >>confdefs.h <<_ACEOF
26798 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26799 _ACEOF
26800
26801
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26803 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26804 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26805 $as_echo_n "(cached) " >&6
26806 else
26807 gcc_cv_as_cfi_sections_directive=no
26808 if test x$gcc_cv_as != x; then
26809 $as_echo ' .text
26810 .cfi_sections .debug_frame, .eh_frame
26811 .cfi_startproc
26812 .cfi_endproc' > conftest.s
26813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26818 test $ac_status = 0; }; }
26819 then
26820 case $target_os in
26821 win32 | pe | cygwin* | mingw32*)
26822 # Need to check that we generated the correct relocation for the
26823 # .debug_frame section. This was fixed for binutils 2.21.
26824 gcc_cv_as_cfi_sections_directive=no
26825 if test "x$gcc_cv_objdump" != x; then
26826 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26827 grep -i secrel > /dev/null; then
26828 gcc_cv_as_cfi_sections_directive=yes
26829 fi
26830 fi
26831 ;;
26832 *)
26833 gcc_cv_as_cfi_sections_directive=yes
26834 ;;
26835 esac
26836 else
26837 echo "configure: failed program was" >&5
26838 cat conftest.s >&5
26839 fi
26840 rm -f conftest.o conftest.s
26841 fi
26842 fi
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26844 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26845
26846
26847
26848
26849 cat >>confdefs.h <<_ACEOF
26850 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26851 _ACEOF
26852
26853
26854 # GAS versions up to and including 2.11.0 may mis-optimize
26855 # .eh_frame data.
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26857 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26858 if ${gcc_cv_as_eh_frame+:} false; then :
26859 $as_echo_n "(cached) " >&6
26860 else
26861 gcc_cv_as_eh_frame=no
26862 if test x$gcc_cv_as != x; then
26863 $as_echo ' .text
26864 .LFB1:
26865 .4byte 0
26866 .L1:
26867 .4byte 0
26868 .LFE1:
26869 .section .eh_frame,"aw",@progbits
26870 __FRAME_BEGIN__:
26871 .4byte .LECIE1-.LSCIE1
26872 .LSCIE1:
26873 .4byte 0x0
26874 .byte 0x1
26875 .ascii "z\0"
26876 .byte 0x1
26877 .byte 0x78
26878 .byte 0x1a
26879 .byte 0x0
26880 .byte 0x4
26881 .4byte 1
26882 .p2align 1
26883 .LECIE1:
26884 .LSFDE1:
26885 .4byte .LEFDE1-.LASFDE1
26886 .LASFDE1:
26887 .4byte .LASFDE1-__FRAME_BEGIN__
26888 .4byte .LFB1
26889 .4byte .LFE1-.LFB1
26890 .byte 0x4
26891 .4byte .LFE1-.LFB1
26892 .byte 0x4
26893 .4byte .L1-.LFB1
26894 .LEFDE1:' > conftest.s
26895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26900 test $ac_status = 0; }; }
26901 then
26902 cat > conftest.lit <<EOF
26903 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26904 0010 01000000 12000000 18000000 00000000 ................
26905 0020 08000000 04080000 0044 .........D
26906 EOF
26907 cat > conftest.big <<EOF
26908 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26909 0010 00000001 00000012 00000018 00000000 ................
26910 0020 00000008 04000000 0844 .........D
26911 EOF
26912 # If the assembler didn't choke, and we can objdump,
26913 # and we got the correct data, then succeed.
26914 # The text in the here-document typically retains its unix-style line
26915 # endings, while the output of objdump will use host line endings.
26916 # Therefore, use diff -b for the comparisons.
26917 if test x$gcc_cv_objdump != x \
26918 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26919 | tail -3 > conftest.got \
26920 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26921 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26922 then
26923 gcc_cv_as_eh_frame=yes
26924 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }; then
26930 gcc_cv_as_eh_frame=buggy
26931 else
26932 # Uh oh, what do we do now?
26933 gcc_cv_as_eh_frame=no
26934 fi
26935 else
26936 echo "configure: failed program was" >&5
26937 cat conftest.s >&5
26938 fi
26939 rm -f conftest.o conftest.s
26940 fi
26941 fi
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26943 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26944
26945
26946
26947 if test $gcc_cv_as_eh_frame = buggy; then
26948
26949 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26950
26951 fi
26952
26953 # Test if the assembler supports the section flag 'e' or #exclude for
26954 # specifying an excluded section.
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26956 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26957 if ${gcc_cv_as_section_exclude_e+:} false; then :
26958 $as_echo_n "(cached) " >&6
26959 else
26960 gcc_cv_as_section_exclude_e=no
26961 if test x$gcc_cv_as != x; then
26962 $as_echo '.section foo1,"e"
26963 .byte 0,0,0,0' > conftest.s
26964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; }
26970 then
26971 gcc_cv_as_section_exclude_e=yes
26972 else
26973 echo "configure: failed program was" >&5
26974 cat conftest.s >&5
26975 fi
26976 rm -f conftest.o conftest.s
26977 fi
26978 fi
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26980 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26981
26982
26983 if test $gcc_cv_as_section_exclude_e = no; then
26984 case "${target}" in
26985 # Solaris as uses #exclude instead.
26986 *-*-solaris2*)
26987 case "${target}" in
26988 sparc*-*-solaris2*)
26989 conftest_s='.section "foo1", #exclude'
26990 ;;
26991 i?86-*-solaris2* | x86_64-*-solaris2*)
26992 conftest_s='.section foo1, #exclude'
26993 ;;
26994 esac
26995 ;;
26996 esac
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26998 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26999 if ${gcc_cv_as_section_exclude_hash+:} false; then :
27000 $as_echo_n "(cached) " >&6
27001 else
27002 gcc_cv_as_section_exclude_hash=no
27003 if test x$gcc_cv_as != x; then
27004 $as_echo "$conftest_s
27005 .byte 0,0,0,0" > conftest.s
27006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27011 test $ac_status = 0; }; }
27012 then
27013 gcc_cv_as_section_exclude_hash=yes
27014 else
27015 echo "configure: failed program was" >&5
27016 cat conftest.s >&5
27017 fi
27018 rm -f conftest.o conftest.s
27019 fi
27020 fi
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
27022 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
27023
27024
27025 fi
27026
27027 cat >>confdefs.h <<_ACEOF
27028 #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`
27029 _ACEOF
27030
27031
27032 # Test if the assembler supports the section flag 'R' for specifying
27033 # section with SHF_GNU_RETAIN.
27034 case "${target}" in
27035 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27036 # assembler supports the section flag 'R', it doesn't mean that
27037 # Solairs ld supports it.
27038 *-*-solaris2*)
27039 gcc_cv_as_shf_gnu_retain=no
27040 ;;
27041 *)
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
27043 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
27044 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
27045 $as_echo_n "(cached) " >&6
27046 else
27047 gcc_cv_as_shf_gnu_retain=no
27048 if test x$gcc_cv_as != x; then
27049 $as_echo '.section .foo,"awR",%progbits
27050 .byte 0' > conftest.s
27051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27053 (eval $ac_try) 2>&5
27054 ac_status=$?
27055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27056 test $ac_status = 0; }; }
27057 then
27058 gcc_cv_as_shf_gnu_retain=yes
27059 else
27060 echo "configure: failed program was" >&5
27061 cat conftest.s >&5
27062 fi
27063 rm -f conftest.o conftest.s
27064 fi
27065 fi
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
27067 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
27068
27069
27070 ;;
27071 esac
27072
27073 cat >>confdefs.h <<_ACEOF
27074 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
27075 _ACEOF
27076
27077
27078 # Test if the assembler supports the section flag 'o' for specifying
27079 # section with link-order.
27080 case "${target}" in
27081 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27082 # assembler supports the section flag 'o', it doesn't mean that
27083 # Solairs ld supports it.
27084 *-*-solaris2*)
27085 gcc_cv_as_section_link_order=no
27086 ;;
27087 *)
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27089 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27090 if ${gcc_cv_as_section_link_order+:} false; then :
27091 $as_echo_n "(cached) " >&6
27092 else
27093 gcc_cv_as_section_link_order=no
27094 if test x$gcc_cv_as != x; then
27095 $as_echo '.section .foo,"a"
27096 .byte 0
27097 .section __patchable_function_entries,"awo",%progbits,.foo
27098 .byte 0' > conftest.s
27099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27104 test $ac_status = 0; }; }
27105 then
27106 gcc_cv_as_section_link_order=yes
27107 else
27108 echo "configure: failed program was" >&5
27109 cat conftest.s >&5
27110 fi
27111 rm -f conftest.o conftest.s
27112 fi
27113 fi
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27115 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27116
27117
27118 ;;
27119 esac
27120
27121 cat >>confdefs.h <<_ACEOF
27122 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27123 _ACEOF
27124
27125
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27127 $as_echo_n "checking assembler for section merging support... " >&6; }
27128 if ${gcc_cv_as_shf_merge+:} false; then :
27129 $as_echo_n "(cached) " >&6
27130 else
27131 gcc_cv_as_shf_merge=no
27132 if test x$gcc_cv_as != x; then
27133 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_shf_merge=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_shf_merge" >&5
27150 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27151
27152
27153 if test $gcc_cv_as_shf_merge = no; then
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support (%progbits)" >&5
27155 $as_echo_n "checking assembler for section merging support (%progbits)... " >&6; }
27156 if ${gcc_cv_as_shf_merge_percent+:} false; then :
27157 $as_echo_n "(cached) " >&6
27158 else
27159 gcc_cv_as_shf_merge_percent=no
27160 if test x$gcc_cv_as != x; then
27161 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27164 (eval $ac_try) 2>&5
27165 ac_status=$?
27166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27167 test $ac_status = 0; }; }
27168 then
27169 gcc_cv_as_shf_merge_percent=yes
27170 else
27171 echo "configure: failed program was" >&5
27172 cat conftest.s >&5
27173 fi
27174 rm -f conftest.o conftest.s
27175 fi
27176 fi
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge_percent" >&5
27178 $as_echo "$gcc_cv_as_shf_merge_percent" >&6; }
27179
27180
27181 fi
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes \
27185 || test $gcc_cv_as_shf_merge_percent = yes; then echo 1; else echo 0; fi`
27186 _ACEOF
27187
27188
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27190 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27191 if ${gcc_cv_as_comdat_group+:} false; then :
27192 $as_echo_n "(cached) " >&6
27193 else
27194 gcc_cv_as_comdat_group=no
27195 if test x$gcc_cv_as != x; then
27196 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202 test $ac_status = 0; }; }
27203 then
27204 gcc_cv_as_comdat_group=yes
27205 else
27206 echo "configure: failed program was" >&5
27207 cat conftest.s >&5
27208 fi
27209 rm -f conftest.o conftest.s
27210 fi
27211 fi
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27213 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27214
27215
27216 if test $gcc_cv_as_comdat_group = yes; then
27217 gcc_cv_as_comdat_group_percent=no
27218 gcc_cv_as_comdat_group_group=no
27219 else
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27221 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27222 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27223 $as_echo_n "(cached) " >&6
27224 else
27225 gcc_cv_as_comdat_group_percent=no
27226 if test x$gcc_cv_as != x; then
27227 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27230 (eval $ac_try) 2>&5
27231 ac_status=$?
27232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27233 test $ac_status = 0; }; }
27234 then
27235 gcc_cv_as_comdat_group_percent=yes
27236 else
27237 echo "configure: failed program was" >&5
27238 cat conftest.s >&5
27239 fi
27240 rm -f conftest.o conftest.s
27241 fi
27242 fi
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27244 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27245
27246
27247 if test $gcc_cv_as_comdat_group_percent = yes; then
27248 gcc_cv_as_comdat_group_group=no
27249 else
27250 case "${target}" in
27251 # Sun as uses a completely different syntax.
27252 *-*-solaris2*)
27253 case "${target}" in
27254 sparc*-*-solaris2*)
27255 conftest_s='
27256 .group foo,".text%foo",#comdat
27257 .section ".text%foo", #alloc,#execinstr,#progbits
27258 .globl foo
27259 foo:
27260 '
27261 ;;
27262 i?86-*-solaris2* | x86_64-*-solaris2*)
27263 conftest_s='
27264 .group foo,.text%foo,#comdat
27265 .section .text%foo, "ax", @progbits
27266 .globl foo
27267 foo:
27268 '
27269 ;;
27270 esac
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27272 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27273 if ${gcc_cv_as_comdat_group_group+:} false; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_as_comdat_group_group=no
27277 if test x$gcc_cv_as != x; then
27278 $as_echo "$conftest_s" > conftest.s
27279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27285 then
27286 gcc_cv_as_comdat_group_group=yes
27287 else
27288 echo "configure: failed program was" >&5
27289 cat conftest.s >&5
27290 fi
27291 rm -f conftest.o conftest.s
27292 fi
27293 fi
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27295 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27296
27297
27298 ;;
27299 esac
27300 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27301 gcc_cv_as_comdat_group_group=no
27302 fi
27303 fi
27304 fi
27305 if test x"$ld_is_gold" = xyes; then
27306 comdat_group=yes
27307 elif test x"$ld_is_mold" = xyes; then
27308 comdat_group=yes
27309 elif test $in_tree_ld = yes ; then
27310 comdat_group=no
27311 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 \
27312 && test $in_tree_ld_is_elf = yes; then
27313 comdat_group=yes
27314 fi
27315 elif echo "$ld_ver" | grep GNU > /dev/null; then
27316 comdat_group=yes
27317 if test 0"$ld_date" -lt 20050308; then
27318 if test -n "$ld_date"; then
27319 # If there was date string, but was earlier than 2005-03-08, fail
27320 comdat_group=no
27321 elif test "$ld_vers_major" -lt 2; then
27322 comdat_group=no
27323 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27324 comdat_group=no
27325 fi
27326 fi
27327 else
27328 case "${target}" in
27329 *-*-solaris2.1[1-9]*)
27330 comdat_group=no
27331 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27332 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27333 # version 1.688.
27334 #
27335 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27336 # least ld version 1.2267.
27337 if test "$ld_vers_major" -gt 1; then
27338 comdat_group=yes
27339 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27340 comdat_group=yes
27341 elif test "$ld_vers_minor" -ge 2267; then
27342 comdat_group=yes
27343 fi
27344 ;;
27345 *)
27346 # Assume linkers other than GNU ld don't support COMDAT group.
27347 comdat_group=no
27348 ;;
27349 esac
27350 fi
27351 # Allow overriding the automatic COMDAT group tests above.
27352 # Check whether --enable-comdat was given.
27353 if test "${enable_comdat+set}" = set; then :
27354 enableval=$enable_comdat; comdat_group="$enable_comdat"
27355 fi
27356
27357 if test $comdat_group = no; then
27358 gcc_cv_as_comdat_group=no
27359 gcc_cv_as_comdat_group_percent=no
27360 gcc_cv_as_comdat_group_group=no
27361 fi
27362
27363 cat >>confdefs.h <<_ACEOF
27364 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27365 || test $gcc_cv_as_comdat_group_percent = yes \
27366 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27367 _ACEOF
27368
27369
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27371 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27372 if ${gcc_cv_as_is_stmt+:} false; then :
27373 $as_echo_n "(cached) " >&6
27374 else
27375 gcc_cv_as_is_stmt=no
27376 if test x$gcc_cv_as != x; then
27377 $as_echo ' .text
27378 .file 1 "conf.c"
27379 .loc 1 1 0 is_stmt 1' > conftest.s
27380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27385 test $ac_status = 0; }; }
27386 then
27387 gcc_cv_as_is_stmt=yes
27388 else
27389 echo "configure: failed program was" >&5
27390 cat conftest.s >&5
27391 fi
27392 rm -f conftest.o conftest.s
27393 fi
27394 fi
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27396 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27397 if test $gcc_cv_as_is_stmt = yes; then
27398
27399 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27400
27401 fi
27402
27403
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27405 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27406 if ${gcc_cv_as_discriminator+:} false; then :
27407 $as_echo_n "(cached) " >&6
27408 else
27409 gcc_cv_as_discriminator=no
27410 if test x$gcc_cv_as != x; then
27411 $as_echo ' .text
27412 .file 1 "conf.c"
27413 .loc 1 1 0 discriminator 1' > conftest.s
27414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27419 test $ac_status = 0; }; }
27420 then
27421 gcc_cv_as_discriminator=yes
27422 else
27423 echo "configure: failed program was" >&5
27424 cat conftest.s >&5
27425 fi
27426 rm -f conftest.o conftest.s
27427 fi
27428 fi
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27430 $as_echo "$gcc_cv_as_discriminator" >&6; }
27431 if test $gcc_cv_as_discriminator = yes; then
27432
27433 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27434
27435 fi
27436
27437
27438 # Catch the newlib flag of the same name so we can gate GCC features on it.
27439 # Check whether --enable-newlib-nano-formatted-io was given.
27440 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27441 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27442 yes|no)
27443 ;;
27444 *)
27445 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27446 ;;
27447 esac
27448 fi
27449
27450
27451 # Thread-local storage - the check is heavily parameterized.
27452 conftest_s=
27453 tls_as_opt=
27454 case "$target" in
27455 alpha*-*-*)
27456 conftest_s='
27457 .section ".tdata","awT",@progbits
27458 foo: .long 25
27459 .text
27460 ldq $27,__tls_get_addr($29) !literal!1
27461 lda $16,foo($29) !tlsgd!1
27462 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27463 ldq $27,__tls_get_addr($29) !literal!2
27464 lda $16,foo($29) !tlsldm!2
27465 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27466 ldq $1,foo($29) !gotdtprel
27467 ldah $2,foo($29) !dtprelhi
27468 lda $3,foo($2) !dtprello
27469 lda $4,foo($29) !dtprel
27470 ldq $1,foo($29) !gottprel
27471 ldah $2,foo($29) !tprelhi
27472 lda $3,foo($2) !tprello
27473 lda $4,foo($29) !tprel'
27474 tls_as_opt=--fatal-warnings
27475 ;;
27476 arc*-*-*)
27477 conftest_s='
27478 add_s r0,r0, @foo@tpoff'
27479 ;;
27480 cris-*-*|crisv32-*-*)
27481 conftest_s='
27482 .section ".tdata","awT",@progbits
27483 x: .long 25
27484 .text
27485 move.d x:IE,$r10
27486 nop'
27487 tls_as_opt=--fatal-warnings
27488 ;;
27489 frv*-*-*)
27490 conftest_s='
27491 .section ".tdata","awT",@progbits
27492 x: .long 25
27493 .text
27494 call #gettlsoff(x)'
27495 ;;
27496 hppa*-*-linux*)
27497 conftest_s='
27498 t1: .reg %r20
27499 t2: .reg %r21
27500 gp: .reg %r19
27501 .section ".tdata","awT",@progbits
27502 foo: .long 25
27503 .text
27504 .align 4
27505 addil LT%foo-$tls_gdidx$,gp
27506 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27507 b __tls_get_addr
27508 nop
27509 addil LT%foo-$tls_ldidx$,gp
27510 b __tls_get_addr
27511 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27512 addil LR%foo-$tls_dtpoff$,%ret0
27513 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27514 mfctl %cr27,%t1
27515 addil LT%foo-$tls_ieoff$,gp
27516 ldw RT%foo-$tls_ieoff$(%r1),%t2
27517 add %t1,%t2,%t3
27518 mfctl %cr27,%t1
27519 addil LR%foo-$tls_leoff$,%t1
27520 ldo RR%foo-$tls_leoff$(%r1),%t2'
27521 tls_as_opt=--fatal-warnings
27522 ;;
27523 arm*-*-*)
27524 conftest_s='
27525 .section ".tdata","awT",%progbits
27526 foo: .long 25
27527 .text
27528 .word foo(gottpoff)
27529 .word foo(tpoff)
27530 .word foo(tlsgd)
27531 .word foo(tlsldm)
27532 .word foo(tlsldo)'
27533 ;;
27534 i[34567]86-*-* | x86_64-*-*)
27535 case "$target" in
27536 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27537 on_solaris=yes
27538 ;;
27539 *)
27540 on_solaris=no
27541 ;;
27542 esac
27543 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27544 conftest_s='
27545 .section .tdata,"awt",@progbits'
27546 tls_section_flag=t
27547
27548 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27549
27550 else
27551 conftest_s='
27552 .section ".tdata","awT",@progbits'
27553 tls_section_flag=T
27554 tls_as_opt="--fatal-warnings"
27555 fi
27556 case "$target" in
27557 i[34567]86-*-*)
27558 if test x$on_solaris = xyes; then
27559 case $gas_flag in
27560 yes) tls_as_opt="$tls_as_opt --32" ;;
27561 esac
27562 fi
27563 conftest_s="$conftest_s
27564 foo: .long 25
27565 .text
27566 movl %gs:0, %eax
27567 leal foo@tlsgd(,%ebx,1), %eax
27568 leal foo@tlsldm(%ebx), %eax
27569 leal foo@dtpoff(%eax), %edx
27570 movl foo@gottpoff(%ebx), %eax
27571 subl foo@gottpoff(%ebx), %eax
27572 addl foo@gotntpoff(%ebx), %eax
27573 movl foo@indntpoff, %eax
27574 movl \$foo@tpoff, %eax
27575 subl \$foo@tpoff, %eax
27576 leal foo@ntpoff(%ecx), %eax"
27577 ;;
27578 x86_64-*-*)
27579 if test x$on_solaris = xyes; then
27580 case $gas_flag in
27581 yes) tls_as_opt="$tls_as_opt --64" ;;
27582 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27583 esac
27584 fi
27585 conftest_s="$conftest_s
27586 foo: .long 25
27587 .text
27588 movq %fs:0, %rax
27589 leaq foo@tlsgd(%rip), %rdi
27590 leaq foo@tlsld(%rip), %rdi
27591 leaq foo@dtpoff(%rax), %rdx
27592 movq foo@gottpoff(%rip), %rax
27593 movq \$foo@tpoff, %rax"
27594 ;;
27595 esac
27596 ;;
27597 ia64-*-*)
27598 conftest_s='
27599 .section ".tdata","awT",@progbits
27600 foo: data8 25
27601 .text
27602 addl r16 = @ltoff(@dtpmod(foo#)), gp
27603 addl r17 = @ltoff(@dtprel(foo#)), gp
27604 addl r18 = @ltoff(@tprel(foo#)), gp
27605 addl r19 = @dtprel(foo#), gp
27606 adds r21 = @dtprel(foo#), r13
27607 movl r23 = @dtprel(foo#)
27608 addl r20 = @tprel(foo#), gp
27609 adds r22 = @tprel(foo#), r13
27610 movl r24 = @tprel(foo#)'
27611 tls_as_opt=--fatal-warnings
27612 ;;
27613 loongarch*-*-*)
27614 conftest_s='
27615 .section .tdata,"awT",@progbits
27616 x: .word 2
27617 .text
27618 la.tls.gd $a0,x
27619 bl __tls_get_addr'
27620 tls_first_major=0
27621 tls_first_minor=0
27622 tls_as_opt='--fatal-warnings'
27623 ;;
27624 microblaze*-*-*)
27625 conftest_s='
27626 .section .tdata,"awT",@progbits
27627 x:
27628 .word 2
27629 .text
27630 addik r5,r20,x@TLSGD
27631 addik r5,r20,x@TLSLDM'
27632 tls_as_opt='--fatal-warnings'
27633 ;;
27634 mips*-*-*)
27635 conftest_s='
27636 .section .tdata,"awT",@progbits
27637 x:
27638 .word 2
27639 .text
27640 addiu $4, $28, %tlsgd(x)
27641 addiu $4, $28, %tlsldm(x)
27642 lui $4, %dtprel_hi(x)
27643 addiu $4, $4, %dtprel_lo(x)
27644 lw $4, %gottprel(x)($28)
27645 lui $4, %tprel_hi(x)
27646 addiu $4, $4, %tprel_lo(x)'
27647 tls_as_opt='-32 --fatal-warnings'
27648 ;;
27649 m68k-*-*)
27650 conftest_s='
27651 .section .tdata,"awT",@progbits
27652 x:
27653 .word 2
27654 .text
27655 foo:
27656 move.l x@TLSGD(%a5),%a0
27657 move.l x@TLSLDM(%a5),%a0
27658 move.l x@TLSLDO(%a5),%a0
27659 move.l x@TLSIE(%a5),%a0
27660 move.l x@TLSLE(%a5),%a0'
27661 tls_as_opt='--fatal-warnings'
27662 ;;
27663 aarch64*-*-*)
27664 conftest_s='
27665 .section ".tdata","awT",%progbits
27666 foo: .long 25
27667 .text
27668 adrp x0, :tlsgd:x
27669 add x0, x0, #:tlsgd_lo12:x
27670 bl __tls_get_addr
27671 nop'
27672 tls_as_opt='--fatal-warnings'
27673 ;;
27674 or1k*-*-*)
27675 conftest_s='
27676 .section ".tdata","awT",@progbits
27677 foo: .long 25
27678 .text
27679 l.movhi r3, tpoffha(foo)
27680 l.add r3, r3, r10
27681 l.lwz r4, tpofflo(foo)(r3)'
27682 tls_as_opt=--fatal-warnings
27683 ;;
27684 powerpc-ibm-aix*)
27685 conftest_s='
27686 .extern __get_tpointer
27687 .toc
27688 LC..1:
27689 .tc a[TC],a[TL]@le
27690 .csect .text[PR]
27691 .tlstest:
27692 lwz 9,LC..1(2)
27693 bla __get_tpointer
27694 lwzx 3,9,3
27695 .globl a
27696 .csect a[TL],4
27697 a:
27698 .space 4'
27699 ;;
27700 powerpc64*-*-*)
27701 conftest_s='
27702 .section ".tdata","awT",@progbits
27703 .align 3
27704 ld0: .space 8
27705 ld1: .space 8
27706 x1: .space 8
27707 x2: .space 8
27708 x3: .space 8
27709 .text
27710 addi 3,2,ld0@got@tlsgd
27711 bl .__tls_get_addr
27712 nop
27713 addi 3,2,ld1@toc
27714 bl .__tls_get_addr
27715 nop
27716 addi 3,2,x1@got@tlsld
27717 bl .__tls_get_addr
27718 nop
27719 addi 9,3,x1@dtprel
27720 bl .__tls_get_addr
27721 nop
27722 addis 9,3,x2@dtprel@ha
27723 addi 9,9,x2@dtprel@l
27724 bl .__tls_get_addr
27725 nop
27726 ld 9,x3@got@dtprel(2)
27727 add 9,9,3
27728 bl .__tls_get_addr
27729 nop'
27730 tls_as_opt="-a64 --fatal-warnings"
27731 ;;
27732 powerpc*-*-*)
27733 conftest_s='
27734 .section ".tdata","awT",@progbits
27735 .align 2
27736 ld0: .space 4
27737 ld1: .space 4
27738 x1: .space 4
27739 x2: .space 4
27740 x3: .space 4
27741 .text
27742 addi 3,31,ld0@got@tlsgd
27743 bl __tls_get_addr
27744 addi 3,31,x1@got@tlsld
27745 bl __tls_get_addr
27746 addi 9,3,x1@dtprel
27747 addis 9,3,x2@dtprel@ha
27748 addi 9,9,x2@dtprel@l
27749 lwz 9,x3@got@tprel(31)
27750 add 9,9,x@tls
27751 addi 9,2,x1@tprel
27752 addis 9,2,x2@tprel@ha
27753 addi 9,9,x2@tprel@l'
27754 tls_as_opt="-a32 --fatal-warnings"
27755 ;;
27756 riscv*-*-*)
27757 conftest_s='
27758 .section .tdata,"awT",@progbits
27759 x: .word 2
27760 .text
27761 la.tls.gd a0,x
27762 call __tls_get_addr'
27763 tls_as_opt='--fatal-warnings'
27764 ;;
27765 s390-*-*)
27766 conftest_s='
27767 .section ".tdata","awT",@progbits
27768 foo: .long 25
27769 .text
27770 .long foo@TLSGD
27771 .long foo@TLSLDM
27772 .long foo@DTPOFF
27773 .long foo@NTPOFF
27774 .long foo@GOTNTPOFF
27775 .long foo@INDNTPOFF
27776 l %r1,foo@GOTNTPOFF(%r12)
27777 l %r1,0(%r1):tls_load:foo
27778 bas %r14,0(%r1,%r13):tls_gdcall:foo
27779 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27780 tls_as_opt="-m31 --fatal-warnings"
27781 ;;
27782 s390x-*-*)
27783 conftest_s='
27784 .section ".tdata","awT",@progbits
27785 foo: .long 25
27786 .text
27787 .quad foo@TLSGD
27788 .quad foo@TLSLDM
27789 .quad foo@DTPOFF
27790 .quad foo@NTPOFF
27791 .quad foo@GOTNTPOFF
27792 lg %r1,foo@GOTNTPOFF(%r12)
27793 larl %r1,foo@INDNTPOFF
27794 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27795 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27796 tls_as_opt="-m64 -Aesame --fatal-warnings"
27797 ;;
27798 sh-*-* | sh[123456789lbe]*-*-*)
27799 conftest_s='
27800 .section ".tdata","awT",@progbits
27801 foo: .long 25
27802 .text
27803 .long foo@TLSGD
27804 .long foo@TLSLDM
27805 .long foo@DTPOFF
27806 .long foo@GOTTPOFF
27807 .long foo@TPOFF'
27808 tls_as_opt=--fatal-warnings
27809 ;;
27810 sparc*-*-*)
27811 case "$target" in
27812 sparc*-sun-solaris2.*)
27813 on_solaris=yes
27814 ;;
27815 *)
27816 on_solaris=no
27817 ;;
27818 esac
27819 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27820 conftest_s='
27821 .section ".tdata",#alloc,#write,#tls'
27822 else
27823 conftest_s='
27824 .section ".tdata","awT",@progbits'
27825 tls_as_opt="-32 --fatal-warnings"
27826 fi
27827 conftest_s="$conftest_s
27828 foo: .long 25
27829 .text
27830 sethi %tgd_hi22(foo), %o0
27831 add %o0, %tgd_lo10(foo), %o1
27832 add %l7, %o1, %o0, %tgd_add(foo)
27833 call __tls_get_addr, %tgd_call(foo)
27834 sethi %tldm_hi22(foo), %l1
27835 add %l1, %tldm_lo10(foo), %l2
27836 add %l7, %l2, %o0, %tldm_add(foo)
27837 call __tls_get_addr, %tldm_call(foo)
27838 sethi %tldo_hix22(foo), %l3
27839 xor %l3, %tldo_lox10(foo), %l4
27840 add %o0, %l4, %l5, %tldo_add(foo)
27841 sethi %tie_hi22(foo), %o3
27842 add %o3, %tie_lo10(foo), %o3
27843 ld [%l7 + %o3], %o2, %tie_ld(foo)
27844 add %g7, %o2, %o4, %tie_add(foo)
27845 sethi %tle_hix22(foo), %l1
27846 xor %l1, %tle_lox10(foo), %o5
27847 ld [%g7 + %o5], %o1"
27848 ;;
27849 xtensa*-*-*)
27850 conftest_s='
27851 .section ".tdata","awT",@progbits
27852 foo: .long 25
27853 .text
27854 movi a8, foo@TLSFUNC
27855 movi a10, foo@TLSARG
27856 callx8.tls a8, foo@TLSCALL'
27857 ;;
27858 esac
27859 set_have_as_tls=no
27860 if test "x$enable_tls" = xno ; then
27861 : # TLS explicitly disabled.
27862 elif test "x$enable_tls" = xyes ; then
27863 set_have_as_tls=yes # TLS explicitly enabled.
27864 elif test -z "$conftest_s"; then
27865 : # If we don't have a check, assume no support.
27866 else
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27868 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27869 if ${gcc_cv_as_tls+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871 else
27872 gcc_cv_as_tls=no
27873 if test x$gcc_cv_as != x; then
27874 $as_echo "$conftest_s" > conftest.s
27875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27880 test $ac_status = 0; }; }
27881 then
27882 gcc_cv_as_tls=yes
27883 else
27884 echo "configure: failed program was" >&5
27885 cat conftest.s >&5
27886 fi
27887 rm -f conftest.o conftest.s
27888 fi
27889 fi
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27891 $as_echo "$gcc_cv_as_tls" >&6; }
27892 if test $gcc_cv_as_tls = yes; then
27893 set_have_as_tls=yes
27894 fi
27895
27896 fi
27897 if test $set_have_as_tls = yes ; then
27898
27899 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27900
27901 fi
27902
27903 # Target-specific assembler checks.
27904
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27906 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27907 gcc_cv_ld_static_dynamic=no
27908 gcc_cv_ld_static_option='-Bstatic'
27909 gcc_cv_ld_dynamic_option='-Bdynamic'
27910 if test $in_tree_ld = yes ; then
27911 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
27912 gcc_cv_ld_static_dynamic=yes
27913 fi
27914 elif test x$gcc_cv_ld != x; then
27915 # Check if linker supports -Bstatic/-Bdynamic option
27916 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27917 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27918 gcc_cv_ld_static_dynamic=yes
27919 else
27920 case "$target" in
27921 # AIX ld uses -b flags
27922 *-*-aix4.[23]* | *-*-aix[5-9]*)
27923 gcc_cv_ld_static_dynamic=yes
27924 gcc_cv_ld_static_option="-bstatic"
27925 gcc_cv_ld_dynamic_option="-bdynamic"
27926 ;;
27927 # HP-UX ld uses -a flags to select between shared and archive.
27928 *-*-hpux*)
27929 if test x"$gnu_ld" = xno; then
27930 gcc_cv_ld_static_dynamic=yes
27931 gcc_cv_ld_static_option="-aarchive_shared"
27932 gcc_cv_ld_dynamic_option="-adefault"
27933 fi
27934 ;;
27935 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27936 *-*-solaris2*)
27937 gcc_cv_ld_static_dynamic=yes
27938 ;;
27939 esac
27940 fi
27941 fi
27942 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27943
27944 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27945
27946
27947 cat >>confdefs.h <<_ACEOF
27948 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27949 _ACEOF
27950
27951
27952 cat >>confdefs.h <<_ACEOF
27953 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27954 _ACEOF
27955
27956 fi
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27958 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27959
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27961 $as_echo_n "checking linker --version-script option... " >&6; }
27962 gcc_cv_ld_version_script=no
27963 ld_version_script_option=''
27964 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27965 gcc_cv_ld_version_script=yes
27966 ld_version_script_option='--version-script'
27967 elif test x$gcc_cv_ld != x; then
27968 case "$target" in
27969 # Solaris 2 ld always supports -M. It also supports a subset of
27970 # --version-script since Solaris 11.4, but requires
27971 # -z gnu-version-script-compat to activate.
27972 *-*-solaris2*)
27973 gcc_cv_ld_version_script=yes
27974 ld_version_script_option='-M'
27975 ;;
27976 esac
27977 fi
27978 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27980 $as_echo "$gcc_cv_ld_version_script" >&6; }
27981
27982
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27984 $as_echo_n "checking linker soname option... " >&6; }
27985 gcc_cv_ld_soname=no
27986 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27987 gcc_cv_ld_soname=yes
27988 ld_soname_option='-soname'
27989 elif test x$gcc_cv_ld != x; then
27990 case "$target" in
27991 *-*-darwin*)
27992 gcc_cv_ld_soname=yes
27993 ld_soname_option='-install_name'
27994 ;;
27995 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27996 # ld compatiblity since some Solaris 10 update.
27997 *-*-solaris2*)
27998 gcc_cv_ld_soname=yes
27999 ld_soname_option='-h'
28000 ;;
28001 esac
28002 fi
28003 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
28005 $as_echo "$gcc_cv_ld_soname" >&6; }
28006
28007
28008 if test x"$demangler_in_ld" = xyes; then
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
28010 $as_echo_n "checking linker --demangle support... " >&6; }
28011 gcc_cv_ld_demangle=no
28012 if test $in_tree_ld = yes; then
28013 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 \
28014 gcc_cv_ld_demangle=yes
28015 fi
28016 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
28017 # Check if the GNU linker supports --demangle option
28018 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
28019 gcc_cv_ld_demangle=yes
28020 fi
28021 fi
28022 if test x"$gcc_cv_ld_demangle" = xyes; then
28023
28024 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
28025
28026 fi
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
28028 $as_echo "$gcc_cv_ld_demangle" >&6; }
28029 fi
28030
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
28032 $as_echo_n "checking linker plugin support... " >&6; }
28033 gcc_cv_lto_plugin=0
28034 if test -f liblto_plugin.la; then
28035 save_ld_ver="$ld_ver"
28036 save_ld_vers_major="$ld_vers_major"
28037 save_ld_vers_minor="$ld_vers_minor"
28038 save_ld_is_gold="$ld_is_gold"
28039
28040 ld_is_gold=no
28041
28042 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
28043 ld_ver="GNU ld"
28044 # FIXME: ld_is_gold?
28045 ld_vers_major="$gcc_cv_gld_major_version"
28046 ld_vers_minor="$gcc_cv_gld_minor_version"
28047 else
28048 # Determine plugin linker version.
28049 # FIXME: Partial duplicate from above, generalize.
28050 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28051 if echo "$ld_ver" | grep GNU > /dev/null; then
28052 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
28053 ld_is_gold=yes
28054 ld_vers=`echo $ld_ver | sed -n \
28055 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28056 else
28057 ld_vers=`echo $ld_ver | sed -n \
28058 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28059 fi
28060 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
28061 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28062 fi
28063 fi
28064
28065 # Determine plugin support.
28066 if echo "$ld_ver" | grep GNU > /dev/null; then
28067 # Require GNU ld or gold 2.21+ for plugin support by default.
28068 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28069 gcc_cv_lto_plugin=2
28070 elif test "$ld_is_mold" = yes; then
28071 gcc_cv_lto_plugin=2
28072 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28073 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28074 gcc_cv_lto_plugin=1
28075 fi
28076 fi
28077
28078 ld_ver="$save_ld_ver"
28079 ld_vers_major="$save_ld_vers_major"
28080 ld_vers_minor="$save_ld_vers_minor"
28081 ld_is_gold="$save_ld_is_gold"
28082 fi
28083
28084 cat >>confdefs.h <<_ACEOF
28085 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28086 _ACEOF
28087
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28089 $as_echo "$gcc_cv_lto_plugin" >&6; }
28090
28091 # Target OS-specific assembler checks.
28092
28093 case "$target_os" in
28094 darwin*)
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28096 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28097 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
28098 $as_echo_n "(cached) " >&6
28099 else
28100 gcc_cv_as_mmacosx_version_min=no
28101 if test x$gcc_cv_as != x; then
28102 $as_echo '.text' > conftest.s
28103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28108 test $ac_status = 0; }; }
28109 then
28110 gcc_cv_as_mmacosx_version_min=yes
28111 else
28112 echo "configure: failed program was" >&5
28113 cat conftest.s >&5
28114 fi
28115 rm -f conftest.o conftest.s
28116 fi
28117 fi
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28119 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28120 if test $gcc_cv_as_mmacosx_version_min = yes; then
28121
28122 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28123
28124 fi
28125
28126 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28128 $as_echo_n "checking assembler for .build_version... " >&6; }
28129 if ${gcc_cv_as_darwin_build_version+:} false; then :
28130 $as_echo_n "(cached) " >&6
28131 else
28132 gcc_cv_as_darwin_build_version=no
28133 if test x$gcc_cv_as != x; then
28134 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28137 (eval $ac_try) 2>&5
28138 ac_status=$?
28139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28140 test $ac_status = 0; }; }
28141 then
28142 gcc_cv_as_darwin_build_version=yes
28143 else
28144 echo "configure: failed program was" >&5
28145 cat conftest.s >&5
28146 fi
28147 rm -f conftest.o conftest.s
28148 fi
28149 fi
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28151 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28152 if test $gcc_cv_as_darwin_build_version = yes; then
28153
28154 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28155
28156 fi
28157
28158 fi
28159 ;;
28160 esac
28161
28162 # Target CPU-specific assembler checks.
28163
28164 case "$target" in
28165 aarch64*-*-*)
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28167 $as_echo_n "checking assembler for -mabi option... " >&6; }
28168 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28169 $as_echo_n "(cached) " >&6
28170 else
28171 gcc_cv_as_aarch64_mabi=no
28172 if test x$gcc_cv_as != x; then
28173 $as_echo '.text' > conftest.s
28174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28176 (eval $ac_try) 2>&5
28177 ac_status=$?
28178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28179 test $ac_status = 0; }; }
28180 then
28181 gcc_cv_as_aarch64_mabi=yes
28182 else
28183 echo "configure: failed program was" >&5
28184 cat conftest.s >&5
28185 fi
28186 rm -f conftest.o conftest.s
28187 fi
28188 fi
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28190 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28191
28192
28193 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28194
28195 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28196
28197 else
28198 if test x$with_abi = xilp32; then
28199 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28200 Upgrade the Assembler." "$LINENO" 5
28201 fi
28202 if test x"$with_multilib_list" = xdefault; then
28203 TM_MULTILIB_CONFIG=lp64
28204 else
28205 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28206 for aarch64_multilib in ${aarch64_multilibs}; do
28207 case ${aarch64_multilib} in
28208 ilp32)
28209 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28210 Upgrade the Assembler." "$LINENO" 5
28211 ;;
28212 *)
28213 ;;
28214 esac
28215 done
28216 fi
28217 fi
28218 # Check if we have binutils support for relocations types needed by -fpic
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28220 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28221 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28222 $as_echo_n "(cached) " >&6
28223 else
28224 gcc_cv_as_aarch64_picreloc=no
28225 if test x$gcc_cv_as != x; then
28226 $as_echo '
28227 .text
28228 ldr x0, [x2, #:gotpage_lo15:globalsym]
28229 ' > conftest.s
28230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235 test $ac_status = 0; }; }
28236 then
28237 gcc_cv_as_aarch64_picreloc=yes
28238 else
28239 echo "configure: failed program was" >&5
28240 cat conftest.s >&5
28241 fi
28242 rm -f conftest.o conftest.s
28243 fi
28244 fi
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28246 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28247 if test $gcc_cv_as_aarch64_picreloc = yes; then
28248
28249 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28250
28251 fi
28252
28253 # Enable Branch Target Identification Mechanism and Return Address
28254 # Signing by default.
28255 # Check whether --enable-standard-branch-protection was given.
28256 if test "${enable_standard_branch_protection+set}" = set; then :
28257 enableval=$enable_standard_branch_protection;
28258 case $enableval in
28259 yes)
28260 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1 TARGET_ENABLE_GCS=1"
28261 ;;
28262 no)
28263 ;;
28264 *)
28265 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28266 Valid choices are 'yes' and 'no'." "$LINENO" 5
28267 ;;
28268 esac
28269
28270 fi
28271
28272 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28273 # Check whether --enable-fix-cortex-a53-835769 was given.
28274 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28275 enableval=$enable_fix_cortex_a53_835769;
28276 case $enableval in
28277 yes)
28278 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28279 ;;
28280 no)
28281 ;;
28282 *)
28283 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28284 Valid choices are 'yes' and 'no'." "$LINENO" 5
28285 ;;
28286
28287 esac
28288
28289 fi
28290
28291 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28292 # Check whether --enable-fix-cortex-a53-843419 was given.
28293 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28294 enableval=$enable_fix_cortex_a53_843419;
28295 case $enableval in
28296 yes)
28297 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28298 ;;
28299 no)
28300 ;;
28301 *)
28302 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28303 Valid choices are 'yes' and 'no'." "$LINENO" 5
28304 ;;
28305
28306 esac
28307
28308 fi
28309
28310 ;;
28311
28312 # All TARGET_ABI_OSF targets.
28313 alpha*-*-linux* | alpha*-*-*bsd*)
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28315 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28316 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28317 $as_echo_n "(cached) " >&6
28318 else
28319 gcc_cv_as_alpha_explicit_relocs=no
28320 if test x$gcc_cv_as != x; then
28321 $as_echo ' .set nomacro
28322 .text
28323 extbl $3, $2, $3 !lituse_bytoff!1
28324 ldq $2, a($29) !literal!1
28325 ldq $4, b($29) !literal!2
28326 ldq_u $3, 0($2) !lituse_base!1
28327 ldq $27, f($29) !literal!5
28328 jsr $26, ($27), f !lituse_jsr!5
28329 ldah $29, 0($26) !gpdisp!3
28330 lda $0, c($29) !gprel
28331 ldah $1, d($29) !gprelhigh
28332 lda $1, d($1) !gprellow
28333 lda $29, 0($29) !gpdisp!3' > conftest.s
28334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28336 (eval $ac_try) 2>&5
28337 ac_status=$?
28338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28339 test $ac_status = 0; }; }
28340 then
28341 gcc_cv_as_alpha_explicit_relocs=yes
28342 else
28343 echo "configure: failed program was" >&5
28344 cat conftest.s >&5
28345 fi
28346 rm -f conftest.o conftest.s
28347 fi
28348 fi
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28350 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28351 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28352
28353 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28354
28355 fi
28356
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28358 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28359 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28360 $as_echo_n "(cached) " >&6
28361 else
28362 gcc_cv_as_alpha_jsrdirect_relocs=no
28363 if test x$gcc_cv_as != x; then
28364 $as_echo ' .set nomacro
28365 .text
28366 ldq $27, a($29) !literal!1
28367 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28373 test $ac_status = 0; }; }
28374 then
28375 gcc_cv_as_alpha_jsrdirect_relocs=yes
28376 else
28377 echo "configure: failed program was" >&5
28378 cat conftest.s >&5
28379 fi
28380 rm -f conftest.o conftest.s
28381 fi
28382 fi
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28384 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28385 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28386
28387 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28388
28389 fi
28390
28391 ;;
28392
28393 avr-*-*)
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28395 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28396 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28397 $as_echo_n "(cached) " >&6
28398 else
28399 gcc_cv_as_avr_mlink_relax=no
28400 if test x$gcc_cv_as != x; then
28401 $as_echo '.text' > conftest.s
28402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28407 test $ac_status = 0; }; }
28408 then
28409 gcc_cv_as_avr_mlink_relax=yes
28410 else
28411 echo "configure: failed program was" >&5
28412 cat conftest.s >&5
28413 fi
28414 rm -f conftest.o conftest.s
28415 fi
28416 fi
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28418 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28419 if test $gcc_cv_as_avr_mlink_relax = yes; then
28420
28421 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28422
28423 fi
28424
28425
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28427 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28428 if ${gcc_cv_as_avr_mrmw+:} false; then :
28429 $as_echo_n "(cached) " >&6
28430 else
28431 gcc_cv_as_avr_mrmw=no
28432 if test x$gcc_cv_as != x; then
28433 $as_echo '.text' > conftest.s
28434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28439 test $ac_status = 0; }; }
28440 then
28441 gcc_cv_as_avr_mrmw=yes
28442 else
28443 echo "configure: failed program was" >&5
28444 cat conftest.s >&5
28445 fi
28446 rm -f conftest.o conftest.s
28447 fi
28448 fi
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28450 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28451 if test $gcc_cv_as_avr_mrmw = yes; then
28452
28453 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28454
28455 fi
28456
28457
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28459 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28460 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28461 $as_echo_n "(cached) " >&6
28462 else
28463 gcc_cv_as_avr_mgccisr=no
28464 if test x$gcc_cv_as != x; then
28465 $as_echo '.text
28466 __gcc_isr 1
28467 __gcc_isr 2
28468 __gcc_isr 0,r24
28469 ' > conftest.s
28470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28472 (eval $ac_try) 2>&5
28473 ac_status=$?
28474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28475 test $ac_status = 0; }; }
28476 then
28477 gcc_cv_as_avr_mgccisr=yes
28478 else
28479 echo "configure: failed program was" >&5
28480 cat conftest.s >&5
28481 fi
28482 rm -f conftest.o conftest.s
28483 fi
28484 fi
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28486 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28487 if test $gcc_cv_as_avr_mgccisr = yes; then
28488
28489 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28490
28491 fi
28492
28493
28494 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28495 # Check how default linker description file implements .rodata for
28496 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28497 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28499 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28500 cat > conftest.s <<EOF
28501 .section .rodata,"a",@progbits
28502 .global xxvaryy
28503 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28504 xxvaryy:
28505 .word 1
28506 EOF
28507 rm -f conftest.nm
28508 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28513 test $ac_status = 0; }; }
28514 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28519 test $ac_status = 0; }; }
28520 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28525 test $ac_status = 0; }; }
28526 if test -s conftest.nm
28527 then
28528 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28530 $as_echo "yes" >&6; }
28531
28532 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28533
28534 else
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28536 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28537 echo "$as_me: nm output was" >&5
28538 cat conftest.nm >&5
28539 { $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
28540 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28541 fi
28542 else
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28544 $as_echo "test failed" >&6; }
28545 echo "$as_me: failed program was" >&5
28546 cat conftest.s >&5
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28548 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28549 fi
28550 rm -f conftest.s conftest.o conftest.elf conftest.nm
28551
28552 # Check for emulation avrxmega2_flmap.
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28554 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28555 cat > conftest.s <<EOF
28556 .section .text,"ax",@progbits
28557 ldi r16, __flmap_value_with_lock
28558 EOF
28559 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28561 (eval $ac_try) 2>&5
28562 ac_status=$?
28563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; }
28565 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28567 (eval $ac_try) 2>&5
28568 ac_status=$?
28569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28570 test $ac_status = 0; }; }
28571 if test -s conftest.elf
28572 then
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28574 $as_echo "yes" >&6; }
28575
28576 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28577
28578 else
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28580 $as_echo "no" >&6; }
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28582 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28584 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28585 fi
28586 rm -f conftest.o conftest.elf
28587
28588 # Check for emulation avrxmega4_flmap.
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28590 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28591 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28596 test $ac_status = 0; }; }
28597 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28602 test $ac_status = 0; }; }
28603 if test -s conftest.elf
28604 then
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28606 $as_echo "yes" >&6; }
28607
28608 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28609
28610 else
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28612 $as_echo "no" >&6; }
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28614 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28616 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28617 fi
28618 rm -f conftest.s conftest.o conftest.elf
28619 ;;
28620
28621 cris-*-*)
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28623 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28624 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28625 $as_echo_n "(cached) " >&6
28626 else
28627 gcc_cv_as_cris_no_mul_bug=no
28628 if test x$gcc_cv_as != x; then
28629 $as_echo '.text' > conftest.s
28630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28635 test $ac_status = 0; }; }
28636 then
28637 gcc_cv_as_cris_no_mul_bug=yes
28638 else
28639 echo "configure: failed program was" >&5
28640 cat conftest.s >&5
28641 fi
28642 rm -f conftest.o conftest.s
28643 fi
28644 fi
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28646 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28647 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28648
28649 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28650
28651 fi
28652
28653 ;;
28654
28655 sparc*-*-*)
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28657 $as_echo_n "checking assembler for -relax option... " >&6; }
28658 if ${gcc_cv_as_sparc_relax+:} false; then :
28659 $as_echo_n "(cached) " >&6
28660 else
28661 gcc_cv_as_sparc_relax=no
28662 if test x$gcc_cv_as != x; then
28663 $as_echo '.text' > conftest.s
28664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28666 (eval $ac_try) 2>&5
28667 ac_status=$?
28668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28669 test $ac_status = 0; }; }
28670 then
28671 gcc_cv_as_sparc_relax=yes
28672 else
28673 echo "configure: failed program was" >&5
28674 cat conftest.s >&5
28675 fi
28676 rm -f conftest.o conftest.s
28677 fi
28678 fi
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28680 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28681 if test $gcc_cv_as_sparc_relax = yes; then
28682
28683 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28684
28685 fi
28686
28687
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28689 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28690 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28691 $as_echo_n "(cached) " >&6
28692 else
28693 gcc_cv_as_sparc_gotdata_op=no
28694 if test x$gcc_cv_as != x; then
28695 $as_echo '.text
28696 .align 4
28697 foo:
28698 nop
28699 bar:
28700 sethi %gdop_hix22(foo), %g1
28701 xor %g1, %gdop_lox10(foo), %g1
28702 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708 test $ac_status = 0; }; }
28709 then
28710 if test x$gcc_cv_ld != x \
28711 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28712 if test x$gcc_cv_objdump != x; then
28713 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28714 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28715 gcc_cv_as_sparc_gotdata_op=no
28716 else
28717 gcc_cv_as_sparc_gotdata_op=yes
28718 fi
28719 fi
28720 fi
28721 rm -f conftest
28722 else
28723 echo "configure: failed program was" >&5
28724 cat conftest.s >&5
28725 fi
28726 rm -f conftest.o conftest.s
28727 fi
28728 fi
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28730 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28731 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28732
28733 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28734
28735 fi
28736
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28739 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28740 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28741 $as_echo_n "(cached) " >&6
28742 else
28743 gcc_cv_as_sparc_ua_pcrel=no
28744 if test x$gcc_cv_as != x; then
28745 $as_echo '.text
28746 foo:
28747 nop
28748 .data
28749 .align 4
28750 .byte 0
28751 .uaword %r_disp32(foo)' > conftest.s
28752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28754 (eval $ac_try) 2>&5
28755 ac_status=$?
28756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28757 test $ac_status = 0; }; }
28758 then
28759 if test x$gcc_cv_ld != x \
28760 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28761 gcc_cv_as_sparc_ua_pcrel=yes
28762 fi
28763 rm -f conftest
28764 else
28765 echo "configure: failed program was" >&5
28766 cat conftest.s >&5
28767 fi
28768 rm -f conftest.o conftest.s
28769 fi
28770 fi
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28772 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28773 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28774
28775 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28776
28777
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28779 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28780 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28781 $as_echo_n "(cached) " >&6
28782 else
28783 gcc_cv_as_sparc_ua_pcrel_hidden=no
28784 if test x$gcc_cv_as != x; then
28785 $as_echo '.data
28786 .align 4
28787 .byte 0x31
28788 .uaword %r_disp32(foo)
28789 .byte 0x32, 0x33, 0x34
28790 .global foo
28791 .hidden foo
28792 foo:
28793 .skip 4' > conftest.s
28794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; }
28800 then
28801 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28802 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28803 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28804 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28805 if $gcc_cv_objdump -R conftest 2> /dev/null \
28806 | grep 'DISP32' > /dev/null 2>&1; then
28807 :
28808 else
28809 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28810 fi
28811 fi
28812 rm -f conftest
28813 else
28814 echo "configure: failed program was" >&5
28815 cat conftest.s >&5
28816 fi
28817 rm -f conftest.o conftest.s
28818 fi
28819 fi
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28821 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28822 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28823
28824 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28825
28826 fi
28827
28828
28829 fi
28830 # unaligned pcrel relocs
28831
28832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28833 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28834 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28835 $as_echo_n "(cached) " >&6
28836 else
28837 gcc_cv_as_sparc_offsetable_lo10=no
28838 if test x$gcc_cv_as != x; then
28839 $as_echo '.text
28840 or %g1, %lo(ab) + 12, %g1
28841 or %g1, %lo(ab + 12), %g1' > conftest.s
28842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28847 test $ac_status = 0; }; }
28848 then
28849 if test x$gcc_cv_objdump != x \
28850 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28851 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28852 gcc_cv_as_sparc_offsetable_lo10=yes
28853 fi
28854 else
28855 echo "configure: failed program was" >&5
28856 cat conftest.s >&5
28857 fi
28858 rm -f conftest.o conftest.s
28859 fi
28860 fi
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28862 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28863 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28864
28865 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28866
28867 fi
28868
28869
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28871 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28872 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28873 $as_echo_n "(cached) " >&6
28874 else
28875 gcc_cv_as_sparc_fmaf=no
28876 if test x$gcc_cv_as != x; then
28877 $as_echo '.text
28878 .register %g2, #scratch
28879 .register %g3, #scratch
28880 .align 4
28881 fmaddd %f0, %f2, %f4, %f6
28882 addxccc %g1, %g2, %g3
28883 fsrl32 %f2, %f4, %f8
28884 fnaddd %f10, %f12, %f14' > conftest.s
28885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28887 (eval $ac_try) 2>&5
28888 ac_status=$?
28889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28890 test $ac_status = 0; }; }
28891 then
28892 gcc_cv_as_sparc_fmaf=yes
28893 else
28894 echo "configure: failed program was" >&5
28895 cat conftest.s >&5
28896 fi
28897 rm -f conftest.o conftest.s
28898 fi
28899 fi
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28901 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28902 if test $gcc_cv_as_sparc_fmaf = yes; then
28903
28904 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28905
28906 fi
28907
28908
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28910 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28911 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28912 $as_echo_n "(cached) " >&6
28913 else
28914 gcc_cv_as_sparc_sparc4=no
28915 if test x$gcc_cv_as != x; then
28916 $as_echo '.text
28917 .register %g2, #scratch
28918 .register %g3, #scratch
28919 .align 4
28920 cxbe %g2, %g3, 1f
28921 1: cwbneg %g2, %g3, 1f
28922 1: sha1
28923 md5
28924 aes_kexpand0 %f4, %f6, %f8
28925 des_round %f38, %f40, %f42, %f44
28926 camellia_f %f54, %f56, %f58, %f60
28927 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28933 test $ac_status = 0; }; }
28934 then
28935 gcc_cv_as_sparc_sparc4=yes
28936 else
28937 echo "configure: failed program was" >&5
28938 cat conftest.s >&5
28939 fi
28940 rm -f conftest.o conftest.s
28941 fi
28942 fi
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28944 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28945 if test $gcc_cv_as_sparc_sparc4 = yes; then
28946
28947 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28948
28949 fi
28950
28951
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28953 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28954 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28955 $as_echo_n "(cached) " >&6
28956 else
28957 gcc_cv_as_sparc_sparc5=no
28958 if test x$gcc_cv_as != x; then
28959 $as_echo '.text
28960 .register %g2, #scratch
28961 .register %g3, #scratch
28962 .align 4
28963 subxc %g1, %g2, %g3
28964 fpadd8 %f0, %f2, %f4' > conftest.s
28965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28967 (eval $ac_try) 2>&5
28968 ac_status=$?
28969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28970 test $ac_status = 0; }; }
28971 then
28972 gcc_cv_as_sparc_sparc5=yes
28973 else
28974 echo "configure: failed program was" >&5
28975 cat conftest.s >&5
28976 fi
28977 rm -f conftest.o conftest.s
28978 fi
28979 fi
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28981 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28982 if test $gcc_cv_as_sparc_sparc5 = yes; then
28983
28984 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28985
28986 fi
28987
28988
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28990 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28991 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28992 $as_echo_n "(cached) " >&6
28993 else
28994 gcc_cv_as_sparc_sparc6=no
28995 if test x$gcc_cv_as != x; then
28996 $as_echo '.text
28997 .register %g2, #scratch
28998 .register %g3, #scratch
28999 .align 4
29000 rd %entropy, %g1
29001 fpsll64x %f0, %f2, %f4' > conftest.s
29002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
29003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29004 (eval $ac_try) 2>&5
29005 ac_status=$?
29006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29007 test $ac_status = 0; }; }
29008 then
29009 gcc_cv_as_sparc_sparc6=yes
29010 else
29011 echo "configure: failed program was" >&5
29012 cat conftest.s >&5
29013 fi
29014 rm -f conftest.o conftest.s
29015 fi
29016 fi
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
29018 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
29019 if test $gcc_cv_as_sparc_sparc6 = yes; then
29020
29021 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
29022
29023 fi
29024
29025
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
29027 $as_echo_n "checking assembler for LEON instructions... " >&6; }
29028 if ${gcc_cv_as_sparc_leon+:} false; then :
29029 $as_echo_n "(cached) " >&6
29030 else
29031 gcc_cv_as_sparc_leon=no
29032 if test x$gcc_cv_as != x; then
29033 $as_echo '.text
29034 .register %g2, #scratch
29035 .register %g3, #scratch
29036 .align 4
29037 smac %g2, %g3, %g1
29038 umac %g2, %g3, %g1
29039 casa [%g2] 0xb, %g3, %g1' > conftest.s
29040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
29041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29045 test $ac_status = 0; }; }
29046 then
29047 gcc_cv_as_sparc_leon=yes
29048 else
29049 echo "configure: failed program was" >&5
29050 cat conftest.s >&5
29051 fi
29052 rm -f conftest.o conftest.s
29053 fi
29054 fi
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29056 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29057 if test $gcc_cv_as_sparc_leon = yes; then
29058
29059 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29060
29061 fi
29062
29063 ;;
29064
29065 i[34567]86-*-* | x86_64-*-*)
29066 case $target_os in
29067 cygwin*)
29068 # Full C++ conformance when using a shared libstdc++-v3 requires some
29069 # support from the Cygwin DLL, which in more recent versions exports
29070 # wrappers to aid in interposing and redirecting operators new, delete,
29071 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29072 # are configuring for a version of Cygwin that exports the wrappers.
29073 if test x$host = x$target && test x$host_cpu = xi686; then
29074 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29075 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
29076 gcc_ac_cygwin_dll_wrappers=yes
29077 else
29078 gcc_ac_cygwin_dll_wrappers=no
29079 fi
29080
29081 else
29082 # Can't check presence of libc functions during cross-compile, so
29083 # we just have to assume we're building for an up-to-date target.
29084 gcc_ac_cygwin_dll_wrappers=yes
29085 fi
29086
29087 cat >>confdefs.h <<_ACEOF
29088 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29089 _ACEOF
29090
29091 esac
29092 case $target_os in
29093 cygwin* | pe | mingw32*)
29094 # Recent binutils allows the three-operand form of ".comm" on PE. This
29095 # definition is used unconditionally to initialise the default state of
29096 # the target option variable that governs usage of the feature.
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29098 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29099 if ${gcc_cv_as_comm_has_align+:} false; then :
29100 $as_echo_n "(cached) " >&6
29101 else
29102 gcc_cv_as_comm_has_align=no
29103 if test x$gcc_cv_as != x; then
29104 $as_echo '.comm foo,1,32' > conftest.s
29105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29111 then
29112 gcc_cv_as_comm_has_align=yes
29113 else
29114 echo "configure: failed program was" >&5
29115 cat conftest.s >&5
29116 fi
29117 rm -f conftest.o conftest.s
29118 fi
29119 fi
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29121 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29122
29123
29124
29125 cat >>confdefs.h <<_ACEOF
29126 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29127 _ACEOF
29128
29129 # Used for DWARF 2 in PE
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29131 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29132 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29133 $as_echo_n "(cached) " >&6
29134 else
29135 gcc_cv_as_ix86_pe_secrel32=no
29136 if test x$gcc_cv_as != x; then
29137 $as_echo '.text
29138 foo: nop
29139 .data
29140 .secrel32 foo' > conftest.s
29141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29143 (eval $ac_try) 2>&5
29144 ac_status=$?
29145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29146 test $ac_status = 0; }; }
29147 then
29148 if test x$gcc_cv_ld != x \
29149 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29150 gcc_cv_as_ix86_pe_secrel32=yes
29151 fi
29152 rm -f conftest
29153 else
29154 echo "configure: failed program was" >&5
29155 cat conftest.s >&5
29156 fi
29157 rm -f conftest.o conftest.s
29158 fi
29159 fi
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29161 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29162 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29163
29164 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29165
29166 fi
29167
29168 # Test if the assembler supports the extended form of the .section
29169 # directive that specifies section alignment. LTO support uses this,
29170 # but normally only after installation, so we warn but don't fail the
29171 # configure if LTO is enabled but the assembler does not support it.
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29173 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29174 if ${gcc_cv_as_section_has_align+:} false; then :
29175 $as_echo_n "(cached) " >&6
29176 else
29177 gcc_cv_as_section_has_align=no
29178 if test x$gcc_cv_as != x; then
29179 $as_echo '.section lto_test,"dr0"' > conftest.s
29180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; }
29186 then
29187 gcc_cv_as_section_has_align=yes
29188 else
29189 echo "configure: failed program was" >&5
29190 cat conftest.s >&5
29191 fi
29192 rm -f conftest.o conftest.s
29193 fi
29194 fi
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29196 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29197
29198
29199 if test x$gcc_cv_as_section_has_align != xyes; then
29200 case ",$enable_languages," in
29201 *,lto,*)
29202 { $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
29203 $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;}
29204 ;;
29205 esac
29206 fi
29207 ;;
29208 esac
29209 case $target_os in
29210 darwin2* | darwin19*)
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29212 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29213 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29214 $as_echo_n "(cached) " >&6
29215 else
29216 gcc_cv_as_mllvm_x86_pad_for_align=no
29217 if test x$gcc_cv_as != x; then
29218 $as_echo '.text' > conftest.s
29219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29221 (eval $ac_try) 2>&5
29222 ac_status=$?
29223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29224 test $ac_status = 0; }; }
29225 then
29226 gcc_cv_as_mllvm_x86_pad_for_align=yes
29227 else
29228 echo "configure: failed program was" >&5
29229 cat conftest.s >&5
29230 fi
29231 rm -f conftest.o conftest.s
29232 fi
29233 fi
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29235 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29236 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29237
29238 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29239
29240 fi
29241
29242 ;;
29243 esac
29244
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29246 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29247 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29248 $as_echo_n "(cached) " >&6
29249 else
29250 gcc_cv_as_ix86_xbrace_comment=no
29251 if test x$gcc_cv_as != x; then
29252 $as_echo '.text' > conftest.s
29253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29255 (eval $ac_try) 2>&5
29256 ac_status=$?
29257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29258 test $ac_status = 0; }; }
29259 then
29260 gcc_cv_as_ix86_xbrace_comment=yes
29261 else
29262 echo "configure: failed program was" >&5
29263 cat conftest.s >&5
29264 fi
29265 rm -f conftest.o conftest.s
29266 fi
29267 fi
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29269 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29270 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29271
29272 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29273
29274 fi
29275
29276
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29278 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29279 if ${gcc_cv_as_ix86_filds+:} false; then :
29280 $as_echo_n "(cached) " >&6
29281 else
29282 gcc_cv_as_ix86_filds=no
29283 if test x$gcc_cv_as != x; then
29284 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29287 (eval $ac_try) 2>&5
29288 ac_status=$?
29289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29290 test $ac_status = 0; }; }
29291 then
29292 gcc_cv_as_ix86_filds=yes
29293 else
29294 echo "configure: failed program was" >&5
29295 cat conftest.s >&5
29296 fi
29297 rm -f conftest.o conftest.s
29298 fi
29299 fi
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29301 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29302 if test $gcc_cv_as_ix86_filds = yes; then
29303
29304 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29305
29306 fi
29307
29308
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29310 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29311 if ${gcc_cv_as_ix86_fildq+:} false; then :
29312 $as_echo_n "(cached) " >&6
29313 else
29314 gcc_cv_as_ix86_fildq=no
29315 if test x$gcc_cv_as != x; then
29316 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; }
29323 then
29324 gcc_cv_as_ix86_fildq=yes
29325 else
29326 echo "configure: failed program was" >&5
29327 cat conftest.s >&5
29328 fi
29329 rm -f conftest.o conftest.s
29330 fi
29331 fi
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29333 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29334 if test $gcc_cv_as_ix86_fildq = yes; then
29335
29336 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29337
29338 fi
29339
29340
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29342 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29343 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29344 $as_echo_n "(cached) " >&6
29345 else
29346 gcc_cv_as_ix86_cmov_sun_syntax=no
29347 if test x$gcc_cv_as != x; then
29348 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29351 (eval $ac_try) 2>&5
29352 ac_status=$?
29353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29354 test $ac_status = 0; }; }
29355 then
29356 gcc_cv_as_ix86_cmov_sun_syntax=yes
29357 else
29358 echo "configure: failed program was" >&5
29359 cat conftest.s >&5
29360 fi
29361 rm -f conftest.o conftest.s
29362 fi
29363 fi
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29365 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29366 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29367
29368 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29369
29370 fi
29371
29372
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29374 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29375 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29376 $as_echo_n "(cached) " >&6
29377 else
29378 gcc_cv_as_ix86_ffreep=no
29379 if test x$gcc_cv_as != x; then
29380 $as_echo 'ffreep %st(1)' > conftest.s
29381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29386 test $ac_status = 0; }; }
29387 then
29388 gcc_cv_as_ix86_ffreep=yes
29389 else
29390 echo "configure: failed program was" >&5
29391 cat conftest.s >&5
29392 fi
29393 rm -f conftest.o conftest.s
29394 fi
29395 fi
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29397 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29398 if test $gcc_cv_as_ix86_ffreep = yes; then
29399
29400 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29401
29402 fi
29403
29404
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29406 $as_echo_n "checking assembler for .quad directive... " >&6; }
29407 if ${gcc_cv_as_ix86_quad+:} false; then :
29408 $as_echo_n "(cached) " >&6
29409 else
29410 gcc_cv_as_ix86_quad=no
29411 if test x$gcc_cv_as != x; then
29412 $as_echo '.quad 0' > conftest.s
29413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29418 test $ac_status = 0; }; }
29419 then
29420 gcc_cv_as_ix86_quad=yes
29421 else
29422 echo "configure: failed program was" >&5
29423 cat conftest.s >&5
29424 fi
29425 rm -f conftest.o conftest.s
29426 fi
29427 fi
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29429 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29430 if test $gcc_cv_as_ix86_quad = yes; then
29431
29432 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29433
29434 fi
29435
29436
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29438 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29439 if ${gcc_cv_as_ix86_sahf+:} false; then :
29440 $as_echo_n "(cached) " >&6
29441 else
29442 gcc_cv_as_ix86_sahf=no
29443 if test x$gcc_cv_as != x; then
29444 $as_echo '.code64
29445 sahf' > conftest.s
29446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29448 (eval $ac_try) 2>&5
29449 ac_status=$?
29450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29451 test $ac_status = 0; }; }
29452 then
29453 gcc_cv_as_ix86_sahf=yes
29454 else
29455 echo "configure: failed program was" >&5
29456 cat conftest.s >&5
29457 fi
29458 rm -f conftest.o conftest.s
29459 fi
29460 fi
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29462 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29463 if test $gcc_cv_as_ix86_sahf = yes; then
29464
29465 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29466
29467 fi
29468
29469
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29471 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29472 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29473 $as_echo_n "(cached) " >&6
29474 else
29475 gcc_cv_as_ix86_interunit_movq=no
29476 if test x$gcc_cv_as != x; then
29477 $as_echo '.code64
29478 movq %mm0, %rax
29479 movq %rax, %xmm0' > conftest.s
29480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29485 test $ac_status = 0; }; }
29486 then
29487 gcc_cv_as_ix86_interunit_movq=yes
29488 else
29489 echo "configure: failed program was" >&5
29490 cat conftest.s >&5
29491 fi
29492 rm -f conftest.o conftest.s
29493 fi
29494 fi
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29496 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29497
29498
29499
29500 cat >>confdefs.h <<_ACEOF
29501 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29502 _ACEOF
29503
29504
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29506 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29507 if ${gcc_cv_as_ix86_hle+:} false; then :
29508 $as_echo_n "(cached) " >&6
29509 else
29510 gcc_cv_as_ix86_hle=no
29511 if test x$gcc_cv_as != x; then
29512 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29518 test $ac_status = 0; }; }
29519 then
29520 gcc_cv_as_ix86_hle=yes
29521 else
29522 echo "configure: failed program was" >&5
29523 cat conftest.s >&5
29524 fi
29525 rm -f conftest.o conftest.s
29526 fi
29527 fi
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29529 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29530 if test $gcc_cv_as_ix86_hle = yes; then
29531
29532 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29533
29534 fi
29535
29536
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29538 $as_echo_n "checking assembler for swap suffix... " >&6; }
29539 if ${gcc_cv_as_ix86_swap+:} false; then :
29540 $as_echo_n "(cached) " >&6
29541 else
29542 gcc_cv_as_ix86_swap=no
29543 if test x$gcc_cv_as != x; then
29544 $as_echo 'movl.s %esp, %ebp' > conftest.s
29545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29547 (eval $ac_try) 2>&5
29548 ac_status=$?
29549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29550 test $ac_status = 0; }; }
29551 then
29552 gcc_cv_as_ix86_swap=yes
29553 else
29554 echo "configure: failed program was" >&5
29555 cat conftest.s >&5
29556 fi
29557 rm -f conftest.o conftest.s
29558 fi
29559 fi
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29561 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29562 if test $gcc_cv_as_ix86_swap = yes; then
29563
29564 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29565
29566 fi
29567
29568
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29570 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29571 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29572 $as_echo_n "(cached) " >&6
29573 else
29574 gcc_cv_as_ix86_diff_sect_delta=no
29575 if test x$gcc_cv_as != x; then
29576 $as_echo '.section .rodata
29577 .L1:
29578 .long .L2-.L1
29579 .long .L3-.L1
29580 .text
29581 .L3: nop
29582 .L2: nop' > conftest.s
29583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29585 (eval $ac_try) 2>&5
29586 ac_status=$?
29587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29588 test $ac_status = 0; }; }
29589 then
29590 gcc_cv_as_ix86_diff_sect_delta=yes
29591 else
29592 echo "configure: failed program was" >&5
29593 cat conftest.s >&5
29594 fi
29595 rm -f conftest.o conftest.s
29596 fi
29597 fi
29598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29599 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29600 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29601
29602 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29603
29604 fi
29605
29606
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29608 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29609 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29610 $as_echo_n "(cached) " >&6
29611 else
29612 gcc_cv_as_ix86_rep_lock_prefix=no
29613 if test x$gcc_cv_as != x; then
29614 $as_echo 'rep movsl
29615 rep ret
29616 rep nop
29617 rep bsf %ecx, %eax
29618 rep bsr %ecx, %eax
29619 lock addl %edi, (%eax,%esi)
29620 lock orl $0, (%esp)' > conftest.s
29621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29623 (eval $ac_try) 2>&5
29624 ac_status=$?
29625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29626 test $ac_status = 0; }; }
29627 then
29628 gcc_cv_as_ix86_rep_lock_prefix=yes
29629 else
29630 echo "configure: failed program was" >&5
29631 cat conftest.s >&5
29632 fi
29633 rm -f conftest.o conftest.s
29634 fi
29635 fi
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29637 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29638 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29639
29640 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29641
29642 fi
29643
29644
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29646 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29647 if ${gcc_cv_as_ix86_ud2+:} false; then :
29648 $as_echo_n "(cached) " >&6
29649 else
29650 gcc_cv_as_ix86_ud2=no
29651 if test x$gcc_cv_as != x; then
29652 $as_echo 'ud2' > conftest.s
29653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29655 (eval $ac_try) 2>&5
29656 ac_status=$?
29657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29658 test $ac_status = 0; }; }
29659 then
29660 gcc_cv_as_ix86_ud2=yes
29661 else
29662 echo "configure: failed program was" >&5
29663 cat conftest.s >&5
29664 fi
29665 rm -f conftest.o conftest.s
29666 fi
29667 fi
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29669 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29670 if test $gcc_cv_as_ix86_ud2 = yes; then
29671
29672 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29673
29674 fi
29675
29676
29677 # Enforce 32-bit output with gas and gld.
29678 if test x$gas = xyes; then
29679 as_ix86_gas_32_opt="--32"
29680 fi
29681 if echo "$ld_ver" | grep GNU > /dev/null; then
29682 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29683 ld_ix86_gld_32_opt="-melf_i386_sol2"
29684 else
29685 ld_ix86_gld_32_opt="-melf_i386"
29686 fi
29687 fi
29688
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29690 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29691 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29692 $as_echo_n "(cached) " >&6
29693 else
29694 gcc_cv_as_ix86_tlsgdplt=no
29695 if test x$gcc_cv_as != x; then
29696 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29699 (eval $ac_try) 2>&5
29700 ac_status=$?
29701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29702 test $ac_status = 0; }; }
29703 then
29704 if test x$gcc_cv_ld != x \
29705 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29706 gcc_cv_as_ix86_tlsgdplt=yes
29707 fi
29708 rm -f conftest
29709 else
29710 echo "configure: failed program was" >&5
29711 cat conftest.s >&5
29712 fi
29713 rm -f conftest.o conftest.s
29714 fi
29715 fi
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29717 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29718 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29719
29720 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29721
29722 fi
29723
29724
29725 conftest_s='
29726 .section .tdata,"aw'$tls_section_flag'",@progbits
29727 tls_ld:
29728 .section .text,"ax",@progbits
29729 call tls_ld@tlsldmplt'
29730
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29732 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29733 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29734 $as_echo_n "(cached) " >&6
29735 else
29736 gcc_cv_as_ix86_tlsldmplt=no
29737 if test x$gcc_cv_as != x; then
29738 $as_echo "$conftest_s" > conftest.s
29739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29744 test $ac_status = 0; }; }
29745 then
29746 if test x$gcc_cv_ld != x \
29747 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29748 gcc_cv_as_ix86_tlsldmplt=yes
29749 fi
29750 rm -f conftest
29751 else
29752 echo "configure: failed program was" >&5
29753 cat conftest.s >&5
29754 fi
29755 rm -f conftest.o conftest.s
29756 fi
29757 fi
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29759 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29760
29761
29762
29763 cat >>confdefs.h <<_ACEOF
29764 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29765 _ACEOF
29766
29767
29768 conftest_s='
29769 .section .text,"ax",@progbits
29770 .globl _start
29771 .type _start, @function
29772 _start:
29773 leal value@tlsldm(%ebx), %eax
29774 call ___tls_get_addr@plt
29775
29776 .section .tdata,"aw'$tls_section_flag'",@progbits
29777 .type value, @object
29778 value:'
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29780 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29781 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29782 $as_echo_n "(cached) " >&6
29783 else
29784 gcc_cv_as_ix86_tlsldm=no
29785 if test x$gcc_cv_as != x; then
29786 $as_echo "$conftest_s" > conftest.s
29787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29789 (eval $ac_try) 2>&5
29790 ac_status=$?
29791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29792 test $ac_status = 0; }; }
29793 then
29794 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29795 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29796 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29797 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29798 gcc_cv_as_ix86_tlsldm=yes
29799 fi
29800 fi
29801 rm -f conftest
29802 else
29803 echo "configure: failed program was" >&5
29804 cat conftest.s >&5
29805 fi
29806 rm -f conftest.o conftest.s
29807 fi
29808 fi
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29810 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29811
29812
29813
29814 cat >>confdefs.h <<_ACEOF
29815 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29816 _ACEOF
29817
29818
29819 conftest_s='
29820 .data
29821 bar:
29822 .byte 1
29823 .text
29824 .global _start
29825 _start:
29826 cmpl $0, bar@GOT
29827 jmp *_start@GOT'
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29829 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29830 if ${gcc_cv_as_ix86_got32x+:} false; then :
29831 $as_echo_n "(cached) " >&6
29832 else
29833 gcc_cv_as_ix86_got32x=no
29834 if test x$gcc_cv_as != x; then
29835 $as_echo "$conftest_s" > conftest.s
29836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29838 (eval $ac_try) 2>&5
29839 ac_status=$?
29840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29841 test $ac_status = 0; }; }
29842 then
29843 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29844 && test x$gcc_cv_readelf != x \
29845 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29846 | grep R_386_GOT32X > /dev/null 2>&1 \
29847 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29848 if $gcc_cv_objdump -dw conftest 2>&1 \
29849 | grep 0xffffff > /dev/null 2>&1; then
29850 gcc_cv_as_ix86_got32x=no
29851 else
29852 gcc_cv_as_ix86_got32x=yes
29853 fi
29854 fi
29855 rm -f conftest
29856 else
29857 echo "configure: failed program was" >&5
29858 cat conftest.s >&5
29859 fi
29860 rm -f conftest.o conftest.s
29861 fi
29862 fi
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29864 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29865
29866
29867
29868 cat >>confdefs.h <<_ACEOF
29869 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29870 _ACEOF
29871
29872
29873 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29874 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29875 if echo "$ld_ver" | grep GNU > /dev/null; then
29876 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29877 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29878 else
29879 ld_ix86_gld_64_opt="-melf_x86_64"
29880 fi
29881 fi
29882 # Enforce 64-bit output with gas and gld.
29883 if test x$gas = xyes; then
29884 as_ix86_gas_64_opt="--64"
29885 fi
29886 conftest_s='
29887 .text
29888 .globl _start
29889 .type _start, @function
29890 _start:
29891 addq %r23,foo@GOTTPOFF(%rip), %r15
29892 .section .tdata,"awT",@progbits
29893 .type foo, @object
29894 foo:
29895 .quad 0'
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29897 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29898 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29899 $as_echo_n "(cached) " >&6
29900 else
29901 gcc_cv_as_x86_64_code_6_gottpoff=no
29902 if test x$gcc_cv_as != x; then
29903 $as_echo "$conftest_s" > conftest.s
29904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29906 (eval $ac_try) 2>&5
29907 ac_status=$?
29908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29909 test $ac_status = 0; }; }
29910 then
29911 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29912 && test x$gcc_cv_readelf != x \
29913 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29914 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29915 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29916 if $gcc_cv_objdump -dw conftest 2>&1 \
29917 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29918 gcc_cv_as_x86_64_code_6_gottpoff=yes
29919 else
29920 gcc_cv_as_x86_64_code_6_gottpoff=no
29921 fi
29922 fi
29923 rm -f conftest
29924 else
29925 echo "configure: failed program was" >&5
29926 cat conftest.s >&5
29927 fi
29928 rm -f conftest.o conftest.s
29929 fi
29930 fi
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29932 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29933
29934
29935
29936 cat >>confdefs.h <<_ACEOF
29937 #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`
29938 _ACEOF
29939
29940
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29942 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29943 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29944 $as_echo_n "(cached) " >&6
29945 else
29946 gcc_cv_as_ix86_gotoff_in_data=no
29947 if test x$gcc_cv_as != x; then
29948 $as_echo ' .text
29949 .L0:
29950 nop
29951 .data
29952 .long .L0@GOTOFF' > conftest.s
29953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; }; }
29959 then
29960 gcc_cv_as_ix86_gotoff_in_data=yes
29961 else
29962 echo "configure: failed program was" >&5
29963 cat conftest.s >&5
29964 fi
29965 rm -f conftest.o conftest.s
29966 fi
29967 fi
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29969 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29970
29971
29972
29973 cat >>confdefs.h <<_ACEOF
29974 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29975 _ACEOF
29976
29977
29978 conftest_s='
29979 .section .text,"ax",@progbits
29980 .globl _start
29981 .type _start, @function
29982 _start:
29983 leal ld@tlsldm(%ecx), %eax
29984 call *___tls_get_addr@GOT(%ecx)
29985 leal gd@tlsgd(%ecx), %eax
29986 call *___tls_get_addr@GOT(%ecx)
29987
29988 .section .tdata,"aw'$tls_section_flag'",@progbits
29989 .type ld, @object
29990 ld:
29991 .byte 0
29992 .globl gd
29993 .type gd, @object
29994 gd:
29995 .byte 0'
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29997 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29998 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29999 $as_echo_n "(cached) " >&6
30000 else
30001 gcc_cv_as_ix86_tls_get_addr_via_got=no
30002 if test x$gcc_cv_as != x; then
30003 $as_echo "$conftest_s" > conftest.s
30004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
30005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30009 test $ac_status = 0; }; }
30010 then
30011 if test x$gcc_cv_ld != x \
30012 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
30013 gcc_cv_as_ix86_tls_get_addr_via_got=yes
30014 fi
30015 rm -f conftest
30016 else
30017 echo "configure: failed program was" >&5
30018 cat conftest.s >&5
30019 fi
30020 rm -f conftest.o conftest.s
30021 fi
30022 fi
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
30024 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
30025
30026
30027
30028 cat >>confdefs.h <<_ACEOF
30029 #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`
30030 _ACEOF
30031
30032 ;;
30033
30034 ia64*-*-*)
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
30036 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
30037 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
30038 $as_echo_n "(cached) " >&6
30039 else
30040 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
30041 if test x$gcc_cv_as != x; then
30042 $as_echo ' .text
30043 addl r15 = @ltoffx(x#), gp
30044 ;;
30045 ld8.mov r16 = [r15], x#
30046 ' > conftest.s
30047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30049 (eval $ac_try) 2>&5
30050 ac_status=$?
30051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30052 test $ac_status = 0; }; }
30053 then
30054 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
30055 else
30056 echo "configure: failed program was" >&5
30057 cat conftest.s >&5
30058 fi
30059 rm -f conftest.o conftest.s
30060 fi
30061 fi
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
30063 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
30064 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
30065
30066 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
30067
30068 fi
30069
30070
30071 ;;
30072
30073 powerpc*-*-*)
30074
30075 case $target in
30076 *-*-darwin*)
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
30078 $as_echo_n "checking assembler for .machine directive support... " >&6; }
30079 if ${gcc_cv_as_machine_directive+:} false; then :
30080 $as_echo_n "(cached) " >&6
30081 else
30082 gcc_cv_as_machine_directive=no
30083 if test x$gcc_cv_as != x; then
30084 $as_echo ' .machine ppc7400' > conftest.s
30085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30090 test $ac_status = 0; }; }
30091 then
30092 gcc_cv_as_machine_directive=yes
30093 else
30094 echo "configure: failed program was" >&5
30095 cat conftest.s >&5
30096 fi
30097 rm -f conftest.o conftest.s
30098 fi
30099 fi
30100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
30101 $as_echo "$gcc_cv_as_machine_directive" >&6; }
30102
30103
30104 if test x$gcc_cv_as_machine_directive != xyes; then
30105 echo "*** This target requires an assembler supporting \".machine\"" >&2
30106 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
30107 test x$build = x$target && exit 1
30108 fi
30109 ;;
30110 esac
30111
30112 case $target in
30113 *-*-aix*) conftest_s=' .machine "pwr5"
30114 .csect .text[PR]
30115 mfcr 3,128';;
30116 *-*-darwin*) conftest_s=' .text
30117 mfcr r3,128';;
30118 *) conftest_s=' .machine power4
30119 .text
30120 mfcr 3,128';;
30121 esac
30122
30123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30124 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30125 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
30126 $as_echo_n "(cached) " >&6
30127 else
30128 gcc_cv_as_powerpc_mfcrf=no
30129 if test x$gcc_cv_as != x; then
30130 $as_echo "$conftest_s" > conftest.s
30131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30136 test $ac_status = 0; }; }
30137 then
30138 gcc_cv_as_powerpc_mfcrf=yes
30139 else
30140 echo "configure: failed program was" >&5
30141 cat conftest.s >&5
30142 fi
30143 rm -f conftest.o conftest.s
30144 fi
30145 fi
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30147 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30148 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30149
30150 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30151
30152 fi
30153
30154
30155 case $target in
30156 *-*-aix*) conftest_s=' .machine "pwr10"
30157 .csect .text[PR]
30158 tend. 0';;
30159 *-*-darwin*) conftest_s=' .text
30160 tend. 0';;
30161 *) conftest_s=' .machine power10
30162 .text
30163 tend. 0';;
30164 esac
30165
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30167 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30168 if ${gcc_cv_as_power10_htm+:} false; then :
30169 $as_echo_n "(cached) " >&6
30170 else
30171 gcc_cv_as_power10_htm=no
30172 if test x$gcc_cv_as != x; then
30173 $as_echo "$conftest_s" > conftest.s
30174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30179 test $ac_status = 0; }; }
30180 then
30181 gcc_cv_as_power10_htm=yes
30182 else
30183 echo "configure: failed program was" >&5
30184 cat conftest.s >&5
30185 fi
30186 rm -f conftest.o conftest.s
30187 fi
30188 fi
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30190 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30191 if test $gcc_cv_as_power10_htm = yes; then
30192
30193 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30194
30195 fi
30196
30197
30198 case $target in
30199 *-*-aix*) conftest_s=' .csect .text[PR]
30200 LCF..0:
30201 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30202 *-*-darwin*)
30203 conftest_s=' .text
30204 LCF0:
30205 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30206 *) conftest_s=' .text
30207 .LCF0:
30208 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30209 esac
30210
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30212 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30213 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30214 $as_echo_n "(cached) " >&6
30215 else
30216 gcc_cv_as_powerpc_rel16=no
30217 if test x$gcc_cv_as != x; then
30218 $as_echo "$conftest_s" > conftest.s
30219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30221 (eval $ac_try) 2>&5
30222 ac_status=$?
30223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30224 test $ac_status = 0; }; }
30225 then
30226 gcc_cv_as_powerpc_rel16=yes
30227 else
30228 echo "configure: failed program was" >&5
30229 cat conftest.s >&5
30230 fi
30231 rm -f conftest.o conftest.s
30232 fi
30233 fi
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30235 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30236 if test $gcc_cv_as_powerpc_rel16 = yes; then
30237
30238 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30239
30240 fi
30241
30242
30243 case $target in
30244 *-*-aix*) conftest_s=' .machine "pwr7"
30245 .csect .text[PR]
30246 lxvd2x 1,2,3';;
30247 *) conftest_s=' .machine power7
30248 .text
30249 lxvd2x 1,2,3';;
30250 esac
30251
30252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30253 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30254 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30255 $as_echo_n "(cached) " >&6
30256 else
30257 gcc_cv_as_powerpc_vsx=no
30258 if test x$gcc_cv_as != x; then
30259 $as_echo "$conftest_s" > conftest.s
30260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30265 test $ac_status = 0; }; }
30266 then
30267 gcc_cv_as_powerpc_vsx=yes
30268 else
30269 echo "configure: failed program was" >&5
30270 cat conftest.s >&5
30271 fi
30272 rm -f conftest.o conftest.s
30273 fi
30274 fi
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30276 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30277 if test $gcc_cv_as_powerpc_vsx = yes; then
30278
30279 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30280
30281 fi
30282
30283
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30285 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30286 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30287 $as_echo_n "(cached) " >&6
30288 else
30289 gcc_cv_as_powerpc_gnu_attribute=no
30290 if test x$gcc_cv_as != x; then
30291 $as_echo '.gnu_attribute 4,1' > conftest.s
30292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30294 (eval $ac_try) 2>&5
30295 ac_status=$?
30296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30297 test $ac_status = 0; }; }
30298 then
30299 gcc_cv_as_powerpc_gnu_attribute=yes
30300 else
30301 echo "configure: failed program was" >&5
30302 cat conftest.s >&5
30303 fi
30304 rm -f conftest.o conftest.s
30305 fi
30306 fi
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30308 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30309 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30310
30311 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30312
30313 fi
30314
30315
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30317 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30318 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30319 $as_echo_n "(cached) " >&6
30320 else
30321 gcc_cv_as_powerpc_entry_markers=no
30322 if test x$gcc_cv_as != x; then
30323 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30326 (eval $ac_try) 2>&5
30327 ac_status=$?
30328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30329 test $ac_status = 0; }; }
30330 then
30331 gcc_cv_as_powerpc_entry_markers=yes
30332 else
30333 echo "configure: failed program was" >&5
30334 cat conftest.s >&5
30335 fi
30336 rm -f conftest.o conftest.s
30337 fi
30338 fi
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30340 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30341 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30342
30343 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30344
30345 fi
30346
30347
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30349 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30350 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30351 $as_echo_n "(cached) " >&6
30352 else
30353 gcc_cv_as_powerpc_pltseq_markers=no
30354 if test x$gcc_cv_as != x; then
30355 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30358 (eval $ac_try) 2>&5
30359 ac_status=$?
30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361 test $ac_status = 0; }; }
30362 then
30363 gcc_cv_as_powerpc_pltseq_markers=yes
30364 else
30365 echo "configure: failed program was" >&5
30366 cat conftest.s >&5
30367 fi
30368 rm -f conftest.o conftest.s
30369 fi
30370 fi
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30372 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30373 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30374
30375 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30376
30377 fi
30378
30379
30380 case $target in
30381 *-*-aix*)
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30383 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30384 if ${gcc_cv_as_aix_ref+:} false; then :
30385 $as_echo_n "(cached) " >&6
30386 else
30387 gcc_cv_as_aix_ref=no
30388 if test x$gcc_cv_as != x; then
30389 $as_echo ' .csect stuff[rw]
30390 stuff:
30391 .long 1
30392 .extern sym
30393 .ref sym
30394 ' > conftest.s
30395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30397 (eval $ac_try) 2>&5
30398 ac_status=$?
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; }
30401 then
30402 gcc_cv_as_aix_ref=yes
30403 else
30404 echo "configure: failed program was" >&5
30405 cat conftest.s >&5
30406 fi
30407 rm -f conftest.o conftest.s
30408 fi
30409 fi
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30411 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30412 if test $gcc_cv_as_aix_ref = yes; then
30413
30414 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30415
30416 fi
30417
30418
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30420 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30421 if ${gcc_cv_as_aix_dwloc+:} false; then :
30422 $as_echo_n "(cached) " >&6
30423 else
30424 gcc_cv_as_aix_dwloc=no
30425 if test x$gcc_cv_as != x; then
30426 $as_echo ' .dwsect 0xA0000
30427 Lframe..0:
30428 .vbyte 4,Lframe..0
30429 ' > conftest.s
30430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30432 (eval $ac_try) 2>&5
30433 ac_status=$?
30434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30435 test $ac_status = 0; }; }
30436 then
30437 gcc_cv_as_aix_dwloc=yes
30438 else
30439 echo "configure: failed program was" >&5
30440 cat conftest.s >&5
30441 fi
30442 rm -f conftest.o conftest.s
30443 fi
30444 fi
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30446 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30447 if test $gcc_cv_as_aix_dwloc = yes; then
30448
30449 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30450
30451 fi
30452
30453 ;;
30454 esac
30455 ;;
30456
30457 mips*-*-*)
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30459 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30460 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30461 $as_echo_n "(cached) " >&6
30462 else
30463 gcc_cv_as_mips_explicit_relocs_pcrel=no
30464 if test x$gcc_cv_as != x; then
30465 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30468 (eval $ac_try) 2>&5
30469 ac_status=$?
30470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30471 test $ac_status = 0; }; }
30472 then
30473 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30474 else
30475 echo "configure: failed program was" >&5
30476 cat conftest.s >&5
30477 fi
30478 rm -f conftest.o conftest.s
30479 fi
30480 fi
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30482 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30483 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30484
30485 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30486
30487 fi
30488
30489
30490 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30492 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30493 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30494 $as_echo_n "(cached) " >&6
30495 else
30496 gcc_cv_as_mips_explicit_relocs=no
30497 if test x$gcc_cv_as != x; then
30498 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30504 test $ac_status = 0; }; }
30505 then
30506 gcc_cv_as_mips_explicit_relocs=yes
30507 else
30508 echo "configure: failed program was" >&5
30509 cat conftest.s >&5
30510 fi
30511 rm -f conftest.o conftest.s
30512 fi
30513 fi
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30515 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30516 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30517
30518 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30519
30520 fi
30521
30522 else
30523 gcc_cv_as_mips_explicit_relocs=yes
30524 fi
30525
30526 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30527
30528 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30529
30530 fi
30531
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30533 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30534 if ${gcc_cv_as_mips_no_shared+:} false; then :
30535 $as_echo_n "(cached) " >&6
30536 else
30537 gcc_cv_as_mips_no_shared=no
30538 if test x$gcc_cv_as != x; then
30539 $as_echo 'nop' > conftest.s
30540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545 test $ac_status = 0; }; }
30546 then
30547 gcc_cv_as_mips_no_shared=yes
30548 else
30549 echo "configure: failed program was" >&5
30550 cat conftest.s >&5
30551 fi
30552 rm -f conftest.o conftest.s
30553 fi
30554 fi
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30556 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30557 if test $gcc_cv_as_mips_no_shared = yes; then
30558
30559 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30560
30561 fi
30562
30563
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30565 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30566 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30567 $as_echo_n "(cached) " >&6
30568 else
30569 gcc_cv_as_mips_gnu_attribute=no
30570 if test x$gcc_cv_as != x; then
30571 $as_echo '.gnu_attribute 4,1' > conftest.s
30572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; }
30578 then
30579 gcc_cv_as_mips_gnu_attribute=yes
30580 else
30581 echo "configure: failed program was" >&5
30582 cat conftest.s >&5
30583 fi
30584 rm -f conftest.o conftest.s
30585 fi
30586 fi
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30588 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30589 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30590
30591 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30592
30593 fi
30594
30595
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30597 $as_echo_n "checking assembler for .module support... " >&6; }
30598 if ${gcc_cv_as_mips_dot_module+:} false; then :
30599 $as_echo_n "(cached) " >&6
30600 else
30601 gcc_cv_as_mips_dot_module=no
30602 if test x$gcc_cv_as != x; then
30603 $as_echo '.module mips2
30604 .module fp=xx' > conftest.s
30605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30607 (eval $ac_try) 2>&5
30608 ac_status=$?
30609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30610 test $ac_status = 0; }; }
30611 then
30612 gcc_cv_as_mips_dot_module=yes
30613 else
30614 echo "configure: failed program was" >&5
30615 cat conftest.s >&5
30616 fi
30617 rm -f conftest.o conftest.s
30618 fi
30619 fi
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30621 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30622 if test $gcc_cv_as_mips_dot_module = yes; then
30623
30624 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30625
30626 fi
30627
30628 if test x$gcc_cv_as_mips_dot_module = xno \
30629 && test x$with_fp_32 != x; then
30630 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30631 fi
30632
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30634 $as_echo_n "checking assembler for .micromips support... " >&6; }
30635 if ${gcc_cv_as_micromips_support+:} false; then :
30636 $as_echo_n "(cached) " >&6
30637 else
30638 gcc_cv_as_micromips_support=no
30639 if test x$gcc_cv_as != x; then
30640 $as_echo '.set micromips' > conftest.s
30641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30643 (eval $ac_try) 2>&5
30644 ac_status=$?
30645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30646 test $ac_status = 0; }; }
30647 then
30648 gcc_cv_as_micromips_support=yes
30649 else
30650 echo "configure: failed program was" >&5
30651 cat conftest.s >&5
30652 fi
30653 rm -f conftest.o conftest.s
30654 fi
30655 fi
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30657 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30658 if test $gcc_cv_as_micromips_support = yes; then
30659
30660 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30661
30662 fi
30663
30664
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30666 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30667 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30668 $as_echo_n "(cached) " >&6
30669 else
30670 gcc_cv_as_mips_dtprelword=no
30671 if test x$gcc_cv_as != x; then
30672 $as_echo '.section .tdata,"awT",@progbits
30673 x:
30674 .word 2
30675 .text
30676 .dtprelword x+0x8000' > conftest.s
30677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30679 (eval $ac_try) 2>&5
30680 ac_status=$?
30681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30682 test $ac_status = 0; }; }
30683 then
30684 gcc_cv_as_mips_dtprelword=yes
30685 else
30686 echo "configure: failed program was" >&5
30687 cat conftest.s >&5
30688 fi
30689 rm -f conftest.o conftest.s
30690 fi
30691 fi
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30693 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30694 if test $gcc_cv_as_mips_dtprelword = yes; then
30695
30696 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30697
30698 fi
30699
30700
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30702 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30703 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30704 $as_echo_n "(cached) " >&6
30705 else
30706 gcc_cv_as_mips_dspr1_mult=no
30707 if test x$gcc_cv_as != x; then
30708 $as_echo ' .set mips32r2
30709 .set nodspr2
30710 .set dsp
30711 madd $ac3,$4,$5
30712 maddu $ac3,$4,$5
30713 msub $ac3,$4,$5
30714 msubu $ac3,$4,$5
30715 mult $ac3,$4,$5
30716 multu $ac3,$4,$5' > conftest.s
30717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30722 test $ac_status = 0; }; }
30723 then
30724 gcc_cv_as_mips_dspr1_mult=yes
30725 else
30726 echo "configure: failed program was" >&5
30727 cat conftest.s >&5
30728 fi
30729 rm -f conftest.o conftest.s
30730 fi
30731 fi
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30733 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30734 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30735
30736 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30737
30738 fi
30739
30740
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30742 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30743 gcc_cv_as_ld_jalr_reloc=no
30744 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30745 if test $in_tree_ld = yes ; then
30746 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 \
30747 && test $in_tree_ld_is_elf = yes; then
30748 gcc_cv_as_ld_jalr_reloc=yes
30749 fi
30750 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30751 echo ' .ent x' > conftest.s
30752 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30753 echo ' lw $25,%call16(y)($28)' >> conftest.s
30754 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30755 echo '1: jalr $25' >> conftest.s
30756 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30757 echo '1: jalr $25' >> conftest.s
30758 echo ' .end x' >> conftest.s
30759 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30760 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30761 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30762 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30763 gcc_cv_as_ld_jalr_reloc=yes
30764 fi
30765 fi
30766 rm -f conftest.*
30767 fi
30768 fi
30769 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30770 if test x$target_cpu_default = x; then
30771 target_cpu_default=MASK_RELAX_PIC_CALLS
30772 else
30773 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30774 fi
30775 fi
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30777 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30778
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30780 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30781 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30782 $as_echo_n "(cached) " >&6
30783 else
30784 gcc_cv_ld_mips_personality_relaxation=no
30785 if test $in_tree_ld = yes ; then
30786 if test "$gcc_cv_gld_major_version" -eq 2 \
30787 -a "$gcc_cv_gld_minor_version" -ge 21 \
30788 -o "$gcc_cv_gld_major_version" -gt 2; then
30789 gcc_cv_ld_mips_personality_relaxation=yes
30790 fi
30791 elif test x$gcc_cv_as != x \
30792 -a x$gcc_cv_ld != x \
30793 -a x$gcc_cv_readelf != x ; then
30794 cat > conftest.s <<EOF
30795 .cfi_startproc
30796 .cfi_personality 0x80,indirect_ptr
30797 .ent test
30798 test:
30799 nop
30800 .end test
30801 .cfi_endproc
30802
30803 .section .data,"aw",@progbits
30804 indirect_ptr:
30805 .dc.a personality
30806 EOF
30807 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30808 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30809 if $gcc_cv_readelf -d conftest 2>&1 \
30810 | grep TEXTREL > /dev/null 2>&1; then
30811 :
30812 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30813 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30814 :
30815 else
30816 gcc_cv_ld_mips_personality_relaxation=yes
30817 fi
30818 fi
30819 fi
30820 rm -f conftest.s conftest.o conftest
30821 fi
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30823 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30824 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30825
30826 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30827
30828 fi
30829
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30831 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30832 if ${gcc_cv_as_mips_nan+:} false; then :
30833 $as_echo_n "(cached) " >&6
30834 else
30835 gcc_cv_as_mips_nan=no
30836 if test x$gcc_cv_as != x; then
30837 $as_echo '' > conftest.s
30838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30840 (eval $ac_try) 2>&5
30841 ac_status=$?
30842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30843 test $ac_status = 0; }; }
30844 then
30845 gcc_cv_as_mips_nan=yes
30846 else
30847 echo "configure: failed program was" >&5
30848 cat conftest.s >&5
30849 fi
30850 rm -f conftest.o conftest.s
30851 fi
30852 fi
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30854 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30855 if test $gcc_cv_as_mips_nan = yes; then
30856
30857 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30858
30859 fi
30860
30861 if test x$gcc_cv_as_mips_nan = xno \
30862 && test x$with_nan != x; then
30863 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30864 fi
30865 ;;
30866 msp430-*-*)
30867 # Earlier GAS versions generically support .gnu_attribute, but the
30868 # msp430 assembler will not do anything with it.
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30870 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30871 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30872 $as_echo_n "(cached) " >&6
30873 else
30874 gcc_cv_as_msp430_gnu_attribute=no
30875 if test x$gcc_cv_as != x; then
30876 $as_echo '.gnu_attribute 4,1' > conftest.s
30877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30879 (eval $ac_try) 2>&5
30880 ac_status=$?
30881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30882 test $ac_status = 0; }; }
30883 then
30884 gcc_cv_as_msp430_gnu_attribute=yes
30885 else
30886 echo "configure: failed program was" >&5
30887 cat conftest.s >&5
30888 fi
30889 rm -f conftest.o conftest.s
30890 fi
30891 fi
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30893 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30894 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30895
30896 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30897
30898 fi
30899
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30901 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30902 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30903 $as_echo_n "(cached) " >&6
30904 else
30905 gcc_cv_as_msp430_mspabi_attribute=no
30906 if test x$gcc_cv_as != x; then
30907 $as_echo '.mspabi_attribute 4,2' > conftest.s
30908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30910 (eval $ac_try) 2>&5
30911 ac_status=$?
30912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30913 test $ac_status = 0; }; }
30914 then
30915 gcc_cv_as_msp430_mspabi_attribute=yes
30916 else
30917 echo "configure: failed program was" >&5
30918 cat conftest.s >&5
30919 fi
30920 rm -f conftest.o conftest.s
30921 fi
30922 fi
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30924 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30925 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30926
30927 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30928
30929 fi
30930
30931 if test x$enable_newlib_nano_formatted_io = xyes; then
30932
30933 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30934
30935 fi
30936 ;;
30937 riscv*-*-*)
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30939 $as_echo_n "checking assembler for .attribute support... " >&6; }
30940 if ${gcc_cv_as_riscv_attribute+:} false; then :
30941 $as_echo_n "(cached) " >&6
30942 else
30943 gcc_cv_as_riscv_attribute=no
30944 if test x$gcc_cv_as != x; then
30945 $as_echo '.attribute stack_align,4' > conftest.s
30946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30948 (eval $ac_try) 2>&5
30949 ac_status=$?
30950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30951 test $ac_status = 0; }; }
30952 then
30953 gcc_cv_as_riscv_attribute=yes
30954 else
30955 echo "configure: failed program was" >&5
30956 cat conftest.s >&5
30957 fi
30958 rm -f conftest.o conftest.s
30959 fi
30960 fi
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30962 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30963 if test $gcc_cv_as_riscv_attribute = yes; then
30964
30965 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30966
30967 fi
30968
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30970 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30971 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30972 $as_echo_n "(cached) " >&6
30973 else
30974 gcc_cv_as_riscv_isa_spec=no
30975 if test x$gcc_cv_as != x; then
30976 $as_echo '' > conftest.s
30977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30979 (eval $ac_try) 2>&5
30980 ac_status=$?
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; }
30983 then
30984 gcc_cv_as_riscv_isa_spec=yes
30985 else
30986 echo "configure: failed program was" >&5
30987 cat conftest.s >&5
30988 fi
30989 rm -f conftest.o conftest.s
30990 fi
30991 fi
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30993 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30994 if test $gcc_cv_as_riscv_isa_spec = yes; then
30995
30996 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30997
30998 fi
30999
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
31001 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
31002 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
31003 $as_echo_n "(cached) " >&6
31004 else
31005 gcc_cv_as_riscv_march_zifencei=no
31006 if test x$gcc_cv_as != x; then
31007 $as_echo '' > conftest.s
31008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
31009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31010 (eval $ac_try) 2>&5
31011 ac_status=$?
31012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31013 test $ac_status = 0; }; }
31014 then
31015 gcc_cv_as_riscv_march_zifencei=yes
31016 else
31017 echo "configure: failed program was" >&5
31018 cat conftest.s >&5
31019 fi
31020 rm -f conftest.o conftest.s
31021 fi
31022 fi
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
31024 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
31025 if test $gcc_cv_as_riscv_march_zifencei = yes; then
31026
31027 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
31028
31029 fi
31030
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zaamo_zalrsc support" >&5
31032 $as_echo_n "checking assembler for -march=rv32i_zaamo_zalrsc support... " >&6; }
31033 if ${gcc_cv_as_riscv_march_zaamo_zalrsc+:} false; then :
31034 $as_echo_n "(cached) " >&6
31035 else
31036 gcc_cv_as_riscv_march_zaamo_zalrsc=no
31037 if test x$gcc_cv_as != x; then
31038 $as_echo '' > conftest.s
31039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zaamo_zalrsc -o conftest.o conftest.s >&5'
31040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31041 (eval $ac_try) 2>&5
31042 ac_status=$?
31043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31044 test $ac_status = 0; }; }
31045 then
31046 gcc_cv_as_riscv_march_zaamo_zalrsc=yes
31047 else
31048 echo "configure: failed program was" >&5
31049 cat conftest.s >&5
31050 fi
31051 rm -f conftest.o conftest.s
31052 fi
31053 fi
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zaamo_zalrsc" >&5
31055 $as_echo "$gcc_cv_as_riscv_march_zaamo_zalrsc" >&6; }
31056 if test $gcc_cv_as_riscv_march_zaamo_zalrsc = yes; then
31057
31058 $as_echo "#define HAVE_AS_MARCH_ZAAMO_ZALRSC 1" >>confdefs.h
31059
31060 fi
31061
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_b support" >&5
31063 $as_echo_n "checking assembler for -march=rv32i_b support... " >&6; }
31064 if ${gcc_cv_as_riscv_march_b+:} false; then :
31065 $as_echo_n "(cached) " >&6
31066 else
31067 gcc_cv_as_riscv_march_b=no
31068 if test x$gcc_cv_as != x; then
31069 $as_echo '' > conftest.s
31070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_b -o conftest.o conftest.s >&5'
31071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31072 (eval $ac_try) 2>&5
31073 ac_status=$?
31074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31075 test $ac_status = 0; }; }
31076 then
31077 gcc_cv_as_riscv_march_b=yes
31078 else
31079 echo "configure: failed program was" >&5
31080 cat conftest.s >&5
31081 fi
31082 rm -f conftest.o conftest.s
31083 fi
31084 fi
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_b" >&5
31086 $as_echo "$gcc_cv_as_riscv_march_b" >&6; }
31087 if test $gcc_cv_as_riscv_march_b = yes; then
31088
31089 $as_echo "#define HAVE_AS_MARCH_B 1" >>confdefs.h
31090
31091 fi
31092
31093 ;;
31094 loongarch*-*-*)
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
31096 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
31097 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
31098 $as_echo_n "(cached) " >&6
31099 else
31100 gcc_cv_as_loongarch_dtprelword=no
31101 if test x$gcc_cv_as != x; then
31102 $as_echo '' > conftest.s
31103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
31104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31105 (eval $ac_try) 2>&5
31106 ac_status=$?
31107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31108 test $ac_status = 0; }; }
31109 then
31110 .section .tdata,"awT",@progbits
31111 x:
31112 .word 2
31113 .text
31114 .dtprelword x+0x8000
31115 else
31116 echo "configure: failed program was" >&5
31117 cat conftest.s >&5
31118 fi
31119 rm -f conftest.o conftest.s
31120 fi
31121 fi
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
31123 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
31124
31125 if test $gcc_cv_as_loongarch_dtprelword != yes; then
31126
31127 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
31128
31129 fi
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
31131 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
31132 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
31133 $as_echo_n "(cached) " >&6
31134 else
31135 gcc_cv_as_loongarch_explicit_relocs=no
31136 if test x$gcc_cv_as != x; then
31137 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
31138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31140 (eval $ac_try) 2>&5
31141 ac_status=$?
31142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31143 test $ac_status = 0; }; }
31144 then
31145 gcc_cv_as_loongarch_explicit_relocs=yes
31146 else
31147 echo "configure: failed program was" >&5
31148 cat conftest.s >&5
31149 fi
31150 rm -f conftest.o conftest.s
31151 fi
31152 fi
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
31154 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
31155 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
31156
31157 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
31158
31159 fi
31160
31161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
31162 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
31163 if ${gcc_cv_as_loongarch_call36+:} false; then :
31164 $as_echo_n "(cached) " >&6
31165 else
31166 gcc_cv_as_loongarch_call36=no
31167 if test x$gcc_cv_as != x; then
31168 $as_echo 'pcaddu18i $r1, %call36(a)
31169 jirl $r1, $r1, 0' > conftest.s
31170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31172 (eval $ac_try) 2>&5
31173 ac_status=$?
31174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31175 test $ac_status = 0; }; }
31176 then
31177 gcc_cv_as_loongarch_call36=yes
31178 else
31179 echo "configure: failed program was" >&5
31180 cat conftest.s >&5
31181 fi
31182 rm -f conftest.o conftest.s
31183 fi
31184 fi
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31186 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31187 if test $gcc_cv_as_loongarch_call36 = yes; then
31188
31189 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31190
31191 fi
31192
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31194 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31195 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31196 $as_echo_n "(cached) " >&6
31197 else
31198 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31199 if test x$gcc_cv_as != x; then
31200 $as_echo '.cfi_startproc
31201 .cfi_personality 0x9b,a
31202 .cfi_lsda 0x1b,b
31203 .cfi_endproc' > conftest.s
31204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31206 (eval $ac_try) 2>&5
31207 ac_status=$?
31208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31209 test $ac_status = 0; }; }
31210 then
31211 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31212 else
31213 echo "configure: failed program was" >&5
31214 cat conftest.s >&5
31215 fi
31216 rm -f conftest.o conftest.s
31217 fi
31218 fi
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31220 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31221 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31222
31223 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31224
31225 fi
31226
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31228 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31229 if ${gcc_cv_as_loongarch_relax+:} false; then :
31230 $as_echo_n "(cached) " >&6
31231 else
31232 gcc_cv_as_loongarch_relax=no
31233 if test x$gcc_cv_as != x; then
31234 $as_echo '.text' > conftest.s
31235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31237 (eval $ac_try) 2>&5
31238 ac_status=$?
31239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31240 test $ac_status = 0; }; }
31241 then
31242 gcc_cv_as_loongarch_relax=yes
31243 else
31244 echo "configure: failed program was" >&5
31245 cat conftest.s >&5
31246 fi
31247 rm -f conftest.o conftest.s
31248 fi
31249 fi
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31251 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31252 if test $gcc_cv_as_loongarch_relax = yes; then
31253
31254 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31255
31256 fi
31257
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31259 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31260 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31261 $as_echo_n "(cached) " >&6
31262 else
31263 gcc_cv_as_loongarch_cond_branch_relax=no
31264 if test x$gcc_cv_as != x; then
31265 $as_echo 'a:
31266 .rept 32769
31267 nop
31268 .endr
31269 beq $a0,$a1,a' > conftest.s
31270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31272 (eval $ac_try) 2>&5
31273 ac_status=$?
31274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31275 test $ac_status = 0; }; }
31276 then
31277 gcc_cv_as_loongarch_cond_branch_relax=yes
31278 else
31279 echo "configure: failed program was" >&5
31280 cat conftest.s >&5
31281 fi
31282 rm -f conftest.o conftest.s
31283 fi
31284 fi
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31286 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31287 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31288
31289 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31290
31291 fi
31292
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31294 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31295 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31296 $as_echo_n "(cached) " >&6
31297 else
31298 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31299 if test x$gcc_cv_as != x; then
31300 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31303 (eval $ac_try) 2>&5
31304 ac_status=$?
31305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31306 test $ac_status = 0; }; }
31307 then
31308 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31309 else
31310 echo "configure: failed program was" >&5
31311 cat conftest.s >&5
31312 fi
31313 rm -f conftest.o conftest.s
31314 fi
31315 fi
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31317 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31318 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31319
31320 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31321
31322 fi
31323
31324 ;;
31325 s390*-*-*)
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31327 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31328 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31329 $as_echo_n "(cached) " >&6
31330 else
31331 gcc_cv_as_s390_gnu_attribute=no
31332 if test x$gcc_cv_as != x; then
31333 $as_echo '.gnu_attribute 8,1' > conftest.s
31334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31336 (eval $ac_try) 2>&5
31337 ac_status=$?
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; }
31340 then
31341 gcc_cv_as_s390_gnu_attribute=yes
31342 else
31343 echo "configure: failed program was" >&5
31344 cat conftest.s >&5
31345 fi
31346 rm -f conftest.o conftest.s
31347 fi
31348 fi
31349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31350 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31351 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31352
31353 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31354
31355 fi
31356
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31358 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31359 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31360 $as_echo_n "(cached) " >&6
31361 else
31362 gcc_cv_as_s390_machine_machinemode=no
31363 if test x$gcc_cv_as != x; then
31364 $as_echo ' .machinemode push
31365 .machinemode pop
31366 .machine push
31367 .machine pop' > conftest.s
31368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31370 (eval $ac_try) 2>&5
31371 ac_status=$?
31372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31373 test $ac_status = 0; }; }
31374 then
31375 gcc_cv_as_s390_machine_machinemode=yes
31376 else
31377 echo "configure: failed program was" >&5
31378 cat conftest.s >&5
31379 fi
31380 rm -f conftest.o conftest.s
31381 fi
31382 fi
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31384 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31385 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31386
31387 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31388
31389 fi
31390
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31392 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31393 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31394 $as_echo_n "(cached) " >&6
31395 else
31396 gcc_cv_as_s390_architecture_modifiers=no
31397 if test x$gcc_cv_as != x; then
31398 $as_echo ' .machine z13+vx ' > conftest.s
31399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31404 test $ac_status = 0; }; }
31405 then
31406 gcc_cv_as_s390_architecture_modifiers=yes
31407 else
31408 echo "configure: failed program was" >&5
31409 cat conftest.s >&5
31410 fi
31411 rm -f conftest.o conftest.s
31412 fi
31413 fi
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31415 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31416 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31417
31418 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31419
31420 fi
31421
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31423 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31424 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31425 $as_echo_n "(cached) " >&6
31426 else
31427 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31428 if test x$gcc_cv_as != x; then
31429 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31435 test $ac_status = 0; }; }
31436 then
31437 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31438 else
31439 echo "configure: failed program was" >&5
31440 cat conftest.s >&5
31441 fi
31442 rm -f conftest.o conftest.s
31443 fi
31444 fi
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31446 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31447 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31448
31449 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31450
31451 fi
31452
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31454 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31455 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31456 $as_echo_n "(cached) " >&6
31457 else
31458 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31459 if test x$gcc_cv_as != x; then
31460 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31463 (eval $ac_try) 2>&5
31464 ac_status=$?
31465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31466 test $ac_status = 0; }; }
31467 then
31468 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31469 else
31470 echo "configure: failed program was" >&5
31471 cat conftest.s >&5
31472 fi
31473 rm -f conftest.o conftest.s
31474 fi
31475 fi
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31477 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31478 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31479
31480 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31481
31482 fi
31483
31484
31485 ;;
31486 esac
31487
31488 # Mips, LoongArch and HP-UX need the GNU assembler.
31489 # Linux on IA64 might be able to use the Intel assembler.
31490
31491 case "$target" in
31492 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31493 if test x$gas_flag = xyes \
31494 || test x"$host" != x"$build" \
31495 || test ! -x "$gcc_cv_as" \
31496 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31497 :
31498 else
31499 echo "*** This configuration requires the GNU assembler" >&2
31500 exit 1
31501 fi
31502 ;;
31503 esac
31504
31505 # AMD GCN needs the LLVM assembler and linker.
31506 # Test that LLVM is at least 13.0.1.
31507 case "$target" in
31508 amdgcn-* | gcn-*)
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31510 $as_echo_n "checking llvm assembler version... " >&6; }
31511 gcc_cv_as_version="unknown"
31512 if test x$gcc_cv_as != x; then
31513 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31514 case "$gcc_cv_as_version" in
31515 13.0.[1-9]*) ;; # 13.0.1+
31516 13.[1-9]*) ;; # 13.1+
31517 1[4-9]*) ;; # 14..19
31518 [2-9][0-9]*) ;; # 20..99
31519 [1-9][0-9][0-9]*) ;; # 100+
31520 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31521 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31522 esac
31523 fi
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31525 $as_echo "$gcc_cv_as_version, ok" >&6; }
31526 ;;
31527 esac
31528
31529 case "$target" in
31530 arm*)
31531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31532 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31533 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31534 $as_echo_n "(cached) " >&6
31535 else
31536 gcc_cv_as_arm_option_extensions=no
31537 if test x$gcc_cv_as != x; then
31538 $as_echo '.text
31539 .thumb
31540 .syntax unified
31541 vmov.f32 s0, s1' > conftest.s
31542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31544 (eval $ac_try) 2>&5
31545 ac_status=$?
31546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547 test $ac_status = 0; }; }
31548 then
31549 gcc_cv_as_arm_option_extensions=yes
31550 else
31551 echo "configure: failed program was" >&5
31552 cat conftest.s >&5
31553 fi
31554 rm -f conftest.o conftest.s
31555 fi
31556 fi
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31558 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31559 if test $gcc_cv_as_arm_option_extensions = yes; then
31560
31561 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31562
31563 fi
31564
31565 esac
31566
31567 # ??? Not all targets support dwarf2 debug_line, even within a version
31568 # of gas. Moreover, we need to emit a valid instruction to trigger any
31569 # info to the output file. So, as supported targets are added to gas 2.11,
31570 # add some instruction here to (also) show we expect this might work.
31571 # ??? Once 2.11 is released, probably need to add first known working
31572 # version to the per-target configury.
31573 case "$cpu_type" in
31574 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31575 | m68k | microblaze | mips | nds32 | pa | riscv | rs6000 | score | sparc \
31576 | visium | xstormy16 | xtensa | ft32)
31577 insn="nop"
31578 ;;
31579 ia64 | s390)
31580 insn="nop 0"
31581 ;;
31582 mmix)
31583 insn="swym 0"
31584 ;;
31585 esac
31586 if test x"$insn" != x; then
31587 conftest_s="\
31588 .file 1 \"conftest.s\"
31589 .loc 1 3 0
31590 $insn"
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31592 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31593 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31594 $as_echo_n "(cached) " >&6
31595 else
31596 gcc_cv_as_dwarf2_debug_line=no
31597 if test x$gcc_cv_as != x; then
31598 $as_echo "$conftest_s" > conftest.s
31599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31601 (eval $ac_try) 2>&5
31602 ac_status=$?
31603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31604 test $ac_status = 0; }; }
31605 then
31606 if test x$gcc_cv_objdump != x \
31607 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31608 | grep debug_line > /dev/null 2>&1; then
31609 gcc_cv_as_dwarf2_debug_line=yes
31610 elif test x$gcc_cv_otool != x \
31611 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31612 | grep debug_line > /dev/null 2>&1; then
31613 gcc_cv_as_dwarf2_debug_line=yes
31614 fi
31615 else
31616 echo "configure: failed program was" >&5
31617 cat conftest.s >&5
31618 fi
31619 rm -f conftest.o conftest.s
31620 fi
31621 fi
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31623 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31624
31625
31626
31627 # The .debug_line file table must be in the exact order that
31628 # we specified the files, since these indices are also used
31629 # by DW_AT_decl_file. Approximate this test by testing if
31630 # the assembler bitches if the same index is assigned twice.
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31632 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31633 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31634 $as_echo_n "(cached) " >&6
31635 else
31636 gcc_cv_as_dwarf2_file_buggy=no
31637 if test x$gcc_cv_as != x; then
31638 $as_echo ' .file 1 "foo.s"
31639 .file 1 "bar.s"' > conftest.s
31640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31642 (eval $ac_try) 2>&5
31643 ac_status=$?
31644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31645 test $ac_status = 0; }; }
31646 then
31647 gcc_cv_as_dwarf2_file_buggy=yes
31648 else
31649 echo "configure: failed program was" >&5
31650 cat conftest.s >&5
31651 fi
31652 rm -f conftest.o conftest.s
31653 fi
31654 fi
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31656 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31657
31658
31659
31660 if test $gcc_cv_as_dwarf2_debug_line = yes \
31661 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31662
31663 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31664
31665
31666 if test $gcc_cv_as_leb128 = yes; then
31667 conftest_s="\
31668 .file 1 \"conftest.s\"
31669 .loc 1 3 0 view .LVU1
31670 $insn
31671 .data
31672 .uleb128 .LVU1
31673 .uleb128 .LVU1
31674 "
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31676 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31677 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31678 $as_echo_n "(cached) " >&6
31679 else
31680 gcc_cv_as_dwarf2_debug_view=no
31681 if test x$gcc_cv_as != x; then
31682 $as_echo "$conftest_s" > conftest.s
31683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31685 (eval $ac_try) 2>&5
31686 ac_status=$?
31687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31688 test $ac_status = 0; }; }
31689 then
31690 gcc_cv_as_dwarf2_debug_view=yes
31691 else
31692 echo "configure: failed program was" >&5
31693 cat conftest.s >&5
31694 fi
31695 rm -f conftest.o conftest.s
31696 fi
31697 fi
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31699 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31700 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31701
31702 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31703
31704 fi
31705
31706 fi
31707 fi
31708
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31710 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31711 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31712 $as_echo_n "(cached) " >&6
31713 else
31714 gcc_cv_as_gdwarf2_flag=no
31715 if test x$gcc_cv_as != x; then
31716 $as_echo "$insn" > conftest.s
31717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31722 test $ac_status = 0; }; }
31723 then
31724 gcc_cv_as_gdwarf2_flag=yes
31725 else
31726 echo "configure: failed program was" >&5
31727 cat conftest.s >&5
31728 fi
31729 rm -f conftest.o conftest.s
31730 fi
31731 fi
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31733 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31734 if test $gcc_cv_as_gdwarf2_flag = yes; then
31735
31736 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31737
31738 fi
31739
31740
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31742 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31743 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31744 $as_echo_n "(cached) " >&6
31745 else
31746 gcc_cv_as_gdwarf_5_flag=no
31747 if test x$gcc_cv_as != x; then
31748 $as_echo "$insn" > conftest.s
31749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31751 (eval $ac_try) 2>&5
31752 ac_status=$?
31753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31754 test $ac_status = 0; }; }
31755 then
31756 if test x$gcc_cv_objdump != x \
31757 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31758 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31759 gcc_cv_as_gdwarf_5_flag=yes;
31760 fi
31761 else
31762 echo "configure: failed program was" >&5
31763 cat conftest.s >&5
31764 fi
31765 rm -f conftest.o conftest.s
31766 fi
31767 fi
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31769 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31770 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31771
31772 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31773
31774 fi
31775
31776
31777 case $target_os in
31778 win32 | pe | cygwin* | mingw32*)
31779 section_flags=\"dr\"
31780 function_type=".def foo; .scl 2; .type 32; .endef"
31781 function_size="";;
31782 *)
31783 section_flags=\"\",%progbits
31784 function_type=".type foo, %function"
31785 function_size=".size foo, .-foo";;
31786 esac
31787 dwarf4_debug_info_size=0x46
31788 dwarf4_high_pc_form=7
31789 dwarf4_debug_aranges_size=0x2c
31790 dwarf4_line_sz=9
31791 for dwarf4_addr_size in 8 4; do
31792 conftest_s="\
31793 .file \"a.c\"
31794 .text
31795 .Ltext0:
31796 .p2align 4
31797 .globl foo
31798 $function_type
31799 foo:
31800 .LFB0:
31801 .LM1:
31802 $insn
31803 .LM2:
31804 .LFE0:
31805 $function_size
31806 .Letext0:
31807 .section .debug_info,$section_flags
31808 .Ldebug_info0:
31809 .4byte $dwarf4_debug_info_size
31810 .2byte 0x4
31811 .4byte .Ldebug_abbrev0
31812 .byte 0x$dwarf4_addr_size
31813 .byte 0x1
31814 .ascii \"GNU C17\\0\"
31815 .byte 0xc
31816 .ascii \"a.c\\0\"
31817 .ascii \"/\\0\"
31818 .${dwarf4_addr_size}byte .Ltext0
31819 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31820 .4byte .Ldebug_line0
31821 .byte 0x2
31822 .ascii \"foo\\0\"
31823 .byte 0x1
31824 .byte 0x2
31825 .byte 0x1
31826 .${dwarf4_addr_size}byte .LFB0
31827 .${dwarf4_addr_size}byte .LFE0-.LFB0
31828 .byte 0x1
31829 .byte 0x9c
31830 .byte 0
31831 .section .debug_abbrev,$section_flags
31832 .Ldebug_abbrev0:
31833 .byte 0x1
31834 .byte 0x11
31835 .byte 0x1
31836 .byte 0x25
31837 .byte 0x8
31838 .byte 0x13
31839 .byte 0xb
31840 .byte 0x3
31841 .byte 0x8
31842 .byte 0x1b
31843 .byte 0x8
31844 .byte 0x11
31845 .byte 0x1
31846 .byte 0x12
31847 .byte 0x$dwarf4_high_pc_form
31848 .byte 0x10
31849 .byte 0x17
31850 .byte 0
31851 .byte 0
31852 .byte 0x2
31853 .byte 0x2e
31854 .byte 0
31855 .byte 0x3f
31856 .byte 0x19
31857 .byte 0x3
31858 .byte 0x8
31859 .byte 0x3a
31860 .byte 0xb
31861 .byte 0x3b
31862 .byte 0xb
31863 .byte 0x39
31864 .byte 0xb
31865 .byte 0x11
31866 .byte 0x1
31867 .byte 0x12
31868 .byte 0x$dwarf4_high_pc_form
31869 .byte 0x40
31870 .byte 0x18
31871 .byte 0
31872 .byte 0
31873 .byte 0
31874 .section .debug_aranges,$section_flags
31875 .4byte $dwarf4_debug_aranges_size
31876 .2byte 0x2
31877 .4byte .Ldebug_info0
31878 .byte 0x8
31879 .byte 0
31880 .2byte 0
31881 .2byte 0
31882 .${dwarf4_addr_size}byte .Ltext0
31883 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31884 .${dwarf4_addr_size}byte 0
31885 .${dwarf4_addr_size}byte 0
31886 .section .debug_line,$section_flags
31887 .Ldebug_line0:
31888 .4byte .LELT0-.LSLT0
31889 .LSLT0:
31890 .2byte 0x4
31891 .4byte .LELTP0-.LASLTP0
31892 .LASLTP0:
31893 .byte 0x1
31894 .byte 0x1
31895 .byte 0x1
31896 .byte 0xf6
31897 .byte 0xf2
31898 .byte 0xd
31899 .byte 0
31900 .byte 0x1
31901 .byte 0x1
31902 .byte 0x1
31903 .byte 0x1
31904 .byte 0
31905 .byte 0
31906 .byte 0
31907 .byte 0x1
31908 .byte 0
31909 .byte 0
31910 .byte 0x1
31911 .byte 0
31912 .ascii \"a.c\\0\"
31913 .byte 0
31914 .byte 0
31915 .byte 0
31916 .byte 0
31917 .LELTP0:
31918 .byte 0
31919 .byte 0x$dwarf4_line_sz
31920 .byte 0x2
31921 .${dwarf4_addr_size}byte .LM1
31922 .byte 0x18
31923 .byte 0x5
31924 .byte 0x1
31925 .byte 0
31926 .byte 0x$dwarf4_line_sz
31927 .byte 0x2
31928 .${dwarf4_addr_size}byte .LM2
31929 .byte 0x1
31930 .byte 0x5
31931 .byte 0x1
31932 .byte 0
31933 .byte 0x$dwarf4_line_sz
31934 .byte 0x2
31935 .${dwarf4_addr_size}byte .Letext0
31936 .byte 0
31937 .byte 0x1
31938 .byte 0x1
31939 .LELT0:
31940 .section .debug_str,$section_flags
31941 .ident \"GCC\"
31942 "
31943 dwarf4_success=no
31944 if test $dwarf4_addr_size = 4; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31946 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31947 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31948 $as_echo_n "(cached) " >&6
31949 else
31950 gcc_cv_as_debug_line_32_flag=no
31951 if test x$gcc_cv_as != x; then
31952 $as_echo "$conftest_s" > conftest.s
31953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31958 test $ac_status = 0; }; }
31959 then
31960 gcc_cv_as_debug_line_32_flag=yes
31961 else
31962 echo "configure: failed program was" >&5
31963 cat conftest.s >&5
31964 fi
31965 rm -f conftest.o conftest.s
31966 fi
31967 fi
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31969 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31970 if test $gcc_cv_as_debug_line_32_flag = yes; then
31971 dwarf4_success=yes
31972 fi
31973
31974 else
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31976 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31977 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31978 $as_echo_n "(cached) " >&6
31979 else
31980 gcc_cv_as_debug_line_64_flag=no
31981 if test x$gcc_cv_as != x; then
31982 $as_echo "$conftest_s" > conftest.s
31983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31985 (eval $ac_try) 2>&5
31986 ac_status=$?
31987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31988 test $ac_status = 0; }; }
31989 then
31990 gcc_cv_as_debug_line_64_flag=yes
31991 else
31992 echo "configure: failed program was" >&5
31993 cat conftest.s >&5
31994 fi
31995 rm -f conftest.o conftest.s
31996 fi
31997 fi
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31999 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
32000 if test $gcc_cv_as_debug_line_64_flag = yes; then
32001 dwarf4_success=yes
32002 fi
32003
32004 fi
32005 if test $dwarf4_success = yes; then
32006 dwarf4_success=no
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
32008 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
32009 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
32010 $as_echo_n "(cached) " >&6
32011 else
32012 gcc_cv_as_dwarf_4_debug_line_flag=no
32013 if test x$gcc_cv_as != x; then
32014 $as_echo "$conftest_s" > conftest.s
32015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
32016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32017 (eval $ac_try) 2>&5
32018 ac_status=$?
32019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32020 test $ac_status = 0; }; }
32021 then
32022 gcc_cv_as_dwarf_4_debug_line_flag=yes
32023 else
32024 echo "configure: failed program was" >&5
32025 cat conftest.s >&5
32026 fi
32027 rm -f conftest.o conftest.s
32028 fi
32029 fi
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
32031 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
32032 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
32033 dwarf4_success=yes
32034 fi
32035
32036 break
32037 fi
32038 dwarf4_debug_info_size=0x36
32039 dwarf4_high_pc_form=6
32040 dwarf4_debug_aranges_size=0x1c
32041 dwarf4_line_sz=5
32042 done
32043
32044 if test $dwarf4_success = yes; then
32045 conftest_s="\
32046 .file \"foo.c\"
32047 .text
32048 bar:
32049 #APP
32050 # 82 \"xxx.h\" 1
32051 $insn
32052 # 0 \"\" 2
32053 #NO_APP
32054 $insn
32055 foo:
32056 .file 1 \"foo.c\"
32057 $insn
32058 .file 2 \"foo.h\"
32059 ret
32060 "
32061 dwarf4_success=no
32062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
32063 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
32064 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
32065 $as_echo_n "(cached) " >&6
32066 else
32067 gcc_cv_as_dwarf_4_app_flag=no
32068 if test x$gcc_cv_as != x; then
32069 $as_echo "$conftest_s" > conftest.s
32070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
32071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32075 test $ac_status = 0; }; }
32076 then
32077 gcc_cv_as_dwarf_4_app_flag=yes
32078 else
32079 echo "configure: failed program was" >&5
32080 cat conftest.s >&5
32081 fi
32082 rm -f conftest.o conftest.s
32083 fi
32084 fi
32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
32086 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
32087 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
32088 dwarf4_success=yes
32089 fi
32090
32091 fi
32092
32093 if test $dwarf4_success = yes; then
32094 conftest_s="\
32095 .text
32096 .globl foo
32097 $function_type
32098 foo:
32099 $insn
32100 $function_size
32101 .file 1 \"foo.c\"
32102 "
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
32104 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
32105 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
32106 $as_echo_n "(cached) " >&6
32107 else
32108 gcc_cv_as_working_gdwarf_n_flag=no
32109 if test x$gcc_cv_as != x; then
32110 $as_echo "$conftest_s" > conftest.s
32111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
32112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32113 (eval $ac_try) 2>&5
32114 ac_status=$?
32115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32116 test $ac_status = 0; }; }
32117 then
32118 if test x$gcc_cv_objdump != x \
32119 && $gcc_cv_objdump -W conftest.o 2>&1 \
32120 | grep conftest.s > /dev/null 2>&1; then
32121 gcc_cv_as_working_gdwarf_n_flag=no
32122 else
32123 gcc_cv_as_working_gdwarf_n_flag=yes
32124 fi
32125 else
32126 echo "configure: failed program was" >&5
32127 cat conftest.s >&5
32128 fi
32129 rm -f conftest.o conftest.s
32130 fi
32131 fi
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
32133 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
32134
32135
32136 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
32137
32138 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
32139
32140 fi
32141 fi
32142
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
32144 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
32145 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
32146 $as_echo_n "(cached) " >&6
32147 else
32148 gcc_cv_as_debug_prefix_map_flag=no
32149 if test x$gcc_cv_as != x; then
32150 $as_echo "$insn" > conftest.s
32151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
32152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32153 (eval $ac_try) 2>&5
32154 ac_status=$?
32155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32156 test $ac_status = 0; }; }
32157 then
32158 gcc_cv_as_debug_prefix_map_flag=yes
32159 else
32160 echo "configure: failed program was" >&5
32161 cat conftest.s >&5
32162 fi
32163 rm -f conftest.o conftest.s
32164 fi
32165 fi
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
32167 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
32168 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32169
32170 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32171
32172 fi
32173
32174 fi
32175
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32177 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32178 if ${gcc_cv_as_compress_debug+:} false; then :
32179 $as_echo_n "(cached) " >&6
32180 else
32181 gcc_cv_as_compress_debug=no
32182 if test x$gcc_cv_as != x; then
32183 $as_echo '' > conftest.s
32184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32189 test $ac_status = 0; }; }
32190 then
32191 # gas compiled without zlib cannot compress debug sections and warns
32192 # about it, but still exits successfully. So check for this, too.
32193 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32194 then
32195 gcc_cv_as_compress_debug=0
32196 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32197 then
32198 gcc_cv_as_compress_debug=1
32199 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32200 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32201 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32202 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32203 then
32204 gcc_cv_as_compress_debug=2
32205 fi
32206 else
32207 gcc_cv_as_compress_debug=0
32208 fi
32209 else
32210 echo "configure: failed program was" >&5
32211 cat conftest.s >&5
32212 fi
32213 rm -f conftest.o conftest.s
32214 fi
32215 fi
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32217 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32218
32219
32220
32221 cat >>confdefs.h <<_ACEOF
32222 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32223 _ACEOF
32224
32225
32226 cat >>confdefs.h <<_ACEOF
32227 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32228 _ACEOF
32229
32230
32231 cat >>confdefs.h <<_ACEOF
32232 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32233 _ACEOF
32234
32235
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32237 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32238 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32239 $as_echo_n "(cached) " >&6
32240 else
32241 gcc_cv_as_lcomm_with_alignment=no
32242 if test x$gcc_cv_as != x; then
32243 $as_echo '.lcomm bar,4,16' > conftest.s
32244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32246 (eval $ac_try) 2>&5
32247 ac_status=$?
32248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32249 test $ac_status = 0; }; }
32250 then
32251 gcc_cv_as_lcomm_with_alignment=yes
32252 else
32253 echo "configure: failed program was" >&5
32254 cat conftest.s >&5
32255 fi
32256 rm -f conftest.o conftest.s
32257 fi
32258 fi
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32260 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32261 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32262
32263 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32264
32265 fi
32266
32267
32268 if test x$with_sysroot = x && test x$host = x$target \
32269 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32270 && test "$prefix" != "NONE"; then
32271
32272 cat >>confdefs.h <<_ACEOF
32273 #define PREFIX_INCLUDE_DIR "$prefix/include"
32274 _ACEOF
32275
32276 fi
32277
32278 # Determine the version of glibc, if any, used on the target.
32279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32280 $as_echo_n "checking for target glibc version... " >&6; }
32281
32282 # Check whether --with-glibc-version was given.
32283 if test "${with_glibc_version+set}" = set; then :
32284 withval=$with_glibc_version;
32285 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32286 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32287 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32288 else
32289 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32290 fi
32291 else
32292
32293 glibc_version_major=0
32294 glibc_version_minor=0
32295 if test -f $target_header_dir/features.h \
32296 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32297 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32298 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32299 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32300 fi
32301 fi
32302
32303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32304 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32305
32306 cat >>confdefs.h <<_ACEOF
32307 #define TARGET_GLIBC_MAJOR $glibc_version_major
32308 _ACEOF
32309
32310
32311 cat >>confdefs.h <<_ACEOF
32312 #define TARGET_GLIBC_MINOR $glibc_version_minor
32313 _ACEOF
32314
32315
32316 # Check whether --enable-gnu-unique-object was given.
32317 if test "${enable_gnu_unique_object+set}" = set; then :
32318 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32319 yes | no) ;;
32320 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32321 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32322 esac
32323 else
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32325 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32326 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32327 $as_echo_n "(cached) " >&6
32328 else
32329 gcc_cv_as_gnu_unique_object=no
32330 if test x$gcc_cv_as != x; then
32331 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32334 (eval $ac_try) 2>&5
32335 ac_status=$?
32336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32337 test $ac_status = 0; }; }
32338 then
32339 gcc_cv_as_gnu_unique_object=yes
32340 else
32341 echo "configure: failed program was" >&5
32342 cat conftest.s >&5
32343 fi
32344 rm -f conftest.o conftest.s
32345 fi
32346 fi
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32348 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32349 if test $gcc_cv_as_gnu_unique_object = yes; then
32350 # We need to unquote above to to use the definition from config.gcc.
32351 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32352
32353 if test $glibc_version_major -gt 2 \
32354 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32355 enable_gnu_unique_object=yes
32356 fi
32357
32358 fi
32359
32360 fi
32361
32362 if test x$enable_gnu_unique_object = xyes; then
32363
32364 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32365
32366 fi
32367
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32369 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32370 if ${gcc_cv_as_line_zero+:} false; then :
32371 $as_echo_n "(cached) " >&6
32372 else
32373 gcc_cv_as_line_zero=no
32374 if test "x$gcc_cv_as" != x; then
32375 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32376 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32381 test $ac_status = 0; }; } &&
32382 test "x`cat conftest.out`" = x
32383 then
32384 gcc_cv_as_line_zero=yes
32385 else
32386 echo "configure: failed program was" >&5
32387 cat conftest.s >&5
32388 echo "configure: error output was" >&5
32389 cat conftest.out >&5
32390 fi
32391 rm -f conftest.o conftest.s conftest.out
32392 fi
32393 fi
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32395 $as_echo "$gcc_cv_as_line_zero" >&6; }
32396 if test "x$gcc_cv_as_line_zero" = xyes; then
32397
32398 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32399
32400 fi
32401
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32403 $as_echo_n "checking support for thin archives... " >&6; }
32404 thin_archive_support=no
32405 echo 'int main (void) { return 0; }' > conftest.c
32406 if ($AR --version | sed 1q | grep "GNU ar" \
32407 && $CC $CFLAGS -c conftest.c \
32408 && $AR rcT conftest.a conftest.o \
32409 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32410 thin_archive_support=yes
32411 fi
32412 rm -f conftest.c conftest.o conftest.a conftest
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32414 $as_echo "$thin_archive_support" >&6; }
32415
32416
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32418 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32419 gcc_cv_ld_eh_frame_hdr=no
32420 if test $in_tree_ld = yes ; then
32421 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
32422 && test $in_tree_ld_is_elf = yes; then
32423 gcc_cv_ld_eh_frame_hdr=yes
32424 fi
32425 elif test x$gcc_cv_ld != x; then
32426 if echo "$ld_ver" | grep GNU > /dev/null; then
32427 # Check if linker supports --eh-frame-hdr option
32428 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32429 gcc_cv_ld_eh_frame_hdr=yes
32430 fi
32431 else
32432 case "$target" in
32433 *-*-solaris2*)
32434 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32435 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32436 gcc_cv_ld_eh_frame_hdr=yes
32437 fi
32438 ;;
32439 esac
32440 fi
32441 fi
32442
32443 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32444
32445 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32446
32447 fi
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32449 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32450
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32452 $as_echo_n "checking linker position independent executable support... " >&6; }
32453 gcc_cv_ld_pie=no
32454 if test $in_tree_ld = yes ; then
32455 case "$target" in
32456 # Full PIE support on Solaris was only introduced in gld 2.26.
32457 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32458 *) gcc_gld_pie_min_version=15 ;;
32459 esac
32460 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 \
32461 && test $in_tree_ld_is_elf = yes; then
32462 gcc_cv_ld_pie=yes
32463 fi
32464 elif test x$gcc_cv_ld != x; then
32465 # Check if linker supports -pie option
32466 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32467 gcc_cv_ld_pie=yes
32468 case "$target" in
32469 *-*-solaris2*)
32470 if echo "$ld_ver" | grep GNU > /dev/null \
32471 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32472 gcc_cv_ld_pie=no
32473 fi
32474 ;;
32475 esac
32476 else
32477 case "$target" in
32478 *-*-solaris2.1[1-9]*)
32479 # Solaris 11.3 added PIE support.
32480 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32481 gcc_cv_ld_pie=yes
32482 fi
32483 ;;
32484 esac
32485 fi
32486 fi
32487 if test x"$gcc_cv_ld_pie" = xyes; then
32488
32489 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32490
32491 fi
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32493 $as_echo "$gcc_cv_ld_pie" >&6; }
32494
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32496 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32497 gcc_cv_ld_pie_copyreloc=no
32498 if test $gcc_cv_ld_pie = yes ; then
32499 if test $in_tree_ld = yes ; then
32500 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
32501 gcc_cv_ld_pie_copyreloc=yes
32502 fi
32503 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32504 # Check if linker supports -pie option with copy reloc
32505 case "$target" in
32506 i?86-*-linux* | x86_64-*-linux*)
32507 cat > conftest1.s <<EOF
32508 .globl a_glob
32509 .data
32510 .type a_glob, @object
32511 .size a_glob, 4
32512 a_glob:
32513 .long 2
32514 EOF
32515 cat > conftest2.s <<EOF
32516 .text
32517 .globl main
32518 .type main, @function
32519 main:
32520 movl %eax, a_glob(%rip)
32521 .size main, .-main
32522 .globl ptr
32523 .section .data.rel,"aw",@progbits
32524 .type ptr, @object
32525 ptr:
32526 .quad a_glob
32527 EOF
32528 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32529 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32530 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32531 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32532 gcc_cv_ld_pie_copyreloc=yes
32533 fi
32534 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32535 ;;
32536 esac
32537 fi
32538 fi
32539
32540 cat >>confdefs.h <<_ACEOF
32541 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32542 _ACEOF
32543
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32545 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32546
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32548 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32549 gcc_cv_ld_eh_gc_sections=no
32550 if test $in_tree_ld = yes ; then
32551 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 \
32552 && test $in_tree_ld_is_elf = yes; then
32553 gcc_cv_ld_eh_gc_sections=yes
32554 fi
32555 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32556 cat > conftest.s <<EOF
32557 .section .text
32558 .globl _start
32559 .type _start, @function
32560 _start:
32561 .long foo
32562 .size _start, .-_start
32563 .section .text.foo,"ax",@progbits
32564 .type foo, @function
32565 foo:
32566 .long 0
32567 .size foo, .-foo
32568 .section .gcc_except_table.foo,"a",@progbits
32569 .L0:
32570 .long 0
32571 .section .eh_frame,"a",@progbits
32572 .long .L0
32573 EOF
32574 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32575 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32576 | grep "gc-sections option ignored" > /dev/null; then
32577 gcc_cv_ld_eh_gc_sections=no
32578 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32579 | grep gcc_except_table > /dev/null; then
32580 gcc_cv_ld_eh_gc_sections=yes
32581 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32582 if test x$gcc_cv_as_comdat_group != xyes; then
32583 gcc_cv_ld_eh_gc_sections=no
32584 cat > conftest.s <<EOF
32585 .section .text
32586 .globl _start
32587 .type _start, @function
32588 _start:
32589 .long foo
32590 .size _start, .-_start
32591 .section .gnu.linkonce.t.foo,"ax",@progbits
32592 .type foo, @function
32593 foo:
32594 .long 0
32595 .size foo, .-foo
32596 .section .gcc_except_table.foo,"a",@progbits
32597 .L0:
32598 .long 0
32599 .section .eh_frame,"a",@progbits
32600 .long .L0
32601 EOF
32602 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32603 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32604 | grep "gc-sections option ignored" > /dev/null; then
32605 gcc_cv_ld_eh_gc_sections=no
32606 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32607 | grep gcc_except_table > /dev/null; then
32608 gcc_cv_ld_eh_gc_sections=yes
32609 fi
32610 fi
32611 fi
32612 fi
32613 fi
32614 rm -f conftest.s conftest.o conftest
32615 fi
32616 case "$target" in
32617 hppa*-*-linux*)
32618 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32619 gcc_cv_ld_eh_gc_sections=no
32620 ;;
32621 esac
32622 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32623
32624 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32625
32626 fi
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32628 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32629
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32631 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32632 gcc_cv_ld_eh_gc_sections_bug=no
32633 if test $in_tree_ld = yes ; then
32634 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 \
32635 && test $in_tree_ld_is_elf = yes; then
32636 gcc_cv_ld_eh_gc_sections_bug=yes
32637 fi
32638 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
32639 gcc_cv_ld_eh_gc_sections_bug=yes
32640 cat > conftest.s <<EOF
32641 .section .text
32642 .globl _start
32643 .type _start, @function
32644 _start:
32645 .long foo
32646 .size _start, .-_start
32647 .section .text.startup.foo,"ax",@progbits
32648 .type foo, @function
32649 foo:
32650 .long 0
32651 .size foo, .-foo
32652 .section .gcc_except_table.foo,"a",@progbits
32653 .L0:
32654 .long 0
32655 .section .eh_frame,"a",@progbits
32656 .long .L0
32657 EOF
32658 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32659 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32660 | grep "gc-sections option ignored" > /dev/null; then
32661 :
32662 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32663 | grep gcc_except_table > /dev/null; then
32664 gcc_cv_ld_eh_gc_sections_bug=no
32665 fi
32666 fi
32667 rm -f conftest.s conftest.o conftest
32668 fi
32669 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32670
32671 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32672
32673 fi
32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32675 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32676
32677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32678 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32679 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32680 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32681 gcc_cv_ld_compress_debug=1
32682 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32683 # Detect zstd debug section compression support
32684 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32685 gcc_cv_ld_compress_debug=2
32686 fi
32687 else
32688 case "${target}" in
32689 *-*-solaris2*)
32690 # Introduced in Solaris 11.2.
32691 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32692 gcc_cv_ld_compress_debug=1
32693 gcc_cv_ld_compress_debug_option="-z compress-sections"
32694 else
32695 gcc_cv_ld_compress_debug=0
32696 fi
32697 ;;
32698 *)
32699 # Assume linkers other than GNU ld don't support compessed debug
32700 # sections.
32701 gcc_cv_ld_compress_debug=0
32702 ;;
32703 esac
32704 fi
32705
32706 cat >>confdefs.h <<_ACEOF
32707 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32708 _ACEOF
32709
32710
32711 cat >>confdefs.h <<_ACEOF
32712 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32713 _ACEOF
32714
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32716 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32717
32718 if test x"$ld64_flag" = x"yes"; then
32719
32720 # Set defaults for possibly untestable items.
32721 gcc_cv_ld64_export_dynamic=0
32722 gcc_cv_ld64_platform_version=0
32723 gcc_cv_ld64_macos_version_min=0
32724 gcc_cv_ld64_demangle=0
32725
32726 if test "$build" = "$host"; then
32727 darwin_try_test=1
32728 else
32729 darwin_try_test=0
32730 fi
32731
32732 # On Darwin, because of FAT library support, it is often possible to execute
32733 # exes from compatible archs even when the host differs from the build system.
32734 case "$build","$host" in
32735 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32736 darwin_try_test=1;;
32737 *) ;;
32738 esac
32739
32740 # If the configurer specified a minimum ld64 version to be supported, then use
32741 # that to determine feature support.
32742 if test x"${gcc_cv_ld64_version}" != x; then
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32744 $as_echo_n "checking ld64 specified version... " >&6; }
32745 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32747 $as_echo "$gcc_cv_ld64_major" >&6; }
32748 if test "$gcc_cv_ld64_major" -ge 97; then
32749 gcc_cv_ld64_demangle=1
32750 fi
32751 if test "$gcc_cv_ld64_major" -ge 236; then
32752 gcc_cv_ld64_export_dynamic=1
32753 fi
32754 if test "$gcc_cv_ld64_major" -ge 512; then
32755 gcc_cv_ld64_platform_version=1
32756 gcc_cv_ld64_macos_version_min=1
32757 fi
32758 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32759 # If the version was not specified, try to find it.
32760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32761 $as_echo_n "checking linker version... " >&6; }
32762 if test x"${gcc_cv_ld64_version}" = x; then
32763 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld|PROJECT:ld' \
32764 | sed -e 's/.*ld64-//' -e 's/.*dyld-//' -e 's/.*PROJECT:ld-//' \
32765 | awk '{print $1}'`
32766 fi
32767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32768 $as_echo "$gcc_cv_ld64_version" >&6; }
32769
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32771 $as_echo_n "checking linker for -demangle support... " >&6; }
32772 gcc_cv_ld64_demangle=1
32773 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32774 gcc_cv_ld64_demangle=0
32775 fi
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32777 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32778
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32780 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32781 gcc_cv_ld64_export_dynamic=1
32782 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32783 gcc_cv_ld64_export_dynamic=0
32784 fi
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32786 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32787
32788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32789 $as_echo_n "checking linker for -platform_version support... " >&6; }
32790 gcc_cv_ld64_platform_version=1
32791 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32792 gcc_cv_ld64_platform_version=0
32793 fi
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32795 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32796
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -macos_version_min" >&5
32798 $as_echo_n "checking linker for -macos_version_min... " >&6; }
32799 gcc_cv_ld64_macos_version_min=1
32800 if $gcc_cv_ld -macos_version_min 10.5 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32801 gcc_cv_ld64_macos_version_min=0
32802 fi
32803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_macos_version_min" >&5
32804 $as_echo "$gcc_cv_ld64_macos_version_min" >&6; }
32805 fi
32806
32807 if test x"${gcc_cv_ld64_version}" != x; then
32808
32809 cat >>confdefs.h <<_ACEOF
32810 #define LD64_VERSION "${gcc_cv_ld64_version}"
32811 _ACEOF
32812
32813 fi
32814
32815
32816 cat >>confdefs.h <<_ACEOF
32817 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32818 _ACEOF
32819
32820
32821
32822 cat >>confdefs.h <<_ACEOF
32823 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32824 _ACEOF
32825
32826
32827
32828 cat >>confdefs.h <<_ACEOF
32829 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32830 _ACEOF
32831
32832
32833
32834 cat >>confdefs.h <<_ACEOF
32835 #define LD64_HAS_MACOS_VERSION_MIN $gcc_cv_ld64_macos_version_min
32836 _ACEOF
32837
32838 fi
32839
32840 if test x"$dsymutil_flag" = x"yes"; then
32841
32842 # If the user specified a dsymutil path, then we will already have the
32843 # version string, otherwise, pick it up.
32844 if test x"$gcc_cv_dsymutil" = x; then
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32846 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32847 dsymutil_vers="tool unspecified"
32848 elif test x"$dsymutil_vers" = x; then
32849 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32850 fi
32851
32852 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32854 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32855 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32856 dsymutil_kind=DWARFUTILS
32857 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32858 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32859 dsymutil_kind=CLANG
32860 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32861 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32862 dsymutil_kind=LLVM
32863 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32864 else
32865 dsymutil_kind=DET_UNKNOWN
32866 dsymutil_vers="0.0"
32867 fi
32868 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32869 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32870 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32871 if test x"${dsymutil_minor}" = x; then
32872 dsymutil_minor=0
32873 fi
32874 if test x"${dsymutil_tiny}" = x; then
32875 dsymutil_tiny=0
32876 fi
32877
32878 cat >>confdefs.h <<_ACEOF
32879 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32880 _ACEOF
32881
32882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32883 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32884 fi
32885
32886 case $target_os in
32887 win32 | pe | cygwin* | mingw32*)
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32889 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32890 gcc_cv_ld_broken_pe_dwarf5=yes
32891 if test $in_tree_ld = yes ; then
32892 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32893 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32894 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32895 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32896 gcc_cv_ld_broken_pe_dwarf5=no
32897 fi
32898 else
32899 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32900 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32901 gcc_cv_ld_broken_pe_dwarf5=no
32902 fi
32903 fi
32904 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32905
32906 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32907
32908 fi
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32910 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32911
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32913 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32914 gcc_cv_ld_disable_dynamicbase=no
32915 if test $in_tree_ld = yes; then
32916 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 \
32917 gcc_cv_ld_disable_dynamicbase=yes
32918 fi
32919 else
32920 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32921 gcc_cv_ld_disable_dynamicbase=yes
32922 fi
32923 fi
32924 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32925
32926 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32927
32928 fi
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32930 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32931 ;;
32932 esac
32933
32934 # --------
32935 # UNSORTED
32936 # --------
32937
32938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32939 $as_echo_n "checking linker --as-needed support... " >&6; }
32940 if ${gcc_cv_ld_as_needed+:} false; then :
32941 $as_echo_n "(cached) " >&6
32942 else
32943 gcc_cv_ld_as_needed=no
32944 gcc_cv_ld_as_needed_option='--as-needed'
32945 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32946 if test $in_tree_ld = yes ; then
32947 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 \
32948 && test $in_tree_ld_is_elf = yes; then
32949 gcc_cv_ld_as_needed=yes
32950 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32951 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32952 gcc_cv_ld_no_as_needed_option='--pop-state'
32953 fi
32954 fi
32955 elif test x$gcc_cv_ld != x; then
32956 # Check if linker supports --as-needed and --no-as-needed options
32957 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32958 gcc_cv_ld_as_needed=yes
32959 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32960 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32961 && echo "$ld_ver" | grep GNU > /dev/null \
32962 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32963 # Use these options only when both ld.bfd and ld.gold support
32964 # --push-state/--pop-state, which unfortunately wasn't added
32965 # at the same time.
32966 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32967 gcc_cv_ld_no_as_needed_option='--pop-state'
32968 fi
32969 fi
32970 case "$target:$gnu_ld" in
32971 *-*-solaris2*:no)
32972 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32973 # forms.
32974 gcc_cv_ld_as_needed=yes
32975 gcc_cv_ld_as_needed_option="-z ignore"
32976 gcc_cv_ld_no_as_needed_option="-z record"
32977 ;;
32978 esac
32979 fi
32980 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32981 # dl_iterate_phdr, i.e. since Solaris 11.
32982 case "$target" in
32983 *-*-solaris2.1[1-9]*)
32984 case "$target" in
32985 i?86-*-* | x86_64-*-*)
32986 if echo "$ld_ver" | grep GNU > /dev/null; then
32987 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32988 gcc_cv_ld_as_needed=no
32989 fi
32990 ;;
32991 esac
32992 ;;
32993 *-*-solaris2*)
32994 gcc_cv_ld_as_needed=no
32995 ;;
32996 esac
32997
32998 fi
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
33000 $as_echo "$gcc_cv_ld_as_needed" >&6; }
33001 if test x"$gcc_cv_ld_as_needed" = xyes; then
33002
33003 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
33004
33005
33006 cat >>confdefs.h <<_ACEOF
33007 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
33008 _ACEOF
33009
33010
33011 cat >>confdefs.h <<_ACEOF
33012 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
33013 _ACEOF
33014
33015 fi
33016
33017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
33018 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
33019 saved_LDFLAGS="$LDFLAGS"
33020 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
33021 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
33022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33023 /* end confdefs.h. */
33024 int main(void) {return 0;}
33025 _ACEOF
33026 if ac_fn_cxx_try_link "$LINENO"; then :
33027 gcc_cv_ld_clearcap=yes; break
33028 else
33029 gcc_cv_ld_clearcap=no
33030 fi
33031 rm -f core conftest.err conftest.$ac_objext \
33032 conftest$ac_exeext conftest.$ac_ext
33033 done
33034 LDFLAGS="$saved_LDFLAGS"
33035 if test "x$gcc_cv_ld_clearcap" = xyes; then
33036
33037 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
33038
33039 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
33040
33041 fi
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
33043 $as_echo "$gcc_cv_ld_clearcap" >&6; }
33044
33045 case "$target" in
33046 powerpc*-*-*)
33047 case "$target" in
33048 *le-*-linux*)
33049 emul_name="-melf32lppc"
33050 ;;
33051 *)
33052 emul_name="-melf32ppc"
33053 ;;
33054 esac
33055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
33056 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
33057 if ${gcc_cv_ld_ppc_attr+:} false; then :
33058 $as_echo_n "(cached) " >&6
33059 else
33060 gcc_cv_ld_ppc_attr=no
33061 if test x"$ld_is_gold" = xyes; then
33062 gcc_cv_ld_ppc_attr=yes
33063 elif test $in_tree_ld = yes ; then
33064 if test "$gcc_cv_gld_major_version" -eq 2 \
33065 -a "$gcc_cv_gld_minor_version" -ge 28 \
33066 -o "$gcc_cv_gld_major_version" -gt 2; then
33067 gcc_cv_ld_ppc_attr=yes
33068 fi
33069 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33070 # check that merging the long double .gnu_attribute doesn't warn
33071 cat > conftest1.s <<EOF
33072 .gnu_attribute 4,1
33073 EOF
33074 cat > conftest2.s <<EOF
33075 .gnu_attribute 4,9
33076 EOF
33077 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
33078 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
33079 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
33080 && test ! -s conftest.err; then
33081 gcc_cv_ld_ppc_attr=yes
33082 fi
33083 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
33084 fi
33085
33086 fi
33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
33088 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
33089 if test x$gcc_cv_ld_ppc_attr = xyes; then
33090
33091 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
33092
33093 fi
33094 ;;
33095 esac
33096
33097 case "$target:$tm_file" in
33098 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
33099 case "$target" in
33100 *le-*-linux*)
33101 emul_name="-melf64lppc"
33102 ;;
33103 *-*-linux*)
33104 emul_name="-melf64ppc"
33105 ;;
33106 *le-*-freebsd*)
33107 emul_name="-melf64lppc_fbsd"
33108 ;;
33109 *-*-freebsd*)
33110 emul_name="-melf64ppc_fbsd"
33111 ;;
33112 esac
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
33114 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
33115 if ${gcc_cv_ld_no_dot_syms+:} false; then :
33116 $as_echo_n "(cached) " >&6
33117 else
33118 gcc_cv_ld_no_dot_syms=no
33119 if test x"$ld_is_gold" = xyes; then
33120 gcc_cv_ld_no_dot_syms=yes
33121 elif test $in_tree_ld = yes ; then
33122 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
33123 gcc_cv_ld_no_dot_syms=yes
33124 fi
33125 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33126 cat > conftest1.s <<EOF
33127 .text
33128 bl .foo
33129 EOF
33130 cat > conftest2.s <<EOF
33131 .section ".opd","aw"
33132 .align 3
33133 .globl foo
33134 .type foo,@function
33135 foo:
33136 .quad .LEfoo,.TOC.@tocbase,0
33137 .text
33138 .LEfoo:
33139 blr
33140 .size foo,.-.LEfoo
33141 EOF
33142 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
33143 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
33144 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
33145 gcc_cv_ld_no_dot_syms=yes
33146 fi
33147 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33148 fi
33149
33150 fi
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33152 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33153 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33154
33155 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33156
33157 fi
33158
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33160 $as_echo_n "checking linker large toc support... " >&6; }
33161 if ${gcc_cv_ld_large_toc+:} false; then :
33162 $as_echo_n "(cached) " >&6
33163 else
33164 gcc_cv_ld_large_toc=no
33165 if test x"$ld_is_gold" = xyes; then
33166 gcc_cv_ld_large_toc=yes
33167 elif test $in_tree_ld = yes ; then
33168 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
33169 gcc_cv_ld_large_toc=yes
33170 fi
33171 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33172 cat > conftest.s <<EOF
33173 .section ".tbss","awT",@nobits
33174 .align 3
33175 ie0: .space 8
33176 .global _start
33177 .text
33178 _start:
33179 addis 9,13,ie0@got@tprel@ha
33180 ld 9,ie0@got@tprel@l(9)
33181 EOF
33182 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33183 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33184 gcc_cv_ld_large_toc=yes
33185 fi
33186 rm -f conftest conftest.o conftest.s
33187 fi
33188
33189 fi
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33191 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33192 if test x"$gcc_cv_ld_large_toc" = xyes; then
33193
33194 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33195
33196 fi
33197
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33199 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33200 if ${gcc_cv_ld_toc_align+:} false; then :
33201 $as_echo_n "(cached) " >&6
33202 else
33203 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33204 cat > conftest.s <<EOF
33205 .global _start
33206 .text
33207 _start:
33208 addis 9,2,x@got@ha
33209 .section .data.rel.ro,"aw",@progbits
33210 .p2align 16
33211 .space 32768
33212 x: .quad .TOC.
33213 EOF
33214 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33215 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33216 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)) }'`
33217 fi
33218 rm -f conftest conftest.o conftest.s
33219 fi
33220
33221 fi
33222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33223 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33224 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33225
33226 cat >>confdefs.h <<_ACEOF
33227 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33228 _ACEOF
33229
33230 fi
33231 ;;
33232 esac
33233
33234 case "$target" in
33235 *-*-aix*)
33236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33237 $as_echo_n "checking linker large toc support... " >&6; }
33238 if ${gcc_cv_ld_large_toc+:} false; then :
33239 $as_echo_n "(cached) " >&6
33240 else
33241 gcc_cv_ld_large_toc=no
33242 if test x$gcc_cv_as != x ; then
33243 cat > conftest.s <<EOF
33244 .toc
33245 LC..1:
33246 .tc a[TC],a[RW]
33247 .extern a[RW]
33248 .csect .text[PR]
33249 .largetoctest:
33250 addis 9,LC..1@u(2)
33251 ld 3,LC..1@l(9)
33252 EOF
33253 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33254 gcc_cv_ld_large_toc=yes
33255 fi
33256 rm -f conftest conftest.o conftest.s
33257 fi
33258
33259 fi
33260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33261 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33262 if test x"$gcc_cv_ld_large_toc" = xyes; then
33263
33264 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33265
33266 fi
33267 ;;
33268 esac
33269
33270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33271 $as_echo_n "checking linker --build-id support... " >&6; }
33272 if ${gcc_cv_ld_buildid+:} false; then :
33273 $as_echo_n "(cached) " >&6
33274 else
33275 gcc_cv_ld_buildid=no
33276 if test $in_tree_ld = yes ; then
33277 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33278 "$gcc_cv_gld_minor_version" -ge 18 -o \
33279 "$gcc_cv_gld_major_version" -gt 2 \
33280 && test $in_tree_ld_is_elf = yes; then
33281 gcc_cv_ld_buildid=yes
33282 fi
33283 elif test x$gcc_cv_ld != x; then
33284 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33285 gcc_cv_ld_buildid=yes
33286 fi
33287 fi
33288 fi
33289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33290 $as_echo "$gcc_cv_ld_buildid" >&6; }
33291 if test x"$gcc_cv_ld_buildid" = xyes; then
33292
33293 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33294
33295 fi
33296
33297 # Check whether --enable-linker-build-id was given.
33298 if test "${enable_linker_build_id+set}" = set; then :
33299 enableval=$enable_linker_build_id;
33300 else
33301 enable_linker_build_id=no
33302 fi
33303
33304
33305 if test x"$enable_linker_build_id" = xyes; then
33306 if test x"$gcc_cv_ld_buildid" = xyes; then
33307
33308 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33309
33310 else
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33312 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33313 fi
33314 fi
33315
33316 # In binutils 2.21, GNU ld gained support for new emulations fully
33317 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33319 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33320 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33321 $as_echo_n "(cached) " >&6
33322 else
33323 gcc_cv_ld_sol2_emulation=no
33324 if test $in_tree_ld = yes ; then
33325 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33326 "$gcc_cv_gld_minor_version" -ge 21 -o \
33327 "$gcc_cv_gld_major_version" -gt 2 \
33328 && test $in_tree_ld_is_elf = yes; then
33329 gcc_cv_ld_sol2_emulation=yes
33330 fi
33331 elif test x$gcc_cv_ld != x; then
33332 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33333 grep _sol2 > /dev/null; then
33334 gcc_cv_ld_sol2_emulation=yes
33335 fi
33336 fi
33337 fi
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33339 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33340 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33341
33342 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33343
33344 fi
33345
33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33347 $as_echo_n "checking linker --sysroot support... " >&6; }
33348 if ${gcc_cv_ld_sysroot+:} false; then :
33349 $as_echo_n "(cached) " >&6
33350 else
33351 gcc_cv_ld_sysroot=no
33352 if test $in_tree_ld = yes ; then
33353 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
33354 gcc_cv_ld_sysroot=yes
33355 fi
33356 elif test x$gcc_cv_ld != x; then
33357 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33358 gcc_cv_ld_sysroot=yes
33359 fi
33360 fi
33361 fi
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33363 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33364 if test x"$gcc_cv_ld_sysroot" = xyes; then
33365
33366 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33367
33368 fi
33369
33370 case $target in
33371 *-*-solaris2*)
33372 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33374 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33375 if ${gcc_cv_solaris_crts+:} false; then :
33376 $as_echo_n "(cached) " >&6
33377 else
33378 gcc_cv_solaris_crts=no
33379 if test x$host != x$target; then
33380 if test "x$with_sysroot" = xyes; then
33381 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33382 else
33383 target_sysroot="${with_sysroot}"
33384 fi
33385 fi
33386 target_libdir="$target_sysroot/usr/lib"
33387 # At the time they were added, gcrt1.o became a symlink for backwards
33388 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33389 case $target in
33390 i?86-*-solaris2* | x86_64-*-solaris2*)
33391 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33392 ;;
33393 sparc*-*-solaris2*)
33394 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33395 ;;
33396 esac
33397 fi
33398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33399 $as_echo "$gcc_cv_solaris_crts" >&6; }
33400 ;;
33401 esac
33402 if test x$gcc_cv_solaris_crts = xyes; then
33403
33404 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33405
33406 fi
33407
33408 # Check whether --enable-libssp was given.
33409 if test "${enable_libssp+set}" = set; then :
33410 enableval=$enable_libssp; case "${enableval}" in
33411 yes|no)
33412 ;;
33413 *)
33414 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33415 ;;
33416 esac
33417 fi
33418
33419
33420 # Test for stack protector support in target C library.
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33422 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33423 if ${gcc_cv_libc_provides_ssp+:} false; then :
33424 $as_echo_n "(cached) " >&6
33425 else
33426 gcc_cv_libc_provides_ssp=no
33427 if test "x$enable_libssp" = "xno"; then
33428 gcc_cv_libc_provides_ssp=yes
33429 elif test "x$enable_libssp" = "xyes"; then
33430 gcc_cv_libc_provides_ssp=no
33431 else
33432 case "$target" in
33433 *-*-musl*)
33434 # All versions of musl provide stack protector
33435 gcc_cv_libc_provides_ssp=yes;;
33436 *-*-linux* | *-*-kfreebsd*-gnu)
33437 # glibc 2.4 and later provides __stack_chk_fail and
33438 # either __stack_chk_guard, or TLS access to stack guard canary.
33439
33440 if test $glibc_version_major -gt 2 \
33441 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33442 gcc_cv_libc_provides_ssp=yes
33443 else
33444
33445 if test -f $target_header_dir/features.h \
33446 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33447 $target_header_dir/features.h > /dev/null; then
33448 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33449 $target_header_dir/features.h > /dev/null && \
33450 test -f $target_header_dir/bits/uClibc_config.h && \
33451 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33452 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33453 gcc_cv_libc_provides_ssp=yes
33454 fi
33455 # all versions of Bionic support stack protector
33456 elif test -f $target_header_dir/sys/cdefs.h \
33457 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33458 $target_header_dir/sys/cdefs.h > /dev/null; then
33459 gcc_cv_libc_provides_ssp=yes
33460 fi
33461 fi
33462 ;;
33463 *-*-gnu*)
33464 # Avoid complicated tests (see
33465 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33466 # simply assert that glibc does provide this, which is true for all
33467 # realistically usable GNU/Hurd configurations.
33468 # All supported versions of musl provide it as well
33469 gcc_cv_libc_provides_ssp=yes;;
33470 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33471 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33472 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33473 gcc_cv_libc_provides_ssp=yes
33474 else
33475 echo "no __stack_chk_fail on this target"
33476 fi
33477
33478 ;;
33479 *) gcc_cv_libc_provides_ssp=no ;;
33480 esac
33481 fi
33482 fi
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33484 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33485
33486 if test x$gcc_cv_libc_provides_ssp = xyes; then
33487
33488 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33489
33490 fi
33491
33492 # Check whether --enable-default-ssp was given.
33493 # Check whether --enable-default-ssp was given.
33494 if test "${enable_default_ssp+set}" = set; then :
33495 enableval=$enable_default_ssp;
33496 if test x$gcc_cv_libc_provides_ssp = xyes; then
33497 case "$target" in
33498 ia64*-*-*) enable_default_ssp=no ;;
33499 *) enable_default_ssp=$enableval ;;
33500 esac
33501 else
33502 enable_default_ssp=no
33503 fi
33504 else
33505 enable_default_ssp=no
33506 fi
33507
33508 if test x$enable_default_ssp = xyes ; then
33509
33510 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33511
33512 fi
33513
33514
33515 # Test for <sys/sdt.h> on the target.
33516
33517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33518 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33519 if ${gcc_cv_sys_sdt_h+:} false; then :
33520 $as_echo_n "(cached) " >&6
33521 else
33522
33523 gcc_cv_sys_sdt_h=no
33524 if test -f $target_header_dir/sys/sdt.h; then
33525 gcc_cv_sys_sdt_h=yes
33526 fi
33527
33528 fi
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33530 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33531 if test x$gcc_cv_sys_sdt_h = xyes; then :
33532
33533
33534 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33535
33536
33537 fi
33538
33539 # Check if TFmode long double should be used by default or not.
33540 # Some glibc targets used DFmode long double, but with glibc 2.4
33541 # and later they can use TFmode.
33542 case "$target" in
33543 powerpc*-*-linux* | \
33544 sparc*-*-linux* | \
33545 s390*-*-linux* | \
33546 alpha*-*-linux*)
33547
33548 # Check whether --with-long-double-128 was given.
33549 if test "${with_long_double_128+set}" = set; then :
33550 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33551 else
33552
33553 case "$target" in
33554 s390*-*-linux-musl*)
33555 gcc_cv_target_ldbl128=yes
33556 ;;
33557 powerpc*-*-linux-musl*)
33558 gcc_cv_target_ldbl128=no
33559 ;;
33560 *)
33561
33562 if test $glibc_version_major -gt 2 \
33563 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33564 gcc_cv_target_ldbl128=yes
33565 else
33566
33567 gcc_cv_target_ldbl128=no
33568 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33569 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33570 && gcc_cv_target_ldbl128=yes
33571
33572 fi
33573
33574 ;;
33575 esac
33576
33577 fi
33578
33579 ;;
33580 esac
33581 if test x$gcc_cv_target_ldbl128 = xyes; then
33582
33583 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33584
33585 fi
33586
33587 # Check if TFmode long double target should use the IBM extended double or IEEE
33588 # 128-bit floating point formats if long doubles are 128-bits long. The long
33589 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33590 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33591 # libgcc.
33592
33593 # Check whether --with-long-double-format was given.
33594 if test "${with_long_double_format+set}" = set; then :
33595 withval=$with_long_double_format;
33596 case "$target:$with_long_double_format" in
33597 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33598 :
33599 ;;
33600 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33601 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33602 case "$with_cpu" in
33603 power7 | power8 | power9 | power1*)
33604 :
33605 ;;
33606 *)
33607 as_fn_error $? "Configuration option --with-long-double-format is only \
33608 supported if the default cpu is power7 or newer" "$LINENO" 5
33609 with_long_double_format=""
33610 ;;
33611 esac
33612 ;;
33613 powerpc64*-*-linux*:*)
33614 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33615 with_long_double_format=""
33616 ;;
33617 *)
33618 as_fn_error $? "Configure option --with-long-double-format is only supported \
33619 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33620 with_long_double_format=""
33621 ;;
33622 esac
33623 fi
33624
33625
33626 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33627 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33628 gcc_cv_libc_provides_hwcap_in_tcb=no
33629 case "$target" in
33630 powerpc*-*-linux*)
33631
33632 if test $glibc_version_major -gt 2 \
33633 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33634 gcc_cv_libc_provides_hwcap_in_tcb=yes
33635 fi
33636 ;;
33637 esac
33638 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33639
33640 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33641
33642 fi
33643
33644 # Check if the target LIBC handles PT_GNU_STACK.
33645 gcc_cv_libc_gnustack=unknown
33646 case "$target" in
33647 mips*-*-linux-musl*)
33648 gcc_cv_libc_gnustack=yes
33649 ;;
33650 mips*-*-linux*)
33651
33652 if test $glibc_version_major -gt 2 \
33653 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33654 gcc_cv_libc_gnustack=yes
33655 fi
33656 ;;
33657 esac
33658 if test x$gcc_cv_libc_gnustack = xyes; then
33659
33660 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33661
33662 fi
33663
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33665 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33666 gcc_cv_target_dl_iterate_phdr=unknown
33667 case "$target" in
33668 *-*-solaris2*)
33669 gcc_cv_target_dl_iterate_phdr=yes
33670 ;;
33671 *-*-dragonfly* | *-*-freebsd*)
33672 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33673 gcc_cv_target_dl_iterate_phdr=yes
33674 else
33675 gcc_cv_target_dl_iterate_phdr=no
33676 fi
33677 ;;
33678 *-linux-musl*)
33679 gcc_cv_target_dl_iterate_phdr=yes
33680 ;;
33681 esac
33682
33683 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33684
33685 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33686
33687 fi
33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33689 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33690
33691 # We no longer support different GC mechanisms. Emit an error if
33692 # the user configures with --with-gc.
33693
33694 # Check whether --with-gc was given.
33695 if test "${with_gc+set}" = set; then :
33696 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33697 fi
33698
33699
33700 # Libraries to use on the host. This will normally be set by the top
33701 # level Makefile. Here we simply capture the value for our Makefile.
33702 if test -z "${HOST_LIBS+set}"; then
33703 HOST_LIBS=
33704 fi
33705
33706
33707 # Use the system's zlib library.
33708
33709 # Use the system's zlib library.
33710 zlibdir="-L\$(top_builddir)/../zlib"
33711 zlibinc="-I\$(top_srcdir)/../zlib"
33712
33713 # Check whether --with-system-zlib was given.
33714 if test "${with_system_zlib+set}" = set; then :
33715 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33716 zlibdir=
33717 zlibinc=
33718 fi
33719
33720 fi
33721
33722
33723
33724
33725
33726
33727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33728 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33729 # Check whether --enable-maintainer-mode was given.
33730 if test "${enable_maintainer_mode+set}" = set; then :
33731 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33732 else
33733 maintainer_mode=no
33734 fi
33735
33736
33737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33738 $as_echo "$maintainer_mode" >&6; }
33739
33740 if test "$maintainer_mode" = "yes"; then
33741 MAINT=''
33742 else
33743 MAINT='#'
33744 fi
33745
33746 if test -z "$CTAGS"; then
33747 CTAGS=ctags
33748 fi
33749
33750 if test -z "$ETAGS"; then
33751 ETAGS=etags
33752 fi
33753
33754 if test -z "$CSCOPE"; then
33755 CSCOPE=cscope
33756 fi
33757
33758
33759
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33761 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33762 # Check whether --enable-link-mutex was given.
33763 if test "${enable_link_mutex+set}" = set; then :
33764 enableval=$enable_link_mutex; do_link_mutex=$enableval
33765 else
33766 do_link_mutex=no
33767 fi
33768
33769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33770 $as_echo "$do_link_mutex" >&6; }
33771
33772 if test "$do_link_mutex" = "yes"; then
33773 DO_LINK_MUTEX=true
33774 { $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
33775 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33776 else
33777 DO_LINK_MUTEX=false
33778 fi
33779
33780
33781
33782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33783 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33784 # Check whether --enable-link-serialization was given.
33785 if test "${enable_link_serialization+set}" = set; then :
33786 enableval=$enable_link_serialization; do_link_serialization=$enableval
33787 else
33788 do_link_serialization=no
33789 fi
33790
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33792 $as_echo "$do_link_serialization" >&6; }
33793
33794 case "$do_link_serialization" in
33795 yes)
33796 DO_LINK_SERIALIZATION=1;;
33797 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33798 DO_LINK_SERIALIZATION=$do_link_serialization;;
33799 no)
33800 DO_LINK_SERIALIZATION=;;
33801 *)
33802 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33803 esac
33804
33805
33806 # --------------
33807 # Language hooks
33808 # --------------
33809
33810 # Make empty files to contain the specs and options for each language.
33811 # Then add #include lines to for a compiler that has specs and/or options.
33812
33813 subdirs=
33814 lang_opt_files=
33815 lang_specs_files=
33816 lang_tree_files=
33817 # These (without "all_") are set in each config-lang.in.
33818 # `language' must be a single word so is spelled singularly.
33819 all_languages=
33820 all_compilers=
33821 all_outputs='Makefile'
33822 # List of language configure and makefile fragments.
33823 all_lang_configurefrags=
33824 all_lang_makefrags=
33825 # Additional files for gengtype
33826 all_gtfiles="$target_gtfiles"
33827
33828 # These are the languages that are set in --enable-languages,
33829 # and are available in the GCC tree.
33830 all_selected_languages=
33831
33832 # Add the language fragments.
33833 # Languages are added via two mechanisms. Some information must be
33834 # recorded in makefile variables, these are defined in config-lang.in.
33835 # We accumulate them and plug them into the main Makefile.
33836 # The other mechanism is a set of hooks for each of the main targets
33837 # like `clean', `install', etc.
33838
33839 language_hooks="Make-hooks"
33840
33841 for lang in ${srcdir}/*/config-lang.in
33842 do
33843 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33844
33845 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33846 if test "x$lang_alias" = x
33847 then
33848 echo "$lang doesn't set \$language." 1>&2
33849 exit 1
33850 fi
33851 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33852 subdirs="$subdirs $subdir"
33853
33854 # $gcc_subdir is where the gcc integration files are to be found
33855 # for a language, both for internal compiler purposes (compiler
33856 # sources implementing front-end to GCC tree converters), and for
33857 # build infrastructure purposes (Make-lang.in, etc.)
33858 #
33859 # This will be <subdir> (relative to $srcdir) if a line like
33860 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33861 # is found in <langdir>/config-lang.in, and will remain <langdir>
33862 # otherwise.
33863 #
33864 # Except for the language alias (fetched above), the regular
33865 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33866 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33867 # only this and the language alias.
33868
33869 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33870 if [ "$gcc_subdir" = "" ]; then
33871 gcc_subdir="$subdir"
33872 fi
33873
33874 case ",$enable_languages," in
33875 *,$lang_alias,*)
33876 all_selected_languages="$all_selected_languages $lang_alias"
33877 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33878 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33879 fi
33880 ;;
33881 esac
33882
33883 language=
33884 boot_language=
33885 compilers=
33886 outputs=
33887 gtfiles=
33888 subdir_requires=
33889 . ${srcdir}/$gcc_subdir/config-lang.in
33890 if test "x$language" = x
33891 then
33892 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33893 exit 1
33894 fi
33895
33896 ok=:
33897 case ",$enable_languages," in
33898 *,$lang_alias,*) ;;
33899 *)
33900 for i in $subdir_requires; do
33901 test -f "${srcdir}/$i/config-lang.in" && continue
33902 ok=false
33903 break
33904 done
33905 ;;
33906 esac
33907 $ok || continue
33908
33909 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33910 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33911 # Put c/Make-lang.in fragment first to match serialization languages order.
33912 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33913 else
33914 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33915 fi
33916 if test -f $srcdir/$gcc_subdir/lang.opt; then
33917 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33918 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33919 fi
33920 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33921 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33922 fi
33923 all_languages="$all_languages $language"
33924 all_compilers="$all_compilers $compilers"
33925 all_outputs="$all_outputs $outputs"
33926 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33927 case ",$enable_languages," in
33928 *,lto,*)
33929
33930 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33931
33932 enable_lto=yes
33933
33934 ;;
33935 *) ;;
33936 esac
33937 done
33938
33939 check_languages=
33940 for language in $all_selected_languages
33941 do
33942 check_languages="$check_languages check-$language"
33943 done
33944 if test x$enable_libgdiagnostics = xyes; then
33945 check_languages="$check_languages check-libgdiagnostics check-sarif-replay"
33946 fi
33947
33948 selftest_languages=
33949 for language in $all_selected_languages
33950 do
33951 selftest_languages="$selftest_languages selftest-$language"
33952 done
33953
33954 # We link each language in with a set of hooks, reached indirectly via
33955 # lang.${target}. Only do so for selected languages.
33956
33957 rm -f Make-hooks
33958 touch Make-hooks
33959 target_list="all.cross start.encap rest.encap tags \
33960 install-common install-man install-info install-dvi install-pdf \
33961 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33962 mostlyclean clean distclean maintainer-clean install-plugin"
33963
33964 for t in $target_list
33965 do
33966 x=
33967 for lang in $all_selected_languages
33968 do
33969 x="$x $lang.$t"
33970 done
33971 echo "lang.$t: $x" >> Make-hooks
33972 done
33973
33974 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33975 echo "SERIAL_LIST =" >> Make-hooks
33976 echo else >> Make-hooks
33977 lang_cnt=0
33978 lang_list=
33979 prev=c
33980 serialization_languages=c
33981 for lang in $all_selected_languages
33982 do
33983 test $lang = c && continue
33984 if test $lang = lto; then
33985 serialization_languages="$serialization_languages lto1 lto2"
33986 else
33987 serialization_languages="$serialization_languages $lang"
33988 fi
33989 done
33990 for lang in $serialization_languages
33991 do
33992 test $lang = c && continue
33993 lang_cnt=`expr $lang_cnt + 1`
33994 lang_list=" $prev$lang_list"
33995 prev=${lang}
33996 done
33997 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33998 echo endif >> Make-hooks
33999 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
34000 echo "INDEX.c = 0" >> Make-hooks
34001 lang_idx=1
34002 for lang in $serialization_languages
34003 do
34004 test $lang = c && continue
34005 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
34006 echo "INDEX.$lang = $lang_idx" >> Make-hooks
34007 lang_cnt=`expr $lang_cnt - 1`
34008 lang_idx=`expr $lang_idx + 1`
34009 done
34010
34011 # --------
34012 # Option include files
34013 # --------
34014
34015 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
34016 option_includes="option-includes.mk"
34017
34018
34019 # --------
34020 # UNSORTED
34021 # --------
34022
34023 # Create .gdbinit.
34024
34025 echo "dir ." > .gdbinit
34026 echo "dir ${srcdir}" >> .gdbinit
34027 if test x$gdb_needs_out_file_path = xyes
34028 then
34029 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
34030 fi
34031 if test "x$subdirs" != x; then
34032 for s in $subdirs
34033 do
34034 echo "dir ${srcdir}/$s" >> .gdbinit
34035 done
34036 fi
34037 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
34038 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
34039
34040 # Put a breakpoint on __asan_report_error to help with debugging buffer
34041 # overflow.
34042 case "$CFLAGS" in
34043 *-fsanitize=address*)
34044 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
34045 ;;
34046 esac
34047
34048 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
34049
34050
34051
34052 # Find a directory in which to install a shared libgcc.
34053
34054 # Check whether --enable-version-specific-runtime-libs was given.
34055 if test "${enable_version_specific_runtime_libs+set}" = set; then :
34056 enableval=$enable_version_specific_runtime_libs;
34057 fi
34058
34059
34060 # Substitute configuration variables
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133 # Echo link setup.
34134 if test x${build} = x${host} ; then
34135 if test x${host} = x${target} ; then
34136 echo "Links are now set up to build a native compiler for ${target}." 1>&2
34137 else
34138 echo "Links are now set up to build a cross-compiler" 1>&2
34139 echo " from ${host} to ${target}." 1>&2
34140 fi
34141 else
34142 if test x${host} = x${target} ; then
34143 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34144 echo " for ${target}." 1>&2
34145 else
34146 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34147 echo " from ${host} to ${target}." 1>&2
34148 fi
34149 fi
34150
34151
34152
34153
34154
34155
34156 if test "x${ISLLIBS}" != "x" ; then
34157
34158 $as_echo "#define HAVE_isl 1" >>confdefs.h
34159
34160 fi
34161
34162 # Check for plugin support
34163 # Check whether --enable-plugin was given.
34164 if test "${enable_plugin+set}" = set; then :
34165 enableval=$enable_plugin; enable_plugin=$enableval
34166 else
34167 enable_plugin=yes; default_plugin=yes
34168 fi
34169
34170
34171 pluginlibs=
34172 plugin_check=yes
34173
34174 case "${host}" in
34175 *-*-mingw*)
34176 # Since plugin support under MinGW is not as straightforward as on
34177 # other platforms (e.g., we have to link import library, etc), we
34178 # only enable it if explicitly requested.
34179 if test x"$default_plugin" = x"yes"; then
34180 enable_plugin=no
34181 elif test x"$enable_plugin" = x"yes"; then
34182 # Use make's target variable to derive import library name.
34183 pluginlibs='-Wl,--export-all-symbols -Wl,[email protected]'
34184 plugin_check=no
34185 fi
34186 ;;
34187 *-*-darwin*)
34188 if test x$build = x$host; then
34189 export_sym_check="nm${exeext} -g"
34190 elif test x$host = x$target; then
34191 export_sym_check="$gcc_cv_nm -g"
34192 else
34193 export_sym_check=
34194 fi
34195 ;;
34196 *)
34197 if test x$build = x$host; then
34198 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34199 elif test x$host = x$target; then
34200 export_sym_check="$gcc_cv_objdump -T"
34201 else
34202 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34203 fi
34204 ;;
34205 esac
34206
34207 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34208
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34210 $as_echo_n "checking for exported symbols... " >&6; }
34211 if test "x$export_sym_check" != x; then
34212 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34213 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34214 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34215 : # No need to use a flag
34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34217 $as_echo "yes" >&6; }
34218 else
34219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34220 $as_echo "yes" >&6; }
34221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34222 $as_echo_n "checking for -rdynamic... " >&6; }
34223 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34224 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34225 plugin_rdynamic=yes
34226 pluginlibs="-rdynamic"
34227 else
34228 plugin_rdynamic=no
34229 enable_plugin=no
34230 fi
34231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34232 $as_echo "$plugin_rdynamic" >&6; }
34233 fi
34234 else
34235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34236 $as_echo "unable to check" >&6; }
34237 fi
34238
34239 # Check -ldl
34240 saved_LIBS="$LIBS"
34241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34242 $as_echo_n "checking for library containing dlopen... " >&6; }
34243 if ${ac_cv_search_dlopen+:} false; then :
34244 $as_echo_n "(cached) " >&6
34245 else
34246 ac_func_search_save_LIBS=$LIBS
34247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34248 /* end confdefs.h. */
34249
34250 /* Override any GCC internal prototype to avoid an error.
34251 Use char because int might match the return type of a GCC
34252 builtin and then its argument prototype would still apply. */
34253 #ifdef __cplusplus
34254 extern "C"
34255 #endif
34256 char dlopen ();
34257 int
34258 main ()
34259 {
34260 return dlopen ();
34261 ;
34262 return 0;
34263 }
34264 _ACEOF
34265 for ac_lib in '' dl; do
34266 if test -z "$ac_lib"; then
34267 ac_res="none required"
34268 else
34269 ac_res=-l$ac_lib
34270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34271 fi
34272 if ac_fn_cxx_try_link "$LINENO"; then :
34273 ac_cv_search_dlopen=$ac_res
34274 fi
34275 rm -f core conftest.err conftest.$ac_objext \
34276 conftest$ac_exeext
34277 if ${ac_cv_search_dlopen+:} false; then :
34278 break
34279 fi
34280 done
34281 if ${ac_cv_search_dlopen+:} false; then :
34282
34283 else
34284 ac_cv_search_dlopen=no
34285 fi
34286 rm conftest.$ac_ext
34287 LIBS=$ac_func_search_save_LIBS
34288 fi
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34290 $as_echo "$ac_cv_search_dlopen" >&6; }
34291 ac_res=$ac_cv_search_dlopen
34292 if test "$ac_res" != no; then :
34293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34294
34295 fi
34296
34297 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34298 pluginlibs="$pluginlibs -ldl"
34299 fi
34300 LIBS="$saved_LIBS"
34301
34302 # Check that we can build shared objects with -fPIC -shared
34303 saved_LDFLAGS="$LDFLAGS"
34304 saved_CFLAGS="$CFLAGS"
34305 saved_CXXFLAGS="$CXXFLAGS"
34306 case "${host}" in
34307 *-*-darwin*)
34308 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34309 CFLAGS="$CFLAGS -fPIC"
34310 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34311 CXXFLAGS="$CXXFLAGS -fPIC"
34312 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34313 ;;
34314 *)
34315 CFLAGS="$CFLAGS -fPIC"
34316 CXXFLAGS="$CXXFLAGS -fPIC"
34317 LDFLAGS="$LDFLAGS -fPIC -shared"
34318 ;;
34319 esac
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34321 $as_echo_n "checking for -fPIC -shared... " >&6; }
34322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34323 /* end confdefs.h. */
34324 extern int X;
34325 int
34326 main ()
34327 {
34328 return X == 0;
34329 ;
34330 return 0;
34331 }
34332 _ACEOF
34333 if ac_fn_cxx_try_link "$LINENO"; then :
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34335 $as_echo "yes" >&6; }; have_pic_shared=yes
34336 else
34337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34338 $as_echo "no" >&6; }; have_pic_shared=no
34339 fi
34340 rm -f core conftest.err conftest.$ac_objext \
34341 conftest$ac_exeext conftest.$ac_ext
34342 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34343 pluginlibs=
34344 enable_plugin=no
34345 fi
34346 LDFLAGS="$saved_LDFLAGS"
34347 CFLAGS="$saved_CFLAGS"
34348 CXXFLAGS="$saved_CXXFLAGS"
34349
34350 # If plugin support had been requested but not available, fail.
34351 if test x"$enable_plugin" = x"no" ; then
34352 if test x"$default_plugin" != x"yes"; then
34353 as_fn_error $? "
34354 Building GCC with plugin support requires a host that supports
34355 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34356 fi
34357 fi
34358 fi
34359
34360
34361
34362 if test x"$enable_plugin" = x"yes"; then
34363
34364 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34365
34366 fi
34367
34368
34369 # Enable --enable-host-shared
34370 # Check whether --enable-host-shared was given.
34371 if test "${enable_host_shared+set}" = set; then :
34372 enableval=$enable_host_shared;
34373 fi
34374
34375
34376
34377 # Enable --enable-host-pie
34378 # Check whether --enable-host-pie was given.
34379 if test "${enable_host_pie+set}" = set; then :
34380 enableval=$enable_host_pie;
34381 fi
34382
34383
34384
34385 # Check whether --enable-libgdiagnostics was given.
34386 if test "${enable_libgdiagnostics+set}" = set; then :
34387 enableval=$enable_libgdiagnostics;
34388 fi
34389
34390
34391
34392 if test "$enable_libgdiagnostics" = "yes"; then
34393 LIBGDIAGNOSTICS='libgdiagnostics sarif-replay'
34394 else
34395 LIBGDIAGNOSTICS=''
34396 fi
34397
34398
34399
34400 # Enable --enable-host-bind-now
34401 # Check whether --enable-host-bind-now was given.
34402 if test "${enable_host_bind_now+set}" = set; then :
34403 enableval=$enable_host_bind_now;
34404 fi
34405
34406
34407
34408 # Check whether --enable-libquadmath-support was given.
34409 if test "${enable_libquadmath_support+set}" = set; then :
34410 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34411 else
34412 ENABLE_LIBQUADMATH_SUPPORT=yes
34413 fi
34414
34415 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34416
34417 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34418
34419 fi
34420
34421
34422 # Specify what hash style to use by default.
34423
34424 # Check whether --with-linker-hash-style was given.
34425 if test "${with_linker_hash_style+set}" = set; then :
34426 withval=$with_linker_hash_style; case x"$withval" in
34427 xsysv)
34428 LINKER_HASH_STYLE=sysv
34429 ;;
34430 xgnu)
34431 LINKER_HASH_STYLE=gnu
34432 ;;
34433 xboth)
34434 LINKER_HASH_STYLE=both
34435 ;;
34436 *)
34437 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34438 ;;
34439 esac
34440 else
34441 LINKER_HASH_STYLE=''
34442 fi
34443
34444 if test x"${LINKER_HASH_STYLE}" != x; then
34445
34446 cat >>confdefs.h <<_ACEOF
34447 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34448 _ACEOF
34449
34450 fi
34451
34452 # Specify what should be the default of -fdiagnostics-color option.
34453
34454 # Check whether --with-diagnostics-color was given.
34455 if test "${with_diagnostics_color+set}" = set; then :
34456 withval=$with_diagnostics_color; case x"$withval" in
34457 xnever)
34458 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34459 ;;
34460 xauto)
34461 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34462 ;;
34463 xauto-if-env)
34464 DIAGNOSTICS_COLOR_DEFAULT=-1
34465 ;;
34466 xalways)
34467 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34468 ;;
34469 *)
34470 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34471 ;;
34472 esac
34473 else
34474 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34475 fi
34476
34477
34478 cat >>confdefs.h <<_ACEOF
34479 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34480 _ACEOF
34481
34482
34483 # Specify what should be the default of -fdiagnostics-urls option.
34484
34485 # Check whether --with-diagnostics-urls was given.
34486 if test "${with_diagnostics_urls+set}" = set; then :
34487 withval=$with_diagnostics_urls; case x"$withval" in
34488 xnever)
34489 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34490 ;;
34491 xauto)
34492 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34493 ;;
34494 xauto-if-env)
34495 DIAGNOSTICS_URLS_DEFAULT=-1
34496 ;;
34497 xalways)
34498 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34499 ;;
34500 *)
34501 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34502 ;;
34503 esac
34504 else
34505 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34506 fi
34507
34508
34509 cat >>confdefs.h <<_ACEOF
34510 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34511 _ACEOF
34512
34513
34514 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34515 # of jit/jit-playback.cc.
34516 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34517 echo "gcc_driver_version: ${gcc_driver_version}"
34518 cat > gcc-driver-name.h <<EOF
34519 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34520 EOF
34521
34522 # Check whether --enable-versioned-jit was given.
34523 # Check whether --enable-versioned-jit was given.
34524 if test "${enable_versioned_jit+set}" = set; then :
34525 enableval=$enable_versioned_jit; enable_versioned_jit=$enableval
34526 else
34527 enable_versioned_jit=no
34528 fi
34529
34530 if test x$enable_versioned_jit = xyes ; then
34531 libgccjit_version=$gcc_driver_version
34532 elif test x$enable_versioned_jit = xno ; then
34533 libgccjit_version=0
34534 else
34535 as_fn_error $? "bad value ${enableval} given for --enable-versioned-jit option" "$LINENO" 5
34536 fi
34537
34538
34539 # Check whether --enable-default-pie was given.
34540 # Check whether --enable-default-pie was given.
34541 if test "${enable_default_pie+set}" = set; then :
34542 enableval=$enable_default_pie; enable_default_pie=$enableval
34543 else
34544 enable_default_pie=no
34545 fi
34546
34547 if test x$enable_default_pie = xyes ; then
34548
34549 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34550
34551 fi
34552
34553
34554 # Check if -fno-PIE works.
34555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34556 $as_echo_n "checking for -fno-PIE option... " >&6; }
34557 if ${gcc_cv_c_no_fpie+:} false; then :
34558 $as_echo_n "(cached) " >&6
34559 else
34560 saved_CXXFLAGS="$CXXFLAGS"
34561 CXXFLAGS="$CXXFLAGS -fno-PIE"
34562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34563 /* end confdefs.h. */
34564 int main(void) {return 0;}
34565 _ACEOF
34566 if ac_fn_cxx_try_compile "$LINENO"; then :
34567 gcc_cv_c_no_fpie=yes
34568 else
34569 gcc_cv_c_no_fpie=no
34570 fi
34571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34572 CXXFLAGS="$saved_CXXFLAGS"
34573 fi
34574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34575 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34576
34577 # Check if -no-pie works.
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34579 $as_echo_n "checking for -no-pie option... " >&6; }
34580 if ${gcc_cv_no_pie+:} false; then :
34581 $as_echo_n "(cached) " >&6
34582 else
34583 saved_LDFLAGS="$LDFLAGS"
34584 LDFLAGS="$LDFLAGS -no-pie"
34585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34586 /* end confdefs.h. */
34587 int main(void) {return 0;}
34588 _ACEOF
34589 if ac_fn_cxx_try_link "$LINENO"; then :
34590 gcc_cv_no_pie=yes
34591 else
34592 gcc_cv_no_pie=no
34593 fi
34594 rm -f core conftest.err conftest.$ac_objext \
34595 conftest$ac_exeext conftest.$ac_ext
34596 LDFLAGS="$saved_LDFLAGS"
34597 fi
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34599 $as_echo "$gcc_cv_no_pie" >&6; }
34600
34601 if test x$enable_host_shared = xyes; then
34602 PICFLAG=-fPIC
34603 elif test x$enable_host_pie = xyes; then
34604 PICFLAG=-fPIE
34605 elif test x$gcc_cv_c_no_fpie = xyes; then
34606 PICFLAG=-fno-PIE
34607 else
34608 PICFLAG=
34609 fi
34610
34611
34612
34613 if test x$enable_host_pie = xyes; then
34614 LD_PICFLAG=-pie
34615 elif test x$gcc_cv_no_pie = xyes; then
34616 LD_PICFLAG=-no-pie
34617 else
34618 LD_PICFLAG=
34619 fi
34620
34621 if test x$enable_host_bind_now = xyes; then
34622 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34623 fi
34624
34625
34626
34627 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34628 # Check whether --enable-cet was given.
34629 if test "${enable_cet+set}" = set; then :
34630 enableval=$enable_cet;
34631 case "$enableval" in
34632 yes|no|auto) ;;
34633 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34634 esac
34635
34636 else
34637 enable_cet=auto
34638 fi
34639
34640
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34642 $as_echo_n "checking for CET support... " >&6; }
34643
34644 case "$host" in
34645 i[34567]86-*-linux* | x86_64-*-linux*)
34646 may_have_cet=yes
34647 cet_save_CFLAGS="$CFLAGS"
34648 CFLAGS="$CFLAGS -fcf-protection"
34649 case "$enable_cet" in
34650 auto)
34651 # Check if target supports multi-byte NOPs
34652 # and if compiler and assembler support CET.
34653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34654 /* end confdefs.h. */
34655
34656 int
34657 main ()
34658 {
34659
34660 #if !defined(__SSE2__)
34661 #error target does not support multi-byte NOPs
34662 #else
34663 asm ("setssbsy");
34664 #endif
34665
34666 ;
34667 return 0;
34668 }
34669 _ACEOF
34670 if ac_fn_cxx_try_compile "$LINENO"; then :
34671 enable_cet=yes
34672 else
34673 enable_cet=no
34674 fi
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676 ;;
34677 yes)
34678 # Check if compiler and assembler support CET.
34679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34680 /* end confdefs.h. */
34681
34682 int
34683 main ()
34684 {
34685 asm ("setssbsy");
34686 ;
34687 return 0;
34688 }
34689 _ACEOF
34690 if ac_fn_cxx_try_compile "$LINENO"; then :
34691 support_cet=yes
34692 else
34693 support_cet=no
34694 fi
34695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34696 if test $support_cet = "no"; then
34697 if test x$enable_bootstrap != xno \
34698 && test -z "${with_build_subdir}" \
34699 && (test ! -f ../stage_current \
34700 || test `cat ../stage_current` != "stage1"); then
34701 # Require CET support only for the final GCC build.
34702 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34703 else
34704 # Don't enable CET without CET support for non-bootstrap
34705 # build, in stage1 nor for build support.
34706 enable_cet=no
34707 fi
34708 fi
34709 ;;
34710 esac
34711 CFLAGS="$cet_save_CFLAGS"
34712 ;;
34713 *)
34714 may_have_cet=no
34715 enable_cet=no
34716 ;;
34717 esac
34718
34719 cet_save_CFLAGS="$CFLAGS"
34720 CFLAGS="$CFLAGS -fcf-protection=none"
34721 cet_save_LDFLAGS="$LDFLAGS"
34722 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34723 if test x$may_have_cet = xyes; then
34724 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34726 /* end confdefs.h. */
34727
34728 int
34729 main ()
34730 {
34731 return 0;
34732 ;
34733 return 0;
34734 }
34735 _ACEOF
34736 if ac_fn_cxx_try_link "$LINENO"; then :
34737 may_have_cet=yes
34738 else
34739 may_have_cet=no
34740 fi
34741 rm -f core conftest.err conftest.$ac_objext \
34742 conftest$ac_exeext conftest.$ac_ext
34743 fi
34744
34745 if test x$may_have_cet = xyes; then
34746 if test x$cross_compiling = xno; then
34747 if test "$cross_compiling" = yes; then :
34748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34750 as_fn_error $? "cannot run test program while cross compiling
34751 See \`config.log' for more details" "$LINENO" 5; }
34752 else
34753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34754 /* end confdefs.h. */
34755
34756 int
34757 main ()
34758 {
34759 asm ("endbr32");
34760 return 0;
34761 }
34762
34763 _ACEOF
34764 if ac_fn_cxx_try_run "$LINENO"; then :
34765 have_multi_byte_nop=yes
34766 else
34767 have_multi_byte_nop=no
34768 fi
34769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34770 conftest.$ac_objext conftest.beam conftest.$ac_ext
34771 fi
34772
34773 have_cet=no
34774 if test x$have_multi_byte_nop = xyes; then
34775 if test "$cross_compiling" = yes; then :
34776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34778 as_fn_error $? "cannot run test program while cross compiling
34779 See \`config.log' for more details" "$LINENO" 5; }
34780 else
34781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34782 /* end confdefs.h. */
34783
34784 static void
34785 foo (void)
34786 {
34787 }
34788
34789 static void
34790 __attribute__ ((noinline, noclone))
34791 xxx (void (*f) (void))
34792 {
34793 f ();
34794 }
34795
34796 static void
34797 __attribute__ ((noinline, noclone))
34798 bar (void)
34799 {
34800 xxx (foo);
34801 }
34802
34803 int
34804 main ()
34805 {
34806 bar ();
34807 return 0;
34808 }
34809
34810 _ACEOF
34811 if ac_fn_cxx_try_run "$LINENO"; then :
34812 have_cet=no
34813 else
34814 have_cet=yes
34815 fi
34816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34817 conftest.$ac_objext conftest.beam conftest.$ac_ext
34818 fi
34819
34820 fi
34821 if test x$enable_cet = xno -a x$have_cet = xyes; then
34822 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34823 fi
34824 fi
34825 else
34826 # Enable CET in cross compiler if possible so that it will run on both
34827 # CET and non-CET hosts.
34828 have_cet=yes
34829 fi
34830 if test x$enable_cet = xyes; then
34831 CET_HOST_FLAGS="-fcf-protection"
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34833 $as_echo "yes" >&6; }
34834 else
34835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34836 $as_echo "no" >&6; }
34837 fi
34838 CFLAGS="$cet_save_CFLAGS"
34839 LDFLAGS="$cet_save_LDFLAGS"
34840
34841 case x$enable_languages in
34842 *jit*)
34843 ;;
34844 *)
34845 CET_HOST_FLAGS=
34846 ;;
34847 esac
34848
34849
34850 # Check linker supports '-z bndplt'
34851 ld_bndplt_support=no
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34853 $as_echo_n "checking linker -z bndplt option... " >&6; }
34854 if test x"$ld_is_gold" = xno; then
34855 if test $in_tree_ld = yes ; then
34856 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
34857 ld_bndplt_support=yes
34858 fi
34859 elif test x$gcc_cv_ld != x; then
34860 # Check if linker supports -z bndplt option
34861 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34862 ld_bndplt_support=yes
34863 fi
34864 fi
34865 fi
34866 if test x"$ld_bndplt_support" = xyes; then
34867
34868 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34869
34870 fi
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34872 $as_echo "$ld_bndplt_support" >&6; }
34873
34874 # Check linker supports '--push-state'/'--pop-state'
34875 ld_pushpopstate_support=no
34876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34877 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34878 if test x"$ld_is_gold" = xno; then
34879 if test $in_tree_ld = yes ; then
34880 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
34881 ld_pushpopstate_support=yes
34882 fi
34883 elif test x$gcc_cv_ld != x; then
34884 # Check if linker supports --push-state/--pop-state options
34885 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34886 ld_pushpopstate_support=yes
34887 fi
34888 fi
34889 fi
34890 if test x"$ld_pushpopstate_support" = xyes; then
34891
34892 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34893
34894 fi
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34896 $as_echo "$ld_pushpopstate_support" >&6; }
34897
34898 # On s390, float_t has historically been statically defined as double for no
34899 # good reason. To comply with the C standard in the light of this definition,
34900 # gcc has evaluated float expressions in double precision when in
34901 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34902 # a smooth transition towards the new model used by most architectures, where
34903 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34904 # float_t from that, this behavior can be configured with
34905 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34906 # the old model. When omitted, native builds and cross compiles that have target
34907 # libc headers will detect whether libc clamps float_t to double and in that
34908 # case maintain the old model. Otherwise, they will default to the new model.
34909 # Check whether --enable-s390-excess-float-precision was given.
34910 if test "${enable_s390_excess_float_precision+set}" = set; then :
34911 enableval=$enable_s390_excess_float_precision;
34912 else
34913 enable_s390_excess_float_precision=auto
34914 fi
34915
34916
34917 case $target in
34918 s390*-linux*)
34919 if test x"$enable_s390_excess_float_precision" = xauto; then
34920 # Can we autodetect the behavior of the target libc?
34921 if test "$target" = "$host" -a "$host" = "$build"; then
34922 enable_s390_excess_float_precision=autodetect
34923 elif test "x$with_headers" != xno; then
34924 # cross build. are target headers available?
34925 # carefully coerce the build-system compiler to use target headers
34926 saved_CXXFLAGS="$CXXFLAGS"
34927 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34928 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34929 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34931 /* end confdefs.h. */
34932
34933 #include <math.h>
34934
34935 _ACEOF
34936 if ac_fn_cxx_try_compile "$LINENO"; then :
34937 enable_s390_excess_float_precision=autodetect
34938 fi
34939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34940 CXXFLAGS="$saved_CXXFLAGS"
34941 fi
34942
34943 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34944 saved_CXXFLAGS="$CXXFLAGS"
34945 if ! test "$target" = "$host" -a "$host" = "$build"; then
34946 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34947 unset CROSS_TEST_CXXFLAGS
34948 fi
34949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34950 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34951 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34952 $as_echo_n "(cached) " >&6
34953 else
34954
34955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34956 /* end confdefs.h. */
34957
34958 #define __FLT_EVAL_METHOD__ 0
34959 #include <math.h>
34960 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34961
34962 _ACEOF
34963 if ac_fn_cxx_try_compile "$LINENO"; then :
34964 gcc_cv_float_t_clamped_to_double=yes
34965 else
34966 gcc_cv_float_t_clamped_to_double=no
34967 fi
34968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34969 fi
34970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34971 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34972 CXXFLAGS="$saved_CXXFLAGS"
34973 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34974 else
34975 # no way to detect behavior of target libc, default to new model
34976 enable_s390_excess_float_precision=no
34977 fi
34978 fi
34979
34980
34981 if test x"$enable_s390_excess_float_precision" = xyes; then
34982
34983 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34984
34985 fi
34986 ;;
34987 esac
34988
34989 # Check if the linker supports '-z now'
34990 ld_now_support=no
34991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34992 $as_echo_n "checking linker -z now option... " >&6; }
34993 if test x"$ld_is_gold" = xyes; then
34994 ld_now_support=yes
34995 elif test $in_tree_ld = yes ; then
34996 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
34997 ld_now_support=yes
34998 fi
34999 elif test x$gcc_cv_ld != x; then
35000 # Check if linker supports -z now
35001 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
35002 ld_now_support=yes
35003 fi
35004 fi
35005
35006 cat >>confdefs.h <<_ACEOF
35007 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
35008 _ACEOF
35009
35010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
35011 $as_echo "$ld_now_support" >&6; }
35012
35013 # Check if the linker supports '-z relro'
35014 ld_relro_support=no
35015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
35016 $as_echo_n "checking linker -z relro option... " >&6; }
35017 if test x"$ld_is_gold" = xyes; then
35018 ld_relro_support=yes
35019 elif test $in_tree_ld = yes ; then
35020 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
35021 ld_relro_support=yes
35022 fi
35023 elif test x$gcc_cv_ld != x; then
35024 # Check if linker supports -z relro
35025 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
35026 ld_relro_support=yes
35027 fi
35028 fi
35029
35030 cat >>confdefs.h <<_ACEOF
35031 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
35032 _ACEOF
35033
35034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
35035 $as_echo "$ld_relro_support" >&6; }
35036
35037 case $target_os in
35038 linux* | gnu*)
35039 # -fhardened is only supported on GNU/Linux.
35040 fhardened_support=yes
35041 ;;
35042 *)
35043 fhardened_support=no
35044 ;;
35045 esac
35046
35047
35048 cat >>confdefs.h <<_ACEOF
35049 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
35050 _ACEOF
35051
35052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
35053 $as_echo "$fhardened_support" >&6; }
35054
35055 # Configure the subdirectories
35056 # AC_CONFIG_SUBDIRS($subdirs)
35057
35058 # Create the Makefile
35059 # and configure language subdirectories
35060 ac_config_files="$ac_config_files $all_outputs"
35061
35062
35063 ac_config_commands="$ac_config_commands default"
35064
35065 cat >confcache <<\_ACEOF
35066 # This file is a shell script that caches the results of configure
35067 # tests run on this system so they can be shared between configure
35068 # scripts and configure runs, see configure's option --config-cache.
35069 # It is not useful on other systems. If it contains results you don't
35070 # want to keep, you may remove or edit it.
35071 #
35072 # config.status only pays attention to the cache file if you give it
35073 # the --recheck option to rerun configure.
35074 #
35075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35077 # following values.
35078
35079 _ACEOF
35080
35081 # The following way of writing the cache mishandles newlines in values,
35082 # but we know of no workaround that is simple, portable, and efficient.
35083 # So, we kill variables containing newlines.
35084 # Ultrix sh set writes to stderr and can't be redirected directly,
35085 # and sets the high bit in the cache file unless we assign to the vars.
35086 (
35087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35088 eval ac_val=\$$ac_var
35089 case $ac_val in #(
35090 *${as_nl}*)
35091 case $ac_var in #(
35092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35094 esac
35095 case $ac_var in #(
35096 _ | IFS | as_nl) ;; #(
35097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35098 *) { eval $ac_var=; unset $ac_var;} ;;
35099 esac ;;
35100 esac
35101 done
35102
35103 (set) 2>&1 |
35104 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35105 *${as_nl}ac_space=\ *)
35106 # `set' does not quote correctly, so add quotes: double-quote
35107 # substitution turns \\\\ into \\, and sed turns \\ into \.
35108 sed -n \
35109 "s/'/'\\\\''/g;
35110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35111 ;; #(
35112 *)
35113 # `set' quotes correctly as required by POSIX, so do not add quotes.
35114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35115 ;;
35116 esac |
35117 sort
35118 ) |
35119 sed '
35120 /^ac_cv_env_/b end
35121 t clear
35122 :clear
35123 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35124 t end
35125 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35126 :end' >>confcache
35127 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35128 if test -w "$cache_file"; then
35129 if test "x$cache_file" != "x/dev/null"; then
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35131 $as_echo "$as_me: updating cache $cache_file" >&6;}
35132 if test ! -f "$cache_file" || test -h "$cache_file"; then
35133 cat confcache >"$cache_file"
35134 else
35135 case $cache_file in #(
35136 */* | ?:*)
35137 mv -f confcache "$cache_file"$$ &&
35138 mv -f "$cache_file"$$ "$cache_file" ;; #(
35139 *)
35140 mv -f confcache "$cache_file" ;;
35141 esac
35142 fi
35143 fi
35144 else
35145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35147 fi
35148 fi
35149 rm -f confcache
35150
35151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35152 # Let make expand exec_prefix.
35153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35154
35155 DEFS=-DHAVE_CONFIG_H
35156
35157 ac_libobjs=
35158 ac_ltlibobjs=
35159 U=
35160 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35161 # 1. Remove the extension, and $U if already installed.
35162 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35163 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35164 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35165 # will be set to the directory where LIBOBJS objects are built.
35166 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35167 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35168 done
35169 LIBOBJS=$ac_libobjs
35170
35171 LTLIBOBJS=$ac_ltlibobjs
35172
35173
35174
35175 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35176 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35178 fi
35179
35180 : "${CONFIG_STATUS=./config.status}"
35181 ac_write_fail=0
35182 ac_clean_files_save=$ac_clean_files
35183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35185 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35186 as_write_fail=0
35187 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35188 #! $SHELL
35189 # Generated by $as_me.
35190 # Run this file to recreate the current configuration.
35191 # Compiler output produced by configure, useful for debugging
35192 # configure, is in config.log if it exists.
35193
35194 debug=false
35195 ac_cs_recheck=false
35196 ac_cs_silent=false
35197
35198 SHELL=\${CONFIG_SHELL-$SHELL}
35199 export SHELL
35200 _ASEOF
35201 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35202 ## -------------------- ##
35203 ## M4sh Initialization. ##
35204 ## -------------------- ##
35205
35206 # Be more Bourne compatible
35207 DUALCASE=1; export DUALCASE # for MKS sh
35208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35209 emulate sh
35210 NULLCMD=:
35211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35212 # is contrary to our usage. Disable this feature.
35213 alias -g '${1+"$@"}'='"$@"'
35214 setopt NO_GLOB_SUBST
35215 else
35216 case `(set -o) 2>/dev/null` in #(
35217 *posix*) :
35218 set -o posix ;; #(
35219 *) :
35220 ;;
35221 esac
35222 fi
35223
35224
35225 as_nl='
35226 '
35227 export as_nl
35228 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35229 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35230 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35232 # Prefer a ksh shell builtin over an external printf program on Solaris,
35233 # but without wasting forks for bash or zsh.
35234 if test -z "$BASH_VERSION$ZSH_VERSION" \
35235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35236 as_echo='print -r --'
35237 as_echo_n='print -rn --'
35238 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35239 as_echo='printf %s\n'
35240 as_echo_n='printf %s'
35241 else
35242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35244 as_echo_n='/usr/ucb/echo -n'
35245 else
35246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35247 as_echo_n_body='eval
35248 arg=$1;
35249 case $arg in #(
35250 *"$as_nl"*)
35251 expr "X$arg" : "X\\(.*\\)$as_nl";
35252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35253 esac;
35254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35255 '
35256 export as_echo_n_body
35257 as_echo_n='sh -c $as_echo_n_body as_echo'
35258 fi
35259 export as_echo_body
35260 as_echo='sh -c $as_echo_body as_echo'
35261 fi
35262
35263 # The user is always right.
35264 if test "${PATH_SEPARATOR+set}" != set; then
35265 PATH_SEPARATOR=:
35266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35268 PATH_SEPARATOR=';'
35269 }
35270 fi
35271
35272
35273 # IFS
35274 # We need space, tab and new line, in precisely that order. Quoting is
35275 # there to prevent editors from complaining about space-tab.
35276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35277 # splitting by setting IFS to empty value.)
35278 IFS=" "" $as_nl"
35279
35280 # Find who we are. Look in the path if we contain no directory separator.
35281 as_myself=
35282 case $0 in #((
35283 *[\\/]* ) as_myself=$0 ;;
35284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35285 for as_dir in $PATH
35286 do
35287 IFS=$as_save_IFS
35288 test -z "$as_dir" && as_dir=.
35289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35290 done
35291 IFS=$as_save_IFS
35292
35293 ;;
35294 esac
35295 # We did not find ourselves, most probably we were run as `sh COMMAND'
35296 # in which case we are not to be found in the path.
35297 if test "x$as_myself" = x; then
35298 as_myself=$0
35299 fi
35300 if test ! -f "$as_myself"; then
35301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35302 exit 1
35303 fi
35304
35305 # Unset variables that we do not need and which cause bugs (e.g. in
35306 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35307 # suppresses any "Segmentation fault" message there. '((' could
35308 # trigger a bug in pdksh 5.2.14.
35309 for as_var in BASH_ENV ENV MAIL MAILPATH
35310 do eval test x\${$as_var+set} = xset \
35311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35312 done
35313 PS1='$ '
35314 PS2='> '
35315 PS4='+ '
35316
35317 # NLS nuisances.
35318 LC_ALL=C
35319 export LC_ALL
35320 LANGUAGE=C
35321 export LANGUAGE
35322
35323 # CDPATH.
35324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35325
35326
35327 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35328 # ----------------------------------------
35329 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35330 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35331 # script with STATUS, using 1 if that was 0.
35332 as_fn_error ()
35333 {
35334 as_status=$1; test $as_status -eq 0 && as_status=1
35335 if test "$4"; then
35336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35338 fi
35339 $as_echo "$as_me: error: $2" >&2
35340 as_fn_exit $as_status
35341 } # as_fn_error
35342
35343
35344 # as_fn_set_status STATUS
35345 # -----------------------
35346 # Set $? to STATUS, without forking.
35347 as_fn_set_status ()
35348 {
35349 return $1
35350 } # as_fn_set_status
35351
35352 # as_fn_exit STATUS
35353 # -----------------
35354 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35355 as_fn_exit ()
35356 {
35357 set +e
35358 as_fn_set_status $1
35359 exit $1
35360 } # as_fn_exit
35361
35362 # as_fn_unset VAR
35363 # ---------------
35364 # Portably unset VAR.
35365 as_fn_unset ()
35366 {
35367 { eval $1=; unset $1;}
35368 }
35369 as_unset=as_fn_unset
35370 # as_fn_append VAR VALUE
35371 # ----------------------
35372 # Append the text in VALUE to the end of the definition contained in VAR. Take
35373 # advantage of any shell optimizations that allow amortized linear growth over
35374 # repeated appends, instead of the typical quadratic growth present in naive
35375 # implementations.
35376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35377 eval 'as_fn_append ()
35378 {
35379 eval $1+=\$2
35380 }'
35381 else
35382 as_fn_append ()
35383 {
35384 eval $1=\$$1\$2
35385 }
35386 fi # as_fn_append
35387
35388 # as_fn_arith ARG...
35389 # ------------------
35390 # Perform arithmetic evaluation on the ARGs, and store the result in the
35391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35392 # must be portable across $(()) and expr.
35393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35394 eval 'as_fn_arith ()
35395 {
35396 as_val=$(( $* ))
35397 }'
35398 else
35399 as_fn_arith ()
35400 {
35401 as_val=`expr "$@" || test $? -eq 1`
35402 }
35403 fi # as_fn_arith
35404
35405
35406 if expr a : '\(a\)' >/dev/null 2>&1 &&
35407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35408 as_expr=expr
35409 else
35410 as_expr=false
35411 fi
35412
35413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35414 as_basename=basename
35415 else
35416 as_basename=false
35417 fi
35418
35419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35420 as_dirname=dirname
35421 else
35422 as_dirname=false
35423 fi
35424
35425 as_me=`$as_basename -- "$0" ||
35426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35427 X"$0" : 'X\(//\)$' \| \
35428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35429 $as_echo X/"$0" |
35430 sed '/^.*\/\([^/][^/]*\)\/*$/{
35431 s//\1/
35432 q
35433 }
35434 /^X\/\(\/\/\)$/{
35435 s//\1/
35436 q
35437 }
35438 /^X\/\(\/\).*/{
35439 s//\1/
35440 q
35441 }
35442 s/.*/./; q'`
35443
35444 # Avoid depending upon Character Ranges.
35445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35448 as_cr_digits='0123456789'
35449 as_cr_alnum=$as_cr_Letters$as_cr_digits
35450
35451 ECHO_C= ECHO_N= ECHO_T=
35452 case `echo -n x` in #(((((
35453 -n*)
35454 case `echo 'xy\c'` in
35455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35456 xy) ECHO_C='\c';;
35457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35458 ECHO_T=' ';;
35459 esac;;
35460 *)
35461 ECHO_N='-n';;
35462 esac
35463
35464 rm -f conf$$ conf$$.exe conf$$.file
35465 if test -d conf$$.dir; then
35466 rm -f conf$$.dir/conf$$.file
35467 else
35468 rm -f conf$$.dir
35469 mkdir conf$$.dir 2>/dev/null
35470 fi
35471 if (echo >conf$$.file) 2>/dev/null; then
35472 if ln -s conf$$.file conf$$ 2>/dev/null; then
35473 as_ln_s='ln -s'
35474 # ... but there are two gotchas:
35475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35477 # In both cases, we have to default to `cp -pR'.
35478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35479 as_ln_s='cp -pR'
35480 elif ln conf$$.file conf$$ 2>/dev/null; then
35481 as_ln_s=ln
35482 else
35483 as_ln_s='cp -pR'
35484 fi
35485 else
35486 as_ln_s='cp -pR'
35487 fi
35488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35489 rmdir conf$$.dir 2>/dev/null
35490
35491
35492 # as_fn_mkdir_p
35493 # -------------
35494 # Create "$as_dir" as a directory, including parents if necessary.
35495 as_fn_mkdir_p ()
35496 {
35497
35498 case $as_dir in #(
35499 -*) as_dir=./$as_dir;;
35500 esac
35501 test -d "$as_dir" || eval $as_mkdir_p || {
35502 as_dirs=
35503 while :; do
35504 case $as_dir in #(
35505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35506 *) as_qdir=$as_dir;;
35507 esac
35508 as_dirs="'$as_qdir' $as_dirs"
35509 as_dir=`$as_dirname -- "$as_dir" ||
35510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35511 X"$as_dir" : 'X\(//\)[^/]' \| \
35512 X"$as_dir" : 'X\(//\)$' \| \
35513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35514 $as_echo X"$as_dir" |
35515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35516 s//\1/
35517 q
35518 }
35519 /^X\(\/\/\)[^/].*/{
35520 s//\1/
35521 q
35522 }
35523 /^X\(\/\/\)$/{
35524 s//\1/
35525 q
35526 }
35527 /^X\(\/\).*/{
35528 s//\1/
35529 q
35530 }
35531 s/.*/./; q'`
35532 test -d "$as_dir" && break
35533 done
35534 test -z "$as_dirs" || eval "mkdir $as_dirs"
35535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35536
35537
35538 } # as_fn_mkdir_p
35539 if mkdir -p . 2>/dev/null; then
35540 as_mkdir_p='mkdir -p "$as_dir"'
35541 else
35542 test -d ./-p && rmdir ./-p
35543 as_mkdir_p=false
35544 fi
35545
35546
35547 # as_fn_executable_p FILE
35548 # -----------------------
35549 # Test if FILE is an executable regular file.
35550 as_fn_executable_p ()
35551 {
35552 test -f "$1" && test -x "$1"
35553 } # as_fn_executable_p
35554 as_test_x='test -x'
35555 as_executable_p=as_fn_executable_p
35556
35557 # Sed expression to map a string onto a valid CPP name.
35558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35559
35560 # Sed expression to map a string onto a valid variable name.
35561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35562
35563
35564 exec 6>&1
35565 ## ----------------------------------- ##
35566 ## Main body of $CONFIG_STATUS script. ##
35567 ## ----------------------------------- ##
35568 _ASEOF
35569 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35570
35571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35572 # Save the log message, to keep $0 and so on meaningful, and to
35573 # report actual input values of CONFIG_FILES etc. instead of their
35574 # values after options handling.
35575 ac_log="
35576 This file was extended by $as_me, which was
35577 generated by GNU Autoconf 2.69. Invocation command line was
35578
35579 CONFIG_FILES = $CONFIG_FILES
35580 CONFIG_HEADERS = $CONFIG_HEADERS
35581 CONFIG_LINKS = $CONFIG_LINKS
35582 CONFIG_COMMANDS = $CONFIG_COMMANDS
35583 $ $0 $@
35584
35585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35586 "
35587
35588 _ACEOF
35589
35590 case $ac_config_files in *"
35591 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35592 esac
35593
35594 case $ac_config_headers in *"
35595 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35596 esac
35597
35598
35599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35600 # Files that config.status was made for.
35601 config_files="$ac_config_files"
35602 config_headers="$ac_config_headers"
35603 config_links="$ac_config_links"
35604 config_commands="$ac_config_commands"
35605
35606 _ACEOF
35607
35608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35609 ac_cs_usage="\
35610 \`$as_me' instantiates files and other configuration actions
35611 from templates according to the current configuration. Unless the files
35612 and actions are specified as TAGs, all are instantiated by default.
35613
35614 Usage: $0 [OPTION]... [TAG]...
35615
35616 -h, --help print this help, then exit
35617 -V, --version print version number and configuration settings, then exit
35618 --config print configuration, then exit
35619 -q, --quiet, --silent
35620 do not print progress messages
35621 -d, --debug don't remove temporary files
35622 --recheck update $as_me by reconfiguring in the same conditions
35623 --file=FILE[:TEMPLATE]
35624 instantiate the configuration file FILE
35625 --header=FILE[:TEMPLATE]
35626 instantiate the configuration header FILE
35627
35628 Configuration files:
35629 $config_files
35630
35631 Configuration headers:
35632 $config_headers
35633
35634 Configuration links:
35635 $config_links
35636
35637 Configuration commands:
35638 $config_commands
35639
35640 Report bugs to the package provider."
35641
35642 _ACEOF
35643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35644 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35645 ac_cs_version="\\
35646 config.status
35647 configured by $0, generated by GNU Autoconf 2.69,
35648 with options \\"\$ac_cs_config\\"
35649
35650 Copyright (C) 2012 Free Software Foundation, Inc.
35651 This config.status script is free software; the Free Software Foundation
35652 gives unlimited permission to copy, distribute and modify it."
35653
35654 ac_pwd='$ac_pwd'
35655 srcdir='$srcdir'
35656 INSTALL='$INSTALL'
35657 AWK='$AWK'
35658 test -n "\$AWK" || AWK=awk
35659 _ACEOF
35660
35661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35662 # The default lists apply if the user does not specify any file.
35663 ac_need_defaults=:
35664 while test $# != 0
35665 do
35666 case $1 in
35667 --*=?*)
35668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35670 ac_shift=:
35671 ;;
35672 --*=)
35673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35674 ac_optarg=
35675 ac_shift=:
35676 ;;
35677 *)
35678 ac_option=$1
35679 ac_optarg=$2
35680 ac_shift=shift
35681 ;;
35682 esac
35683
35684 case $ac_option in
35685 # Handling of the options.
35686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35687 ac_cs_recheck=: ;;
35688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35689 $as_echo "$ac_cs_version"; exit ;;
35690 --config | --confi | --conf | --con | --co | --c )
35691 $as_echo "$ac_cs_config"; exit ;;
35692 --debug | --debu | --deb | --de | --d | -d )
35693 debug=: ;;
35694 --file | --fil | --fi | --f )
35695 $ac_shift
35696 case $ac_optarg in
35697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35698 '') as_fn_error $? "missing file argument" ;;
35699 esac
35700 as_fn_append CONFIG_FILES " '$ac_optarg'"
35701 ac_need_defaults=false;;
35702 --header | --heade | --head | --hea )
35703 $ac_shift
35704 case $ac_optarg in
35705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35706 esac
35707 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35708 ac_need_defaults=false;;
35709 --he | --h)
35710 # Conflict between --help and --header
35711 as_fn_error $? "ambiguous option: \`$1'
35712 Try \`$0 --help' for more information.";;
35713 --help | --hel | -h )
35714 $as_echo "$ac_cs_usage"; exit ;;
35715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35717 ac_cs_silent=: ;;
35718
35719 # This is an error.
35720 -*) as_fn_error $? "unrecognized option: \`$1'
35721 Try \`$0 --help' for more information." ;;
35722
35723 *) as_fn_append ac_config_targets " $1"
35724 ac_need_defaults=false ;;
35725
35726 esac
35727 shift
35728 done
35729
35730 ac_configure_extra_args=
35731
35732 if $ac_cs_silent; then
35733 exec 6>/dev/null
35734 ac_configure_extra_args="$ac_configure_extra_args --silent"
35735 fi
35736
35737 _ACEOF
35738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35739 if \$ac_cs_recheck; then
35740 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35741 shift
35742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35743 CONFIG_SHELL='$SHELL'
35744 export CONFIG_SHELL
35745 exec "\$@"
35746 fi
35747
35748 _ACEOF
35749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35750 exec 5>>config.log
35751 {
35752 echo
35753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35754 ## Running $as_me. ##
35755 _ASBOX
35756 $as_echo "$ac_log"
35757 } >&5
35758
35759 _ACEOF
35760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35761 #
35762 # INIT-COMMANDS
35763 #
35764 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35765 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35766 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35767 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35768 # from automake.
35769 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35770 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35771 LINGUAS="${LINGUAS-%UNSET%}"
35772
35773 subdirs='$subdirs'
35774
35775 _ACEOF
35776
35777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35778
35779 # Handling of arguments.
35780 for ac_config_target in $ac_config_targets
35781 do
35782 case $ac_config_target in
35783 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35784 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35785 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35786 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35787 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35788 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35789 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35790 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35791 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35792 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35793 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35794
35795 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35796 esac
35797 done
35798
35799
35800 # If the user did not use the arguments to specify the items to instantiate,
35801 # then the envvar interface is used. Set only those that are not.
35802 # We use the long form for the default assignment because of an extremely
35803 # bizarre bug on SunOS 4.1.3.
35804 if $ac_need_defaults; then
35805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35807 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35808 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35809 fi
35810
35811 # Have a temporary directory for convenience. Make it in the build tree
35812 # simply because there is no reason against having it here, and in addition,
35813 # creating and moving files from /tmp can sometimes cause problems.
35814 # Hook for its removal unless debugging.
35815 # Note that there is a small window in which the directory will not be cleaned:
35816 # after its creation but before its name has been assigned to `$tmp'.
35817 $debug ||
35818 {
35819 tmp= ac_tmp=
35820 trap 'exit_status=$?
35821 : "${ac_tmp:=$tmp}"
35822 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35823 ' 0
35824 trap 'as_fn_exit 1' 1 2 13 15
35825 }
35826 # Create a (secure) tmp directory for tmp files.
35827
35828 {
35829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35830 test -d "$tmp"
35831 } ||
35832 {
35833 tmp=./conf$$-$RANDOM
35834 (umask 077 && mkdir "$tmp")
35835 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35836 ac_tmp=$tmp
35837
35838 # Set up the scripts for CONFIG_FILES section.
35839 # No need to generate them if there are no CONFIG_FILES.
35840 # This happens for instance with `./config.status config.h'.
35841 if test -n "$CONFIG_FILES"; then
35842
35843 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35844 ac_cs_awk_getline=:
35845 ac_cs_awk_pipe_init=
35846 ac_cs_awk_read_file='
35847 while ((getline aline < (F[key])) > 0)
35848 print(aline)
35849 close(F[key])'
35850 ac_cs_awk_pipe_fini=
35851 else
35852 ac_cs_awk_getline=false
35853 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35854 ac_cs_awk_read_file='
35855 print "|#_!!_#|"
35856 print "cat " F[key] " &&"
35857 '$ac_cs_awk_pipe_init
35858 # The final `:' finishes the AND list.
35859 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35860 fi
35861 ac_cr=`echo X | tr X '\015'`
35862 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35863 # But we know of no other shell where ac_cr would be empty at this
35864 # point, so we can use a bashism as a fallback.
35865 if test "x$ac_cr" = x; then
35866 eval ac_cr=\$\'\\r\'
35867 fi
35868 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35869 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35870 ac_cs_awk_cr='\\r'
35871 else
35872 ac_cs_awk_cr=$ac_cr
35873 fi
35874
35875 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35876 _ACEOF
35877
35878 # Create commands to substitute file output variables.
35879 {
35880 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35881 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35882 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35883 echo "_ACAWK" &&
35884 echo "_ACEOF"
35885 } >conf$$files.sh &&
35886 . ./conf$$files.sh ||
35887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35888 rm -f conf$$files.sh
35889
35890 {
35891 echo "cat >conf$$subs.awk <<_ACEOF" &&
35892 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35893 echo "_ACEOF"
35894 } >conf$$subs.sh ||
35895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35896 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35897 ac_delim='%!_!# '
35898 for ac_last_try in false false false false false :; do
35899 . ./conf$$subs.sh ||
35900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35901
35902 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35903 if test $ac_delim_n = $ac_delim_num; then
35904 break
35905 elif $ac_last_try; then
35906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35907 else
35908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35909 fi
35910 done
35911 rm -f conf$$subs.sh
35912
35913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35914 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35915 _ACEOF
35916 sed -n '
35917 h
35918 s/^/S["/; s/!.*/"]=/
35919 p
35920 g
35921 s/^[^!]*!//
35922 :repl
35923 t repl
35924 s/'"$ac_delim"'$//
35925 t delim
35926 :nl
35927 h
35928 s/\(.\{148\}\)..*/\1/
35929 t more1
35930 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35931 p
35932 n
35933 b repl
35934 :more1
35935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35936 p
35937 g
35938 s/.\{148\}//
35939 t nl
35940 :delim
35941 h
35942 s/\(.\{148\}\)..*/\1/
35943 t more2
35944 s/["\\]/\\&/g; s/^/"/; s/$/"/
35945 p
35946 b
35947 :more2
35948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35949 p
35950 g
35951 s/.\{148\}//
35952 t delim
35953 ' <conf$$subs.awk | sed '
35954 /^[^""]/{
35955 N
35956 s/\n//
35957 }
35958 ' >>$CONFIG_STATUS || ac_write_fail=1
35959 rm -f conf$$subs.awk
35960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35961 _ACAWK
35962 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35963 for (key in S) S_is_set[key] = 1
35964 FS = ""
35965 \$ac_cs_awk_pipe_init
35966 }
35967 {
35968 line = $ 0
35969 nfields = split(line, field, "@")
35970 substed = 0
35971 len = length(field[1])
35972 for (i = 2; i < nfields; i++) {
35973 key = field[i]
35974 keylen = length(key)
35975 if (S_is_set[key]) {
35976 value = S[key]
35977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35978 len += length(value) + length(field[++i])
35979 substed = 1
35980 } else
35981 len += 1 + keylen
35982 }
35983 if (nfields == 3 && !substed) {
35984 key = field[2]
35985 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35986 \$ac_cs_awk_read_file
35987 next
35988 }
35989 }
35990 print line
35991 }
35992 \$ac_cs_awk_pipe_fini
35993 _ACAWK
35994 _ACEOF
35995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35996 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35997 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35998 else
35999 cat
36000 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36001 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36002 _ACEOF
36003
36004 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36005 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36006 # trailing colons and then remove the whole line if VPATH becomes empty
36007 # (actually we leave an empty line to preserve line numbers).
36008 if test "x$srcdir" = x.; then
36009 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36010 h
36011 s///
36012 s/^/:/
36013 s/[ ]*$/:/
36014 s/:\$(srcdir):/:/g
36015 s/:\${srcdir}:/:/g
36016 s/:@srcdir@:/:/g
36017 s/^:*//
36018 s/:*$//
36019 x
36020 s/\(=[ ]*\).*/\1/
36021 G
36022 s/\n//
36023 s/^[^=]*=[ ]*$//
36024 }'
36025 fi
36026
36027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36028 fi # test -n "$CONFIG_FILES"
36029
36030 # Set up the scripts for CONFIG_HEADERS section.
36031 # No need to generate them if there are no CONFIG_HEADERS.
36032 # This happens for instance with `./config.status Makefile'.
36033 if test -n "$CONFIG_HEADERS"; then
36034 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36035 BEGIN {
36036 _ACEOF
36037
36038 # Transform confdefs.h into an awk script `defines.awk', embedded as
36039 # here-document in config.status, that substitutes the proper values into
36040 # config.h.in to produce config.h.
36041
36042 # Create a delimiter string that does not exist in confdefs.h, to ease
36043 # handling of long lines.
36044 ac_delim='%!_!# '
36045 for ac_last_try in false false :; do
36046 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36047 if test -z "$ac_tt"; then
36048 break
36049 elif $ac_last_try; then
36050 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36051 else
36052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36053 fi
36054 done
36055
36056 # For the awk script, D is an array of macro values keyed by name,
36057 # likewise P contains macro parameters if any. Preserve backslash
36058 # newline sequences.
36059
36060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36061 sed -n '
36062 s/.\{148\}/&'"$ac_delim"'/g
36063 t rset
36064 :rset
36065 s/^[ ]*#[ ]*define[ ][ ]*/ /
36066 t def
36067 d
36068 :def
36069 s/\\$//
36070 t bsnl
36071 s/["\\]/\\&/g
36072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36073 D["\1"]=" \3"/p
36074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36075 d
36076 :bsnl
36077 s/["\\]/\\&/g
36078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36079 D["\1"]=" \3\\\\\\n"\\/p
36080 t cont
36081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36082 t cont
36083 d
36084 :cont
36085 n
36086 s/.\{148\}/&'"$ac_delim"'/g
36087 t clear
36088 :clear
36089 s/\\$//
36090 t bsnlc
36091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36092 d
36093 :bsnlc
36094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36095 b cont
36096 ' <confdefs.h | sed '
36097 s/'"$ac_delim"'/"\\\
36098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36099
36100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36101 for (key in D) D_is_set[key] = 1
36102 FS = ""
36103 }
36104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36105 line = \$ 0
36106 split(line, arg, " ")
36107 if (arg[1] == "#") {
36108 defundef = arg[2]
36109 mac1 = arg[3]
36110 } else {
36111 defundef = substr(arg[1], 2)
36112 mac1 = arg[2]
36113 }
36114 split(mac1, mac2, "(") #)
36115 macro = mac2[1]
36116 prefix = substr(line, 1, index(line, defundef) - 1)
36117 if (D_is_set[macro]) {
36118 # Preserve the white space surrounding the "#".
36119 print prefix "define", macro P[macro] D[macro]
36120 next
36121 } else {
36122 # Replace #undef with comments. This is necessary, for example,
36123 # in the case of _POSIX_SOURCE, which is predefined and required
36124 # on some systems where configure will not decide to define it.
36125 if (defundef == "undef") {
36126 print "/*", prefix defundef, macro, "*/"
36127 next
36128 }
36129 }
36130 }
36131 { print }
36132 _ACAWK
36133 _ACEOF
36134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36135 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36136 fi # test -n "$CONFIG_HEADERS"
36137
36138
36139 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
36140 shift
36141 for ac_tag
36142 do
36143 case $ac_tag in
36144 :[FHLC]) ac_mode=$ac_tag; continue;;
36145 esac
36146 case $ac_mode$ac_tag in
36147 :[FHL]*:*);;
36148 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36149 :[FH]-) ac_tag=-:-;;
36150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36151 esac
36152 ac_save_IFS=$IFS
36153 IFS=:
36154 set x $ac_tag
36155 IFS=$ac_save_IFS
36156 shift
36157 ac_file=$1
36158 shift
36159
36160 case $ac_mode in
36161 :L) ac_source=$1;;
36162 :[FH])
36163 ac_file_inputs=
36164 for ac_f
36165 do
36166 case $ac_f in
36167 -) ac_f="$ac_tmp/stdin";;
36168 *) # Look for the file first in the build tree, then in the source tree
36169 # (if the path is not absolute). The absolute path cannot be DOS-style,
36170 # because $ac_f cannot contain `:'.
36171 test -f "$ac_f" ||
36172 case $ac_f in
36173 [\\/$]*) false;;
36174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36175 esac ||
36176 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36177 esac
36178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36179 as_fn_append ac_file_inputs " '$ac_f'"
36180 done
36181
36182 # Let's still pretend it is `configure' which instantiates (i.e., don't
36183 # use $as_me), people would be surprised to read:
36184 # /* config.h. Generated by config.status. */
36185 configure_input='Generated from '`
36186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36187 `' by configure.'
36188 if test x"$ac_file" != x-; then
36189 configure_input="$ac_file. $configure_input"
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36191 $as_echo "$as_me: creating $ac_file" >&6;}
36192 fi
36193 # Neutralize special characters interpreted by sed in replacement strings.
36194 case $configure_input in #(
36195 *\&* | *\|* | *\\* )
36196 ac_sed_conf_input=`$as_echo "$configure_input" |
36197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36198 *) ac_sed_conf_input=$configure_input;;
36199 esac
36200
36201 case $ac_tag in
36202 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36204 esac
36205 ;;
36206 esac
36207
36208 ac_dir=`$as_dirname -- "$ac_file" ||
36209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36210 X"$ac_file" : 'X\(//\)[^/]' \| \
36211 X"$ac_file" : 'X\(//\)$' \| \
36212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36213 $as_echo X"$ac_file" |
36214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36215 s//\1/
36216 q
36217 }
36218 /^X\(\/\/\)[^/].*/{
36219 s//\1/
36220 q
36221 }
36222 /^X\(\/\/\)$/{
36223 s//\1/
36224 q
36225 }
36226 /^X\(\/\).*/{
36227 s//\1/
36228 q
36229 }
36230 s/.*/./; q'`
36231 as_dir="$ac_dir"; as_fn_mkdir_p
36232 ac_builddir=.
36233
36234 case "$ac_dir" in
36235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36236 *)
36237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36238 # A ".." for each directory in $ac_dir_suffix.
36239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36240 case $ac_top_builddir_sub in
36241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36243 esac ;;
36244 esac
36245 ac_abs_top_builddir=$ac_pwd
36246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36247 # for backward compatibility:
36248 ac_top_builddir=$ac_top_build_prefix
36249
36250 case $srcdir in
36251 .) # We are building in place.
36252 ac_srcdir=.
36253 ac_top_srcdir=$ac_top_builddir_sub
36254 ac_abs_top_srcdir=$ac_pwd ;;
36255 [\\/]* | ?:[\\/]* ) # Absolute name.
36256 ac_srcdir=$srcdir$ac_dir_suffix;
36257 ac_top_srcdir=$srcdir
36258 ac_abs_top_srcdir=$srcdir ;;
36259 *) # Relative name.
36260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36261 ac_top_srcdir=$ac_top_build_prefix$srcdir
36262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36263 esac
36264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36265
36266
36267 case $ac_mode in
36268 :F)
36269 #
36270 # CONFIG_FILE
36271 #
36272
36273 case $INSTALL in
36274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36276 esac
36277 _ACEOF
36278
36279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36280 # If the template does not know about datarootdir, expand it.
36281 # FIXME: This hack should be removed a few years after 2.60.
36282 ac_datarootdir_hack=; ac_datarootdir_seen=
36283 ac_sed_dataroot='
36284 /datarootdir/ {
36285 p
36286 q
36287 }
36288 /@datadir@/p
36289 /@docdir@/p
36290 /@infodir@/p
36291 /@localedir@/p
36292 /@mandir@/p'
36293 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36294 *datarootdir*) ac_datarootdir_seen=yes;;
36295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36297 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36298 _ACEOF
36299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36300 ac_datarootdir_hack='
36301 s&@datadir@&$datadir&g
36302 s&@docdir@&$docdir&g
36303 s&@infodir@&$infodir&g
36304 s&@localedir@&$localedir&g
36305 s&@mandir@&$mandir&g
36306 s&\\\${datarootdir}&$datarootdir&g' ;;
36307 esac
36308 _ACEOF
36309
36310 # Neutralize VPATH when `$srcdir' = `.'.
36311 # Shell code in configure.ac might set extrasub.
36312 # FIXME: do we really want to maintain this feature?
36313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36314 ac_sed_extra="$ac_vpsub
36315 $extrasub
36316 _ACEOF
36317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36318 :t
36319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36320 s|@configure_input@|$ac_sed_conf_input|;t t
36321 s&@top_builddir@&$ac_top_builddir_sub&;t t
36322 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36323 s&@srcdir@&$ac_srcdir&;t t
36324 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36325 s&@top_srcdir@&$ac_top_srcdir&;t t
36326 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36327 s&@builddir@&$ac_builddir&;t t
36328 s&@abs_builddir@&$ac_abs_builddir&;t t
36329 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36330 s&@INSTALL@&$ac_INSTALL&;t t
36331 $ac_datarootdir_hack
36332 "
36333 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36334 if $ac_cs_awk_getline; then
36335 $AWK -f "$ac_tmp/subs.awk"
36336 else
36337 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36338 fi \
36339 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36340
36341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36342 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36344 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36346 which seems to be undefined. Please make sure it is defined" >&5
36347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36348 which seems to be undefined. Please make sure it is defined" >&2;}
36349
36350 rm -f "$ac_tmp/stdin"
36351 case $ac_file in
36352 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36353 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36354 esac \
36355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36356 ;;
36357 :H)
36358 #
36359 # CONFIG_HEADER
36360 #
36361 if test x"$ac_file" != x-; then
36362 {
36363 $as_echo "/* $configure_input */" \
36364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36365 } >"$ac_tmp/config.h" \
36366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36367 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36368 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36369 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36370 else
36371 rm -f "$ac_file"
36372 mv "$ac_tmp/config.h" "$ac_file" \
36373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36374 fi
36375 else
36376 $as_echo "/* $configure_input */" \
36377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36378 || as_fn_error $? "could not create -" "$LINENO" 5
36379 fi
36380 ;;
36381 :L)
36382 #
36383 # CONFIG_LINK
36384 #
36385
36386 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36387 :
36388 else
36389 # Prefer the file from the source tree if names are identical.
36390 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36391 ac_source=$srcdir/$ac_source
36392 fi
36393
36394 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36395 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36396
36397 if test ! -r "$ac_source"; then
36398 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36399 fi
36400 rm -f "$ac_file"
36401
36402 # Try a relative symlink, then a hard link, then a copy.
36403 case $ac_source in
36404 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36405 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36406 esac
36407 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36408 ln "$ac_source" "$ac_file" 2>/dev/null ||
36409 cp -p "$ac_source" "$ac_file" ||
36410 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36411 fi
36412 ;;
36413 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36414 $as_echo "$as_me: executing $ac_file commands" >&6;}
36415 ;;
36416 esac
36417
36418
36419 case $ac_file$ac_mode in
36420 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36421 "gccdepdir":C)
36422 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36423 for lang in $subdirs c-family common analyzer text-art rtl-ssa sym-exec
36424 do
36425 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36426 done ;;
36427 "default-1":C)
36428 for ac_file in $CONFIG_FILES; do
36429 # Support "outfile[:infile[:infile...]]"
36430 case "$ac_file" in
36431 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36432 esac
36433 # PO directories have a Makefile.in generated from Makefile.in.in.
36434 case "$ac_file" in */Makefile.in)
36435 # Adjust a relative srcdir.
36436 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36437 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36438 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36439 # In autoconf-2.13 it is called $ac_given_srcdir.
36440 # In autoconf-2.50 it is called $srcdir.
36441 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36442 case "$ac_given_srcdir" in
36443 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36444 /*) top_srcdir="$ac_given_srcdir" ;;
36445 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36446 esac
36447 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36448 rm -f "$ac_dir/POTFILES"
36449 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36450 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36451 POMAKEFILEDEPS="POTFILES.in"
36452 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36453 # on $ac_dir but don't depend on user-specified configuration
36454 # parameters.
36455 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36456 # The LINGUAS file contains the set of available languages.
36457 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36458 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36459 fi
36460 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36461 # Hide the ALL_LINGUAS assigment from automake.
36462 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36463 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36464 else
36465 # The set of available languages was given in configure.ac.
36466 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36467 fi
36468 case "$ac_given_srcdir" in
36469 .) srcdirpre= ;;
36470 *) srcdirpre='$(srcdir)/' ;;
36471 esac
36472 POFILES=
36473 GMOFILES=
36474 UPDATEPOFILES=
36475 DUMMYPOFILES=
36476 for lang in $ALL_LINGUAS; do
36477 POFILES="$POFILES $srcdirpre$lang.po"
36478 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36479 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36480 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36481 done
36482 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36483 # environment variable.
36484 INST_LINGUAS=
36485 if test -n "$ALL_LINGUAS"; then
36486 for presentlang in $ALL_LINGUAS; do
36487 useit=no
36488 if test "%UNSET%" != "$LINGUAS"; then
36489 desiredlanguages="$LINGUAS"
36490 else
36491 desiredlanguages="$ALL_LINGUAS"
36492 fi
36493 for desiredlang in $desiredlanguages; do
36494 # Use the presentlang catalog if desiredlang is
36495 # a. equal to presentlang, or
36496 # b. a variant of presentlang (because in this case,
36497 # presentlang can be used as a fallback for messages
36498 # which are not translated in the desiredlang catalog).
36499 case "$desiredlang" in
36500 "$presentlang"*) useit=yes;;
36501 esac
36502 done
36503 if test $useit = yes; then
36504 INST_LINGUAS="$INST_LINGUAS $presentlang"
36505 fi
36506 done
36507 fi
36508 CATALOGS=
36509 if test -n "$INST_LINGUAS"; then
36510 for lang in $INST_LINGUAS; do
36511 CATALOGS="$CATALOGS $lang.gmo"
36512 done
36513 fi
36514 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36515 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"
36516 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36517 if test -f "$f"; then
36518 case "$f" in
36519 *.orig | *.bak | *~) ;;
36520 *) cat "$f" >> "$ac_dir/Makefile" ;;
36521 esac
36522 fi
36523 done
36524 fi
36525 ;;
36526 esac
36527 done ;;
36528 "as":F) chmod +x as ;;
36529 "collect-ld":F) chmod +x collect-ld ;;
36530 "nm":F) chmod +x nm ;;
36531 "dsymutil":F) chmod +x dsymutil ;;
36532 "default":C)
36533 case ${CONFIG_HEADERS} in
36534 *auto-host.h:config.in*)
36535 echo > cstamp-h ;;
36536 esac
36537 # Make sure all the subdirs exist.
36538 for d in $subdirs doc build common c-family
36539 do
36540 test -d $d || mkdir $d
36541 done
36542 ;;
36543
36544 esac
36545 done # for ac_tag
36546
36547
36548 as_fn_exit 0
36549 _ACEOF
36550 ac_clean_files=$ac_clean_files_save
36551
36552 test $ac_write_fail = 0 ||
36553 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36554
36555
36556 # configure is writing to config.log, and then calls config.status.
36557 # config.status does its own redirection, appending to config.log.
36558 # Unfortunately, on DOS this fails, as config.log is still kept open
36559 # by configure, so config.status won't be able to write to it; its
36560 # output is simply discarded. So we exec the FD to /dev/null,
36561 # effectively closing config.log, so it can be properly (re)opened and
36562 # appended to by config.status. When coming back to configure, we
36563 # need to make the FD available again.
36564 if test "$no_create" != yes; then
36565 ac_cs_success=:
36566 ac_config_status_args=
36567 test "$silent" = yes &&
36568 ac_config_status_args="$ac_config_status_args --quiet"
36569 exec 5>/dev/null
36570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36571 exec 5>>config.log
36572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36573 # would make configure fail if this is the last instruction.
36574 $ac_cs_success || as_fn_exit 1
36575 fi
36576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36579 fi
36580