]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
build: Allow for Xcode 15 ld -v output
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 LD_PICFLAG
636 PICFLAG
637 enable_default_pie
638 enable_host_bind_now
639 enable_host_pie
640 enable_host_shared
641 enable_plugin
642 pluginlibs
643 ISLINC
644 ISLLIBS
645 GMPINC
646 GMPLIBS
647 target_cpu_default
648 d_target_objs
649 fortran_target_objs
650 cxx_target_objs
651 c_target_objs
652 use_gcc_stdint
653 xm_defines
654 xm_include_list
655 xm_file_list
656 tm_d_include_list
657 tm_d_file_list
658 tm_p_include_list
659 tm_p_file_list
660 tm_defines
661 tm_include_list
662 tm_file_list
663 common_out_object_file
664 common_out_file
665 out_object_file
666 out_file
667 objc_boehm_gc
668 md_file
669 local_prefix
670 lang_tree_files
671 lang_specs_files
672 lang_opt_files
673 install
674 out_host_hook_obj
675 host_xm_defines
676 host_xm_include_list
677 host_xm_file_list
678 host_exeext
679 gcc_gxx_libcxx_include_dir_add_sysroot
680 gcc_gxx_libcxx_include_dir
681 gcc_gxx_include_dir_add_sysroot
682 gcc_gxx_include_dir
683 gcc_config_arguments
684 float_h_file
685 extra_programs
686 extra_objs
687 extra_headers_list
688 user_headers_inc_next_post
689 user_headers_inc_next_pre
690 extra_gcc_objs
691 TM_MULTILIB_EXCEPTIONS_CONFIG
692 TM_MULTILIB_CONFIG
693 TM_ENDIAN_CONFIG
694 tmake_file
695 xmake_file
696 cpp_install_dir
697 selftest_languages
698 check_languages
699 build_file_translate
700 build_xm_defines
701 build_xm_include_list
702 build_xm_file_list
703 build_install_headers_dir
704 build_exeext
705 all_selected_languages
706 all_languages
707 all_lang_makefrags
708 all_lang_configurefrags
709 all_gtfiles
710 all_compilers
711 srcdir
712 subdirs
713 dollar
714 gcc_tooldir
715 enable_lto
716 DO_LINK_SERIALIZATION
717 DO_LINK_MUTEX
718 CSCOPE
719 ETAGS
720 CTAGS
721 MAINT
722 zlibinc
723 zlibdir
724 HOST_LIBS
725 enable_default_ssp
726 thin_archive_support
727 ld_soname_option
728 ld_version_script_option
729 libgcc_visibility
730 ORIGINAL_DSYMUTIL_FOR_TARGET
731 gcc_cv_dsymutil
732 gcc_cv_otool
733 gcc_cv_readelf
734 gcc_cv_objdump
735 ORIGINAL_NM_FOR_TARGET
736 gcc_cv_nm
737 ORIGINAL_LD_GOLD_FOR_TARGET
738 ORIGINAL_LD_BFD_FOR_TARGET
739 ORIGINAL_LD_FOR_TARGET
740 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 gcc_cv_ld
742 ORIGINAL_AS_FOR_TARGET
743 gcc_cv_as
744 enable_fast_install
745 objdir
746 OTOOL64
747 OTOOL
748 LIPO
749 NMEDIT
750 DSYMUTIL
751 STRIP
752 OBJDUMP
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 SED
758 LIBTOOL
759 collect2
760 STMP_FIXINC
761 BUILD_LDFLAGS
762 BUILD_CXXFLAGS
763 BUILD_CFLAGS
764 CXX_FOR_BUILD
765 CC_FOR_BUILD
766 inhibit_libc
767 BUILD_SYSTEM_HEADER_DIR
768 SYSTEM_HEADER_DIR
769 ALL
770 CROSS
771 CATOBJEXT
772 GENCAT
773 INSTOBJEXT
774 DATADIRNAME
775 CATALOGS
776 POSUB
777 GMSGFMT
778 XGETTEXT
779 INCINTL
780 LIBINTL_DEP
781 LIBINTL
782 USE_NLS
783 get_gcc_base_ver
784 HAVE_AUTO_BUILD
785 extra_opt_files
786 extra_modes_file
787 NATIVE_SYSTEM_HEADER_DIR
788 objext
789 manext
790 LIBICONV_DEP
791 LTLIBICONV
792 LIBICONV
793 ZSTD_LDFLAGS
794 ZSTD_CPPFLAGS
795 ZSTD_LIB
796 ZSTD_INCLUDE
797 DL_LIB
798 LDEXP_LIB
799 NETLIBS
800 EXTRA_GCC_LIBS
801 GNAT_LIBEXC
802 COLLECT2_LIBS
803 CXXDEPMODE
804 DEPDIR
805 am__leading_dot
806 doc_build_sys
807 AR
808 NM
809 HAVE_PYTHON
810 PYTHON
811 BISON
812 FLEX
813 GENERATED_MANPAGES
814 MAKEINFO_TOC_INLINE_FLAG
815 BUILD_INFO
816 MAKEINFO
817 have_mktemp_command
818 make_compare_target
819 INSTALL_DATA
820 INSTALL_PROGRAM
821 INSTALL
822 ranlib_flags
823 RANLIB
824 LN
825 LN_S
826 AWK
827 SET_MAKE
828 omp_device_property_deps
829 omp_device_properties
830 accel_dir_suffix
831 real_target_noncanonical
832 enable_as_accelerator
833 gnat_install_lib
834 REPORT_BUGS_TEXI
835 REPORT_BUGS_TO
836 PKGVERSION
837 CONFIGURE_SPECS
838 enable_gcov
839 enable_shared
840 enable_fixed_point
841 enable_decimal_float
842 DEFAULT_MATCHPD_PARTITIONS
843 with_float
844 with_cpu
845 enable_multiarch
846 enable_multilib
847 coverage_flags
848 valgrind_command
849 valgrind_path_defines
850 valgrind_path
851 TREECHECKING
852 nocommon_flag
853 noexception_flags
854 warn_cxxflags
855 warn_cflags
856 c_strict_warn
857 strict_warn
858 c_loose_warn
859 loose_warn
860 aliasing_flags
861 CPP
862 EGREP
863 GREP
864 CXXCPP
865 PICFLAG_FOR_TARGET
866 GDCFLAGS
867 GDC
868 GNATMAKE
869 GNATBIND
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 GENINSRC
881 CROSS_SYSTEM_HEADER_DIR
882 TARGET_SYSTEM_ROOT_DEFINE
883 TARGET_SYSTEM_ROOT
884 SYSROOT_CFLAGS_FOR_TARGET
885 target_subdir
886 host_subdir
887 build_subdir
888 build_libsubdir
889 target_noncanonical
890 host_noncanonical
891 target_os
892 target_vendor
893 target_cpu
894 target
895 host_os
896 host_vendor
897 host_cpu
898 host
899 build_os
900 build_vendor
901 build_cpu
902 build
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='option_includes
942 language_hooks'
943 ac_user_opts='
944 enable_option_checking
945 with_build_libsubdir
946 with_local_prefix
947 with_native_system_header_dir
948 with_build_sysroot
949 with_sysroot
950 with_gxx_include_dir
951 with_gxx_libcxx_include_dir
952 with_cpp_install_dir
953 enable_generated_files_in_srcdir
954 with_gnu_ld
955 with_ld
956 with_demangler_in_ld
957 with_dsymutil
958 with_gnu_as
959 with_as
960 enable_largefile
961 enable_build_format_warnings
962 enable_werror_always
963 enable_checking
964 enable_coverage
965 enable_gather_detailed_mem_stats
966 enable_valgrind_annotations
967 enable_multilib
968 enable_multiarch
969 with_stack_clash_protection_guard_size
970 with_matchpd_partitions
971 enable___cxa_atexit
972 enable_decimal_float
973 enable_fixed_point
974 enable_threads
975 enable_tls
976 enable_vtable_verify
977 enable_analyzer
978 enable_objc_gc
979 with_dwarf2
980 enable_shared
981 enable_gcov
982 with_specs
983 with_pkgversion
984 with_bugurl
985 with_documentation_root_url
986 with_changes_root_url
987 enable_languages
988 with_multilib_list
989 with_multilib_generator
990 with_zstd
991 with_zstd_include
992 with_zstd_lib
993 enable_rpath
994 with_libiconv_prefix
995 with_libiconv_type
996 enable_sjlj_exceptions
997 with_gcc_major_version_only
998 enable_secureplt
999 enable_mingw_wildcard
1000 enable_large_address_aware
1001 enable_leading_mingw64_underscores
1002 enable_cld
1003 enable_frame_pointer
1004 enable_win32_registry
1005 enable_static
1006 with_pic
1007 enable_fast_install
1008 enable_libtool_lock
1009 enable_ld
1010 enable_gold
1011 with_plugin_ld
1012 enable_gnu_indirect_function
1013 enable_initfini_array
1014 enable_comdat
1015 enable_newlib_nano_formatted_io
1016 enable_standard_branch_protection
1017 enable_fix_cortex_a53_835769
1018 enable_fix_cortex_a53_843419
1019 with_glibc_version
1020 enable_gnu_unique_object
1021 enable_linker_build_id
1022 enable_libssp
1023 enable_default_ssp
1024 with_long_double_128
1025 with_long_double_format
1026 with_gc
1027 with_system_zlib
1028 enable_maintainer_mode
1029 enable_link_mutex
1030 enable_link_serialization
1031 enable_version_specific_runtime_libs
1032 enable_plugin
1033 enable_host_shared
1034 enable_host_pie
1035 enable_host_bind_now
1036 enable_libquadmath_support
1037 with_linker_hash_style
1038 with_diagnostics_color
1039 with_diagnostics_urls
1040 enable_default_pie
1041 enable_cet
1042 enable_s390_excess_float_precision
1043 '
1044 ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1047 CC
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 CXXCPP
1056 CPP
1057 GMPLIBS
1058 GMPINC
1059 ISLLIBS
1060 ISLINC'
1061
1062
1063 # Initialize some variables set by options.
1064 ac_init_help=
1065 ac_init_version=false
1066 ac_unrecognized_opts=
1067 ac_unrecognized_sep=
1068 # The variables have the same names as the options, with
1069 # dashes changed to underlines.
1070 cache_file=/dev/null
1071 exec_prefix=NONE
1072 no_create=
1073 no_recursion=
1074 prefix=NONE
1075 program_prefix=NONE
1076 program_suffix=NONE
1077 program_transform_name=s,x,x,
1078 silent=
1079 site=
1080 srcdir=
1081 verbose=
1082 x_includes=NONE
1083 x_libraries=NONE
1084
1085 # Installation directory options.
1086 # These are left unexpanded so users can "make install exec_prefix=/foo"
1087 # and all the variables that are supposed to be based on exec_prefix
1088 # by default will actually change.
1089 # Use braces instead of parens because sh, perl, etc. also accept them.
1090 # (The list follows the same order as the GNU Coding Standards.)
1091 bindir='${exec_prefix}/bin'
1092 sbindir='${exec_prefix}/sbin'
1093 libexecdir='${exec_prefix}/libexec'
1094 datarootdir='${prefix}/share'
1095 datadir='${datarootdir}'
1096 sysconfdir='${prefix}/etc'
1097 sharedstatedir='${prefix}/com'
1098 localstatedir='${prefix}/var'
1099 includedir='${prefix}/include'
1100 oldincludedir='/usr/include'
1101 docdir='${datarootdir}/doc/${PACKAGE}'
1102 infodir='${datarootdir}/info'
1103 htmldir='${docdir}'
1104 dvidir='${docdir}'
1105 pdfdir='${docdir}'
1106 psdir='${docdir}'
1107 libdir='${exec_prefix}/lib'
1108 localedir='${datarootdir}/locale'
1109 mandir='${datarootdir}/man'
1110
1111 ac_prev=
1112 ac_dashdash=
1113 for ac_option
1114 do
1115 # If the previous option needs an argument, assign it.
1116 if test -n "$ac_prev"; then
1117 eval $ac_prev=\$ac_option
1118 ac_prev=
1119 continue
1120 fi
1121
1122 case $ac_option in
1123 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1124 *=) ac_optarg= ;;
1125 *) ac_optarg=yes ;;
1126 esac
1127
1128 # Accept the important Cygnus configure options, so we can diagnose typos.
1129
1130 case $ac_dashdash$ac_option in
1131 --)
1132 ac_dashdash=yes ;;
1133
1134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1135 ac_prev=bindir ;;
1136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1137 bindir=$ac_optarg ;;
1138
1139 -build | --build | --buil | --bui | --bu)
1140 ac_prev=build_alias ;;
1141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1142 build_alias=$ac_optarg ;;
1143
1144 -cache-file | --cache-file | --cache-fil | --cache-fi \
1145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1146 ac_prev=cache_file ;;
1147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1149 cache_file=$ac_optarg ;;
1150
1151 --config-cache | -C)
1152 cache_file=config.cache ;;
1153
1154 -datadir | --datadir | --datadi | --datad)
1155 ac_prev=datadir ;;
1156 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1157 datadir=$ac_optarg ;;
1158
1159 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1160 | --dataroo | --dataro | --datar)
1161 ac_prev=datarootdir ;;
1162 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1163 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1164 datarootdir=$ac_optarg ;;
1165
1166 -disable-* | --disable-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid feature name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "enable_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval enable_$ac_useropt=no ;;
1181
1182 -docdir | --docdir | --docdi | --doc | --do)
1183 ac_prev=docdir ;;
1184 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1185 docdir=$ac_optarg ;;
1186
1187 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1188 ac_prev=dvidir ;;
1189 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1190 dvidir=$ac_optarg ;;
1191
1192 -enable-* | --enable-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval enable_$ac_useropt=\$ac_optarg ;;
1207
1208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210 | --exec | --exe | --ex)
1211 ac_prev=exec_prefix ;;
1212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214 | --exec=* | --exe=* | --ex=*)
1215 exec_prefix=$ac_optarg ;;
1216
1217 -gas | --gas | --ga | --g)
1218 # Obsolete; use --with-gas.
1219 with_gas=yes ;;
1220
1221 -help | --help | --hel | --he | -h)
1222 ac_init_help=long ;;
1223 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224 ac_init_help=recursive ;;
1225 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226 ac_init_help=short ;;
1227
1228 -host | --host | --hos | --ho)
1229 ac_prev=host_alias ;;
1230 -host=* | --host=* | --hos=* | --ho=*)
1231 host_alias=$ac_optarg ;;
1232
1233 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234 ac_prev=htmldir ;;
1235 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236 | --ht=*)
1237 htmldir=$ac_optarg ;;
1238
1239 -includedir | --includedir | --includedi | --included | --include \
1240 | --includ | --inclu | --incl | --inc)
1241 ac_prev=includedir ;;
1242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243 | --includ=* | --inclu=* | --incl=* | --inc=*)
1244 includedir=$ac_optarg ;;
1245
1246 -infodir | --infodir | --infodi | --infod | --info | --inf)
1247 ac_prev=infodir ;;
1248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249 infodir=$ac_optarg ;;
1250
1251 -libdir | --libdir | --libdi | --libd)
1252 ac_prev=libdir ;;
1253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254 libdir=$ac_optarg ;;
1255
1256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257 | --libexe | --libex | --libe)
1258 ac_prev=libexecdir ;;
1259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260 | --libexe=* | --libex=* | --libe=*)
1261 libexecdir=$ac_optarg ;;
1262
1263 -localedir | --localedir | --localedi | --localed | --locale)
1264 ac_prev=localedir ;;
1265 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266 localedir=$ac_optarg ;;
1267
1268 -localstatedir | --localstatedir | --localstatedi | --localstated \
1269 | --localstate | --localstat | --localsta | --localst | --locals)
1270 ac_prev=localstatedir ;;
1271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273 localstatedir=$ac_optarg ;;
1274
1275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276 ac_prev=mandir ;;
1277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278 mandir=$ac_optarg ;;
1279
1280 -nfp | --nfp | --nf)
1281 # Obsolete; use --without-fp.
1282 with_fp=no ;;
1283
1284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285 | --no-cr | --no-c | -n)
1286 no_create=yes ;;
1287
1288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290 no_recursion=yes ;;
1291
1292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294 | --oldin | --oldi | --old | --ol | --o)
1295 ac_prev=oldincludedir ;;
1296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299 oldincludedir=$ac_optarg ;;
1300
1301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302 ac_prev=prefix ;;
1303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304 prefix=$ac_optarg ;;
1305
1306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307 | --program-pre | --program-pr | --program-p)
1308 ac_prev=program_prefix ;;
1309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311 program_prefix=$ac_optarg ;;
1312
1313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314 | --program-suf | --program-su | --program-s)
1315 ac_prev=program_suffix ;;
1316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318 program_suffix=$ac_optarg ;;
1319
1320 -program-transform-name | --program-transform-name \
1321 | --program-transform-nam | --program-transform-na \
1322 | --program-transform-n | --program-transform- \
1323 | --program-transform | --program-transfor \
1324 | --program-transfo | --program-transf \
1325 | --program-trans | --program-tran \
1326 | --progr-tra | --program-tr | --program-t)
1327 ac_prev=program_transform_name ;;
1328 -program-transform-name=* | --program-transform-name=* \
1329 | --program-transform-nam=* | --program-transform-na=* \
1330 | --program-transform-n=* | --program-transform-=* \
1331 | --program-transform=* | --program-transfor=* \
1332 | --program-transfo=* | --program-transf=* \
1333 | --program-trans=* | --program-tran=* \
1334 | --progr-tra=* | --program-tr=* | --program-t=*)
1335 program_transform_name=$ac_optarg ;;
1336
1337 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338 ac_prev=pdfdir ;;
1339 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340 pdfdir=$ac_optarg ;;
1341
1342 -psdir | --psdir | --psdi | --psd | --ps)
1343 ac_prev=psdir ;;
1344 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345 psdir=$ac_optarg ;;
1346
1347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348 | -silent | --silent | --silen | --sile | --sil)
1349 silent=yes ;;
1350
1351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352 ac_prev=sbindir ;;
1353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354 | --sbi=* | --sb=*)
1355 sbindir=$ac_optarg ;;
1356
1357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359 | --sharedst | --shareds | --shared | --share | --shar \
1360 | --sha | --sh)
1361 ac_prev=sharedstatedir ;;
1362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365 | --sha=* | --sh=*)
1366 sharedstatedir=$ac_optarg ;;
1367
1368 -site | --site | --sit)
1369 ac_prev=site ;;
1370 -site=* | --site=* | --sit=*)
1371 site=$ac_optarg ;;
1372
1373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374 ac_prev=srcdir ;;
1375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376 srcdir=$ac_optarg ;;
1377
1378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379 | --syscon | --sysco | --sysc | --sys | --sy)
1380 ac_prev=sysconfdir ;;
1381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383 sysconfdir=$ac_optarg ;;
1384
1385 -target | --target | --targe | --targ | --tar | --ta | --t)
1386 ac_prev=target_alias ;;
1387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388 target_alias=$ac_optarg ;;
1389
1390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391 verbose=yes ;;
1392
1393 -version | --version | --versio | --versi | --vers | -V)
1394 ac_init_version=: ;;
1395
1396 -with-* | --with-*)
1397 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1400 as_fn_error $? "invalid package name: $ac_useropt"
1401 ac_useropt_orig=$ac_useropt
1402 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403 case $ac_user_opts in
1404 *"
1405 "with_$ac_useropt"
1406 "*) ;;
1407 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1408 ac_unrecognized_sep=', ';;
1409 esac
1410 eval with_$ac_useropt=\$ac_optarg ;;
1411
1412 -without-* | --without-*)
1413 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1416 as_fn_error $? "invalid package name: $ac_useropt"
1417 ac_useropt_orig=$ac_useropt
1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1420 *"
1421 "with_$ac_useropt"
1422 "*) ;;
1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1424 ac_unrecognized_sep=', ';;
1425 esac
1426 eval with_$ac_useropt=no ;;
1427
1428 --x)
1429 # Obsolete; use --with-x.
1430 with_x=yes ;;
1431
1432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1433 | --x-incl | --x-inc | --x-in | --x-i)
1434 ac_prev=x_includes ;;
1435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1437 x_includes=$ac_optarg ;;
1438
1439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1441 ac_prev=x_libraries ;;
1442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1444 x_libraries=$ac_optarg ;;
1445
1446 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1447 Try \`$0 --help' for more information"
1448 ;;
1449
1450 *=*)
1451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1452 # Reject names that are not valid shell variable names.
1453 case $ac_envvar in #(
1454 '' | [0-9]* | *[!_$as_cr_alnum]* )
1455 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1456 esac
1457 eval $ac_envvar=\$ac_optarg
1458 export $ac_envvar ;;
1459
1460 *)
1461 # FIXME: should be removed in autoconf 3.0.
1462 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1464 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1465 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1466 ;;
1467
1468 esac
1469 done
1470
1471 if test -n "$ac_prev"; then
1472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1473 as_fn_error $? "missing argument to $ac_option"
1474 fi
1475
1476 if test -n "$ac_unrecognized_opts"; then
1477 case $enable_option_checking in
1478 no) ;;
1479 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1480 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1481 esac
1482 fi
1483
1484 # Check all directory arguments for consistency.
1485 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1486 datadir sysconfdir sharedstatedir localstatedir includedir \
1487 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1488 libdir localedir mandir
1489 do
1490 eval ac_val=\$$ac_var
1491 # Remove trailing slashes.
1492 case $ac_val in
1493 */ )
1494 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1495 eval $ac_var=\$ac_val;;
1496 esac
1497 # Be sure to have absolute directory names.
1498 case $ac_val in
1499 [\\/$]* | ?:[\\/]* ) continue;;
1500 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1501 esac
1502 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1503 done
1504
1505 # There might be people who depend on the old broken behavior: `$host'
1506 # used to hold the argument of --host etc.
1507 # FIXME: To remove some day.
1508 build=$build_alias
1509 host=$host_alias
1510 target=$target_alias
1511
1512 # FIXME: To remove some day.
1513 if test "x$host_alias" != x; then
1514 if test "x$build_alias" = x; then
1515 cross_compiling=maybe
1516 elif test "x$build_alias" != "x$host_alias"; then
1517 cross_compiling=yes
1518 fi
1519 fi
1520
1521 ac_tool_prefix=
1522 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1523
1524 test "$silent" = yes && exec 6>/dev/null
1525
1526
1527 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1528 ac_ls_di=`ls -di .` &&
1529 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1530 as_fn_error $? "working directory cannot be determined"
1531 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1532 as_fn_error $? "pwd does not report name of working directory"
1533
1534
1535 # Find the source files, if location was not specified.
1536 if test -z "$srcdir"; then
1537 ac_srcdir_defaulted=yes
1538 # Try the directory containing this script, then the parent directory.
1539 ac_confdir=`$as_dirname -- "$as_myself" ||
1540 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1541 X"$as_myself" : 'X\(//\)[^/]' \| \
1542 X"$as_myself" : 'X\(//\)$' \| \
1543 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1544 $as_echo X"$as_myself" |
1545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1546 s//\1/
1547 q
1548 }
1549 /^X\(\/\/\)[^/].*/{
1550 s//\1/
1551 q
1552 }
1553 /^X\(\/\/\)$/{
1554 s//\1/
1555 q
1556 }
1557 /^X\(\/\).*/{
1558 s//\1/
1559 q
1560 }
1561 s/.*/./; q'`
1562 srcdir=$ac_confdir
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1564 srcdir=..
1565 fi
1566 else
1567 ac_srcdir_defaulted=no
1568 fi
1569 if test ! -r "$srcdir/$ac_unique_file"; then
1570 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1571 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1576 pwd)`
1577 # When building in place, set srcdir=.
1578 if test "$ac_abs_confdir" = "$ac_pwd"; then
1579 srcdir=.
1580 fi
1581 # Remove unnecessary trailing slashes from srcdir.
1582 # Double slashes in file names in object file debugging info
1583 # mess up M-x gdb in Emacs.
1584 case $srcdir in
1585 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1586 esac
1587 for ac_var in $ac_precious_vars; do
1588 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_env_${ac_var}_value=\$${ac_var}
1590 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1591 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1592 done
1593
1594 #
1595 # Report the --help message.
1596 #
1597 if test "$ac_init_help" = "long"; then
1598 # Omit some internal or obsolete options to make the list less imposing.
1599 # This message is too long to be a string in the A/UX 3.1 sh.
1600 cat <<_ACEOF
1601 \`configure' configures this package to adapt to many kinds of systems.
1602
1603 Usage: $0 [OPTION]... [VAR=VALUE]...
1604
1605 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1606 VAR=VALUE. See below for descriptions of some of the useful variables.
1607
1608 Defaults for the options are specified in brackets.
1609
1610 Configuration:
1611 -h, --help display this help and exit
1612 --help=short display options specific to this package
1613 --help=recursive display the short help of all the included packages
1614 -V, --version display version information and exit
1615 -q, --quiet, --silent do not print \`checking ...' messages
1616 --cache-file=FILE cache test results in FILE [disabled]
1617 -C, --config-cache alias for \`--cache-file=config.cache'
1618 -n, --no-create do not create output files
1619 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1620
1621 Installation directories:
1622 --prefix=PREFIX install architecture-independent files in PREFIX
1623 [$ac_default_prefix]
1624 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1625 [PREFIX]
1626
1627 By default, \`make install' will install all the files in
1628 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1629 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1630 for instance \`--prefix=\$HOME'.
1631
1632 For better control, use the options below.
1633
1634 Fine tuning of the installation directories:
1635 --bindir=DIR user executables [EPREFIX/bin]
1636 --sbindir=DIR system admin executables [EPREFIX/sbin]
1637 --libexecdir=DIR program executables [EPREFIX/libexec]
1638 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1639 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1640 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1641 --libdir=DIR object code libraries [EPREFIX/lib]
1642 --includedir=DIR C header files [PREFIX/include]
1643 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1644 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1645 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1646 --infodir=DIR info documentation [DATAROOTDIR/info]
1647 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1648 --mandir=DIR man documentation [DATAROOTDIR/man]
1649 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1650 --htmldir=DIR html documentation [DOCDIR]
1651 --dvidir=DIR dvi documentation [DOCDIR]
1652 --pdfdir=DIR pdf documentation [DOCDIR]
1653 --psdir=DIR ps documentation [DOCDIR]
1654 _ACEOF
1655
1656 cat <<\_ACEOF
1657
1658 Program names:
1659 --program-prefix=PREFIX prepend PREFIX to installed program names
1660 --program-suffix=SUFFIX append SUFFIX to installed program names
1661 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1662
1663 System types:
1664 --build=BUILD configure for building on BUILD [guessed]
1665 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1666 --target=TARGET configure for building compilers for TARGET [HOST]
1667 _ACEOF
1668 fi
1669
1670 if test -n "$ac_init_help"; then
1671
1672 cat <<\_ACEOF
1673
1674 Optional Features:
1675 --disable-option-checking ignore unrecognized --enable/--with options
1676 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1677 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1678 --enable-generated-files-in-srcdir
1679 put copies of generated files in source dir intended
1680 for creating source tarballs for users without
1681 texinfo bison or flex
1682 --disable-largefile omit support for large files
1683 --disable-build-format-warnings
1684 don't use -Wformat while building GCC
1685 --enable-werror-always enable -Werror despite compiler version
1686 --enable-checking[=LIST]
1687 enable expensive run-time checks. With LIST, enable
1688 only specific categories of checks. Categories are:
1689 yes,no,all,none,release. Flags are:
1690 assert,df,extra,fold,gc,gcac,gimple,misc,
1691 rtlflag,rtl,runtime,tree,valgrind,types
1692 --enable-coverage[=LEVEL]
1693 enable compiler's code coverage collection. Use to
1694 measure compiler performance and locate unused parts
1695 of the compiler. With LEVEL, specify optimization.
1696 Values are opt, noopt, default is noopt
1697 --enable-gather-detailed-mem-stats
1698 enable detailed memory allocation stats gathering
1699 --enable-valgrind-annotations
1700 enable valgrind runtime interaction
1701 --enable-multilib enable library support for multiple ABIs
1702 --enable-multiarch enable support for multiarch paths
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid'
1706 or 'dpd' choses which decimal floating point format
1707 to use
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1710 package
1711 --enable-tls enable or disable generation of tls code overriding
1712 the assembler check for tls support
1713 --enable-vtable-verify enable vtable verification feature
1714 --disable-analyzer disable -fanalyzer static analyzer
1715 --enable-objc-gc enable the use of Boehm's garbage collector with the
1716 GNU Objective-C runtime
1717 --disable-shared don't provide a shared libgcc
1718 --disable-gcov don't provide libgcov and related host tools
1719 --enable-languages=LIST specify which front-ends to build
1720 --disable-rpath do not hardcode runtime library paths
1721 --enable-sjlj-exceptions
1722 arrange to use setjmp/longjmp exception handling
1723 --enable-secureplt enable -msecure-plt by default for PowerPC
1724 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1725 Default to platform configuration
1726 --enable-large-address-aware
1727 Link mingw executables with --large-address-aware
1728 --enable-leading-mingw64-underscores
1729 enable leading underscores on 64 bit mingw targets
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1732 --disable-win32-registry
1733 disable lookup of installation paths in the Registry
1734 on Windows hosts
1735 --enable-win32-registry enable registry lookup (default)
1736 --enable-win32-registry=KEY
1737 use KEY instead of GCC version as the last portion
1738 of the registry key
1739 --enable-shared[=PKGS] build shared libraries [default=yes]
1740 --enable-static[=PKGS] build static libraries [default=yes]
1741 --enable-fast-install[=PKGS]
1742 optimize for fast installation [default=yes]
1743 --disable-libtool-lock avoid locking (might break parallel builds)
1744 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1745 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1746 --enable-gnu-indirect-function
1747 enable the use of the @gnu_indirect_function to
1748 glibc systems
1749 --enable-initfini-array use .init_array/.fini_array sections
1750 --enable-comdat enable COMDAT group support
1751 --enable-newlib-nano-formatted-io
1752 Use nano version formatted IO
1753
1754 --enable-standard-branch-protection
1755 enable Branch Target Identification Mechanism and
1756 Return Address Signing by default for AArch64
1757 --disable-standard-branch-protection
1758 disable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1760
1761
1762 --enable-fix-cortex-a53-835769
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 835769 by default
1765 --disable-fix-cortex-a53-835769
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 835769 by default
1768
1769
1770 --enable-fix-cortex-a53-843419
1771 enable workaround for AArch64 Cortex-A53 erratum
1772 843419 by default
1773 --disable-fix-cortex-a53-843419
1774 disable workaround for AArch64 Cortex-A53 erratum
1775 843419 by default
1776
1777 --enable-gnu-unique-object
1778 enable the use of the @gnu_unique_object ELF
1779 extension on glibc systems
1780 --enable-linker-build-id
1781 compiler will always pass --build-id to linker
1782 --enable-libssp enable linking against libssp
1783 --enable-default-ssp enable Stack Smashing Protection as default
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful (and
1786 sometimes confusing) to the casual installer
1787 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1788 thrashing on the build machine
1789 --enable-link-serialization
1790 avoid linking multiple GCC front-ends at once using
1791 make dependencies to avoid thrashing on the build
1792 machine
1793 --enable-version-specific-runtime-libs
1794 specify that runtime libraries should be installed
1795 in a compiler-specific directory
1796 --enable-plugin enable plugin support
1797 --enable-host-shared build host code as shared libraries
1798 --enable-host-pie build host code as PIE
1799 --enable-host-bind-now link host code as BIND_NOW
1800 --disable-libquadmath-support
1801 disable libquadmath support for Fortran
1802 --enable-default-pie enable Position Independent Executable as default
1803 --enable-cet enable Intel CET in host libraries [default=auto]
1804 --enable-s390-excess-float-precision
1805 on s390 targets, evaluate float with double
1806 precision when in standards-conforming mode
1807
1808 Optional Packages:
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-build-libsubdir=DIR Directory where to find libraries for build system
1812 --with-local-prefix=DIR specifies directory to put local include
1813 --with-native-system-header-dir=dir
1814 use dir as the directory to look for standard
1815 system header files in. Defaults to /usr/include.
1816 --with-build-sysroot=sysroot
1817 use sysroot as the system root during the build
1818 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1819 --with-gxx-include-dir=DIR
1820 specifies directory to put g++ header files
1821 --with-gxx-libcxx-include-dir=DIR
1822 specifies directory to find libc++ header files
1823 --with-cpp-install-dir=DIR
1824 install the user visible C preprocessor in DIR
1825 (relative to PREFIX) as well as PREFIX/bin
1826 --with-gnu-ld arrange to work with GNU ld
1827 --with-ld arrange to use the specified ld (full pathname)
1828 --with-demangler-in-ld try to use demangler in GNU ld
1829 --with-dsymutil arrange to use the specified dsymutil (full
1830 pathname)
1831 --with-gnu-as arrange to work with GNU as
1832 --with-as arrange to use the specified as (full pathname)
1833 --with-stack-clash-protection-guard-size=size
1834 Set the default stack clash protection guard size
1835 for specific targets as a power of two in bytes.
1836 --with-matchpd-partitions=num
1837 Set the number of partitions to make for gimple and
1838 generic when splitting match.pd. [default=10]
1839 --with-dwarf2 force the default debug format to be DWARF 2 (or
1840 later)
1841 --with-specs=SPECS add SPECS to driver command-line processing
1842 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1843 --with-bugurl=URL Direct users to URL to report a bug
1844 --with-documentation-root-url=URL
1845 Root for documentation URLs
1846 --with-changes-root-url=URL
1847 Root for GCC changes URLs
1848 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1849 SH and x86-64 only)
1850 --with-multilib-generator
1851 Multi-libs configuration string (RISC-V only)
1852 --with-zstd=PATH specify prefix directory for installed zstd library.
1853 Equivalent to --with-zstd-include=PATH/include plus
1854 --with-zstd-lib=PATH/lib
1855 --with-zstd-include=PATH
1856 specify directory for installed zstd include files
1857 --with-zstd-lib=PATH specify directory for the installed zstd library
1858 --with-gnu-ld assume the C compiler uses GNU ld default=no
1859 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1860 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1861 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1862 --with-gcc-major-version-only
1863 use only GCC major number in filesystem paths
1864 --with-pic try to use only PIC/non-PIC objects [default=use
1865 both]
1866 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1867 --with-plugin-ld=[ARG] specify the plugin linker
1868 --with-glibc-version=M.N
1869 assume GCC used with glibc version M.N or later
1870 --with-long-double-128 use 128-bit long double by default
1871 --with-long-double-format={ieee,ibm}
1872 Specify whether PowerPC long double uses IEEE or IBM format
1873
1874 --with-gc={page,zone} this option is not supported anymore. It used to
1875 choose the garbage collection mechanism to use with
1876 the compiler
1877 --with-system-zlib use installed libz
1878 --with-linker-hash-style={sysv,gnu,both}
1879 specify the linker hash style
1880 --with-diagnostics-color={never,auto,auto-if-env,always}
1881 specify the default of -fdiagnostics-color option
1882 auto-if-env stands for -fdiagnostics-color=auto if
1883 GCC_COLOR environment variable is present and
1884 -fdiagnostics-color=never otherwise
1885 --with-diagnostics-urls={never,auto,auto-if-env,always}
1886 specify the default of -fdiagnostics-urls option
1887 auto-if-env stands for -fdiagnostics-urls=auto if
1888 GCC_URLS or TERM_URLS environment variable is
1889 present and -fdiagnostics-urls=never otherwise
1890
1891 Some influential environment variables:
1892 CC C compiler command
1893 CFLAGS C compiler flags
1894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1895 nonstandard directory <lib dir>
1896 LIBS libraries to pass to the linker, e.g. -l<library>
1897 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1898 you have headers in a nonstandard directory <include dir>
1899 CXX C++ compiler command
1900 CXXFLAGS C++ compiler flags
1901 CXXCPP C++ preprocessor
1902 CPP C preprocessor
1903 GMPLIBS How to link GMP
1904 GMPINC How to find GMP include files
1905 ISLLIBS How to link isl
1906 ISLINC How to find isl include files
1907
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1910
1911 Report bugs to the package provider.
1912 _ACEOF
1913 ac_status=$?
1914 fi
1915
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1921 continue
1922 ac_builddir=.
1923
1924 case "$ac_dir" in
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 *)
1927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1933 esac ;;
1934 esac
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1939
1940 case $srcdir in
1941 .) # We are building in place.
1942 ac_srcdir=.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1949 *) # Relative name.
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 esac
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1959 echo &&
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1962 echo &&
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1964 else
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966 fi || ac_status=$?
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1968 done
1969 fi
1970
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1973 cat <<\_ACEOF
1974 configure
1975 generated by GNU Autoconf 2.69
1976
1977 Copyright (C) 2012 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1980 _ACEOF
1981 exit
1982 fi
1983
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1987
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020 fi
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_compile
2025
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext
2033 if { { ac_try="$ac_compile"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2041 ac_status=$?
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2046 fi
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=1
2058 fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2061
2062 } # ac_fn_cxx_try_compile
2063
2064 # ac_fn_cxx_try_cpp LINENO
2065 # ------------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_cpp ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2083 fi
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i && {
2086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 }; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094 ac_retval=1
2095 fi
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099 } # ac_fn_cxx_try_cpp
2100
2101 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2104 # the include files in INCLUDES and setting the cache variable VAR
2105 # accordingly.
2106 ac_fn_cxx_check_header_mongrel ()
2107 {
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if eval \${$3+:} false; then :
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 fi
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 else
2119 # Is the header compilable?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2121 $as_echo_n "checking $2 usability... " >&6; }
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 $4
2125 #include <$2>
2126 _ACEOF
2127 if ac_fn_cxx_try_compile "$LINENO"; then :
2128 ac_header_compiler=yes
2129 else
2130 ac_header_compiler=no
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2134 $as_echo "$ac_header_compiler" >&6; }
2135
2136 # Is the header present?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2138 $as_echo_n "checking $2 presence... " >&6; }
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_cxx_try_cpp "$LINENO"; then :
2144 ac_header_preproc=yes
2145 else
2146 ac_header_preproc=no
2147 fi
2148 rm -f conftest.err conftest.i conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2150 $as_echo "$ac_header_preproc" >&6; }
2151
2152 # So? What about this header?
2153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2154 yes:no: )
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2156 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 ;;
2160 no:yes:* )
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2162 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2164 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2166 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2168 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171 ;;
2172 esac
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 eval "$3=\$ac_header_compiler"
2179 fi
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 fi
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185
2186 } # ac_fn_cxx_check_header_mongrel
2187
2188 # ac_fn_cxx_try_run LINENO
2189 # ------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2191 # that executables *can* be run.
2192 ac_fn_cxx_try_run ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 if { { ac_try="$ac_link"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2206 { { case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_try") 2>&5
2213 ac_status=$?
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; }; }; then :
2216 ac_retval=0
2217 else
2218 $as_echo "$as_me: program exited with status $ac_status" >&5
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 ac_retval=$ac_status
2223 fi
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2227
2228 } # ac_fn_cxx_try_run
2229
2230 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2231 # ---------------------------------------------------------
2232 # Tests whether HEADER exists and can be compiled using the include files in
2233 # INCLUDES, setting the cache variable VAR accordingly.
2234 ac_fn_cxx_check_header_compile ()
2235 {
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 #include <$2>
2246 _ACEOF
2247 if ac_fn_cxx_try_compile "$LINENO"; then :
2248 eval "$3=yes"
2249 else
2250 eval "$3=no"
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259 } # ac_fn_cxx_check_header_compile
2260
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_c_try_cpp ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275 ac_status=$?
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2280 fi
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=1
2292 fi
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_try_cpp
2297
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2302 # computed
2303 ac_fn_cxx_compute_int ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if test "$cross_compiling" = yes; then
2307 # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $4
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2323 ac_lo=0 ac_mid=0
2324 while :; do
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 $4
2328 int
2329 main ()
2330 {
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2332 test_array [0] = 0;
2333 return test_array [0];
2334
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340 ac_hi=$ac_mid; break
2341 else
2342 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343 if test $ac_lo -le $ac_mid; then
2344 ac_lo= ac_hi=
2345 break
2346 fi
2347 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 done
2351 else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 $4
2355 int
2356 main ()
2357 {
2358 static int test_array [1 - 2 * !(($2) < 0)];
2359 test_array [0] = 0;
2360 return test_array [0];
2361
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 ac_hi=-1 ac_mid=-1
2368 while :; do
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 $4
2372 int
2373 main ()
2374 {
2375 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2378
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_lo=$ac_mid; break
2385 else
2386 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387 if test $ac_mid -le $ac_hi; then
2388 ac_lo= ac_hi=
2389 break
2390 fi
2391 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 else
2396 ac_lo= ac_hi=
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2411 test_array [0] = 0;
2412 return test_array [0];
2413
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 ac_hi=$ac_mid
2420 else
2421 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425 case $ac_lo in #((
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2427 '') ac_retval=1 ;;
2428 esac
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $4
2433 static long int longval () { return $2; }
2434 static unsigned long int ulongval () { return $2; }
2435 #include <stdio.h>
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440
2441 FILE *f = fopen ("conftest.val", "w");
2442 if (! f)
2443 return 1;
2444 if (($2) < 0)
2445 {
2446 long int i = longval ();
2447 if (i != ($2))
2448 return 1;
2449 fprintf (f, "%ld", i);
2450 }
2451 else
2452 {
2453 unsigned long int i = ulongval ();
2454 if (i != ($2))
2455 return 1;
2456 fprintf (f, "%lu", i);
2457 }
2458 /* Do not output a trailing newline, as this causes \r\n confusion
2459 on some platforms. */
2460 return ferror (f) || fclose (f) != 0;
2461
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2468 else
2469 ac_retval=1
2470 fi
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472 conftest.$ac_objext conftest.beam conftest.$ac_ext
2473 rm -f conftest.val
2474
2475 fi
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2478
2479 } # ac_fn_cxx_compute_int
2480
2481 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2482 # ---------------------------------------------
2483 # Tests whether TYPE exists after having included INCLUDES, setting cache
2484 # variable VAR accordingly.
2485 ac_fn_cxx_check_type ()
2486 {
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 eval "$3=no"
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2496 $4
2497 int
2498 main ()
2499 {
2500 if (sizeof ($2))
2501 return 0;
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 $4
2510 int
2511 main ()
2512 {
2513 if (sizeof (($2)))
2514 return 0;
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520
2521 else
2522 eval "$3=yes"
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 fi
2528 eval ac_res=\$$3
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532
2533 } # ac_fn_cxx_check_type
2534
2535 # ac_fn_c_find_intX_t LINENO BITS VAR
2536 # -----------------------------------
2537 # Finds a signed integer type with width BITS, setting cache variable VAR
2538 # accordingly.
2539 ac_fn_c_find_intX_t ()
2540 {
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2543 $as_echo_n "checking for int$2_t... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 eval "$3=no"
2548 # Order is important - never check a type that is potentially smaller
2549 # than half of the expected target width.
2550 for ac_type in int$2_t 'int' 'long int' \
2551 'long long int' 'short int' 'signed char'; do
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 $ac_includes_default
2555 enum { N = $2 / 2 - 1 };
2556 int
2557 main ()
2558 {
2559 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2560 test_array [0] = 0;
2561 return test_array [0];
2562
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_cxx_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $ac_includes_default
2571 enum { N = $2 / 2 - 1 };
2572 int
2573 main ()
2574 {
2575 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2576 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2577 test_array [0] = 0;
2578 return test_array [0];
2579
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_cxx_try_compile "$LINENO"; then :
2585
2586 else
2587 case $ac_type in #(
2588 int$2_t) :
2589 eval "$3=yes" ;; #(
2590 *) :
2591 eval "$3=\$ac_type" ;;
2592 esac
2593 fi
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 if eval test \"x\$"$3"\" = x"no"; then :
2598
2599 else
2600 break
2601 fi
2602 done
2603 fi
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608
2609 } # ac_fn_c_find_intX_t
2610
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2615 {
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2631 fi
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 test -x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 ac_retval=1
2646 fi
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 as_fn_set_status $ac_retval
2654
2655 } # ac_fn_cxx_try_link
2656
2657 # ac_fn_c_find_uintX_t LINENO BITS VAR
2658 # ------------------------------------
2659 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2660 # accordingly.
2661 ac_fn_c_find_uintX_t ()
2662 {
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2665 $as_echo_n "checking for uint$2_t... " >&6; }
2666 if eval \${$3+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 eval "$3=no"
2670 # Order is important - never check a type that is potentially smaller
2671 # than half of the expected target width.
2672 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2673 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $ac_includes_default
2677 int
2678 main ()
2679 {
2680 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2681 test_array [0] = 0;
2682 return test_array [0];
2683
2684 ;
2685 return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_cxx_try_compile "$LINENO"; then :
2689 case $ac_type in #(
2690 uint$2_t) :
2691 eval "$3=yes" ;; #(
2692 *) :
2693 eval "$3=\$ac_type" ;;
2694 esac
2695 fi
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 if eval test \"x\$"$3"\" = x"no"; then :
2698
2699 else
2700 break
2701 fi
2702 done
2703 fi
2704 eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708
2709 } # ac_fn_c_find_uintX_t
2710
2711 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2712 # ------------------------------------------------
2713 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2714 ac_fn_cxx_check_header_preproc ()
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 $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \${$3+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2724 #include <$2>
2725 _ACEOF
2726 if ac_fn_cxx_try_cpp "$LINENO"; then :
2727 eval "$3=yes"
2728 else
2729 eval "$3=no"
2730 fi
2731 rm -f conftest.err conftest.i conftest.$ac_ext
2732 fi
2733 eval ac_res=\$$3
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2737
2738 } # ac_fn_cxx_check_header_preproc
2739
2740 # ac_fn_cxx_check_func LINENO FUNC VAR
2741 # ------------------------------------
2742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2743 ac_fn_cxx_check_func ()
2744 {
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2755 #define $2 innocuous_$2
2756
2757 /* System header to define __stub macros and hopefully few prototypes,
2758 which can conflict with char $2 (); below.
2759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 <limits.h> exists even on freestanding compilers. */
2761
2762 #ifdef __STDC__
2763 # include <limits.h>
2764 #else
2765 # include <assert.h>
2766 #endif
2767
2768 #undef $2
2769
2770 /* Override any GCC internal prototype to avoid an error.
2771 Use char because int might match the return type of a GCC
2772 builtin and then its argument prototype would still apply. */
2773 #ifdef __cplusplus
2774 extern "C"
2775 #endif
2776 char $2 ();
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined __stub_$2 || defined __stub___$2
2781 choke me
2782 #endif
2783
2784 int
2785 main ()
2786 {
2787 return $2 ();
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_cxx_try_link "$LINENO"; then :
2793 eval "$3=yes"
2794 else
2795 eval "$3=no"
2796 fi
2797 rm -f core conftest.err conftest.$ac_objext \
2798 conftest$ac_exeext conftest.$ac_ext
2799 fi
2800 eval ac_res=\$$3
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2804
2805 } # ac_fn_cxx_check_func
2806
2807 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2808 # -----------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2810 # accordingly.
2811 ac_fn_cxx_check_decl ()
2812 {
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 as_decl_name=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2823 $4
2824 int
2825 main ()
2826 {
2827 #ifndef $as_decl_name
2828 #ifdef __cplusplus
2829 (void) $as_decl_use;
2830 #else
2831 (void) $as_decl_name;
2832 #endif
2833 #endif
2834
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840 eval "$3=yes"
2841 else
2842 eval "$3=no"
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 eval ac_res=\$$3
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850
2851 } # ac_fn_cxx_check_decl
2852
2853 # ac_fn_c_try_link LINENO
2854 # -----------------------
2855 # Try to link conftest.$ac_ext, and return whether this succeeded.
2856 ac_fn_c_try_link ()
2857 {
2858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { { ac_try="$ac_link"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link") 2>conftest.err
2868 ac_status=$?
2869 if test -s conftest.err; then
2870 grep -v '^ *+' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 mv -f conftest.er1 conftest.err
2873 fi
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext && {
2879 test "$cross_compiling" = yes ||
2880 test -x conftest$ac_exeext
2881 }; then :
2882 ac_retval=0
2883 else
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887 ac_retval=1
2888 fi
2889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2891 # interfere with the next link command; also delete a directory that is
2892 # left behind by Apple's compiler. We do this before executing the actions.
2893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2896
2897 } # ac_fn_c_try_link
2898
2899 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2900 # ----------------------------------------------
2901 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2902 ac_fn_c_check_header_preproc ()
2903 {
2904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2906 $as_echo_n "checking for $2... " >&6; }
2907 if eval \${$3+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912 #include <$2>
2913 _ACEOF
2914 if ac_fn_c_try_cpp "$LINENO"; then :
2915 eval "$3=yes"
2916 else
2917 eval "$3=no"
2918 fi
2919 rm -f conftest.err conftest.i conftest.$ac_ext
2920 fi
2921 eval ac_res=\$$3
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2925
2926 } # ac_fn_c_check_header_preproc
2927
2928 # ac_fn_c_check_func LINENO FUNC VAR
2929 # ----------------------------------
2930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2931 ac_fn_c_check_func ()
2932 {
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935 $as_echo_n "checking for $2... " >&6; }
2936 if eval \${$3+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2943 #define $2 innocuous_$2
2944
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char $2 (); below.
2947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 <limits.h> exists even on freestanding compilers. */
2949
2950 #ifdef __STDC__
2951 # include <limits.h>
2952 #else
2953 # include <assert.h>
2954 #endif
2955
2956 #undef $2
2957
2958 /* Override any GCC internal prototype to avoid an error.
2959 Use char because int might match the return type of a GCC
2960 builtin and then its argument prototype would still apply. */
2961 #ifdef __cplusplus
2962 extern "C"
2963 #endif
2964 char $2 ();
2965 /* The GNU C library defines this for functions which it implements
2966 to always fail with ENOSYS. Some functions are actually named
2967 something starting with __ and the normal name is an alias. */
2968 #if defined __stub_$2 || defined __stub___$2
2969 choke me
2970 #endif
2971
2972 int
2973 main ()
2974 {
2975 return $2 ();
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 if ac_fn_c_try_link "$LINENO"; then :
2981 eval "$3=yes"
2982 else
2983 eval "$3=no"
2984 fi
2985 rm -f core conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2987 fi
2988 eval ac_res=\$$3
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990 $as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992
2993 } # ac_fn_c_check_func
2994 cat >config.log <<_ACEOF
2995 This file contains any messages produced by compilers while
2996 running configure, to aid debugging if configure makes a mistake.
2997
2998 It was created by $as_me, which was
2999 generated by GNU Autoconf 2.69. Invocation command line was
3000
3001 $ $0 $@
3002
3003 _ACEOF
3004 exec 5>>config.log
3005 {
3006 cat <<_ASUNAME
3007 ## --------- ##
3008 ## Platform. ##
3009 ## --------- ##
3010
3011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3016
3017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3019
3020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3027
3028 _ASUNAME
3029
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 $as_echo "PATH: $as_dir"
3036 done
3037 IFS=$as_save_IFS
3038
3039 } >&5
3040
3041 cat >&5 <<_ACEOF
3042
3043
3044 ## ----------- ##
3045 ## Core tests. ##
3046 ## ----------- ##
3047
3048 _ACEOF
3049
3050
3051 # Keep a trace of the command line.
3052 # Strip out --no-create and --no-recursion so they do not pile up.
3053 # Strip out --silent because we don't want to record it for future runs.
3054 # Also quote any args containing shell meta-characters.
3055 # Make two passes to allow for proper duplicate-argument suppression.
3056 ac_configure_args=
3057 ac_configure_args0=
3058 ac_configure_args1=
3059 ac_must_keep_next=false
3060 for ac_pass in 1 2
3061 do
3062 for ac_arg
3063 do
3064 case $ac_arg in
3065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3067 | -silent | --silent | --silen | --sile | --sil)
3068 continue ;;
3069 *\'*)
3070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3071 esac
3072 case $ac_pass in
3073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3074 2)
3075 as_fn_append ac_configure_args1 " '$ac_arg'"
3076 if test $ac_must_keep_next = true; then
3077 ac_must_keep_next=false # Got value, back to normal.
3078 else
3079 case $ac_arg in
3080 *=* | --config-cache | -C | -disable-* | --disable-* \
3081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3083 | -with-* | --with-* | -without-* | --without-* | --x)
3084 case "$ac_configure_args0 " in
3085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3086 esac
3087 ;;
3088 -* ) ac_must_keep_next=true ;;
3089 esac
3090 fi
3091 as_fn_append ac_configure_args " '$ac_arg'"
3092 ;;
3093 esac
3094 done
3095 done
3096 { ac_configure_args0=; unset ac_configure_args0;}
3097 { ac_configure_args1=; unset ac_configure_args1;}
3098
3099 # When interrupted or exit'd, cleanup temporary files, and complete
3100 # config.log. We remove comments because anyway the quotes in there
3101 # would cause problems or look ugly.
3102 # WARNING: Use '\'' to represent an apostrophe within the trap.
3103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3104 trap 'exit_status=$?
3105 # Save into config.log some information that might help in debugging.
3106 {
3107 echo
3108
3109 $as_echo "## ---------------- ##
3110 ## Cache variables. ##
3111 ## ---------------- ##"
3112 echo
3113 # The following way of writing the cache mishandles newlines in values,
3114 (
3115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3116 eval ac_val=\$$ac_var
3117 case $ac_val in #(
3118 *${as_nl}*)
3119 case $ac_var in #(
3120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3122 esac
3123 case $ac_var in #(
3124 _ | IFS | as_nl) ;; #(
3125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3126 *) { eval $ac_var=; unset $ac_var;} ;;
3127 esac ;;
3128 esac
3129 done
3130 (set) 2>&1 |
3131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3132 *${as_nl}ac_space=\ *)
3133 sed -n \
3134 "s/'\''/'\''\\\\'\'''\''/g;
3135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3136 ;; #(
3137 *)
3138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3139 ;;
3140 esac |
3141 sort
3142 )
3143 echo
3144
3145 $as_echo "## ----------------- ##
3146 ## Output variables. ##
3147 ## ----------------- ##"
3148 echo
3149 for ac_var in $ac_subst_vars
3150 do
3151 eval ac_val=\$$ac_var
3152 case $ac_val in
3153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3154 esac
3155 $as_echo "$ac_var='\''$ac_val'\''"
3156 done | sort
3157 echo
3158
3159 if test -n "$ac_subst_files"; then
3160 $as_echo "## ------------------- ##
3161 ## File substitutions. ##
3162 ## ------------------- ##"
3163 echo
3164 for ac_var in $ac_subst_files
3165 do
3166 eval ac_val=\$$ac_var
3167 case $ac_val in
3168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3169 esac
3170 $as_echo "$ac_var='\''$ac_val'\''"
3171 done | sort
3172 echo
3173 fi
3174
3175 if test -s confdefs.h; then
3176 $as_echo "## ----------- ##
3177 ## confdefs.h. ##
3178 ## ----------- ##"
3179 echo
3180 cat confdefs.h
3181 echo
3182 fi
3183 test "$ac_signal" != 0 &&
3184 $as_echo "$as_me: caught signal $ac_signal"
3185 $as_echo "$as_me: exit $exit_status"
3186 } >&5
3187 rm -f core *.core core.conftest.* &&
3188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3189 exit $exit_status
3190 ' 0
3191 for ac_signal in 1 2 13 15; do
3192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3193 done
3194 ac_signal=0
3195
3196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3197 rm -f -r conftest* confdefs.h
3198
3199 $as_echo "/* confdefs.h */" > confdefs.h
3200
3201 # Predefined preprocessor variables.
3202
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_NAME "$PACKAGE_NAME"
3205 _ACEOF
3206
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3209 _ACEOF
3210
3211 cat >>confdefs.h <<_ACEOF
3212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3213 _ACEOF
3214
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE_STRING "$PACKAGE_STRING"
3217 _ACEOF
3218
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3221 _ACEOF
3222
3223 cat >>confdefs.h <<_ACEOF
3224 #define PACKAGE_URL "$PACKAGE_URL"
3225 _ACEOF
3226
3227
3228 # Let the site file select an alternate cache file if it wants to.
3229 # Prefer an explicitly selected file to automatically selected ones.
3230 ac_site_file1=NONE
3231 ac_site_file2=NONE
3232 if test -n "$CONFIG_SITE"; then
3233 # We do not want a PATH search for config.site.
3234 case $CONFIG_SITE in #((
3235 -*) ac_site_file1=./$CONFIG_SITE;;
3236 */*) ac_site_file1=$CONFIG_SITE;;
3237 *) ac_site_file1=./$CONFIG_SITE;;
3238 esac
3239 elif test "x$prefix" != xNONE; then
3240 ac_site_file1=$prefix/share/config.site
3241 ac_site_file2=$prefix/etc/config.site
3242 else
3243 ac_site_file1=$ac_default_prefix/share/config.site
3244 ac_site_file2=$ac_default_prefix/etc/config.site
3245 fi
3246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3247 do
3248 test "x$ac_site_file" = xNONE && continue
3249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3252 sed 's/^/| /' "$ac_site_file" >&5
3253 . "$ac_site_file" \
3254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "failed to load site script $ac_site_file
3257 See \`config.log' for more details" "$LINENO" 5; }
3258 fi
3259 done
3260
3261 if test -r "$cache_file"; then
3262 # Some versions of bash will fail to source /dev/null (special files
3263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3266 $as_echo "$as_me: loading cache $cache_file" >&6;}
3267 case $cache_file in
3268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3269 *) . "./$cache_file";;
3270 esac
3271 fi
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3274 $as_echo "$as_me: creating cache $cache_file" >&6;}
3275 >$cache_file
3276 fi
3277
3278 # Check that the precious variables saved in the cache have kept the same
3279 # value.
3280 ac_cache_corrupted=false
3281 for ac_var in $ac_precious_vars; do
3282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3283 eval ac_new_set=\$ac_env_${ac_var}_set
3284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3285 eval ac_new_val=\$ac_env_${ac_var}_value
3286 case $ac_old_set,$ac_new_set in
3287 set,)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3290 ac_cache_corrupted=: ;;
3291 ,set)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3294 ac_cache_corrupted=: ;;
3295 ,);;
3296 *)
3297 if test "x$ac_old_val" != "x$ac_new_val"; then
3298 # differences in whitespace do not lead to failure.
3299 ac_old_val_w=`echo x $ac_old_val`
3300 ac_new_val_w=`echo x $ac_new_val`
3301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3304 ac_cache_corrupted=:
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3308 eval $ac_var=\$ac_old_val
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3314 fi;;
3315 esac
3316 # Pass precious variables to config.status.
3317 if test "$ac_new_set" = set; then
3318 case $ac_new_val in
3319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3320 *) ac_arg=$ac_var=$ac_new_val ;;
3321 esac
3322 case " $ac_configure_args " in
3323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3325 esac
3326 fi
3327 done
3328 if $ac_cache_corrupted; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3334 fi
3335 ## -------------------- ##
3336 ## Main body of script. ##
3337 ## -------------------- ##
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344
3345
3346
3347
3348
3349
3350
3351 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3352
3353
3354 gcc_version=`cat $srcdir/BASE-VER`
3355
3356 # Determine the host, build, and target systems
3357 ac_aux_dir=
3358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3359 if test -f "$ac_dir/install-sh"; then
3360 ac_aux_dir=$ac_dir
3361 ac_install_sh="$ac_aux_dir/install-sh -c"
3362 break
3363 elif test -f "$ac_dir/install.sh"; then
3364 ac_aux_dir=$ac_dir
3365 ac_install_sh="$ac_aux_dir/install.sh -c"
3366 break
3367 elif test -f "$ac_dir/shtool"; then
3368 ac_aux_dir=$ac_dir
3369 ac_install_sh="$ac_aux_dir/shtool install -c"
3370 break
3371 fi
3372 done
3373 if test -z "$ac_aux_dir"; then
3374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3375 fi
3376
3377 # These three variables are undocumented and unsupported,
3378 # and are intended to be withdrawn in a future Autoconf release.
3379 # They can cause serious problems if a builder's source tree is in a directory
3380 # whose full name contains unusual characters.
3381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3384
3385
3386 # Make sure we can run config.sub.
3387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3389
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3391 $as_echo_n "checking build system type... " >&6; }
3392 if ${ac_cv_build+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_build_alias=$build_alias
3396 test "x$ac_build_alias" = x &&
3397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3398 test "x$ac_build_alias" = x &&
3399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3402
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3405 $as_echo "$ac_cv_build" >&6; }
3406 case $ac_cv_build in
3407 *-*-*) ;;
3408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3409 esac
3410 build=$ac_cv_build
3411 ac_save_IFS=$IFS; IFS='-'
3412 set x $ac_cv_build
3413 shift
3414 build_cpu=$1
3415 build_vendor=$2
3416 shift; shift
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3419 build_os=$*
3420 IFS=$ac_save_IFS
3421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3425 $as_echo_n "checking host system type... " >&6; }
3426 if ${ac_cv_host+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test "x$host_alias" = x; then
3430 ac_cv_host=$ac_cv_build
3431 else
3432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3434 fi
3435
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3438 $as_echo "$ac_cv_host" >&6; }
3439 case $ac_cv_host in
3440 *-*-*) ;;
3441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3442 esac
3443 host=$ac_cv_host
3444 ac_save_IFS=$IFS; IFS='-'
3445 set x $ac_cv_host
3446 shift
3447 host_cpu=$1
3448 host_vendor=$2
3449 shift; shift
3450 # Remember, the first character of IFS is used to create $*,
3451 # except with old shells:
3452 host_os=$*
3453 IFS=$ac_save_IFS
3454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3455
3456
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3458 $as_echo_n "checking target system type... " >&6; }
3459 if ${ac_cv_target+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test "x$target_alias" = x; then
3463 ac_cv_target=$ac_cv_host
3464 else
3465 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3467 fi
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3471 $as_echo "$ac_cv_target" >&6; }
3472 case $ac_cv_target in
3473 *-*-*) ;;
3474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3475 esac
3476 target=$ac_cv_target
3477 ac_save_IFS=$IFS; IFS='-'
3478 set x $ac_cv_target
3479 shift
3480 target_cpu=$1
3481 target_vendor=$2
3482 shift; shift
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3485 target_os=$*
3486 IFS=$ac_save_IFS
3487 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3488
3489
3490 # The aliases save the names the user supplied, while $host etc.
3491 # will get canonicalized.
3492 test -n "$target_alias" &&
3493 test "$program_prefix$program_suffix$program_transform_name" = \
3494 NONENONEs,x,x, &&
3495 program_prefix=${target_alias}-
3496
3497 # Determine the noncanonical host name, for Ada.
3498 case ${build_alias} in
3499 "") build_noncanonical=${build} ;;
3500 *) build_noncanonical=${build_alias} ;;
3501 esac
3502
3503 case ${host_alias} in
3504 "") host_noncanonical=${build_noncanonical} ;;
3505 *) host_noncanonical=${host_alias} ;;
3506 esac
3507
3508
3509
3510
3511 # Determine the noncanonical target name, for directory use.
3512 case ${target_alias} in
3513 "") target_noncanonical=${host_noncanonical} ;;
3514 *) target_noncanonical=${target_alias} ;;
3515 esac
3516
3517
3518
3519
3520 # Used for constructing correct paths for offload compilers.
3521 real_target_noncanonical=${target_noncanonical}
3522 accel_dir_suffix=
3523
3524 # Determine the target- and build-specific subdirectories
3525
3526 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3527 # have matching libraries, they should use host libraries: Makefile.tpl
3528 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3529 # However, they still use the build modules, because the corresponding
3530 # host modules (e.g. bison) are only built for the host when bootstrap
3531 # finishes. So:
3532 # - build_subdir is where we find build modules, and never changes.
3533 # - build_libsubdir is where we find build libraries, and can be overridden.
3534
3535 # Prefix 'build-' so this never conflicts with target_subdir.
3536 build_subdir="build-${build_noncanonical}"
3537
3538 # Check whether --with-build-libsubdir was given.
3539 if test "${with_build_libsubdir+set}" = set; then :
3540 withval=$with_build_libsubdir; build_libsubdir="$withval"
3541 else
3542 build_libsubdir="$build_subdir"
3543 fi
3544
3545 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3546 if ( test $srcdir = . && test -d gcc ) \
3547 || test -d $srcdir/../host-${host_noncanonical}; then
3548 host_subdir="host-${host_noncanonical}"
3549 else
3550 host_subdir=.
3551 fi
3552 # No prefix.
3553 target_subdir=${target_noncanonical}
3554
3555
3556 # Set program_transform_name
3557 test "$program_prefix" != NONE &&
3558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3559 # Use a double $ so make ignores it.
3560 test "$program_suffix" != NONE &&
3561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3562 # Double any \ or $.
3563 # By default was `s,x,x', remove it if useless.
3564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3566
3567
3568 # Check for bogus environment variables.
3569 # Test if LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LIBRARY_PATH contains the current directory if one of the following
3572 # is true:
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3577 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3578 case ${LIBRARY_PATH} in
3579 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580 library_path_setting="contains current directory"
3581 ;;
3582 *)
3583 library_path_setting="ok"
3584 ;;
3585 esac
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3587 $as_echo "$library_path_setting" >&6; }
3588 if test "$library_path_setting" != "ok"; then
3589 as_fn_error $? "
3590 *** LIBRARY_PATH shouldn't contain the current directory when
3591 *** building gcc. Please change the environment variable
3592 *** and run configure again." "$LINENO" 5
3593 fi
3594
3595 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3596 # since this would lead to problems installing/building glibc.
3597 # GCC_EXEC_PREFIX contains the current directory if one of the following
3598 # is true:
3599 # - one of the terminals (":" and ";") is the first or last sign
3600 # - two terminals occur directly after each other
3601 # - the path contains an element with a dot in it
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3603 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3604 case ${GCC_EXEC_PREFIX} in
3605 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3606 gcc_exec_prefix_setting="contains current directory"
3607 ;;
3608 *)
3609 gcc_exec_prefix_setting="ok"
3610 ;;
3611 esac
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3613 $as_echo "$gcc_exec_prefix_setting" >&6; }
3614 if test "$gcc_exec_prefix_setting" != "ok"; then
3615 as_fn_error $? "
3616 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3617 *** building gcc. Please change the environment variable
3618 *** and run configure again." "$LINENO" 5
3619 fi
3620
3621 # -----------
3622 # Directories
3623 # -----------
3624
3625 # Specify the local prefix
3626 local_prefix=
3627
3628 # Check whether --with-local-prefix was given.
3629 if test "${with_local_prefix+set}" = set; then :
3630 withval=$with_local_prefix; case "${withval}" in
3631 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3632 no) ;;
3633 *) local_prefix=$with_local_prefix ;;
3634 esac
3635 fi
3636
3637
3638 # Default local prefix if it is empty
3639 if test x$local_prefix = x; then
3640 local_prefix=/usr/local
3641 fi
3642
3643
3644 # Check whether --with-native-system-header-dir was given.
3645 if test "${with_native_system_header_dir+set}" = set; then :
3646 withval=$with_native_system_header_dir;
3647 case ${with_native_system_header_dir} in
3648 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3649 /* | [A-Za-z]:[\\/]*) ;;
3650 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3651 esac
3652 configured_native_system_header_dir="${withval}"
3653
3654 else
3655 configured_native_system_header_dir=
3656 fi
3657
3658
3659
3660 # Check whether --with-build-sysroot was given.
3661 if test "${with_build_sysroot+set}" = set; then :
3662 withval=$with_build_sysroot; if test x"$withval" != x ; then
3663 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3664 fi
3665 else
3666 SYSROOT_CFLAGS_FOR_TARGET=
3667 fi
3668
3669
3670
3671 if test "x$prefix" = xNONE; then
3672 test_prefix=/usr/local
3673 else
3674 test_prefix=$prefix
3675 fi
3676 if test "x$exec_prefix" = xNONE; then
3677 test_exec_prefix=$test_prefix
3678 else
3679 test_exec_prefix=$exec_prefix
3680 fi
3681
3682
3683 # Check whether --with-sysroot was given.
3684 if test "${with_sysroot+set}" = set; then :
3685 withval=$with_sysroot;
3686 case ${with_sysroot} in
3687 /) ;;
3688 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3689 esac
3690 case ${with_sysroot} in
3691 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3692 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3693 esac
3694
3695 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3696 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3697
3698 case ${TARGET_SYSTEM_ROOT} in
3699 "${test_prefix}"|"${test_prefix}/"*|\
3700 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3701 '${prefix}'|'${prefix}/'*|\
3702 '${exec_prefix}'|'${exec_prefix}/'*)
3703 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3704 TARGET_SYSTEM_ROOT_DEFINE="$t"
3705 ;;
3706 esac
3707
3708 else
3709
3710 TARGET_SYSTEM_ROOT=
3711 TARGET_SYSTEM_ROOT_DEFINE=
3712 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3713
3714 fi
3715
3716
3717
3718
3719
3720 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3721 # passed in by the toplevel make and thus we'd get different behavior
3722 # depending on where we built the sources.
3723 gcc_gxx_include_dir=
3724 # Specify the g++ header file directory
3725
3726 # Check whether --with-gxx-include-dir was given.
3727 if test "${with_gxx_include_dir+set}" = set; then :
3728 withval=$with_gxx_include_dir; case "${withval}" in
3729 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3730 no) ;;
3731 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3732 esac
3733 fi
3734
3735
3736 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3737 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3738 # relative to the sysroot.
3739 gcc_gxx_include_dir_add_sysroot=0
3740
3741 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3742 if test x${gcc_gxx_include_dir} = x; then
3743 if test x${enable_version_specific_runtime_libs} = xyes; then
3744 gcc_gxx_include_dir='${libsubdir}/include/c++'
3745 else
3746 libstdcxx_incdir='include/c++/$(version)'
3747 if test x$host != x$target; then
3748 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3749 fi
3750 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3751 fi
3752 elif test "${with_sysroot+set}" = set; then
3753 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3754 if test "${gcc_gxx_without_sysroot}"; then
3755 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3756 gcc_gxx_include_dir_add_sysroot=1
3757 fi
3758 fi
3759
3760 # Configuration for an alternate set of C++ headers.
3761 gcc_gxx_libcxx_include_dir=
3762 # Specify the alternate g++ header file directory
3763
3764 # Check whether --with-gxx-libcxx-include-dir was given.
3765 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3766 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3768 no) ;;
3769 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3770 esac
3771 fi
3772
3773
3774 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3775 # check to see if the latter starts with the former and, upon success, compute
3776 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3777 gcc_gxx_libcxx_include_dir_add_sysroot=0
3778
3779 if test x${gcc_gxx_libcxx_include_dir} != x; then
3780
3781 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3782
3783 else
3784 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3785
3786 fi
3787 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3788 if test x${gcc_gxx_libcxx_include_dir} = x; then
3789 if test x${enable_version_specific_runtime_libs} = xyes; then
3790 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3791 else
3792 libcxx_incdir='libc++_include/c++/$(version)/v1'
3793 if test x$host != x$target; then
3794 libcxx_incdir="$target_alias/$libcxx_incdir"
3795 fi
3796 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3797 fi
3798 elif test "${with_sysroot+set}" = set; then
3799 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3800 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3801 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3802 gcc_gxx_libcxx_include_dir_add_sysroot=1
3803 fi
3804 fi
3805
3806
3807 # Check whether --with-cpp_install_dir was given.
3808 if test "${with_cpp_install_dir+set}" = set; then :
3809 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3810 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3811 elif test x$withval != xno; then
3812 cpp_install_dir=$withval
3813 fi
3814 fi
3815
3816
3817 # We would like to our source tree to be readonly. However when releases or
3818 # pre-releases are generated, the flex/bison generated files as well as the
3819 # various formats of manuals need to be included along with the rest of the
3820 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3821 # just that.
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3824 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3825 # Check whether --enable-generated-files-in-srcdir was given.
3826 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3827 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3828 else
3829 generated_files_in_srcdir=no
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3834 $as_echo "$generated_files_in_srcdir" >&6; }
3835
3836 if test "$generated_files_in_srcdir" = "yes"; then
3837 GENINSRC=''
3838 else
3839 GENINSRC='#'
3840 fi
3841
3842
3843 # -------------------
3844 # Find default linker
3845 # -------------------
3846
3847 # With GNU ld
3848
3849 # Check whether --with-gnu-ld was given.
3850 if test "${with_gnu_ld+set}" = set; then :
3851 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3852 else
3853 gnu_ld_flag=no
3854 fi
3855
3856
3857 case $target in
3858 *darwin*)
3859 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3860 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3861 ;;
3862 *)
3863 ld64_flag=no
3864 dsymutil_flag=no
3865 ;;
3866 esac
3867
3868 # With pre-defined ld
3869
3870 # Check whether --with-ld was given.
3871 if test "${with_ld+set}" = set; then :
3872 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3873 fi
3874
3875 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3876 if test ! -x "$DEFAULT_LINKER"; then
3877 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3878 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3879 gnu_ld_flag=yes
3880 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3881 ld64_flag=yes
3882 fi
3883
3884 cat >>confdefs.h <<_ACEOF
3885 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3886 _ACEOF
3887
3888 fi
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3891 $as_echo_n "checking whether a default linker was specified... " >&6; }
3892 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3893 if test x"$gnu_ld_flag" = x"no"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3895 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3898 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3899 fi
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905 # With demangler in GNU ld
3906
3907 # Check whether --with-demangler-in-ld was given.
3908 if test "${with_demangler_in_ld+set}" = set; then :
3909 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3910 else
3911 demangler_in_ld=yes
3912 fi
3913
3914
3915 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3916
3917 # Check whether --with-dsymutil was given.
3918 if test "${with_dsymutil+set}" = set; then :
3919 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3920 fi
3921
3922
3923 dsymutil_vers=
3924 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3925 if test ! -x "$DEFAULT_DSYMUTIL"; then
3926 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3927 else
3928 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3929 dsymutil_flag=yes
3930 fi
3931 fi
3932
3933 cat >>confdefs.h <<_ACEOF
3934 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3935 _ACEOF
3936
3937 fi
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3940 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3941 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3943 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949 # ----------------------
3950 # Find default assembler
3951 # ----------------------
3952
3953 # With GNU as
3954
3955 # Check whether --with-gnu-as was given.
3956 if test "${with_gnu_as+set}" = set; then :
3957 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3958 else
3959 gas_flag=no
3960 fi
3961
3962
3963
3964 # Check whether --with-as was given.
3965 if test "${with_as+set}" = set; then :
3966 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3967 fi
3968
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test ! -x "$DEFAULT_ASSEMBLER"; then
3971 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3972 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3973 gas_flag=yes
3974 fi
3975
3976 cat >>confdefs.h <<_ACEOF
3977 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3978 _ACEOF
3979
3980 fi
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3983 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3984 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3985 if test x"$gas_flag" = x"no"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3987 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3990 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3991 fi
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997 # ---------------
3998 # Find C compiler
3999 # ---------------
4000
4001 # If a non-executable a.out is present (e.g. created by GNU as above even if
4002 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4003 # file, even when creating an executable, so an execution test fails.
4004 # Remove possible default executable files to avoid this.
4005 #
4006 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4007 # Autoconf includes it.
4008 rm -f a.out a.exe b.out
4009
4010 # Find the native compiler
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_CC+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi
4043 fi
4044 CC=$ac_cv_prog_CC
4045 if test -n "$CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047 $as_echo "$CC" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 fi
4052
4053
4054 fi
4055 if test -z "$ac_cv_prog_CC"; then
4056 ac_ct_CC=$CC
4057 # Extract the first word of "gcc", so it can be a program name with args.
4058 set dummy gcc; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC="gcc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 break 2
4077 fi
4078 done
4079 done
4080 IFS=$as_save_IFS
4081
4082 fi
4083 fi
4084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4085 if test -n "$ac_ct_CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087 $as_echo "$ac_ct_CC" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091 fi
4092
4093 if test "x$ac_ct_CC" = x; then
4094 CC=""
4095 else
4096 case $cross_compiling:$ac_tool_warned in
4097 yes:)
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned=yes ;;
4101 esac
4102 CC=$ac_ct_CC
4103 fi
4104 else
4105 CC="$ac_cv_prog_CC"
4106 fi
4107
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}cc; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC="${ac_tool_prefix}cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147 fi
4148 fi
4149 if test -z "$CC"; then
4150 # Extract the first word of "cc", so it can be a program name with args.
4151 set dummy cc; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_CC+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159 else
4160 ac_prog_rejected=no
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4169 ac_prog_rejected=yes
4170 continue
4171 fi
4172 ac_cv_prog_CC="cc"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 if test $ac_prog_rejected = yes; then
4181 # We found a bogon in the path, so make sure we never use it.
4182 set dummy $ac_cv_prog_CC
4183 shift
4184 if test $# != 0; then
4185 # We chose a different compiler from the bogus one.
4186 # However, it has the same basename, so the bogon will be chosen
4187 # first if we set CC to just the basename; use the full file name.
4188 shift
4189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4190 fi
4191 fi
4192 fi
4193 fi
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203
4204 fi
4205 if test -z "$CC"; then
4206 if test -n "$ac_tool_prefix"; then
4207 for ac_prog in cl.exe
4208 do
4209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_CC+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 CC=$ac_cv_prog_CC
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 test -n "$CC" && break
4247 done
4248 fi
4249 if test -z "$CC"; then
4250 ac_ct_CC=$CC
4251 for ac_prog in cl.exe
4252 do
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$ac_ct_CC"; then
4261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_ac_ct_CC="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4273 fi
4274 done
4275 done
4276 IFS=$as_save_IFS
4277
4278 fi
4279 fi
4280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 $as_echo "$ac_ct_CC" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290 test -n "$ac_ct_CC" && break
4291 done
4292
4293 if test "x$ac_ct_CC" = x; then
4294 CC=""
4295 else
4296 case $cross_compiling:$ac_tool_warned in
4297 yes:)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned=yes ;;
4301 esac
4302 CC=$ac_ct_CC
4303 fi
4304 fi
4305
4306 fi
4307
4308
4309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $? "no acceptable C compiler found in \$PATH
4312 See \`config.log' for more details" "$LINENO" 5; }
4313
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4316 set X $ac_compile
4317 ac_compiler=$2
4318 for ac_option in --version -v -V -qversion; do
4319 { { ac_try="$ac_compiler $ac_option >&5"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4327 ac_status=$?
4328 if test -s conftest.err; then
4329 sed '10a\
4330 ... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4333 fi
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4337 done
4338
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 int
4343 main ()
4344 {
4345
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4354 # of exeext.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356 $as_echo_n "checking whether the C compiler works... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4358
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4361
4362 ac_rmfiles=
4363 for ac_file in $ac_files
4364 do
4365 case $ac_file in
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4368 esac
4369 done
4370 rm -f $ac_rmfiles
4371
4372 if { { ac_try="$ac_link_default"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4387 # Autoconf.
4388 for ac_file in $ac_files ''
4389 do
4390 test -f "$ac_file" || continue
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4393 ;;
4394 [ab].out )
4395 # We found the default executable, but exeext='' is most
4396 # certainly right.
4397 break;;
4398 *.* )
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4400 then :; else
4401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4402 fi
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4407 # actually working.
4408 break;;
4409 * )
4410 break;;
4411 esac
4412 done
4413 test "$ac_cv_exeext" = no && ac_cv_exeext=
4414
4415 else
4416 ac_file=''
4417 fi
4418 if test -z "$ac_file"; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error 77 "C compiler cannot create executables
4427 See \`config.log' for more details" "$LINENO" 5; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 $as_echo "yes" >&6; }
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4433 $as_echo_n "checking for C compiler default output file name... " >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4435 $as_echo "$ac_file" >&6; }
4436 ac_exeext=$ac_cv_exeext
4437
4438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4439 ac_clean_files=$ac_clean_files_save
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4441 $as_echo_n "checking for suffix of executables... " >&6; }
4442 if { { ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_link") 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4455 # work properly (i.e., refer to `conftest.exe'), while it won't with
4456 # `rm'.
4457 for ac_file in conftest.exe conftest conftest.*; do
4458 test -f "$ac_file" || continue
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462 break;;
4463 * ) break;;
4464 esac
4465 done
4466 else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4470 See \`config.log' for more details" "$LINENO" 5; }
4471 fi
4472 rm -f conftest conftest$ac_cv_exeext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4474 $as_echo "$ac_cv_exeext" >&6; }
4475
4476 rm -f conftest.$ac_ext
4477 EXEEXT=$ac_cv_exeext
4478 ac_exeext=$EXEEXT
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #include <stdio.h>
4482 int
4483 main ()
4484 {
4485 FILE *f = fopen ("conftest.out", "w");
4486 return ferror (f) || fclose (f) != 0;
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 ac_clean_files="$ac_clean_files conftest.out"
4493 # Check that the compiler produces executables we can run. If not, either
4494 # the compiler is broken, or we cross compile.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4496 $as_echo_n "checking whether we are cross compiling... " >&6; }
4497 if test "$cross_compiling" != yes; then
4498 { { ac_try="$ac_link"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_link") 2>&5
4506 ac_status=$?
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 if { ac_try='./conftest$ac_cv_exeext'
4510 { { case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_try") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; }; then
4520 cross_compiling=no
4521 else
4522 if test "$cross_compiling" = maybe; then
4523 cross_compiling=yes
4524 else
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot run C compiled programs.
4528 If you meant to cross compile, use \`--host'.
4529 See \`config.log' for more details" "$LINENO" 5; }
4530 fi
4531 fi
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4534 $as_echo "$cross_compiling" >&6; }
4535
4536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4537 ac_clean_files=$ac_clean_files_save
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4539 $as_echo_n "checking for suffix of object files... " >&6; }
4540 if ${ac_cv_objext+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.o conftest.obj
4555 if { { ac_try="$ac_compile"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_compile") 2>&5
4563 ac_status=$?
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 for ac_file in conftest.o conftest.obj conftest.*; do
4567 test -f "$ac_file" || continue;
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4571 break;;
4572 esac
4573 done
4574 else
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of object files: cannot compile
4581 See \`config.log' for more details" "$LINENO" 5; }
4582 fi
4583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4586 $as_echo "$ac_cv_objext" >&6; }
4587 OBJEXT=$ac_cv_objext
4588 ac_objext=$OBJEXT
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4591 if ${ac_cv_c_compiler_gnu+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600 #ifndef __GNUC__
4601 choke me
4602 #endif
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_compiler_gnu=yes
4610 else
4611 ac_compiler_gnu=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4615
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4619 if test $ac_compiler_gnu = yes; then
4620 GCC=yes
4621 else
4622 GCC=
4623 fi
4624 ac_test_CFLAGS=${CFLAGS+set}
4625 ac_save_CFLAGS=$CFLAGS
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4628 if ${ac_cv_prog_cc_g+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_save_c_werror_flag=$ac_c_werror_flag
4632 ac_c_werror_flag=yes
4633 ac_cv_prog_cc_g=no
4634 CFLAGS="-g"
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_g=yes
4648 else
4649 CFLAGS=""
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652
4653 int
4654 main ()
4655 {
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662
4663 else
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4665 CFLAGS="-g"
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main ()
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_prog_cc_g=yes
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4688 $as_echo "$ac_cv_prog_cc_g" >&6; }
4689 if test "$ac_test_CFLAGS" = set; then
4690 CFLAGS=$ac_save_CFLAGS
4691 elif test $ac_cv_prog_cc_g = yes; then
4692 if test "$GCC" = yes; then
4693 CFLAGS="-g -O2"
4694 else
4695 CFLAGS="-g"
4696 fi
4697 else
4698 if test "$GCC" = yes; then
4699 CFLAGS="-O2"
4700 else
4701 CFLAGS=
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4706 if ${ac_cv_prog_cc_c89+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_cv_prog_cc_c89=no
4710 ac_save_CC=$CC
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdarg.h>
4714 #include <stdio.h>
4715 struct stat;
4716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717 struct buf { int x; };
4718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719 static char *e (p, i)
4720 char **p;
4721 int i;
4722 {
4723 return p[i];
4724 }
4725 static char *f (char * (*g) (char **, int), char **p, ...)
4726 {
4727 char *s;
4728 va_list v;
4729 va_start (v,p);
4730 s = g (p, va_arg (v,int));
4731 va_end (v);
4732 return s;
4733 }
4734
4735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4743
4744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4746 #define FOO(x) 'x'
4747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4748
4749 int test (int i, double x);
4750 struct s1 {int (*f) (int a);};
4751 struct s2 {int (*f) (double a);};
4752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4753 int argc;
4754 char **argv;
4755 int
4756 main ()
4757 {
4758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4765 do
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4772 done
4773 rm -f conftest.$ac_ext
4774 CC=$ac_save_CC
4775
4776 fi
4777 # AC_CACHE_VAL
4778 case "x$ac_cv_prog_cc_c89" in
4779 x)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 $as_echo "none needed" >&6; } ;;
4782 xno)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 $as_echo "unsupported" >&6; } ;;
4785 *)
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4789 esac
4790 if test "x$ac_cv_prog_cc_c89" != xno; then :
4791
4792 fi
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800 ac_ext=cpp
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4807 CXX=$CCC
4808 else
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4811 do
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_CXX+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 CXX=$ac_cv_prog_CXX
4840 if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842 $as_echo "$CXX" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848
4849 test -n "$CXX" && break
4850 done
4851 fi
4852 if test -z "$CXX"; then
4853 ac_ct_CXX=$CXX
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4855 do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884 if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886 $as_echo "$ac_ct_CXX" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 test -n "$ac_ct_CXX" && break
4894 done
4895
4896 if test "x$ac_ct_CXX" = x; then
4897 CXX="g++"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CXX=$ac_ct_CXX
4906 fi
4907 fi
4908
4909 fi
4910 fi
4911 # Provide some information about the compiler.
4912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4913 set X $ac_compile
4914 ac_compiler=$2
4915 for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 $as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4924 ac_status=$?
4925 if test -s conftest.err; then
4926 sed '10a\
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err >conftest.er1
4929 cat conftest.er1 >&5
4930 fi
4931 rm -f conftest.er1 conftest.err
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934 done
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947 #ifndef __GNUC__
4948 choke me
4949 #endif
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_compiler_gnu=yes
4957 else
4958 ac_compiler_gnu=no
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4966 if test $ac_compiler_gnu = yes; then
4967 GXX=yes
4968 else
4969 GXX=
4970 fi
4971 ac_test_CXXFLAGS=${CXXFLAGS+set}
4972 ac_save_CXXFLAGS=$CXXFLAGS
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975 if ${ac_cv_prog_cxx_g+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag=yes
4980 ac_cv_prog_cxx_g=no
4981 CXXFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4994 ac_cv_prog_cxx_g=yes
4995 else
4996 CXXFLAGS=""
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_cxx_try_compile "$LINENO"; then :
5009
5010 else
5011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5012 CXXFLAGS="-g"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015
5016 int
5017 main ()
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_cxx_try_compile "$LINENO"; then :
5025 ac_cv_prog_cxx_g=yes
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5036 if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS=$ac_save_CXXFLAGS
5038 elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5040 CXXFLAGS="-g -O2"
5041 else
5042 CXXFLAGS="-g"
5043 fi
5044 else
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-O2"
5047 else
5048 CXXFLAGS=
5049 fi
5050 fi
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057
5058
5059
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_GNATBIND+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 GNATBIND=$ac_cv_prog_GNATBIND
5089 if test -n "$GNATBIND"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091 $as_echo "$GNATBIND" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 fi
5099 if test -z "$ac_cv_prog_GNATBIND"; then
5100 ac_ct_GNATBIND=$GNATBIND
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102 set dummy gnatbind; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5129 if test -n "$ac_ct_GNATBIND"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131 $as_echo "$ac_ct_GNATBIND" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137 if test "x$ac_ct_GNATBIND" = x; then
5138 GNATBIND="no"
5139 else
5140 case $cross_compiling:$ac_tool_warned in
5141 yes:)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146 GNATBIND=$ac_ct_GNATBIND
5147 fi
5148 else
5149 GNATBIND="$ac_cv_prog_GNATBIND"
5150 fi
5151
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_GNATMAKE+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 GNATMAKE=$ac_cv_prog_GNATMAKE
5181 if test -n "$GNATMAKE"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183 $as_echo "$GNATMAKE" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 fi
5191 if test -z "$ac_cv_prog_GNATMAKE"; then
5192 ac_ct_GNATMAKE=$GNATMAKE
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194 set dummy gnatmake; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5221 if test -n "$ac_ct_GNATMAKE"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223 $as_echo "$ac_ct_GNATMAKE" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229 if test "x$ac_ct_GNATMAKE" = x; then
5230 GNATMAKE="no"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 GNATMAKE=$ac_ct_GNATMAKE
5239 fi
5240 else
5241 GNATMAKE="$ac_cv_prog_GNATMAKE"
5242 fi
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5245 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5246 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat >conftest.adb <<EOF
5250 pragma Warnings (Off);
5251 with System.CRTL;
5252 pragma Warnings (On);
5253 use type System.CRTL.int64;
5254 procedure conftest is begin null; end conftest;
5255 EOF
5256 acx_cv_cc_gcc_supports_ada=no
5257 # There is a bug in old released versions of GCC which causes the
5258 # driver to exit successfully when the appropriate language module
5259 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5260 # Therefore we must check for the error message as well as an
5261 # unsuccessful exit.
5262 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5263 # given a .adb file, but produce no object file. So we must check
5264 # if an object file was really produced to guard against this.
5265 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5266 if test x"$errors" = x && test -f conftest.$ac_objext; then
5267 acx_cv_cc_gcc_supports_ada=yes
5268 fi
5269 rm -f conftest.*
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5272 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5273
5274 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5275 have_gnat=yes
5276 else
5277 have_gnat=no
5278 fi
5279
5280
5281
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_GDC+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$GDC"; then
5291 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 GDC=$ac_cv_prog_GDC
5311 if test -n "$GDC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5313 $as_echo "$GDC" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_GDC"; then
5322 ac_ct_GDC=$GDC
5323 # Extract the first word of "gdc", so it can be a program name with args.
5324 set dummy gdc; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$ac_ct_GDC"; then
5331 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_GDC="gdc"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5351 if test -n "$ac_ct_GDC"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5353 $as_echo "$ac_ct_GDC" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359 if test "x$ac_ct_GDC" = x; then
5360 GDC="no"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 GDC=$ac_ct_GDC
5369 fi
5370 else
5371 GDC="$ac_cv_prog_GDC"
5372 fi
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5375 $as_echo_n "checking whether the D compiler works... " >&6; }
5376 if ${acx_cv_d_compiler_works+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat >conftest.d <<EOF
5380 module conftest; int main() { return 0; }
5381 EOF
5382 acx_cv_d_compiler_works=no
5383 if test "x$GDC" != xno; then
5384 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5385 if test x"$errors" = x && test -f conftest.$ac_objext; then
5386 acx_cv_d_compiler_works=yes
5387 fi
5388 rm -f conftest.*
5389 fi
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5392 $as_echo "$acx_cv_d_compiler_works" >&6; }
5393 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5394 have_gdc=yes
5395 else
5396 have_gdc=no
5397 fi
5398
5399
5400 # Do configure tests with the C++ compiler, since that's what we build with.
5401 ac_ext=cpp
5402 ac_cpp='$CXXCPP $CPPFLAGS'
5403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5406
5407
5408 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5409 # optimizations to be activated explicitly by the toplevel.
5410 case "$CC" in
5411 */prev-gcc/xgcc*) ;;
5412 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5413 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5414 esac
5415
5416
5417
5418
5419 # Determine PICFLAG for target gnatlib.
5420
5421
5422
5423
5424 case "${target}" in
5425 # PIC is the default on some targets or must not be used.
5426 *-*-darwin*)
5427 # For darwin, common symbols are not allowed in MH_DYLIB files
5428 case "${CFLAGS}" in
5429 # If we are using a compiler supporting mdynamic-no-pic
5430 # and the option has been tested as safe to add, then cancel
5431 # it here, since the code generated is incompatible with shared
5432 # libs.
5433 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5434 *) PICFLAG_FOR_TARGET=-fno-common ;;
5435 esac
5436 ;;
5437 alpha*-dec-osf5*)
5438 # PIC is the default.
5439 ;;
5440 hppa*64*-*-hpux*)
5441 # PIC is the default for 64-bit PA HP-UX.
5442 ;;
5443 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5444 ;;
5445 i[34567]86-*-mingw* | x86_64-*-mingw*)
5446 ;;
5447 i[34567]86-*-interix[3-9]*)
5448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5449 # Instead, we relocate shared libraries at runtime.
5450 ;;
5451 i[34567]86-*-nto-qnx*)
5452 # QNX uses GNU C++, but need to define -shared option too, otherwise
5453 # it will coredump.
5454 PICFLAG_FOR_TARGET='-fPIC -shared'
5455 ;;
5456 i[34567]86-pc-msdosdjgpp*)
5457 # DJGPP does not support shared libraries at all.
5458 ;;
5459 ia64*-*-hpux*)
5460 # On IA64 HP-UX, PIC is the default but the pic flag
5461 # sets the default TLS model and affects inlining.
5462 PICFLAG_FOR_TARGET=-fPIC
5463 ;;
5464 loongarch*-*-*)
5465 PICFLAG_FOR_TARGET=-fpic
5466 ;;
5467 mips-sgi-irix6*)
5468 # PIC is the default.
5469 ;;
5470 rs6000-ibm-aix* | powerpc-ibm-aix*)
5471 # All AIX code is PIC.
5472 ;;
5473
5474 # Some targets support both -fPIC and -fpic, but prefer the latter.
5475 # FIXME: Why?
5476 i[34567]86-*-* | x86_64-*-*)
5477 PICFLAG_FOR_TARGET=-fpic
5478 ;;
5479 # FIXME: Override -fPIC default in libgcc only?
5480 sh-*-linux* | sh[2346lbe]*-*-linux*)
5481 PICFLAG_FOR_TARGET=-fpic
5482 ;;
5483 sh*-*-netbsd*)
5484 PICFLAG_FOR_TARGET=-fpic
5485 ;;
5486 # Default to -fPIC unless specified otherwise.
5487 *)
5488 PICFLAG_FOR_TARGET=-fPIC
5489 ;;
5490 esac
5491
5492 # If the user explicitly uses -fpic/-fPIC, keep that.
5493 case "${CFLAGS_FOR_TARGET}" in
5494 *-fpic*)
5495 PICFLAG_FOR_TARGET=-fpic
5496 ;;
5497 *-fPIC*)
5498 PICFLAG_FOR_TARGET=-fPIC
5499 ;;
5500 esac
5501
5502
5503
5504 # -------------------------
5505 # Check C compiler features
5506 # -------------------------
5507
5508
5509 ac_ext=cpp
5510 ac_cpp='$CXXCPP $CPPFLAGS'
5511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5515 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5516 if test -z "$CXXCPP"; then
5517 if ${ac_cv_prog_CXXCPP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 # Double quotes because CXXCPP needs to be expanded
5521 for CXXCPP in "$CXX -E" "/lib/cpp"
5522 do
5523 ac_preproc_ok=false
5524 for ac_cxx_preproc_warn_flag in '' yes
5525 do
5526 # Use a header file that comes with gcc, so configuring glibc
5527 # with a fresh cross-compiler works.
5528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 # <limits.h> exists even on freestanding compilers.
5530 # On the NeXT, cc -E runs the code through the compiler's parser,
5531 # not just through cpp. "Syntax error" is here to catch this case.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #ifdef __STDC__
5535 # include <limits.h>
5536 #else
5537 # include <assert.h>
5538 #endif
5539 Syntax error
5540 _ACEOF
5541 if ac_fn_cxx_try_cpp "$LINENO"; then :
5542
5543 else
5544 # Broken: fails on valid input.
5545 continue
5546 fi
5547 rm -f conftest.err conftest.i conftest.$ac_ext
5548
5549 # OK, works on sane cases. Now check whether nonexistent headers
5550 # can be detected and how.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5554 _ACEOF
5555 if ac_fn_cxx_try_cpp "$LINENO"; then :
5556 # Broken: success on invalid input.
5557 continue
5558 else
5559 # Passes both tests.
5560 ac_preproc_ok=:
5561 break
5562 fi
5563 rm -f conftest.err conftest.i conftest.$ac_ext
5564
5565 done
5566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567 rm -f conftest.i conftest.err conftest.$ac_ext
5568 if $ac_preproc_ok; then :
5569 break
5570 fi
5571
5572 done
5573 ac_cv_prog_CXXCPP=$CXXCPP
5574
5575 fi
5576 CXXCPP=$ac_cv_prog_CXXCPP
5577 else
5578 ac_cv_prog_CXXCPP=$CXXCPP
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5581 $as_echo "$CXXCPP" >&6; }
5582 ac_preproc_ok=false
5583 for ac_cxx_preproc_warn_flag in '' yes
5584 do
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598 Syntax error
5599 _ACEOF
5600 if ac_fn_cxx_try_cpp "$LINENO"; then :
5601
5602 else
5603 # Broken: fails on valid input.
5604 continue
5605 fi
5606 rm -f conftest.err conftest.i conftest.$ac_ext
5607
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5613 _ACEOF
5614 if ac_fn_cxx_try_cpp "$LINENO"; then :
5615 # Broken: success on invalid input.
5616 continue
5617 else
5618 # Passes both tests.
5619 ac_preproc_ok=:
5620 break
5621 fi
5622 rm -f conftest.err conftest.i conftest.$ac_ext
5623
5624 done
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.i conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then :
5628
5629 else
5630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5632 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5633 See \`config.log' for more details" "$LINENO" 5; }
5634 fi
5635
5636 ac_ext=cpp
5637 ac_cpp='$CXXCPP $CPPFLAGS'
5638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5644 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5645 if ${ac_cv_path_GREP+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -z "$GREP"; then
5649 ac_path_GREP_found=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5653 do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_prog in grep ggrep; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5659 as_fn_executable_p "$ac_path_GREP" || continue
5660 # Check for GNU ac_path_GREP and select it if it is found.
5661 # Check for GNU $ac_path_GREP
5662 case `"$ac_path_GREP" --version 2>&1` in
5663 *GNU*)
5664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5665 *)
5666 ac_count=0
5667 $as_echo_n 0123456789 >"conftest.in"
5668 while :
5669 do
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 $as_echo 'GREP' >> "conftest.nl"
5674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676 as_fn_arith $ac_count + 1 && ac_count=$as_val
5677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_GREP="$ac_path_GREP"
5680 ac_path_GREP_max=$ac_count
5681 fi
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5684 done
5685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686 esac
5687
5688 $ac_path_GREP_found && break 3
5689 done
5690 done
5691 done
5692 IFS=$as_save_IFS
5693 if test -z "$ac_cv_path_GREP"; then
5694 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5695 fi
5696 else
5697 ac_cv_path_GREP=$GREP
5698 fi
5699
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5702 $as_echo "$ac_cv_path_GREP" >&6; }
5703 GREP="$ac_cv_path_GREP"
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5707 $as_echo_n "checking for egrep... " >&6; }
5708 if ${ac_cv_path_EGREP+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5712 then ac_cv_path_EGREP="$GREP -E"
5713 else
5714 if test -z "$EGREP"; then
5715 ac_path_EGREP_found=false
5716 # Loop through the user's path and test for each of PROGNAME-LIST
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5719 do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_prog in egrep; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5725 as_fn_executable_p "$ac_path_EGREP" || continue
5726 # Check for GNU ac_path_EGREP and select it if it is found.
5727 # Check for GNU $ac_path_EGREP
5728 case `"$ac_path_EGREP" --version 2>&1` in
5729 *GNU*)
5730 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5731 *)
5732 ac_count=0
5733 $as_echo_n 0123456789 >"conftest.in"
5734 while :
5735 do
5736 cat "conftest.in" "conftest.in" >"conftest.tmp"
5737 mv "conftest.tmp" "conftest.in"
5738 cp "conftest.in" "conftest.nl"
5739 $as_echo 'EGREP' >> "conftest.nl"
5740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5742 as_fn_arith $ac_count + 1 && ac_count=$as_val
5743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5744 # Best one so far, save it but keep looking for a better one
5745 ac_cv_path_EGREP="$ac_path_EGREP"
5746 ac_path_EGREP_max=$ac_count
5747 fi
5748 # 10*(2^10) chars as input seems more than enough
5749 test $ac_count -gt 10 && break
5750 done
5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 esac
5753
5754 $ac_path_EGREP_found && break 3
5755 done
5756 done
5757 done
5758 IFS=$as_save_IFS
5759 if test -z "$ac_cv_path_EGREP"; then
5760 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5761 fi
5762 else
5763 ac_cv_path_EGREP=$EGREP
5764 fi
5765
5766 fi
5767 fi
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5769 $as_echo "$ac_cv_path_EGREP" >&6; }
5770 EGREP="$ac_cv_path_EGREP"
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5774 $as_echo_n "checking for ANSI C header files... " >&6; }
5775 if ${ac_cv_header_stdc+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <stdlib.h>
5781 #include <stdarg.h>
5782 #include <string.h>
5783 #include <float.h>
5784
5785 int
5786 main ()
5787 {
5788
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_cxx_try_compile "$LINENO"; then :
5794 ac_cv_header_stdc=yes
5795 else
5796 ac_cv_header_stdc=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799
5800 if test $ac_cv_header_stdc = yes; then
5801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 #include <string.h>
5805
5806 _ACEOF
5807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 $EGREP "memchr" >/dev/null 2>&1; then :
5809
5810 else
5811 ac_cv_header_stdc=no
5812 fi
5813 rm -f conftest*
5814
5815 fi
5816
5817 if test $ac_cv_header_stdc = yes; then
5818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <stdlib.h>
5822
5823 _ACEOF
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5825 $EGREP "free" >/dev/null 2>&1; then :
5826
5827 else
5828 ac_cv_header_stdc=no
5829 fi
5830 rm -f conftest*
5831
5832 fi
5833
5834 if test $ac_cv_header_stdc = yes; then
5835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5836 if test "$cross_compiling" = yes; then :
5837 :
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ctype.h>
5842 #include <stdlib.h>
5843 #if ((' ' & 0x0FF) == 0x020)
5844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5846 #else
5847 # define ISLOWER(c) \
5848 (('a' <= (c) && (c) <= 'i') \
5849 || ('j' <= (c) && (c) <= 'r') \
5850 || ('s' <= (c) && (c) <= 'z'))
5851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5852 #endif
5853
5854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5855 int
5856 main ()
5857 {
5858 int i;
5859 for (i = 0; i < 256; i++)
5860 if (XOR (islower (i), ISLOWER (i))
5861 || toupper (i) != TOUPPER (i))
5862 return 2;
5863 return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_cxx_try_run "$LINENO"; then :
5867
5868 else
5869 ac_cv_header_stdc=no
5870 fi
5871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5872 conftest.$ac_objext conftest.beam conftest.$ac_ext
5873 fi
5874
5875 fi
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5878 $as_echo "$ac_cv_header_stdc" >&6; }
5879 if test $ac_cv_header_stdc = yes; then
5880
5881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5882
5883 fi
5884
5885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5887 inttypes.h stdint.h unistd.h
5888 do :
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5891 "
5892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 fi
5898
5899 done
5900
5901
5902
5903 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5904 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5905 MINIX=yes
5906 else
5907 MINIX=
5908 fi
5909
5910
5911 if test "$MINIX" = yes; then
5912
5913 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5914
5915
5916 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5917
5918
5919 $as_echo "#define _MINIX 1" >>confdefs.h
5920
5921 fi
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5925 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5926 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931
5932 # define __EXTENSIONS__ 1
5933 $ac_includes_default
5934 int
5935 main ()
5936 {
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_cxx_try_compile "$LINENO"; then :
5943 ac_cv_safe_to_define___extensions__=yes
5944 else
5945 ac_cv_safe_to_define___extensions__=no
5946 fi
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5950 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5951 test $ac_cv_safe_to_define___extensions__ = yes &&
5952 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5953
5954 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5955
5956 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5957
5958 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5959
5960 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5961
5962
5963
5964 ac_ext=c
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5971 # On Suns, sometimes $CPP names a directory.
5972 if test -n "$CPP" && test -d "$CPP"; then
5973 CPP=
5974 fi
5975 if test -z "$CPP"; then
5976 if ${ac_cv_prog_CPP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 # Double quotes because CPP needs to be expanded
5980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5981 do
5982 ac_preproc_ok=false
5983 for ac_c_preproc_warn_flag in '' yes
5984 do
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #ifdef __STDC__
5994 # include <limits.h>
5995 #else
5996 # include <assert.h>
5997 #endif
5998 Syntax error
5999 _ACEOF
6000 if ac_fn_c_try_cpp "$LINENO"; then :
6001
6002 else
6003 # Broken: fails on valid input.
6004 continue
6005 fi
6006 rm -f conftest.err conftest.i conftest.$ac_ext
6007
6008 # OK, works on sane cases. Now check whether nonexistent headers
6009 # can be detected and how.
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #include <ac_nonexistent.h>
6013 _ACEOF
6014 if ac_fn_c_try_cpp "$LINENO"; then :
6015 # Broken: success on invalid input.
6016 continue
6017 else
6018 # Passes both tests.
6019 ac_preproc_ok=:
6020 break
6021 fi
6022 rm -f conftest.err conftest.i conftest.$ac_ext
6023
6024 done
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.i conftest.err conftest.$ac_ext
6027 if $ac_preproc_ok; then :
6028 break
6029 fi
6030
6031 done
6032 ac_cv_prog_CPP=$CPP
6033
6034 fi
6035 CPP=$ac_cv_prog_CPP
6036 else
6037 ac_cv_prog_CPP=$CPP
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6040 $as_echo "$CPP" >&6; }
6041 ac_preproc_ok=false
6042 for ac_c_preproc_warn_flag in '' yes
6043 do
6044 # Use a header file that comes with gcc, so configuring glibc
6045 # with a fresh cross-compiler works.
6046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047 # <limits.h> exists even on freestanding compilers.
6048 # On the NeXT, cc -E runs the code through the compiler's parser,
6049 # not just through cpp. "Syntax error" is here to catch this case.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #ifdef __STDC__
6053 # include <limits.h>
6054 #else
6055 # include <assert.h>
6056 #endif
6057 Syntax error
6058 _ACEOF
6059 if ac_fn_c_try_cpp "$LINENO"; then :
6060
6061 else
6062 # Broken: fails on valid input.
6063 continue
6064 fi
6065 rm -f conftest.err conftest.i conftest.$ac_ext
6066
6067 # OK, works on sane cases. Now check whether nonexistent headers
6068 # can be detected and how.
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <ac_nonexistent.h>
6072 _ACEOF
6073 if ac_fn_c_try_cpp "$LINENO"; then :
6074 # Broken: success on invalid input.
6075 continue
6076 else
6077 # Passes both tests.
6078 ac_preproc_ok=:
6079 break
6080 fi
6081 rm -f conftest.err conftest.i conftest.$ac_ext
6082
6083 done
6084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6085 rm -f conftest.i conftest.err conftest.$ac_ext
6086 if $ac_preproc_ok; then :
6087
6088 else
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6092 See \`config.log' for more details" "$LINENO" 5; }
6093 fi
6094
6095 ac_ext=cpp
6096 ac_cpp='$CXXCPP $CPPFLAGS'
6097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6102 $as_echo_n "checking for inline... " >&6; }
6103 if ${ac_cv_c_inline+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 ac_cv_c_inline=no
6107 for ac_kw in inline __inline__ __inline; do
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #ifndef __cplusplus
6111 typedef int foo_t;
6112 static $ac_kw foo_t static_foo () {return 0; }
6113 $ac_kw foo_t foo () {return 0; }
6114 #endif
6115
6116 _ACEOF
6117 if ac_fn_cxx_try_compile "$LINENO"; then :
6118 ac_cv_c_inline=$ac_kw
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 test "$ac_cv_c_inline" != no && break
6122 done
6123
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6126 $as_echo "$ac_cv_c_inline" >&6; }
6127
6128 case $ac_cv_c_inline in
6129 inline | yes) ;;
6130 *)
6131 case $ac_cv_c_inline in
6132 no) ac_val=;;
6133 *) ac_val=$ac_cv_c_inline;;
6134 esac
6135 cat >>confdefs.h <<_ACEOF
6136 #ifndef __cplusplus
6137 #define inline $ac_val
6138 #endif
6139 _ACEOF
6140 ;;
6141 esac
6142
6143
6144 # Check whether --enable-largefile was given.
6145 if test "${enable_largefile+set}" = set; then :
6146 enableval=$enable_largefile;
6147 fi
6148
6149 if test "$enable_largefile" != no; then
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6152 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6153 if ${ac_cv_sys_largefile_CC+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 ac_cv_sys_largefile_CC=no
6157 if test "$GCC" != yes; then
6158 ac_save_CC=$CC
6159 while :; do
6160 # IRIX 6.2 and later do not support large files by default,
6161 # so use the C compiler's -n32 option if that helps.
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6172 ? 1 : -1];
6173 int
6174 main ()
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_cxx_try_compile "$LINENO"; then :
6182 break
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext
6185 CC="$CC -n32"
6186 if ac_fn_cxx_try_compile "$LINENO"; then :
6187 ac_cv_sys_largefile_CC=' -n32'; break
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext
6190 break
6191 done
6192 CC=$ac_save_CC
6193 rm -f conftest.$ac_ext
6194 fi
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6197 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6198 if test "$ac_cv_sys_largefile_CC" != no; then
6199 CC=$CC$ac_cv_sys_largefile_CC
6200 fi
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6203 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6204 if ${ac_cv_sys_file_offset_bits+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 while :; do
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <sys/types.h>
6211 /* Check that off_t can represent 2**63 - 1 correctly.
6212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6213 since some C++ compilers masquerading as C compilers
6214 incorrectly reject 9223372036854775807. */
6215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6217 && LARGE_OFF_T % 2147483647 == 1)
6218 ? 1 : -1];
6219 int
6220 main ()
6221 {
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6228 ac_cv_sys_file_offset_bits=no; break
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #define _FILE_OFFSET_BITS 64
6234 #include <sys/types.h>
6235 /* Check that off_t can represent 2**63 - 1 correctly.
6236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6237 since some C++ compilers masquerading as C compilers
6238 incorrectly reject 9223372036854775807. */
6239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6241 && LARGE_OFF_T % 2147483647 == 1)
6242 ? 1 : -1];
6243 int
6244 main ()
6245 {
6246
6247 ;
6248 return 0;
6249 }
6250 _ACEOF
6251 if ac_fn_cxx_try_compile "$LINENO"; then :
6252 ac_cv_sys_file_offset_bits=64; break
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 ac_cv_sys_file_offset_bits=unknown
6256 break
6257 done
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6260 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6261 case $ac_cv_sys_file_offset_bits in #(
6262 no | unknown) ;;
6263 *)
6264 cat >>confdefs.h <<_ACEOF
6265 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6266 _ACEOF
6267 ;;
6268 esac
6269 rm -rf conftest*
6270 if test $ac_cv_sys_file_offset_bits = unknown; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6272 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6273 if ${ac_cv_sys_large_files+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 while :; do
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <sys/types.h>
6280 /* Check that off_t can represent 2**63 - 1 correctly.
6281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6282 since some C++ compilers masquerading as C compilers
6283 incorrectly reject 9223372036854775807. */
6284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6286 && LARGE_OFF_T % 2147483647 == 1)
6287 ? 1 : -1];
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_cxx_try_compile "$LINENO"; then :
6297 ac_cv_sys_large_files=no; break
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #define _LARGE_FILES 1
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 << 62) - 1 + ((off_t) 1 << 62))
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_large_files=1; break
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 ac_cv_sys_large_files=unknown
6325 break
6326 done
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6329 $as_echo "$ac_cv_sys_large_files" >&6; }
6330 case $ac_cv_sys_large_files in #(
6331 no | unknown) ;;
6332 *)
6333 cat >>confdefs.h <<_ACEOF
6334 #define _LARGE_FILES $ac_cv_sys_large_files
6335 _ACEOF
6336 ;;
6337 esac
6338 rm -rf conftest*
6339 fi
6340
6341
6342 fi
6343
6344 # The cast to long int works around a bug in the HP C Compiler
6345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6347 # This bug is HP SR number 8606223364.
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6349 $as_echo_n "checking size of ino_t... " >&6; }
6350 if ${ac_cv_sizeof_ino_t+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6354
6355 else
6356 if test "$ac_cv_type_ino_t" = yes; then
6357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6359 as_fn_error 77 "cannot compute sizeof (ino_t)
6360 See \`config.log' for more details" "$LINENO" 5; }
6361 else
6362 ac_cv_sizeof_ino_t=0
6363 fi
6364 fi
6365
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6368 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6369
6370
6371
6372 cat >>confdefs.h <<_ACEOF
6373 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6374 _ACEOF
6375
6376
6377 # The cast to long int works around a bug in the HP C Compiler
6378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6380 # This bug is HP SR number 8606223364.
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6382 $as_echo_n "checking size of dev_t... " >&6; }
6383 if ${ac_cv_sizeof_dev_t+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6387
6388 else
6389 if test "$ac_cv_type_dev_t" = yes; then
6390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6392 as_fn_error 77 "cannot compute sizeof (dev_t)
6393 See \`config.log' for more details" "$LINENO" 5; }
6394 else
6395 ac_cv_sizeof_dev_t=0
6396 fi
6397 fi
6398
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6401 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6402
6403
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6407 _ACEOF
6408
6409
6410
6411 # Select the right stat being able to handle 64bit inodes, if needed.
6412 if test "$enable_largefile" != no; then
6413 case "$host, $build" in
6414 *-*-aix*,*|*,*-*-aix*)
6415 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6416
6417 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6418
6419 fi;;
6420 esac
6421 fi
6422
6423
6424 # sizeof(char) is 1 by definition.
6425 # The cast to long int works around a bug in the HP C Compiler
6426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6428 # This bug is HP SR number 8606223364.
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6430 $as_echo_n "checking size of void *... " >&6; }
6431 if ${ac_cv_sizeof_void_p+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6435
6436 else
6437 if test "$ac_cv_type_void_p" = yes; then
6438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6440 as_fn_error 77 "cannot compute sizeof (void *)
6441 See \`config.log' for more details" "$LINENO" 5; }
6442 else
6443 ac_cv_sizeof_void_p=0
6444 fi
6445 fi
6446
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6449 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6450
6451
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6455 _ACEOF
6456
6457
6458 # The cast to long int works around a bug in the HP C Compiler
6459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6461 # This bug is HP SR number 8606223364.
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6463 $as_echo_n "checking size of short... " >&6; }
6464 if ${ac_cv_sizeof_short+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6468
6469 else
6470 if test "$ac_cv_type_short" = yes; then
6471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6473 as_fn_error 77 "cannot compute sizeof (short)
6474 See \`config.log' for more details" "$LINENO" 5; }
6475 else
6476 ac_cv_sizeof_short=0
6477 fi
6478 fi
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6482 $as_echo "$ac_cv_sizeof_short" >&6; }
6483
6484
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define SIZEOF_SHORT $ac_cv_sizeof_short
6488 _ACEOF
6489
6490
6491 # The cast to long int works around a bug in the HP C Compiler
6492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6494 # This bug is HP SR number 8606223364.
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6496 $as_echo_n "checking size of int... " >&6; }
6497 if ${ac_cv_sizeof_int+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6501
6502 else
6503 if test "$ac_cv_type_int" = yes; then
6504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6506 as_fn_error 77 "cannot compute sizeof (int)
6507 See \`config.log' for more details" "$LINENO" 5; }
6508 else
6509 ac_cv_sizeof_int=0
6510 fi
6511 fi
6512
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6515 $as_echo "$ac_cv_sizeof_int" >&6; }
6516
6517
6518
6519 cat >>confdefs.h <<_ACEOF
6520 #define SIZEOF_INT $ac_cv_sizeof_int
6521 _ACEOF
6522
6523
6524 # The cast to long int works around a bug in the HP C Compiler
6525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6527 # This bug is HP SR number 8606223364.
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6529 $as_echo_n "checking size of long... " >&6; }
6530 if ${ac_cv_sizeof_long+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6534
6535 else
6536 if test "$ac_cv_type_long" = yes; then
6537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6539 as_fn_error 77 "cannot compute sizeof (long)
6540 See \`config.log' for more details" "$LINENO" 5; }
6541 else
6542 ac_cv_sizeof_long=0
6543 fi
6544 fi
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6548 $as_echo "$ac_cv_sizeof_long" >&6; }
6549
6550
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define SIZEOF_LONG $ac_cv_sizeof_long
6554 _ACEOF
6555
6556
6557 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6558 if test "x$ac_cv_type_long_long" = xyes; then :
6559
6560 cat >>confdefs.h <<_ACEOF
6561 #define HAVE_LONG_LONG 1
6562 _ACEOF
6563
6564 # The cast to long int works around a bug in the HP C Compiler
6565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6567 # This bug is HP SR number 8606223364.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6569 $as_echo_n "checking size of long long... " >&6; }
6570 if ${ac_cv_sizeof_long_long+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6574
6575 else
6576 if test "$ac_cv_type_long_long" = yes; then
6577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6579 as_fn_error 77 "cannot compute sizeof (long long)
6580 See \`config.log' for more details" "$LINENO" 5; }
6581 else
6582 ac_cv_sizeof_long_long=0
6583 fi
6584 fi
6585
6586 fi
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6588 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6589
6590
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6594 _ACEOF
6595
6596
6597 fi
6598
6599 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6600 case $ac_cv_c_int8_t in #(
6601 no|yes) ;; #(
6602 *)
6603
6604 cat >>confdefs.h <<_ACEOF
6605 #define int8_t $ac_cv_c_int8_t
6606 _ACEOF
6607 ;;
6608 esac
6609
6610 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6611 case $ac_cv_c_int16_t in #(
6612 no|yes) ;; #(
6613 *)
6614
6615 cat >>confdefs.h <<_ACEOF
6616 #define int16_t $ac_cv_c_int16_t
6617 _ACEOF
6618 ;;
6619 esac
6620
6621 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6622 case $ac_cv_c_int32_t in #(
6623 no|yes) ;; #(
6624 *)
6625
6626 cat >>confdefs.h <<_ACEOF
6627 #define int32_t $ac_cv_c_int32_t
6628 _ACEOF
6629 ;;
6630 esac
6631
6632 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6633 case $ac_cv_c_int64_t in #(
6634 no|yes) ;; #(
6635 *)
6636
6637 cat >>confdefs.h <<_ACEOF
6638 #define int64_t $ac_cv_c_int64_t
6639 _ACEOF
6640 ;;
6641 esac
6642
6643
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6645 $as_echo_n "checking for unsigned long long int... " >&6; }
6646 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_cv_type_unsigned_long_long_int=yes
6650 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653
6654 /* For now, do not test the preprocessor; as of 2007 there are too many
6655 implementations with broken preprocessors. Perhaps this can
6656 be revisited in 2012. In the meantime, code should not expect
6657 #if to work with literals wider than 32 bits. */
6658 /* Test literals. */
6659 long long int ll = 9223372036854775807ll;
6660 long long int nll = -9223372036854775807LL;
6661 unsigned long long int ull = 18446744073709551615ULL;
6662 /* Test constant expressions. */
6663 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6664 ? 1 : -1)];
6665 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6666 ? 1 : -1)];
6667 int i = 63;
6668 int
6669 main ()
6670 {
6671 /* Test availability of runtime routines for shift and division. */
6672 long long int llmax = 9223372036854775807ll;
6673 unsigned long long int ullmax = 18446744073709551615ull;
6674 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6675 | (llmax / ll) | (llmax % ll)
6676 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6677 | (ullmax / ull) | (ullmax % ull));
6678 ;
6679 return 0;
6680 }
6681
6682 _ACEOF
6683 if ac_fn_cxx_try_link "$LINENO"; then :
6684
6685 else
6686 ac_cv_type_unsigned_long_long_int=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 fi
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6693 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6694 if test $ac_cv_type_unsigned_long_long_int = yes; then
6695
6696 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6697
6698 fi
6699
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6703 $as_echo_n "checking for long long int... " >&6; }
6704 if ${ac_cv_type_long_long_int+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 ac_cv_type_long_long_int=yes
6708 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6709 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6710 if test $ac_cv_type_long_long_int = yes; then
6711 if test "$cross_compiling" = yes; then :
6712 :
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <limits.h>
6717 #ifndef LLONG_MAX
6718 # define HALF \
6719 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6720 # define LLONG_MAX (HALF - 1 + HALF)
6721 #endif
6722 int
6723 main ()
6724 {
6725 long long int n = 1;
6726 int i;
6727 for (i = 0; ; i++)
6728 {
6729 long long int m = n << i;
6730 if (m >> i != n)
6731 return 1;
6732 if (LLONG_MAX / 2 < m)
6733 break;
6734 }
6735 return 0;
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_cxx_try_run "$LINENO"; then :
6741
6742 else
6743 ac_cv_type_long_long_int=no
6744 fi
6745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6746 conftest.$ac_objext conftest.beam conftest.$ac_ext
6747 fi
6748
6749 fi
6750 fi
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6753 $as_echo "$ac_cv_type_long_long_int" >&6; }
6754 if test $ac_cv_type_long_long_int = yes; then
6755
6756 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6757
6758 fi
6759
6760
6761
6762 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6763 if test "x$ac_cv_type_intmax_t" = xyes; then :
6764
6765 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6766
6767 else
6768 test $ac_cv_type_long_long_int = yes \
6769 && ac_type='long long int' \
6770 || ac_type='long int'
6771
6772 cat >>confdefs.h <<_ACEOF
6773 #define intmax_t $ac_type
6774 _ACEOF
6775
6776 fi
6777
6778
6779
6780 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6781 if test "x$ac_cv_type_intptr_t" = xyes; then :
6782
6783 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6784
6785 else
6786 for ac_type in 'int' 'long int' 'long long int'; do
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 $ac_includes_default
6790 int
6791 main ()
6792 {
6793 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6794 test_array [0] = 0;
6795 return test_array [0];
6796
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_cxx_try_compile "$LINENO"; then :
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define intptr_t $ac_type
6805 _ACEOF
6806
6807 ac_type=
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 test -z "$ac_type" && break
6811 done
6812 fi
6813
6814
6815 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6816 case $ac_cv_c_uint8_t in #(
6817 no|yes) ;; #(
6818 *)
6819
6820 $as_echo "#define _UINT8_T 1" >>confdefs.h
6821
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define uint8_t $ac_cv_c_uint8_t
6825 _ACEOF
6826 ;;
6827 esac
6828
6829 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6830 case $ac_cv_c_uint16_t in #(
6831 no|yes) ;; #(
6832 *)
6833
6834
6835 cat >>confdefs.h <<_ACEOF
6836 #define uint16_t $ac_cv_c_uint16_t
6837 _ACEOF
6838 ;;
6839 esac
6840
6841 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6842 case $ac_cv_c_uint32_t in #(
6843 no|yes) ;; #(
6844 *)
6845
6846 $as_echo "#define _UINT32_T 1" >>confdefs.h
6847
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define uint32_t $ac_cv_c_uint32_t
6851 _ACEOF
6852 ;;
6853 esac
6854
6855 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6856 case $ac_cv_c_uint64_t in #(
6857 no|yes) ;; #(
6858 *)
6859
6860 $as_echo "#define _UINT64_T 1" >>confdefs.h
6861
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define uint64_t $ac_cv_c_uint64_t
6865 _ACEOF
6866 ;;
6867 esac
6868
6869
6870
6871 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6873
6874 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6875
6876 else
6877 test $ac_cv_type_unsigned_long_long_int = yes \
6878 && ac_type='unsigned long long int' \
6879 || ac_type='unsigned long int'
6880
6881 cat >>confdefs.h <<_ACEOF
6882 #define uintmax_t $ac_type
6883 _ACEOF
6884
6885 fi
6886
6887
6888
6889 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6890 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6891
6892 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6893
6894 else
6895 for ac_type in 'unsigned int' 'unsigned long int' \
6896 'unsigned long long int'; do
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 $ac_includes_default
6900 int
6901 main ()
6902 {
6903 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6904 test_array [0] = 0;
6905 return test_array [0];
6906
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_cxx_try_compile "$LINENO"; then :
6912
6913 cat >>confdefs.h <<_ACEOF
6914 #define uintptr_t $ac_type
6915 _ACEOF
6916
6917 ac_type=
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 test -z "$ac_type" && break
6921 done
6922 fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6938 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6939 fi
6940
6941 # check what underlying integer type int64_t uses
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6943 $as_echo_n "checking for int64_t underlying type... " >&6; }
6944 if ${ac_cv_int64_t_type+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950
6951 #ifdef HAVE_STDINT_H
6952 #include <stdint.h>
6953 #endif
6954 template <typename T> struct X { };
6955 template <>
6956 struct X<long> { typedef long t; };
6957
6958 int
6959 main ()
6960 {
6961 X<int64_t>::t x;
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_cxx_try_compile "$LINENO"; then :
6967 ac_cv_int64_t_type=long
6968 else
6969 ac_cv_int64_t_type="long long"
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6974 $as_echo "$ac_cv_int64_t_type" >&6; }
6975 if test "$ac_cv_int64_t_type" = "long"; then
6976
6977 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6978
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982
6983 #ifdef HAVE_STDINT_H
6984 #include <stdint.h>
6985 #endif
6986 template <typename T> struct X { };
6987 template <>
6988 struct X<long long> { typedef long long t; };
6989
6990 int
6991 main ()
6992 {
6993 X<int64_t>::t x;
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_cxx_try_compile "$LINENO"; then :
6999
7000 else
7001 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7007 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7008 if ${ac_cv_std_swap_in_utility+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014
7015 #include <utility>
7016
7017 int
7018 main ()
7019 {
7020 int a, b; std::swap(a,b);
7021 ;
7022 return 0;
7023 }
7024 _ACEOF
7025 if ac_fn_cxx_try_compile "$LINENO"; then :
7026 ac_cv_std_swap_in_utility=yes
7027 else
7028 ac_cv_std_swap_in_utility=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7033 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7034 if test $ac_cv_std_swap_in_utility = yes; then
7035
7036 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7037
7038 fi
7039
7040 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7041 # If the host compiler is affected by the bug, and we build with optimization
7042 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7043 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7044 # Since there is no reliable feature check for the presence of this bug,
7045 # we simply use a GCC version number check. (This should never trigger for
7046 # stages 2 or 3 of a native bootstrap.)
7047 aliasing_flags=
7048 if test "$GCC" = yes; then
7049 saved_CXXFLAGS="$CXXFLAGS"
7050
7051 # The following test compilation will succeed if and only if $CXX accepts
7052 # -fno-strict-aliasing *and* is older than GCC 4.3.
7053 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7055 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058
7059 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7060 #error compiler not affected by placement new aliasing bug
7061 #endif
7062
7063 _ACEOF
7064 if ac_fn_cxx_try_compile "$LINENO"; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072
7073 CXXFLAGS="$saved_CXXFLAGS"
7074 fi
7075
7076
7077
7078
7079 # ---------------------
7080 # Warnings and checking
7081 # ---------------------
7082
7083 # Check $CC warning features (if it's GCC).
7084 # We want to use -pedantic, but we don't want warnings about
7085 # * 'long long'
7086 # * variadic macros
7087 # * overlong strings
7088 # * C++11 narrowing conversions in { }
7089 # So, we only use -pedantic if we can disable those warnings.
7090
7091 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7092 # Check whether --enable-build-format-warnings was given.
7093 if test "${enable_build_format_warnings+set}" = set; then :
7094 enableval=$enable_build_format_warnings;
7095 else
7096 enable_build_format_warnings=yes
7097 fi
7098
7099 if test $enable_build_format_warnings = no; then :
7100 wf_opt=-Wno-format
7101 else
7102 wf_opt=
7103 fi
7104 ac_ext=cpp
7105 ac_cpp='$CXXCPP $CPPFLAGS'
7106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7109
7110 loose_warn=
7111 save_CXXFLAGS="$CXXFLAGS"
7112 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7113 # Do the check with the no- prefix removed since gcc silently
7114 # accepts any -Wno-* option on purpose
7115 case $real_option in
7116 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7117 *) option=$real_option ;;
7118 esac
7119 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7122 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7123 if eval \${$as_acx_Woption+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 CXXFLAGS="$option"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129
7130 int
7131 main ()
7132 {
7133
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 if ac_fn_cxx_try_compile "$LINENO"; then :
7139 eval "$as_acx_Woption=yes"
7140 else
7141 eval "$as_acx_Woption=no"
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
7145 fi
7146 eval ac_res=\$$as_acx_Woption
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7148 $as_echo "$ac_res" >&6; }
7149 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7150 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7151 fi
7152 done
7153 CXXFLAGS="$save_CXXFLAGS"
7154 ac_ext=cpp
7155 ac_cpp='$CXXCPP $CPPFLAGS'
7156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7159
7160
7161
7162 ac_ext=c
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7167
7168 c_loose_warn=
7169 save_CFLAGS="$CFLAGS"
7170 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7171 # Do the check with the no- prefix removed since gcc silently
7172 # accepts any -Wno-* option on purpose
7173 case $real_option in
7174 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7175 *) option=$real_option ;;
7176 esac
7177 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7180 $as_echo_n "checking whether $CC supports $option... " >&6; }
7181 if eval \${$as_acx_Woption+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 CFLAGS="$option"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187
7188 int
7189 main ()
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 eval "$as_acx_Woption=yes"
7198 else
7199 eval "$as_acx_Woption=no"
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202
7203 fi
7204 eval ac_res=\$$as_acx_Woption
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7208 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7209 fi
7210 done
7211 CFLAGS="$save_CFLAGS"
7212 ac_ext=cpp
7213 ac_cpp='$CXXCPP $CPPFLAGS'
7214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7217
7218
7219 ac_ext=cpp
7220 ac_cpp='$CXXCPP $CPPFLAGS'
7221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7224
7225 strict_warn=
7226 save_CXXFLAGS="$CXXFLAGS"
7227 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7228 # Do the check with the no- prefix removed since gcc silently
7229 # accepts any -Wno-* option on purpose
7230 case $real_option in
7231 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7232 *) option=$real_option ;;
7233 esac
7234 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7235
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7237 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7238 if eval \${$as_acx_Woption+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 CXXFLAGS="$option"
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244
7245 int
7246 main ()
7247 {
7248
7249 ;
7250 return 0;
7251 }
7252 _ACEOF
7253 if ac_fn_cxx_try_compile "$LINENO"; then :
7254 eval "$as_acx_Woption=yes"
7255 else
7256 eval "$as_acx_Woption=no"
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259
7260 fi
7261 eval ac_res=\$$as_acx_Woption
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7263 $as_echo "$ac_res" >&6; }
7264 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7265 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7266 fi
7267 done
7268 CXXFLAGS="$save_CXXFLAGS"
7269 ac_ext=cpp
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274
7275
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281
7282 c_strict_warn=
7283 save_CFLAGS="$CFLAGS"
7284 for real_option in -Wold-style-definition -Wc++-compat; do
7285 # Do the check with the no- prefix removed since gcc silently
7286 # accepts any -Wno-* option on purpose
7287 case $real_option in
7288 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7289 *) option=$real_option ;;
7290 esac
7291 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7294 $as_echo_n "checking whether $CC supports $option... " >&6; }
7295 if eval \${$as_acx_Woption+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 CFLAGS="$option"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301
7302 int
7303 main ()
7304 {
7305
7306 ;
7307 return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"; then :
7311 eval "$as_acx_Woption=yes"
7312 else
7313 eval "$as_acx_Woption=no"
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316
7317 fi
7318 eval ac_res=\$$as_acx_Woption
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7322 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7323 fi
7324 done
7325 CFLAGS="$save_CFLAGS"
7326 ac_ext=cpp
7327 ac_cpp='$CXXCPP $CPPFLAGS'
7328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7331
7332
7333 ac_ext=cpp
7334 ac_cpp='$CXXCPP $CPPFLAGS'
7335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7338
7339 # Do the check with the no- prefix removed from the warning options
7340 # since gcc silently accepts any -Wno-* option on purpose
7341 if test "$GXX" = yes; then :
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7343 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7344 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 save_CXXFLAGS="$CXXFLAGS"
7348 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351
7352 int
7353 main ()
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_cxx_try_compile "$LINENO"; then :
7361 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7362 else
7363 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 CXXFLAGS="$save_CXXFLAGS"
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7369 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7370 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7371 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7372 fi
7373
7374 fi
7375 ac_ext=cpp
7376 ac_cpp='$CXXCPP $CPPFLAGS'
7377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7380
7381
7382 ac_ext=cpp
7383 ac_cpp='$CXXCPP $CPPFLAGS'
7384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7387
7388 # Check whether --enable-werror-always was given.
7389 if test "${enable_werror_always+set}" = set; then :
7390 enableval=$enable_werror_always;
7391 else
7392 enable_werror_always=no
7393 fi
7394
7395 if test $enable_werror_always = yes; then :
7396 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7397 fi
7398
7399 ac_ext=cpp
7400 ac_cpp='$CXXCPP $CPPFLAGS'
7401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7404
7405
7406
7407 # The above macros do nothing if the compiler is not GCC. However, the
7408 # Makefile has more goo to add other flags, so these variables are used
7409 # to enable warnings only for GCC.
7410 warn_cflags=
7411 warn_cxxflags=
7412 if test "x$GCC" = "xyes"; then
7413 warn_cflags='$(GCC_WARN_CFLAGS)'
7414 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7415 fi
7416
7417
7418
7419 # Disable exceptions and RTTI if building with g++
7420 ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426 noexception_flags=
7427 save_CFLAGS="$CFLAGS"
7428 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7429 # Do the check with the no- prefix removed since gcc silently
7430 # accepts any -Wno-* option on purpose
7431 case $real_option in
7432 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7433 *) option=$real_option ;;
7434 esac
7435 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7438 $as_echo_n "checking whether $CC supports $option... " >&6; }
7439 if eval \${$as_acx_Woption+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 CFLAGS="$option"
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445
7446 int
7447 main ()
7448 {
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 eval "$as_acx_Woption=yes"
7456 else
7457 eval "$as_acx_Woption=no"
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460
7461 fi
7462 eval ac_res=\$$as_acx_Woption
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7464 $as_echo "$ac_res" >&6; }
7465 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7466 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7467 fi
7468 done
7469 CFLAGS="$save_CFLAGS"
7470 ac_ext=cpp
7471 ac_cpp='$CXXCPP $CPPFLAGS'
7472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7475
7476
7477
7478 # Enable expensive internal checks
7479 is_release=
7480 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7481 is_release=yes
7482 fi
7483
7484 # Check whether --enable-checking was given.
7485 if test "${enable_checking+set}" = set; then :
7486 enableval=$enable_checking; ac_checking_flags="${enableval}"
7487 else
7488
7489 # Determine the default checks.
7490 if test x$is_release = x ; then
7491 ac_checking_flags=yes,extra
7492 else
7493 ac_checking_flags=release
7494 fi
7495 fi
7496
7497 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7498 for check in release $ac_checking_flags
7499 do
7500 case $check in
7501 # these set all the flags to specific states
7502 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7503 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7504 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7505 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7506 ac_tree_checking=1 ; ac_valgrind_checking= ;
7507 ac_types_checking=1 ;;
7508 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7509 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7510 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7511 ac_rtlflag_checking= ; ac_runtime_checking= ;
7512 ac_tree_checking= ; ac_valgrind_checking= ;
7513 ac_types_checking= ;;
7514 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7515 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7516 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7517 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7518 ac_tree_checking=1 ; ac_valgrind_checking= ;
7519 ac_types_checking=1 ;;
7520 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7521 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7522 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7523 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7524 ac_tree_checking= ; ac_valgrind_checking= ;
7525 ac_types_checking= ;;
7526 # these enable particular checks
7527 assert) ac_assert_checking=1 ;;
7528 df) ac_df_checking=1 ;;
7529 extra) ac_extra_checking=1 ;;
7530 fold) ac_fold_checking=1 ;;
7531 gc) ac_gc_checking=1 ;;
7532 gcac) ac_gc_always_collect=1 ;;
7533 gimple) ac_gimple_checking=1 ;;
7534 misc) ac_checking=1 ;;
7535 rtl) ac_rtl_checking=1 ;;
7536 rtlflag) ac_rtlflag_checking=1 ;;
7537 runtime) ac_runtime_checking=1 ;;
7538 tree) ac_tree_checking=1 ;;
7539 types) ac_types_checking=1 ;;
7540 valgrind) ac_valgrind_checking=1 ;;
7541 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7542 esac
7543 done
7544 IFS="$ac_save_IFS"
7545
7546 nocommon_flag=""
7547 if test x$ac_checking != x ; then
7548
7549 $as_echo "#define CHECKING_P 1" >>confdefs.h
7550
7551 nocommon_flag=-fno-common
7552 else
7553 $as_echo "#define CHECKING_P 0" >>confdefs.h
7554
7555 fi
7556
7557 if test x$ac_extra_checking != x ; then
7558
7559 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7560
7561 else
7562 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7563
7564 fi
7565 if test x$ac_df_checking != x ; then
7566
7567 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7568
7569 fi
7570 if test x$ac_assert_checking != x ; then
7571
7572 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7573
7574 fi
7575 if test x$ac_gimple_checking != x ; then
7576
7577 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7578
7579 fi
7580
7581 if test x$ac_runtime_checking != x ; then
7582
7583 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7584
7585 fi
7586 if test x$ac_tree_checking != x ; then
7587
7588 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7589
7590 TREECHECKING=yes
7591 fi
7592 if test x$ac_types_checking != x ; then
7593
7594 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7595
7596 fi
7597
7598 if test x$ac_rtl_checking != x ; then
7599
7600 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7601
7602 fi
7603 if test x$ac_rtlflag_checking != x ; then
7604
7605 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7606
7607 fi
7608 if test x$ac_gc_checking != x ; then
7609
7610 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7611
7612 fi
7613 if test x$ac_gc_always_collect != x ; then
7614
7615 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7616
7617 fi
7618 if test x$ac_fold_checking != x ; then
7619
7620 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7621
7622 fi
7623 valgrind_path_defines=
7624 valgrind_command=
7625
7626 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7627 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7628 have_valgrind_h=yes
7629 else
7630 have_valgrind_h=no
7631 fi
7632
7633
7634
7635 # It is certainly possible that there's valgrind but no valgrind.h.
7636 # GCC relies on making annotations so we must have both.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7638 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <valgrind/memcheck.h>
7642 #ifndef VALGRIND_DISCARD
7643 #error VALGRIND_DISCARD not defined
7644 #endif
7645 _ACEOF
7646 if ac_fn_cxx_try_cpp "$LINENO"; then :
7647 gcc_cv_header_valgrind_memcheck_h=yes
7648 else
7649 gcc_cv_header_valgrind_memcheck_h=no
7650 fi
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7653 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7655 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <memcheck.h>
7659 #ifndef VALGRIND_DISCARD
7660 #error VALGRIND_DISCARD not defined
7661 #endif
7662 _ACEOF
7663 if ac_fn_cxx_try_cpp "$LINENO"; then :
7664 gcc_cv_header_memcheck_h=yes
7665 else
7666 gcc_cv_header_memcheck_h=no
7667 fi
7668 rm -f conftest.err conftest.i conftest.$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7670 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7671 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7672
7673 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7674
7675 fi
7676 if test $gcc_cv_header_memcheck_h = yes; then
7677
7678 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7679
7680 fi
7681
7682 if test x$ac_valgrind_checking != x ; then
7683
7684 # Prepare PATH_SEPARATOR.
7685 # The user is always right.
7686 if test "${PATH_SEPARATOR+set}" != set; then
7687 echo "#! /bin/sh" >conf$$.sh
7688 echo "exit 0" >>conf$$.sh
7689 chmod +x conf$$.sh
7690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7691 PATH_SEPARATOR=';'
7692 else
7693 PATH_SEPARATOR=:
7694 fi
7695 rm -f conf$$.sh
7696 fi
7697
7698 # Find out how to test for executable files. Don't use a zero-byte file,
7699 # as systems may use methods other than mode bits to determine executability.
7700 cat >conf$$.file <<_ASEOF
7701 #! /bin/sh
7702 exit 0
7703 _ASEOF
7704 chmod +x conf$$.file
7705 if test -x conf$$.file >/dev/null 2>&1; then
7706 ac_executable_p="test -x"
7707 else
7708 ac_executable_p="test -f"
7709 fi
7710 rm -f conf$$.file
7711
7712 # Extract the first word of "valgrind", so it can be a program name with args.
7713 set dummy valgrind; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_path_valgrind_path+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 case "$valgrind_path" in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7725 for ac_dir in $PATH; do
7726 IFS="$ac_save_IFS"
7727 test -z "$ac_dir" && ac_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7730 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7731 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7732 break 2
7733 fi
7734 fi
7735 done
7736 done
7737 IFS="$ac_save_IFS"
7738 ;;
7739 esac
7740 fi
7741 valgrind_path="$ac_cv_path_valgrind_path"
7742 if test -n "$valgrind_path"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7744 $as_echo "$valgrind_path" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750 if test "x$valgrind_path" = "x" \
7751 || (test $have_valgrind_h = no \
7752 && test $gcc_cv_header_memcheck_h = no \
7753 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7754 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7755 fi
7756 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7757 valgrind_command="$valgrind_path -q"
7758
7759 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7760
7761 fi
7762
7763
7764
7765 # Enable code coverage collection
7766 # Check whether --enable-coverage was given.
7767 if test "${enable_coverage+set}" = set; then :
7768 enableval=$enable_coverage; case "${enableval}" in
7769 yes|noopt)
7770 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7771 ;;
7772 opt)
7773 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7774 ;;
7775 no)
7776 # a.k.a. --disable-coverage
7777 coverage_flags=""
7778 ;;
7779 *)
7780 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7781 ;;
7782 esac
7783 else
7784 coverage_flags=""
7785 fi
7786
7787
7788
7789 # Check whether --enable-gather-detailed-mem-stats was given.
7790 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7791 enableval=$enable_gather_detailed_mem_stats;
7792 else
7793 enable_gather_detailed_mem_stats=no
7794 fi
7795
7796 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define GATHER_STATISTICS $gather_stats
7800 _ACEOF
7801
7802
7803 # Check whether --enable-valgrind-annotations was given.
7804 if test "${enable_valgrind_annotations+set}" = set; then :
7805 enableval=$enable_valgrind_annotations;
7806 else
7807 enable_valgrind_annotations=no
7808 fi
7809
7810 if test x$enable_valgrind_annotations != xno \
7811 || test x$ac_valgrind_checking != x; then
7812 if (test $have_valgrind_h = no \
7813 && test $gcc_cv_header_memcheck_h = no \
7814 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7815 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7816 fi
7817
7818 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7819
7820 fi
7821
7822 # -------------------------------
7823 # Miscenalleous configure options
7824 # -------------------------------
7825
7826 # Determine whether or not multilibs are enabled.
7827 # Check whether --enable-multilib was given.
7828 if test "${enable_multilib+set}" = set; then :
7829 enableval=$enable_multilib;
7830 else
7831 enable_multilib=yes
7832 fi
7833
7834
7835
7836 # Determine whether or not multiarch is enabled.
7837 # Check whether --enable-multiarch was given.
7838 if test "${enable_multiarch+set}" = set; then :
7839 enableval=$enable_multiarch; case "${enableval}" in
7840 yes|no|auto) enable_multiarch=$enableval;;
7841 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7842 esac
7843 else
7844 enable_multiarch=auto
7845 fi
7846
7847 if test x${enable_multiarch} = xauto; then
7848 if test x${with_native_system_header_dir} != x; then
7849 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7850 enable_multiarch=no
7851 fi
7852 if test x$host != x$target && test "x$with_sysroot" = x; then
7853 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7854 enable_multiarch=no
7855 fi
7856 fi
7857 if test x${enable_multiarch} = xyes; then
7858
7859 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7863 $as_echo_n "checking for multiarch configuration... " >&6; }
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7866 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7867
7868 # needed for setting the multiarch name for soft-float/hard-float ABIs
7869
7870
7871
7872 # default stack clash protection guard size as power of twos in bytes.
7873 # Please keep these in sync with params.def.
7874 stk_clash_min=12
7875 stk_clash_max=30
7876
7877 # Keep the default value when the option is not used to 0, this allows us to
7878 # distinguish between the cases where the user specifially set a value via
7879 # configure and when the normal default value is used.
7880
7881 # Check whether --with-stack-clash-protection-guard-size was given.
7882 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7883 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7884 else
7885 DEFAULT_STK_CLASH_GUARD_SIZE=0
7886 fi
7887
7888 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7889 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7890 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7891 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
7892 fi
7893
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7897 _ACEOF
7898
7899
7900 # Specify the number of splits of match.pd to generate.
7901
7902 # Check whether --with-matchpd-partitions was given.
7903 if test "${with_matchpd_partitions+set}" = set; then :
7904 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7905 else
7906 DEFAULT_MATCHPD_PARTITIONS=10
7907 fi
7908
7909 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7910 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7911 fi
7912
7913
7914
7915 # Enable __cxa_atexit for C++.
7916 # Check whether --enable-__cxa_atexit was given.
7917 if test "${enable___cxa_atexit+set}" = set; then :
7918 enableval=$enable___cxa_atexit;
7919 fi
7920
7921
7922 # Enable C extension for decimal float if target supports it.
7923
7924 # Check whether --enable-decimal-float was given.
7925 if test "${enable_decimal_float+set}" = set; then :
7926 enableval=$enable_decimal_float;
7927 case $enable_decimal_float in
7928 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7929 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7930 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7931 esac
7932
7933 else
7934
7935 case $target in
7936 aarch64* | \
7937 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7938 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7939 i?86*-*-mingw* | x86_64*-*-mingw* | \
7940 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7941 enable_decimal_float=yes
7942 ;;
7943 *)
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7945 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7946 enable_decimal_float=no
7947 ;;
7948 esac
7949
7950 fi
7951
7952
7953 # x86's use BID format instead of DPD
7954 case x$enable_decimal_float in
7955 xyes)
7956 case $target in
7957 aarch64* | i?86*-*-* | x86_64*-*-*)
7958 enable_decimal_float=bid
7959 ;;
7960 *)
7961 enable_decimal_float=dpd
7962 ;;
7963 esac
7964 default_decimal_float=$enable_decimal_float
7965 ;;
7966 xno)
7967 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7968 # dependency on libdecnumber.
7969 default_decimal_float=dpd
7970 ;;
7971 esac
7972
7973
7974
7975
7976 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define ENABLE_DECIMAL_FLOAT $dfp
7980 _ACEOF
7981
7982
7983 # Use default_decimal_float for dependency.
7984 enable_decimal_float=$default_decimal_float
7985
7986 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7987
7988 cat >>confdefs.h <<_ACEOF
7989 #define ENABLE_DECIMAL_BID_FORMAT $bid
7990 _ACEOF
7991
7992
7993 # Enable C extension for fixed-point arithmetic.
7994 # Check whether --enable-fixed-point was given.
7995 if test "${enable_fixed_point+set}" = set; then :
7996 enableval=$enable_fixed_point;
7997 else
7998
7999 case $target in
8000 arm*)
8001 enable_fixed_point=yes
8002 ;;
8003
8004 mips*-*-*)
8005 enable_fixed_point=yes
8006 ;;
8007 loongarch*-*-*)
8008 enable_fixed_point=yes
8009 ;;
8010 *)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8012 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8013 enable_fixed_point=no
8014 ;;
8015 esac
8016
8017 fi
8018
8019
8020
8021 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8022
8023 cat >>confdefs.h <<_ACEOF
8024 #define ENABLE_FIXED_POINT $fixedpoint
8025 _ACEOF
8026
8027
8028 # Enable threads
8029 # Pass with no value to take the default
8030 # Pass with a value to specify a thread package
8031 # Check whether --enable-threads was given.
8032 if test "${enable_threads+set}" = set; then :
8033 enableval=$enable_threads;
8034 else
8035 enable_threads=''
8036 fi
8037
8038
8039 # Check whether --enable-tls was given.
8040 if test "${enable_tls+set}" = set; then :
8041 enableval=$enable_tls;
8042 case $enable_tls in
8043 yes | no) ;;
8044 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8045 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8046 esac
8047
8048 else
8049 enable_tls=''
8050 fi
8051
8052
8053 # Check whether --enable-vtable-verify was given.
8054 if test "${enable_vtable_verify+set}" = set; then :
8055 enableval=$enable_vtable_verify;
8056 else
8057 enable_vtable_verify=no
8058 fi
8059
8060 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8061
8062 cat >>confdefs.h <<_ACEOF
8063 #define ENABLE_VTABLE_VERIFY $vtable_verify
8064 _ACEOF
8065
8066
8067 # Check whether --enable-analyzer was given.
8068 if test "${enable_analyzer+set}" = set; then :
8069 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8070 analyzer=0
8071 else
8072 analyzer=1
8073 fi
8074 else
8075 analyzer=1
8076 fi
8077
8078
8079 cat >>confdefs.h <<_ACEOF
8080 #define ENABLE_ANALYZER $analyzer
8081 _ACEOF
8082
8083
8084 # Check whether --enable-objc-gc was given.
8085 if test "${enable_objc_gc+set}" = set; then :
8086 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8087 objc_boehm_gc=''
8088 else
8089 objc_boehm_gc=1
8090 fi
8091 else
8092 objc_boehm_gc=''
8093 fi
8094
8095
8096
8097 # Check whether --with-dwarf2 was given.
8098 if test "${with_dwarf2+set}" = set; then :
8099 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8100 else
8101 dwarf2=no
8102 fi
8103
8104
8105 # Check whether --enable-shared was given.
8106 if test "${enable_shared+set}" = set; then :
8107 enableval=$enable_shared;
8108 case $enable_shared in
8109 yes | no) ;;
8110 *)
8111 enable_shared=no
8112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8113 for pkg in $enableval; do
8114 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8115 enable_shared=yes
8116 fi
8117 done
8118 IFS="$ac_save_ifs"
8119 ;;
8120 esac
8121
8122 else
8123 enable_shared=yes
8124 fi
8125
8126
8127
8128 # Check whether --enable-gcov was given.
8129 if test "${enable_gcov+set}" = set; then :
8130 enableval=$enable_gcov;
8131 else
8132 case $target in
8133 bpf-*-*)
8134 enable_gcov=no
8135 ;;
8136 *)
8137 enable_gcov=yes
8138 ;;
8139 esac
8140 fi
8141
8142
8143
8144
8145
8146 # Check whether --with-specs was given.
8147 if test "${with_specs+set}" = set; then :
8148 withval=$with_specs; CONFIGURE_SPECS=$withval
8149 else
8150 CONFIGURE_SPECS=
8151
8152 fi
8153
8154
8155
8156
8157
8158 # Check whether --with-pkgversion was given.
8159 if test "${with_pkgversion+set}" = set; then :
8160 withval=$with_pkgversion; case "$withval" in
8161 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8162 no) PKGVERSION= ;;
8163 *) PKGVERSION="($withval) " ;;
8164 esac
8165 else
8166 PKGVERSION="(GCC) "
8167
8168 fi
8169
8170
8171
8172
8173
8174 # Check whether --with-bugurl was given.
8175 if test "${with_bugurl+set}" = set; then :
8176 withval=$with_bugurl; case "$withval" in
8177 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8178 no) BUGURL=
8179 ;;
8180 *) BUGURL="$withval"
8181 ;;
8182 esac
8183 else
8184 BUGURL="https://gcc.gnu.org/bugs/"
8185
8186 fi
8187
8188 case ${BUGURL} in
8189 "")
8190 REPORT_BUGS_TO=
8191 REPORT_BUGS_TEXI=
8192 ;;
8193 *)
8194 REPORT_BUGS_TO="<$BUGURL>"
8195 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8196 ;;
8197 esac;
8198
8199
8200
8201
8202 # Allow overriding the default URL for documentation
8203
8204 # Check whether --with-documentation-root-url was given.
8205 if test "${with_documentation_root_url+set}" = set; then :
8206 withval=$with_documentation_root_url; case "$withval" in
8207 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8208 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8209 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8210 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8211 esac
8212 else
8213 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8214
8215 fi
8216
8217
8218 cat >>confdefs.h <<_ACEOF
8219 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8220 _ACEOF
8221
8222
8223 # Allow overriding the default URL for GCC changes
8224
8225 # Check whether --with-changes-root-url was given.
8226 if test "${with_changes_root_url+set}" = set; then :
8227 withval=$with_changes_root_url; case "$withval" in
8228 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8229 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8230 */) CHANGES_ROOT_URL="$withval" ;;
8231 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8232 esac
8233 else
8234 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8235
8236 fi
8237
8238
8239 cat >>confdefs.h <<_ACEOF
8240 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8241 _ACEOF
8242
8243
8244 # Sanity check enable_languages in case someone does not run the toplevel
8245 # configure # script.
8246 # Check whether --enable-languages was given.
8247 if test "${enable_languages+set}" = set; then :
8248 enableval=$enable_languages; case ,${enable_languages}, in
8249 ,,|,yes,)
8250 # go safe -- we cannot be much sure without the toplevel
8251 # configure's
8252 # analysis of which target libs are present and usable
8253 enable_languages=c
8254 ;;
8255 *,all,*)
8256 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8257 ;;
8258 *,c,*)
8259 ;;
8260 *)
8261 enable_languages=c,${enable_languages}
8262 ;;
8263 esac
8264 else
8265 enable_languages=c
8266 fi
8267
8268
8269 # If top-level libada has been disabled, then wire in install-gnatlib
8270 # invocation with `make install', so that one can build and install
8271 # the library manually with `make -C gcc all gnatlib gnattools install'.
8272 if test x"$enable_libada" = xno; then
8273 gnat_install_lib=gnat-install-lib
8274 else
8275 gnat_install_lib=
8276 fi
8277
8278
8279 if test x"$enable_as_accelerator_for" != x; then
8280
8281 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8282
8283 enable_as_accelerator=yes
8284 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8285 program_transform_name=`echo $program_transform_name | sed $sedscript`
8286 accel_dir_suffix=/accel/${target_noncanonical}
8287 real_target_noncanonical=${enable_as_accelerator_for}
8288 fi
8289
8290
8291
8292
8293 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8294 tgt=`echo $tgt | sed 's/=.*//'`
8295
8296 enable_offloading=1
8297 case "$tgt" in
8298 amdgcn*)
8299 omp_device_property=omp-device-properties-gcn
8300 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8301 ;;
8302 nvptx*)
8303 omp_device_property=omp-device-properties-nvptx
8304 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8305 ;;
8306 *)
8307 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8308 ;;
8309 esac
8310 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8311 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8312
8313 if test x"$offload_targets" = x; then
8314 offload_targets=$tgt
8315 else
8316 offload_targets="$offload_targets,$tgt"
8317 fi
8318 done
8319
8320
8321
8322
8323 cat >>confdefs.h <<_ACEOF
8324 #define OFFLOAD_TARGETS "$offload_targets"
8325 _ACEOF
8326
8327 if test x"$enable_offloading" != x; then
8328
8329 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8330
8331 else
8332
8333 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8334
8335 fi
8336
8337 if test "x$enable_offload_defaulted" = xyes; then
8338
8339 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8340
8341 fi
8342
8343
8344 # Check whether --with-multilib-list was given.
8345 if test "${with_multilib_list+set}" = set; then :
8346 withval=$with_multilib_list; :
8347 else
8348 with_multilib_list=default
8349 fi
8350
8351
8352
8353 # Check whether --with-multilib-generator was given.
8354 if test "${with_multilib_generator+set}" = set; then :
8355 withval=$with_multilib_generator; :
8356 else
8357 with_multilib_generator=default
8358 fi
8359
8360
8361 # -------------------------
8362 # Checks for other programs
8363 # -------------------------
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8366 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8367 set x ${MAKE-make}
8368 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8369 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat >conftest.make <<\_ACEOF
8373 SHELL = /bin/sh
8374 all:
8375 @echo '@@@%%%=$(MAKE)=@@@%%%'
8376 _ACEOF
8377 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8379 *@@@%%%=?*=@@@%%%*)
8380 eval ac_cv_prog_make_${ac_make}_set=yes;;
8381 *)
8382 eval ac_cv_prog_make_${ac_make}_set=no;;
8383 esac
8384 rm -f conftest.make
8385 fi
8386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8389 SET_MAKE=
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 SET_MAKE="MAKE=${MAKE-make}"
8394 fi
8395
8396
8397 # Find some useful tools
8398 for ac_prog in gawk mawk nawk awk
8399 do
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_AWK+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$AWK"; then
8408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_AWK="$ac_prog"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 AWK=$ac_cv_prog_AWK
8428 if test -n "$AWK"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8430 $as_echo "$AWK" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 test -n "$AWK" && break
8438 done
8439
8440 # We need awk to create options.cc and options.h.
8441 # Bail out if it's missing.
8442 case ${AWK} in
8443 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8444 esac
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8447 $as_echo_n "checking whether ln -s works... " >&6; }
8448 if ${gcc_cv_prog_LN_S+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 rm -f conftestdata_t
8452 echo >conftestdata_f
8453 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8454 then
8455 gcc_cv_prog_LN_S="ln -s"
8456 else
8457 if ln conftestdata_f conftestdata_t 2>/dev/null
8458 then
8459 gcc_cv_prog_LN_S=ln
8460 else
8461 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8462 then
8463 gcc_cv_prog_LN_S="cp -p"
8464 else
8465 gcc_cv_prog_LN_S=cp
8466 fi
8467 fi
8468 fi
8469 rm -f conftestdata_f conftestdata_t
8470
8471 fi
8472 LN_S="$gcc_cv_prog_LN_S"
8473 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475 $as_echo "yes" >&6; }
8476 else
8477 if test "$gcc_cv_prog_LN_S" = "ln"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8479 $as_echo "no, using ln" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8482 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8483 fi
8484 fi
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8487 $as_echo_n "checking whether ln works... " >&6; }
8488 if ${acx_cv_prog_LN+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 rm -f conftestdata_t
8492 echo >conftestdata_f
8493 if ln conftestdata_f conftestdata_t 2>/dev/null
8494 then
8495 acx_cv_prog_LN=ln
8496 else
8497 acx_cv_prog_LN=no
8498 fi
8499 rm -f conftestdata_f conftestdata_t
8500
8501 fi
8502 if test $acx_cv_prog_LN = no; then
8503 LN="$LN_S"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8505 $as_echo "no, using $LN" >&6; }
8506 else
8507 LN="$acx_cv_prog_LN"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8509 $as_echo "yes" >&6; }
8510 fi
8511
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_RANLIB+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$RANLIB"; then
8521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537
8538 fi
8539 fi
8540 RANLIB=$ac_cv_prog_RANLIB
8541 if test -n "$RANLIB"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8543 $as_echo "$RANLIB" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 fi
8551 if test -z "$ac_cv_prog_RANLIB"; then
8552 ac_ct_RANLIB=$RANLIB
8553 # Extract the first word of "ranlib", so it can be a program name with args.
8554 set dummy ranlib; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$ac_ct_RANLIB"; then
8561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_ac_ct_RANLIB="ranlib"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8573 fi
8574 done
8575 done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8581 if test -n "$ac_ct_RANLIB"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8583 $as_echo "$ac_ct_RANLIB" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589 if test "x$ac_ct_RANLIB" = x; then
8590 RANLIB=":"
8591 else
8592 case $cross_compiling:$ac_tool_warned in
8593 yes:)
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8597 esac
8598 RANLIB=$ac_ct_RANLIB
8599 fi
8600 else
8601 RANLIB="$ac_cv_prog_RANLIB"
8602 fi
8603
8604 ranlib_flags=""
8605
8606
8607 # Find a good install program. We prefer a C program (faster),
8608 # so one script is as good as another. But avoid the broken or
8609 # incompatible versions:
8610 # SysV /etc/install, /usr/sbin/install
8611 # SunOS /usr/etc/install
8612 # IRIX /sbin/install
8613 # AIX /bin/install
8614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8616 # ./install, which can be erroneously created by make from ./install.sh.
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8618 $as_echo_n "checking for a BSD compatible install... " >&6; }
8619 if test -z "$INSTALL"; then
8620 if ${ac_cv_path_install+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8624 for ac_dir in $PATH; do
8625 # Account for people who put trailing slashes in PATH elements.
8626 case "$ac_dir/" in
8627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8628 *)
8629 # OSF1 and SCO ODT 3.0 have their own names for install.
8630 for ac_prog in ginstall scoinst install; do
8631 if test -f $ac_dir/$ac_prog; then
8632 if test $ac_prog = install &&
8633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8634 # AIX install. It has an incompatible calling convention.
8635 # OSF/1 installbsd also uses dspmsg, but is usable.
8636 :
8637 else
8638 ac_cv_path_install="$ac_dir/$ac_prog -c"
8639 break 2
8640 fi
8641 fi
8642 done
8643 ;;
8644 esac
8645 done
8646 IFS="$ac_save_IFS"
8647
8648 fi
8649 if test "${ac_cv_path_install+set}" = set; then
8650 INSTALL="$ac_cv_path_install"
8651 else
8652 # As a last resort, use the slow shell script. We don't cache a
8653 # path for INSTALL within a source directory, because that will
8654 # break other packages using the cache if that directory is
8655 # removed, or if the path is relative.
8656 INSTALL="$ac_install_sh"
8657 fi
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8660 $as_echo "$INSTALL" >&6; }
8661
8662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8663 # It thinks the first close brace ends the variable substitution.
8664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8665
8666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8667
8668
8669 # See if cmp has --ignore-initial.
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8671 $as_echo_n "checking for cmp's capabilities... " >&6; }
8672 if ${gcc_cv_prog_cmp_skip+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 echo abfoo >t1
8676 echo cdfoo >t2
8677 gcc_cv_prog_cmp_skip=slowcompare
8678 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8679 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8680 :
8681 else
8682 gcc_cv_prog_cmp_skip=gnucompare
8683 fi
8684 fi
8685 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8686 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8687 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8688 :
8689 else
8690 gcc_cv_prog_cmp_skip=fastcompare
8691 fi
8692 fi
8693 fi
8694 rm t1 t2
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8698 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8699 make_compare_target=$gcc_cv_prog_cmp_skip
8700
8701
8702
8703 # See if we have the mktemp command.
8704 # Extract the first word of "mktemp", so it can be a program name with args.
8705 set dummy mktemp; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$have_mktemp_command"; then
8712 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_have_mktemp_command="yes"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725 done
8726 done
8727 IFS=$as_save_IFS
8728
8729 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8730 fi
8731 fi
8732 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8733 if test -n "$have_mktemp_command"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8735 $as_echo "$have_mktemp_command" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8739 fi
8740
8741
8742
8743 # See if makeinfo has been installed and is modern enough
8744 # that we can use it.
8745
8746 # Extract the first word of "makeinfo", so it can be a program name with args.
8747 set dummy makeinfo; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_MAKEINFO+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$MAKEINFO"; then
8754 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_MAKEINFO="makeinfo"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767 done
8768 done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 MAKEINFO=$ac_cv_prog_MAKEINFO
8774 if test -n "$MAKEINFO"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8776 $as_echo "$MAKEINFO" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782
8783 if test -n "$MAKEINFO"; then
8784 # Found it, now check the version.
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8786 $as_echo_n "checking for modern makeinfo... " >&6; }
8787 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8791 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8792
8793 case $ac_prog_version in
8794 '') gcc_cv_prog_makeinfo_modern=no;;
8795 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8796 *) gcc_cv_prog_makeinfo_modern=no;;
8797 esac
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8801 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8802 else
8803 gcc_cv_prog_makeinfo_modern=no
8804 fi
8805 if test $gcc_cv_prog_makeinfo_modern = no; then
8806 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8807 fi
8808
8809 if test $gcc_cv_prog_makeinfo_modern = no; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8811 *** Makeinfo is missing or too old.
8812 *** Info documentation will not be built." >&5
8813 $as_echo "$as_me: WARNING:
8814 *** Makeinfo is missing or too old.
8815 *** Info documentation will not be built." >&2;}
8816 BUILD_INFO=
8817 else
8818 BUILD_INFO=info
8819 fi
8820
8821
8822 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8823 # If it does, we want to pass it to makeinfo in order to restore the old
8824 # behavior of @{summary,}contents placement.
8825 MAKEINFO_TOC_INLINE_FLAG=
8826 if test x"$MAKEINFO" != x; then :
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8829 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8830 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833
8834 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8835 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8836 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8837 gcc_cv_texi_add_toc_inline_flags=no
8838 else
8839 gcc_cv_texi_add_toc_inline_flags=yes
8840 fi
8841
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8844 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8845 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8846 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8847 fi
8848
8849 fi
8850
8851
8852 # Is pod2man recent enough to regenerate manpages?
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8854 $as_echo_n "checking for recent Pod::Man... " >&6; }
8855 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8857 $as_echo "yes" >&6; }
8858 GENERATED_MANPAGES=generated-manpages
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 GENERATED_MANPAGES=
8863 fi
8864
8865
8866 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8867
8868 # How about lex?
8869 for ac_prog in flex
8870 do
8871 # Extract the first word of "$ac_prog", so it can be a program name with args.
8872 set dummy $ac_prog; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_FLEX+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$FLEX"; then
8879 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_FLEX="$ac_prog"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892 done
8893 done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 FLEX=$ac_cv_prog_FLEX
8899 if test -n "$FLEX"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8901 $as_echo "$FLEX" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908 test -n "$FLEX" && break
8909 done
8910 test -n "$FLEX" || FLEX="$MISSING flex"
8911
8912
8913 # Bison?
8914 for ac_prog in bison
8915 do
8916 # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy $ac_prog; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_BISON+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$BISON"; then
8924 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_BISON="$ac_prog"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 BISON=$ac_cv_prog_BISON
8944 if test -n "$BISON"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8946 $as_echo "$BISON" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951
8952
8953 test -n "$BISON" && break
8954 done
8955 test -n "$BISON" || BISON="$MISSING bison"
8956
8957
8958 # Python3?
8959
8960 # Extract the first word of "python3", so it can be a program name with args.
8961 set dummy python3; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_PYTHON+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -n "$PYTHON"; then
8968 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_PYTHON="python3"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8980 fi
8981 done
8982 done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 PYTHON=$ac_cv_prog_PYTHON
8988 if test -n "$PYTHON"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8990 $as_echo "$PYTHON" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8994 fi
8995
8996
8997 if test -n "$PYTHON"; then
8998 # Found it, now check the version.
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9000 $as_echo_n "checking for modern python3... " >&6; }
9001 if ${gcc_cv_prog_python3_modern+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 ac_prog_version=`eval $PYTHON --version 2>&1 |
9005 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9006
9007 case $ac_prog_version in
9008 '') gcc_cv_prog_python3_modern=no;;
9009 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9010 *) gcc_cv_prog_python3_modern=no;;
9011 esac
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9015 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9016 else
9017 gcc_cv_prog_python3_modern=no
9018 fi
9019 if test $gcc_cv_prog_python3_modern = no; then
9020 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9021 fi
9022
9023 if test $gcc_cv_prog_python3_modern = no; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9025 *** Python3 is missing.
9026 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9027 $as_echo "$as_me: WARNING:
9028 *** Python3 is missing.
9029 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9030 HAVE_PYTHON=no
9031 else
9032 HAVE_PYTHON=yes
9033 fi
9034
9035
9036 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9037 # check for build == host before using them.
9038
9039 # NM
9040 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9041 && test -d ../binutils ; then
9042 NM='${objdir}/../binutils/nm-new'
9043 else
9044 # Extract the first word of "nm", so it can be a program name with args.
9045 set dummy nm; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_NM+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 if test -n "$NM"; then
9052 ac_cv_prog_NM="$NM" # Let the user override the test.
9053 else
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061 ac_cv_prog_NM="nm"
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063 break 2
9064 fi
9065 done
9066 done
9067 IFS=$as_save_IFS
9068
9069 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9070 fi
9071 fi
9072 NM=$ac_cv_prog_NM
9073 if test -n "$NM"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9075 $as_echo "$NM" >&6; }
9076 else
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082 fi
9083
9084 # AR
9085 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9086 && test -d ../binutils ; then
9087 AR='${objdir}/../binutils/ar'
9088 else
9089 # Extract the first word of "ar", so it can be a program name with args.
9090 set dummy ar; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_AR+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test -n "$AR"; then
9097 ac_cv_prog_AR="$AR" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_AR="ar"
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9109 fi
9110 done
9111 done
9112 IFS=$as_save_IFS
9113
9114 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9115 fi
9116 fi
9117 AR=$ac_cv_prog_AR
9118 if test -n "$AR"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9120 $as_echo "$AR" >&6; }
9121 else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125
9126
9127 fi
9128
9129 # The jit documentation looks better if built with sphinx, but can be
9130 # built with texinfo if sphinx is not available.
9131 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9132 # Extract the first word of "sphinx-build", so it can be a program name with args.
9133 set dummy sphinx-build; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_prog_doc_build_sys+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 if test -n "$doc_build_sys"; then
9140 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9141 else
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9144 do
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_doc_build_sys="sphinx"
9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153 done
9154 done
9155 IFS=$as_save_IFS
9156
9157 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9158 fi
9159 fi
9160 doc_build_sys=$ac_cv_prog_doc_build_sys
9161 if test -n "$doc_build_sys"; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9163 $as_echo "$doc_build_sys" >&6; }
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9167 fi
9168
9169
9170
9171 # --------------------
9172 # Checks for C headers
9173 # --------------------
9174
9175 # Need to reject headers which give warnings, so that the -Werror bootstrap
9176 # works later. *sigh* This needs to come before all header checks.
9177
9178 ac_c_preproc_warn_flag=yes
9179
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9181 $as_echo_n "checking for ANSI C header files... " >&6; }
9182 if ${ac_cv_header_stdc+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #include <stdlib.h>
9188 #include <stdarg.h>
9189 #include <string.h>
9190 #include <float.h>
9191
9192 int
9193 main ()
9194 {
9195
9196 ;
9197 return 0;
9198 }
9199 _ACEOF
9200 if ac_fn_cxx_try_compile "$LINENO"; then :
9201 ac_cv_header_stdc=yes
9202 else
9203 ac_cv_header_stdc=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206
9207 if test $ac_cv_header_stdc = yes; then
9208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <string.h>
9212
9213 _ACEOF
9214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9215 $EGREP "memchr" >/dev/null 2>&1; then :
9216
9217 else
9218 ac_cv_header_stdc=no
9219 fi
9220 rm -f conftest*
9221
9222 fi
9223
9224 if test $ac_cv_header_stdc = yes; then
9225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 #include <stdlib.h>
9229
9230 _ACEOF
9231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9232 $EGREP "free" >/dev/null 2>&1; then :
9233
9234 else
9235 ac_cv_header_stdc=no
9236 fi
9237 rm -f conftest*
9238
9239 fi
9240
9241 if test $ac_cv_header_stdc = yes; then
9242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9243 if test "$cross_compiling" = yes; then :
9244 :
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #include <ctype.h>
9249 #include <stdlib.h>
9250 #if ((' ' & 0x0FF) == 0x020)
9251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9253 #else
9254 # define ISLOWER(c) \
9255 (('a' <= (c) && (c) <= 'i') \
9256 || ('j' <= (c) && (c) <= 'r') \
9257 || ('s' <= (c) && (c) <= 'z'))
9258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9259 #endif
9260
9261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9262 int
9263 main ()
9264 {
9265 int i;
9266 for (i = 0; i < 256; i++)
9267 if (XOR (islower (i), ISLOWER (i))
9268 || toupper (i) != TOUPPER (i))
9269 return 2;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_cxx_try_run "$LINENO"; then :
9274
9275 else
9276 ac_cv_header_stdc=no
9277 fi
9278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9280 fi
9281
9282 fi
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9285 $as_echo "$ac_cv_header_stdc" >&6; }
9286 if test $ac_cv_header_stdc = yes; then
9287
9288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9289
9290 fi
9291
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9294 if ${ac_cv_header_time+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/time.h>
9301 #include <time.h>
9302
9303 int
9304 main ()
9305 {
9306 if ((struct tm *) 0)
9307 return 0;
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_cxx_try_compile "$LINENO"; then :
9313 ac_cv_header_time=yes
9314 else
9315 ac_cv_header_time=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9320 $as_echo "$ac_cv_header_time" >&6; }
9321 if test $ac_cv_header_time = yes; then
9322
9323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9324
9325 fi
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9329 if ${gcc_cv_header_string+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 #include <string.h>
9335 #include <strings.h>
9336 int
9337 main ()
9338 {
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_cxx_try_compile "$LINENO"; then :
9345 gcc_cv_header_string=yes
9346 else
9347 gcc_cv_header_string=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9352 $as_echo "$gcc_cv_header_string" >&6; }
9353 if test $gcc_cv_header_string = yes; then
9354
9355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9356
9357 fi
9358
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9360 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9361 if ${ac_cv_header_sys_wait_h+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9367 #include <sys/wait.h>
9368 #ifndef WEXITSTATUS
9369 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9370 #endif
9371 #ifndef WIFEXITED
9372 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 int s;
9379 wait (&s);
9380 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_cxx_try_compile "$LINENO"; then :
9386 ac_cv_header_sys_wait_h=yes
9387 else
9388 ac_cv_header_sys_wait_h=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9393 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9394 if test $ac_cv_header_sys_wait_h = yes; then
9395
9396 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9397
9398 fi
9399
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9401 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9402 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9408 #include <termios.h>
9409 #ifdef TIOCGWINSZ
9410 yes
9411 #endif
9412
9413 _ACEOF
9414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9415 $EGREP "yes" >/dev/null 2>&1; then :
9416 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9417 else
9418 ac_cv_sys_tiocgwinsz_in_termios_h=no
9419 fi
9420 rm -f conftest*
9421
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9424 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9425
9426 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9428 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9429 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <sys/ioctl.h>
9436 #ifdef TIOCGWINSZ
9437 yes
9438 #endif
9439
9440 _ACEOF
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "yes" >/dev/null 2>&1; then :
9443 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9444 else
9445 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9446 fi
9447 rm -f conftest*
9448
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9451 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9452
9453 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9454
9455 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9456
9457 fi
9458 fi
9459
9460 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9461 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9462 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9463 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9464 do :
9465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9466 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9468 cat >>confdefs.h <<_ACEOF
9469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470 _ACEOF
9471
9472 fi
9473 done
9474
9475
9476 # Check for thread headers.
9477 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9478 if test "x$ac_cv_header_thread_h" = xyes; then :
9479 have_thread_h=yes
9480 else
9481 have_thread_h=
9482 fi
9483
9484 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9485 if test "x$ac_cv_header_pthread_h" = xyes; then :
9486 have_pthread_h=yes
9487 else
9488 have_pthread_h=
9489 fi
9490
9491
9492 # These tests can't be done till we know if we have limits.h.
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9494 $as_echo_n "checking for CHAR_BIT... " >&6; }
9495 if ${gcc_cv_decl_char_bit+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #ifdef HAVE_LIMITS_H
9501 #include <limits.h>
9502 #endif
9503 #ifdef CHAR_BIT
9504 found
9505 #endif
9506 _ACEOF
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 $EGREP "found" >/dev/null 2>&1; then :
9509 gcc_cv_decl_char_bit=yes
9510 else
9511 gcc_cv_decl_char_bit=no
9512 fi
9513 rm -f conftest*
9514
9515
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9518 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9519 if test $gcc_cv_decl_char_bit = no; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9521 $as_echo_n "checking number of bits in a byte... " >&6; }
9522 if ${gcc_cv_c_nbby+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 i=8
9526 gcc_cv_c_nbby=
9527 while test $i -lt 65; do
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530
9531 int
9532 main ()
9533 {
9534 switch(0) {
9535 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9536 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9537 ; }
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_cxx_try_compile "$LINENO"; then :
9543 gcc_cv_c_nbby=$i; break
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 i=`expr $i + 1`
9547 done
9548 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9552 $as_echo "$gcc_cv_c_nbby" >&6; }
9553 if test $gcc_cv_c_nbby = failed; then
9554 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9555 else
9556
9557 cat >>confdefs.h <<_ACEOF
9558 #define CHAR_BIT $gcc_cv_c_nbby
9559 _ACEOF
9560
9561 fi
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9565 if ${ac_cv_c_bigendian+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 ac_cv_c_bigendian=unknown
9569 # See if we're dealing with a universal compiler.
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #ifndef __APPLE_CC__
9573 not a universal capable compiler
9574 #endif
9575 typedef int dummy;
9576
9577 _ACEOF
9578 if ac_fn_cxx_try_compile "$LINENO"; then :
9579
9580 # Check for potential -arch flags. It is not universal unless
9581 # there are at least two -arch flags with different values.
9582 ac_arch=
9583 ac_prev=
9584 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9585 if test -n "$ac_prev"; then
9586 case $ac_word in
9587 i?86 | x86_64 | ppc | ppc64)
9588 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9589 ac_arch=$ac_word
9590 else
9591 ac_cv_c_bigendian=universal
9592 break
9593 fi
9594 ;;
9595 esac
9596 ac_prev=
9597 elif test "x$ac_word" = "x-arch"; then
9598 ac_prev=arch
9599 fi
9600 done
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 if test $ac_cv_c_bigendian = unknown; then
9604 # See if sys/param.h defines the BYTE_ORDER macro.
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #include <sys/types.h>
9608 #include <sys/param.h>
9609
9610 int
9611 main ()
9612 {
9613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9615 && LITTLE_ENDIAN)
9616 bogus endian macros
9617 #endif
9618
9619 ;
9620 return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_cxx_try_compile "$LINENO"; then :
9624 # It does; now see whether it defined to BIG_ENDIAN or not.
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 #include <sys/param.h>
9629
9630 int
9631 main ()
9632 {
9633 #if BYTE_ORDER != BIG_ENDIAN
9634 not big endian
9635 #endif
9636
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_cxx_try_compile "$LINENO"; then :
9642 ac_cv_c_bigendian=yes
9643 else
9644 ac_cv_c_bigendian=no
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 if test $ac_cv_c_bigendian = unknown; then
9651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <limits.h>
9655
9656 int
9657 main ()
9658 {
9659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9660 bogus endian macros
9661 #endif
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_cxx_try_compile "$LINENO"; then :
9668 # It does; now see whether it defined to _BIG_ENDIAN or not.
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <limits.h>
9672
9673 int
9674 main ()
9675 {
9676 #ifndef _BIG_ENDIAN
9677 not big endian
9678 #endif
9679
9680 ;
9681 return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_cxx_try_compile "$LINENO"; then :
9685 ac_cv_c_bigendian=yes
9686 else
9687 ac_cv_c_bigendian=no
9688 fi
9689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 fi
9693 if test $ac_cv_c_bigendian = unknown; then
9694 # Compile a test program.
9695 if test "$cross_compiling" = yes; then :
9696 # Try to guess by grepping values from an object file.
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 short int ascii_mm[] =
9700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9701 short int ascii_ii[] =
9702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9703 int use_ascii (int i) {
9704 return ascii_mm[i] + ascii_ii[i];
9705 }
9706 short int ebcdic_ii[] =
9707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9708 short int ebcdic_mm[] =
9709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9710 int use_ebcdic (int i) {
9711 return ebcdic_mm[i] + ebcdic_ii[i];
9712 }
9713 extern int foo;
9714
9715 int
9716 main ()
9717 {
9718 return use_ascii (foo) == use_ebcdic (foo);
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_cxx_try_compile "$LINENO"; then :
9724 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9725 ac_cv_c_bigendian=yes
9726 fi
9727 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9728 if test "$ac_cv_c_bigendian" = unknown; then
9729 ac_cv_c_bigendian=no
9730 else
9731 # finding both strings is unlikely to happen, but who knows?
9732 ac_cv_c_bigendian=unknown
9733 fi
9734 fi
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 int
9742 main ()
9743 {
9744
9745 /* Are we little or big endian? From Harbison&Steele. */
9746 union
9747 {
9748 long int l;
9749 char c[sizeof (long int)];
9750 } u;
9751 u.l = 1;
9752 return u.c[sizeof (long int) - 1] == 1;
9753
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_cxx_try_run "$LINENO"; then :
9759 ac_cv_c_bigendian=no
9760 else
9761 ac_cv_c_bigendian=yes
9762 fi
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764 conftest.$ac_objext conftest.beam conftest.$ac_ext
9765 fi
9766
9767 fi
9768 fi
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9770 $as_echo "$ac_cv_c_bigendian" >&6; }
9771 case $ac_cv_c_bigendian in #(
9772 yes)
9773 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9774 ;; #(
9775 no)
9776 ;; #(
9777 universal)
9778
9779 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9780
9781 ;; #(
9782 *)
9783 as_fn_error $? "unknown endianness
9784 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9785 esac
9786
9787
9788 # ----------------------
9789 # Checks for C++ headers
9790 # ----------------------
9791
9792 ac_ext=cpp
9793 ac_cpp='$CXXCPP $CPPFLAGS'
9794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9798 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9799 if test -z "$CXXCPP"; then
9800 if ${ac_cv_prog_CXXCPP+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 # Double quotes because CXXCPP needs to be expanded
9804 for CXXCPP in "$CXX -E" "/lib/cpp"
9805 do
9806 ac_preproc_ok=false
9807 for ac_cxx_preproc_warn_flag in '' yes
9808 do
9809 # Use a header file that comes with gcc, so configuring glibc
9810 # with a fresh cross-compiler works.
9811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 # <limits.h> exists even on freestanding compilers.
9813 # On the NeXT, cc -E runs the code through the compiler's parser,
9814 # not just through cpp. "Syntax error" is here to catch this case.
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 #ifdef __STDC__
9818 # include <limits.h>
9819 #else
9820 # include <assert.h>
9821 #endif
9822 Syntax error
9823 _ACEOF
9824 if ac_fn_cxx_try_cpp "$LINENO"; then :
9825
9826 else
9827 # Broken: fails on valid input.
9828 continue
9829 fi
9830 rm -f conftest.err conftest.i conftest.$ac_ext
9831
9832 # OK, works on sane cases. Now check whether nonexistent headers
9833 # can be detected and how.
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <ac_nonexistent.h>
9837 _ACEOF
9838 if ac_fn_cxx_try_cpp "$LINENO"; then :
9839 # Broken: success on invalid input.
9840 continue
9841 else
9842 # Passes both tests.
9843 ac_preproc_ok=:
9844 break
9845 fi
9846 rm -f conftest.err conftest.i conftest.$ac_ext
9847
9848 done
9849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9850 rm -f conftest.i conftest.err conftest.$ac_ext
9851 if $ac_preproc_ok; then :
9852 break
9853 fi
9854
9855 done
9856 ac_cv_prog_CXXCPP=$CXXCPP
9857
9858 fi
9859 CXXCPP=$ac_cv_prog_CXXCPP
9860 else
9861 ac_cv_prog_CXXCPP=$CXXCPP
9862 fi
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9864 $as_echo "$CXXCPP" >&6; }
9865 ac_preproc_ok=false
9866 for ac_cxx_preproc_warn_flag in '' yes
9867 do
9868 # Use a header file that comes with gcc, so configuring glibc
9869 # with a fresh cross-compiler works.
9870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871 # <limits.h> exists even on freestanding compilers.
9872 # On the NeXT, cc -E runs the code through the compiler's parser,
9873 # not just through cpp. "Syntax error" is here to catch this case.
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #ifdef __STDC__
9877 # include <limits.h>
9878 #else
9879 # include <assert.h>
9880 #endif
9881 Syntax error
9882 _ACEOF
9883 if ac_fn_cxx_try_cpp "$LINENO"; then :
9884
9885 else
9886 # Broken: fails on valid input.
9887 continue
9888 fi
9889 rm -f conftest.err conftest.i conftest.$ac_ext
9890
9891 # OK, works on sane cases. Now check whether nonexistent headers
9892 # can be detected and how.
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 #include <ac_nonexistent.h>
9896 _ACEOF
9897 if ac_fn_cxx_try_cpp "$LINENO"; then :
9898 # Broken: success on invalid input.
9899 continue
9900 else
9901 # Passes both tests.
9902 ac_preproc_ok=:
9903 break
9904 fi
9905 rm -f conftest.err conftest.i conftest.$ac_ext
9906
9907 done
9908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9909 rm -f conftest.i conftest.err conftest.$ac_ext
9910 if $ac_preproc_ok; then :
9911
9912 else
9913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9916 See \`config.log' for more details" >&5
9917 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9918 See \`config.log' for more details" >&2;}; }
9919 fi
9920
9921 ac_ext=cpp
9922 ac_cpp='$CXXCPP $CPPFLAGS'
9923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9926
9927
9928 for ac_header in unordered_map
9929 do :
9930 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9931 if test "x$ac_cv_header_unordered_map" = xyes; then :
9932 cat >>confdefs.h <<_ACEOF
9933 #define HAVE_UNORDERED_MAP 1
9934 _ACEOF
9935
9936 fi
9937 done
9938
9939 for ac_header in tr1/unordered_map
9940 do :
9941 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9942 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_TR1_UNORDERED_MAP 1
9945 _ACEOF
9946
9947 fi
9948 done
9949
9950 for ac_header in ext/hash_map
9951 do :
9952 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9953 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_EXT_HASH_MAP 1
9956 _ACEOF
9957
9958 fi
9959 done
9960
9961
9962 # --------
9963 # Dependency checking.
9964 # --------
9965
9966 rm -rf .tst 2>/dev/null
9967 mkdir .tst 2>/dev/null
9968 if test -d .tst; then
9969 am__leading_dot=.
9970 else
9971 am__leading_dot=_
9972 fi
9973 rmdir .tst 2>/dev/null
9974
9975 DEPDIR="${am__leading_dot}deps"
9976
9977 ac_config_commands="$ac_config_commands depdir"
9978
9979
9980 ac_config_commands="$ac_config_commands gccdepdir"
9981
9982
9983 depcc="$CXX" am_compiler_list=
9984
9985 am_depcomp=$ac_aux_dir/depcomp
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9987 $as_echo_n "checking dependency style of $depcc... " >&6; }
9988 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -f "$am_depcomp"; then
9992 # We make a subdir and do the tests there. Otherwise we can end up
9993 # making bogus files that we don't know about and never remove. For
9994 # instance it was reported that on HP-UX the gcc test will end up
9995 # making a dummy file named `D' -- because `-MD' means `put the output
9996 # in D'.
9997 mkdir conftest.dir
9998 # Copy depcomp to subdir because otherwise we won't find it if we're
9999 # using a relative directory.
10000 cp "$am_depcomp" conftest.dir
10001 cd conftest.dir
10002 # We will build objects and dependencies in a subdirectory because
10003 # it helps to detect inapplicable dependency modes. For instance
10004 # both Tru64's cc and ICC support -MD to output dependencies as a
10005 # side effect of compilation, but ICC will put the dependencies in
10006 # the current directory while Tru64 will put them in the object
10007 # directory.
10008 mkdir sub
10009
10010 am_cv_CXX_dependencies_compiler_type=none
10011 if test "$am_compiler_list" = ""; then
10012 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10013 fi
10014 for depmode in $am_compiler_list; do
10015 if test $depmode = none; then break; fi
10016
10017 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10018 # Setup a source with many dependencies, because some compilers
10019 # like to wrap large dependency lists on column 80 (with \), and
10020 # we should not choose a depcomp mode which is confused by this.
10021 #
10022 # We need to recreate these files for each test, as the compiler may
10023 # overwrite some of them when testing with obscure command lines.
10024 # This happens at least with the AIX C compiler.
10025 : > sub/conftest.c
10026 for i in 1 2 3 4 5 6; do
10027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10029 # Solaris 8's {/usr,}/bin/sh.
10030 touch sub/conftst$i.h
10031 done
10032 echo "include sub/conftest.Po" > confmf
10033
10034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10035 # mode. It turns out that the SunPro C++ compiler does not properly
10036 # handle `-M -o', and we need to detect this.
10037 depcmd="depmode=$depmode \
10038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10041 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10042 if env $depcmd > conftest.err 2>&1 &&
10043 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10045 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10046 # icc doesn't choke on unknown options, it will just issue warnings
10047 # or remarks (even with -Werror). So we grep stderr for any message
10048 # that says an option was ignored or not supported.
10049 # When given -MP, icc 7.0 and 7.1 complain thusly:
10050 # icc: Command line warning: ignoring option '-M'; no argument required
10051 # The diagnosis changed in icc 8.0:
10052 # icc: Command line remark: option '-MP' not supported
10053 if (grep 'ignoring option' conftest.err ||
10054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10055 am_cv_CXX_dependencies_compiler_type=$depmode
10056 $as_echo "$as_me:$LINENO: success" >&5
10057 break
10058 fi
10059 fi
10060 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10061 sed -e 's/^/| /' < conftest.err >&5
10062 done
10063
10064 cd ..
10065 rm -rf conftest.dir
10066 else
10067 am_cv_CXX_dependencies_compiler_type=none
10068 fi
10069
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10072 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10073 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10074 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10075 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10076
10077 fi
10078
10079
10080 # --------
10081 # UNSORTED
10082 # --------
10083
10084
10085 # These libraries may be used by collect2.
10086 # We may need a special search path to get them linked.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10088 $as_echo_n "checking for collect2 libraries... " >&6; }
10089 if ${gcc_cv_collect2_libs+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 save_LIBS="$LIBS"
10093 for libs in '' -lld -lmld \
10094 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10095 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10096 do
10097 LIBS="$libs"
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char ldopen ();
10108 int
10109 main ()
10110 {
10111 return ldopen ();
10112 ;
10113 return 0;
10114 }
10115 _ACEOF
10116 if ac_fn_cxx_try_link "$LINENO"; then :
10117 gcc_cv_collect2_libs="$libs"; break
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 done
10122 LIBS="$save_LIBS"
10123 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10126 $as_echo "$gcc_cv_collect2_libs" >&6; }
10127 case $gcc_cv_collect2_libs in
10128 "none required") ;;
10129 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10130 esac
10131
10132
10133 # When building Ada code on Alpha, we need exc_resume which is usually in
10134 # -lexc. So test for it.
10135 save_LIBS="$LIBS"
10136 LIBS=
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10138 $as_echo_n "checking for library containing exc_resume... " >&6; }
10139 if ${ac_cv_search_exc_resume+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 ac_func_search_save_LIBS=$LIBS
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char exc_resume ();
10153 int
10154 main ()
10155 {
10156 return exc_resume ();
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 for ac_lib in '' exc; do
10162 if test -z "$ac_lib"; then
10163 ac_res="none required"
10164 else
10165 ac_res=-l$ac_lib
10166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10167 fi
10168 if ac_fn_cxx_try_link "$LINENO"; then :
10169 ac_cv_search_exc_resume=$ac_res
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext
10173 if ${ac_cv_search_exc_resume+:} false; then :
10174 break
10175 fi
10176 done
10177 if ${ac_cv_search_exc_resume+:} false; then :
10178
10179 else
10180 ac_cv_search_exc_resume=no
10181 fi
10182 rm conftest.$ac_ext
10183 LIBS=$ac_func_search_save_LIBS
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10186 $as_echo "$ac_cv_search_exc_resume" >&6; }
10187 ac_res=$ac_cv_search_exc_resume
10188 if test "$ac_res" != no; then :
10189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10190
10191 fi
10192
10193 GNAT_LIBEXC="$LIBS"
10194 LIBS="$save_LIBS"
10195
10196
10197 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10198 save_LIBS="$LIBS"
10199 LIBS=
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10201 $as_echo_n "checking for library containing kstat_open... " >&6; }
10202 if ${ac_cv_search_kstat_open+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 ac_func_search_save_LIBS=$LIBS
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char kstat_open ();
10216 int
10217 main ()
10218 {
10219 return kstat_open ();
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 for ac_lib in '' kstat; do
10225 if test -z "$ac_lib"; then
10226 ac_res="none required"
10227 else
10228 ac_res=-l$ac_lib
10229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10230 fi
10231 if ac_fn_cxx_try_link "$LINENO"; then :
10232 ac_cv_search_kstat_open=$ac_res
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext
10236 if ${ac_cv_search_kstat_open+:} false; then :
10237 break
10238 fi
10239 done
10240 if ${ac_cv_search_kstat_open+:} false; then :
10241
10242 else
10243 ac_cv_search_kstat_open=no
10244 fi
10245 rm conftest.$ac_ext
10246 LIBS=$ac_func_search_save_LIBS
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10249 $as_echo "$ac_cv_search_kstat_open" >&6; }
10250 ac_res=$ac_cv_search_kstat_open
10251 if test "$ac_res" != no; then :
10252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10253
10254 fi
10255
10256 EXTRA_GCC_LIBS="$LIBS"
10257 LIBS="$save_LIBS"
10258
10259
10260 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10261 # C++ needs those for libcody.
10262 save_LIBS="$LIBS"
10263 LIBS=
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10266 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10267 if ${ac_cv_search_gethostbyname+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 ac_func_search_save_LIBS=$LIBS
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char gethostbyname ();
10281 int
10282 main ()
10283 {
10284 return gethostbyname ();
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 for ac_lib in '' nsl; do
10290 if test -z "$ac_lib"; then
10291 ac_res="none required"
10292 else
10293 ac_res=-l$ac_lib
10294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10295 fi
10296 if ac_fn_cxx_try_link "$LINENO"; then :
10297 ac_cv_search_gethostbyname=$ac_res
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext
10301 if ${ac_cv_search_gethostbyname+:} false; then :
10302 break
10303 fi
10304 done
10305 if ${ac_cv_search_gethostbyname+:} false; then :
10306
10307 else
10308 ac_cv_search_gethostbyname=no
10309 fi
10310 rm conftest.$ac_ext
10311 LIBS=$ac_func_search_save_LIBS
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10314 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10315 ac_res=$ac_cv_search_gethostbyname
10316 if test "$ac_res" != no; then :
10317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10318
10319 fi
10320
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10322 $as_echo_n "checking for library containing socket... " >&6; }
10323 if ${ac_cv_search_socket+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 ac_func_search_save_LIBS=$LIBS
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char socket ();
10337 int
10338 main ()
10339 {
10340 return socket ();
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 for ac_lib in '' socket; do
10346 if test -z "$ac_lib"; then
10347 ac_res="none required"
10348 else
10349 ac_res=-l$ac_lib
10350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10351 fi
10352 if ac_fn_cxx_try_link "$LINENO"; then :
10353 ac_cv_search_socket=$ac_res
10354 fi
10355 rm -f core conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext
10357 if ${ac_cv_search_socket+:} false; then :
10358 break
10359 fi
10360 done
10361 if ${ac_cv_search_socket+:} false; then :
10362
10363 else
10364 ac_cv_search_socket=no
10365 fi
10366 rm conftest.$ac_ext
10367 LIBS=$ac_func_search_save_LIBS
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10370 $as_echo "$ac_cv_search_socket" >&6; }
10371 ac_res=$ac_cv_search_socket
10372 if test "$ac_res" != no; then :
10373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10374
10375 else
10376
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10378 $as_echo_n "checking for socket in -lsocket... " >&6; }
10379 if ${ac_cv_lib_socket_socket+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 ac_check_lib_save_LIBS=$LIBS
10383 LIBS="-lsocket -lnsl $LIBS"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char socket ();
10394 int
10395 main ()
10396 {
10397 return socket ();
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_cxx_try_link "$LINENO"; then :
10403 ac_cv_lib_socket_socket=yes
10404 else
10405 ac_cv_lib_socket_socket=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10410 fi
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10412 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10413 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10414 LIBS="-lsocket -lnsl $LIBS"
10415 fi
10416
10417 fi
10418
10419
10420 NETLIBS="$LIBS"
10421 LIBS="$save_LIBS"
10422
10423
10424 # Some systems put ldexp and frexp in libm instead of libc; assume
10425 # they're both in the same place. jcf-dump needs them.
10426 save_LIBS="$LIBS"
10427 LIBS=
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10429 $as_echo_n "checking for library containing ldexp... " >&6; }
10430 if ${ac_cv_search_ldexp+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 ac_func_search_save_LIBS=$LIBS
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char ldexp ();
10444 int
10445 main ()
10446 {
10447 return ldexp ();
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 for ac_lib in '' m; do
10453 if test -z "$ac_lib"; then
10454 ac_res="none required"
10455 else
10456 ac_res=-l$ac_lib
10457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10458 fi
10459 if ac_fn_cxx_try_link "$LINENO"; then :
10460 ac_cv_search_ldexp=$ac_res
10461 fi
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext
10464 if ${ac_cv_search_ldexp+:} false; then :
10465 break
10466 fi
10467 done
10468 if ${ac_cv_search_ldexp+:} false; then :
10469
10470 else
10471 ac_cv_search_ldexp=no
10472 fi
10473 rm conftest.$ac_ext
10474 LIBS=$ac_func_search_save_LIBS
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10477 $as_echo "$ac_cv_search_ldexp" >&6; }
10478 ac_res=$ac_cv_search_ldexp
10479 if test "$ac_res" != no; then :
10480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10481
10482 fi
10483
10484 LDEXP_LIB="$LIBS"
10485 LIBS="$save_LIBS"
10486
10487
10488 # Some systems need dlopen
10489 save_LIBS="$LIBS"
10490 LIBS=
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10492 $as_echo_n "checking for library containing dlopen... " >&6; }
10493 if ${ac_cv_search_dlopen+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 ac_func_search_save_LIBS=$LIBS
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char dlopen ();
10507 int
10508 main ()
10509 {
10510 return dlopen ();
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 for ac_lib in '' dl; do
10516 if test -z "$ac_lib"; then
10517 ac_res="none required"
10518 else
10519 ac_res=-l$ac_lib
10520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10521 fi
10522 if ac_fn_cxx_try_link "$LINENO"; then :
10523 ac_cv_search_dlopen=$ac_res
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext
10527 if ${ac_cv_search_dlopen+:} false; then :
10528 break
10529 fi
10530 done
10531 if ${ac_cv_search_dlopen+:} false; then :
10532
10533 else
10534 ac_cv_search_dlopen=no
10535 fi
10536 rm conftest.$ac_ext
10537 LIBS=$ac_func_search_save_LIBS
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10540 $as_echo "$ac_cv_search_dlopen" >&6; }
10541 ac_res=$ac_cv_search_dlopen
10542 if test "$ac_res" != no; then :
10543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10544
10545 fi
10546
10547 DL_LIB="$LIBS"
10548 LIBS="$save_LIBS"
10549
10550
10551 # Use <inttypes.h> only if it exists,
10552 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10553 # PRId64
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10555 $as_echo_n "checking for inttypes.h... " >&6; }
10556 if ${gcc_cv_header_inttypes_h+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #define __STDC_FORMAT_MACROS
10562 #include <sys/types.h>
10563 #include <inttypes.h>
10564 int
10565 main ()
10566 {
10567 intmax_t i = -1;
10568 #ifndef PRId64
10569 choke me
10570 #endif
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_cxx_try_compile "$LINENO"; then :
10576 gcc_cv_header_inttypes_h=yes
10577 else
10578 gcc_cv_header_inttypes_h=no
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 fi
10582
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10584 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10585 if test $gcc_cv_header_inttypes_h = yes; then
10586
10587 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10588
10589 fi
10590
10591 # Look for the ZSTD package.
10592 ZSTD_INCLUDE=
10593 ZSTD_LIB=
10594
10595
10596 ZSTD_CPPFLAGS=
10597 ZSTD_LDFLAGS=
10598
10599
10600
10601 # Check whether --with-zstd was given.
10602 if test "${with_zstd+set}" = set; then :
10603 withval=$with_zstd;
10604 fi
10605
10606
10607 # Check whether --with-zstd-include was given.
10608 if test "${with_zstd_include+set}" = set; then :
10609 withval=$with_zstd_include;
10610 fi
10611
10612
10613 # Check whether --with-zstd-lib was given.
10614 if test "${with_zstd_lib+set}" = set; then :
10615 withval=$with_zstd_lib;
10616 fi
10617
10618 case "x$with_zstd" in
10619 x) ;;
10620 xno)
10621 ZSTD_INCLUDE=
10622 ZSTD_LIB=
10623 ;;
10624 *) ZSTD_INCLUDE=$with_zstd/include
10625 ZSTD_LIB=$with_zstd/lib
10626 ;;
10627 esac
10628
10629 if test "x$with_zstd" != xno; then
10630 if test "x$with_zstd_include" != x; then
10631 ZSTD_INCLUDE=$with_zstd_include
10632 fi
10633 if test "x$with_zstd_lib" != x; then
10634 ZSTD_LIB=$with_zstd_lib
10635 fi
10636 if test "x$ZSTD_INCLUDE" != x \
10637 && test "x$ZSTD_INCLUDE" != xno; then
10638 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10639 fi
10640 if test "x$ZSTD_LIB" != x \
10641 && test "x$ZSTD_LIB" != xno; then
10642 ZSTD_LDFLAGS=-L$ZSTD_LIB
10643 fi
10644
10645 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10646 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10647
10648 # LTO can use zstd compression algorithm
10649 save_LIBS="$LIBS"
10650 LIBS=
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10652 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10653 if ${ac_cv_search_ZSTD_compress+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 ac_func_search_save_LIBS=$LIBS
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char ZSTD_compress ();
10667 int
10668 main ()
10669 {
10670 return ZSTD_compress ();
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 for ac_lib in '' zstd; do
10676 if test -z "$ac_lib"; then
10677 ac_res="none required"
10678 else
10679 ac_res=-l$ac_lib
10680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10681 fi
10682 if ac_fn_cxx_try_link "$LINENO"; then :
10683 ac_cv_search_ZSTD_compress=$ac_res
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext
10687 if ${ac_cv_search_ZSTD_compress+:} false; then :
10688 break
10689 fi
10690 done
10691 if ${ac_cv_search_ZSTD_compress+:} false; then :
10692
10693 else
10694 ac_cv_search_ZSTD_compress=no
10695 fi
10696 rm conftest.$ac_ext
10697 LIBS=$ac_func_search_save_LIBS
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10700 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10701 ac_res=$ac_cv_search_ZSTD_compress
10702 if test "$ac_res" != no; then :
10703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10704
10705 else
10706 gcc_cv_header_zstd_h=no
10707 fi
10708
10709 ZSTD_LIB="$LIBS"
10710 LIBS="$save_LIBS"
10711
10712
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10714 $as_echo_n "checking for zstd.h... " >&6; }
10715 if ${gcc_cv_header_zstd_h+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 # We require version 1.3.0 or later. This is the first version that has
10719 # ZSTD_getFrameContentSize.
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <zstd.h>
10723 #if ZSTD_VERSION_NUMBER < 10300
10724 #error "need zstd 1.3.0 or better"
10725 #endif
10726 int
10727 main ()
10728 {
10729
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_cxx_try_compile "$LINENO"; then :
10735 gcc_cv_header_zstd_h=yes
10736 else
10737 gcc_cv_header_zstd_h=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 fi
10741
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10743 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10744 if test $gcc_cv_header_zstd_h = yes; then
10745
10746 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10747
10748 elif test "x$with_zstd" != x; then
10749 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10750 fi
10751 fi
10752
10753
10754
10755 for ac_func in times clock kill getrlimit setrlimit atoq \
10756 popen sysconf strsignal getrusage nl_langinfo \
10757 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10758 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
10759 do :
10760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10761 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10763 cat >>confdefs.h <<_ACEOF
10764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767 fi
10768 done
10769
10770
10771 if test x$ac_cv_func_mbstowcs = xyes; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10773 $as_echo_n "checking whether mbstowcs works... " >&6; }
10774 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test "$cross_compiling" = yes; then :
10778 gcc_cv_func_mbstowcs_works=yes
10779 else
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782 #include <stdlib.h>
10783 int main()
10784 {
10785 mbstowcs(0, "", 0);
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_cxx_try_run "$LINENO"; then :
10790 gcc_cv_func_mbstowcs_works=yes
10791 else
10792 gcc_cv_func_mbstowcs_works=no
10793 fi
10794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10795 conftest.$ac_objext conftest.beam conftest.$ac_ext
10796 fi
10797
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10800 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10801 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10802
10803 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10804
10805 fi
10806 fi
10807
10808 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10809 if test "x$ac_cv_type_ssize_t" = xyes; then :
10810
10811 else
10812
10813 cat >>confdefs.h <<_ACEOF
10814 #define ssize_t int
10815 _ACEOF
10816
10817 fi
10818
10819 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10820 if test "x$ac_cv_type_caddr_t" = xyes; then :
10821
10822 else
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define caddr_t char *
10826 _ACEOF
10827
10828 fi
10829
10830 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10831 "
10832 if test "x$ac_cv_type_sighander_t" = xyes; then :
10833
10834 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10835
10836 fi
10837
10838
10839
10840 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10841 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10842 gcc_header_sys_mman_h=yes
10843 else
10844 gcc_header_sys_mman_h=no
10845 fi
10846
10847 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10848 if test "x$ac_cv_func_mmap" = xyes; then :
10849 gcc_func_mmap=yes
10850 else
10851 gcc_func_mmap=no
10852 fi
10853
10854 if test "$gcc_header_sys_mman_h" != yes \
10855 || test "$gcc_func_mmap" != yes; then
10856 gcc_cv_func_mmap_file=no
10857 gcc_cv_func_mmap_dev_zero=no
10858 gcc_cv_func_mmap_anon=no
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10861 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10862 if ${gcc_cv_func_mmap_file+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 # Add a system to this blacklist if
10866 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10867 # memory area containing the same data that you'd get if you applied
10868 # read() to the same fd. The only system known to have a problem here
10869 # is VMS, where text files have record structure.
10870 case "$host_os" in
10871 *vms* | ultrix*)
10872 gcc_cv_func_mmap_file=no ;;
10873 *)
10874 gcc_cv_func_mmap_file=yes;;
10875 esac
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10878 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10880 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10881 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 # Add a system to this blacklist if it has mmap() but /dev/zero
10885 # does not exist, or if mmapping /dev/zero does not give anonymous
10886 # zeroed pages with both the following properties:
10887 # 1. If you map N consecutive pages in with one call, and then
10888 # unmap any subset of those pages, the pages that were not
10889 # explicitly unmapped remain accessible.
10890 # 2. If you map two adjacent blocks of memory and then unmap them
10891 # both at once, they must both go away.
10892 # Systems known to be in this category are Windows (all variants),
10893 # VMS, and Darwin.
10894 case "$host_os" in
10895 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10896 gcc_cv_func_mmap_dev_zero=no ;;
10897 *)
10898 gcc_cv_func_mmap_dev_zero=yes;;
10899 esac
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10902 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10903
10904 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10906 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10907 if ${gcc_cv_decl_map_anon+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #include <sys/types.h>
10913 #include <sys/mman.h>
10914 #include <unistd.h>
10915
10916 #ifndef MAP_ANONYMOUS
10917 #define MAP_ANONYMOUS MAP_ANON
10918 #endif
10919
10920 int
10921 main ()
10922 {
10923 int n = MAP_ANONYMOUS;
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_cxx_try_compile "$LINENO"; then :
10929 gcc_cv_decl_map_anon=yes
10930 else
10931 gcc_cv_decl_map_anon=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10936 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10937
10938 if test $gcc_cv_decl_map_anon = no; then
10939 gcc_cv_func_mmap_anon=no
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10942 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10943 if ${gcc_cv_func_mmap_anon+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10947 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10948 # doesn't give anonymous zeroed pages with the same properties listed
10949 # above for use of /dev/zero.
10950 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10951 case "$host_os" in
10952 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10953 gcc_cv_func_mmap_anon=no ;;
10954 *)
10955 gcc_cv_func_mmap_anon=yes;;
10956 esac
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10959 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10960 fi
10961 fi
10962
10963 if test $gcc_cv_func_mmap_file = yes; then
10964
10965 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10966
10967 fi
10968 if test $gcc_cv_func_mmap_dev_zero = yes; then
10969
10970 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10971
10972 fi
10973 if test $gcc_cv_func_mmap_anon = yes; then
10974
10975 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10976
10977 fi
10978
10979
10980 case "${host}" in
10981 *-*-*vms*)
10982 # Under VMS, vfork works very differently than on Unix. The standard test
10983 # won't work, and it isn't easily adaptable. It makes more sense to
10984 # just force it.
10985 ac_cv_func_vfork_works=yes
10986 ;;
10987 esac
10988 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10989 if test "x$ac_cv_type_pid_t" = xyes; then :
10990
10991 else
10992
10993 cat >>confdefs.h <<_ACEOF
10994 #define pid_t int
10995 _ACEOF
10996
10997 fi
10998
10999 for ac_header in vfork.h
11000 do :
11001 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11002 if test "x$ac_cv_header_vfork_h" = xyes; then :
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_VFORK_H 1
11005 _ACEOF
11006
11007 fi
11008 done
11009
11010 for ac_func in fork vfork
11011 do :
11012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11015 cat >>confdefs.h <<_ACEOF
11016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11017 _ACEOF
11018
11019 fi
11020 done
11021
11022 if test "x$ac_cv_func_fork" = xyes; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11024 $as_echo_n "checking for working fork... " >&6; }
11025 if ${ac_cv_func_fork_works+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test "$cross_compiling" = yes; then :
11029 ac_cv_func_fork_works=cross
11030 else
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 $ac_includes_default
11034 int
11035 main ()
11036 {
11037
11038 /* By Ruediger Kuhlmann. */
11039 return fork () < 0;
11040
11041 ;
11042 return 0;
11043 }
11044 _ACEOF
11045 if ac_fn_cxx_try_run "$LINENO"; then :
11046 ac_cv_func_fork_works=yes
11047 else
11048 ac_cv_func_fork_works=no
11049 fi
11050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11052 fi
11053
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11056 $as_echo "$ac_cv_func_fork_works" >&6; }
11057
11058 else
11059 ac_cv_func_fork_works=$ac_cv_func_fork
11060 fi
11061 if test "x$ac_cv_func_fork_works" = xcross; then
11062 case $host in
11063 *-*-amigaos* | *-*-msdosdjgpp*)
11064 # Override, as these systems have only a dummy fork() stub
11065 ac_cv_func_fork_works=no
11066 ;;
11067 *)
11068 ac_cv_func_fork_works=yes
11069 ;;
11070 esac
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11072 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11073 fi
11074 ac_cv_func_vfork_works=$ac_cv_func_vfork
11075 if test "x$ac_cv_func_vfork" = xyes; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11077 $as_echo_n "checking for working vfork... " >&6; }
11078 if ${ac_cv_func_vfork_works+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 if test "$cross_compiling" = yes; then :
11082 ac_cv_func_vfork_works=cross
11083 else
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 /* Thanks to Paul Eggert for this test. */
11087 $ac_includes_default
11088 #include <sys/wait.h>
11089 #ifdef HAVE_VFORK_H
11090 # include <vfork.h>
11091 #endif
11092 /* On some sparc systems, changes by the child to local and incoming
11093 argument registers are propagated back to the parent. The compiler
11094 is told about this with #include <vfork.h>, but some compilers
11095 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11096 static variable whose address is put into a register that is
11097 clobbered by the vfork. */
11098 static void
11099 #ifdef __cplusplus
11100 sparc_address_test (int arg)
11101 # else
11102 sparc_address_test (arg) int arg;
11103 #endif
11104 {
11105 static pid_t child;
11106 if (!child) {
11107 child = vfork ();
11108 if (child < 0) {
11109 perror ("vfork");
11110 _exit(2);
11111 }
11112 if (!child) {
11113 arg = getpid();
11114 write(-1, "", 0);
11115 _exit (arg);
11116 }
11117 }
11118 }
11119
11120 int
11121 main ()
11122 {
11123 pid_t parent = getpid ();
11124 pid_t child;
11125
11126 sparc_address_test (0);
11127
11128 child = vfork ();
11129
11130 if (child == 0) {
11131 /* Here is another test for sparc vfork register problems. This
11132 test uses lots of local variables, at least as many local
11133 variables as main has allocated so far including compiler
11134 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11135 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11136 reuse the register of parent for one of the local variables,
11137 since it will think that parent can't possibly be used any more
11138 in this routine. Assigning to the local variable will thus
11139 munge parent in the parent process. */
11140 pid_t
11141 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11142 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11143 /* Convince the compiler that p..p7 are live; otherwise, it might
11144 use the same hardware register for all 8 local variables. */
11145 if (p != p1 || p != p2 || p != p3 || p != p4
11146 || p != p5 || p != p6 || p != p7)
11147 _exit(1);
11148
11149 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11150 from child file descriptors. If the child closes a descriptor
11151 before it execs or exits, this munges the parent's descriptor
11152 as well. Test for this by closing stdout in the child. */
11153 _exit(close(fileno(stdout)) != 0);
11154 } else {
11155 int status;
11156 struct stat st;
11157
11158 while (wait(&status) != child)
11159 ;
11160 return (
11161 /* Was there some problem with vforking? */
11162 child < 0
11163
11164 /* Did the child fail? (This shouldn't happen.) */
11165 || status
11166
11167 /* Did the vfork/compiler bug occur? */
11168 || parent != getpid()
11169
11170 /* Did the file descriptor bug occur? */
11171 || fstat(fileno(stdout), &st) != 0
11172 );
11173 }
11174 }
11175 _ACEOF
11176 if ac_fn_cxx_try_run "$LINENO"; then :
11177 ac_cv_func_vfork_works=yes
11178 else
11179 ac_cv_func_vfork_works=no
11180 fi
11181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11182 conftest.$ac_objext conftest.beam conftest.$ac_ext
11183 fi
11184
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11187 $as_echo "$ac_cv_func_vfork_works" >&6; }
11188
11189 fi;
11190 if test "x$ac_cv_func_fork_works" = xcross; then
11191 ac_cv_func_vfork_works=$ac_cv_func_vfork
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11193 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11194 fi
11195
11196 if test "x$ac_cv_func_vfork_works" = xyes; then
11197
11198 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11199
11200 else
11201
11202 $as_echo "#define vfork fork" >>confdefs.h
11203
11204 fi
11205 if test "x$ac_cv_func_fork_works" = xyes; then
11206
11207 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11208
11209 fi
11210
11211
11212
11213 if test "X$prefix" = "XNONE"; then
11214 acl_final_prefix="$ac_default_prefix"
11215 else
11216 acl_final_prefix="$prefix"
11217 fi
11218 if test "X$exec_prefix" = "XNONE"; then
11219 acl_final_exec_prefix='${prefix}'
11220 else
11221 acl_final_exec_prefix="$exec_prefix"
11222 fi
11223 acl_save_prefix="$prefix"
11224 prefix="$acl_final_prefix"
11225 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11226 prefix="$acl_save_prefix"
11227
11228
11229 # Check whether --with-gnu-ld was given.
11230 if test "${with_gnu_ld+set}" = set; then :
11231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11232 else
11233 with_gnu_ld=no
11234 fi
11235
11236 # Prepare PATH_SEPARATOR.
11237 # The user is always right.
11238 if test "${PATH_SEPARATOR+set}" != set; then
11239 echo "#! /bin/sh" >conf$$.sh
11240 echo "exit 0" >>conf$$.sh
11241 chmod +x conf$$.sh
11242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11243 PATH_SEPARATOR=';'
11244 else
11245 PATH_SEPARATOR=:
11246 fi
11247 rm -f conf$$.sh
11248 fi
11249 ac_prog=ld
11250 if test "$GCC" = yes; then
11251 # Check if gcc -print-prog-name=ld gives a path.
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11253 $as_echo_n "checking for ld used by GCC... " >&6; }
11254 case $host in
11255 *-*-mingw*)
11256 # gcc leaves a trailing carriage return which upsets mingw
11257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11258 *)
11259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11260 esac
11261 case $ac_prog in
11262 # Accept absolute paths.
11263 [\\/]* | [A-Za-z]:[\\/]*)
11264 re_direlt='/[^/][^/]*/\.\./'
11265 # Canonicalize the path of ld
11266 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11267 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11268 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11269 done
11270 test -z "$LD" && LD="$ac_prog"
11271 ;;
11272 "")
11273 # If it fails, then pretend we aren't using GCC.
11274 ac_prog=ld
11275 ;;
11276 *)
11277 # If it is relative, then search for the first ld in PATH.
11278 with_gnu_ld=unknown
11279 ;;
11280 esac
11281 elif test "$with_gnu_ld" = yes; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11283 $as_echo_n "checking for GNU ld... " >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11286 $as_echo_n "checking for non-GNU ld... " >&6; }
11287 fi
11288 if ${acl_cv_path_LD+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 if test -z "$LD"; then
11292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11293 for ac_dir in $PATH; do
11294 test -z "$ac_dir" && ac_dir=.
11295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11296 acl_cv_path_LD="$ac_dir/$ac_prog"
11297 # Check to see if the program is GNU ld. I'd rather use --version,
11298 # but apparently some GNU ld's only accept -v.
11299 # Break only if it was the GNU/non-GNU ld that we prefer.
11300 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11301 test "$with_gnu_ld" != no && break
11302 else
11303 test "$with_gnu_ld" != yes && break
11304 fi
11305 fi
11306 done
11307 IFS="$ac_save_ifs"
11308 else
11309 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11310 fi
11311 fi
11312
11313 LD="$acl_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11320 fi
11321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if ${acl_cv_prog_gnu_ld+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11328 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11329 acl_cv_prog_gnu_ld=yes
11330 else
11331 acl_cv_prog_gnu_ld=no
11332 fi
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11335 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11336 with_gnu_ld=$acl_cv_prog_gnu_ld
11337
11338
11339
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11341 $as_echo_n "checking for shared library run path origin... " >&6; }
11342 if ${acl_cv_rpath+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345
11346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11348 . ./conftest.sh
11349 rm -f ./conftest.sh
11350 acl_cv_rpath=done
11351
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11354 $as_echo "$acl_cv_rpath" >&6; }
11355 wl="$acl_cv_wl"
11356 libext="$acl_cv_libext"
11357 shlibext="$acl_cv_shlibext"
11358 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11359 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11360 hardcode_direct="$acl_cv_hardcode_direct"
11361 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11362 # Check whether --enable-rpath was given.
11363 if test "${enable_rpath+set}" = set; then :
11364 enableval=$enable_rpath; :
11365 else
11366 enable_rpath=yes
11367 fi
11368
11369
11370
11371
11372
11373
11374
11375
11376 use_additional=yes
11377
11378 acl_save_prefix="$prefix"
11379 prefix="$acl_final_prefix"
11380 acl_save_exec_prefix="$exec_prefix"
11381 exec_prefix="$acl_final_exec_prefix"
11382
11383 eval additional_includedir=\"$includedir\"
11384 eval additional_libdir=\"$libdir\"
11385
11386 exec_prefix="$acl_save_exec_prefix"
11387 prefix="$acl_save_prefix"
11388
11389
11390 # Check whether --with-libiconv-prefix was given.
11391 if test "${with_libiconv_prefix+set}" = set; then :
11392 withval=$with_libiconv_prefix;
11393 if test "X$withval" = "Xno"; then
11394 use_additional=no
11395 else
11396 if test "X$withval" = "X"; then
11397
11398 acl_save_prefix="$prefix"
11399 prefix="$acl_final_prefix"
11400 acl_save_exec_prefix="$exec_prefix"
11401 exec_prefix="$acl_final_exec_prefix"
11402
11403 eval additional_includedir=\"$includedir\"
11404 eval additional_libdir=\"$libdir\"
11405
11406 exec_prefix="$acl_save_exec_prefix"
11407 prefix="$acl_save_prefix"
11408
11409 else
11410 additional_includedir="$withval/include"
11411 additional_libdir="$withval/lib"
11412 fi
11413 fi
11414
11415 fi
11416
11417
11418 # Check whether --with-libiconv-type was given.
11419 if test "${with_libiconv_type+set}" = set; then :
11420 withval=$with_libiconv_type; with_libiconv_type=$withval
11421 else
11422 with_libiconv_type=auto
11423 fi
11424
11425 lib_type=`eval echo \$with_libiconv_type`
11426
11427 LIBICONV=
11428 LTLIBICONV=
11429 INCICONV=
11430 rpathdirs=
11431 ltrpathdirs=
11432 names_already_handled=
11433 names_next_round='iconv '
11434 while test -n "$names_next_round"; do
11435 names_this_round="$names_next_round"
11436 names_next_round=
11437 for name in $names_this_round; do
11438 already_handled=
11439 for n in $names_already_handled; do
11440 if test "$n" = "$name"; then
11441 already_handled=yes
11442 break
11443 fi
11444 done
11445 if test -z "$already_handled"; then
11446 names_already_handled="$names_already_handled $name"
11447 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11448 eval value=\"\$HAVE_LIB$uppername\"
11449 if test -n "$value"; then
11450 if test "$value" = yes; then
11451 eval value=\"\$LIB$uppername\"
11452 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11453 eval value=\"\$LTLIB$uppername\"
11454 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11455 else
11456 :
11457 fi
11458 else
11459 found_dir=
11460 found_la=
11461 found_so=
11462 found_a=
11463 if test $use_additional = yes; then
11464 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11465 found_dir="$additional_libdir"
11466 found_so="$additional_libdir/lib$name.$shlibext"
11467 if test -f "$additional_libdir/lib$name.la"; then
11468 found_la="$additional_libdir/lib$name.la"
11469 fi
11470 elif test x$lib_type != xshared; then
11471 if test -f "$additional_libdir/lib$name.$libext"; then
11472 found_dir="$additional_libdir"
11473 found_a="$additional_libdir/lib$name.$libext"
11474 if test -f "$additional_libdir/lib$name.la"; then
11475 found_la="$additional_libdir/lib$name.la"
11476 fi
11477 fi
11478 fi
11479 fi
11480 if test "X$found_dir" = "X"; then
11481 for x in $LDFLAGS $LTLIBICONV; do
11482
11483 acl_save_prefix="$prefix"
11484 prefix="$acl_final_prefix"
11485 acl_save_exec_prefix="$exec_prefix"
11486 exec_prefix="$acl_final_exec_prefix"
11487 eval x=\"$x\"
11488 exec_prefix="$acl_save_exec_prefix"
11489 prefix="$acl_save_prefix"
11490
11491 case "$x" in
11492 -L*)
11493 dir=`echo "X$x" | sed -e 's/^X-L//'`
11494 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11495 found_dir="$dir"
11496 found_so="$dir/lib$name.$shlibext"
11497 if test -f "$dir/lib$name.la"; then
11498 found_la="$dir/lib$name.la"
11499 fi
11500 elif test x$lib_type != xshared; then
11501 if test -f "$dir/lib$name.$libext"; then
11502 found_dir="$dir"
11503 found_a="$dir/lib$name.$libext"
11504 if test -f "$dir/lib$name.la"; then
11505 found_la="$dir/lib$name.la"
11506 fi
11507 fi
11508 fi
11509 ;;
11510 esac
11511 if test "X$found_dir" != "X"; then
11512 break
11513 fi
11514 done
11515 fi
11516 if test "X$found_dir" != "X"; then
11517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11518 if test "X$found_so" != "X"; then
11519 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11521 else
11522 haveit=
11523 for x in $ltrpathdirs; do
11524 if test "X$x" = "X$found_dir"; then
11525 haveit=yes
11526 break
11527 fi
11528 done
11529 if test -z "$haveit"; then
11530 ltrpathdirs="$ltrpathdirs $found_dir"
11531 fi
11532 if test "$hardcode_direct" = yes; then
11533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11534 else
11535 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11536 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11537 haveit=
11538 for x in $rpathdirs; do
11539 if test "X$x" = "X$found_dir"; then
11540 haveit=yes
11541 break
11542 fi
11543 done
11544 if test -z "$haveit"; then
11545 rpathdirs="$rpathdirs $found_dir"
11546 fi
11547 else
11548 haveit=
11549 for x in $LDFLAGS $LIBICONV; do
11550
11551 acl_save_prefix="$prefix"
11552 prefix="$acl_final_prefix"
11553 acl_save_exec_prefix="$exec_prefix"
11554 exec_prefix="$acl_final_exec_prefix"
11555 eval x=\"$x\"
11556 exec_prefix="$acl_save_exec_prefix"
11557 prefix="$acl_save_prefix"
11558
11559 if test "X$x" = "X-L$found_dir"; then
11560 haveit=yes
11561 break
11562 fi
11563 done
11564 if test -z "$haveit"; then
11565 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11566 fi
11567 if test "$hardcode_minus_L" != no; then
11568 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11569 else
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11571 fi
11572 fi
11573 fi
11574 fi
11575 else
11576 if test "X$found_a" != "X"; then
11577 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11578 else
11579 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11580 fi
11581 fi
11582 additional_includedir=
11583 case "$found_dir" in
11584 */lib | */lib/)
11585 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11586 additional_includedir="$basedir/include"
11587 ;;
11588 esac
11589 if test "X$additional_includedir" != "X"; then
11590 if test "X$additional_includedir" != "X/usr/include"; then
11591 haveit=
11592 if test "X$additional_includedir" = "X/usr/local/include"; then
11593 if test -n "$GCC"; then
11594 case $host_os in
11595 linux*) haveit=yes;;
11596 esac
11597 fi
11598 fi
11599 if test -z "$haveit"; then
11600 for x in $CPPFLAGS $INCICONV; do
11601
11602 acl_save_prefix="$prefix"
11603 prefix="$acl_final_prefix"
11604 acl_save_exec_prefix="$exec_prefix"
11605 exec_prefix="$acl_final_exec_prefix"
11606 eval x=\"$x\"
11607 exec_prefix="$acl_save_exec_prefix"
11608 prefix="$acl_save_prefix"
11609
11610 if test "X$x" = "X-I$additional_includedir"; then
11611 haveit=yes
11612 break
11613 fi
11614 done
11615 if test -z "$haveit"; then
11616 if test -d "$additional_includedir"; then
11617 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11618 fi
11619 fi
11620 fi
11621 fi
11622 fi
11623 if test -n "$found_la"; then
11624 save_libdir="$libdir"
11625 case "$found_la" in
11626 */* | *\\*) . "$found_la" ;;
11627 *) . "./$found_la" ;;
11628 esac
11629 libdir="$save_libdir"
11630 for dep in $dependency_libs; do
11631 case "$dep" in
11632 -L*)
11633 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11634 if test "X$additional_libdir" != "X/usr/lib"; then
11635 haveit=
11636 if test "X$additional_libdir" = "X/usr/local/lib"; then
11637 if test -n "$GCC"; then
11638 case $host_os in
11639 linux*) haveit=yes;;
11640 esac
11641 fi
11642 fi
11643 if test -z "$haveit"; then
11644 haveit=
11645 for x in $LDFLAGS $LIBICONV; do
11646
11647 acl_save_prefix="$prefix"
11648 prefix="$acl_final_prefix"
11649 acl_save_exec_prefix="$exec_prefix"
11650 exec_prefix="$acl_final_exec_prefix"
11651 eval x=\"$x\"
11652 exec_prefix="$acl_save_exec_prefix"
11653 prefix="$acl_save_prefix"
11654
11655 if test "X$x" = "X-L$additional_libdir"; then
11656 haveit=yes
11657 break
11658 fi
11659 done
11660 if test -z "$haveit"; then
11661 if test -d "$additional_libdir"; then
11662 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11663 fi
11664 fi
11665 haveit=
11666 for x in $LDFLAGS $LTLIBICONV; do
11667
11668 acl_save_prefix="$prefix"
11669 prefix="$acl_final_prefix"
11670 acl_save_exec_prefix="$exec_prefix"
11671 exec_prefix="$acl_final_exec_prefix"
11672 eval x=\"$x\"
11673 exec_prefix="$acl_save_exec_prefix"
11674 prefix="$acl_save_prefix"
11675
11676 if test "X$x" = "X-L$additional_libdir"; then
11677 haveit=yes
11678 break
11679 fi
11680 done
11681 if test -z "$haveit"; then
11682 if test -d "$additional_libdir"; then
11683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11684 fi
11685 fi
11686 fi
11687 fi
11688 ;;
11689 -R*)
11690 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11691 if test "$enable_rpath" != no; then
11692 haveit=
11693 for x in $rpathdirs; do
11694 if test "X$x" = "X$dir"; then
11695 haveit=yes
11696 break
11697 fi
11698 done
11699 if test -z "$haveit"; then
11700 rpathdirs="$rpathdirs $dir"
11701 fi
11702 haveit=
11703 for x in $ltrpathdirs; do
11704 if test "X$x" = "X$dir"; then
11705 haveit=yes
11706 break
11707 fi
11708 done
11709 if test -z "$haveit"; then
11710 ltrpathdirs="$ltrpathdirs $dir"
11711 fi
11712 fi
11713 ;;
11714 -l*)
11715 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11716 ;;
11717 *.la)
11718 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11719 ;;
11720 *)
11721 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11723 ;;
11724 esac
11725 done
11726 fi
11727 else
11728 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11729 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11730 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11731 else
11732 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11734 fi
11735 fi
11736 fi
11737 fi
11738 done
11739 done
11740 if test "X$rpathdirs" != "X"; then
11741 if test -n "$hardcode_libdir_separator"; then
11742 alldirs=
11743 for found_dir in $rpathdirs; do
11744 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11745 done
11746 acl_save_libdir="$libdir"
11747 libdir="$alldirs"
11748 eval flag=\"$hardcode_libdir_flag_spec\"
11749 libdir="$acl_save_libdir"
11750 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11751 else
11752 for found_dir in $rpathdirs; do
11753 acl_save_libdir="$libdir"
11754 libdir="$found_dir"
11755 eval flag=\"$hardcode_libdir_flag_spec\"
11756 libdir="$acl_save_libdir"
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11758 done
11759 fi
11760 fi
11761 if test "X$ltrpathdirs" != "X"; then
11762 for found_dir in $ltrpathdirs; do
11763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11764 done
11765 fi
11766
11767
11768
11769
11770
11771
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11774 $as_echo_n "checking for iconv... " >&6; }
11775 if ${am_cv_func_iconv+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778
11779 am_cv_func_iconv="no, consider installing GNU libiconv"
11780 am_cv_lib_iconv=no
11781 am_save_CPPFLAGS="$CPPFLAGS"
11782 CPPFLAGS="$CPPFLAGS $INCICONV"
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <stdlib.h>
11786 #include <iconv.h>
11787 int
11788 main ()
11789 {
11790 iconv_t cd = iconv_open("","");
11791 iconv(cd,NULL,NULL,NULL,NULL);
11792 iconv_close(cd);
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_cxx_try_link "$LINENO"; then :
11798 am_cv_func_iconv=yes
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802 CPPFLAGS="$am_save_CPPFLAGS"
11803
11804 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11805 for _libs in .libs _libs; do
11806 am_save_CPPFLAGS="$CPPFLAGS"
11807 am_save_LIBS="$LIBS"
11808 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11809 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812 #include <stdlib.h>
11813 #include <iconv.h>
11814 int
11815 main ()
11816 {
11817 iconv_t cd = iconv_open("","");
11818 iconv(cd,NULL,NULL,NULL,NULL);
11819 iconv_close(cd);
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_cxx_try_link "$LINENO"; then :
11825 INCICONV="-I../libiconv/include"
11826 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11827 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11828 am_cv_lib_iconv=yes
11829 am_cv_func_iconv=yes
11830 fi
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 CPPFLAGS="$am_save_CPPFLAGS"
11834 LIBS="$am_save_LIBS"
11835 if test "$am_cv_func_iconv" = "yes"; then
11836 break
11837 fi
11838 done
11839 fi
11840
11841 if test "$am_cv_func_iconv" != yes; then
11842 am_save_CPPFLAGS="$CPPFLAGS"
11843 am_save_LIBS="$LIBS"
11844 CPPFLAGS="$CPPFLAGS $INCICONV"
11845 LIBS="$LIBS $LIBICONV"
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <stdlib.h>
11849 #include <iconv.h>
11850 int
11851 main ()
11852 {
11853 iconv_t cd = iconv_open("","");
11854 iconv(cd,NULL,NULL,NULL,NULL);
11855 iconv_close(cd);
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_cxx_try_link "$LINENO"; then :
11861 am_cv_lib_iconv=yes
11862 am_cv_func_iconv=yes
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 CPPFLAGS="$am_save_CPPFLAGS"
11867 LIBS="$am_save_LIBS"
11868 fi
11869
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11872 $as_echo "$am_cv_func_iconv" >&6; }
11873 if test "$am_cv_func_iconv" = yes; then
11874
11875 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11876
11877 fi
11878 if test "$am_cv_lib_iconv" = yes; then
11879
11880 for element in $INCICONV; do
11881 haveit=
11882 for x in $CPPFLAGS; do
11883
11884 acl_save_prefix="$prefix"
11885 prefix="$acl_final_prefix"
11886 acl_save_exec_prefix="$exec_prefix"
11887 exec_prefix="$acl_final_exec_prefix"
11888 eval x=\"$x\"
11889 exec_prefix="$acl_save_exec_prefix"
11890 prefix="$acl_save_prefix"
11891
11892 if test "X$x" = "X$element"; then
11893 haveit=yes
11894 break
11895 fi
11896 done
11897 if test -z "$haveit"; then
11898 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11899 fi
11900 done
11901
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11903 $as_echo_n "checking how to link with libiconv... " >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11905 $as_echo "$LIBICONV" >&6; }
11906 else
11907 LIBICONV=
11908 LTLIBICONV=
11909 fi
11910
11911
11912
11913 if test "$am_cv_func_iconv" = yes; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11915 $as_echo_n "checking for iconv declaration... " >&6; }
11916 if ${am_cv_proto_iconv+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922
11923 #include <stdlib.h>
11924 #include <iconv.h>
11925 extern
11926 #ifdef __cplusplus
11927 "C"
11928 #endif
11929 #if defined(__STDC__) || defined(__cplusplus)
11930 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11931 #else
11932 size_t iconv();
11933 #endif
11934
11935 int
11936 main ()
11937 {
11938
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_cxx_try_compile "$LINENO"; then :
11944 am_cv_proto_iconv_arg1=""
11945 else
11946 am_cv_proto_iconv_arg1="const"
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11950 fi
11951
11952 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11954 }$am_cv_proto_iconv" >&5
11955 $as_echo "${ac_t:-
11956 }$am_cv_proto_iconv" >&6; }
11957
11958 cat >>confdefs.h <<_ACEOF
11959 #define ICONV_CONST $am_cv_proto_iconv_arg1
11960 _ACEOF
11961
11962 fi
11963
11964
11965 # Until we have in-tree GNU iconv:
11966 LIBICONV_DEP=
11967 if test -f "$LTLIBICONV"; then
11968 LIBICONV_DEP=$LTLIBICONV
11969 fi
11970
11971
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11974 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11975 if ${am_cv_val_LC_MESSAGES+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <locale.h>
11981 int
11982 main ()
11983 {
11984 return LC_MESSAGES
11985 ;
11986 return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_cxx_try_link "$LINENO"; then :
11990 am_cv_val_LC_MESSAGES=yes
11991 else
11992 am_cv_val_LC_MESSAGES=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11998 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11999 if test $am_cv_val_LC_MESSAGES = yes; then
12000
12001 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12002
12003 fi
12004
12005
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12008 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12009 if ${am_cv_langinfo_codeset+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <langinfo.h>
12015 int
12016 main ()
12017 {
12018 char* cs = nl_langinfo(CODESET);
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_cxx_try_link "$LINENO"; then :
12024 am_cv_langinfo_codeset=yes
12025 else
12026 am_cv_langinfo_codeset=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12033 $as_echo "$am_cv_langinfo_codeset" >&6; }
12034 if test $am_cv_langinfo_codeset = yes; then
12035
12036 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12037
12038 fi
12039
12040
12041 # We will need to find libiberty.h and ansidecl.h
12042 saved_CFLAGS="$CFLAGS"
12043 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12044 saved_CXXFLAGS="$CXXFLAGS"
12045 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12046
12047 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12048 # normal autoconf function for these. But force definition of
12049 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12050 # basename handling in libiberty.h.
12051 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12052 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12053 #undef HAVE_DECL_BASENAME
12054 #define HAVE_DECL_BASENAME 1
12055 #include \"ansidecl.h\"
12056 #include \"system.h\"
12057 "
12058 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12059 ac_have_decl=1
12060 else
12061 ac_have_decl=0
12062 fi
12063
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_DECL_BASENAME $ac_have_decl
12066 _ACEOF
12067 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12068 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12069 #undef HAVE_DECL_BASENAME
12070 #define HAVE_DECL_BASENAME 1
12071 #include \"ansidecl.h\"
12072 #include \"system.h\"
12073 "
12074 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12075 ac_have_decl=1
12076 else
12077 ac_have_decl=0
12078 fi
12079
12080 cat >>confdefs.h <<_ACEOF
12081 #define HAVE_DECL_STRSTR $ac_have_decl
12082 _ACEOF
12083
12084
12085 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12086 madvise stpcpy strnlen strsignal strverscmp \
12087 strtol strtoul strtoll strtoull setenv unsetenv \
12088 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12089 free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
12090 do
12091 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12093 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12094 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #undef $ac_tr_decl
12100 #define $ac_tr_decl 1
12101
12102 #include "ansidecl.h"
12103 #include "system.h"
12104
12105 int
12106 main ()
12107 {
12108 #ifndef $ac_func
12109 char *(*pfn) = (char *(*)) $ac_func ;
12110 #endif
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_cxx_try_compile "$LINENO"; then :
12116 eval "gcc_cv_have_decl_$ac_func=yes"
12117 else
12118 eval "gcc_cv_have_decl_$ac_func=no"
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 fi
12122
12123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12126 #define $ac_tr_decl 1
12127 _ACEOF
12128
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12132 #define $ac_tr_decl 0
12133 _ACEOF
12134
12135 fi
12136
12137 done
12138
12139
12140 for ac_func in getrlimit setrlimit getrusage
12141 do
12142 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12144 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12145 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #undef $ac_tr_decl
12151 #define $ac_tr_decl 1
12152
12153 #include "ansidecl.h"
12154 #include "system.h"
12155 #ifdef HAVE_SYS_RESOURCE_H
12156 #include <sys/resource.h>
12157 #endif
12158
12159
12160 int
12161 main ()
12162 {
12163 #ifndef $ac_func
12164 char *(*pfn) = (char *(*)) $ac_func ;
12165 #endif
12166 ;
12167 return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_cxx_try_compile "$LINENO"; then :
12171 eval "gcc_cv_have_decl_$ac_func=yes"
12172 else
12173 eval "gcc_cv_have_decl_$ac_func=no"
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 fi
12177
12178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12181 #define $ac_tr_decl 1
12182 _ACEOF
12183
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12187 #define $ac_tr_decl 0
12188 _ACEOF
12189
12190 fi
12191
12192 done
12193
12194
12195 for ac_func in mallinfo mallinfo2
12196 do
12197 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12199 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12200 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #undef $ac_tr_decl
12206 #define $ac_tr_decl 1
12207
12208 #include "ansidecl.h"
12209 #include "system.h"
12210 #ifdef HAVE_MALLOC_H
12211 #include <malloc.h>
12212 #endif
12213
12214
12215 int
12216 main ()
12217 {
12218 #ifndef $ac_func
12219 char *(*pfn) = (char *(*)) $ac_func ;
12220 #endif
12221 ;
12222 return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_cxx_try_compile "$LINENO"; then :
12226 eval "gcc_cv_have_decl_$ac_func=yes"
12227 else
12228 eval "gcc_cv_have_decl_$ac_func=no"
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 fi
12232
12233 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12236 #define $ac_tr_decl 1
12237 _ACEOF
12238
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12242 #define $ac_tr_decl 0
12243 _ACEOF
12244
12245 fi
12246
12247 done
12248
12249
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 #include "ansidecl.h"
12254 #include "system.h"
12255 #ifdef HAVE_SYS_RESOURCE_H
12256 #include <sys/resource.h>
12257 #endif
12258
12259 int
12260 main ()
12261 {
12262 rlim_t l = 0;
12263 ;
12264 return 0;
12265 }
12266 _ACEOF
12267 if ac_fn_cxx_try_compile "$LINENO"; then :
12268
12269 else
12270
12271 $as_echo "#define rlim_t long" >>confdefs.h
12272
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275
12276 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12277 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12278 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12279 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12280 for ac_func in ldgetname
12281 do
12282 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12284 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12285 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #undef $ac_tr_decl
12291 #define $ac_tr_decl 1
12292
12293 #include "ansidecl.h"
12294 #include "system.h"
12295 #ifdef HAVE_LDFCN_H
12296 #undef FREAD
12297 #undef FWRITE
12298 #include <ldfcn.h>
12299 #endif
12300
12301
12302 int
12303 main ()
12304 {
12305 #ifndef $ac_func
12306 char *(*pfn) = (char *(*)) $ac_func ;
12307 #endif
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_cxx_try_compile "$LINENO"; then :
12313 eval "gcc_cv_have_decl_$ac_func=yes"
12314 else
12315 eval "gcc_cv_have_decl_$ac_func=no"
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319
12320 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12323 #define $ac_tr_decl 1
12324 _ACEOF
12325
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12329 #define $ac_tr_decl 0
12330 _ACEOF
12331
12332 fi
12333
12334 done
12335
12336
12337 for ac_func in times
12338 do
12339 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12341 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12342 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 #undef $ac_tr_decl
12348 #define $ac_tr_decl 1
12349
12350 #include "ansidecl.h"
12351 #include "system.h"
12352 #ifdef HAVE_SYS_TIMES_H
12353 #include <sys/times.h>
12354 #endif
12355
12356
12357 int
12358 main ()
12359 {
12360 #ifndef $ac_func
12361 char *(*pfn) = (char *(*)) $ac_func ;
12362 #endif
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_cxx_try_compile "$LINENO"; then :
12368 eval "gcc_cv_have_decl_$ac_func=yes"
12369 else
12370 eval "gcc_cv_have_decl_$ac_func=no"
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374
12375 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12378 #define $ac_tr_decl 1
12379 _ACEOF
12380
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12384 #define $ac_tr_decl 0
12385 _ACEOF
12386
12387 fi
12388
12389 done
12390
12391
12392 for ac_func in sigaltstack
12393 do
12394 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12396 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12397 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402 #undef $ac_tr_decl
12403 #define $ac_tr_decl 1
12404
12405 #include "ansidecl.h"
12406 #include "system.h"
12407 #include <signal.h>
12408
12409
12410 int
12411 main ()
12412 {
12413 #ifndef $ac_func
12414 char *(*pfn) = (char *(*)) $ac_func ;
12415 #endif
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_cxx_try_compile "$LINENO"; then :
12421 eval "gcc_cv_have_decl_$ac_func=yes"
12422 else
12423 eval "gcc_cv_have_decl_$ac_func=no"
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 fi
12427
12428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12431 #define $ac_tr_decl 1
12432 _ACEOF
12433
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12437 #define $ac_tr_decl 0
12438 _ACEOF
12439
12440 fi
12441
12442 done
12443
12444
12445 # More time-related stuff.
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12447 $as_echo_n "checking for struct tms... " >&6; }
12448 if ${ac_cv_struct_tms+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454
12455 #include "ansidecl.h"
12456 #include "system.h"
12457 #ifdef HAVE_SYS_TIMES_H
12458 #include <sys/times.h>
12459 #endif
12460
12461 int
12462 main ()
12463 {
12464 struct tms tms;
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_cxx_try_compile "$LINENO"; then :
12470 ac_cv_struct_tms=yes
12471 else
12472 ac_cv_struct_tms=no
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12477 $as_echo "$ac_cv_struct_tms" >&6; }
12478 if test $ac_cv_struct_tms = yes; then
12479
12480 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12481
12482 fi
12483
12484 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12485 # revisit after autoconf 2.50.
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12487 $as_echo_n "checking for clock_t... " >&6; }
12488 if ${gcc_cv_type_clock_t+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494
12495 #include "ansidecl.h"
12496 #include "system.h"
12497
12498 int
12499 main ()
12500 {
12501 clock_t x;
12502 ;
12503 return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_cxx_try_compile "$LINENO"; then :
12507 gcc_cv_type_clock_t=yes
12508 else
12509 gcc_cv_type_clock_t=no
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12514 $as_echo "$gcc_cv_type_clock_t" >&6; }
12515 if test $gcc_cv_type_clock_t = yes; then
12516
12517 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12518
12519 fi
12520
12521 # Check if F_SETLKW is supported by fcntl.
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12523 $as_echo_n "checking for F_SETLKW... " >&6; }
12524 if ${ac_cv_f_setlkw+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530
12531 #include <fcntl.h>
12532 int
12533 main ()
12534 {
12535
12536 struct flock fl;
12537 fl.l_whence = 0;
12538 fl.l_start = 0;
12539 fl.l_len = 0;
12540 fl.l_pid = 0;
12541 return fcntl (1, F_SETLKW, &fl);
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_cxx_try_compile "$LINENO"; then :
12547 ac_cv_f_setlkw=yes
12548 else
12549 ac_cv_f_setlkw=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12554 $as_echo "$ac_cv_f_setlkw" >&6; }
12555 if test $ac_cv_f_setlkw = yes; then
12556
12557 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12558
12559 fi
12560
12561 # Check if O_CLOEXEC is defined by fcntl
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12563 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12564 if ${ac_cv_o_cloexec+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 #include <fcntl.h>
12572 int
12573 main ()
12574 {
12575
12576 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_cxx_try_compile "$LINENO"; then :
12582 ac_cv_o_cloexec=yes
12583 else
12584 ac_cv_o_cloexec=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12589 $as_echo "$ac_cv_o_cloexec" >&6; }
12590 if test $ac_cv_o_cloexec = yes; then
12591
12592 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12593
12594 fi
12595
12596 # Check if O_NONBLOCK is defined by fcntl
12597 for ac_header in fcntl.h
12598 do :
12599 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12600 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12601 cat >>confdefs.h <<_ACEOF
12602 #define HAVE_FCNTL_H 1
12603 _ACEOF
12604
12605 fi
12606 done
12607
12608 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12609 "
12610 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12611
12612 fi
12613
12614 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12615
12616 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12617
12618 fi
12619
12620
12621 # C++ Modules would like some networking features to provide the mapping
12622 # server. You can still use modules without them though.
12623 # The following network-related checks could probably do with some
12624 # Windows and other non-linux defenses and checking.
12625
12626 # Local socket connectivity wants AF_UNIX networking
12627 # Check for AF_UNIX networking
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12629 $as_echo_n "checking for AF_UNIX... " >&6; }
12630 if ${ac_cv_af_unix+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636
12637 #include <sys/types.h>
12638 #include <sys/socket.h>
12639 #include <sys/un.h>
12640 #include <netinet/in.h>
12641 int
12642 main ()
12643 {
12644
12645 sockaddr_un un;
12646 un.sun_family = AF_UNSPEC;
12647 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12648 connect (fd, (sockaddr *)&un, sizeof (un));
12649 ;
12650 return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_cxx_try_compile "$LINENO"; then :
12654 ac_cv_af_unix=yes
12655 else
12656 ac_cv_af_unix=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_af_unix" >&5
12661 $as_echo "$ac_cv_af_unix" >&6; }
12662 if test $ac_cv_af_unix = yes; then
12663
12664 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12665
12666 fi
12667
12668 # Remote socket connectivity wants AF_INET6 networking
12669 # Check for AF_INET6 networking
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12671 $as_echo_n "checking for AF_INET6... " >&6; }
12672 if ${ac_cv_af_inet6+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 #include <sys/types.h>
12680 #include <sys/socket.h>
12681 #include <netinet/in.h>
12682 #include <netdb.h>
12683 int
12684 main ()
12685 {
12686
12687 sockaddr_in6 in6;
12688 in6.sin6_family = AF_UNSPEC;
12689 struct addrinfo *addrs = 0;
12690 struct addrinfo hints;
12691 hints.ai_flags = 0;
12692 hints.ai_family = AF_INET6;
12693 hints.ai_socktype = SOCK_STREAM;
12694 hints.ai_protocol = 0;
12695 hints.ai_canonname = 0;
12696 hints.ai_addr = 0;
12697 hints.ai_next = 0;
12698 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12699 const char *str = gai_strerror (e);
12700 freeaddrinfo (addrs);
12701 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12702 connect (fd, (sockaddr *)&in6, sizeof (in6));
12703 ;
12704 return 0;
12705 }
12706 _ACEOF
12707 if ac_fn_cxx_try_compile "$LINENO"; then :
12708 ac_cv_af_inet6=yes
12709 else
12710 ac_cv_af_inet6=no
12711 fi
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12715 $as_echo "$ac_cv_af_inet6" >&6; }
12716 if test $ac_cv_af_inet6 = yes; then
12717
12718 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12719
12720 fi
12721
12722 # Check if _LK_LOCK is supported by _locking
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12724 $as_echo_n "checking for _LK_LOCK... " >&6; }
12725 if ${ac_cv_lk_lock+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731
12732 #include <io.h>
12733 #include <sys/locking.h>
12734 int
12735 main ()
12736 {
12737
12738 int fd;
12739 return _locking (fd, _LK_LOCK, 0);
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_cxx_try_compile "$LINENO"; then :
12745 ac_cv_lk_lock=yes
12746 else
12747 ac_cv_lk_lock=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12752 $as_echo "$ac_cv_lk_lock" >&6; }
12753 if test $ac_cv_lk_lock = yes; then
12754
12755 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12756
12757 fi
12758
12759 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12760 CFLAGS="$saved_CFLAGS"
12761 CXXFLAGS="$saved_CXXFLAGS"
12762
12763 # mkdir takes a single argument on some systems.
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12765 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12766 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 #include <sys/types.h>
12773 #ifdef HAVE_SYS_STAT_H
12774 # include <sys/stat.h>
12775 #endif
12776 #ifdef HAVE_UNISTD_H
12777 # include <unistd.h>
12778 #endif
12779 #ifdef HAVE_DIRECT_H
12780 # include <direct.h>
12781 #endif
12782 int
12783 main ()
12784 {
12785 mkdir ("foo", 0);
12786 ;
12787 return 0;
12788 }
12789 _ACEOF
12790 if ac_fn_cxx_try_compile "$LINENO"; then :
12791 gcc_cv_mkdir_takes_one_arg=no
12792 else
12793 gcc_cv_mkdir_takes_one_arg=yes
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12798 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12799 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12800
12801 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12802
12803 fi
12804
12805
12806 # File extensions
12807 manext='.1'
12808 objext='.o'
12809
12810
12811
12812 # With Setjmp/Longjmp based exception handling.
12813 # Check whether --enable-sjlj-exceptions was given.
12814 if test "${enable_sjlj_exceptions+set}" = set; then :
12815 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12816 else
12817 case $target in
12818 lm32*-*-*)
12819 force_sjlj_exceptions=yes
12820 enableval=yes
12821 ;;
12822 *)
12823 force_sjlj_exceptions=no
12824 ;;
12825 esac
12826 fi
12827
12828 if test $force_sjlj_exceptions = yes; then
12829 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12830
12831 cat >>confdefs.h <<_ACEOF
12832 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12833 _ACEOF
12834
12835 fi
12836
12837 # --------------------------------------------------------
12838 # Build, host, and target specific configuration fragments
12839 # --------------------------------------------------------
12840
12841 # Collect build-machine-specific information.
12842 . ${srcdir}/config.build || exit 1
12843
12844 # Collect host-machine-specific information.
12845 . ${srcdir}/config.host || exit 1
12846
12847 target_gtfiles=
12848
12849 # Collect target-machine-specific information.
12850 . ${srcdir}/config.gcc || exit 1
12851
12852 extra_objs="${host_extra_objs} ${extra_objs}"
12853 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12854
12855 # Default the target-machine variables that were not explicitly set.
12856 if test x"$tm_file" = x
12857 then tm_file=$cpu_type/$cpu_type.h; fi
12858
12859 if test x"$extra_headers" = x
12860 then extra_headers=; fi
12861
12862 if test x$md_file = x
12863 then md_file=$cpu_type/$cpu_type.md; fi
12864
12865 if test x$out_file = x
12866 then out_file=$cpu_type/$cpu_type.cc; fi
12867
12868 if test x"$tmake_file" = x
12869 then tmake_file=$cpu_type/t-$cpu_type
12870 fi
12871
12872 # Support --enable-initfini-array.
12873 if test x$enable_initfini_array != xno; then
12874 tm_file="${tm_file} initfini-array.h"
12875 fi
12876
12877 if test x"$dwarf2" = xyes
12878 then tm_file="$tm_file tm-dwarf2.h"
12879 fi
12880
12881 # Say what files are being used for the output code and MD file.
12882 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12883 echo "Using \`$srcdir/config/$md_file' as machine description file."
12884
12885 # If any of the xm_file variables contain nonexistent files, warn
12886 # about them and drop them.
12887
12888 bx=
12889 for x in $build_xm_file; do
12890 if test -f $srcdir/config/$x
12891 then bx="$bx $x"
12892 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12893 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12894 fi
12895 done
12896 build_xm_file="$bx"
12897
12898 hx=
12899 for x in $host_xm_file; do
12900 if test -f $srcdir/config/$x
12901 then hx="$hx $x"
12902 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12903 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12904 fi
12905 done
12906 host_xm_file="$hx"
12907
12908 tx=
12909 for x in $xm_file; do
12910 if test -f $srcdir/config/$x
12911 then tx="$tx $x"
12912 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12913 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12914 fi
12915 done
12916 xm_file="$tx"
12917
12918 count=a
12919 for f in $tm_file; do
12920 count=${count}x
12921 done
12922 if test $count = ax; then
12923 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12924 else
12925 echo "Using the following target machine macro files:"
12926 for f in $tm_file; do
12927 echo " $srcdir/config/$f"
12928 done
12929 fi
12930
12931 if test x$use_long_long_for_widest_fast_int = xyes; then
12932
12933 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12934
12935 fi
12936
12937 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12938
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_GNU_LD $gnu_ld_bool
12941 _ACEOF
12942
12943
12944 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12945
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_GNU_AS $gnu_as_bool
12948 _ACEOF
12949
12950
12951 count=a
12952 for f in $host_xm_file; do
12953 count=${count}x
12954 done
12955 if test $count = a; then
12956 :
12957 elif test $count = ax; then
12958 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12959 else
12960 echo "Using the following host machine macro files:"
12961 for f in $host_xm_file; do
12962 echo " $srcdir/config/$f"
12963 done
12964 fi
12965 echo "Using ${out_host_hook_obj} for host machine hooks."
12966
12967 if test "$host_xm_file" != "$build_xm_file"; then
12968 count=a
12969 for f in $build_xm_file; do
12970 count=${count}x
12971 done
12972 if test $count = a; then
12973 :
12974 elif test $count = ax; then
12975 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12976 else
12977 echo "Using the following build machine macro files:"
12978 for f in $build_xm_file; do
12979 echo " $srcdir/config/$f"
12980 done
12981 fi
12982 fi
12983
12984 if test -n "$configured_native_system_header_dir"; then
12985 native_system_header_dir=$configured_native_system_header_dir
12986 fi
12987 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12988
12989
12990 case ${host} in
12991 powerpc*-*-darwin*)
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12993 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12994 if ${gcc_cv_mcontext_underscores+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999
13000 #include <sys/cdefs.h>
13001 #include <sys/signal.h>
13002 #include <ucontext.h>
13003 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13004
13005 _ACEOF
13006 if ac_fn_cxx_try_compile "$LINENO"; then :
13007 gcc_cv_mcontext_underscores=no
13008 else
13009 gcc_cv_mcontext_underscores=yes
13010 fi
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13014 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13015 if test $gcc_cv_mcontext_underscores = yes; then
13016
13017 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13018
13019 fi
13020 ;;
13021 esac
13022
13023 # ---------
13024 # Threading
13025 # ---------
13026
13027 # Check if a valid thread package
13028 case ${enable_threads} in
13029 "" | no)
13030 # No threads
13031 target_thread_file='single'
13032 ;;
13033 yes)
13034 # default
13035 target_thread_file='single'
13036 ;;
13037 aix | dce | lynx | mipssde | posix | rtems | \
13038 single | tpf | vxworks | win32 | mcf)
13039 target_thread_file=${enable_threads}
13040 ;;
13041 *)
13042 echo "${enable_threads} is an unknown thread package" 1>&2
13043 exit 1
13044 ;;
13045 esac
13046
13047 if test x${thread_file} = x; then
13048 # No thread file set by target-specific clauses in config.gcc,
13049 # so use file chosen by default logic above
13050 thread_file=${target_thread_file}
13051 fi
13052
13053 # --------
13054 # UNSORTED
13055 # --------
13056
13057 use_cxa_atexit=no
13058 if test x$enable___cxa_atexit = xyes || \
13059 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13060 if test x$host = x$target; then
13061 case $host in
13062 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13063 # keyed to flag_use_cxa_atexit
13064 *-*-mingw32*)
13065 use_cxa_atexit=yes
13066 ;;
13067 powerpc-ibm-aix*)
13068 use_cxa_atexit=yes
13069 ;;
13070 *)
13071 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13072 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13073 use_cxa_atexit=yes
13074 else
13075 echo "__cxa_atexit can't be enabled on this target"
13076 fi
13077
13078 ;;
13079 esac
13080 else
13081 # We can't check for __cxa_atexit when building a cross, so assume
13082 # it is available
13083 use_cxa_atexit=yes
13084 fi
13085 if test x$use_cxa_atexit = xyes; then
13086
13087 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13088
13089 fi
13090 fi
13091
13092 # Look for a file containing extra machine modes.
13093 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13094 extra_modes_file='$(srcdir)'/config/${extra_modes}
13095
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define EXTRA_MODES_FILE "config/$extra_modes"
13099 _ACEOF
13100
13101 fi
13102
13103 # Convert extra_options into a form suitable for Makefile use.
13104 extra_opt_files=
13105 all_opt_files=
13106 for f in $extra_options; do
13107 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13108 all_opt_files="$all_opt_files $srcdir/config/$f"
13109 done
13110
13111
13112 # auto-host.h is the file containing items generated by autoconf and is
13113 # the first file included by config.h.
13114 # If host=build, it is correct to have bconfig include auto-host.h
13115 # as well. If host!=build, we are in error and need to do more
13116 # work to find out the build config parameters.
13117 if test x$host = x$build
13118 then
13119 build_auto=auto-host.h
13120 HAVE_AUTO_BUILD='# '
13121 else
13122 # We create a subdir, then run autoconf in the subdir.
13123 # To prevent recursion we set host and build for the new
13124 # invocation of configure to the build for this invocation
13125 # of configure.
13126 tempdir=build.$$
13127 rm -rf $tempdir
13128 mkdir $tempdir
13129 cd $tempdir
13130 case ${srcdir} in
13131 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13132 *) realsrcdir=../${srcdir};;
13133 esac
13134 # Clearing GMPINC is necessary to prevent host headers being
13135 # used by the build compiler. Defining GENERATOR_FILE stops
13136 # system.h from including gmp.h.
13137 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13138 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13139 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13140 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13141 ${realsrcdir}/configure \
13142 --enable-languages=${enable_languages-all} \
13143 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13144 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13145 --target=$target_alias --host=$build_alias \
13146 --build=$build_alias || exit # retaining $tempdir
13147
13148 # We just finished tests for the build machine, so rename
13149 # the file auto-build.h in the gcc directory.
13150 mv auto-host.h ../auto-build.h
13151 cd ..
13152 rm -rf $tempdir
13153 build_auto=auto-build.h
13154 HAVE_AUTO_BUILD=
13155 fi
13156
13157
13158
13159 tm_file="${tm_file} defaults.h"
13160 tm_p_file="${tm_p_file} tm-preds.h"
13161 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13162 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13163 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13164 # put this back in temporarily.
13165 xm_file="auto-host.h ansidecl.h ${xm_file}"
13166
13167 # --------
13168 # UNSORTED
13169 # --------
13170
13171 # Compile in configure arguments.
13172 if test -f configargs.h ; then
13173 # Being re-configured.
13174 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13175 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13176 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13177 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13178 fi
13179 else
13180 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13181 fi
13182
13183 # Double all backslashes and backslash all quotes to turn
13184 # gcc_config_arguments into a C string.
13185 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13186 $gcc_config_arguments
13187 EOF
13188 gcc_config_arguments_str=`cat conftest.out`
13189 rm -f conftest.out
13190
13191 cat > configargs.h <<EOF
13192 /* Generated automatically. */
13193 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13194 static const char thread_model[] = "$thread_file";
13195
13196 static const struct {
13197 const char *name, *value;
13198 } configure_default_options[] = $configure_default_options;
13199 EOF
13200
13201 gcc_BASEVER=`cat $srcdir/BASE-VER`
13202 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13203 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13204 if test -f $srcdir/REVISION ; then
13205 gcc_REVISION=`cat $srcdir/REVISION`
13206 else
13207 gcc_REVISION=""
13208 fi
13209 cat > plugin-version.h <<EOF
13210 #include "configargs.h"
13211
13212 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13213 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13214 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13215 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13216
13217 static char basever[] = "$gcc_BASEVER";
13218 static char datestamp[] = "$gcc_DATESTAMP";
13219 static char devphase[] = "$gcc_DEVPHASE";
13220 static char revision[] = "$gcc_REVISION";
13221
13222 /* FIXME plugins: We should make the version information more precise.
13223 One way to do is to add a checksum. */
13224
13225 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13226 devphase, revision,
13227 configuration_arguments};
13228 EOF
13229
13230 # Determine what GCC version number to use in filesystem paths.
13231
13232 get_gcc_base_ver="cat"
13233
13234 # Check whether --with-gcc-major-version-only was given.
13235 if test "${with_gcc_major_version_only+set}" = set; then :
13236 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13237 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13238 fi
13239
13240 fi
13241
13242
13243
13244
13245 # Internationalization
13246 # If we haven't got the data from the intl directory,
13247 # assume NLS is disabled.
13248 USE_NLS=no
13249 LIBINTL=
13250 LIBINTL_DEP=
13251 INCINTL=
13252 XGETTEXT=
13253 GMSGFMT=
13254 POSUB=
13255
13256 if test -f ../intl/config.intl; then
13257 . ../intl/config.intl
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13260 $as_echo_n "checking whether NLS is requested... " >&6; }
13261 if test x"$USE_NLS" != xyes; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267
13268 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13269
13270
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13272 $as_echo_n "checking for catalogs to be installed... " >&6; }
13273 # Look for .po and .gmo files in the source directory.
13274 CATALOGS=
13275 XLINGUAS=
13276 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13277 # If there aren't any .gmo files the shell will give us the
13278 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13279 # weeded out.
13280 case "$cat" in *\**)
13281 continue;;
13282 esac
13283 # The quadruple backslash is collapsed to a double backslash
13284 # by the backticks, then collapsed again by the double quotes,
13285 # leaving us with one backslash in the sed expression (right
13286 # before the dot that mustn't act as a wildcard).
13287 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13288 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13289 # The user is allowed to set LINGUAS to a list of languages to
13290 # install catalogs for. If it's empty that means "all of them."
13291 if test "x$LINGUAS" = x; then
13292 CATALOGS="$CATALOGS $cat"
13293 XLINGUAS="$XLINGUAS $lang"
13294 else
13295 case "$LINGUAS" in *$lang*)
13296 CATALOGS="$CATALOGS $cat"
13297 XLINGUAS="$XLINGUAS $lang"
13298 ;;
13299 esac
13300 fi
13301 done
13302 LINGUAS="$XLINGUAS"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13304 $as_echo "$LINGUAS" >&6; }
13305
13306
13307 DATADIRNAME=share
13308
13309 INSTOBJEXT=.mo
13310
13311 GENCAT=gencat
13312
13313 CATOBJEXT=.gmo
13314
13315 fi
13316
13317 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13318 # -liconv on the link line twice.
13319 case "$LIBINTL" in *$LIBICONV*)
13320 LIBICONV= ;;
13321 esac
13322
13323 # Check whether --enable-secureplt was given.
13324 if test "${enable_secureplt+set}" = set; then :
13325 enableval=$enable_secureplt;
13326 fi
13327
13328
13329 # Check whether --enable-mingw-wildcard was given.
13330 if test "${enable_mingw_wildcard+set}" = set; then :
13331 enableval=$enable_mingw_wildcard;
13332 else
13333 enable_mingw_wildcard=platform
13334 fi
13335
13336 if test x"$enable_mingw_wildcard" != xplatform ; then :
13337
13338 cat >>confdefs.h <<_ACEOF
13339 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13340 _ACEOF
13341
13342 fi
13343
13344 # Check whether --enable-large-address-aware was given.
13345 if test "${enable_large_address_aware+set}" = set; then :
13346 enableval=$enable_large_address_aware;
13347 fi
13348
13349 if test x"$enable_large_address_aware" = xyes; then :
13350
13351 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13352
13353 fi
13354
13355 # Check whether --enable-leading-mingw64-underscores was given.
13356 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13357 enableval=$enable_leading_mingw64_underscores;
13358 fi
13359
13360 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13361
13362 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13363
13364 fi
13365
13366 # Check whether --enable-cld was given.
13367 if test "${enable_cld+set}" = set; then :
13368 enableval=$enable_cld;
13369 else
13370 enable_cld=no
13371 fi
13372
13373
13374 # Check whether --enable-frame-pointer was given.
13375 if test "${enable_frame_pointer+set}" = set; then :
13376 enableval=$enable_frame_pointer;
13377 else
13378
13379 case $target_os in
13380 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13381 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13382 enable_frame_pointer=no
13383 ;;
13384 *)
13385 enable_frame_pointer=yes
13386 ;;
13387 esac
13388
13389 fi
13390
13391
13392 case $target in
13393 i[34567]86-*-* | x86_64-*-*)
13394 if test "x$enable_cld" = xyes; then
13395 tm_defines="${tm_defines} USE_IX86_CLD=1"
13396 fi
13397 if test "x$enable_frame_pointer" = xyes; then
13398 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13399 fi
13400 ;;
13401 esac
13402
13403 # Windows32 Registry support for specifying GCC installation paths.
13404 # Check whether --enable-win32-registry was given.
13405 if test "${enable_win32_registry+set}" = set; then :
13406 enableval=$enable_win32_registry;
13407 fi
13408
13409
13410 case $host_os in
13411 win32 | pe | cygwin* | mingw32*)
13412 if test "x$enable_win32_registry" != xno; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13415 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 ac_func_search_save_LIBS=$LIBS
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421
13422 /* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char RegOpenKeyExA ();
13429 int
13430 main ()
13431 {
13432 return RegOpenKeyExA ();
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 for ac_lib in '' advapi32; do
13438 if test -z "$ac_lib"; then
13439 ac_res="none required"
13440 else
13441 ac_res=-l$ac_lib
13442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13443 fi
13444 if ac_fn_cxx_try_link "$LINENO"; then :
13445 ac_cv_search_RegOpenKeyExA=$ac_res
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext
13449 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13450 break
13451 fi
13452 done
13453 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13454
13455 else
13456 ac_cv_search_RegOpenKeyExA=no
13457 fi
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13463 ac_res=$ac_cv_search_RegOpenKeyExA
13464 if test "$ac_res" != no; then :
13465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467 else
13468 enable_win32_registry=no
13469 fi
13470
13471 fi
13472
13473 if test "x$enable_win32_registry" != xno; then
13474
13475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13476
13477
13478 if test "x$enable_win32_registry" != xyes \
13479 && test "x$enable_win32_registry" != x; then
13480
13481 cat >>confdefs.h <<_ACEOF
13482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13483 _ACEOF
13484
13485 fi
13486 fi
13487 ;;
13488 esac
13489
13490 # Get an absolute path to the GCC top-level source directory
13491 holddir=`${PWDCMD-pwd}`
13492 cd $srcdir
13493 topdir=`${PWDCMD-pwd}`
13494 cd $holddir
13495
13496 # Conditionalize the makefile for this host machine.
13497 xmake_file=
13498 for f in ${host_xmake_file}
13499 do
13500 if test -f ${srcdir}/config/$f
13501 then
13502 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13503 fi
13504 done
13505
13506 # Conditionalize the makefile for this target machine.
13507 tmake_file_=
13508 for f in ${tmake_file}
13509 do
13510 if test -f ${srcdir}/config/$f
13511 then
13512 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13513 fi
13514 done
13515 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13516
13517 out_object_file=`basename $out_file .cc`.o
13518 common_out_object_file=`basename $common_out_file .cc`.o
13519
13520 tm_file_list="options.h"
13521 tm_include_list="options.h insn-constants.h"
13522 for f in $tm_file; do
13523 case $f in
13524 ./* )
13525 f=`echo $f | sed 's/^..//'`
13526 tm_file_list="${tm_file_list} $f"
13527 tm_include_list="${tm_include_list} $f"
13528 ;;
13529 defaults.h )
13530 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13531 tm_include_list="${tm_include_list} $f"
13532 ;;
13533 * )
13534 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13535 tm_include_list="${tm_include_list} config/$f"
13536 ;;
13537 esac
13538 done
13539
13540 tm_p_file_list=
13541 tm_p_include_list=
13542 for f in $tm_p_file; do
13543 case $f in
13544 tm-preds.h )
13545 tm_p_file_list="${tm_p_file_list} $f"
13546 tm_p_include_list="${tm_p_include_list} $f"
13547 ;;
13548 * )
13549 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13550 tm_p_include_list="${tm_p_include_list} config/$f"
13551 esac
13552 done
13553
13554 tm_d_file_list=
13555 tm_d_include_list=
13556 for f in $tm_d_file; do
13557 case $f in
13558 * )
13559 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13560 tm_d_include_list="${tm_d_include_list} config/$f"
13561 ;;
13562 esac
13563 done
13564
13565 xm_file_list=
13566 xm_include_list=
13567 for f in $xm_file; do
13568 case $f in
13569 ansidecl.h )
13570 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13571 xm_include_list="${xm_include_list} $f"
13572 ;;
13573 auto-host.h )
13574 xm_file_list="${xm_file_list} $f"
13575 xm_include_list="${xm_include_list} $f"
13576 ;;
13577 * )
13578 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13579 xm_include_list="${xm_include_list} config/$f"
13580 ;;
13581 esac
13582 done
13583
13584 host_xm_file_list=
13585 host_xm_include_list=
13586 for f in $host_xm_file; do
13587 case $f in
13588 ansidecl.h )
13589 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13590 host_xm_include_list="${host_xm_include_list} $f"
13591 ;;
13592 auto-host.h )
13593 host_xm_file_list="${host_xm_file_list} $f"
13594 host_xm_include_list="${host_xm_include_list} $f"
13595 ;;
13596 * )
13597 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13598 host_xm_include_list="${host_xm_include_list} config/$f"
13599 ;;
13600 esac
13601 done
13602
13603 build_xm_file_list=
13604 for f in $build_xm_file; do
13605 case $f in
13606 ansidecl.h )
13607 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13608 build_xm_include_list="${build_xm_include_list} $f"
13609 ;;
13610 auto-build.h | auto-host.h )
13611 build_xm_file_list="${build_xm_file_list} $f"
13612 build_xm_include_list="${build_xm_include_list} $f"
13613 ;;
13614 * )
13615 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13616 build_xm_include_list="${build_xm_include_list} config/$f"
13617 ;;
13618 esac
13619 done
13620
13621 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13622 # cross-compiler which does not use the native headers and libraries.
13623 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13624 CROSS=
13625 ALL=all.internal
13626 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13627 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13628
13629 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13630 test x$build != x$host || test "x$with_build_sysroot" != x; then
13631 if test "x$with_build_sysroot" != x; then
13632 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13633 else
13634 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13635 fi
13636
13637 if test x$host != x$target
13638 then
13639 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13640 ALL=all.cross
13641 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13642 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13643 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13644 fi
13645
13646 if test "x$with_build_sysroot" != "x"; then
13647 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13648 elif test "x$with_sysroot" = x; then
13649 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13650 elif test "x$with_sysroot" = xyes; then
13651 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13652 else
13653 target_header_dir="${with_sysroot}${native_system_header_dir}"
13654 fi
13655 else
13656 target_header_dir=${native_system_header_dir}
13657 fi
13658
13659 # If this is a cross-compiler that does not
13660 # have its own set of headers then define
13661 # inhibit_libc
13662
13663 # If this is using newlib, without having the headers available now,
13664 # then define inhibit_libc in LIBGCC2_CFLAGS.
13665 # This prevents libgcc2 from containing any code which requires libc
13666 # support.
13667 : ${inhibit_libc=false}
13668 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13669 test x$with_newlib = xyes ; } &&
13670 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13671 inhibit_libc=true
13672 fi
13673
13674
13675 # When building gcc with a cross-compiler, we need to adjust things so
13676 # that the generator programs are still built with the native compiler.
13677 # Also, we cannot run fixincludes.
13678
13679 # These are the normal (build=host) settings:
13680 CC_FOR_BUILD='$(CC)'
13681 CXX_FOR_BUILD='$(CXX)'
13682 BUILD_CFLAGS='$(ALL_CFLAGS)'
13683 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13684 BUILD_LDFLAGS='$(LDFLAGS)'
13685 STMP_FIXINC=stmp-fixinc
13686
13687 # And these apply if build != host, or we are generating coverage data
13688 if test x$build != x$host || test "x$coverage_flags" != x
13689 then
13690 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13691 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13692 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13693 fi
13694
13695
13696 if test x$enable_fixincludes = xno;
13697 then
13698 STMP_FIXINC=''
13699 fi
13700
13701 # Expand extra_headers to include complete path.
13702 # This substitutes for lots of t-* files.
13703 extra_headers_list=
13704 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13705 for file in ${extra_headers} ; do
13706 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13707 done
13708
13709 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13710 if test x"$use_gcc_tgmath" = xyes
13711 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13712 fi
13713
13714 # Define collect2 in Makefile.
13715 case $host_can_use_collect2 in
13716 no) collect2= ;;
13717 *) collect2='collect2$(exeext)' ;;
13718 esac
13719
13720
13721 # Add a definition of USE_COLLECT2 if system wants one.
13722 case $use_collect2 in
13723 no) use_collect2= ;;
13724 "") ;;
13725 *)
13726 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13727 xm_defines="${xm_defines} USE_COLLECT2"
13728 case $host_can_use_collect2 in
13729 no)
13730 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13731 ;;
13732 esac
13733 ;;
13734 esac
13735
13736
13737 cat >>confdefs.h <<_ACEOF
13738 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13739 _ACEOF
13740
13741
13742 # ---------------------------
13743 # Assembler & linker features
13744 # ---------------------------
13745
13746 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13747 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13748 # However when ld-new is first executed from the build tree, libtool will
13749 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13750 # to the build tree. While doing this we need to use the previous-stage
13751 # linker, or we have an infinite loop. The presence of a shell script as
13752 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13753 # the gcc/collect-ld script. So we need to know how libtool works, or
13754 # exec-tool will fail.
13755
13756
13757 case `pwd` in
13758 *\ * | *\ *)
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13760 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13761 esac
13762
13763
13764
13765 macro_version='2.2.7a'
13766 macro_revision='1.3134'
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780 ltmain="$ac_aux_dir/ltmain.sh"
13781
13782 # Backslashify metacharacters that are still active within
13783 # double-quoted strings.
13784 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13785
13786 # Same as above, but do not quote variable references.
13787 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13788
13789 # Sed substitution to delay expansion of an escaped shell variable in a
13790 # double_quote_subst'ed string.
13791 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13792
13793 # Sed substitution to delay expansion of an escaped single quote.
13794 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13795
13796 # Sed substitution to avoid accidental globbing in evaled expressions
13797 no_glob_subst='s/\*/\\\*/g'
13798
13799 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13804 $as_echo_n "checking how to print strings... " >&6; }
13805 # Test print first, because it will be a builtin if present.
13806 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13807 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13808 ECHO='print -r --'
13809 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13810 ECHO='printf %s\n'
13811 else
13812 # Use this function as a fallback that always works.
13813 func_fallback_echo ()
13814 {
13815 eval 'cat <<_LTECHO_EOF
13816 $1
13817 _LTECHO_EOF'
13818 }
13819 ECHO='func_fallback_echo'
13820 fi
13821
13822 # func_echo_all arg...
13823 # Invoke $ECHO with all args, space-separated.
13824 func_echo_all ()
13825 {
13826 $ECHO ""
13827 }
13828
13829 case "$ECHO" in
13830 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13831 $as_echo "printf" >&6; } ;;
13832 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13833 $as_echo "print -r" >&6; } ;;
13834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13835 $as_echo "cat" >&6; } ;;
13836 esac
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13852 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13853 if ${ac_cv_path_SED+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13857 for ac_i in 1 2 3 4 5 6 7; do
13858 ac_script="$ac_script$as_nl$ac_script"
13859 done
13860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13861 { ac_script=; unset ac_script;}
13862 if test -z "$SED"; then
13863 ac_path_SED_found=false
13864 # Loop through the user's path and test for each of PROGNAME-LIST
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13867 do
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_prog in sed gsed; do
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13873 as_fn_executable_p "$ac_path_SED" || continue
13874 # Check for GNU ac_path_SED and select it if it is found.
13875 # Check for GNU $ac_path_SED
13876 case `"$ac_path_SED" --version 2>&1` in
13877 *GNU*)
13878 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13879 *)
13880 ac_count=0
13881 $as_echo_n 0123456789 >"conftest.in"
13882 while :
13883 do
13884 cat "conftest.in" "conftest.in" >"conftest.tmp"
13885 mv "conftest.tmp" "conftest.in"
13886 cp "conftest.in" "conftest.nl"
13887 $as_echo '' >> "conftest.nl"
13888 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13890 as_fn_arith $ac_count + 1 && ac_count=$as_val
13891 if test $ac_count -gt ${ac_path_SED_max-0}; then
13892 # Best one so far, save it but keep looking for a better one
13893 ac_cv_path_SED="$ac_path_SED"
13894 ac_path_SED_max=$ac_count
13895 fi
13896 # 10*(2^10) chars as input seems more than enough
13897 test $ac_count -gt 10 && break
13898 done
13899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13900 esac
13901
13902 $ac_path_SED_found && break 3
13903 done
13904 done
13905 done
13906 IFS=$as_save_IFS
13907 if test -z "$ac_cv_path_SED"; then
13908 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13909 fi
13910 else
13911 ac_cv_path_SED=$SED
13912 fi
13913
13914 fi
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13916 $as_echo "$ac_cv_path_SED" >&6; }
13917 SED="$ac_cv_path_SED"
13918 rm -f conftest.sed
13919
13920 test -z "$SED" && SED=sed
13921 Xsed="$SED -e 1s/^X//"
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13934 $as_echo_n "checking for fgrep... " >&6; }
13935 if ${ac_cv_path_FGREP+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13939 then ac_cv_path_FGREP="$GREP -F"
13940 else
13941 if test -z "$FGREP"; then
13942 ac_path_FGREP_found=false
13943 # Loop through the user's path and test for each of PROGNAME-LIST
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13946 do
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_prog in fgrep; do
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13952 as_fn_executable_p "$ac_path_FGREP" || continue
13953 # Check for GNU ac_path_FGREP and select it if it is found.
13954 # Check for GNU $ac_path_FGREP
13955 case `"$ac_path_FGREP" --version 2>&1` in
13956 *GNU*)
13957 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13958 *)
13959 ac_count=0
13960 $as_echo_n 0123456789 >"conftest.in"
13961 while :
13962 do
13963 cat "conftest.in" "conftest.in" >"conftest.tmp"
13964 mv "conftest.tmp" "conftest.in"
13965 cp "conftest.in" "conftest.nl"
13966 $as_echo 'FGREP' >> "conftest.nl"
13967 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13969 as_fn_arith $ac_count + 1 && ac_count=$as_val
13970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13971 # Best one so far, save it but keep looking for a better one
13972 ac_cv_path_FGREP="$ac_path_FGREP"
13973 ac_path_FGREP_max=$ac_count
13974 fi
13975 # 10*(2^10) chars as input seems more than enough
13976 test $ac_count -gt 10 && break
13977 done
13978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13979 esac
13980
13981 $ac_path_FGREP_found && break 3
13982 done
13983 done
13984 done
13985 IFS=$as_save_IFS
13986 if test -z "$ac_cv_path_FGREP"; then
13987 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13988 fi
13989 else
13990 ac_cv_path_FGREP=$FGREP
13991 fi
13992
13993 fi
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13996 $as_echo "$ac_cv_path_FGREP" >&6; }
13997 FGREP="$ac_cv_path_FGREP"
13998
13999
14000 test -z "$GREP" && GREP=grep
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020 # Check whether --with-gnu-ld was given.
14021 if test "${with_gnu_ld+set}" = set; then :
14022 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14023 else
14024 with_gnu_ld=no
14025 fi
14026
14027 ac_prog=ld
14028 if test "$GCC" = yes; then
14029 # Check if gcc -print-prog-name=ld gives a path.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14031 $as_echo_n "checking for ld used by $CC... " >&6; }
14032 case $host in
14033 *-*-mingw*)
14034 # gcc leaves a trailing carriage return which upsets mingw
14035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14036 *)
14037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14038 esac
14039 case $ac_prog in
14040 # Accept absolute paths.
14041 [\\/]* | ?:[\\/]*)
14042 re_direlt='/[^/][^/]*/\.\./'
14043 # Canonicalize the pathname of ld
14044 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14045 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14046 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14047 done
14048 test -z "$LD" && LD="$ac_prog"
14049 ;;
14050 "")
14051 # If it fails, then pretend we aren't using GCC.
14052 ac_prog=ld
14053 ;;
14054 *)
14055 # If it is relative, then search for the first ld in PATH.
14056 with_gnu_ld=unknown
14057 ;;
14058 esac
14059 elif test "$with_gnu_ld" = yes; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14061 $as_echo_n "checking for GNU ld... " >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14064 $as_echo_n "checking for non-GNU ld... " >&6; }
14065 fi
14066 if ${lt_cv_path_LD+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 if test -z "$LD"; then
14070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14071 for ac_dir in $PATH; do
14072 IFS="$lt_save_ifs"
14073 test -z "$ac_dir" && ac_dir=.
14074 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14075 lt_cv_path_LD="$ac_dir/$ac_prog"
14076 # Check to see if the program is GNU ld. I'd rather use --version,
14077 # but apparently some variants of GNU ld only accept -v.
14078 # Break only if it was the GNU/non-GNU ld that we prefer.
14079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14080 *GNU* | *'with BFD'*)
14081 test "$with_gnu_ld" != no && break
14082 ;;
14083 *)
14084 test "$with_gnu_ld" != yes && break
14085 ;;
14086 esac
14087 fi
14088 done
14089 IFS="$lt_save_ifs"
14090 else
14091 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14092 fi
14093 fi
14094
14095 LD="$lt_cv_path_LD"
14096 if test -n "$LD"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14098 $as_echo "$LD" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102 fi
14103 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14105 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14106 if ${lt_cv_prog_gnu_ld+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14110 case `$LD -v 2>&1 </dev/null` in
14111 *GNU* | *'with BFD'*)
14112 lt_cv_prog_gnu_ld=yes
14113 ;;
14114 *)
14115 lt_cv_prog_gnu_ld=no
14116 ;;
14117 esac
14118 fi
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14120 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14121 with_gnu_ld=$lt_cv_prog_gnu_ld
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14132 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14133 if ${lt_cv_path_NM+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 if test -n "$NM"; then
14137 # Let the user override the nm to test.
14138 lt_nm_to_check="$NM"
14139 else
14140 lt_nm_to_check="${ac_tool_prefix}nm"
14141 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14142 lt_nm_to_check="$lt_nm_to_check nm"
14143 fi
14144 fi
14145 for lt_tmp_nm in "$lt_nm_to_check"; do
14146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14147 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14148 IFS="$lt_save_ifs"
14149 test -z "$ac_dir" && ac_dir=.
14150 # Strip out any user-provided options from the nm to test twice,
14151 # the first time to test to see if nm (rather than its options) has
14152 # an explicit path, the second time to yield a file which can be
14153 # nm'ed itself.
14154 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14155 case "$tmp_nm_path" in
14156 */*|*\\*) tmp_nm="$lt_tmp_nm";;
14157 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
14158 esac
14159 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14160 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
14161 # Check to see if the nm accepts a BSD-compat flag.
14162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14163 # nm: unknown option "B" ignored
14164 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14165 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
14166 break
14167 ;;
14168 *)
14169 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14170 *$tmp_nm*)
14171 lt_cv_path_NM="$tmp_nm -p"
14172 break
14173 ;;
14174 *)
14175 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14176 continue # so that we can try to find one that supports BSD flags
14177 ;;
14178 esac
14179 ;;
14180 esac
14181 fi
14182 done
14183 IFS="$lt_save_ifs"
14184 done
14185 : ${lt_cv_path_NM=no}
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14188 $as_echo "$lt_cv_path_NM" >&6; }
14189 if test "$lt_cv_path_NM" != "no"; then
14190 NM="$lt_cv_path_NM"
14191 else
14192 # Didn't find any BSD compatible name lister, look for dumpbin.
14193 if test -n "$DUMPBIN"; then :
14194 # Let the user override the test.
14195 else
14196 if test -n "$ac_tool_prefix"; then
14197 for ac_prog in dumpbin "link -dump"
14198 do
14199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_prog_DUMPBIN+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "$DUMPBIN"; then
14207 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14211 do
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14219 fi
14220 done
14221 done
14222 IFS=$as_save_IFS
14223
14224 fi
14225 fi
14226 DUMPBIN=$ac_cv_prog_DUMPBIN
14227 if test -n "$DUMPBIN"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14229 $as_echo "$DUMPBIN" >&6; }
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 fi
14234
14235
14236 test -n "$DUMPBIN" && break
14237 done
14238 fi
14239 if test -z "$DUMPBIN"; then
14240 ac_ct_DUMPBIN=$DUMPBIN
14241 for ac_prog in dumpbin "link -dump"
14242 do
14243 # Extract the first word of "$ac_prog", so it can be a program name with args.
14244 set dummy $ac_prog; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$ac_ct_DUMPBIN"; then
14251 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14263 fi
14264 done
14265 done
14266 IFS=$as_save_IFS
14267
14268 fi
14269 fi
14270 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14271 if test -n "$ac_ct_DUMPBIN"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14273 $as_echo "$ac_ct_DUMPBIN" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278
14279
14280 test -n "$ac_ct_DUMPBIN" && break
14281 done
14282
14283 if test "x$ac_ct_DUMPBIN" = x; then
14284 DUMPBIN=":"
14285 else
14286 case $cross_compiling:$ac_tool_warned in
14287 yes:)
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned=yes ;;
14291 esac
14292 DUMPBIN=$ac_ct_DUMPBIN
14293 fi
14294 fi
14295
14296 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14297 *COFF*)
14298 DUMPBIN="$DUMPBIN -symbols"
14299 ;;
14300 *)
14301 DUMPBIN=:
14302 ;;
14303 esac
14304 fi
14305
14306 if test "$DUMPBIN" != ":"; then
14307 NM="$DUMPBIN"
14308 fi
14309 fi
14310 test -z "$NM" && NM=nm
14311
14312
14313
14314
14315
14316
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14318 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14319 if ${lt_cv_nm_interface+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 lt_cv_nm_interface="BSD nm"
14323 echo "int some_variable = 0;" > conftest.$ac_ext
14324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14325 (eval "$ac_compile" 2>conftest.err)
14326 cat conftest.err >&5
14327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14329 cat conftest.err >&5
14330 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14331 cat conftest.out >&5
14332 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14333 lt_cv_nm_interface="MS dumpbin"
14334 fi
14335 rm -f conftest*
14336 fi
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14338 $as_echo "$lt_cv_nm_interface" >&6; }
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14341 $as_echo_n "checking whether ln -s works... " >&6; }
14342 LN_S=$as_ln_s
14343 if test "$LN_S" = "ln -s"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14348 $as_echo "no, using $LN_S" >&6; }
14349 fi
14350
14351 # find the maximum length of command line arguments
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14353 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14354 if ${lt_cv_sys_max_cmd_len+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 i=0
14358 teststring="ABCD"
14359
14360 case $build_os in
14361 msdosdjgpp*)
14362 # On DJGPP, this test can blow up pretty badly due to problems in libc
14363 # (any single argument exceeding 2000 bytes causes a buffer overrun
14364 # during glob expansion). Even if it were fixed, the result of this
14365 # check would be larger than it should be.
14366 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14367 ;;
14368
14369 gnu*)
14370 # Under GNU Hurd, this test is not required because there is
14371 # no limit to the length of command line arguments.
14372 # Libtool will interpret -1 as no limit whatsoever
14373 lt_cv_sys_max_cmd_len=-1;
14374 ;;
14375
14376 cygwin* | mingw* | cegcc*)
14377 # On Win9x/ME, this test blows up -- it succeeds, but takes
14378 # about 5 minutes as the teststring grows exponentially.
14379 # Worse, since 9x/ME are not pre-emptively multitasking,
14380 # you end up with a "frozen" computer, even though with patience
14381 # the test eventually succeeds (with a max line length of 256k).
14382 # Instead, let's just punt: use the minimum linelength reported by
14383 # all of the supported platforms: 8192 (on NT/2K/XP).
14384 lt_cv_sys_max_cmd_len=8192;
14385 ;;
14386
14387 mint*)
14388 # On MiNT this can take a long time and run out of memory.
14389 lt_cv_sys_max_cmd_len=8192;
14390 ;;
14391
14392 amigaos*)
14393 # On AmigaOS with pdksh, this test takes hours, literally.
14394 # So we just punt and use a minimum line length of 8192.
14395 lt_cv_sys_max_cmd_len=8192;
14396 ;;
14397
14398 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14399 # This has been around since 386BSD, at least. Likely further.
14400 if test -x /sbin/sysctl; then
14401 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14402 elif test -x /usr/sbin/sysctl; then
14403 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14404 else
14405 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14406 fi
14407 # And add a safety zone
14408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14410 ;;
14411
14412 interix*)
14413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14414 lt_cv_sys_max_cmd_len=196608
14415 ;;
14416
14417 osf*)
14418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14420 # nice to cause kernel panics so lets avoid the loop below.
14421 # First set a reasonable default.
14422 lt_cv_sys_max_cmd_len=16384
14423 #
14424 if test -x /sbin/sysconfig; then
14425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14426 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14427 esac
14428 fi
14429 ;;
14430 sco3.2v5*)
14431 lt_cv_sys_max_cmd_len=102400
14432 ;;
14433 sysv5* | sco5v6* | sysv4.2uw2*)
14434 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14435 if test -n "$kargmax"; then
14436 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14437 else
14438 lt_cv_sys_max_cmd_len=32768
14439 fi
14440 ;;
14441 *)
14442 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14443 if test -n "$lt_cv_sys_max_cmd_len"; then
14444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14446 else
14447 # Make teststring a little bigger before we do anything with it.
14448 # a 1K string should be a reasonable start.
14449 for i in 1 2 3 4 5 6 7 8 ; do
14450 teststring=$teststring$teststring
14451 done
14452 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14453 # If test is not a shell built-in, we'll probably end up computing a
14454 # maximum length that is only half of the actual maximum length, but
14455 # we can't tell.
14456 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14457 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14458 test $i != 17 # 1/2 MB should be enough
14459 do
14460 i=`expr $i + 1`
14461 teststring=$teststring$teststring
14462 done
14463 # Only check the string length outside the loop.
14464 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14465 teststring=
14466 # Add a significant safety factor because C++ compilers can tack on
14467 # massive amounts of additional arguments before passing them to the
14468 # linker. It appears as though 1/2 is a usable value.
14469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14470 fi
14471 ;;
14472 esac
14473
14474 fi
14475
14476 if test -n $lt_cv_sys_max_cmd_len ; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14478 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14479 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14481 $as_echo "none" >&6; }
14482 fi
14483 max_cmd_len=$lt_cv_sys_max_cmd_len
14484
14485
14486
14487
14488
14489
14490 : ${CP="cp -f"}
14491 : ${MV="mv -f"}
14492 : ${RM="rm -f"}
14493
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14495 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14496 # Try some XSI features
14497 xsi_shell=no
14498 ( _lt_dummy="a/b/c"
14499 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14500 = c,a/b,, \
14501 && eval 'test $(( 1 + 1 )) -eq 2 \
14502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14503 && xsi_shell=yes
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14505 $as_echo "$xsi_shell" >&6; }
14506
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14509 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14510 lt_shell_append=no
14511 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14512 >/dev/null 2>&1 \
14513 && lt_shell_append=yes
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14515 $as_echo "$lt_shell_append" >&6; }
14516
14517
14518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14519 lt_unset=unset
14520 else
14521 lt_unset=false
14522 fi
14523
14524
14525
14526
14527
14528 # test EBCDIC or ASCII
14529 case `echo X|tr X '\101'` in
14530 A) # ASCII based system
14531 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14532 lt_SP2NL='tr \040 \012'
14533 lt_NL2SP='tr \015\012 \040\040'
14534 ;;
14535 *) # EBCDIC based system
14536 lt_SP2NL='tr \100 \n'
14537 lt_NL2SP='tr \r\n \100\100'
14538 ;;
14539 esac
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14550 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14551 if ${lt_cv_ld_reload_flag+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_ld_reload_flag='-r'
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14558 reload_flag=$lt_cv_ld_reload_flag
14559 case $reload_flag in
14560 "" | " "*) ;;
14561 *) reload_flag=" $reload_flag" ;;
14562 esac
14563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14564 case $host_os in
14565 darwin*)
14566 if test "$GCC" = yes; then
14567 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14568 else
14569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14570 fi
14571 ;;
14572 esac
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582 if test -n "$ac_tool_prefix"; then
14583 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 $as_echo_n "checking for $ac_word... " >&6; }
14587 if ${ac_cv_prog_OBJDUMP+:} false; then :
14588 $as_echo_n "(cached) " >&6
14589 else
14590 if test -n "$OBJDUMP"; then
14591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14592 else
14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 for as_dir in $PATH
14595 do
14596 IFS=$as_save_IFS
14597 test -z "$as_dir" && as_dir=.
14598 for ac_exec_ext in '' $ac_executable_extensions; do
14599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14602 break 2
14603 fi
14604 done
14605 done
14606 IFS=$as_save_IFS
14607
14608 fi
14609 fi
14610 OBJDUMP=$ac_cv_prog_OBJDUMP
14611 if test -n "$OBJDUMP"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14613 $as_echo "$OBJDUMP" >&6; }
14614 else
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617 fi
14618
14619
14620 fi
14621 if test -z "$ac_cv_prog_OBJDUMP"; then
14622 ac_ct_OBJDUMP=$OBJDUMP
14623 # Extract the first word of "objdump", so it can be a program name with args.
14624 set dummy objdump; ac_word=$2
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 $as_echo_n "checking for $ac_word... " >&6; }
14627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 if test -n "$ac_ct_OBJDUMP"; then
14631 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14632 else
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14635 do
14636 IFS=$as_save_IFS
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 break 2
14643 fi
14644 done
14645 done
14646 IFS=$as_save_IFS
14647
14648 fi
14649 fi
14650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14651 if test -n "$ac_ct_OBJDUMP"; then
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14653 $as_echo "$ac_ct_OBJDUMP" >&6; }
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657 fi
14658
14659 if test "x$ac_ct_OBJDUMP" = x; then
14660 OBJDUMP="false"
14661 else
14662 case $cross_compiling:$ac_tool_warned in
14663 yes:)
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14666 ac_tool_warned=yes ;;
14667 esac
14668 OBJDUMP=$ac_ct_OBJDUMP
14669 fi
14670 else
14671 OBJDUMP="$ac_cv_prog_OBJDUMP"
14672 fi
14673
14674 test -z "$OBJDUMP" && OBJDUMP=objdump
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14685 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14686 if ${lt_cv_deplibs_check_method+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 lt_cv_file_magic_cmd='$MAGIC_CMD'
14690 lt_cv_file_magic_test_file=
14691 lt_cv_deplibs_check_method='unknown'
14692 # Need to set the preceding variable on all platforms that support
14693 # interlibrary dependencies.
14694 # 'none' -- dependencies not supported.
14695 # `unknown' -- same as none, but documents that we really don't know.
14696 # 'pass_all' -- all dependencies passed with no checks.
14697 # 'test_compile' -- check by making test program.
14698 # 'file_magic [[regex]]' -- check by looking for files in library path
14699 # which responds to the $file_magic_cmd with a given extended regex.
14700 # If you have `file' or equivalent on your system and you're not sure
14701 # whether `pass_all' will *always* work, you probably want this one.
14702
14703 case $host_os in
14704 aix[4-9]*)
14705 lt_cv_deplibs_check_method=pass_all
14706 ;;
14707
14708 beos*)
14709 lt_cv_deplibs_check_method=pass_all
14710 ;;
14711
14712 bsdi[45]*)
14713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14714 lt_cv_file_magic_cmd='/usr/bin/file -L'
14715 lt_cv_file_magic_test_file=/shlib/libc.so
14716 ;;
14717
14718 cygwin*)
14719 # func_win32_libid is a shell function defined in ltmain.sh
14720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14721 lt_cv_file_magic_cmd='func_win32_libid'
14722 ;;
14723
14724 mingw* | pw32*)
14725 # Base MSYS/MinGW do not provide the 'file' command needed by
14726 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14727 # unless we find 'file', for example because we are cross-compiling.
14728 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14729 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14731 lt_cv_file_magic_cmd='func_win32_libid'
14732 else
14733 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14734 lt_cv_file_magic_cmd='$OBJDUMP -f'
14735 fi
14736 ;;
14737
14738 cegcc*)
14739 # use the weaker test based on 'objdump'. See mingw*.
14740 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14741 lt_cv_file_magic_cmd='$OBJDUMP -f'
14742 ;;
14743
14744 darwin* | rhapsody*)
14745 lt_cv_deplibs_check_method=pass_all
14746 ;;
14747
14748 freebsd* | dragonfly*)
14749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14750 case $host_cpu in
14751 i*86 )
14752 # Not sure whether the presence of OpenBSD here was a mistake.
14753 # Let's accept both of them until this is cleared up.
14754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14755 lt_cv_file_magic_cmd=/usr/bin/file
14756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14757 ;;
14758 esac
14759 else
14760 lt_cv_deplibs_check_method=pass_all
14761 fi
14762 ;;
14763
14764 gnu*)
14765 lt_cv_deplibs_check_method=pass_all
14766 ;;
14767
14768 haiku*)
14769 lt_cv_deplibs_check_method=pass_all
14770 ;;
14771
14772 hpux10.20* | hpux11*)
14773 lt_cv_file_magic_cmd=/usr/bin/file
14774 case $host_cpu in
14775 ia64*)
14776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14778 ;;
14779 hppa*64*)
14780 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]'
14781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14782 ;;
14783 *)
14784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14785 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14786 ;;
14787 esac
14788 ;;
14789
14790 interix[3-9]*)
14791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14793 ;;
14794
14795 irix5* | irix6* | nonstopux*)
14796 case $LD in
14797 *-32|*"-32 ") libmagic=32-bit;;
14798 *-n32|*"-n32 ") libmagic=N32;;
14799 *-64|*"-64 ") libmagic=64-bit;;
14800 *) libmagic=never-match;;
14801 esac
14802 lt_cv_deplibs_check_method=pass_all
14803 ;;
14804
14805 # This must be Linux ELF.
14806 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14807 lt_cv_deplibs_check_method=pass_all
14808 ;;
14809
14810 netbsd*)
14811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14813 else
14814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14815 fi
14816 ;;
14817
14818 newos6*)
14819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14820 lt_cv_file_magic_cmd=/usr/bin/file
14821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14822 ;;
14823
14824 *nto* | *qnx*)
14825 lt_cv_deplibs_check_method=pass_all
14826 ;;
14827
14828 openbsd*)
14829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14831 else
14832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14833 fi
14834 ;;
14835
14836 osf3* | osf4* | osf5*)
14837 lt_cv_deplibs_check_method=pass_all
14838 ;;
14839
14840 rdos*)
14841 lt_cv_deplibs_check_method=pass_all
14842 ;;
14843
14844 solaris*)
14845 lt_cv_deplibs_check_method=pass_all
14846 ;;
14847
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14849 lt_cv_deplibs_check_method=pass_all
14850 ;;
14851
14852 sysv4 | sysv4.3*)
14853 case $host_vendor in
14854 motorola)
14855 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]'
14856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14857 ;;
14858 ncr)
14859 lt_cv_deplibs_check_method=pass_all
14860 ;;
14861 sequent)
14862 lt_cv_file_magic_cmd='/bin/file'
14863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14864 ;;
14865 sni)
14866 lt_cv_file_magic_cmd='/bin/file'
14867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14868 lt_cv_file_magic_test_file=/lib/libc.so
14869 ;;
14870 siemens)
14871 lt_cv_deplibs_check_method=pass_all
14872 ;;
14873 pc)
14874 lt_cv_deplibs_check_method=pass_all
14875 ;;
14876 esac
14877 ;;
14878
14879 tpf*)
14880 lt_cv_deplibs_check_method=pass_all
14881 ;;
14882 vxworks*)
14883 # Assume VxWorks cross toolchains are built on Linux, possibly
14884 # as canadian for Windows hosts.
14885 lt_cv_deplibs_check_method=pass_all
14886 ;;
14887 esac
14888
14889 fi
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14891 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14892 file_magic_cmd=$lt_cv_file_magic_cmd
14893 deplibs_check_method=$lt_cv_deplibs_check_method
14894 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907 plugin_option=
14908 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14909 for plugin in $plugin_names; do
14910 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14911 if test x$plugin_so = x$plugin; then
14912 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14913 fi
14914 if test x$plugin_so != x$plugin; then
14915 plugin_option="--plugin $plugin_so"
14916 break
14917 fi
14918 done
14919
14920 if test -n "$ac_tool_prefix"; then
14921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14922 set dummy ${ac_tool_prefix}ar; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924 $as_echo_n "checking for $ac_word... " >&6; }
14925 if ${ac_cv_prog_AR+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 if test -n "$AR"; then
14929 ac_cv_prog_AR="$AR" # Let the user override the test.
14930 else
14931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14933 do
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_AR="${ac_tool_prefix}ar"
14939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14941 fi
14942 done
14943 done
14944 IFS=$as_save_IFS
14945
14946 fi
14947 fi
14948 AR=$ac_cv_prog_AR
14949 if test -n "$AR"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14951 $as_echo "$AR" >&6; }
14952 else
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 $as_echo "no" >&6; }
14955 fi
14956
14957
14958 fi
14959 if test -z "$ac_cv_prog_AR"; then
14960 ac_ct_AR=$AR
14961 # Extract the first word of "ar", so it can be a program name with args.
14962 set dummy ar; ac_word=$2
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14964 $as_echo_n "checking for $ac_word... " >&6; }
14965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 if test -n "$ac_ct_AR"; then
14969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14970 else
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 for as_dir in $PATH
14973 do
14974 IFS=$as_save_IFS
14975 test -z "$as_dir" && as_dir=.
14976 for ac_exec_ext in '' $ac_executable_extensions; do
14977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14978 ac_cv_prog_ac_ct_AR="ar"
14979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14980 break 2
14981 fi
14982 done
14983 done
14984 IFS=$as_save_IFS
14985
14986 fi
14987 fi
14988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14989 if test -n "$ac_ct_AR"; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14991 $as_echo "$ac_ct_AR" >&6; }
14992 else
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 $as_echo "no" >&6; }
14995 fi
14996
14997 if test "x$ac_ct_AR" = x; then
14998 AR="false"
14999 else
15000 case $cross_compiling:$ac_tool_warned in
15001 yes:)
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15004 ac_tool_warned=yes ;;
15005 esac
15006 AR=$ac_ct_AR
15007 fi
15008 else
15009 AR="$ac_cv_prog_AR"
15010 fi
15011
15012 test -z "$AR" && AR=ar
15013 if test -n "$plugin_option"; then
15014 if $AR --help 2>&1 | grep -q "\--plugin"; then
15015 touch conftest.c
15016 $AR $plugin_option rc conftest.a conftest.c
15017 if test "$?" != 0; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
15019 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
15020 else
15021 AR="$AR $plugin_option"
15022 fi
15023 rm -f conftest.*
15024 fi
15025 fi
15026 test -z "$AR_FLAGS" && AR_FLAGS=cru
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038 if test -n "$ac_tool_prefix"; then
15039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15040 set dummy ${ac_tool_prefix}strip; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15042 $as_echo_n "checking for $ac_word... " >&6; }
15043 if ${ac_cv_prog_STRIP+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 if test -n "$STRIP"; then
15047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15048 else
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15051 do
15052 IFS=$as_save_IFS
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060 done
15061 done
15062 IFS=$as_save_IFS
15063
15064 fi
15065 fi
15066 STRIP=$ac_cv_prog_STRIP
15067 if test -n "$STRIP"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15069 $as_echo "$STRIP" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074
15075
15076 fi
15077 if test -z "$ac_cv_prog_STRIP"; then
15078 ac_ct_STRIP=$STRIP
15079 # Extract the first word of "strip", so it can be a program name with args.
15080 set dummy strip; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15082 $as_echo_n "checking for $ac_word... " >&6; }
15083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 if test -n "$ac_ct_STRIP"; then
15087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15088 else
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15091 do
15092 IFS=$as_save_IFS
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_ac_ct_STRIP="strip"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 break 2
15099 fi
15100 done
15101 done
15102 IFS=$as_save_IFS
15103
15104 fi
15105 fi
15106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15107 if test -n "$ac_ct_STRIP"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15109 $as_echo "$ac_ct_STRIP" >&6; }
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15113 fi
15114
15115 if test "x$ac_ct_STRIP" = x; then
15116 STRIP=":"
15117 else
15118 case $cross_compiling:$ac_tool_warned in
15119 yes:)
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15122 ac_tool_warned=yes ;;
15123 esac
15124 STRIP=$ac_ct_STRIP
15125 fi
15126 else
15127 STRIP="$ac_cv_prog_STRIP"
15128 fi
15129
15130 test -z "$STRIP" && STRIP=:
15131
15132
15133
15134
15135
15136
15137 if test -n "$ac_tool_prefix"; then
15138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 $as_echo_n "checking for $ac_word... " >&6; }
15142 if ${ac_cv_prog_RANLIB+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 if test -n "$RANLIB"; then
15146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15147 else
15148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 for as_dir in $PATH
15150 do
15151 IFS=$as_save_IFS
15152 test -z "$as_dir" && as_dir=.
15153 for ac_exec_ext in '' $ac_executable_extensions; do
15154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15157 break 2
15158 fi
15159 done
15160 done
15161 IFS=$as_save_IFS
15162
15163 fi
15164 fi
15165 RANLIB=$ac_cv_prog_RANLIB
15166 if test -n "$RANLIB"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15168 $as_echo "$RANLIB" >&6; }
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15172 fi
15173
15174
15175 fi
15176 if test -z "$ac_cv_prog_RANLIB"; then
15177 ac_ct_RANLIB=$RANLIB
15178 # Extract the first word of "ranlib", so it can be a program name with args.
15179 set dummy ranlib; ac_word=$2
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181 $as_echo_n "checking for $ac_word... " >&6; }
15182 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 if test -n "$ac_ct_RANLIB"; then
15186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15187 else
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15190 do
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_ac_ct_RANLIB="ranlib"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15198 fi
15199 done
15200 done
15201 IFS=$as_save_IFS
15202
15203 fi
15204 fi
15205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15206 if test -n "$ac_ct_RANLIB"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15208 $as_echo "$ac_ct_RANLIB" >&6; }
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15212 fi
15213
15214 if test "x$ac_ct_RANLIB" = x; then
15215 RANLIB=":"
15216 else
15217 case $cross_compiling:$ac_tool_warned in
15218 yes:)
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15221 ac_tool_warned=yes ;;
15222 esac
15223 RANLIB=$ac_ct_RANLIB
15224 fi
15225 else
15226 RANLIB="$ac_cv_prog_RANLIB"
15227 fi
15228
15229 test -z "$RANLIB" && RANLIB=:
15230 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15231 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
15232 RANLIB="$RANLIB $plugin_option"
15233 fi
15234 fi
15235
15236
15237
15238
15239
15240
15241 # Determine commands to create old-style static archives.
15242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15243 old_postinstall_cmds='chmod 644 $oldlib'
15244 old_postuninstall_cmds=
15245
15246 if test -n "$RANLIB"; then
15247 case $host_os in
15248 openbsd*)
15249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15250 ;;
15251 *)
15252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15253 ;;
15254 esac
15255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15256 fi
15257
15258 case $host_os in
15259 darwin*)
15260 lock_old_archive_extraction=yes ;;
15261 *)
15262 lock_old_archive_extraction=no ;;
15263 esac
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303 # If no C compiler was specified, use CC.
15304 LTCC=${LTCC-"$CC"}
15305
15306 # If no C compiler flags were specified, use CFLAGS.
15307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15308
15309 # Allow CC to be a program name with arguments.
15310 compiler=$CC
15311
15312
15313 # Check for command to grab the raw symbol name followed by C symbol from nm.
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15315 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15316 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319
15320 # These are sane defaults that work on at least a few old systems.
15321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15322
15323 # Character class describing NM global symbol codes.
15324 symcode='[BCDEGRST]'
15325
15326 # Regexp to match symbols that can be accessed directly from C.
15327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15328
15329 # Define system-specific variables.
15330 case $host_os in
15331 aix*)
15332 symcode='[BCDT]'
15333 ;;
15334 cygwin* | mingw* | pw32* | cegcc*)
15335 symcode='[ABCDGISTW]'
15336 ;;
15337 hpux*)
15338 if test "$host_cpu" = ia64; then
15339 symcode='[ABCDEGRST]'
15340 fi
15341 ;;
15342 irix* | nonstopux*)
15343 symcode='[BCDEGRST]'
15344 ;;
15345 osf*)
15346 symcode='[BCDEGQRST]'
15347 ;;
15348 solaris*)
15349 symcode='[BCDRT]'
15350 ;;
15351 sco3.2v5*)
15352 symcode='[DT]'
15353 ;;
15354 sysv4.2uw2*)
15355 symcode='[DT]'
15356 ;;
15357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15358 symcode='[ABDT]'
15359 ;;
15360 sysv4)
15361 symcode='[DFNSTU]'
15362 ;;
15363 esac
15364
15365 # If we're using GNU nm, then use its standard symbol codes.
15366 case `$NM -V 2>&1` in
15367 *GNU* | *'with BFD'*)
15368 symcode='[ABCDGIRSTW]' ;;
15369 esac
15370
15371 # Transform an extracted symbol line into a proper C declaration.
15372 # Some systems (esp. on ia64) link data and code symbols differently,
15373 # so use this general approach.
15374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15375
15376 # Transform an extracted symbol line into symbol name and symbol address
15377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15378 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'"
15379
15380 # Handle CRLF in mingw tool chain
15381 opt_cr=
15382 case $build_os in
15383 mingw*)
15384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15385 ;;
15386 esac
15387
15388 # Try without a prefix underscore, then with it.
15389 for ac_symprfx in "" "_"; do
15390
15391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15392 symxfrm="\\1 $ac_symprfx\\2 \\2"
15393
15394 # Write the raw and C identifiers.
15395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15396 # Fake it for dumpbin and say T for any non-static function
15397 # and D for any global variable.
15398 # Also find C++ and __fastcall symbols from MSVC++,
15399 # which start with @ or ?.
15400 lt_cv_sys_global_symbol_pipe="$AWK '"\
15401 " {last_section=section; section=\$ 3};"\
15402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15403 " \$ 0!~/External *\|/{next};"\
15404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15405 " {if(hide[section]) next};"\
15406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15410 " ' prfx=^$ac_symprfx"
15411 else
15412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15413 fi
15414
15415 # Check to see that the pipe works correctly.
15416 pipe_works=no
15417
15418 rm -f conftest*
15419 cat > conftest.$ac_ext <<_LT_EOF
15420 #ifdef __cplusplus
15421 extern "C" {
15422 #endif
15423 char nm_test_var;
15424 void nm_test_func(void);
15425 void nm_test_func(void){}
15426 #ifdef __cplusplus
15427 }
15428 #endif
15429 int main(){nm_test_var='a';nm_test_func();return(0);}
15430 _LT_EOF
15431
15432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15433 (eval $ac_compile) 2>&5
15434 ac_status=$?
15435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436 test $ac_status = 0; }; then
15437 # Now try to grab the symbols.
15438 nlist=conftest.nm
15439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15441 ac_status=$?
15442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15443 test $ac_status = 0; } && test -s "$nlist"; then
15444 # Try sorting and uniquifying the output.
15445 if sort "$nlist" | uniq > "$nlist"T; then
15446 mv -f "$nlist"T "$nlist"
15447 else
15448 rm -f "$nlist"T
15449 fi
15450
15451 # Make sure that we snagged all the symbols we need.
15452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15454 cat <<_LT_EOF > conftest.$ac_ext
15455 #ifdef __cplusplus
15456 extern "C" {
15457 #endif
15458
15459 _LT_EOF
15460 # Now generate the symbol file.
15461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15462
15463 cat <<_LT_EOF >> conftest.$ac_ext
15464
15465 /* The mapping between symbol names and symbols. */
15466 const struct {
15467 const char *name;
15468 void *address;
15469 }
15470 lt__PROGRAM__LTX_preloaded_symbols[] =
15471 {
15472 { "@PROGRAM@", (void *) 0 },
15473 _LT_EOF
15474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15475 cat <<\_LT_EOF >> conftest.$ac_ext
15476 {0, (void *) 0}
15477 };
15478
15479 /* This works around a problem in FreeBSD linker */
15480 #ifdef FREEBSD_WORKAROUND
15481 static const void *lt_preloaded_setup() {
15482 return lt__PROGRAM__LTX_preloaded_symbols;
15483 }
15484 #endif
15485
15486 #ifdef __cplusplus
15487 }
15488 #endif
15489 _LT_EOF
15490 # Now try linking the two files.
15491 mv conftest.$ac_objext conftstm.$ac_objext
15492 lt_save_LIBS="$LIBS"
15493 lt_save_CFLAGS="$CFLAGS"
15494 LIBS="conftstm.$ac_objext"
15495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15497 (eval $ac_link) 2>&5
15498 ac_status=$?
15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15501 pipe_works=yes
15502 fi
15503 LIBS="$lt_save_LIBS"
15504 CFLAGS="$lt_save_CFLAGS"
15505 else
15506 echo "cannot find nm_test_func in $nlist" >&5
15507 fi
15508 else
15509 echo "cannot find nm_test_var in $nlist" >&5
15510 fi
15511 else
15512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15513 fi
15514 else
15515 echo "$progname: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15517 fi
15518 rm -rf conftest* conftst*
15519
15520 # Do not use the global_symbol_pipe unless it works.
15521 if test "$pipe_works" = yes; then
15522 break
15523 else
15524 lt_cv_sys_global_symbol_pipe=
15525 fi
15526 done
15527
15528 fi
15529
15530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15531 lt_cv_sys_global_symbol_to_cdecl=
15532 fi
15533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15535 $as_echo "failed" >&6; }
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15538 $as_echo "ok" >&6; }
15539 fi
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562 # Check whether --enable-libtool-lock was given.
15563 if test "${enable_libtool_lock+set}" = set; then :
15564 enableval=$enable_libtool_lock;
15565 fi
15566
15567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15568
15569 # Some flags need to be propagated to the compiler or linker for good
15570 # libtool support.
15571 case $host in
15572 ia64-*-hpux*)
15573 # Find out which ABI we are using.
15574 echo 'int i;' > conftest.$ac_ext
15575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15576 (eval $ac_compile) 2>&5
15577 ac_status=$?
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 case `/usr/bin/file conftest.$ac_objext` in
15581 *ELF-32*)
15582 HPUX_IA64_MODE="32"
15583 ;;
15584 *ELF-64*)
15585 HPUX_IA64_MODE="64"
15586 ;;
15587 esac
15588 fi
15589 rm -rf conftest*
15590 ;;
15591 *-*-irix6*)
15592 # Find out which ABI we are using.
15593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15595 (eval $ac_compile) 2>&5
15596 ac_status=$?
15597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15598 test $ac_status = 0; }; then
15599 if test "$lt_cv_prog_gnu_ld" = yes; then
15600 case `/usr/bin/file conftest.$ac_objext` in
15601 *32-bit*)
15602 LD="${LD-ld} -melf32bsmip"
15603 ;;
15604 *N32*)
15605 LD="${LD-ld} -melf32bmipn32"
15606 ;;
15607 *64-bit*)
15608 LD="${LD-ld} -melf64bmip"
15609 ;;
15610 esac
15611 else
15612 case `/usr/bin/file conftest.$ac_objext` in
15613 *32-bit*)
15614 LD="${LD-ld} -32"
15615 ;;
15616 *N32*)
15617 LD="${LD-ld} -n32"
15618 ;;
15619 *64-bit*)
15620 LD="${LD-ld} -64"
15621 ;;
15622 esac
15623 fi
15624 fi
15625 rm -rf conftest*
15626 ;;
15627
15628 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15629 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15630 # Find out which ABI we are using.
15631 echo 'int i;' > conftest.$ac_ext
15632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15633 (eval $ac_compile) 2>&5
15634 ac_status=$?
15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; }; then
15637 case `/usr/bin/file conftest.o` in
15638 *32-bit*)
15639 case $host in
15640 x86_64-*kfreebsd*-gnu)
15641 LD="${LD-ld} -m elf_i386_fbsd"
15642 ;;
15643 x86_64-*linux*)
15644 case `/usr/bin/file conftest.o` in
15645 *x86-64*)
15646 LD="${LD-ld} -m elf32_x86_64"
15647 ;;
15648 *)
15649 LD="${LD-ld} -m elf_i386"
15650 ;;
15651 esac
15652 ;;
15653 powerpc64le-*linux*)
15654 LD="${LD-ld} -m elf32lppclinux"
15655 ;;
15656 powerpc64-*linux*)
15657 LD="${LD-ld} -m elf32ppclinux"
15658 ;;
15659 s390x-*linux*)
15660 LD="${LD-ld} -m elf_s390"
15661 ;;
15662 sparc64-*linux*)
15663 LD="${LD-ld} -m elf32_sparc"
15664 ;;
15665 esac
15666 ;;
15667 *64-bit*)
15668 case $host in
15669 x86_64-*kfreebsd*-gnu)
15670 LD="${LD-ld} -m elf_x86_64_fbsd"
15671 ;;
15672 x86_64-*linux*)
15673 LD="${LD-ld} -m elf_x86_64"
15674 ;;
15675 powerpcle-*linux*)
15676 LD="${LD-ld} -m elf64lppc"
15677 ;;
15678 powerpc-*linux*)
15679 LD="${LD-ld} -m elf64ppc"
15680 ;;
15681 s390*-*linux*|s390*-*tpf*)
15682 LD="${LD-ld} -m elf64_s390"
15683 ;;
15684 sparc*-*linux*)
15685 LD="${LD-ld} -m elf64_sparc"
15686 ;;
15687 esac
15688 ;;
15689 esac
15690 fi
15691 rm -rf conftest*
15692 ;;
15693
15694 *-*-sco3.2v5*)
15695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15696 SAVE_CFLAGS="$CFLAGS"
15697 CFLAGS="$CFLAGS -belf"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15699 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15700 if ${lt_cv_cc_needs_belf+:} false; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 ac_ext=c
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15708
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711
15712 int
15713 main ()
15714 {
15715
15716 ;
15717 return 0;
15718 }
15719 _ACEOF
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 lt_cv_cc_needs_belf=yes
15722 else
15723 lt_cv_cc_needs_belf=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 ac_ext=c
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15732
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15738 CFLAGS="$SAVE_CFLAGS"
15739 fi
15740 ;;
15741 sparc*-*solaris*)
15742 # Find out which ABI we are using.
15743 echo 'int i;' > conftest.$ac_ext
15744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15745 (eval $ac_compile) 2>&5
15746 ac_status=$?
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; }; then
15749 case `/usr/bin/file conftest.o` in
15750 *64-bit*)
15751 case $lt_cv_prog_gnu_ld in
15752 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15753 *)
15754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15755 LD="${LD-ld} -64"
15756 fi
15757 ;;
15758 esac
15759 ;;
15760 esac
15761 fi
15762 rm -rf conftest*
15763 ;;
15764 esac
15765
15766 need_locks="$enable_libtool_lock"
15767
15768
15769 case $host_os in
15770 rhapsody* | darwin*)
15771 if test -n "$ac_tool_prefix"; then
15772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15775 $as_echo_n "checking for $ac_word... " >&6; }
15776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 if test -n "$DSYMUTIL"; then
15780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15781 else
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15784 do
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15791 break 2
15792 fi
15793 done
15794 done
15795 IFS=$as_save_IFS
15796
15797 fi
15798 fi
15799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15800 if test -n "$DSYMUTIL"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15802 $as_echo "$DSYMUTIL" >&6; }
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15805 $as_echo "no" >&6; }
15806 fi
15807
15808
15809 fi
15810 if test -z "$ac_cv_prog_DSYMUTIL"; then
15811 ac_ct_DSYMUTIL=$DSYMUTIL
15812 # Extract the first word of "dsymutil", so it can be a program name with args.
15813 set dummy dsymutil; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815 $as_echo_n "checking for $ac_word... " >&6; }
15816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 if test -n "$ac_ct_DSYMUTIL"; then
15820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15821 else
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15824 do
15825 IFS=$as_save_IFS
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15831 break 2
15832 fi
15833 done
15834 done
15835 IFS=$as_save_IFS
15836
15837 fi
15838 fi
15839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15840 if test -n "$ac_ct_DSYMUTIL"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15846 fi
15847
15848 if test "x$ac_ct_DSYMUTIL" = x; then
15849 DSYMUTIL=":"
15850 else
15851 case $cross_compiling:$ac_tool_warned in
15852 yes:)
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15855 ac_tool_warned=yes ;;
15856 esac
15857 DSYMUTIL=$ac_ct_DSYMUTIL
15858 fi
15859 else
15860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15861 fi
15862
15863 if test -n "$ac_tool_prefix"; then
15864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_prog_NMEDIT+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 if test -n "$NMEDIT"; then
15872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15873 else
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15876 do
15877 IFS=$as_save_IFS
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883 break 2
15884 fi
15885 done
15886 done
15887 IFS=$as_save_IFS
15888
15889 fi
15890 fi
15891 NMEDIT=$ac_cv_prog_NMEDIT
15892 if test -n "$NMEDIT"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15894 $as_echo "$NMEDIT" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898 fi
15899
15900
15901 fi
15902 if test -z "$ac_cv_prog_NMEDIT"; then
15903 ac_ct_NMEDIT=$NMEDIT
15904 # Extract the first word of "nmedit", so it can be a program name with args.
15905 set dummy nmedit; ac_word=$2
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15907 $as_echo_n "checking for $ac_word... " >&6; }
15908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 if test -n "$ac_ct_NMEDIT"; then
15912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15913 else
15914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15915 for as_dir in $PATH
15916 do
15917 IFS=$as_save_IFS
15918 test -z "$as_dir" && as_dir=.
15919 for ac_exec_ext in '' $ac_executable_extensions; do
15920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15923 break 2
15924 fi
15925 done
15926 done
15927 IFS=$as_save_IFS
15928
15929 fi
15930 fi
15931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15932 if test -n "$ac_ct_NMEDIT"; then
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15934 $as_echo "$ac_ct_NMEDIT" >&6; }
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15938 fi
15939
15940 if test "x$ac_ct_NMEDIT" = x; then
15941 NMEDIT=":"
15942 else
15943 case $cross_compiling:$ac_tool_warned in
15944 yes:)
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15947 ac_tool_warned=yes ;;
15948 esac
15949 NMEDIT=$ac_ct_NMEDIT
15950 fi
15951 else
15952 NMEDIT="$ac_cv_prog_NMEDIT"
15953 fi
15954
15955 if test -n "$ac_tool_prefix"; then
15956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15959 $as_echo_n "checking for $ac_word... " >&6; }
15960 if ${ac_cv_prog_LIPO+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962 else
15963 if test -n "$LIPO"; then
15964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15965 else
15966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15967 for as_dir in $PATH
15968 do
15969 IFS=$as_save_IFS
15970 test -z "$as_dir" && as_dir=.
15971 for ac_exec_ext in '' $ac_executable_extensions; do
15972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15975 break 2
15976 fi
15977 done
15978 done
15979 IFS=$as_save_IFS
15980
15981 fi
15982 fi
15983 LIPO=$ac_cv_prog_LIPO
15984 if test -n "$LIPO"; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15986 $as_echo "$LIPO" >&6; }
15987 else
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15989 $as_echo "no" >&6; }
15990 fi
15991
15992
15993 fi
15994 if test -z "$ac_cv_prog_LIPO"; then
15995 ac_ct_LIPO=$LIPO
15996 # Extract the first word of "lipo", so it can be a program name with args.
15997 set dummy lipo; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15999 $as_echo_n "checking for $ac_word... " >&6; }
16000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 if test -n "$ac_ct_LIPO"; then
16004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16005 else
16006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16008 do
16009 IFS=$as_save_IFS
16010 test -z "$as_dir" && as_dir=.
16011 for ac_exec_ext in '' $ac_executable_extensions; do
16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013 ac_cv_prog_ac_ct_LIPO="lipo"
16014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 break 2
16016 fi
16017 done
16018 done
16019 IFS=$as_save_IFS
16020
16021 fi
16022 fi
16023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16024 if test -n "$ac_ct_LIPO"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16026 $as_echo "$ac_ct_LIPO" >&6; }
16027 else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16030 fi
16031
16032 if test "x$ac_ct_LIPO" = x; then
16033 LIPO=":"
16034 else
16035 case $cross_compiling:$ac_tool_warned in
16036 yes:)
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16039 ac_tool_warned=yes ;;
16040 esac
16041 LIPO=$ac_ct_LIPO
16042 fi
16043 else
16044 LIPO="$ac_cv_prog_LIPO"
16045 fi
16046
16047 if test -n "$ac_tool_prefix"; then
16048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16049 set dummy ${ac_tool_prefix}otool; ac_word=$2
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16051 $as_echo_n "checking for $ac_word... " >&6; }
16052 if ${ac_cv_prog_OTOOL+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 if test -n "$OTOOL"; then
16056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16057 else
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $PATH
16060 do
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16068 fi
16069 done
16070 done
16071 IFS=$as_save_IFS
16072
16073 fi
16074 fi
16075 OTOOL=$ac_cv_prog_OTOOL
16076 if test -n "$OTOOL"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16078 $as_echo "$OTOOL" >&6; }
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082 fi
16083
16084
16085 fi
16086 if test -z "$ac_cv_prog_OTOOL"; then
16087 ac_ct_OTOOL=$OTOOL
16088 # Extract the first word of "otool", so it can be a program name with args.
16089 set dummy otool; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094 else
16095 if test -n "$ac_ct_OTOOL"; then
16096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16097 else
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16100 do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_prog_ac_ct_OTOOL="otool"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109 done
16110 done
16111 IFS=$as_save_IFS
16112
16113 fi
16114 fi
16115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16116 if test -n "$ac_ct_OTOOL"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16118 $as_echo "$ac_ct_OTOOL" >&6; }
16119 else
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121 $as_echo "no" >&6; }
16122 fi
16123
16124 if test "x$ac_ct_OTOOL" = x; then
16125 OTOOL=":"
16126 else
16127 case $cross_compiling:$ac_tool_warned in
16128 yes:)
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16131 ac_tool_warned=yes ;;
16132 esac
16133 OTOOL=$ac_ct_OTOOL
16134 fi
16135 else
16136 OTOOL="$ac_cv_prog_OTOOL"
16137 fi
16138
16139 if test -n "$ac_tool_prefix"; then
16140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16143 $as_echo_n "checking for $ac_word... " >&6; }
16144 if ${ac_cv_prog_OTOOL64+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 if test -n "$OTOOL64"; then
16148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16149 else
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16152 do
16153 IFS=$as_save_IFS
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16159 break 2
16160 fi
16161 done
16162 done
16163 IFS=$as_save_IFS
16164
16165 fi
16166 fi
16167 OTOOL64=$ac_cv_prog_OTOOL64
16168 if test -n "$OTOOL64"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16170 $as_echo "$OTOOL64" >&6; }
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 fi
16175
16176
16177 fi
16178 if test -z "$ac_cv_prog_OTOOL64"; then
16179 ac_ct_OTOOL64=$OTOOL64
16180 # Extract the first word of "otool64", so it can be a program name with args.
16181 set dummy otool64; ac_word=$2
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16183 $as_echo_n "checking for $ac_word... " >&6; }
16184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 if test -n "$ac_ct_OTOOL64"; then
16188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16189 else
16190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16192 do
16193 IFS=$as_save_IFS
16194 test -z "$as_dir" && as_dir=.
16195 for ac_exec_ext in '' $ac_executable_extensions; do
16196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16197 ac_cv_prog_ac_ct_OTOOL64="otool64"
16198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16199 break 2
16200 fi
16201 done
16202 done
16203 IFS=$as_save_IFS
16204
16205 fi
16206 fi
16207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16208 if test -n "$ac_ct_OTOOL64"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16210 $as_echo "$ac_ct_OTOOL64" >&6; }
16211 else
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16214 fi
16215
16216 if test "x$ac_ct_OTOOL64" = x; then
16217 OTOOL64=":"
16218 else
16219 case $cross_compiling:$ac_tool_warned in
16220 yes:)
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16223 ac_tool_warned=yes ;;
16224 esac
16225 OTOOL64=$ac_ct_OTOOL64
16226 fi
16227 else
16228 OTOOL64="$ac_cv_prog_OTOOL64"
16229 fi
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16258 $as_echo_n "checking for -single_module linker flag... " >&6; }
16259 if ${lt_cv_apple_cc_single_mod+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262 lt_cv_apple_cc_single_mod=no
16263 if test -z "${LT_MULTI_MODULE}"; then
16264 # By default we will add the -single_module flag. You can override
16265 # by either setting the environment variable LT_MULTI_MODULE
16266 # non-empty at configure time, or by adding -multi_module to the
16267 # link flags.
16268 rm -rf libconftest.dylib*
16269 echo "int foo(void){return 1;}" > conftest.c
16270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16271 -dynamiclib -Wl,-single_module conftest.c" >&5
16272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16274 _lt_result=$?
16275 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16276 lt_cv_apple_cc_single_mod=yes
16277 else
16278 cat conftest.err >&5
16279 fi
16280 rm -rf libconftest.dylib*
16281 rm -f conftest.*
16282 fi
16283 fi
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16285 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16287 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16288 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 lt_cv_ld_exported_symbols_list=no
16292 save_LDFLAGS=$LDFLAGS
16293 echo "_main" > conftest.sym
16294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297
16298 int
16299 main ()
16300 {
16301
16302 ;
16303 return 0;
16304 }
16305 _ACEOF
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 lt_cv_ld_exported_symbols_list=yes
16308 else
16309 lt_cv_ld_exported_symbols_list=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LDFLAGS="$save_LDFLAGS"
16314
16315 fi
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16317 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16319 $as_echo_n "checking for -force_load linker flag... " >&6; }
16320 if ${lt_cv_ld_force_load+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 lt_cv_ld_force_load=no
16324 cat > conftest.c << _LT_EOF
16325 int forced_loaded() { return 2;}
16326 _LT_EOF
16327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16329 echo "$AR cru libconftest.a conftest.o" >&5
16330 $AR cru libconftest.a conftest.o 2>&5
16331 cat > conftest.c << _LT_EOF
16332 int main() { return 0;}
16333 _LT_EOF
16334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16336 _lt_result=$?
16337 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16338 lt_cv_ld_force_load=yes
16339 else
16340 cat conftest.err >&5
16341 fi
16342 rm -f conftest.err libconftest.a conftest conftest.c
16343 rm -rf conftest.dSYM
16344
16345 fi
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16347 $as_echo "$lt_cv_ld_force_load" >&6; }
16348 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16349 # build without first building modern cctools / linker.
16350 case $host_cpu-$host_os in
16351 *-rhapsody* | *-darwin1.[012])
16352 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16353 *-darwin1.*)
16354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16355 *-darwin*)
16356 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16357 # deployment target is forced to an earlier version.
16358 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16359 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16360 ;;
16361 10.[012][,.]*)
16362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16363 ;;
16364 *)
16365 ;;
16366 esac
16367 ;;
16368 esac
16369 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16370 _lt_dar_single_mod='$single_module'
16371 fi
16372 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16373 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16374 else
16375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16376 fi
16377 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16378 _lt_dsymutil='~$DSYMUTIL $lib || :'
16379 else
16380 _lt_dsymutil=
16381 fi
16382 ;;
16383 esac
16384
16385
16386 for ac_header in dlfcn.h
16387 do :
16388 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16389 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16390 cat >>confdefs.h <<_ACEOF
16391 #define HAVE_DLFCN_H 1
16392 _ACEOF
16393
16394 fi
16395 done
16396
16397
16398
16399
16400
16401 # Set options
16402
16403
16404
16405 enable_dlopen=no
16406
16407
16408 enable_win32_dll=no
16409
16410
16411 # Check whether --enable-shared was given.
16412 if test "${enable_shared+set}" = set; then :
16413 enableval=$enable_shared; p=${PACKAGE-default}
16414 case $enableval in
16415 yes) enable_shared=yes ;;
16416 no) enable_shared=no ;;
16417 *)
16418 enable_shared=no
16419 # Look at the argument we got. We use all the common list separators.
16420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16421 for pkg in $enableval; do
16422 IFS="$lt_save_ifs"
16423 if test "X$pkg" = "X$p"; then
16424 enable_shared=yes
16425 fi
16426 done
16427 IFS="$lt_save_ifs"
16428 ;;
16429 esac
16430 else
16431 enable_shared=yes
16432 fi
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442 # Check whether --enable-static was given.
16443 if test "${enable_static+set}" = set; then :
16444 enableval=$enable_static; p=${PACKAGE-default}
16445 case $enableval in
16446 yes) enable_static=yes ;;
16447 no) enable_static=no ;;
16448 *)
16449 enable_static=no
16450 # Look at the argument we got. We use all the common list separators.
16451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16452 for pkg in $enableval; do
16453 IFS="$lt_save_ifs"
16454 if test "X$pkg" = "X$p"; then
16455 enable_static=yes
16456 fi
16457 done
16458 IFS="$lt_save_ifs"
16459 ;;
16460 esac
16461 else
16462 enable_static=yes
16463 fi
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474 # Check whether --with-pic was given.
16475 if test "${with_pic+set}" = set; then :
16476 withval=$with_pic; pic_mode="$withval"
16477 else
16478 pic_mode=default
16479 fi
16480
16481
16482 test -z "$pic_mode" && pic_mode=default
16483
16484
16485
16486
16487
16488
16489
16490 # Check whether --enable-fast-install was given.
16491 if test "${enable_fast_install+set}" = set; then :
16492 enableval=$enable_fast_install; p=${PACKAGE-default}
16493 case $enableval in
16494 yes) enable_fast_install=yes ;;
16495 no) enable_fast_install=no ;;
16496 *)
16497 enable_fast_install=no
16498 # Look at the argument we got. We use all the common list separators.
16499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16500 for pkg in $enableval; do
16501 IFS="$lt_save_ifs"
16502 if test "X$pkg" = "X$p"; then
16503 enable_fast_install=yes
16504 fi
16505 done
16506 IFS="$lt_save_ifs"
16507 ;;
16508 esac
16509 else
16510 enable_fast_install=yes
16511 fi
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 # This can be used to rebuild libtool when needed
16524 LIBTOOL_DEPS="$ltmain"
16525
16526 # Always use our own libtool.
16527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554 test -z "$LN_S" && LN_S="ln -s"
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569 if test -n "${ZSH_VERSION+set}" ; then
16570 setopt NO_GLOB_SUBST
16571 fi
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16574 $as_echo_n "checking for objdir... " >&6; }
16575 if ${lt_cv_objdir+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 rm -f .libs 2>/dev/null
16579 mkdir .libs 2>/dev/null
16580 if test -d .libs; then
16581 lt_cv_objdir=.libs
16582 else
16583 # MS-DOS does not allow filenames that begin with a dot.
16584 lt_cv_objdir=_libs
16585 fi
16586 rmdir .libs 2>/dev/null
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16589 $as_echo "$lt_cv_objdir" >&6; }
16590 objdir=$lt_cv_objdir
16591
16592
16593
16594
16595
16596 cat >>confdefs.h <<_ACEOF
16597 #define LT_OBJDIR "$lt_cv_objdir/"
16598 _ACEOF
16599
16600
16601
16602
16603 case $host_os in
16604 aix3*)
16605 # AIX sometimes has problems with the GCC collect2 program. For some
16606 # reason, if we set the COLLECT_NAMES environment variable, the problems
16607 # vanish in a puff of smoke.
16608 if test "X${COLLECT_NAMES+set}" != Xset; then
16609 COLLECT_NAMES=
16610 export COLLECT_NAMES
16611 fi
16612 ;;
16613 esac
16614
16615 # Global variables:
16616 ofile=libtool
16617 can_build_shared=yes
16618
16619 # All known linkers require a `.a' archive for static linking (except MSVC,
16620 # which needs '.lib').
16621 libext=a
16622
16623 with_gnu_ld="$lt_cv_prog_gnu_ld"
16624
16625 old_CC="$CC"
16626 old_CFLAGS="$CFLAGS"
16627
16628 # Set sane defaults for various variables
16629 test -z "$CC" && CC=cc
16630 test -z "$LTCC" && LTCC=$CC
16631 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16632 test -z "$LD" && LD=ld
16633 test -z "$ac_objext" && ac_objext=o
16634
16635 for cc_temp in $compiler""; do
16636 case $cc_temp in
16637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16639 \-*) ;;
16640 *) break;;
16641 esac
16642 done
16643 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16644
16645
16646 # Only perform the check for file, if the check method requires it
16647 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16648 case $deplibs_check_method in
16649 file_magic*)
16650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16652 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 case $MAGIC_CMD in
16657 [\\/*] | ?:[\\/]*)
16658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16659 ;;
16660 *)
16661 lt_save_MAGIC_CMD="$MAGIC_CMD"
16662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16664 for ac_dir in $ac_dummy; do
16665 IFS="$lt_save_ifs"
16666 test -z "$ac_dir" && ac_dir=.
16667 if test -f $ac_dir/${ac_tool_prefix}file; then
16668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16669 if test -n "$file_magic_test_file"; then
16670 case $deplibs_check_method in
16671 "file_magic "*)
16672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16675 $EGREP "$file_magic_regex" > /dev/null; then
16676 :
16677 else
16678 cat <<_LT_EOF 1>&2
16679
16680 *** Warning: the command libtool uses to detect shared libraries,
16681 *** $file_magic_cmd, produces output that libtool cannot recognize.
16682 *** The result is that libtool may fail to recognize shared libraries
16683 *** as such. This will affect the creation of libtool libraries that
16684 *** depend on shared libraries, but programs linked with such libtool
16685 *** libraries will work regardless of this problem. Nevertheless, you
16686 *** may want to report the problem to your system manager and/or to
16687 *** bug-libtool@gnu.org
16688
16689 _LT_EOF
16690 fi ;;
16691 esac
16692 fi
16693 break
16694 fi
16695 done
16696 IFS="$lt_save_ifs"
16697 MAGIC_CMD="$lt_save_MAGIC_CMD"
16698 ;;
16699 esac
16700 fi
16701
16702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16703 if test -n "$MAGIC_CMD"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16705 $as_echo "$MAGIC_CMD" >&6; }
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16709 fi
16710
16711
16712
16713
16714
16715 if test -z "$lt_cv_path_MAGIC_CMD"; then
16716 if test -n "$ac_tool_prefix"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16718 $as_echo_n "checking for file... " >&6; }
16719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 case $MAGIC_CMD in
16723 [\\/*] | ?:[\\/]*)
16724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16725 ;;
16726 *)
16727 lt_save_MAGIC_CMD="$MAGIC_CMD"
16728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16730 for ac_dir in $ac_dummy; do
16731 IFS="$lt_save_ifs"
16732 test -z "$ac_dir" && ac_dir=.
16733 if test -f $ac_dir/file; then
16734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16735 if test -n "$file_magic_test_file"; then
16736 case $deplibs_check_method in
16737 "file_magic "*)
16738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16741 $EGREP "$file_magic_regex" > /dev/null; then
16742 :
16743 else
16744 cat <<_LT_EOF 1>&2
16745
16746 *** Warning: the command libtool uses to detect shared libraries,
16747 *** $file_magic_cmd, produces output that libtool cannot recognize.
16748 *** The result is that libtool may fail to recognize shared libraries
16749 *** as such. This will affect the creation of libtool libraries that
16750 *** depend on shared libraries, but programs linked with such libtool
16751 *** libraries will work regardless of this problem. Nevertheless, you
16752 *** may want to report the problem to your system manager and/or to
16753 *** bug-libtool@gnu.org
16754
16755 _LT_EOF
16756 fi ;;
16757 esac
16758 fi
16759 break
16760 fi
16761 done
16762 IFS="$lt_save_ifs"
16763 MAGIC_CMD="$lt_save_MAGIC_CMD"
16764 ;;
16765 esac
16766 fi
16767
16768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16769 if test -n "$MAGIC_CMD"; then
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16771 $as_echo "$MAGIC_CMD" >&6; }
16772 else
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774 $as_echo "no" >&6; }
16775 fi
16776
16777
16778 else
16779 MAGIC_CMD=:
16780 fi
16781 fi
16782
16783 fi
16784 ;;
16785 esac
16786
16787 # Use C for the default configuration in the libtool script
16788
16789 lt_save_CC="$CC"
16790 ac_ext=c
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16795
16796
16797 # Source file extension for C test sources.
16798 ac_ext=c
16799
16800 # Object file extension for compiled C test sources.
16801 objext=o
16802 objext=$objext
16803
16804 # Code to be used in simple compile tests
16805 lt_simple_compile_test_code="int some_variable = 0;"
16806
16807 # Code to be used in simple link tests
16808 lt_simple_link_test_code='int main(){return(0);}'
16809
16810
16811
16812
16813
16814
16815
16816 # If no C compiler was specified, use CC.
16817 LTCC=${LTCC-"$CC"}
16818
16819 # If no C compiler flags were specified, use CFLAGS.
16820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16821
16822 # Allow CC to be a program name with arguments.
16823 compiler=$CC
16824
16825 # Save the default compiler, since it gets overwritten when the other
16826 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16827 compiler_DEFAULT=$CC
16828
16829 # save warnings/boilerplate of simple test code
16830 ac_outfile=conftest.$ac_objext
16831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833 _lt_compiler_boilerplate=`cat conftest.err`
16834 $RM conftest*
16835
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839 _lt_linker_boilerplate=`cat conftest.err`
16840 $RM -r conftest*
16841
16842
16843 ## CAVEAT EMPTOR:
16844 ## There is no encapsulation within the following macros, do not change
16845 ## the running order or otherwise move them around unless you know exactly
16846 ## what you are doing...
16847 if test -n "$compiler"; then
16848
16849 lt_prog_compiler_no_builtin_flag=
16850
16851 if test "$GCC" = yes; then
16852 case $cc_basename in
16853 nvcc*)
16854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16855 *)
16856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16857 esac
16858
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16861 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 lt_cv_prog_compiler_rtti_exceptions=no
16865 ac_outfile=conftest.$ac_objext
16866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16867 lt_compiler_flag="-fno-rtti -fno-exceptions"
16868 # Insert the option either (1) after the last *FLAGS variable, or
16869 # (2) before a word containing "conftest.", or (3) at the end.
16870 # Note that $ac_compile itself does not contain backslashes and begins
16871 # with a dollar sign (not a hyphen), so the echo should work correctly.
16872 # The option is referenced via a variable to avoid confusing sed.
16873 lt_compile=`echo "$ac_compile" | $SED \
16874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16876 -e 's:$: $lt_compiler_flag:'`
16877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16878 (eval "$lt_compile" 2>conftest.err)
16879 ac_status=$?
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 if (exit $ac_status) && test -s "$ac_outfile"; then
16883 # The compiler can only warn and ignore the option if not recognized
16884 # So say no if there are warnings other than the usual output.
16885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16888 lt_cv_prog_compiler_rtti_exceptions=yes
16889 fi
16890 fi
16891 $RM conftest*
16892
16893 fi
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16896
16897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16899 else
16900 :
16901 fi
16902
16903 fi
16904
16905
16906
16907
16908
16909
16910 lt_prog_compiler_wl=
16911 lt_prog_compiler_pic=
16912 lt_prog_compiler_static=
16913
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16916
16917 if test "$GCC" = yes; then
16918 lt_prog_compiler_wl='-Wl,'
16919 lt_prog_compiler_static='-static'
16920
16921 case $host_os in
16922 aix*)
16923 # All AIX code is PIC.
16924 if test "$host_cpu" = ia64; then
16925 # AIX 5 now supports IA64 processor
16926 lt_prog_compiler_static='-Bstatic'
16927 fi
16928 lt_prog_compiler_pic='-fPIC'
16929 ;;
16930
16931 amigaos*)
16932 case $host_cpu in
16933 powerpc)
16934 # see comment about AmigaOS4 .so support
16935 lt_prog_compiler_pic='-fPIC'
16936 ;;
16937 m68k)
16938 # FIXME: we need at least 68020 code to build shared libraries, but
16939 # adding the `-m68020' flag to GCC prevents building anything better,
16940 # like `-m68040'.
16941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16942 ;;
16943 esac
16944 ;;
16945
16946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16947 # PIC is the default for these OSes.
16948 ;;
16949
16950 mingw* | cygwin* | pw32* | os2* | cegcc*)
16951 # This hack is so that the source file can tell whether it is being
16952 # built for inclusion in a dll (and should export symbols for example).
16953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16954 # (--disable-auto-import) libraries
16955 lt_prog_compiler_pic='-DDLL_EXPORT'
16956 ;;
16957
16958 darwin* | rhapsody*)
16959 # PIC is the default on this platform
16960 # Common symbols not allowed in MH_DYLIB files
16961 lt_prog_compiler_pic='-fno-common'
16962 ;;
16963
16964 haiku*)
16965 # PIC is the default for Haiku.
16966 # The "-static" flag exists, but is broken.
16967 lt_prog_compiler_static=
16968 ;;
16969
16970 hpux*)
16971 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16972 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16973 # sets the default TLS model and affects inlining.
16974 case $host_cpu in
16975 hppa*64*)
16976 # +Z the default
16977 ;;
16978 *)
16979 lt_prog_compiler_pic='-fPIC'
16980 ;;
16981 esac
16982 ;;
16983
16984 interix[3-9]*)
16985 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16986 # Instead, we relocate shared libraries at runtime.
16987 ;;
16988
16989 msdosdjgpp*)
16990 # Just because we use GCC doesn't mean we suddenly get shared libraries
16991 # on systems that don't support them.
16992 lt_prog_compiler_can_build_shared=no
16993 enable_shared=no
16994 ;;
16995
16996 *nto* | *qnx*)
16997 # QNX uses GNU C++, but need to define -shared option too, otherwise
16998 # it will coredump.
16999 lt_prog_compiler_pic='-fPIC -shared'
17000 ;;
17001
17002 sysv4*MP*)
17003 if test -d /usr/nec; then
17004 lt_prog_compiler_pic=-Kconform_pic
17005 fi
17006 ;;
17007
17008 *)
17009 lt_prog_compiler_pic='-fPIC'
17010 ;;
17011 esac
17012
17013 case $cc_basename in
17014 nvcc*) # Cuda Compiler Driver 2.2
17015 lt_prog_compiler_wl='-Xlinker '
17016 lt_prog_compiler_pic='-Xcompiler -fPIC'
17017 ;;
17018 esac
17019 else
17020 # PORTME Check for flag to pass linker flags through the system compiler.
17021 case $host_os in
17022 aix*)
17023 lt_prog_compiler_wl='-Wl,'
17024 if test "$host_cpu" = ia64; then
17025 # AIX 5 now supports IA64 processor
17026 lt_prog_compiler_static='-Bstatic'
17027 else
17028 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17029 fi
17030 ;;
17031
17032 mingw* | cygwin* | pw32* | os2* | cegcc*)
17033 # This hack is so that the source file can tell whether it is being
17034 # built for inclusion in a dll (and should export symbols for example).
17035 lt_prog_compiler_pic='-DDLL_EXPORT'
17036 ;;
17037
17038 hpux9* | hpux10* | hpux11*)
17039 lt_prog_compiler_wl='-Wl,'
17040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17041 # not for PA HP-UX.
17042 case $host_cpu in
17043 hppa*64*|ia64*)
17044 # +Z the default
17045 ;;
17046 *)
17047 lt_prog_compiler_pic='+Z'
17048 ;;
17049 esac
17050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17051 lt_prog_compiler_static='${wl}-a ${wl}archive'
17052 ;;
17053
17054 irix5* | irix6* | nonstopux*)
17055 lt_prog_compiler_wl='-Wl,'
17056 # PIC (with -KPIC) is the default.
17057 lt_prog_compiler_static='-non_shared'
17058 ;;
17059
17060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17061 case $cc_basename in
17062 # old Intel for x86_64 which still supported -KPIC.
17063 ecc*)
17064 lt_prog_compiler_wl='-Wl,'
17065 lt_prog_compiler_pic='-KPIC'
17066 lt_prog_compiler_static='-static'
17067 ;;
17068 # icc used to be incompatible with GCC.
17069 # ICC 10 doesn't accept -KPIC any more.
17070 icc* | ifort*)
17071 lt_prog_compiler_wl='-Wl,'
17072 lt_prog_compiler_pic='-fPIC'
17073 lt_prog_compiler_static='-static'
17074 ;;
17075 # Lahey Fortran 8.1.
17076 lf95*)
17077 lt_prog_compiler_wl='-Wl,'
17078 lt_prog_compiler_pic='--shared'
17079 lt_prog_compiler_static='--static'
17080 ;;
17081 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17082 # Portland Group compilers (*not* the Pentium gcc compiler,
17083 # which looks to be a dead project)
17084 lt_prog_compiler_wl='-Wl,'
17085 lt_prog_compiler_pic='-fpic'
17086 lt_prog_compiler_static='-Bstatic'
17087 ;;
17088 ccc*)
17089 lt_prog_compiler_wl='-Wl,'
17090 # All Alpha code is PIC.
17091 lt_prog_compiler_static='-non_shared'
17092 ;;
17093 xl* | bgxl* | bgf* | mpixl*)
17094 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17095 lt_prog_compiler_wl='-Wl,'
17096 lt_prog_compiler_pic='-qpic'
17097 lt_prog_compiler_static='-qstaticlink'
17098 ;;
17099 *)
17100 case `$CC -V 2>&1 | sed 5q` in
17101 *Sun\ F* | *Sun*Fortran*)
17102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17103 lt_prog_compiler_pic='-KPIC'
17104 lt_prog_compiler_static='-Bstatic'
17105 lt_prog_compiler_wl=''
17106 ;;
17107 *Sun\ C*)
17108 # Sun C 5.9
17109 lt_prog_compiler_pic='-KPIC'
17110 lt_prog_compiler_static='-Bstatic'
17111 lt_prog_compiler_wl='-Wl,'
17112 ;;
17113 esac
17114 ;;
17115 esac
17116 ;;
17117
17118 newsos6)
17119 lt_prog_compiler_pic='-KPIC'
17120 lt_prog_compiler_static='-Bstatic'
17121 ;;
17122
17123 *nto* | *qnx*)
17124 # QNX uses GNU C++, but need to define -shared option too, otherwise
17125 # it will coredump.
17126 lt_prog_compiler_pic='-fPIC -shared'
17127 ;;
17128
17129 osf3* | osf4* | osf5*)
17130 lt_prog_compiler_wl='-Wl,'
17131 # All OSF/1 code is PIC.
17132 lt_prog_compiler_static='-non_shared'
17133 ;;
17134
17135 rdos*)
17136 lt_prog_compiler_static='-non_shared'
17137 ;;
17138
17139 solaris*)
17140 lt_prog_compiler_pic='-KPIC'
17141 lt_prog_compiler_static='-Bstatic'
17142 case $cc_basename in
17143 f77* | f90* | f95*)
17144 lt_prog_compiler_wl='-Qoption ld ';;
17145 *)
17146 lt_prog_compiler_wl='-Wl,';;
17147 esac
17148 ;;
17149
17150 sunos4*)
17151 lt_prog_compiler_wl='-Qoption ld '
17152 lt_prog_compiler_pic='-PIC'
17153 lt_prog_compiler_static='-Bstatic'
17154 ;;
17155
17156 sysv4 | sysv4.2uw2* | sysv4.3*)
17157 lt_prog_compiler_wl='-Wl,'
17158 lt_prog_compiler_pic='-KPIC'
17159 lt_prog_compiler_static='-Bstatic'
17160 ;;
17161
17162 sysv4*MP*)
17163 if test -d /usr/nec ;then
17164 lt_prog_compiler_pic='-Kconform_pic'
17165 lt_prog_compiler_static='-Bstatic'
17166 fi
17167 ;;
17168
17169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17170 lt_prog_compiler_wl='-Wl,'
17171 lt_prog_compiler_pic='-KPIC'
17172 lt_prog_compiler_static='-Bstatic'
17173 ;;
17174
17175 unicos*)
17176 lt_prog_compiler_wl='-Wl,'
17177 lt_prog_compiler_can_build_shared=no
17178 ;;
17179
17180 uts4*)
17181 lt_prog_compiler_pic='-pic'
17182 lt_prog_compiler_static='-Bstatic'
17183 ;;
17184
17185 *)
17186 lt_prog_compiler_can_build_shared=no
17187 ;;
17188 esac
17189 fi
17190
17191 case $host_os in
17192 # For platforms which do not support PIC, -DPIC is meaningless:
17193 *djgpp*)
17194 lt_prog_compiler_pic=
17195 ;;
17196 *)
17197 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17198 ;;
17199 esac
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17201 $as_echo "$lt_prog_compiler_pic" >&6; }
17202
17203
17204
17205
17206
17207
17208 #
17209 # Check to make sure the PIC flag actually works.
17210 #
17211 if test -n "$lt_prog_compiler_pic"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17213 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17214 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 lt_cv_prog_compiler_pic_works=no
17218 ac_outfile=conftest.$ac_objext
17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17220 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17221 # Insert the option either (1) after the last *FLAGS variable, or
17222 # (2) before a word containing "conftest.", or (3) at the end.
17223 # Note that $ac_compile itself does not contain backslashes and begins
17224 # with a dollar sign (not a hyphen), so the echo should work correctly.
17225 # The option is referenced via a variable to avoid confusing sed.
17226 lt_compile=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>conftest.err)
17232 ac_status=$?
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 if (exit $ac_status) && test -s "$ac_outfile"; then
17236 # The compiler can only warn and ignore the option if not recognized
17237 # So say no if there are warnings other than the usual output.
17238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17241 lt_cv_prog_compiler_pic_works=yes
17242 fi
17243 fi
17244 $RM conftest*
17245
17246 fi
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17248 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17249
17250 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17251 case $lt_prog_compiler_pic in
17252 "" | " "*) ;;
17253 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17254 esac
17255 else
17256 lt_prog_compiler_pic=
17257 lt_prog_compiler_can_build_shared=no
17258 fi
17259
17260 fi
17261
17262
17263
17264
17265
17266
17267 #
17268 # Check to make sure the static flag actually works.
17269 #
17270 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17272 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17273 if ${lt_cv_prog_compiler_static_works+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 lt_cv_prog_compiler_static_works=no
17277 save_LDFLAGS="$LDFLAGS"
17278 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17281 # The linker can only warn and ignore the option if not recognized
17282 # So say no if there are warnings
17283 if test -s conftest.err; then
17284 # Append any errors to the config.log.
17285 cat conftest.err 1>&5
17286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17288 if diff conftest.exp conftest.er2 >/dev/null; then
17289 lt_cv_prog_compiler_static_works=yes
17290 fi
17291 else
17292 lt_cv_prog_compiler_static_works=yes
17293 fi
17294 fi
17295 $RM -r conftest*
17296 LDFLAGS="$save_LDFLAGS"
17297
17298 fi
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17300 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17301
17302 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17303 :
17304 else
17305 lt_prog_compiler_static=
17306 fi
17307
17308
17309
17310
17311
17312
17313
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17315 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17316 if ${lt_cv_prog_compiler_c_o+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 lt_cv_prog_compiler_c_o=no
17320 $RM -r conftest 2>/dev/null
17321 mkdir conftest
17322 cd conftest
17323 mkdir out
17324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17325
17326 lt_compiler_flag="-o out/conftest2.$ac_objext"
17327 # Insert the option either (1) after the last *FLAGS variable, or
17328 # (2) before a word containing "conftest.", or (3) at the end.
17329 # Note that $ac_compile itself does not contain backslashes and begins
17330 # with a dollar sign (not a hyphen), so the echo should work correctly.
17331 lt_compile=`echo "$ac_compile" | $SED \
17332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17334 -e 's:$: $lt_compiler_flag:'`
17335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17336 (eval "$lt_compile" 2>out/conftest.err)
17337 ac_status=$?
17338 cat out/conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17341 then
17342 # The compiler can only warn and ignore the option if not recognized
17343 # So say no if there are warnings
17344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17345 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17346 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17347 lt_cv_prog_compiler_c_o=yes
17348 fi
17349 fi
17350 chmod u+w . 2>&5
17351 $RM conftest*
17352 # SGI C++ compiler will create directory out/ii_files/ for
17353 # template instantiation
17354 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17355 $RM out/* && rmdir out
17356 cd ..
17357 $RM -r conftest
17358 $RM conftest*
17359
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17362 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17363
17364
17365
17366
17367
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17370 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17371 if ${lt_cv_prog_compiler_c_o+:} false; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 lt_cv_prog_compiler_c_o=no
17375 $RM -r conftest 2>/dev/null
17376 mkdir conftest
17377 cd conftest
17378 mkdir out
17379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17380
17381 lt_compiler_flag="-o out/conftest2.$ac_objext"
17382 # Insert the option either (1) after the last *FLAGS variable, or
17383 # (2) before a word containing "conftest.", or (3) at the end.
17384 # Note that $ac_compile itself does not contain backslashes and begins
17385 # with a dollar sign (not a hyphen), so the echo should work correctly.
17386 lt_compile=`echo "$ac_compile" | $SED \
17387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17389 -e 's:$: $lt_compiler_flag:'`
17390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17391 (eval "$lt_compile" 2>out/conftest.err)
17392 ac_status=$?
17393 cat out/conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17396 then
17397 # The compiler can only warn and ignore the option if not recognized
17398 # So say no if there are warnings
17399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17402 lt_cv_prog_compiler_c_o=yes
17403 fi
17404 fi
17405 chmod u+w . 2>&5
17406 $RM conftest*
17407 # SGI C++ compiler will create directory out/ii_files/ for
17408 # template instantiation
17409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17410 $RM out/* && rmdir out
17411 cd ..
17412 $RM -r conftest
17413 $RM conftest*
17414
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17417 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17418
17419
17420
17421
17422 hard_links="nottested"
17423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17424 # do not overwrite the value of need_locks provided by the user
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17426 $as_echo_n "checking if we can lock with hard links... " >&6; }
17427 hard_links=yes
17428 $RM conftest*
17429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17430 touch conftest.a
17431 ln conftest.a conftest.b 2>&5 || hard_links=no
17432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17434 $as_echo "$hard_links" >&6; }
17435 if test "$hard_links" = no; then
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17437 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17438 need_locks=warn
17439 fi
17440 else
17441 need_locks=no
17442 fi
17443
17444
17445
17446
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17450 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17451
17452 runpath_var=
17453 allow_undefined_flag=
17454 always_export_symbols=no
17455 archive_cmds=
17456 archive_expsym_cmds=
17457 compiler_needs_object=no
17458 enable_shared_with_static_runtimes=no
17459 export_dynamic_flag_spec=
17460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17461 hardcode_automatic=no
17462 hardcode_direct=no
17463 hardcode_direct_absolute=no
17464 hardcode_libdir_flag_spec=
17465 hardcode_libdir_flag_spec_ld=
17466 hardcode_libdir_separator=
17467 hardcode_minus_L=no
17468 hardcode_shlibpath_var=unsupported
17469 inherit_rpath=no
17470 link_all_deplibs=unknown
17471 module_cmds=
17472 module_expsym_cmds=
17473 old_archive_from_new_cmds=
17474 old_archive_from_expsyms_cmds=
17475 thread_safe_flag_spec=
17476 whole_archive_flag_spec=
17477 # include_expsyms should be a list of space-separated symbols to be *always*
17478 # included in the symbol list
17479 include_expsyms=
17480 # exclude_expsyms can be an extended regexp of symbols to exclude
17481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483 # as well as any symbol that contains `d'.
17484 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486 # platforms (ab)use it in PIC code, but their linkers get confused if
17487 # the symbol is explicitly referenced. Since portable code cannot
17488 # rely on this symbol name, it's probably fine to never include it in
17489 # preloaded symbol tables.
17490 # Exclude shared library initialization/finalization symbols.
17491 extract_expsyms_cmds=
17492
17493 case $host_os in
17494 cygwin* | mingw* | pw32* | cegcc*)
17495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17496 # When not using gcc, we currently assume that we are using
17497 # Microsoft Visual C++.
17498 if test "$GCC" != yes; then
17499 with_gnu_ld=no
17500 fi
17501 ;;
17502 interix*)
17503 # we just hope/assume this is gcc and not c89 (= MSVC++)
17504 with_gnu_ld=yes
17505 ;;
17506 openbsd*)
17507 with_gnu_ld=no
17508 ;;
17509 esac
17510
17511 ld_shlibs=yes
17512
17513 # On some targets, GNU ld is compatible enough with the native linker
17514 # that we're better off using the native interface for both.
17515 lt_use_gnu_ld_interface=no
17516 if test "$with_gnu_ld" = yes; then
17517 case $host_os in
17518 aix*)
17519 # The AIX port of GNU ld has always aspired to compatibility
17520 # with the native linker. However, as the warning in the GNU ld
17521 # block says, versions before 2.19.5* couldn't really create working
17522 # shared libraries, regardless of the interface used.
17523 case `$LD -v 2>&1` in
17524 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17525 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17526 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17527 *)
17528 lt_use_gnu_ld_interface=yes
17529 ;;
17530 esac
17531 ;;
17532 *)
17533 lt_use_gnu_ld_interface=yes
17534 ;;
17535 esac
17536 fi
17537
17538 if test "$lt_use_gnu_ld_interface" = yes; then
17539 # If archive_cmds runs LD, not CC, wlarc should be empty
17540 wlarc='${wl}'
17541
17542 # Set some defaults for GNU ld with shared library support. These
17543 # are reset later if shared libraries are not supported. Putting them
17544 # here allows them to be overridden if necessary.
17545 runpath_var=LD_RUN_PATH
17546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17547 export_dynamic_flag_spec='${wl}--export-dynamic'
17548 # ancient GNU ld didn't support --whole-archive et. al.
17549 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17551 else
17552 whole_archive_flag_spec=
17553 fi
17554 supports_anon_versioning=no
17555 case `$LD -v 2>&1` in
17556 *GNU\ gold*) supports_anon_versioning=yes ;;
17557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17560 *\ 2.11.*) ;; # other 2.11 versions
17561 *) supports_anon_versioning=yes ;;
17562 esac
17563
17564 # See if GNU ld supports shared libraries.
17565 case $host_os in
17566 aix[3-9]*)
17567 # On AIX/PPC, the GNU linker is very broken
17568 if test "$host_cpu" != ia64; then
17569 ld_shlibs=no
17570 cat <<_LT_EOF 1>&2
17571
17572 *** Warning: the GNU linker, at least up to release 2.19, is reported
17573 *** to be unable to reliably create shared libraries on AIX.
17574 *** Therefore, libtool is disabling shared libraries support. If you
17575 *** really care for shared libraries, you may want to install binutils
17576 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17577 *** You will then need to restart the configuration process.
17578
17579 _LT_EOF
17580 fi
17581 ;;
17582
17583 amigaos*)
17584 case $host_cpu in
17585 powerpc)
17586 # see comment about AmigaOS4 .so support
17587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17588 archive_expsym_cmds=''
17589 ;;
17590 m68k)
17591 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)'
17592 hardcode_libdir_flag_spec='-L$libdir'
17593 hardcode_minus_L=yes
17594 ;;
17595 esac
17596 ;;
17597
17598 beos*)
17599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17600 allow_undefined_flag=unsupported
17601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17602 # support --undefined. This deserves some investigation. FIXME
17603 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604 else
17605 ld_shlibs=no
17606 fi
17607 ;;
17608
17609 cygwin* | mingw* | pw32* | cegcc*)
17610 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17611 # as there is no search path for DLLs.
17612 hardcode_libdir_flag_spec='-L$libdir'
17613 export_dynamic_flag_spec='${wl}--export-all-symbols'
17614 allow_undefined_flag=unsupported
17615 always_export_symbols=no
17616 enable_shared_with_static_runtimes=yes
17617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17618
17619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17621 # If the export-symbols file already is a .def file (1st line
17622 # is EXPORTS), use it as is; otherwise, prepend...
17623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17624 cp $export_symbols $output_objdir/$soname.def;
17625 else
17626 echo EXPORTS > $output_objdir/$soname.def;
17627 cat $export_symbols >> $output_objdir/$soname.def;
17628 fi~
17629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17630 else
17631 ld_shlibs=no
17632 fi
17633 ;;
17634
17635 haiku*)
17636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17637 link_all_deplibs=yes
17638 ;;
17639
17640 interix[3-9]*)
17641 hardcode_direct=no
17642 hardcode_shlibpath_var=no
17643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17644 export_dynamic_flag_spec='${wl}-E'
17645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17646 # Instead, shared libraries are loaded at an image base (0x10000000 by
17647 # default) and relocated if they conflict, which is a slow very memory
17648 # consuming and fragmenting process. To avoid this, we pick a random,
17649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17652 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'
17653 ;;
17654
17655 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17656 tmp_diet=no
17657 if test "$host_os" = linux-dietlibc; then
17658 case $cc_basename in
17659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17660 esac
17661 fi
17662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17663 && test "$tmp_diet" = no
17664 then
17665 tmp_addflag=' $pic_flag'
17666 tmp_sharedflag='-shared'
17667 case $cc_basename,$host_cpu in
17668 pgcc*) # Portland Group C compiler
17669 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'
17670 tmp_addflag=' $pic_flag'
17671 ;;
17672 pgf77* | pgf90* | pgf95* | pgfortran*)
17673 # Portland Group f77 and f90 compilers
17674 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'
17675 tmp_addflag=' $pic_flag -Mnomain' ;;
17676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17677 tmp_addflag=' -i_dynamic' ;;
17678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17679 tmp_addflag=' -i_dynamic -nofor_main' ;;
17680 ifc* | ifort*) # Intel Fortran compiler
17681 tmp_addflag=' -nofor_main' ;;
17682 lf95*) # Lahey Fortran 8.1
17683 whole_archive_flag_spec=
17684 tmp_sharedflag='--shared' ;;
17685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17686 tmp_sharedflag='-qmkshrobj'
17687 tmp_addflag= ;;
17688 nvcc*) # Cuda Compiler Driver 2.2
17689 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'
17690 compiler_needs_object=yes
17691 ;;
17692 esac
17693 case `$CC -V 2>&1 | sed 5q` in
17694 *Sun\ C*) # Sun C 5.9
17695 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'
17696 compiler_needs_object=yes
17697 tmp_sharedflag='-G' ;;
17698 *Sun\ F*) # Sun Fortran 8.3
17699 tmp_sharedflag='-G' ;;
17700 esac
17701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17702
17703 if test "x$supports_anon_versioning" = xyes; then
17704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17706 echo "local: *; };" >> $output_objdir/$libname.ver~
17707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17708 fi
17709
17710 case $cc_basename in
17711 xlf* | bgf* | bgxlf* | mpixlf*)
17712 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17713 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17714 hardcode_libdir_flag_spec=
17715 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17716 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17717 if test "x$supports_anon_versioning" = xyes; then
17718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17720 echo "local: *; };" >> $output_objdir/$libname.ver~
17721 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17722 fi
17723 ;;
17724 esac
17725 else
17726 ld_shlibs=no
17727 fi
17728 ;;
17729
17730 netbsd*)
17731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17733 wlarc=
17734 else
17735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17737 fi
17738 ;;
17739
17740 solaris*)
17741 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17742 ld_shlibs=no
17743 cat <<_LT_EOF 1>&2
17744
17745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17746 *** create shared libraries on Solaris systems. Therefore, libtool
17747 *** is disabling shared libraries support. We urge you to upgrade GNU
17748 *** binutils to release 2.9.1 or newer. Another option is to modify
17749 *** your PATH or compiler configuration so that the native linker is
17750 *** used, and then restart.
17751
17752 _LT_EOF
17753 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17756 else
17757 ld_shlibs=no
17758 fi
17759 ;;
17760
17761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17762 case `$LD -v 2>&1` in
17763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17764 ld_shlibs=no
17765 cat <<_LT_EOF 1>&2
17766
17767 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17768 *** reliably create shared libraries on SCO systems. Therefore, libtool
17769 *** is disabling shared libraries support. We urge you to upgrade GNU
17770 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17771 *** your PATH or compiler configuration so that the native linker is
17772 *** used, and then restart.
17773
17774 _LT_EOF
17775 ;;
17776 *)
17777 # For security reasons, it is highly recommended that you always
17778 # use absolute paths for naming shared libraries, and exclude the
17779 # DT_RUNPATH tag from executables and libraries. But doing so
17780 # requires that you compile everything twice, which is a pain.
17781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17785 else
17786 ld_shlibs=no
17787 fi
17788 ;;
17789 esac
17790 ;;
17791
17792 sunos4*)
17793 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794 wlarc=
17795 hardcode_direct=yes
17796 hardcode_shlibpath_var=no
17797 ;;
17798
17799 *)
17800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17803 else
17804 ld_shlibs=no
17805 fi
17806 ;;
17807 esac
17808
17809 if test "$ld_shlibs" = no; then
17810 runpath_var=
17811 hardcode_libdir_flag_spec=
17812 export_dynamic_flag_spec=
17813 whole_archive_flag_spec=
17814 fi
17815 else
17816 # PORTME fill in a description of your system's linker (not GNU ld)
17817 case $host_os in
17818 aix3*)
17819 allow_undefined_flag=unsupported
17820 always_export_symbols=yes
17821 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'
17822 # Note: this linker hardcodes the directories in LIBPATH if there
17823 # are no directories specified by -L.
17824 hardcode_minus_L=yes
17825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17826 # Neither direct hardcoding nor static linking is supported with a
17827 # broken collect2.
17828 hardcode_direct=unsupported
17829 fi
17830 ;;
17831
17832 aix[4-9]*)
17833 if test "$host_cpu" = ia64; then
17834 # On IA64, the linker does run time linking by default, so we don't
17835 # have to do anything special.
17836 aix_use_runtimelinking=no
17837 exp_sym_flag='-Bexport'
17838 no_entry_flag=""
17839 else
17840 # If we're using GNU nm, then we don't want the "-C" option.
17841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17842 # Also, AIX nm treats weak defined symbols like other global
17843 # defined symbols, whereas GNU nm marks them as "W".
17844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17845 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'
17846 else
17847 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'
17848 fi
17849 aix_use_runtimelinking=no
17850
17851 # Test if we are trying to use run time linking or normal
17852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17853 # need to do runtime linking.
17854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17855 for ld_flag in $LDFLAGS; do
17856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17857 aix_use_runtimelinking=yes
17858 break
17859 fi
17860 done
17861 ;;
17862 esac
17863
17864 exp_sym_flag='-bexport'
17865 no_entry_flag='-bnoentry'
17866 fi
17867
17868 # When large executables or shared objects are built, AIX ld can
17869 # have problems creating the table of contents. If linking a library
17870 # or program results in "error TOC overflow" add -mminimal-toc to
17871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17873
17874 archive_cmds=''
17875 hardcode_direct=yes
17876 hardcode_direct_absolute=yes
17877 hardcode_libdir_separator=':'
17878 link_all_deplibs=yes
17879 file_list_spec='${wl}-f,'
17880
17881 if test "$GCC" = yes; then
17882 case $host_os in aix4.[012]|aix4.[012].*)
17883 # We only want to do this on AIX 4.2 and lower, the check
17884 # below for broken collect2 doesn't work under 4.3+
17885 collect2name=`${CC} -print-prog-name=collect2`
17886 if test -f "$collect2name" &&
17887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17888 then
17889 # We have reworked collect2
17890 :
17891 else
17892 # We have old collect2
17893 hardcode_direct=unsupported
17894 # It fails to find uninstalled libraries when the uninstalled
17895 # path is not listed in the libpath. Setting hardcode_minus_L
17896 # to unsupported forces relinking
17897 hardcode_minus_L=yes
17898 hardcode_libdir_flag_spec='-L$libdir'
17899 hardcode_libdir_separator=
17900 fi
17901 ;;
17902 esac
17903 shared_flag='-shared'
17904 if test "$aix_use_runtimelinking" = yes; then
17905 shared_flag="$shared_flag "'${wl}-G'
17906 fi
17907 else
17908 # not using gcc
17909 if test "$host_cpu" = ia64; then
17910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17911 # chokes on -Wl,-G. The following line is correct:
17912 shared_flag='-G'
17913 else
17914 if test "$aix_use_runtimelinking" = yes; then
17915 shared_flag='${wl}-G'
17916 else
17917 shared_flag='${wl}-bM:SRE'
17918 fi
17919 fi
17920 fi
17921
17922 export_dynamic_flag_spec='${wl}-bexpall'
17923 # It seems that -bexpall does not export symbols beginning with
17924 # underscore (_), so it is better to generate a list of symbols to export.
17925 always_export_symbols=yes
17926 if test "$aix_use_runtimelinking" = yes; then
17927 # Warning - without using the other runtime loading flags (-brtl),
17928 # -berok will link without error, but may produce a broken library.
17929 allow_undefined_flag='-berok'
17930 # Determine the default libpath from the value encoded in an
17931 # empty executable.
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 int
17936 main ()
17937 {
17938
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 if ac_fn_c_try_link "$LINENO"; then :
17944
17945 lt_aix_libpath_sed='
17946 /Import File Strings/,/^$/ {
17947 /^0/ {
17948 s/^0 *\(.*\)$/\1/
17949 p
17950 }
17951 }'
17952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 # Check for a 64-bit object if we didn't find anything.
17954 if test -z "$aix_libpath"; then
17955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17956 fi
17957 fi
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17961
17962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17963 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"
17964 else
17965 if test "$host_cpu" = ia64; then
17966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17967 allow_undefined_flag="-z nodefs"
17968 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"
17969 else
17970 # Determine the default libpath from the value encoded in an
17971 # empty executable.
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974
17975 int
17976 main ()
17977 {
17978
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17984
17985 lt_aix_libpath_sed='
17986 /Import File Strings/,/^$/ {
17987 /^0/ {
17988 s/^0 *\(.*\)$/\1/
17989 p
17990 }
17991 }'
17992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17993 # Check for a 64-bit object if we didn't find anything.
17994 if test -z "$aix_libpath"; then
17995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17996 fi
17997 fi
17998 rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18001
18002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18003 # Warning - without using the other run time loading flags,
18004 # -berok will link without error, but may produce a broken library.
18005 no_undefined_flag=' ${wl}-bernotok'
18006 allow_undefined_flag=' ${wl}-berok'
18007 if test "$with_gnu_ld" = yes; then
18008 # We only use this code for GNU lds that support --whole-archive.
18009 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18010 else
18011 # Exported symbols can be pulled into shared objects from archives
18012 whole_archive_flag_spec='$convenience'
18013 fi
18014 archive_cmds_need_lc=yes
18015 # This is similar to how AIX traditionally builds its shared libraries.
18016 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'
18017 fi
18018 fi
18019 ;;
18020
18021 amigaos*)
18022 case $host_cpu in
18023 powerpc)
18024 # see comment about AmigaOS4 .so support
18025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18026 archive_expsym_cmds=''
18027 ;;
18028 m68k)
18029 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)'
18030 hardcode_libdir_flag_spec='-L$libdir'
18031 hardcode_minus_L=yes
18032 ;;
18033 esac
18034 ;;
18035
18036 bsdi[45]*)
18037 export_dynamic_flag_spec=-rdynamic
18038 ;;
18039
18040 cygwin* | mingw* | pw32* | cegcc*)
18041 # When not using gcc, we currently assume that we are using
18042 # Microsoft Visual C++.
18043 # hardcode_libdir_flag_spec is actually meaningless, as there is
18044 # no search path for DLLs.
18045 hardcode_libdir_flag_spec=' '
18046 allow_undefined_flag=unsupported
18047 # Tell ltmain to make .lib files, not .a files.
18048 libext=lib
18049 # Tell ltmain to make .dll files, not .so files.
18050 shrext_cmds=".dll"
18051 # FIXME: Setting linknames here is a bad hack.
18052 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18053 # The linker will automatically build a .lib file if we build a DLL.
18054 old_archive_from_new_cmds='true'
18055 # FIXME: Should let the user specify the lib program.
18056 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18057 fix_srcfile_path='`cygpath -w "$srcfile"`'
18058 enable_shared_with_static_runtimes=yes
18059 ;;
18060
18061 darwin* | rhapsody*)
18062
18063
18064 archive_cmds_need_lc=no
18065 hardcode_direct=no
18066 hardcode_automatic=yes
18067 hardcode_shlibpath_var=unsupported
18068 if test "$lt_cv_ld_force_load" = "yes"; then
18069 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\"`'
18070 else
18071 whole_archive_flag_spec=''
18072 fi
18073 link_all_deplibs=yes
18074 allow_undefined_flag="$_lt_dar_allow_undefined"
18075 case $cc_basename in
18076 ifort*) _lt_dar_can_shared=yes ;;
18077 *) _lt_dar_can_shared=$GCC ;;
18078 esac
18079 if test "$_lt_dar_can_shared" = "yes"; then
18080 output_verbose_link_cmd=func_echo_all
18081 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18082 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18083 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18084 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}"
18085
18086 else
18087 ld_shlibs=no
18088 fi
18089
18090 ;;
18091
18092 dgux*)
18093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_libdir_flag_spec='-L$libdir'
18095 hardcode_shlibpath_var=no
18096 ;;
18097
18098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18099 # support. Future versions do this automatically, but an explicit c++rt0.o
18100 # does not break anything, and helps significantly (at the cost of a little
18101 # extra space).
18102 freebsd2.2*)
18103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18104 hardcode_libdir_flag_spec='-R$libdir'
18105 hardcode_direct=yes
18106 hardcode_shlibpath_var=no
18107 ;;
18108
18109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18110 freebsd2.*)
18111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct=yes
18113 hardcode_minus_L=yes
18114 hardcode_shlibpath_var=no
18115 ;;
18116
18117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18118 freebsd* | dragonfly*)
18119 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18120 hardcode_libdir_flag_spec='-R$libdir'
18121 hardcode_direct=yes
18122 hardcode_shlibpath_var=no
18123 ;;
18124
18125 hpux9*)
18126 if test "$GCC" = yes; then
18127 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'
18128 else
18129 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'
18130 fi
18131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator=:
18133 hardcode_direct=yes
18134
18135 # hardcode_minus_L: Not really in the search PATH,
18136 # but as the default location of the library.
18137 hardcode_minus_L=yes
18138 export_dynamic_flag_spec='${wl}-E'
18139 ;;
18140
18141 hpux10*)
18142 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18144 else
18145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18146 fi
18147 if test "$with_gnu_ld" = no; then
18148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18149 hardcode_libdir_flag_spec_ld='+b $libdir'
18150 hardcode_libdir_separator=:
18151 hardcode_direct=yes
18152 hardcode_direct_absolute=yes
18153 export_dynamic_flag_spec='${wl}-E'
18154 # hardcode_minus_L: Not really in the search PATH,
18155 # but as the default location of the library.
18156 hardcode_minus_L=yes
18157 fi
18158 ;;
18159
18160 hpux11*)
18161 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18162 case $host_cpu in
18163 hppa*64*)
18164 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18165 ;;
18166 ia64*)
18167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18168 ;;
18169 *)
18170 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18171 ;;
18172 esac
18173 else
18174 case $host_cpu in
18175 hppa*64*)
18176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18177 ;;
18178 ia64*)
18179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18180 ;;
18181 *)
18182
18183 # Older versions of the 11.00 compiler do not understand -b yet
18184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18186 $as_echo_n "checking if $CC understands -b... " >&6; }
18187 if ${lt_cv_prog_compiler__b+:} false; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 lt_cv_prog_compiler__b=no
18191 save_LDFLAGS="$LDFLAGS"
18192 LDFLAGS="$LDFLAGS -b"
18193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18195 # The linker can only warn and ignore the option if not recognized
18196 # So say no if there are warnings
18197 if test -s conftest.err; then
18198 # Append any errors to the config.log.
18199 cat conftest.err 1>&5
18200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18202 if diff conftest.exp conftest.er2 >/dev/null; then
18203 lt_cv_prog_compiler__b=yes
18204 fi
18205 else
18206 lt_cv_prog_compiler__b=yes
18207 fi
18208 fi
18209 $RM -r conftest*
18210 LDFLAGS="$save_LDFLAGS"
18211
18212 fi
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18214 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18215
18216 if test x"$lt_cv_prog_compiler__b" = xyes; then
18217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18218 else
18219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18220 fi
18221
18222 ;;
18223 esac
18224 fi
18225 if test "$with_gnu_ld" = no; then
18226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18227 hardcode_libdir_separator=:
18228
18229 case $host_cpu in
18230 hppa*64*|ia64*)
18231 hardcode_direct=no
18232 hardcode_shlibpath_var=no
18233 ;;
18234 *)
18235 hardcode_direct=yes
18236 hardcode_direct_absolute=yes
18237 export_dynamic_flag_spec='${wl}-E'
18238
18239 # hardcode_minus_L: Not really in the search PATH,
18240 # but as the default location of the library.
18241 hardcode_minus_L=yes
18242 ;;
18243 esac
18244 fi
18245 ;;
18246
18247 irix5* | irix6* | nonstopux*)
18248 if test "$GCC" = yes; then
18249 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'
18250 # Try to use the -exported_symbol ld option, if it does not
18251 # work, assume that -exports_file does not work either and
18252 # implicitly export all symbols.
18253 save_LDFLAGS="$LDFLAGS"
18254 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 int foo(void) {}
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260 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'
18261
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LDFLAGS="$save_LDFLAGS"
18266 else
18267 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'
18268 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'
18269 fi
18270 archive_cmds_need_lc='no'
18271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18272 hardcode_libdir_separator=:
18273 inherit_rpath=yes
18274 link_all_deplibs=yes
18275 ;;
18276
18277 netbsd*)
18278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18280 else
18281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18282 fi
18283 hardcode_libdir_flag_spec='-R$libdir'
18284 hardcode_direct=yes
18285 hardcode_shlibpath_var=no
18286 ;;
18287
18288 newsos6)
18289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_direct=yes
18291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18292 hardcode_libdir_separator=:
18293 hardcode_shlibpath_var=no
18294 ;;
18295
18296 *nto* | *qnx*)
18297 ;;
18298
18299 openbsd*)
18300 if test -f /usr/libexec/ld.so; then
18301 hardcode_direct=yes
18302 hardcode_shlibpath_var=no
18303 hardcode_direct_absolute=yes
18304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18308 export_dynamic_flag_spec='${wl}-E'
18309 else
18310 case $host_os in
18311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18313 hardcode_libdir_flag_spec='-R$libdir'
18314 ;;
18315 *)
18316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18318 ;;
18319 esac
18320 fi
18321 else
18322 ld_shlibs=no
18323 fi
18324 ;;
18325
18326 os2*)
18327 hardcode_libdir_flag_spec='-L$libdir'
18328 hardcode_minus_L=yes
18329 allow_undefined_flag=unsupported
18330 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'
18331 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18332 ;;
18333
18334 osf3*)
18335 if test "$GCC" = yes; then
18336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18337 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'
18338 else
18339 allow_undefined_flag=' -expect_unresolved \*'
18340 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'
18341 fi
18342 archive_cmds_need_lc='no'
18343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18344 hardcode_libdir_separator=:
18345 ;;
18346
18347 osf4* | osf5*) # as osf3* with the addition of -msym flag
18348 if test "$GCC" = yes; then
18349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18350 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'
18351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18352 else
18353 allow_undefined_flag=' -expect_unresolved \*'
18354 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'
18355 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~
18356 $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'
18357
18358 # Both c and cxx compiler support -rpath directly
18359 hardcode_libdir_flag_spec='-rpath $libdir'
18360 fi
18361 archive_cmds_need_lc='no'
18362 hardcode_libdir_separator=:
18363 ;;
18364
18365 solaris*)
18366 no_undefined_flag=' -z defs'
18367 if test "$GCC" = yes; then
18368 wlarc='${wl}'
18369 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18371 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18372 else
18373 case `$CC -V 2>&1` in
18374 *"Compilers 5.0"*)
18375 wlarc=''
18376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18379 ;;
18380 *)
18381 wlarc='${wl}'
18382 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18385 ;;
18386 esac
18387 fi
18388 hardcode_libdir_flag_spec='-R$libdir'
18389 hardcode_shlibpath_var=no
18390 case $host_os in
18391 solaris2.[0-5] | solaris2.[0-5].*) ;;
18392 *)
18393 # The compiler driver will combine and reorder linker options,
18394 # but understands `-z linker_flag'. GCC discards it without `$wl',
18395 # but is careful enough not to reorder.
18396 # Supported since Solaris 2.6 (maybe 2.5.1?)
18397 if test "$GCC" = yes; then
18398 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18399 else
18400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18401 fi
18402 ;;
18403 esac
18404 link_all_deplibs=yes
18405 ;;
18406
18407 sunos4*)
18408 if test "x$host_vendor" = xsequent; then
18409 # Use $CC to link under sequent, because it throws in some extra .o
18410 # files that make .init and .fini sections work.
18411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18412 else
18413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18414 fi
18415 hardcode_libdir_flag_spec='-L$libdir'
18416 hardcode_direct=yes
18417 hardcode_minus_L=yes
18418 hardcode_shlibpath_var=no
18419 ;;
18420
18421 sysv4)
18422 case $host_vendor in
18423 sni)
18424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18425 hardcode_direct=yes # is this really true???
18426 ;;
18427 siemens)
18428 ## LD is ld it makes a PLAMLIB
18429 ## CC just makes a GrossModule.
18430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18431 reload_cmds='$CC -r -o $output$reload_objs'
18432 hardcode_direct=no
18433 ;;
18434 motorola)
18435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18437 ;;
18438 esac
18439 runpath_var='LD_RUN_PATH'
18440 hardcode_shlibpath_var=no
18441 ;;
18442
18443 sysv4.3*)
18444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18445 hardcode_shlibpath_var=no
18446 export_dynamic_flag_spec='-Bexport'
18447 ;;
18448
18449 sysv4*MP*)
18450 if test -d /usr/nec; then
18451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18452 hardcode_shlibpath_var=no
18453 runpath_var=LD_RUN_PATH
18454 hardcode_runpath_var=yes
18455 ld_shlibs=yes
18456 fi
18457 ;;
18458
18459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18460 no_undefined_flag='${wl}-z,text'
18461 archive_cmds_need_lc=no
18462 hardcode_shlibpath_var=no
18463 runpath_var='LD_RUN_PATH'
18464
18465 if test "$GCC" = yes; then
18466 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18468 else
18469 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18471 fi
18472 ;;
18473
18474 sysv5* | sco3.2v5* | sco5v6*)
18475 # Note: We can NOT use -z defs as we might desire, because we do not
18476 # link with -lc, and that would cause any symbols used from libc to
18477 # always be unresolved, which means just about no library would
18478 # ever link correctly. If we're not using GNU ld we use -z text
18479 # though, which does catch some bad symbols but isn't as heavy-handed
18480 # as -z defs.
18481 no_undefined_flag='${wl}-z,text'
18482 allow_undefined_flag='${wl}-z,nodefs'
18483 archive_cmds_need_lc=no
18484 hardcode_shlibpath_var=no
18485 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18486 hardcode_libdir_separator=':'
18487 link_all_deplibs=yes
18488 export_dynamic_flag_spec='${wl}-Bexport'
18489 runpath_var='LD_RUN_PATH'
18490
18491 if test "$GCC" = yes; then
18492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18494 else
18495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18497 fi
18498 ;;
18499
18500 uts4*)
18501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18502 hardcode_libdir_flag_spec='-L$libdir'
18503 hardcode_shlibpath_var=no
18504 ;;
18505
18506 *)
18507 ld_shlibs=no
18508 ;;
18509 esac
18510
18511 if test x$host_vendor = xsni; then
18512 case $host in
18513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18514 export_dynamic_flag_spec='${wl}-Blargedynsym'
18515 ;;
18516 esac
18517 fi
18518 fi
18519
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18521 $as_echo "$ld_shlibs" >&6; }
18522 test "$ld_shlibs" = no && can_build_shared=no
18523
18524 with_gnu_ld=$with_gnu_ld
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540 #
18541 # Do we need to explicitly link libc?
18542 #
18543 case "x$archive_cmds_need_lc" in
18544 x|xyes)
18545 # Assume -lc should be added
18546 archive_cmds_need_lc=yes
18547
18548 if test "$enable_shared" = yes && test "$GCC" = yes; then
18549 case $archive_cmds in
18550 *'~'*)
18551 # FIXME: we may have to deal with multi-command sequences.
18552 ;;
18553 '$CC '*)
18554 # Test whether the compiler implicitly links with -lc since on some
18555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18556 # to ld, don't add -lc before -lgcc.
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18559 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 $RM conftest*
18563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18564
18565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18566 (eval $ac_compile) 2>&5
18567 ac_status=$?
18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569 test $ac_status = 0; } 2>conftest.err; then
18570 soname=conftest
18571 lib=conftest
18572 libobjs=conftest.$ac_objext
18573 deplibs=
18574 wl=$lt_prog_compiler_wl
18575 pic_flag=$lt_prog_compiler_pic
18576 compiler_flags=-v
18577 linker_flags=-v
18578 verstring=
18579 output_objdir=.
18580 libname=conftest
18581 lt_save_allow_undefined_flag=$allow_undefined_flag
18582 allow_undefined_flag=
18583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18584 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18585 ac_status=$?
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }
18588 then
18589 lt_cv_archive_cmds_need_lc=no
18590 else
18591 lt_cv_archive_cmds_need_lc=yes
18592 fi
18593 allow_undefined_flag=$lt_save_allow_undefined_flag
18594 else
18595 cat conftest.err 1>&5
18596 fi
18597 $RM conftest*
18598
18599 fi
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18601 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18602 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18603 ;;
18604 esac
18605 fi
18606 ;;
18607 esac
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18767
18768 if test "$GCC" = yes; then
18769 case $host_os in
18770 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18771 *) lt_awk_arg="/^libraries:/" ;;
18772 esac
18773 case $host_os in
18774 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18775 *) lt_sed_strip_eq="s,=/,/,g" ;;
18776 esac
18777 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18778 case $lt_search_path_spec in
18779 *\;*)
18780 # if the path contains ";" then we assume it to be the separator
18781 # otherwise default to the standard path separator (i.e. ":") - it is
18782 # assumed that no part of a normal pathname contains ";" but that should
18783 # okay in the real world where ";" in dirpaths is itself problematic.
18784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18785 ;;
18786 *)
18787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18788 ;;
18789 esac
18790 # Ok, now we have the path, separated by spaces, we can step through it
18791 # and add multilib dir if necessary.
18792 lt_tmp_lt_search_path_spec=
18793 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18794 for lt_sys_path in $lt_search_path_spec; do
18795 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18797 else
18798 test -d "$lt_sys_path" && \
18799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18800 fi
18801 done
18802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18803 BEGIN {RS=" "; FS="/|\n";} {
18804 lt_foo="";
18805 lt_count=0;
18806 for (lt_i = NF; lt_i > 0; lt_i--) {
18807 if ($lt_i != "" && $lt_i != ".") {
18808 if ($lt_i == "..") {
18809 lt_count++;
18810 } else {
18811 if (lt_count == 0) {
18812 lt_foo="/" $lt_i lt_foo;
18813 } else {
18814 lt_count--;
18815 }
18816 }
18817 }
18818 }
18819 if (lt_foo != "") { lt_freq[lt_foo]++; }
18820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18821 }'`
18822 # AWK program above erroneously prepends '/' to C:/dos/paths
18823 # for these hosts.
18824 case $host_os in
18825 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18826 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18827 esac
18828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18829 else
18830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18831 fi
18832 library_names_spec=
18833 libname_spec='lib$name'
18834 soname_spec=
18835 shrext_cmds=".so"
18836 postinstall_cmds=
18837 postuninstall_cmds=
18838 finish_cmds=
18839 finish_eval=
18840 shlibpath_var=
18841 shlibpath_overrides_runpath=unknown
18842 version_type=none
18843 dynamic_linker="$host_os ld.so"
18844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18845 need_lib_prefix=unknown
18846 hardcode_into_libs=no
18847
18848 # when you set need_version to no, make sure it does not cause -set_version
18849 # flags to be left without arguments
18850 need_version=unknown
18851
18852 case $host_os in
18853 aix3*)
18854 version_type=linux
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18856 shlibpath_var=LIBPATH
18857
18858 # AIX 3 has no versioning support, so we append a major version to the name.
18859 soname_spec='${libname}${release}${shared_ext}$major'
18860 ;;
18861
18862 aix[4-9]*)
18863 version_type=linux
18864 need_lib_prefix=no
18865 need_version=no
18866 hardcode_into_libs=yes
18867 if test "$host_cpu" = ia64; then
18868 # AIX 5 supports IA64
18869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 else
18872 # With GCC up to 2.95.x, collect2 would create an import file
18873 # for dependence libraries. The import file would start with
18874 # the line `#! .'. This would cause the generated library to
18875 # depend on `.', always an invalid library. This was fixed in
18876 # development snapshots of GCC prior to 3.0.
18877 case $host_os in
18878 aix4 | aix4.[01] | aix4.[01].*)
18879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18880 echo ' yes '
18881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18882 :
18883 else
18884 can_build_shared=no
18885 fi
18886 ;;
18887 esac
18888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18889 # soname into executable. Probably we can add versioning support to
18890 # collect2, so additional links can be useful in future.
18891 if test "$aix_use_runtimelinking" = yes; then
18892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18893 # instead of lib<name>.a to let people know that these are not
18894 # typical AIX shared libraries.
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896 else
18897 # We preserve .a as extension for shared libraries through AIX4.2
18898 # and later when we are not doing run time linking.
18899 library_names_spec='${libname}${release}.a $libname.a'
18900 soname_spec='${libname}${release}${shared_ext}$major'
18901 fi
18902 shlibpath_var=LIBPATH
18903 fi
18904 ;;
18905
18906 amigaos*)
18907 case $host_cpu in
18908 powerpc)
18909 # Since July 2007 AmigaOS4 officially supports .so libraries.
18910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18912 ;;
18913 m68k)
18914 library_names_spec='$libname.ixlibrary $libname.a'
18915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18916 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'
18917 ;;
18918 esac
18919 ;;
18920
18921 beos*)
18922 library_names_spec='${libname}${shared_ext}'
18923 dynamic_linker="$host_os ld.so"
18924 shlibpath_var=LIBRARY_PATH
18925 ;;
18926
18927 bsdi[45]*)
18928 version_type=linux
18929 need_version=no
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 soname_spec='${libname}${release}${shared_ext}$major'
18932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18936 # the default ld.so.conf also contains /usr/contrib/lib and
18937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18938 # libtool to hard-code these into programs
18939 ;;
18940
18941 cygwin* | mingw* | pw32* | cegcc*)
18942 version_type=windows
18943 shrext_cmds=".dll"
18944 need_version=no
18945 need_lib_prefix=no
18946
18947 case $GCC,$host_os in
18948 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18949 library_names_spec='$libname.dll.a'
18950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18951 postinstall_cmds='base_file=`basename \${file}`~
18952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18953 dldir=$destdir/`dirname \$dlpath`~
18954 test -d \$dldir || mkdir -p \$dldir~
18955 $install_prog $dir/$dlname \$dldir/$dlname~
18956 chmod a+x \$dldir/$dlname~
18957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18959 fi'
18960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18961 dlpath=$dir/\$dldll~
18962 $RM \$dlpath'
18963 shlibpath_overrides_runpath=yes
18964
18965 case $host_os in
18966 cygwin*)
18967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18969
18970 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18971 ;;
18972 mingw* | cegcc*)
18973 # MinGW DLLs use traditional 'lib' prefix
18974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18975 ;;
18976 pw32*)
18977 # pw32 DLLs use 'pw' prefix rather than 'lib'
18978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18979 ;;
18980 esac
18981 ;;
18982
18983 *)
18984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18985 ;;
18986 esac
18987 dynamic_linker='Win32 ld.exe'
18988 # FIXME: first we should search . and the directory the executable is in
18989 shlibpath_var=PATH
18990 ;;
18991
18992 darwin* | rhapsody*)
18993 dynamic_linker="$host_os dyld"
18994 version_type=darwin
18995 need_lib_prefix=no
18996 need_version=no
18997 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18998 soname_spec='${libname}${release}${major}$shared_ext'
18999 shlibpath_overrides_runpath=yes
19000 shlibpath_var=DYLD_LIBRARY_PATH
19001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19002
19003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19005 ;;
19006
19007 dgux*)
19008 version_type=linux
19009 need_lib_prefix=no
19010 need_version=no
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19014 ;;
19015
19016 freebsd* | dragonfly*)
19017 # DragonFly does not have aout. When/if they implement a new
19018 # versioning mechanism, adjust this.
19019 if test -x /usr/bin/objformat; then
19020 objformat=`/usr/bin/objformat`
19021 else
19022 case $host_os in
19023 freebsd[23].*) objformat=aout ;;
19024 *) objformat=elf ;;
19025 esac
19026 fi
19027 version_type=freebsd-$objformat
19028 case $version_type in
19029 freebsd-elf*)
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19031 need_version=no
19032 need_lib_prefix=no
19033 ;;
19034 freebsd-*)
19035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19036 need_version=yes
19037 ;;
19038 esac
19039 shlibpath_var=LD_LIBRARY_PATH
19040 case $host_os in
19041 freebsd2.*)
19042 shlibpath_overrides_runpath=yes
19043 ;;
19044 freebsd3.[01]* | freebsdelf3.[01]*)
19045 shlibpath_overrides_runpath=yes
19046 hardcode_into_libs=yes
19047 ;;
19048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19050 shlibpath_overrides_runpath=no
19051 hardcode_into_libs=yes
19052 ;;
19053 *) # from 4.6 on, and DragonFly
19054 shlibpath_overrides_runpath=yes
19055 hardcode_into_libs=yes
19056 ;;
19057 esac
19058 ;;
19059
19060 haiku*)
19061 version_type=linux
19062 need_lib_prefix=no
19063 need_version=no
19064 dynamic_linker="$host_os runtime_loader"
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19067 shlibpath_var=LIBRARY_PATH
19068 shlibpath_overrides_runpath=yes
19069 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19070 hardcode_into_libs=yes
19071 ;;
19072
19073 hpux9* | hpux10* | hpux11*)
19074 # Give a soname corresponding to the major version so that dld.sl refuses to
19075 # link against other versions.
19076 version_type=sunos
19077 need_lib_prefix=no
19078 need_version=no
19079 case $host_cpu in
19080 ia64*)
19081 shrext_cmds='.so'
19082 hardcode_into_libs=yes
19083 dynamic_linker="$host_os dld.so"
19084 shlibpath_var=LD_LIBRARY_PATH
19085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 soname_spec='${libname}${release}${shared_ext}$major'
19088 if test "X$HPUX_IA64_MODE" = X32; then
19089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19090 else
19091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19092 fi
19093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19094 ;;
19095 hppa*64*)
19096 shrext_cmds='.sl'
19097 hardcode_into_libs=yes
19098 dynamic_linker="$host_os dld.sl"
19099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19105 ;;
19106 *)
19107 shrext_cmds='.sl'
19108 dynamic_linker="$host_os dld.sl"
19109 shlibpath_var=SHLIB_PATH
19110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112 soname_spec='${libname}${release}${shared_ext}$major'
19113 ;;
19114 esac
19115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19116 postinstall_cmds='chmod 555 $lib'
19117 # or fails outright, so override atomically:
19118 install_override_mode=555
19119 ;;
19120
19121 interix[3-9]*)
19122 version_type=linux
19123 need_lib_prefix=no
19124 need_version=no
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19128 shlibpath_var=LD_LIBRARY_PATH
19129 shlibpath_overrides_runpath=no
19130 hardcode_into_libs=yes
19131 ;;
19132
19133 irix5* | irix6* | nonstopux*)
19134 case $host_os in
19135 nonstopux*) version_type=nonstopux ;;
19136 *)
19137 if test "$lt_cv_prog_gnu_ld" = yes; then
19138 version_type=linux
19139 else
19140 version_type=irix
19141 fi ;;
19142 esac
19143 need_lib_prefix=no
19144 need_version=no
19145 soname_spec='${libname}${release}${shared_ext}$major'
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19147 case $host_os in
19148 irix5* | nonstopux*)
19149 libsuff= shlibsuff=
19150 ;;
19151 *)
19152 case $LD in # libtool.m4 will add one of these switches to LD
19153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19154 libsuff= shlibsuff= libmagic=32-bit;;
19155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19156 libsuff=32 shlibsuff=N32 libmagic=N32;;
19157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19159 *) libsuff= shlibsuff= libmagic=never-match;;
19160 esac
19161 ;;
19162 esac
19163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19164 shlibpath_overrides_runpath=no
19165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19167 hardcode_into_libs=yes
19168 ;;
19169
19170 # No shared lib support for Linux oldld, aout, or coff.
19171 linux*oldld* | linux*aout* | linux*coff*)
19172 dynamic_linker=no
19173 ;;
19174
19175 # This must be Linux ELF.
19176
19177 # uclinux* changes (here and below) have been submitted to the libtool
19178 # project, but have not yet been accepted: they are GCC-local changes
19179 # for the time being. (See
19180 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19181 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19182 version_type=linux
19183 need_lib_prefix=no
19184 need_version=no
19185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186 soname_spec='${libname}${release}${shared_ext}$major'
19187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 shlibpath_overrides_runpath=no
19190
19191 # Some binutils ld are patched to set DT_RUNPATH
19192 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19193 $as_echo_n "(cached) " >&6
19194 else
19195 lt_cv_shlibpath_overrides_runpath=no
19196 save_LDFLAGS=$LDFLAGS
19197 save_libdir=$libdir
19198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19202
19203 int
19204 main ()
19205 {
19206
19207 ;
19208 return 0;
19209 }
19210 _ACEOF
19211 if ac_fn_c_try_link "$LINENO"; then :
19212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19213 lt_cv_shlibpath_overrides_runpath=yes
19214 fi
19215 fi
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LDFLAGS=$save_LDFLAGS
19219 libdir=$save_libdir
19220
19221 fi
19222
19223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19224
19225 # This implies no fast_install, which is unacceptable.
19226 # Some rework will be needed to allow for fast_install
19227 # before this can be enabled.
19228 hardcode_into_libs=yes
19229
19230 # Append ld.so.conf contents to the search path
19231 if test -f /etc/ld.so.conf; then
19232 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' ' '`
19233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19234 fi
19235
19236 # We used to test for /lib/ld.so.1 and disable shared libraries on
19237 # powerpc, because MkLinux only supported shared libraries with the
19238 # GNU dynamic linker. Since this was broken with cross compilers,
19239 # most powerpc-linux boxes support dynamic linking these days and
19240 # people can always --disable-shared, the test was removed, and we
19241 # assume the GNU/Linux dynamic linker is in use.
19242 dynamic_linker='GNU/Linux ld.so'
19243 ;;
19244
19245 netbsd*)
19246 version_type=sunos
19247 need_lib_prefix=no
19248 need_version=no
19249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19252 dynamic_linker='NetBSD (a.out) ld.so'
19253 else
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255 soname_spec='${libname}${release}${shared_ext}$major'
19256 dynamic_linker='NetBSD ld.elf_so'
19257 fi
19258 shlibpath_var=LD_LIBRARY_PATH
19259 shlibpath_overrides_runpath=yes
19260 hardcode_into_libs=yes
19261 ;;
19262
19263 newsos6)
19264 version_type=linux
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath=yes
19268 ;;
19269
19270 *nto* | *qnx*)
19271 version_type=qnx
19272 need_lib_prefix=no
19273 need_version=no
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 soname_spec='${libname}${release}${shared_ext}$major'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath=no
19278 hardcode_into_libs=yes
19279 dynamic_linker='ldqnx.so'
19280 ;;
19281
19282 openbsd*)
19283 version_type=sunos
19284 sys_lib_dlsearch_path_spec="/usr/lib"
19285 need_lib_prefix=no
19286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19287 case $host_os in
19288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19289 *) need_version=no ;;
19290 esac
19291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19293 shlibpath_var=LD_LIBRARY_PATH
19294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19295 case $host_os in
19296 openbsd2.[89] | openbsd2.[89].*)
19297 shlibpath_overrides_runpath=no
19298 ;;
19299 *)
19300 shlibpath_overrides_runpath=yes
19301 ;;
19302 esac
19303 else
19304 shlibpath_overrides_runpath=yes
19305 fi
19306 ;;
19307
19308 os2*)
19309 libname_spec='$name'
19310 shrext_cmds=".dll"
19311 need_lib_prefix=no
19312 library_names_spec='$libname${shared_ext} $libname.a'
19313 dynamic_linker='OS/2 ld.exe'
19314 shlibpath_var=LIBPATH
19315 ;;
19316
19317 osf3* | osf4* | osf5*)
19318 version_type=osf
19319 need_lib_prefix=no
19320 need_version=no
19321 soname_spec='${libname}${release}${shared_ext}$major'
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 shlibpath_var=LD_LIBRARY_PATH
19324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19326 ;;
19327
19328 rdos*)
19329 dynamic_linker=no
19330 ;;
19331
19332 solaris*)
19333 version_type=linux
19334 need_lib_prefix=no
19335 need_version=no
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath=yes
19340 hardcode_into_libs=yes
19341 # ldd complains unless libraries are executable
19342 postinstall_cmds='chmod +x $lib'
19343 ;;
19344
19345 sunos4*)
19346 version_type=sunos
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19349 shlibpath_var=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath=yes
19351 if test "$with_gnu_ld" = yes; then
19352 need_lib_prefix=no
19353 fi
19354 need_version=yes
19355 ;;
19356
19357 sysv4 | sysv4.3*)
19358 version_type=linux
19359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 soname_spec='${libname}${release}${shared_ext}$major'
19361 shlibpath_var=LD_LIBRARY_PATH
19362 case $host_vendor in
19363 sni)
19364 shlibpath_overrides_runpath=no
19365 need_lib_prefix=no
19366 runpath_var=LD_RUN_PATH
19367 ;;
19368 siemens)
19369 need_lib_prefix=no
19370 ;;
19371 motorola)
19372 need_lib_prefix=no
19373 need_version=no
19374 shlibpath_overrides_runpath=no
19375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19376 ;;
19377 esac
19378 ;;
19379
19380 sysv4*MP*)
19381 if test -d /usr/nec ;then
19382 version_type=linux
19383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19384 soname_spec='$libname${shared_ext}.$major'
19385 shlibpath_var=LD_LIBRARY_PATH
19386 fi
19387 ;;
19388
19389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19390 version_type=freebsd-elf
19391 need_lib_prefix=no
19392 need_version=no
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath=yes
19397 hardcode_into_libs=yes
19398 if test "$with_gnu_ld" = yes; then
19399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19400 else
19401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19402 case $host_os in
19403 sco3.2v5*)
19404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19405 ;;
19406 esac
19407 fi
19408 sys_lib_dlsearch_path_spec='/usr/lib'
19409 ;;
19410
19411 tpf*)
19412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19413 version_type=linux
19414 need_lib_prefix=no
19415 need_version=no
19416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 shlibpath_overrides_runpath=no
19419 hardcode_into_libs=yes
19420 ;;
19421
19422 uts4*)
19423 version_type=linux
19424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19425 soname_spec='${libname}${release}${shared_ext}$major'
19426 shlibpath_var=LD_LIBRARY_PATH
19427 ;;
19428
19429 # Shared libraries for VwWorks, >= 7 only at this stage
19430 # and (fpic) still incompatible with "large" code models
19431 # in a few configurations. Only for RTP mode in any case,
19432 # and upon explicit request at configure time.
19433 vxworks7*)
19434 dynamic_linker=no
19435 case ${with_multisubdir}-${enable_shared} in
19436 *large*)
19437 ;;
19438 *mrtp*-yes)
19439 version_type=linux
19440 need_lib_prefix=no
19441 need_version=no
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 soname_spec='${libname}${release}${shared_ext}$major'
19444 dynamic_linker="$host_os module_loader"
19445 ;;
19446 esac
19447 ;;
19448 *)
19449 dynamic_linker=no
19450 ;;
19451 esac
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19453 $as_echo "$dynamic_linker" >&6; }
19454 test "$dynamic_linker" = no && can_build_shared=no
19455
19456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19457 if test "$GCC" = yes; then
19458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19459 fi
19460
19461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19462 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19463 fi
19464 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19465 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19466 fi
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19560 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19561 hardcode_action=
19562 if test -n "$hardcode_libdir_flag_spec" ||
19563 test -n "$runpath_var" ||
19564 test "X$hardcode_automatic" = "Xyes" ; then
19565
19566 # We can hardcode non-existent directories.
19567 if test "$hardcode_direct" != no &&
19568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19569 # have to relink, otherwise we might link with an installed library
19570 # when we should be linking with a yet-to-be-installed one
19571 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19572 test "$hardcode_minus_L" != no; then
19573 # Linking always hardcodes the temporary library directory.
19574 hardcode_action=relink
19575 else
19576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19577 hardcode_action=immediate
19578 fi
19579 else
19580 # We cannot hardcode anything, or else we can only hardcode existing
19581 # directories.
19582 hardcode_action=unsupported
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19585 $as_echo "$hardcode_action" >&6; }
19586
19587 if test "$hardcode_action" = relink ||
19588 test "$inherit_rpath" = yes; then
19589 # Fast installation is not supported
19590 enable_fast_install=no
19591 elif test "$shlibpath_overrides_runpath" = yes ||
19592 test "$enable_shared" = no; then
19593 # Fast installation is not necessary
19594 enable_fast_install=needless
19595 fi
19596
19597
19598
19599
19600
19601
19602 if test "x$enable_dlopen" != xyes; then
19603 enable_dlopen=unknown
19604 enable_dlopen_self=unknown
19605 enable_dlopen_self_static=unknown
19606 else
19607 lt_cv_dlopen=no
19608 lt_cv_dlopen_libs=
19609
19610 case $host_os in
19611 beos*)
19612 lt_cv_dlopen="load_add_on"
19613 lt_cv_dlopen_libs=
19614 lt_cv_dlopen_self=yes
19615 ;;
19616
19617 mingw* | pw32* | cegcc*)
19618 lt_cv_dlopen="LoadLibrary"
19619 lt_cv_dlopen_libs=
19620 ;;
19621
19622 cygwin*)
19623 lt_cv_dlopen="dlopen"
19624 lt_cv_dlopen_libs=
19625 ;;
19626
19627 darwin*)
19628 # if libdl is installed we need to link against it
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19630 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19631 if ${ac_cv_lib_dl_dlopen+:} false; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19634 ac_check_lib_save_LIBS=$LIBS
19635 LIBS="-ldl $LIBS"
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19642 #ifdef __cplusplus
19643 extern "C"
19644 #endif
19645 char dlopen ();
19646 int
19647 main ()
19648 {
19649 return dlopen ();
19650 ;
19651 return 0;
19652 }
19653 _ACEOF
19654 if ac_fn_c_try_link "$LINENO"; then :
19655 ac_cv_lib_dl_dlopen=yes
19656 else
19657 ac_cv_lib_dl_dlopen=no
19658 fi
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19662 fi
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19665 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19667 else
19668
19669 lt_cv_dlopen="dyld"
19670 lt_cv_dlopen_libs=
19671 lt_cv_dlopen_self=yes
19672
19673 fi
19674
19675 ;;
19676
19677 *)
19678 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19679 if test "x$ac_cv_func_shl_load" = xyes; then :
19680 lt_cv_dlopen="shl_load"
19681 else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19683 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19684 if ${ac_cv_lib_dld_shl_load+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19687 ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-ldld $LIBS"
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19691
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 char shl_load ();
19699 int
19700 main ()
19701 {
19702 return shl_load ();
19703 ;
19704 return 0;
19705 }
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_lib_dld_shl_load=yes
19709 else
19710 ac_cv_lib_dld_shl_load=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19717 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19718 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19719 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19720 else
19721 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19722 if test "x$ac_cv_func_dlopen" = xyes; then :
19723 lt_cv_dlopen="dlopen"
19724 else
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19727 if ${ac_cv_lib_dl_dlopen+:} false; then :
19728 $as_echo_n "(cached) " >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-ldl $LIBS"
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char dlopen ();
19742 int
19743 main ()
19744 {
19745 return dlopen ();
19746 ;
19747 return 0;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_dl_dlopen=yes
19752 else
19753 ac_cv_lib_dl_dlopen=no
19754 fi
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19763 else
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19765 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19766 if ${ac_cv_lib_svld_dlopen+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768 else
19769 ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lsvld $LIBS"
19771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h. */
19773
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char dlopen ();
19781 int
19782 main ()
19783 {
19784 return dlopen ();
19785 ;
19786 return 0;
19787 }
19788 _ACEOF
19789 if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_lib_svld_dlopen=yes
19791 else
19792 ac_cv_lib_svld_dlopen=no
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19799 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19800 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19801 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19802 else
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19804 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19805 if ${ac_cv_lib_dld_dld_link+:} false; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 ac_check_lib_save_LIBS=$LIBS
19809 LIBS="-ldld $LIBS"
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 #ifdef __cplusplus
19817 extern "C"
19818 #endif
19819 char dld_link ();
19820 int
19821 main ()
19822 {
19823 return dld_link ();
19824 ;
19825 return 0;
19826 }
19827 _ACEOF
19828 if ac_fn_c_try_link "$LINENO"; then :
19829 ac_cv_lib_dld_dld_link=yes
19830 else
19831 ac_cv_lib_dld_dld_link=no
19832 fi
19833 rm -f core conftest.err conftest.$ac_objext \
19834 conftest$ac_exeext conftest.$ac_ext
19835 LIBS=$ac_check_lib_save_LIBS
19836 fi
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19838 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19839 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19841 fi
19842
19843
19844 fi
19845
19846
19847 fi
19848
19849
19850 fi
19851
19852
19853 fi
19854
19855
19856 fi
19857
19858 ;;
19859 esac
19860
19861 if test "x$lt_cv_dlopen" != xno; then
19862 enable_dlopen=yes
19863 else
19864 enable_dlopen=no
19865 fi
19866
19867 case $lt_cv_dlopen in
19868 dlopen)
19869 save_CPPFLAGS="$CPPFLAGS"
19870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19871
19872 save_LDFLAGS="$LDFLAGS"
19873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19874
19875 save_LIBS="$LIBS"
19876 LIBS="$lt_cv_dlopen_libs $LIBS"
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19879 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19880 if ${lt_cv_dlopen_self+:} false; then :
19881 $as_echo_n "(cached) " >&6
19882 else
19883 if test "$cross_compiling" = yes; then :
19884 lt_cv_dlopen_self=cross
19885 else
19886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19887 lt_status=$lt_dlunknown
19888 cat > conftest.$ac_ext <<_LT_EOF
19889 #line 19889 "configure"
19890 #include "confdefs.h"
19891
19892 #if HAVE_DLFCN_H
19893 #include <dlfcn.h>
19894 #endif
19895
19896 #include <stdio.h>
19897
19898 #ifdef RTLD_GLOBAL
19899 # define LT_DLGLOBAL RTLD_GLOBAL
19900 #else
19901 # ifdef DL_GLOBAL
19902 # define LT_DLGLOBAL DL_GLOBAL
19903 # else
19904 # define LT_DLGLOBAL 0
19905 # endif
19906 #endif
19907
19908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19909 find out it does not work in some platform. */
19910 #ifndef LT_DLLAZY_OR_NOW
19911 # ifdef RTLD_LAZY
19912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19913 # else
19914 # ifdef DL_LAZY
19915 # define LT_DLLAZY_OR_NOW DL_LAZY
19916 # else
19917 # ifdef RTLD_NOW
19918 # define LT_DLLAZY_OR_NOW RTLD_NOW
19919 # else
19920 # ifdef DL_NOW
19921 # define LT_DLLAZY_OR_NOW DL_NOW
19922 # else
19923 # define LT_DLLAZY_OR_NOW 0
19924 # endif
19925 # endif
19926 # endif
19927 # endif
19928 #endif
19929
19930 /* When -fvisbility=hidden is used, assume the code has been annotated
19931 correspondingly for the symbols needed. */
19932 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19933 void fnord () __attribute__((visibility("default")));
19934 #endif
19935
19936 void fnord () { int i=42; }
19937 int main ()
19938 {
19939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19940 int status = $lt_dlunknown;
19941
19942 if (self)
19943 {
19944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19945 else
19946 {
19947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19948 else puts (dlerror ());
19949 }
19950 /* dlclose (self); */
19951 }
19952 else
19953 puts (dlerror ());
19954
19955 return status;
19956 }
19957 _LT_EOF
19958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19959 (eval $ac_link) 2>&5
19960 ac_status=$?
19961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19962 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19963 (./conftest; exit; ) >&5 2>/dev/null
19964 lt_status=$?
19965 case x$lt_status in
19966 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19967 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19968 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19969 esac
19970 else :
19971 # compilation failed
19972 lt_cv_dlopen_self=no
19973 fi
19974 fi
19975 rm -fr conftest*
19976
19977
19978 fi
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19980 $as_echo "$lt_cv_dlopen_self" >&6; }
19981
19982 if test "x$lt_cv_dlopen_self" = xyes; then
19983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19985 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19986 if ${lt_cv_dlopen_self_static+:} false; then :
19987 $as_echo_n "(cached) " >&6
19988 else
19989 if test "$cross_compiling" = yes; then :
19990 lt_cv_dlopen_self_static=cross
19991 else
19992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19993 lt_status=$lt_dlunknown
19994 cat > conftest.$ac_ext <<_LT_EOF
19995 #line 19995 "configure"
19996 #include "confdefs.h"
19997
19998 #if HAVE_DLFCN_H
19999 #include <dlfcn.h>
20000 #endif
20001
20002 #include <stdio.h>
20003
20004 #ifdef RTLD_GLOBAL
20005 # define LT_DLGLOBAL RTLD_GLOBAL
20006 #else
20007 # ifdef DL_GLOBAL
20008 # define LT_DLGLOBAL DL_GLOBAL
20009 # else
20010 # define LT_DLGLOBAL 0
20011 # endif
20012 #endif
20013
20014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20015 find out it does not work in some platform. */
20016 #ifndef LT_DLLAZY_OR_NOW
20017 # ifdef RTLD_LAZY
20018 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20019 # else
20020 # ifdef DL_LAZY
20021 # define LT_DLLAZY_OR_NOW DL_LAZY
20022 # else
20023 # ifdef RTLD_NOW
20024 # define LT_DLLAZY_OR_NOW RTLD_NOW
20025 # else
20026 # ifdef DL_NOW
20027 # define LT_DLLAZY_OR_NOW DL_NOW
20028 # else
20029 # define LT_DLLAZY_OR_NOW 0
20030 # endif
20031 # endif
20032 # endif
20033 # endif
20034 #endif
20035
20036 /* When -fvisbility=hidden is used, assume the code has been annotated
20037 correspondingly for the symbols needed. */
20038 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20039 void fnord () __attribute__((visibility("default")));
20040 #endif
20041
20042 void fnord () { int i=42; }
20043 int main ()
20044 {
20045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20046 int status = $lt_dlunknown;
20047
20048 if (self)
20049 {
20050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20051 else
20052 {
20053 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20054 else puts (dlerror ());
20055 }
20056 /* dlclose (self); */
20057 }
20058 else
20059 puts (dlerror ());
20060
20061 return status;
20062 }
20063 _LT_EOF
20064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20065 (eval $ac_link) 2>&5
20066 ac_status=$?
20067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20068 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20069 (./conftest; exit; ) >&5 2>/dev/null
20070 lt_status=$?
20071 case x$lt_status in
20072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20074 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20075 esac
20076 else :
20077 # compilation failed
20078 lt_cv_dlopen_self_static=no
20079 fi
20080 fi
20081 rm -fr conftest*
20082
20083
20084 fi
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20086 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20087 fi
20088
20089 CPPFLAGS="$save_CPPFLAGS"
20090 LDFLAGS="$save_LDFLAGS"
20091 LIBS="$save_LIBS"
20092 ;;
20093 esac
20094
20095 case $lt_cv_dlopen_self in
20096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20097 *) enable_dlopen_self=unknown ;;
20098 esac
20099
20100 case $lt_cv_dlopen_self_static in
20101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20102 *) enable_dlopen_self_static=unknown ;;
20103 esac
20104 fi
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122 striplib=
20123 old_striplib=
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20125 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20126 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20128 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20130 $as_echo "yes" >&6; }
20131 else
20132 # FIXME - insert some real tests, host_os isn't really good enough
20133 case $host_os in
20134 darwin*)
20135 if test -n "$STRIP" ; then
20136 striplib="$STRIP -x"
20137 old_striplib="$STRIP -S"
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20139 $as_echo "yes" >&6; }
20140 else
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20143 fi
20144 ;;
20145 *)
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 $as_echo "no" >&6; }
20148 ;;
20149 esac
20150 fi
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163 # Report which library types will actually be built
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20167 $as_echo "$can_build_shared" >&6; }
20168
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20170 $as_echo_n "checking whether to build shared libraries... " >&6; }
20171 test "$can_build_shared" = "no" && enable_shared=no
20172
20173 # On AIX, shared libraries and static libraries use the same namespace, and
20174 # are all built from PIC.
20175 case $host_os in
20176 aix3*)
20177 test "$enable_shared" = yes && enable_static=no
20178 if test -n "$RANLIB"; then
20179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20180 postinstall_cmds='$RANLIB $lib'
20181 fi
20182 ;;
20183
20184 aix[4-9]*)
20185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20186 test "$enable_shared" = yes && enable_static=no
20187 fi
20188 ;;
20189 esac
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20191 $as_echo "$enable_shared" >&6; }
20192
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20194 $as_echo_n "checking whether to build static libraries... " >&6; }
20195 # Make sure either enable_shared or enable_static is yes.
20196 test "$enable_shared" = yes || enable_static=yes
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20198 $as_echo "$enable_static" >&6; }
20199
20200
20201
20202
20203 fi
20204 ac_ext=cpp
20205 ac_cpp='$CXXCPP $CPPFLAGS'
20206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20209
20210 CC="$lt_save_CC"
20211
20212 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20213 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20214 (test "X$CXX" != "Xg++"))) ; then
20215 ac_ext=cpp
20216 ac_cpp='$CXXCPP $CPPFLAGS'
20217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20221 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20222 if test -z "$CXXCPP"; then
20223 if ${ac_cv_prog_CXXCPP+:} false; then :
20224 $as_echo_n "(cached) " >&6
20225 else
20226 # Double quotes because CXXCPP needs to be expanded
20227 for CXXCPP in "$CXX -E" "/lib/cpp"
20228 do
20229 ac_preproc_ok=false
20230 for ac_cxx_preproc_warn_flag in '' yes
20231 do
20232 # Use a header file that comes with gcc, so configuring glibc
20233 # with a fresh cross-compiler works.
20234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20235 # <limits.h> exists even on freestanding compilers.
20236 # On the NeXT, cc -E runs the code through the compiler's parser,
20237 # not just through cpp. "Syntax error" is here to catch this case.
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240 #ifdef __STDC__
20241 # include <limits.h>
20242 #else
20243 # include <assert.h>
20244 #endif
20245 Syntax error
20246 _ACEOF
20247 if ac_fn_cxx_try_cpp "$LINENO"; then :
20248
20249 else
20250 # Broken: fails on valid input.
20251 continue
20252 fi
20253 rm -f conftest.err conftest.i conftest.$ac_ext
20254
20255 # OK, works on sane cases. Now check whether nonexistent headers
20256 # can be detected and how.
20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20259 #include <ac_nonexistent.h>
20260 _ACEOF
20261 if ac_fn_cxx_try_cpp "$LINENO"; then :
20262 # Broken: success on invalid input.
20263 continue
20264 else
20265 # Passes both tests.
20266 ac_preproc_ok=:
20267 break
20268 fi
20269 rm -f conftest.err conftest.i conftest.$ac_ext
20270
20271 done
20272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20273 rm -f conftest.i conftest.err conftest.$ac_ext
20274 if $ac_preproc_ok; then :
20275 break
20276 fi
20277
20278 done
20279 ac_cv_prog_CXXCPP=$CXXCPP
20280
20281 fi
20282 CXXCPP=$ac_cv_prog_CXXCPP
20283 else
20284 ac_cv_prog_CXXCPP=$CXXCPP
20285 fi
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20287 $as_echo "$CXXCPP" >&6; }
20288 ac_preproc_ok=false
20289 for ac_cxx_preproc_warn_flag in '' yes
20290 do
20291 # Use a header file that comes with gcc, so configuring glibc
20292 # with a fresh cross-compiler works.
20293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20294 # <limits.h> exists even on freestanding compilers.
20295 # On the NeXT, cc -E runs the code through the compiler's parser,
20296 # not just through cpp. "Syntax error" is here to catch this case.
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20304 Syntax error
20305 _ACEOF
20306 if ac_fn_cxx_try_cpp "$LINENO"; then :
20307
20308 else
20309 # Broken: fails on valid input.
20310 continue
20311 fi
20312 rm -f conftest.err conftest.i conftest.$ac_ext
20313
20314 # OK, works on sane cases. Now check whether nonexistent headers
20315 # can be detected and how.
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318 #include <ac_nonexistent.h>
20319 _ACEOF
20320 if ac_fn_cxx_try_cpp "$LINENO"; then :
20321 # Broken: success on invalid input.
20322 continue
20323 else
20324 # Passes both tests.
20325 ac_preproc_ok=:
20326 break
20327 fi
20328 rm -f conftest.err conftest.i conftest.$ac_ext
20329
20330 done
20331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20332 rm -f conftest.i conftest.err conftest.$ac_ext
20333 if $ac_preproc_ok; then :
20334
20335 else
20336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20338 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20339 See \`config.log' for more details" "$LINENO" 5; }
20340 fi
20341
20342 ac_ext=cpp
20343 ac_cpp='$CXXCPP $CPPFLAGS'
20344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20347
20348 else
20349 _lt_caught_CXX_error=yes
20350 fi
20351
20352 ac_ext=cpp
20353 ac_cpp='$CXXCPP $CPPFLAGS'
20354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20357
20358 archive_cmds_need_lc_CXX=no
20359 allow_undefined_flag_CXX=
20360 always_export_symbols_CXX=no
20361 archive_expsym_cmds_CXX=
20362 compiler_needs_object_CXX=no
20363 export_dynamic_flag_spec_CXX=
20364 hardcode_direct_CXX=no
20365 hardcode_direct_absolute_CXX=no
20366 hardcode_libdir_flag_spec_CXX=
20367 hardcode_libdir_flag_spec_ld_CXX=
20368 hardcode_libdir_separator_CXX=
20369 hardcode_minus_L_CXX=no
20370 hardcode_shlibpath_var_CXX=unsupported
20371 hardcode_automatic_CXX=no
20372 inherit_rpath_CXX=no
20373 module_cmds_CXX=
20374 module_expsym_cmds_CXX=
20375 link_all_deplibs_CXX=unknown
20376 old_archive_cmds_CXX=$old_archive_cmds
20377 reload_flag_CXX=$reload_flag
20378 reload_cmds_CXX=$reload_cmds
20379 no_undefined_flag_CXX=
20380 whole_archive_flag_spec_CXX=
20381 enable_shared_with_static_runtimes_CXX=no
20382
20383 # Source file extension for C++ test sources.
20384 ac_ext=cpp
20385
20386 # Object file extension for compiled C++ test sources.
20387 objext=o
20388 objext_CXX=$objext
20389
20390 # No sense in running all these tests if we already determined that
20391 # the CXX compiler isn't working. Some variables (like enable_shared)
20392 # are currently assumed to apply to all compilers on this platform,
20393 # and will be corrupted by setting them based on a non-working compiler.
20394 if test "$_lt_caught_CXX_error" != yes; then
20395 # Code to be used in simple compile tests
20396 lt_simple_compile_test_code="int some_variable = 0;"
20397
20398 # Code to be used in simple link tests
20399 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20400
20401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20402
20403
20404
20405
20406
20407
20408 # If no C compiler was specified, use CC.
20409 LTCC=${LTCC-"$CC"}
20410
20411 # If no C compiler flags were specified, use CFLAGS.
20412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20413
20414 # Allow CC to be a program name with arguments.
20415 compiler=$CC
20416
20417
20418 # save warnings/boilerplate of simple test code
20419 ac_outfile=conftest.$ac_objext
20420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20422 _lt_compiler_boilerplate=`cat conftest.err`
20423 $RM conftest*
20424
20425 ac_outfile=conftest.$ac_objext
20426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20428 _lt_linker_boilerplate=`cat conftest.err`
20429 $RM -r conftest*
20430
20431
20432 # Allow CC to be a program name with arguments.
20433 lt_save_CC=$CC
20434 lt_save_LD=$LD
20435 lt_save_GCC=$GCC
20436 GCC=$GXX
20437 lt_save_with_gnu_ld=$with_gnu_ld
20438 lt_save_path_LD=$lt_cv_path_LD
20439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20440 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20441 else
20442 $as_unset lt_cv_prog_gnu_ld
20443 fi
20444 if test -n "${lt_cv_path_LDCXX+set}"; then
20445 lt_cv_path_LD=$lt_cv_path_LDCXX
20446 else
20447 $as_unset lt_cv_path_LD
20448 fi
20449 test -z "${LDCXX+set}" || LD=$LDCXX
20450 CC=${CXX-"c++"}
20451 compiler=$CC
20452 compiler_CXX=$CC
20453 for cc_temp in $compiler""; do
20454 case $cc_temp in
20455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20457 \-*) ;;
20458 *) break;;
20459 esac
20460 done
20461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20462
20463
20464 if test -n "$compiler"; then
20465 # We don't want -fno-exception when compiling C++ code, so set the
20466 # no_builtin_flag separately
20467 if test "$GXX" = yes; then
20468 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20469 else
20470 lt_prog_compiler_no_builtin_flag_CXX=
20471 fi
20472
20473 if test "$GXX" = yes; then
20474 # Set up default GNU C++ configuration
20475
20476
20477
20478 # Check whether --with-gnu-ld was given.
20479 if test "${with_gnu_ld+set}" = set; then :
20480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20481 else
20482 with_gnu_ld=no
20483 fi
20484
20485 ac_prog=ld
20486 if test "$GCC" = yes; then
20487 # Check if gcc -print-prog-name=ld gives a path.
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20489 $as_echo_n "checking for ld used by $CC... " >&6; }
20490 case $host in
20491 *-*-mingw*)
20492 # gcc leaves a trailing carriage return which upsets mingw
20493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20494 *)
20495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20496 esac
20497 case $ac_prog in
20498 # Accept absolute paths.
20499 [\\/]* | ?:[\\/]*)
20500 re_direlt='/[^/][^/]*/\.\./'
20501 # Canonicalize the pathname of ld
20502 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20503 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20504 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20505 done
20506 test -z "$LD" && LD="$ac_prog"
20507 ;;
20508 "")
20509 # If it fails, then pretend we aren't using GCC.
20510 ac_prog=ld
20511 ;;
20512 *)
20513 # If it is relative, then search for the first ld in PATH.
20514 with_gnu_ld=unknown
20515 ;;
20516 esac
20517 elif test "$with_gnu_ld" = yes; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20519 $as_echo_n "checking for GNU ld... " >&6; }
20520 else
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20522 $as_echo_n "checking for non-GNU ld... " >&6; }
20523 fi
20524 if ${lt_cv_path_LD+:} false; then :
20525 $as_echo_n "(cached) " >&6
20526 else
20527 if test -z "$LD"; then
20528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20529 for ac_dir in $PATH; do
20530 IFS="$lt_save_ifs"
20531 test -z "$ac_dir" && ac_dir=.
20532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20533 lt_cv_path_LD="$ac_dir/$ac_prog"
20534 # Check to see if the program is GNU ld. I'd rather use --version,
20535 # but apparently some variants of GNU ld only accept -v.
20536 # Break only if it was the GNU/non-GNU ld that we prefer.
20537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20538 *GNU* | *'with BFD'*)
20539 test "$with_gnu_ld" != no && break
20540 ;;
20541 *)
20542 test "$with_gnu_ld" != yes && break
20543 ;;
20544 esac
20545 fi
20546 done
20547 IFS="$lt_save_ifs"
20548 else
20549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20550 fi
20551 fi
20552
20553 LD="$lt_cv_path_LD"
20554 if test -n "$LD"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20556 $as_echo "$LD" >&6; }
20557 else
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20560 fi
20561 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20564 if ${lt_cv_prog_gnu_ld+:} false; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20568 case `$LD -v 2>&1 </dev/null` in
20569 *GNU* | *'with BFD'*)
20570 lt_cv_prog_gnu_ld=yes
20571 ;;
20572 *)
20573 lt_cv_prog_gnu_ld=no
20574 ;;
20575 esac
20576 fi
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20579 with_gnu_ld=$lt_cv_prog_gnu_ld
20580
20581
20582
20583
20584
20585
20586
20587 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20588 # archiving commands below assume that GNU ld is being used.
20589 if test "$with_gnu_ld" = yes; then
20590 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591 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'
20592
20593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20595
20596 # If archive_cmds runs LD, not CC, wlarc should be empty
20597 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20598 # investigate it a little bit more. (MM)
20599 wlarc='${wl}'
20600
20601 # ancient GNU ld didn't support --whole-archive et. al.
20602 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20603 $GREP 'no-whole-archive' > /dev/null; then
20604 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20605 else
20606 whole_archive_flag_spec_CXX=
20607 fi
20608 else
20609 with_gnu_ld=no
20610 wlarc=
20611
20612 # A generic and very simple default shared library creation
20613 # command for GNU C++ for the case where it uses the native
20614 # linker, instead of GNU ld. If possible, this setting should
20615 # overridden to take advantage of the native linker features on
20616 # the platform it is being used on.
20617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20618 fi
20619
20620 # Commands to make compiler produce verbose output that lists
20621 # what "hidden" libraries, object files and flags are used when
20622 # linking a shared library.
20623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20624
20625 else
20626 GXX=no
20627 with_gnu_ld=no
20628 wlarc=
20629 fi
20630
20631 # PORTME: fill in a description of your system's C++ link characteristics
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20634 ld_shlibs_CXX=yes
20635 case $host_os in
20636 aix3*)
20637 # FIXME: insert proper C++ library support
20638 ld_shlibs_CXX=no
20639 ;;
20640 aix[4-9]*)
20641 if test "$host_cpu" = ia64; then
20642 # On IA64, the linker does run time linking by default, so we don't
20643 # have to do anything special.
20644 aix_use_runtimelinking=no
20645 exp_sym_flag='-Bexport'
20646 no_entry_flag=""
20647 else
20648 aix_use_runtimelinking=no
20649
20650 # Test if we are trying to use run time linking or normal
20651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20652 # need to do runtime linking.
20653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20654 for ld_flag in $LDFLAGS; do
20655 case $ld_flag in
20656 *-brtl*)
20657 aix_use_runtimelinking=yes
20658 break
20659 ;;
20660 esac
20661 done
20662 ;;
20663 esac
20664
20665 exp_sym_flag='-bexport'
20666 no_entry_flag='-bnoentry'
20667 fi
20668
20669 # When large executables or shared objects are built, AIX ld can
20670 # have problems creating the table of contents. If linking a library
20671 # or program results in "error TOC overflow" add -mminimal-toc to
20672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20674
20675 archive_cmds_CXX=''
20676 hardcode_direct_CXX=yes
20677 hardcode_direct_absolute_CXX=yes
20678 hardcode_libdir_separator_CXX=':'
20679 link_all_deplibs_CXX=yes
20680 file_list_spec_CXX='${wl}-f,'
20681
20682 if test "$GXX" = yes; then
20683 case $host_os in aix4.[012]|aix4.[012].*)
20684 # We only want to do this on AIX 4.2 and lower, the check
20685 # below for broken collect2 doesn't work under 4.3+
20686 collect2name=`${CC} -print-prog-name=collect2`
20687 if test -f "$collect2name" &&
20688 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20689 then
20690 # We have reworked collect2
20691 :
20692 else
20693 # We have old collect2
20694 hardcode_direct_CXX=unsupported
20695 # It fails to find uninstalled libraries when the uninstalled
20696 # path is not listed in the libpath. Setting hardcode_minus_L
20697 # to unsupported forces relinking
20698 hardcode_minus_L_CXX=yes
20699 hardcode_libdir_flag_spec_CXX='-L$libdir'
20700 hardcode_libdir_separator_CXX=
20701 fi
20702 esac
20703 shared_flag='-shared'
20704 if test "$aix_use_runtimelinking" = yes; then
20705 shared_flag="$shared_flag "'${wl}-G'
20706 fi
20707 else
20708 # not using gcc
20709 if test "$host_cpu" = ia64; then
20710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20711 # chokes on -Wl,-G. The following line is correct:
20712 shared_flag='-G'
20713 else
20714 if test "$aix_use_runtimelinking" = yes; then
20715 shared_flag='${wl}-G'
20716 else
20717 shared_flag='${wl}-bM:SRE'
20718 fi
20719 fi
20720 fi
20721
20722 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20723 # It seems that -bexpall does not export symbols beginning with
20724 # underscore (_), so it is better to generate a list of symbols to
20725 # export.
20726 always_export_symbols_CXX=yes
20727 if test "$aix_use_runtimelinking" = yes; then
20728 # Warning - without using the other runtime loading flags (-brtl),
20729 # -berok will link without error, but may produce a broken library.
20730 allow_undefined_flag_CXX='-berok'
20731 # Determine the default libpath from the value encoded in an empty
20732 # executable.
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20735
20736 int
20737 main ()
20738 {
20739
20740 ;
20741 return 0;
20742 }
20743 _ACEOF
20744 if ac_fn_cxx_try_link "$LINENO"; then :
20745
20746 lt_aix_libpath_sed='
20747 /Import File Strings/,/^$/ {
20748 /^0/ {
20749 s/^0 *\(.*\)$/\1/
20750 p
20751 }
20752 }'
20753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20754 # Check for a 64-bit object if we didn't find anything.
20755 if test -z "$aix_libpath"; then
20756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20757 fi
20758 fi
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20762
20763 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20764
20765 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"
20766 else
20767 if test "$host_cpu" = ia64; then
20768 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20769 allow_undefined_flag_CXX="-z nodefs"
20770 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"
20771 else
20772 # Determine the default libpath from the value encoded in an
20773 # empty executable.
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20776
20777 int
20778 main ()
20779 {
20780
20781 ;
20782 return 0;
20783 }
20784 _ACEOF
20785 if ac_fn_cxx_try_link "$LINENO"; then :
20786
20787 lt_aix_libpath_sed='
20788 /Import File Strings/,/^$/ {
20789 /^0/ {
20790 s/^0 *\(.*\)$/\1/
20791 p
20792 }
20793 }'
20794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20795 # Check for a 64-bit object if we didn't find anything.
20796 if test -z "$aix_libpath"; then
20797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20798 fi
20799 fi
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20803
20804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20805 # Warning - without using the other run time loading flags,
20806 # -berok will link without error, but may produce a broken library.
20807 no_undefined_flag_CXX=' ${wl}-bernotok'
20808 allow_undefined_flag_CXX=' ${wl}-berok'
20809 if test "$with_gnu_ld" = yes; then
20810 # We only use this code for GNU lds that support --whole-archive.
20811 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20812 else
20813 # Exported symbols can be pulled into shared objects from archives
20814 whole_archive_flag_spec_CXX='$convenience'
20815 fi
20816 archive_cmds_need_lc_CXX=yes
20817 # This is similar to how AIX traditionally builds its shared
20818 # libraries.
20819 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'
20820 fi
20821 fi
20822 ;;
20823
20824 beos*)
20825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20826 allow_undefined_flag_CXX=unsupported
20827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20828 # support --undefined. This deserves some investigation. FIXME
20829 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20830 else
20831 ld_shlibs_CXX=no
20832 fi
20833 ;;
20834
20835 chorus*)
20836 case $cc_basename in
20837 *)
20838 # FIXME: insert proper C++ library support
20839 ld_shlibs_CXX=no
20840 ;;
20841 esac
20842 ;;
20843
20844 cygwin* | mingw* | pw32* | cegcc*)
20845 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20846 # as there is no search path for DLLs.
20847 hardcode_libdir_flag_spec_CXX='-L$libdir'
20848 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20849 allow_undefined_flag_CXX=unsupported
20850 always_export_symbols_CXX=no
20851 enable_shared_with_static_runtimes_CXX=yes
20852
20853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20854 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'
20855 # If the export-symbols file already is a .def file (1st line
20856 # is EXPORTS), use it as is; otherwise, prepend...
20857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20858 cp $export_symbols $output_objdir/$soname.def;
20859 else
20860 echo EXPORTS > $output_objdir/$soname.def;
20861 cat $export_symbols >> $output_objdir/$soname.def;
20862 fi~
20863 $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'
20864 else
20865 ld_shlibs_CXX=no
20866 fi
20867 ;;
20868 darwin* | rhapsody*)
20869
20870
20871 archive_cmds_need_lc_CXX=no
20872 hardcode_direct_CXX=no
20873 hardcode_automatic_CXX=yes
20874 hardcode_shlibpath_var_CXX=unsupported
20875 if test "$lt_cv_ld_force_load" = "yes"; then
20876 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\"`'
20877 else
20878 whole_archive_flag_spec_CXX=''
20879 fi
20880 link_all_deplibs_CXX=yes
20881 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20882 case $cc_basename in
20883 ifort*) _lt_dar_can_shared=yes ;;
20884 *) _lt_dar_can_shared=$GCC ;;
20885 esac
20886 if test "$_lt_dar_can_shared" = "yes"; then
20887 output_verbose_link_cmd=func_echo_all
20888 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20889 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20890 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20891 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}"
20892 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20893 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20894 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}"
20895 fi
20896
20897 else
20898 ld_shlibs_CXX=no
20899 fi
20900
20901 ;;
20902
20903 dgux*)
20904 case $cc_basename in
20905 ec++*)
20906 # FIXME: insert proper C++ library support
20907 ld_shlibs_CXX=no
20908 ;;
20909 ghcx*)
20910 # Green Hills C++ Compiler
20911 # FIXME: insert proper C++ library support
20912 ld_shlibs_CXX=no
20913 ;;
20914 *)
20915 # FIXME: insert proper C++ library support
20916 ld_shlibs_CXX=no
20917 ;;
20918 esac
20919 ;;
20920
20921 freebsd2.*)
20922 # C++ shared libraries reported to be fairly broken before
20923 # switch to ELF
20924 ld_shlibs_CXX=no
20925 ;;
20926
20927 freebsd-elf*)
20928 archive_cmds_need_lc_CXX=no
20929 ;;
20930
20931 freebsd* | dragonfly*)
20932 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20933 # conventions
20934 ld_shlibs_CXX=yes
20935 ;;
20936
20937 gnu*)
20938 ;;
20939
20940 haiku*)
20941 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20942 link_all_deplibs_CXX=yes
20943 ;;
20944
20945 hpux9*)
20946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20947 hardcode_libdir_separator_CXX=:
20948 export_dynamic_flag_spec_CXX='${wl}-E'
20949 hardcode_direct_CXX=yes
20950 hardcode_minus_L_CXX=yes # Not in the search PATH,
20951 # but as the default
20952 # location of the library.
20953
20954 case $cc_basename in
20955 CC*)
20956 # FIXME: insert proper C++ library support
20957 ld_shlibs_CXX=no
20958 ;;
20959 aCC*)
20960 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'
20961 # Commands to make compiler produce verbose output that lists
20962 # what "hidden" libraries, object files and flags are used when
20963 # linking a shared library.
20964 #
20965 # There doesn't appear to be a way to prevent this compiler from
20966 # explicitly linking system object files so we need to strip them
20967 # from the output so that they don't get included in the library
20968 # dependencies.
20969 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"'
20970 ;;
20971 *)
20972 if test "$GXX" = yes; then
20973 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'
20974 else
20975 # FIXME: insert proper C++ library support
20976 ld_shlibs_CXX=no
20977 fi
20978 ;;
20979 esac
20980 ;;
20981
20982 hpux10*|hpux11*)
20983 if test $with_gnu_ld = no; then
20984 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20985 hardcode_libdir_separator_CXX=:
20986
20987 case $host_cpu in
20988 hppa*64*|ia64*)
20989 ;;
20990 *)
20991 export_dynamic_flag_spec_CXX='${wl}-E'
20992 ;;
20993 esac
20994 fi
20995 case $host_cpu in
20996 hppa*64*|ia64*)
20997 hardcode_direct_CXX=no
20998 hardcode_shlibpath_var_CXX=no
20999 ;;
21000 *)
21001 hardcode_direct_CXX=yes
21002 hardcode_direct_absolute_CXX=yes
21003 hardcode_minus_L_CXX=yes # Not in the search PATH,
21004 # but as the default
21005 # location of the library.
21006 ;;
21007 esac
21008
21009 case $cc_basename in
21010 CC*)
21011 # FIXME: insert proper C++ library support
21012 ld_shlibs_CXX=no
21013 ;;
21014 aCC*)
21015 case $host_cpu in
21016 hppa*64*)
21017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21018 ;;
21019 ia64*)
21020 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21021 ;;
21022 *)
21023 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21024 ;;
21025 esac
21026 # Commands to make compiler produce verbose output that lists
21027 # what "hidden" libraries, object files and flags are used when
21028 # linking a shared library.
21029 #
21030 # There doesn't appear to be a way to prevent this compiler from
21031 # explicitly linking system object files so we need to strip them
21032 # from the output so that they don't get included in the library
21033 # dependencies.
21034 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"'
21035 ;;
21036 *)
21037 if test "$GXX" = yes; then
21038 if test $with_gnu_ld = no; then
21039 case $host_cpu in
21040 hppa*64*)
21041 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21042 ;;
21043 ia64*)
21044 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21045 ;;
21046 *)
21047 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'
21048 ;;
21049 esac
21050 fi
21051 else
21052 # FIXME: insert proper C++ library support
21053 ld_shlibs_CXX=no
21054 fi
21055 ;;
21056 esac
21057 ;;
21058
21059 interix[3-9]*)
21060 hardcode_direct_CXX=no
21061 hardcode_shlibpath_var_CXX=no
21062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21063 export_dynamic_flag_spec_CXX='${wl}-E'
21064 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21065 # Instead, shared libraries are loaded at an image base (0x10000000 by
21066 # default) and relocated if they conflict, which is a slow very memory
21067 # consuming and fragmenting process. To avoid this, we pick a random,
21068 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21069 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21070 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'
21071 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'
21072 ;;
21073 irix5* | irix6*)
21074 case $cc_basename in
21075 CC*)
21076 # SGI C++
21077 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'
21078
21079 # Archives containing C++ object files must be created using
21080 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21081 # necessary to make sure instantiated templates are included
21082 # in the archive.
21083 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21084 ;;
21085 *)
21086 if test "$GXX" = yes; then
21087 if test "$with_gnu_ld" = no; then
21088 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'
21089 else
21090 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'
21091 fi
21092 fi
21093 link_all_deplibs_CXX=yes
21094 ;;
21095 esac
21096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21097 hardcode_libdir_separator_CXX=:
21098 inherit_rpath_CXX=yes
21099 ;;
21100
21101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21102 case $cc_basename in
21103 KCC*)
21104 # Kuck and Associates, Inc. (KAI) C++ Compiler
21105
21106 # KCC will only create a shared library if the output file
21107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21108 # to its proper name (with version) after linking.
21109 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'
21110 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'
21111 # Commands to make compiler produce verbose output that lists
21112 # what "hidden" libraries, object files and flags are used when
21113 # linking a shared library.
21114 #
21115 # There doesn't appear to be a way to prevent this compiler from
21116 # explicitly linking system object files so we need to strip them
21117 # from the output so that they don't get included in the library
21118 # dependencies.
21119 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"'
21120
21121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21123
21124 # Archives containing C++ object files must be created using
21125 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21126 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21127 ;;
21128 icpc* | ecpc* )
21129 # Intel C++
21130 with_gnu_ld=yes
21131 # version 8.0 and above of icpc choke on multiply defined symbols
21132 # if we add $predep_objects and $postdep_objects, however 7.1 and
21133 # earlier do not add the objects themselves.
21134 case `$CC -V 2>&1` in
21135 *"Version 7."*)
21136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21137 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'
21138 ;;
21139 *) # Version 8.0 or newer
21140 tmp_idyn=
21141 case $host_cpu in
21142 ia64*) tmp_idyn=' -i_dynamic';;
21143 esac
21144 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21145 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'
21146 ;;
21147 esac
21148 archive_cmds_need_lc_CXX=no
21149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21152 ;;
21153 pgCC* | pgcpp*)
21154 # Portland Group C++ compiler
21155 case `$CC -V` in
21156 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21157 prelink_cmds_CXX='tpldir=Template.dir~
21158 rm -rf $tpldir~
21159 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21160 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21161 old_archive_cmds_CXX='tpldir=Template.dir~
21162 rm -rf $tpldir~
21163 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21164 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21165 $RANLIB $oldlib'
21166 archive_cmds_CXX='tpldir=Template.dir~
21167 rm -rf $tpldir~
21168 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21169 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21170 archive_expsym_cmds_CXX='tpldir=Template.dir~
21171 rm -rf $tpldir~
21172 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21173 $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'
21174 ;;
21175 *) # Version 6 and above use weak symbols
21176 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21177 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'
21178 ;;
21179 esac
21180
21181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21183 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'
21184 ;;
21185 cxx*)
21186 # Compaq C++
21187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21188 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'
21189
21190 runpath_var=LD_RUN_PATH
21191 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21192 hardcode_libdir_separator_CXX=:
21193
21194 # Commands to make compiler produce verbose output that lists
21195 # what "hidden" libraries, object files and flags are used when
21196 # linking a shared library.
21197 #
21198 # There doesn't appear to be a way to prevent this compiler from
21199 # explicitly linking system object files so we need to strip them
21200 # from the output so that they don't get included in the library
21201 # dependencies.
21202 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'
21203 ;;
21204 xl* | mpixl* | bgxl*)
21205 # IBM XL 8.0 on PPC, with GNU ld
21206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21208 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21209 if test "x$supports_anon_versioning" = xyes; then
21210 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21212 echo "local: *; };" >> $output_objdir/$libname.ver~
21213 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21214 fi
21215 ;;
21216 *)
21217 case `$CC -V 2>&1 | sed 5q` in
21218 *Sun\ C*)
21219 # Sun C++ 5.9
21220 no_undefined_flag_CXX=' -zdefs'
21221 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21222 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'
21223 hardcode_libdir_flag_spec_CXX='-R$libdir'
21224 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'
21225 compiler_needs_object_CXX=yes
21226
21227 # Not sure whether something based on
21228 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21229 # would be better.
21230 output_verbose_link_cmd='func_echo_all'
21231
21232 # Archives containing C++ object files must be created using
21233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21234 # necessary to make sure instantiated templates are included
21235 # in the archive.
21236 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21237 ;;
21238 esac
21239 ;;
21240 esac
21241 ;;
21242
21243 lynxos*)
21244 # FIXME: insert proper C++ library support
21245 ld_shlibs_CXX=no
21246 ;;
21247
21248 m88k*)
21249 # FIXME: insert proper C++ library support
21250 ld_shlibs_CXX=no
21251 ;;
21252
21253 mvs*)
21254 case $cc_basename in
21255 cxx*)
21256 # FIXME: insert proper C++ library support
21257 ld_shlibs_CXX=no
21258 ;;
21259 *)
21260 # FIXME: insert proper C++ library support
21261 ld_shlibs_CXX=no
21262 ;;
21263 esac
21264 ;;
21265
21266 netbsd*)
21267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21268 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21269 wlarc=
21270 hardcode_libdir_flag_spec_CXX='-R$libdir'
21271 hardcode_direct_CXX=yes
21272 hardcode_shlibpath_var_CXX=no
21273 fi
21274 # Workaround some broken pre-1.5 toolchains
21275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21276 ;;
21277
21278 *nto* | *qnx*)
21279 ld_shlibs_CXX=yes
21280 ;;
21281
21282 openbsd2*)
21283 # C++ shared libraries are fairly broken
21284 ld_shlibs_CXX=no
21285 ;;
21286
21287 openbsd*)
21288 if test -f /usr/libexec/ld.so; then
21289 hardcode_direct_CXX=yes
21290 hardcode_shlibpath_var_CXX=no
21291 hardcode_direct_absolute_CXX=yes
21292 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21295 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21296 export_dynamic_flag_spec_CXX='${wl}-E'
21297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21298 fi
21299 output_verbose_link_cmd=func_echo_all
21300 else
21301 ld_shlibs_CXX=no
21302 fi
21303 ;;
21304
21305 osf3* | osf4* | osf5*)
21306 case $cc_basename in
21307 KCC*)
21308 # Kuck and Associates, Inc. (KAI) C++ Compiler
21309
21310 # KCC will only create a shared library if the output file
21311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21312 # to its proper name (with version) after linking.
21313 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'
21314
21315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21316 hardcode_libdir_separator_CXX=:
21317
21318 # Archives containing C++ object files must be created using
21319 # the KAI C++ compiler.
21320 case $host in
21321 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21322 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21323 esac
21324 ;;
21325 RCC*)
21326 # Rational C++ 2.4.1
21327 # FIXME: insert proper C++ library support
21328 ld_shlibs_CXX=no
21329 ;;
21330 cxx*)
21331 case $host in
21332 osf3*)
21333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21334 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'
21335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21336 ;;
21337 *)
21338 allow_undefined_flag_CXX=' -expect_unresolved \*'
21339 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'
21340 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21341 echo "-hidden">> $lib.exp~
21342 $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~
21343 $RM $lib.exp'
21344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21345 ;;
21346 esac
21347
21348 hardcode_libdir_separator_CXX=:
21349
21350 # Commands to make compiler produce verbose output that lists
21351 # what "hidden" libraries, object files and flags are used when
21352 # linking a shared library.
21353 #
21354 # There doesn't appear to be a way to prevent this compiler from
21355 # explicitly linking system object files so we need to strip them
21356 # from the output so that they don't get included in the library
21357 # dependencies.
21358 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"'
21359 ;;
21360 *)
21361 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21363 case $host in
21364 osf3*)
21365 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'
21366 ;;
21367 *)
21368 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'
21369 ;;
21370 esac
21371
21372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21373 hardcode_libdir_separator_CXX=:
21374
21375 # Commands to make compiler produce verbose output that lists
21376 # what "hidden" libraries, object files and flags are used when
21377 # linking a shared library.
21378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21379
21380 else
21381 # FIXME: insert proper C++ library support
21382 ld_shlibs_CXX=no
21383 fi
21384 ;;
21385 esac
21386 ;;
21387
21388 psos*)
21389 # FIXME: insert proper C++ library support
21390 ld_shlibs_CXX=no
21391 ;;
21392
21393 sunos4*)
21394 case $cc_basename in
21395 CC*)
21396 # Sun C++ 4.x
21397 # FIXME: insert proper C++ library support
21398 ld_shlibs_CXX=no
21399 ;;
21400 lcc*)
21401 # Lucid
21402 # FIXME: insert proper C++ library support
21403 ld_shlibs_CXX=no
21404 ;;
21405 *)
21406 # FIXME: insert proper C++ library support
21407 ld_shlibs_CXX=no
21408 ;;
21409 esac
21410 ;;
21411
21412 solaris*)
21413 case $cc_basename in
21414 CC*)
21415 # Sun C++ 4.2, 5.x and Centerline C++
21416 archive_cmds_need_lc_CXX=yes
21417 no_undefined_flag_CXX=' -zdefs'
21418 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21419 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21420 $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'
21421
21422 hardcode_libdir_flag_spec_CXX='-R$libdir'
21423 hardcode_shlibpath_var_CXX=no
21424 case $host_os in
21425 solaris2.[0-5] | solaris2.[0-5].*) ;;
21426 *)
21427 # The compiler driver will combine and reorder linker options,
21428 # but understands `-z linker_flag'.
21429 # Supported since Solaris 2.6 (maybe 2.5.1?)
21430 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21431 ;;
21432 esac
21433 link_all_deplibs_CXX=yes
21434
21435 output_verbose_link_cmd='func_echo_all'
21436
21437 # Archives containing C++ object files must be created using
21438 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21439 # necessary to make sure instantiated templates are included
21440 # in the archive.
21441 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21442 ;;
21443 gcx*)
21444 # Green Hills C++ Compiler
21445 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21446
21447 # The C++ compiler must be used to create the archive.
21448 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21449 ;;
21450 *)
21451 # GNU C++ compiler with Solaris linker
21452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21453 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21454 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21455 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21456 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21457 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21458
21459 # Commands to make compiler produce verbose output that lists
21460 # what "hidden" libraries, object files and flags are used when
21461 # linking a shared library.
21462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21463 else
21464 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21465 # platform.
21466 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21467 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21468 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21469
21470 # Commands to make compiler produce verbose output that lists
21471 # what "hidden" libraries, object files and flags are used when
21472 # linking a shared library.
21473 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21474 fi
21475
21476 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21477 case $host_os in
21478 solaris2.[0-5] | solaris2.[0-5].*) ;;
21479 *)
21480 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21481 ;;
21482 esac
21483 fi
21484 ;;
21485 esac
21486 ;;
21487
21488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21489 no_undefined_flag_CXX='${wl}-z,text'
21490 archive_cmds_need_lc_CXX=no
21491 hardcode_shlibpath_var_CXX=no
21492 runpath_var='LD_RUN_PATH'
21493
21494 case $cc_basename in
21495 CC*)
21496 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21497 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21498 ;;
21499 *)
21500 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21501 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21502 ;;
21503 esac
21504 ;;
21505
21506 sysv5* | sco3.2v5* | sco5v6*)
21507 # Note: We can NOT use -z defs as we might desire, because we do not
21508 # link with -lc, and that would cause any symbols used from libc to
21509 # always be unresolved, which means just about no library would
21510 # ever link correctly. If we're not using GNU ld we use -z text
21511 # though, which does catch some bad symbols but isn't as heavy-handed
21512 # as -z defs.
21513 no_undefined_flag_CXX='${wl}-z,text'
21514 allow_undefined_flag_CXX='${wl}-z,nodefs'
21515 archive_cmds_need_lc_CXX=no
21516 hardcode_shlibpath_var_CXX=no
21517 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21518 hardcode_libdir_separator_CXX=':'
21519 link_all_deplibs_CXX=yes
21520 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21521 runpath_var='LD_RUN_PATH'
21522
21523 case $cc_basename in
21524 CC*)
21525 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21526 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21527 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21528 '"$old_archive_cmds_CXX"
21529 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21530 '"$reload_cmds_CXX"
21531 ;;
21532 *)
21533 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21534 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21535 ;;
21536 esac
21537 ;;
21538
21539 tandem*)
21540 case $cc_basename in
21541 NCC*)
21542 # NonStop-UX NCC 3.20
21543 # FIXME: insert proper C++ library support
21544 ld_shlibs_CXX=no
21545 ;;
21546 *)
21547 # FIXME: insert proper C++ library support
21548 ld_shlibs_CXX=no
21549 ;;
21550 esac
21551 ;;
21552
21553 vxworks*)
21554 # For VxWorks ports, we assume the use of a GNU linker with
21555 # standard elf conventions.
21556 ld_shlibs_CXX=yes
21557 ;;
21558
21559 *)
21560 # FIXME: insert proper C++ library support
21561 ld_shlibs_CXX=no
21562 ;;
21563 esac
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21566 $as_echo "$ld_shlibs_CXX" >&6; }
21567 test "$ld_shlibs_CXX" = no && can_build_shared=no
21568
21569 GCC_CXX="$GXX"
21570 LD_CXX="$LD"
21571
21572 ## CAVEAT EMPTOR:
21573 ## There is no encapsulation within the following macros, do not change
21574 ## the running order or otherwise move them around unless you know exactly
21575 ## what you are doing...
21576 # Dependencies to place before and after the object being linked:
21577 predep_objects_CXX=
21578 postdep_objects_CXX=
21579 predeps_CXX=
21580 postdeps_CXX=
21581 compiler_lib_search_path_CXX=
21582
21583 cat > conftest.$ac_ext <<_LT_EOF
21584 class Foo
21585 {
21586 public:
21587 Foo (void) { a = 0; }
21588 private:
21589 int a;
21590 };
21591 _LT_EOF
21592
21593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21594 (eval $ac_compile) 2>&5
21595 ac_status=$?
21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597 test $ac_status = 0; }; then
21598 # Parse the compiler output and extract the necessary
21599 # objects, libraries and library flags.
21600
21601 # Sentinel used to keep track of whether or not we are before
21602 # the conftest object file.
21603 pre_test_object_deps_done=no
21604
21605 for p in `eval "$output_verbose_link_cmd"`; do
21606 case $p in
21607
21608 -L* | -R* | -l*)
21609 # Some compilers place space between "-{L,R}" and the path.
21610 # Remove the space.
21611 if test $p = "-L" ||
21612 test $p = "-R"; then
21613 prev=$p
21614 continue
21615 else
21616 prev=
21617 fi
21618
21619 if test "$pre_test_object_deps_done" = no; then
21620 case $p in
21621 -L* | -R*)
21622 # Internal compiler library paths should come after those
21623 # provided the user. The postdeps already come after the
21624 # user supplied libs so there is no need to process them.
21625 if test -z "$compiler_lib_search_path_CXX"; then
21626 compiler_lib_search_path_CXX="${prev}${p}"
21627 else
21628 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21629 fi
21630 ;;
21631 # The "-l" case would never come before the object being
21632 # linked, so don't bother handling this case.
21633 esac
21634 else
21635 if test -z "$postdeps_CXX"; then
21636 postdeps_CXX="${prev}${p}"
21637 else
21638 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21639 fi
21640 fi
21641 ;;
21642
21643 *.$objext)
21644 # This assumes that the test object file only shows up
21645 # once in the compiler output.
21646 if test "$p" = "conftest.$objext"; then
21647 pre_test_object_deps_done=yes
21648 continue
21649 fi
21650
21651 if test "$pre_test_object_deps_done" = no; then
21652 if test -z "$predep_objects_CXX"; then
21653 predep_objects_CXX="$p"
21654 else
21655 predep_objects_CXX="$predep_objects_CXX $p"
21656 fi
21657 else
21658 if test -z "$postdep_objects_CXX"; then
21659 postdep_objects_CXX="$p"
21660 else
21661 postdep_objects_CXX="$postdep_objects_CXX $p"
21662 fi
21663 fi
21664 ;;
21665
21666 *) ;; # Ignore the rest.
21667
21668 esac
21669 done
21670
21671 # Clean up.
21672 rm -f a.out a.exe
21673 else
21674 echo "libtool.m4: error: problem compiling CXX test program"
21675 fi
21676
21677 $RM -f confest.$objext
21678
21679 # PORTME: override above test on systems where it is broken
21680 case $host_os in
21681 interix[3-9]*)
21682 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21683 # hack all around it, let's just trust "g++" to DTRT.
21684 predep_objects_CXX=
21685 postdep_objects_CXX=
21686 postdeps_CXX=
21687 ;;
21688
21689 linux*)
21690 case `$CC -V 2>&1 | sed 5q` in
21691 *Sun\ C*)
21692 # Sun C++ 5.9
21693
21694 # The more standards-conforming stlport4 library is
21695 # incompatible with the Cstd library. Avoid specifying
21696 # it if it's in CXXFLAGS. Ignore libCrun as
21697 # -library=stlport4 depends on it.
21698 case " $CXX $CXXFLAGS " in
21699 *" -library=stlport4 "*)
21700 solaris_use_stlport4=yes
21701 ;;
21702 esac
21703
21704 if test "$solaris_use_stlport4" != yes; then
21705 postdeps_CXX='-library=Cstd -library=Crun'
21706 fi
21707 ;;
21708 esac
21709 ;;
21710
21711 solaris*)
21712 case $cc_basename in
21713 CC*)
21714 # The more standards-conforming stlport4 library is
21715 # incompatible with the Cstd library. Avoid specifying
21716 # it if it's in CXXFLAGS. Ignore libCrun as
21717 # -library=stlport4 depends on it.
21718 case " $CXX $CXXFLAGS " in
21719 *" -library=stlport4 "*)
21720 solaris_use_stlport4=yes
21721 ;;
21722 esac
21723
21724 # Adding this requires a known-good setup of shared libraries for
21725 # Sun compiler versions before 5.6, else PIC objects from an old
21726 # archive will be linked into the output, leading to subtle bugs.
21727 if test "$solaris_use_stlport4" != yes; then
21728 postdeps_CXX='-library=Cstd -library=Crun'
21729 fi
21730 ;;
21731 esac
21732 ;;
21733 esac
21734
21735
21736 case " $postdeps_CXX " in
21737 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21738 esac
21739 compiler_lib_search_dirs_CXX=
21740 if test -n "${compiler_lib_search_path_CXX}"; then
21741 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21742 fi
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774 lt_prog_compiler_wl_CXX=
21775 lt_prog_compiler_pic_CXX=
21776 lt_prog_compiler_static_CXX=
21777
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21779 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21780
21781 # C++ specific cases for pic, static, wl, etc.
21782 if test "$GXX" = yes; then
21783 lt_prog_compiler_wl_CXX='-Wl,'
21784 lt_prog_compiler_static_CXX='-static'
21785
21786 case $host_os in
21787 aix*)
21788 # All AIX code is PIC.
21789 if test "$host_cpu" = ia64; then
21790 # AIX 5 now supports IA64 processor
21791 lt_prog_compiler_static_CXX='-Bstatic'
21792 fi
21793 lt_prog_compiler_pic_CXX='-fPIC'
21794 ;;
21795
21796 amigaos*)
21797 case $host_cpu in
21798 powerpc)
21799 # see comment about AmigaOS4 .so support
21800 lt_prog_compiler_pic_CXX='-fPIC'
21801 ;;
21802 m68k)
21803 # FIXME: we need at least 68020 code to build shared libraries, but
21804 # adding the `-m68020' flag to GCC prevents building anything better,
21805 # like `-m68040'.
21806 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21807 ;;
21808 esac
21809 ;;
21810
21811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21812 # PIC is the default for these OSes.
21813 ;;
21814 mingw* | cygwin* | os2* | pw32* | cegcc*)
21815 # This hack is so that the source file can tell whether it is being
21816 # built for inclusion in a dll (and should export symbols for example).
21817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21818 # (--disable-auto-import) libraries
21819 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21820 ;;
21821 darwin* | rhapsody*)
21822 # PIC is the default on this platform
21823 # Common symbols not allowed in MH_DYLIB files
21824 lt_prog_compiler_pic_CXX='-fno-common'
21825 ;;
21826 *djgpp*)
21827 # DJGPP does not support shared libraries at all
21828 lt_prog_compiler_pic_CXX=
21829 ;;
21830 haiku*)
21831 # PIC is the default for Haiku.
21832 # The "-static" flag exists, but is broken.
21833 lt_prog_compiler_static_CXX=
21834 ;;
21835 interix[3-9]*)
21836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21837 # Instead, we relocate shared libraries at runtime.
21838 ;;
21839 sysv4*MP*)
21840 if test -d /usr/nec; then
21841 lt_prog_compiler_pic_CXX=-Kconform_pic
21842 fi
21843 ;;
21844 hpux*)
21845 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21846 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21847 # sets the default TLS model and affects inlining.
21848 case $host_cpu in
21849 hppa*64*)
21850 ;;
21851 *)
21852 lt_prog_compiler_pic_CXX='-fPIC'
21853 ;;
21854 esac
21855 ;;
21856 *qnx* | *nto*)
21857 # QNX uses GNU C++, but need to define -shared option too, otherwise
21858 # it will coredump.
21859 lt_prog_compiler_pic_CXX='-fPIC -shared'
21860 ;;
21861 *)
21862 lt_prog_compiler_pic_CXX='-fPIC'
21863 ;;
21864 esac
21865 else
21866 case $host_os in
21867 aix[4-9]*)
21868 # All AIX code is PIC.
21869 if test "$host_cpu" = ia64; then
21870 # AIX 5 now supports IA64 processor
21871 lt_prog_compiler_static_CXX='-Bstatic'
21872 else
21873 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21874 fi
21875 ;;
21876 chorus*)
21877 case $cc_basename in
21878 cxch68*)
21879 # Green Hills C++ Compiler
21880 # _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"
21881 ;;
21882 esac
21883 ;;
21884 dgux*)
21885 case $cc_basename in
21886 ec++*)
21887 lt_prog_compiler_pic_CXX='-KPIC'
21888 ;;
21889 ghcx*)
21890 # Green Hills C++ Compiler
21891 lt_prog_compiler_pic_CXX='-pic'
21892 ;;
21893 *)
21894 ;;
21895 esac
21896 ;;
21897 freebsd* | dragonfly*)
21898 # FreeBSD uses GNU C++
21899 ;;
21900 hpux9* | hpux10* | hpux11*)
21901 case $cc_basename in
21902 CC*)
21903 lt_prog_compiler_wl_CXX='-Wl,'
21904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21905 if test "$host_cpu" != ia64; then
21906 lt_prog_compiler_pic_CXX='+Z'
21907 fi
21908 ;;
21909 aCC*)
21910 lt_prog_compiler_wl_CXX='-Wl,'
21911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21912 case $host_cpu in
21913 hppa*64*|ia64*)
21914 # +Z the default
21915 ;;
21916 *)
21917 lt_prog_compiler_pic_CXX='+Z'
21918 ;;
21919 esac
21920 ;;
21921 *)
21922 ;;
21923 esac
21924 ;;
21925 interix*)
21926 # This is c89, which is MS Visual C++ (no shared libs)
21927 # Anyone wants to do a port?
21928 ;;
21929 irix5* | irix6* | nonstopux*)
21930 case $cc_basename in
21931 CC*)
21932 lt_prog_compiler_wl_CXX='-Wl,'
21933 lt_prog_compiler_static_CXX='-non_shared'
21934 # CC pic flag -KPIC is the default.
21935 ;;
21936 *)
21937 ;;
21938 esac
21939 ;;
21940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21941 case $cc_basename in
21942 KCC*)
21943 # KAI C++ Compiler
21944 lt_prog_compiler_wl_CXX='--backend -Wl,'
21945 lt_prog_compiler_pic_CXX='-fPIC'
21946 ;;
21947 ecpc* )
21948 # old Intel C++ for x86_64 which still supported -KPIC.
21949 lt_prog_compiler_wl_CXX='-Wl,'
21950 lt_prog_compiler_pic_CXX='-KPIC'
21951 lt_prog_compiler_static_CXX='-static'
21952 ;;
21953 icpc* )
21954 # Intel C++, used to be incompatible with GCC.
21955 # ICC 10 doesn't accept -KPIC any more.
21956 lt_prog_compiler_wl_CXX='-Wl,'
21957 lt_prog_compiler_pic_CXX='-fPIC'
21958 lt_prog_compiler_static_CXX='-static'
21959 ;;
21960 pgCC* | pgcpp*)
21961 # Portland Group C++ compiler
21962 lt_prog_compiler_wl_CXX='-Wl,'
21963 lt_prog_compiler_pic_CXX='-fpic'
21964 lt_prog_compiler_static_CXX='-Bstatic'
21965 ;;
21966 cxx*)
21967 # Compaq C++
21968 # Make sure the PIC flag is empty. It appears that all Alpha
21969 # Linux and Compaq Tru64 Unix objects are PIC.
21970 lt_prog_compiler_pic_CXX=
21971 lt_prog_compiler_static_CXX='-non_shared'
21972 ;;
21973 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21974 # IBM XL 8.0, 9.0 on PPC and BlueGene
21975 lt_prog_compiler_wl_CXX='-Wl,'
21976 lt_prog_compiler_pic_CXX='-qpic'
21977 lt_prog_compiler_static_CXX='-qstaticlink'
21978 ;;
21979 *)
21980 case `$CC -V 2>&1 | sed 5q` in
21981 *Sun\ C*)
21982 # Sun C++ 5.9
21983 lt_prog_compiler_pic_CXX='-KPIC'
21984 lt_prog_compiler_static_CXX='-Bstatic'
21985 lt_prog_compiler_wl_CXX='-Qoption ld '
21986 ;;
21987 esac
21988 ;;
21989 esac
21990 ;;
21991 lynxos*)
21992 ;;
21993 m88k*)
21994 ;;
21995 mvs*)
21996 case $cc_basename in
21997 cxx*)
21998 lt_prog_compiler_pic_CXX='-W c,exportall'
21999 ;;
22000 *)
22001 ;;
22002 esac
22003 ;;
22004 netbsd*)
22005 ;;
22006 *qnx* | *nto*)
22007 # QNX uses GNU C++, but need to define -shared option too, otherwise
22008 # it will coredump.
22009 lt_prog_compiler_pic_CXX='-fPIC -shared'
22010 ;;
22011 osf3* | osf4* | osf5*)
22012 case $cc_basename in
22013 KCC*)
22014 lt_prog_compiler_wl_CXX='--backend -Wl,'
22015 ;;
22016 RCC*)
22017 # Rational C++ 2.4.1
22018 lt_prog_compiler_pic_CXX='-pic'
22019 ;;
22020 cxx*)
22021 # Digital/Compaq C++
22022 lt_prog_compiler_wl_CXX='-Wl,'
22023 # Make sure the PIC flag is empty. It appears that all Alpha
22024 # Linux and Compaq Tru64 Unix objects are PIC.
22025 lt_prog_compiler_pic_CXX=
22026 lt_prog_compiler_static_CXX='-non_shared'
22027 ;;
22028 *)
22029 ;;
22030 esac
22031 ;;
22032 psos*)
22033 ;;
22034 solaris*)
22035 case $cc_basename in
22036 CC*)
22037 # Sun C++ 4.2, 5.x and Centerline C++
22038 lt_prog_compiler_pic_CXX='-KPIC'
22039 lt_prog_compiler_static_CXX='-Bstatic'
22040 lt_prog_compiler_wl_CXX='-Qoption ld '
22041 ;;
22042 gcx*)
22043 # Green Hills C++ Compiler
22044 lt_prog_compiler_pic_CXX='-PIC'
22045 ;;
22046 *)
22047 ;;
22048 esac
22049 ;;
22050 sunos4*)
22051 case $cc_basename in
22052 CC*)
22053 # Sun C++ 4.x
22054 lt_prog_compiler_pic_CXX='-pic'
22055 lt_prog_compiler_static_CXX='-Bstatic'
22056 ;;
22057 lcc*)
22058 # Lucid
22059 lt_prog_compiler_pic_CXX='-pic'
22060 ;;
22061 *)
22062 ;;
22063 esac
22064 ;;
22065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22066 case $cc_basename in
22067 CC*)
22068 lt_prog_compiler_wl_CXX='-Wl,'
22069 lt_prog_compiler_pic_CXX='-KPIC'
22070 lt_prog_compiler_static_CXX='-Bstatic'
22071 ;;
22072 esac
22073 ;;
22074 tandem*)
22075 case $cc_basename in
22076 NCC*)
22077 # NonStop-UX NCC 3.20
22078 lt_prog_compiler_pic_CXX='-KPIC'
22079 ;;
22080 *)
22081 ;;
22082 esac
22083 ;;
22084 vxworks*)
22085 ;;
22086 *)
22087 lt_prog_compiler_can_build_shared_CXX=no
22088 ;;
22089 esac
22090 fi
22091
22092 case $host_os in
22093 # For platforms which do not support PIC, -DPIC is meaningless:
22094 *djgpp*)
22095 lt_prog_compiler_pic_CXX=
22096 ;;
22097 *)
22098 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22099 ;;
22100 esac
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22102 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22103
22104
22105
22106 #
22107 # Check to make sure the PIC flag actually works.
22108 #
22109 if test -n "$lt_prog_compiler_pic_CXX"; then
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22112 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 lt_cv_prog_compiler_pic_works_CXX=no
22116 ac_outfile=conftest.$ac_objext
22117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22118 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22119 # Insert the option either (1) after the last *FLAGS variable, or
22120 # (2) before a word containing "conftest.", or (3) at the end.
22121 # Note that $ac_compile itself does not contain backslashes and begins
22122 # with a dollar sign (not a hyphen), so the echo should work correctly.
22123 # The option is referenced via a variable to avoid confusing sed.
22124 lt_compile=`echo "$ac_compile" | $SED \
22125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22127 -e 's:$: $lt_compiler_flag:'`
22128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22129 (eval "$lt_compile" 2>conftest.err)
22130 ac_status=$?
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 if (exit $ac_status) && test -s "$ac_outfile"; then
22134 # The compiler can only warn and ignore the option if not recognized
22135 # So say no if there are warnings other than the usual output.
22136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22139 lt_cv_prog_compiler_pic_works_CXX=yes
22140 fi
22141 fi
22142 $RM conftest*
22143
22144 fi
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22146 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22147
22148 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22149 case $lt_prog_compiler_pic_CXX in
22150 "" | " "*) ;;
22151 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22152 esac
22153 else
22154 lt_prog_compiler_pic_CXX=
22155 lt_prog_compiler_can_build_shared_CXX=no
22156 fi
22157
22158 fi
22159
22160
22161
22162 #
22163 # Check to make sure the static flag actually works.
22164 #
22165 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22168 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22169 $as_echo_n "(cached) " >&6
22170 else
22171 lt_cv_prog_compiler_static_works_CXX=no
22172 save_LDFLAGS="$LDFLAGS"
22173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22176 # The linker can only warn and ignore the option if not recognized
22177 # So say no if there are warnings
22178 if test -s conftest.err; then
22179 # Append any errors to the config.log.
22180 cat conftest.err 1>&5
22181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22183 if diff conftest.exp conftest.er2 >/dev/null; then
22184 lt_cv_prog_compiler_static_works_CXX=yes
22185 fi
22186 else
22187 lt_cv_prog_compiler_static_works_CXX=yes
22188 fi
22189 fi
22190 $RM -r conftest*
22191 LDFLAGS="$save_LDFLAGS"
22192
22193 fi
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22195 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22196
22197 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22198 :
22199 else
22200 lt_prog_compiler_static_CXX=
22201 fi
22202
22203
22204
22205
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22208 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 lt_cv_prog_compiler_c_o_CXX=no
22212 $RM -r conftest 2>/dev/null
22213 mkdir conftest
22214 cd conftest
22215 mkdir out
22216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22217
22218 lt_compiler_flag="-o out/conftest2.$ac_objext"
22219 # Insert the option either (1) after the last *FLAGS variable, or
22220 # (2) before a word containing "conftest.", or (3) at the end.
22221 # Note that $ac_compile itself does not contain backslashes and begins
22222 # with a dollar sign (not a hyphen), so the echo should work correctly.
22223 lt_compile=`echo "$ac_compile" | $SED \
22224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22226 -e 's:$: $lt_compiler_flag:'`
22227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22228 (eval "$lt_compile" 2>out/conftest.err)
22229 ac_status=$?
22230 cat out/conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22233 then
22234 # The compiler can only warn and ignore the option if not recognized
22235 # So say no if there are warnings
22236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22239 lt_cv_prog_compiler_c_o_CXX=yes
22240 fi
22241 fi
22242 chmod u+w . 2>&5
22243 $RM conftest*
22244 # SGI C++ compiler will create directory out/ii_files/ for
22245 # template instantiation
22246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22247 $RM out/* && rmdir out
22248 cd ..
22249 $RM -r conftest
22250 $RM conftest*
22251
22252 fi
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22255
22256
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22260 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22261 $as_echo_n "(cached) " >&6
22262 else
22263 lt_cv_prog_compiler_c_o_CXX=no
22264 $RM -r conftest 2>/dev/null
22265 mkdir conftest
22266 cd conftest
22267 mkdir out
22268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22269
22270 lt_compiler_flag="-o out/conftest2.$ac_objext"
22271 # Insert the option either (1) after the last *FLAGS variable, or
22272 # (2) before a word containing "conftest.", or (3) at the end.
22273 # Note that $ac_compile itself does not contain backslashes and begins
22274 # with a dollar sign (not a hyphen), so the echo should work correctly.
22275 lt_compile=`echo "$ac_compile" | $SED \
22276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22278 -e 's:$: $lt_compiler_flag:'`
22279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22280 (eval "$lt_compile" 2>out/conftest.err)
22281 ac_status=$?
22282 cat out/conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22285 then
22286 # The compiler can only warn and ignore the option if not recognized
22287 # So say no if there are warnings
22288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22291 lt_cv_prog_compiler_c_o_CXX=yes
22292 fi
22293 fi
22294 chmod u+w . 2>&5
22295 $RM conftest*
22296 # SGI C++ compiler will create directory out/ii_files/ for
22297 # template instantiation
22298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22299 $RM out/* && rmdir out
22300 cd ..
22301 $RM -r conftest
22302 $RM conftest*
22303
22304 fi
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22307
22308
22309
22310
22311 hard_links="nottested"
22312 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22313 # do not overwrite the value of need_locks provided by the user
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22315 $as_echo_n "checking if we can lock with hard links... " >&6; }
22316 hard_links=yes
22317 $RM conftest*
22318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22319 touch conftest.a
22320 ln conftest.a conftest.b 2>&5 || hard_links=no
22321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22323 $as_echo "$hard_links" >&6; }
22324 if test "$hard_links" = no; then
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22327 need_locks=warn
22328 fi
22329 else
22330 need_locks=no
22331 fi
22332
22333
22334
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22337
22338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22339 case $host_os in
22340 aix[4-9]*)
22341 # If we're using GNU nm, then we don't want the "-C" option.
22342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22343 # Also, AIX nm treats weak defined symbols like other global defined
22344 # symbols, whereas GNU nm marks them as "W".
22345 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22346 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'
22347 else
22348 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'
22349 fi
22350 ;;
22351 pw32*)
22352 export_symbols_cmds_CXX="$ltdll_cmds"
22353 ;;
22354 cygwin* | mingw* | cegcc*)
22355 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'
22356 ;;
22357 *)
22358 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22359 ;;
22360 esac
22361 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22362
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22364 $as_echo "$ld_shlibs_CXX" >&6; }
22365 test "$ld_shlibs_CXX" = no && can_build_shared=no
22366
22367 with_gnu_ld_CXX=$with_gnu_ld
22368
22369
22370
22371
22372
22373
22374 #
22375 # Do we need to explicitly link libc?
22376 #
22377 case "x$archive_cmds_need_lc_CXX" in
22378 x|xyes)
22379 # Assume -lc should be added
22380 archive_cmds_need_lc_CXX=yes
22381
22382 if test "$enable_shared" = yes && test "$GCC" = yes; then
22383 case $archive_cmds_CXX in
22384 *'~'*)
22385 # FIXME: we may have to deal with multi-command sequences.
22386 ;;
22387 '$CC '*)
22388 # Test whether the compiler implicitly links with -lc since on some
22389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22390 # to ld, don't add -lc before -lgcc.
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22393 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22394 $as_echo_n "(cached) " >&6
22395 else
22396 $RM conftest*
22397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22398
22399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22400 (eval $ac_compile) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; } 2>conftest.err; then
22404 soname=conftest
22405 lib=conftest
22406 libobjs=conftest.$ac_objext
22407 deplibs=
22408 wl=$lt_prog_compiler_wl_CXX
22409 pic_flag=$lt_prog_compiler_pic_CXX
22410 compiler_flags=-v
22411 linker_flags=-v
22412 verstring=
22413 output_objdir=.
22414 libname=conftest
22415 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22416 allow_undefined_flag_CXX=
22417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22418 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22419 ac_status=$?
22420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22421 test $ac_status = 0; }
22422 then
22423 lt_cv_archive_cmds_need_lc_CXX=no
22424 else
22425 lt_cv_archive_cmds_need_lc_CXX=yes
22426 fi
22427 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22428 else
22429 cat conftest.err 1>&5
22430 fi
22431 $RM conftest*
22432
22433 fi
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22435 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22436 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22437 ;;
22438 esac
22439 fi
22440 ;;
22441 esac
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22507 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22508
22509 library_names_spec=
22510 libname_spec='lib$name'
22511 soname_spec=
22512 shrext_cmds=".so"
22513 postinstall_cmds=
22514 postuninstall_cmds=
22515 finish_cmds=
22516 finish_eval=
22517 shlibpath_var=
22518 shlibpath_overrides_runpath=unknown
22519 version_type=none
22520 dynamic_linker="$host_os ld.so"
22521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22522 need_lib_prefix=unknown
22523 hardcode_into_libs=no
22524
22525 # when you set need_version to no, make sure it does not cause -set_version
22526 # flags to be left without arguments
22527 need_version=unknown
22528
22529 case $host_os in
22530 aix3*)
22531 version_type=linux
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22533 shlibpath_var=LIBPATH
22534
22535 # AIX 3 has no versioning support, so we append a major version to the name.
22536 soname_spec='${libname}${release}${shared_ext}$major'
22537 ;;
22538
22539 aix[4-9]*)
22540 version_type=linux
22541 need_lib_prefix=no
22542 need_version=no
22543 hardcode_into_libs=yes
22544 if test "$host_cpu" = ia64; then
22545 # AIX 5 supports IA64
22546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22547 shlibpath_var=LD_LIBRARY_PATH
22548 else
22549 # With GCC up to 2.95.x, collect2 would create an import file
22550 # for dependence libraries. The import file would start with
22551 # the line `#! .'. This would cause the generated library to
22552 # depend on `.', always an invalid library. This was fixed in
22553 # development snapshots of GCC prior to 3.0.
22554 case $host_os in
22555 aix4 | aix4.[01] | aix4.[01].*)
22556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22557 echo ' yes '
22558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22559 :
22560 else
22561 can_build_shared=no
22562 fi
22563 ;;
22564 esac
22565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22566 # soname into executable. Probably we can add versioning support to
22567 # collect2, so additional links can be useful in future.
22568 if test "$aix_use_runtimelinking" = yes; then
22569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22570 # instead of lib<name>.a to let people know that these are not
22571 # typical AIX shared libraries.
22572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22573 else
22574 # We preserve .a as extension for shared libraries through AIX4.2
22575 # and later when we are not doing run time linking.
22576 library_names_spec='${libname}${release}.a $libname.a'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 fi
22579 shlibpath_var=LIBPATH
22580 fi
22581 ;;
22582
22583 amigaos*)
22584 case $host_cpu in
22585 powerpc)
22586 # Since July 2007 AmigaOS4 officially supports .so libraries.
22587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22589 ;;
22590 m68k)
22591 library_names_spec='$libname.ixlibrary $libname.a'
22592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22593 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'
22594 ;;
22595 esac
22596 ;;
22597
22598 beos*)
22599 library_names_spec='${libname}${shared_ext}'
22600 dynamic_linker="$host_os ld.so"
22601 shlibpath_var=LIBRARY_PATH
22602 ;;
22603
22604 bsdi[45]*)
22605 version_type=linux
22606 need_version=no
22607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22608 soname_spec='${libname}${release}${shared_ext}$major'
22609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22610 shlibpath_var=LD_LIBRARY_PATH
22611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22613 # the default ld.so.conf also contains /usr/contrib/lib and
22614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22615 # libtool to hard-code these into programs
22616 ;;
22617
22618 cygwin* | mingw* | pw32* | cegcc*)
22619 version_type=windows
22620 shrext_cmds=".dll"
22621 need_version=no
22622 need_lib_prefix=no
22623
22624 case $GCC,$host_os in
22625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22626 library_names_spec='$libname.dll.a'
22627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22628 postinstall_cmds='base_file=`basename \${file}`~
22629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22630 dldir=$destdir/`dirname \$dlpath`~
22631 test -d \$dldir || mkdir -p \$dldir~
22632 $install_prog $dir/$dlname \$dldir/$dlname~
22633 chmod a+x \$dldir/$dlname~
22634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22636 fi'
22637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22638 dlpath=$dir/\$dldll~
22639 $RM \$dlpath'
22640 shlibpath_overrides_runpath=yes
22641
22642 case $host_os in
22643 cygwin*)
22644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22646
22647 ;;
22648 mingw* | cegcc*)
22649 # MinGW DLLs use traditional 'lib' prefix
22650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22651 ;;
22652 pw32*)
22653 # pw32 DLLs use 'pw' prefix rather than 'lib'
22654 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22655 ;;
22656 esac
22657 ;;
22658
22659 *)
22660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22661 ;;
22662 esac
22663 dynamic_linker='Win32 ld.exe'
22664 # FIXME: first we should search . and the directory the executable is in
22665 shlibpath_var=PATH
22666 ;;
22667
22668 darwin* | rhapsody*)
22669 dynamic_linker="$host_os dyld"
22670 version_type=darwin
22671 need_lib_prefix=no
22672 need_version=no
22673 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22674 soname_spec='${libname}${release}${major}$shared_ext'
22675 shlibpath_overrides_runpath=yes
22676 shlibpath_var=DYLD_LIBRARY_PATH
22677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22678
22679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22680 ;;
22681
22682 dgux*)
22683 version_type=linux
22684 need_lib_prefix=no
22685 need_version=no
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 ;;
22690
22691 freebsd* | dragonfly*)
22692 # DragonFly does not have aout. When/if they implement a new
22693 # versioning mechanism, adjust this.
22694 if test -x /usr/bin/objformat; then
22695 objformat=`/usr/bin/objformat`
22696 else
22697 case $host_os in
22698 freebsd[23].*) objformat=aout ;;
22699 *) objformat=elf ;;
22700 esac
22701 fi
22702 version_type=freebsd-$objformat
22703 case $version_type in
22704 freebsd-elf*)
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22706 need_version=no
22707 need_lib_prefix=no
22708 ;;
22709 freebsd-*)
22710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22711 need_version=yes
22712 ;;
22713 esac
22714 shlibpath_var=LD_LIBRARY_PATH
22715 case $host_os in
22716 freebsd2.*)
22717 shlibpath_overrides_runpath=yes
22718 ;;
22719 freebsd3.[01]* | freebsdelf3.[01]*)
22720 shlibpath_overrides_runpath=yes
22721 hardcode_into_libs=yes
22722 ;;
22723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22725 shlibpath_overrides_runpath=no
22726 hardcode_into_libs=yes
22727 ;;
22728 *) # from 4.6 on, and DragonFly
22729 shlibpath_overrides_runpath=yes
22730 hardcode_into_libs=yes
22731 ;;
22732 esac
22733 ;;
22734
22735 haiku*)
22736 version_type=linux
22737 need_lib_prefix=no
22738 need_version=no
22739 dynamic_linker="$host_os runtime_loader"
22740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 shlibpath_var=LIBRARY_PATH
22743 shlibpath_overrides_runpath=yes
22744 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22745 hardcode_into_libs=yes
22746 ;;
22747
22748 hpux9* | hpux10* | hpux11*)
22749 # Give a soname corresponding to the major version so that dld.sl refuses to
22750 # link against other versions.
22751 version_type=sunos
22752 need_lib_prefix=no
22753 need_version=no
22754 case $host_cpu in
22755 ia64*)
22756 shrext_cmds='.so'
22757 hardcode_into_libs=yes
22758 dynamic_linker="$host_os dld.so"
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 if test "X$HPUX_IA64_MODE" = X32; then
22764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22765 else
22766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22767 fi
22768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22769 ;;
22770 hppa*64*)
22771 shrext_cmds='.sl'
22772 hardcode_into_libs=yes
22773 dynamic_linker="$host_os dld.sl"
22774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22780 ;;
22781 *)
22782 shrext_cmds='.sl'
22783 dynamic_linker="$host_os dld.sl"
22784 shlibpath_var=SHLIB_PATH
22785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 soname_spec='${libname}${release}${shared_ext}$major'
22788 ;;
22789 esac
22790 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22791 postinstall_cmds='chmod 555 $lib'
22792 # or fails outright, so override atomically:
22793 install_override_mode=555
22794 ;;
22795
22796 interix[3-9]*)
22797 version_type=linux
22798 need_lib_prefix=no
22799 need_version=no
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 ;;
22807
22808 irix5* | irix6* | nonstopux*)
22809 case $host_os in
22810 nonstopux*) version_type=nonstopux ;;
22811 *)
22812 if test "$lt_cv_prog_gnu_ld" = yes; then
22813 version_type=linux
22814 else
22815 version_type=irix
22816 fi ;;
22817 esac
22818 need_lib_prefix=no
22819 need_version=no
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22822 case $host_os in
22823 irix5* | nonstopux*)
22824 libsuff= shlibsuff=
22825 ;;
22826 *)
22827 case $LD in # libtool.m4 will add one of these switches to LD
22828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22829 libsuff= shlibsuff= libmagic=32-bit;;
22830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22831 libsuff=32 shlibsuff=N32 libmagic=N32;;
22832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22834 *) libsuff= shlibsuff= libmagic=never-match;;
22835 esac
22836 ;;
22837 esac
22838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22839 shlibpath_overrides_runpath=no
22840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22842 hardcode_into_libs=yes
22843 ;;
22844
22845 # No shared lib support for Linux oldld, aout, or coff.
22846 linux*oldld* | linux*aout* | linux*coff*)
22847 dynamic_linker=no
22848 ;;
22849
22850 # This must be Linux ELF.
22851
22852 # uclinux* changes (here and below) have been submitted to the libtool
22853 # project, but have not yet been accepted: they are GCC-local changes
22854 # for the time being. (See
22855 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22857 version_type=linux
22858 need_lib_prefix=no
22859 need_version=no
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 shlibpath_overrides_runpath=no
22865
22866 # Some binutils ld are patched to set DT_RUNPATH
22867 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 lt_cv_shlibpath_overrides_runpath=no
22871 save_LDFLAGS=$LDFLAGS
22872 save_libdir=$libdir
22873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22877
22878 int
22879 main ()
22880 {
22881
22882 ;
22883 return 0;
22884 }
22885 _ACEOF
22886 if ac_fn_cxx_try_link "$LINENO"; then :
22887 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22888 lt_cv_shlibpath_overrides_runpath=yes
22889 fi
22890 fi
22891 rm -f core conftest.err conftest.$ac_objext \
22892 conftest$ac_exeext conftest.$ac_ext
22893 LDFLAGS=$save_LDFLAGS
22894 libdir=$save_libdir
22895
22896 fi
22897
22898 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22899
22900 # This implies no fast_install, which is unacceptable.
22901 # Some rework will be needed to allow for fast_install
22902 # before this can be enabled.
22903 hardcode_into_libs=yes
22904
22905 # Append ld.so.conf contents to the search path
22906 if test -f /etc/ld.so.conf; then
22907 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' ' '`
22908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22909 fi
22910
22911 # We used to test for /lib/ld.so.1 and disable shared libraries on
22912 # powerpc, because MkLinux only supported shared libraries with the
22913 # GNU dynamic linker. Since this was broken with cross compilers,
22914 # most powerpc-linux boxes support dynamic linking these days and
22915 # people can always --disable-shared, the test was removed, and we
22916 # assume the GNU/Linux dynamic linker is in use.
22917 dynamic_linker='GNU/Linux ld.so'
22918 ;;
22919
22920 netbsd*)
22921 version_type=sunos
22922 need_lib_prefix=no
22923 need_version=no
22924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22927 dynamic_linker='NetBSD (a.out) ld.so'
22928 else
22929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22930 soname_spec='${libname}${release}${shared_ext}$major'
22931 dynamic_linker='NetBSD ld.elf_so'
22932 fi
22933 shlibpath_var=LD_LIBRARY_PATH
22934 shlibpath_overrides_runpath=yes
22935 hardcode_into_libs=yes
22936 ;;
22937
22938 newsos6)
22939 version_type=linux
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 shlibpath_var=LD_LIBRARY_PATH
22942 shlibpath_overrides_runpath=yes
22943 ;;
22944
22945 *nto* | *qnx*)
22946 version_type=qnx
22947 need_lib_prefix=no
22948 need_version=no
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 shlibpath_var=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath=no
22953 hardcode_into_libs=yes
22954 dynamic_linker='ldqnx.so'
22955 ;;
22956
22957 openbsd*)
22958 version_type=sunos
22959 sys_lib_dlsearch_path_spec="/usr/lib"
22960 need_lib_prefix=no
22961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22962 case $host_os in
22963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22964 *) need_version=no ;;
22965 esac
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968 shlibpath_var=LD_LIBRARY_PATH
22969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22970 case $host_os in
22971 openbsd2.[89] | openbsd2.[89].*)
22972 shlibpath_overrides_runpath=no
22973 ;;
22974 *)
22975 shlibpath_overrides_runpath=yes
22976 ;;
22977 esac
22978 else
22979 shlibpath_overrides_runpath=yes
22980 fi
22981 ;;
22982
22983 os2*)
22984 libname_spec='$name'
22985 shrext_cmds=".dll"
22986 need_lib_prefix=no
22987 library_names_spec='$libname${shared_ext} $libname.a'
22988 dynamic_linker='OS/2 ld.exe'
22989 shlibpath_var=LIBPATH
22990 ;;
22991
22992 osf3* | osf4* | osf5*)
22993 version_type=osf
22994 need_lib_prefix=no
22995 need_version=no
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23001 ;;
23002
23003 rdos*)
23004 dynamic_linker=no
23005 ;;
23006
23007 solaris*)
23008 version_type=linux
23009 need_lib_prefix=no
23010 need_version=no
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 shlibpath_var=LD_LIBRARY_PATH
23014 shlibpath_overrides_runpath=yes
23015 hardcode_into_libs=yes
23016 # ldd complains unless libraries are executable
23017 postinstall_cmds='chmod +x $lib'
23018 ;;
23019
23020 sunos4*)
23021 version_type=sunos
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23024 shlibpath_var=LD_LIBRARY_PATH
23025 shlibpath_overrides_runpath=yes
23026 if test "$with_gnu_ld" = yes; then
23027 need_lib_prefix=no
23028 fi
23029 need_version=yes
23030 ;;
23031
23032 sysv4 | sysv4.3*)
23033 version_type=linux
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 case $host_vendor in
23038 sni)
23039 shlibpath_overrides_runpath=no
23040 need_lib_prefix=no
23041 runpath_var=LD_RUN_PATH
23042 ;;
23043 siemens)
23044 need_lib_prefix=no
23045 ;;
23046 motorola)
23047 need_lib_prefix=no
23048 need_version=no
23049 shlibpath_overrides_runpath=no
23050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23051 ;;
23052 esac
23053 ;;
23054
23055 sysv4*MP*)
23056 if test -d /usr/nec ;then
23057 version_type=linux
23058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23059 soname_spec='$libname${shared_ext}.$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 fi
23062 ;;
23063
23064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23065 version_type=freebsd-elf
23066 need_lib_prefix=no
23067 need_version=no
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=yes
23072 hardcode_into_libs=yes
23073 if test "$with_gnu_ld" = yes; then
23074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23075 else
23076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23077 case $host_os in
23078 sco3.2v5*)
23079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23080 ;;
23081 esac
23082 fi
23083 sys_lib_dlsearch_path_spec='/usr/lib'
23084 ;;
23085
23086 tpf*)
23087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23088 version_type=linux
23089 need_lib_prefix=no
23090 need_version=no
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=no
23094 hardcode_into_libs=yes
23095 ;;
23096
23097 uts4*)
23098 version_type=linux
23099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100 soname_spec='${libname}${release}${shared_ext}$major'
23101 shlibpath_var=LD_LIBRARY_PATH
23102 ;;
23103
23104 # Shared libraries for VwWorks, >= 7 only at this stage
23105 # and (fpic) still incompatible with "large" code models
23106 # in a few configurations. Only for RTP mode in any case,
23107 # and upon explicit request at configure time.
23108 vxworks7*)
23109 dynamic_linker=no
23110 case ${with_multisubdir}-${enable_shared} in
23111 *large*)
23112 ;;
23113 *mrtp*-yes)
23114 version_type=linux
23115 need_lib_prefix=no
23116 need_version=no
23117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 dynamic_linker="$host_os module_loader"
23120 ;;
23121 esac
23122 ;;
23123 *)
23124 dynamic_linker=no
23125 ;;
23126 esac
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23128 $as_echo "$dynamic_linker" >&6; }
23129 test "$dynamic_linker" = no && can_build_shared=no
23130
23131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23132 if test "$GCC" = yes; then
23133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23134 fi
23135
23136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23138 fi
23139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23141 fi
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23181 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23182 hardcode_action_CXX=
23183 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23184 test -n "$runpath_var_CXX" ||
23185 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23186
23187 # We can hardcode non-existent directories.
23188 if test "$hardcode_direct_CXX" != no &&
23189 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23190 # have to relink, otherwise we might link with an installed library
23191 # when we should be linking with a yet-to-be-installed one
23192 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23193 test "$hardcode_minus_L_CXX" != no; then
23194 # Linking always hardcodes the temporary library directory.
23195 hardcode_action_CXX=relink
23196 else
23197 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23198 hardcode_action_CXX=immediate
23199 fi
23200 else
23201 # We cannot hardcode anything, or else we can only hardcode existing
23202 # directories.
23203 hardcode_action_CXX=unsupported
23204 fi
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23206 $as_echo "$hardcode_action_CXX" >&6; }
23207
23208 if test "$hardcode_action_CXX" = relink ||
23209 test "$inherit_rpath_CXX" = yes; then
23210 # Fast installation is not supported
23211 enable_fast_install=no
23212 elif test "$shlibpath_overrides_runpath" = yes ||
23213 test "$enable_shared" = no; then
23214 # Fast installation is not necessary
23215 enable_fast_install=needless
23216 fi
23217
23218
23219
23220
23221
23222
23223
23224 fi # test -n "$compiler"
23225
23226 CC=$lt_save_CC
23227 LDCXX=$LD
23228 LD=$lt_save_LD
23229 GCC=$lt_save_GCC
23230 with_gnu_ld=$lt_save_with_gnu_ld
23231 lt_cv_path_LDCXX=$lt_cv_path_LD
23232 lt_cv_path_LD=$lt_save_path_LD
23233 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23234 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23235 fi # test "$_lt_caught_CXX_error" != yes
23236
23237 ac_ext=cpp
23238 ac_cpp='$CXXCPP $CPPFLAGS'
23239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258 # Only expand once:
23259
23260
23261
23262
23263
23264 # Identify the assembler which will work hand-in-glove with the newly
23265 # built GCC, so that we can examine its features. This is the assembler
23266 # which will be driven by the driver program.
23267 #
23268 # If build != host, and we aren't building gas in-tree, we identify a
23269 # build->target assembler and hope that it will have the same features
23270 # as the host->target assembler we'll be using.
23271 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23272
23273 if ${gcc_cv_as+:} false; then :
23274
23275 else
23276
23277 if test -x "$DEFAULT_ASSEMBLER"; then
23278 gcc_cv_as="$DEFAULT_ASSEMBLER"
23279 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23280 && test -f ../gas/Makefile \
23281 && test x$build = x$host; then
23282 gcc_cv_as=../gas/as-new$build_exeext
23283 elif test -x as$build_exeext; then
23284 # Build using assembler in the current directory.
23285 gcc_cv_as=./as$build_exeext
23286 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23287 gcc_cv_as="$AS_FOR_TARGET"
23288 else
23289 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23290 set dummy $AS_FOR_TARGET; ac_word=$2
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23292 $as_echo_n "checking for $ac_word... " >&6; }
23293 if ${ac_cv_path_gcc_cv_as+:} false; then :
23294 $as_echo_n "(cached) " >&6
23295 else
23296 case $gcc_cv_as in
23297 [\\/]* | ?:[\\/]*)
23298 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23299 ;;
23300 *)
23301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302 for as_dir in $PATH
23303 do
23304 IFS=$as_save_IFS
23305 test -z "$as_dir" && as_dir=.
23306 for ac_exec_ext in '' $ac_executable_extensions; do
23307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23310 break 2
23311 fi
23312 done
23313 done
23314 IFS=$as_save_IFS
23315
23316 ;;
23317 esac
23318 fi
23319 gcc_cv_as=$ac_cv_path_gcc_cv_as
23320 if test -n "$gcc_cv_as"; then
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23322 $as_echo "$gcc_cv_as" >&6; }
23323 else
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23326 fi
23327
23328
23329 fi
23330 fi
23331
23332 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23333
23334 case "$ORIGINAL_AS_FOR_TARGET" in
23335 ./as | ./as$build_exeext) ;;
23336 *) ac_config_files="$ac_config_files as:exec-tool.in"
23337 ;;
23338 esac
23339
23340 default_ld=
23341 # Check whether --enable-ld was given.
23342 if test "${enable_ld+set}" = set; then :
23343 enableval=$enable_ld; case "${enableval}" in
23344 no)
23345 default_ld=ld.gold
23346 ;;
23347 esac
23348 fi
23349
23350
23351 install_gold_as_default=no
23352 # Check whether --enable-gold was given.
23353 if test "${enable_gold+set}" = set; then :
23354 enableval=$enable_gold; case "${enableval}" in
23355 default)
23356 install_gold_as_default=yes
23357 ;;
23358 yes)
23359 if test x${default_ld} != x; then
23360 install_gold_as_default=yes
23361 fi
23362 ;;
23363 no)
23364 ;;
23365 *)
23366 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23367 ;;
23368 esac
23369 fi
23370
23371
23372 # Identify the linker which will work hand-in-glove with the newly
23373 # built GCC, so that we can examine its features. This is the linker
23374 # which will be driven by the driver program.
23375 #
23376 # If build != host, and we aren't building gas in-tree, we identify a
23377 # build->target linker and hope that it will have the same features
23378 # as the host->target linker we'll be using.
23379 gcc_cv_gld_major_version=
23380 gcc_cv_gld_minor_version=
23381 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23382 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23383 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23384
23385 if ${gcc_cv_ld+:} false; then :
23386
23387 else
23388
23389 if test -x "$DEFAULT_LINKER"; then
23390 gcc_cv_ld="$DEFAULT_LINKER"
23391 elif test $install_gold_as_default = yes \
23392 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23393 && test -f ../gold/Makefile \
23394 && test x$build = x$host; then
23395 gcc_cv_ld=../gold/ld-new$build_exeext
23396 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23397 && test -f ../ld/Makefile \
23398 && test x$build = x$host; then
23399 gcc_cv_ld=../ld/ld-new$build_exeext
23400 elif test -x collect-ld$build_exeext; then
23401 # Build using linker in the current directory.
23402 gcc_cv_ld=./collect-ld$build_exeext
23403 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23404 gcc_cv_ld="$LD_FOR_TARGET"
23405 else
23406 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23407 set dummy $LD_FOR_TARGET; ac_word=$2
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409 $as_echo_n "checking for $ac_word... " >&6; }
23410 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23411 $as_echo_n "(cached) " >&6
23412 else
23413 case $gcc_cv_ld in
23414 [\\/]* | ?:[\\/]*)
23415 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23416 ;;
23417 *)
23418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23419 for as_dir in $PATH
23420 do
23421 IFS=$as_save_IFS
23422 test -z "$as_dir" && as_dir=.
23423 for ac_exec_ext in '' $ac_executable_extensions; do
23424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23425 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23427 break 2
23428 fi
23429 done
23430 done
23431 IFS=$as_save_IFS
23432
23433 ;;
23434 esac
23435 fi
23436 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23437 if test -n "$gcc_cv_ld"; then
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23439 $as_echo "$gcc_cv_ld" >&6; }
23440 else
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23442 $as_echo "no" >&6; }
23443 fi
23444
23445
23446 fi
23447 fi
23448
23449 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23450 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23451 # if the PLUGIN_LD is set ld-new, just have it as ld
23452 # as that is the installed named.
23453 if test x$PLUGIN_LD_SUFFIX = xld-new \
23454 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23455 PLUGIN_LD_SUFFIX=ld
23456 fi
23457
23458 # Check whether --with-plugin-ld was given.
23459 if test "${with_plugin_ld+set}" = set; then :
23460 withval=$with_plugin_ld; if test x"$withval" != x; then
23461 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23462 PLUGIN_LD_SUFFIX="$withval"
23463 fi
23464 fi
23465
23466
23467
23468 cat >>confdefs.h <<_ACEOF
23469 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23470 _ACEOF
23471
23472
23473 # Check to see if we are using gold instead of ld
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23475 $as_echo_n "checking whether we are using gold... " >&6; }
23476 ld_is_gold=no
23477 if test x$gcc_cv_ld != x; then
23478 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23479 | grep "GNU gold" > /dev/null; then
23480 ld_is_gold=yes
23481 fi
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23484 $as_echo "$ld_is_gold" >&6; }
23485
23486 # Check to see if we are using mold instead of ld
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23488 $as_echo_n "checking whether we are using mold... " >&6; }
23489 ld_is_mold=no
23490 if test x$gcc_cv_ld != x; then
23491 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23492 | grep "mold" > /dev/null; then
23493 ld_is_mold=yes
23494 fi
23495 fi
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23497 $as_echo "$ld_is_mold" >&6; }
23498
23499
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23501 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23502 # Check to see if default ld is not gold, but gold is
23503 # available and has support for split stack. If gcc was configured
23504 # with gold then no checking is done.
23505 #
23506 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23507
23508 # For platforms other than powerpc64*, enable as appropriate.
23509
23510 gold_non_default=no
23511 ld_gold=`which ${gcc_cv_ld}.gold`
23512 # Make sure this gold has minimal split stack support
23513 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23514 ld_vers=`$ld_gold --version | sed 1q`
23515 gold_vers=`echo $ld_vers | sed -n \
23516 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23517 case $target in
23518 # check that the gold version contains the complete split stack support
23519 # on powerpc64 big and little endian
23520 powerpc64*-*-*)
23521 case "$gold_vers" in
23522 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23523 ;;
23524 *) gold_non_default=no
23525 ;;
23526 esac
23527 ;;
23528 esac
23529 fi
23530 if test $gold_non_default = yes; then
23531
23532 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23533
23534 fi
23535 fi
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23537 $as_echo "$gold_non_default" >&6; }
23538
23539 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23540
23541 case "$ORIGINAL_LD_FOR_TARGET" in
23542 ./collect-ld | ./collect-ld$build_exeext) ;;
23543 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23544 ;;
23545 esac
23546
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23548 $as_echo_n "checking what linker to use... " >&6; }
23549 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23550 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23551 # Single tree build which includes ld. We want to prefer it
23552 # over whatever linker top-level may have detected, since
23553 # we'll use what we're building after installation anyway.
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23555 $as_echo "newly built ld" >&6; }
23556 in_tree_ld=yes
23557 in_tree_ld_is_elf=no
23558 if (grep 'EMUL = .*elf' ../ld/Makefile \
23559 || grep 'EMUL = .*linux' ../ld/Makefile \
23560 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23561 in_tree_ld_is_elf=yes
23562 elif test "$ld_is_gold" = yes; then
23563 in_tree_ld_is_elf=yes
23564 fi
23565 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
23566 do
23567 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23568 if test x$gcc_cv_gld_version != x; then
23569 break
23570 fi
23571 done
23572 case $gcc_cv_gld_version in
23573 VERSION=[0-9]*) ;;
23574 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23575 esac
23576 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23577 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23578 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23579 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23580 else
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23582 $as_echo "$gcc_cv_ld" >&6; }
23583 in_tree_ld=no
23584 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23585 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23586 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23587 fi
23588
23589
23590
23591
23592 # Figure out what nm we will be using.
23593 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23594 if ${gcc_cv_nm+:} false; then :
23595
23596 else
23597
23598 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23599 && test -f ../binutils/Makefile \
23600 && test x$build = x$host; then
23601 gcc_cv_nm=../binutils/nm-new$build_exeext
23602 elif test -x nm$build_exeext; then
23603 gcc_cv_nm=./nm$build_exeext
23604 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23605 gcc_cv_nm="$NM_FOR_TARGET"
23606 else
23607 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23608 set dummy $NM_FOR_TARGET; ac_word=$2
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23610 $as_echo_n "checking for $ac_word... " >&6; }
23611 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23612 $as_echo_n "(cached) " >&6
23613 else
23614 case $gcc_cv_nm in
23615 [\\/]* | ?:[\\/]*)
23616 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23617 ;;
23618 *)
23619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23620 for as_dir in $PATH
23621 do
23622 IFS=$as_save_IFS
23623 test -z "$as_dir" && as_dir=.
23624 for ac_exec_ext in '' $ac_executable_extensions; do
23625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23626 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23628 break 2
23629 fi
23630 done
23631 done
23632 IFS=$as_save_IFS
23633
23634 ;;
23635 esac
23636 fi
23637 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23638 if test -n "$gcc_cv_nm"; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23640 $as_echo "$gcc_cv_nm" >&6; }
23641 else
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23643 $as_echo "no" >&6; }
23644 fi
23645
23646
23647 fi
23648 fi
23649
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23651 $as_echo_n "checking what nm to use... " >&6; }
23652 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23653 # Single tree build which includes binutils.
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23655 $as_echo "newly built nm" >&6; }
23656 in_tree_nm=yes
23657 else
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23659 $as_echo "$gcc_cv_nm" >&6; }
23660 in_tree_nm=no
23661 fi
23662
23663 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23664
23665 case "$ORIGINAL_NM_FOR_TARGET" in
23666 ./nm | ./nm$build_exeext) ;;
23667 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23668 ;;
23669 esac
23670
23671
23672 # Figure out what objdump we will be using.
23673 if ${gcc_cv_objdump+:} false; then :
23674
23675 else
23676
23677 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23678 && test -f ../binutils/Makefile \
23679 && test x$build = x$host; then
23680 # Single tree build which includes binutils.
23681 gcc_cv_objdump=../binutils/objdump$build_exeext
23682 elif test -x objdump$build_exeext; then
23683 gcc_cv_objdump=./objdump$build_exeext
23684 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23685 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23686 else
23687 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23688 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23690 $as_echo_n "checking for $ac_word... " >&6; }
23691 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23692 $as_echo_n "(cached) " >&6
23693 else
23694 case $gcc_cv_objdump in
23695 [\\/]* | ?:[\\/]*)
23696 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23697 ;;
23698 *)
23699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23700 for as_dir in $PATH
23701 do
23702 IFS=$as_save_IFS
23703 test -z "$as_dir" && as_dir=.
23704 for ac_exec_ext in '' $ac_executable_extensions; do
23705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23706 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23708 break 2
23709 fi
23710 done
23711 done
23712 IFS=$as_save_IFS
23713
23714 ;;
23715 esac
23716 fi
23717 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23718 if test -n "$gcc_cv_objdump"; then
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23720 $as_echo "$gcc_cv_objdump" >&6; }
23721 else
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23724 fi
23725
23726
23727 fi
23728 fi
23729
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23731 $as_echo_n "checking what objdump to use... " >&6; }
23732 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23733 # Single tree build which includes binutils.
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23735 $as_echo "newly built objdump" >&6; }
23736 elif test x$gcc_cv_objdump = x; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23738 $as_echo "not found" >&6; }
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23741 $as_echo "$gcc_cv_objdump" >&6; }
23742 fi
23743
23744 # Figure out what readelf we will be using.
23745 if ${gcc_cv_readelf+:} false; then :
23746
23747 else
23748
23749 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23750 && test -f ../binutils/Makefile \
23751 && test x$build = x$host; then
23752 # Single tree build which includes binutils.
23753 gcc_cv_readelf=../binutils/readelf$build_exeext
23754 elif test -x readelf$build_exeext; then
23755 gcc_cv_readelf=./readelf$build_exeext
23756 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23757 gcc_cv_readelf="$READELF_FOR_TARGET"
23758 else
23759 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23760 set dummy $READELF_FOR_TARGET; ac_word=$2
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23762 $as_echo_n "checking for $ac_word... " >&6; }
23763 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23764 $as_echo_n "(cached) " >&6
23765 else
23766 case $gcc_cv_readelf in
23767 [\\/]* | ?:[\\/]*)
23768 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23769 ;;
23770 *)
23771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772 for as_dir in $PATH
23773 do
23774 IFS=$as_save_IFS
23775 test -z "$as_dir" && as_dir=.
23776 for ac_exec_ext in '' $ac_executable_extensions; do
23777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23778 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23780 break 2
23781 fi
23782 done
23783 done
23784 IFS=$as_save_IFS
23785
23786 ;;
23787 esac
23788 fi
23789 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23790 if test -n "$gcc_cv_readelf"; then
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23792 $as_echo "$gcc_cv_readelf" >&6; }
23793 else
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23796 fi
23797
23798
23799 fi
23800 fi
23801
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23803 $as_echo_n "checking what readelf to use... " >&6; }
23804 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23805 # Single tree build which includes binutils.
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23807 $as_echo "newly built readelf" >&6; }
23808 elif test x$gcc_cv_readelf = x; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23810 $as_echo "not found" >&6; }
23811 else
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23813 $as_echo "$gcc_cv_readelf" >&6; }
23814 fi
23815
23816 # Figure out what otool we will be using.
23817 if ${gcc_cv_otool+:} false; then :
23818
23819 else
23820
23821 if test -x otool$build_exeext; then
23822 gcc_cv_otool=./otool$build_exeext
23823 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23824 gcc_cv_otool="$OTOOL_FOR_TARGET"
23825 else
23826 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23827 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23829 $as_echo_n "checking for $ac_word... " >&6; }
23830 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 case $gcc_cv_otool in
23834 [\\/]* | ?:[\\/]*)
23835 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23836 ;;
23837 *)
23838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23839 for as_dir in $PATH
23840 do
23841 IFS=$as_save_IFS
23842 test -z "$as_dir" && as_dir=.
23843 for ac_exec_ext in '' $ac_executable_extensions; do
23844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23845 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23847 break 2
23848 fi
23849 done
23850 done
23851 IFS=$as_save_IFS
23852
23853 ;;
23854 esac
23855 fi
23856 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23857 if test -n "$gcc_cv_otool"; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23859 $as_echo "$gcc_cv_otool" >&6; }
23860 else
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23862 $as_echo "no" >&6; }
23863 fi
23864
23865
23866 fi
23867 fi
23868
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23870 $as_echo_n "checking what otool to use... " >&6; }
23871 if test x$gcc_cv_otool = x; then
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23873 $as_echo "not found" >&6; }
23874 else
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23876 $as_echo "$gcc_cv_otool" >&6; }
23877 fi
23878
23879 # Figure out the dsymutil we will use.
23880 if ${gcc_cv_dsymutil+:} false; then :
23881
23882 else
23883
23884 if test -x "$DEFAULT_DSYMUTIL"; then
23885 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23886 elif test -x dsymutil$build_exeext; then
23887 gcc_cv_dsymutil=./dsymutil$build_exeext
23888 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23889 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23890 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23891 gcc_cv_dsymutil=$DSYMUTIL
23892 else
23893 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23894 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23896 $as_echo_n "checking for $ac_word... " >&6; }
23897 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 case $gcc_cv_dsymutil in
23901 [\\/]* | ?:[\\/]*)
23902 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23903 ;;
23904 *)
23905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23906 for as_dir in $PATH
23907 do
23908 IFS=$as_save_IFS
23909 test -z "$as_dir" && as_dir=.
23910 for ac_exec_ext in '' $ac_executable_extensions; do
23911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23912 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23914 break 2
23915 fi
23916 done
23917 done
23918 IFS=$as_save_IFS
23919
23920 ;;
23921 esac
23922 fi
23923 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23924 if test -n "$gcc_cv_dsymutil"; then
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23926 $as_echo "$gcc_cv_dsymutil" >&6; }
23927 else
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23930 fi
23931
23932
23933 fi
23934 fi
23935
23936 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23937
23938 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23939 ./dsymutil | ./dsymutil$build_exeext) ;;
23940 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23941 ;;
23942 esac
23943
23944 # Figure out what assembler alignment features are present.
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23946 $as_echo_n "checking assembler flags... " >&6; }
23947 if ${gcc_cv_as_flags+:} false; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 case "$target" in
23951 i[34567]86-*-linux*)
23952 gcc_cv_as_flags=--32
23953 ;;
23954 x86_64-*-linux-gnux32)
23955 gcc_cv_as_flags=--x32
23956 ;;
23957 x86_64-*-linux*)
23958 gcc_cv_as_flags=--64
23959 ;;
23960 powerpc*-*-darwin*)
23961 gcc_cv_as_flags="-arch ppc"
23962 ;;
23963 *)
23964 gcc_cv_as_flags=" "
23965 ;;
23966 esac
23967 fi
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23969 $as_echo "$gcc_cv_as_flags" >&6; }
23970
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23973 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976 gcc_cv_as_balign_and_p2align=no
23977 if test x$gcc_cv_as != x; then
23978 $as_echo '.balign 4
23979 .p2align 2' > conftest.s
23980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23985 test $ac_status = 0; }; }
23986 then
23987 gcc_cv_as_balign_and_p2align=yes
23988 else
23989 echo "configure: failed program was" >&5
23990 cat conftest.s >&5
23991 fi
23992 rm -f conftest.o conftest.s
23993 fi
23994 fi
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23996 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23997 if test $gcc_cv_as_balign_and_p2align = yes; then
23998
23999 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24000
24001 fi
24002
24003
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24005 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24006 if ${gcc_cv_as_max_skip_p2align+:} false; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009 gcc_cv_as_max_skip_p2align=no
24010 if test x$gcc_cv_as != x; then
24011 $as_echo '.p2align 4,,7' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24019 gcc_cv_as_max_skip_p2align=yes
24020 else
24021 echo "configure: failed program was" >&5
24022 cat conftest.s >&5
24023 fi
24024 rm -f conftest.o conftest.s
24025 fi
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24028 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24029 if test $gcc_cv_as_max_skip_p2align = yes; then
24030
24031 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24032
24033 fi
24034
24035
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24037 $as_echo_n "checking assembler for .literal16... " >&6; }
24038 if ${gcc_cv_as_literal16+:} false; then :
24039 $as_echo_n "(cached) " >&6
24040 else
24041 gcc_cv_as_literal16=no
24042 if test x$gcc_cv_as != x; then
24043 $as_echo '.literal16' > conftest.s
24044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24050 then
24051 gcc_cv_as_literal16=yes
24052 else
24053 echo "configure: failed program was" >&5
24054 cat conftest.s >&5
24055 fi
24056 rm -f conftest.o conftest.s
24057 fi
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24060 $as_echo "$gcc_cv_as_literal16" >&6; }
24061 if test $gcc_cv_as_literal16 = yes; then
24062
24063 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24064
24065 fi
24066
24067
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24069 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24070 if ${gcc_cv_as_subsection_m1+:} false; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073 gcc_cv_as_subsection_m1=no
24074 if test x$gcc_cv_as != x; then
24075 $as_echo 'conftest_label1: .word 0
24076 .subsection -1
24077 conftest_label2: .word 0
24078 .previous' > conftest.s
24079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24085 then
24086 if test x$gcc_cv_nm != x; then
24087 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24088 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24089 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24090 then :
24091 else gcc_cv_as_subsection_m1=yes
24092 fi
24093 rm -f conftest.nm1 conftest.nm2
24094 fi
24095 else
24096 echo "configure: failed program was" >&5
24097 cat conftest.s >&5
24098 fi
24099 rm -f conftest.o conftest.s
24100 fi
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24103 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24104 if test $gcc_cv_as_subsection_m1 = yes; then
24105
24106 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24107
24108 fi
24109
24110
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24112 $as_echo_n "checking assembler for .weak... " >&6; }
24113 if ${gcc_cv_as_weak+:} false; then :
24114 $as_echo_n "(cached) " >&6
24115 else
24116 gcc_cv_as_weak=no
24117 if test x$gcc_cv_as != x; then
24118 $as_echo ' .weak foobar' > conftest.s
24119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24125 then
24126 gcc_cv_as_weak=yes
24127 else
24128 echo "configure: failed program was" >&5
24129 cat conftest.s >&5
24130 fi
24131 rm -f conftest.o conftest.s
24132 fi
24133 fi
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24135 $as_echo "$gcc_cv_as_weak" >&6; }
24136 if test $gcc_cv_as_weak = yes; then
24137
24138 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24139
24140 fi
24141
24142
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24144 $as_echo_n "checking assembler for .weakref... " >&6; }
24145 if ${gcc_cv_as_weakref+:} false; then :
24146 $as_echo_n "(cached) " >&6
24147 else
24148 gcc_cv_as_weakref=no
24149 if test x$gcc_cv_as != x; then
24150 $as_echo ' .weakref foobar, barfnot' > conftest.s
24151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24157 then
24158 gcc_cv_as_weakref=yes
24159 else
24160 echo "configure: failed program was" >&5
24161 cat conftest.s >&5
24162 fi
24163 rm -f conftest.o conftest.s
24164 fi
24165 fi
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24167 $as_echo "$gcc_cv_as_weakref" >&6; }
24168 if test $gcc_cv_as_weakref = yes; then
24169
24170 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24171
24172 fi
24173
24174
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24176 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24177 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24178 $as_echo_n "(cached) " >&6
24179 else
24180 gcc_cv_as_nsubspa_comdat=no
24181 if test x$gcc_cv_as != x; then
24182 $as_echo ' .SPACE $TEXT$
24183 .NSUBSPA $CODE$,COMDAT' > conftest.s
24184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24190 then
24191 gcc_cv_as_nsubspa_comdat=yes
24192 else
24193 echo "configure: failed program was" >&5
24194 cat conftest.s >&5
24195 fi
24196 rm -f conftest.o conftest.s
24197 fi
24198 fi
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24200 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24201 if test $gcc_cv_as_nsubspa_comdat = yes; then
24202
24203 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24204
24205 fi
24206
24207
24208 # .hidden needs to be supported in both the assembler and the linker,
24209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24210 # This is irritatingly difficult to feature test for; we have to check the
24211 # date string after the version number. If we've got an in-tree
24212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24213 # to be safe.
24214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24215 case "${target}" in
24216 *-*-aix*)
24217 conftest_s=' .globl foobar,hidden'
24218 ;;
24219 *)
24220 conftest_s=' .hidden foobar
24221 foobar:'
24222 ;;
24223 esac
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24225 $as_echo_n "checking assembler for .hidden... " >&6; }
24226 if ${gcc_cv_as_hidden+:} false; then :
24227 $as_echo_n "(cached) " >&6
24228 else
24229 gcc_cv_as_hidden=no
24230 if test x$gcc_cv_as != x; then
24231 $as_echo "$conftest_s" > conftest.s
24232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24235 ac_status=$?
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24238 then
24239 gcc_cv_as_hidden=yes
24240 else
24241 echo "configure: failed program was" >&5
24242 cat conftest.s >&5
24243 fi
24244 rm -f conftest.o conftest.s
24245 fi
24246 fi
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24248 $as_echo "$gcc_cv_as_hidden" >&6; }
24249
24250
24251 case "${target}" in
24252 *-*-darwin*)
24253 # Darwin as has some visibility support, though with a different syntax.
24254 gcc_cv_as_hidden=yes
24255 ;;
24256 esac
24257
24258 # gnu_indirect_function type is an extension proposed at
24259 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24260 # selection of function implementation
24261 # Check whether --enable-gnu-indirect-function was given.
24262 if test "${enable_gnu_indirect_function+set}" = set; then :
24263 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24264 yes | no) ;;
24265 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24266 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24267 esac
24268 else
24269 enable_gnu_indirect_function="$default_gnu_indirect_function"
24270 fi
24271
24272
24273 case "${target}" in
24274 riscv*-*-linux*)
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24276 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24277 cat > conftest.s <<EOF
24278 .text
24279 .type foo_resolver, @function
24280 foo_resolver:
24281 ret
24282 .size foo_resolver, .-foo_resolver
24283
24284 .globl foo
24285 .type foo, %gnu_indirect_function
24286 .set foo, foo_resolver
24287
24288 .globl bar
24289 .type bar, @function
24290 bar:
24291 call foo
24292 ret
24293 .size bar, .-bar
24294 EOF
24295 if test x$gcc_cv_as != x \
24296 && test x$gcc_cv_ld != x \
24297 && test x$gcc_cv_readelf != x \
24298 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24299 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24300 && $gcc_cv_readelf --relocs --wide conftest \
24301 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24302 enable_gnu_indirect_function=yes
24303 fi
24304 rm -f conftest conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24306 $as_echo "$enable_gnu_indirect_function" >&6; }
24307 ;;
24308 esac
24309
24310 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24311
24312 cat >>confdefs.h <<_ACEOF
24313 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24314 _ACEOF
24315
24316
24317
24318 if test $in_tree_ld != yes ; then
24319 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24320 if echo "$ld_ver" | grep GNU > /dev/null; then
24321 if test x"$ld_is_gold" = xyes; then
24322 # GNU gold --version looks like this:
24323 #
24324 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24325 #
24326 # We extract the binutils version which is more familiar and specific
24327 # than the gold version.
24328 ld_vers=`echo $ld_ver | sed -n \
24329 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24330 else
24331 # GNU ld --version looks like this:
24332 #
24333 # GNU ld (GNU Binutils) 2.21.51.20110225
24334 ld_vers=`echo $ld_ver | sed -n \
24335 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24336 fi
24337 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'`
24338 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24339 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24340 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24341 else
24342 case "${target}" in
24343 *-*-solaris2*)
24344 # Solaris 2 ld -V output looks like this for a regular version:
24345 #
24346 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24347 #
24348 # but test versions add stuff at the end:
24349 #
24350 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24351 #
24352 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24353 # numbers can be used in ld.so.1 feature checks even if a different
24354 # linker is configured.
24355 ld_ver=`$gcc_cv_ld -V 2>&1`
24356 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24357 ld_vers=`echo $ld_ver | sed -n \
24358 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24359 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24360 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24361 fi
24362 ;;
24363 esac
24364 fi
24365 fi
24366
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24368 $as_echo_n "checking linker for .hidden support... " >&6; }
24369 if ${gcc_cv_ld_hidden+:} false; then :
24370 $as_echo_n "(cached) " >&6
24371 else
24372 if test $in_tree_ld = yes ; then
24373 gcc_cv_ld_hidden=no
24374 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 \
24375 && test $in_tree_ld_is_elf = yes; then
24376 gcc_cv_ld_hidden=yes
24377 fi
24378 else
24379 gcc_cv_ld_hidden=yes
24380 if test x"$ld_is_gold" = xyes; then
24381 :
24382 elif test x"$ld_is_mold" = xyes; then
24383 :
24384 elif echo "$ld_ver" | grep GNU > /dev/null; then
24385 if test 0"$ld_date" -lt 20020404; then
24386 if test -n "$ld_date"; then
24387 # If there was date string, but was earlier than 2002-04-04, fail
24388 gcc_cv_ld_hidden=no
24389 elif test -z "$ld_vers"; then
24390 # If there was no date string nor ld version number, something is wrong
24391 gcc_cv_ld_hidden=no
24392 else
24393 test -z "$ld_vers_patch" && ld_vers_patch=0
24394 if test "$ld_vers_major" -lt 2; then
24395 gcc_cv_ld_hidden=no
24396 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24397 gcc_cv_ld_hidden="no"
24398 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24399 gcc_cv_ld_hidden=no
24400 fi
24401 fi
24402 fi
24403 else
24404 case "${target}" in
24405 *-*-aix[789]*)
24406 gcc_cv_ld_hidden=yes
24407 ;;
24408 *-*-darwin*)
24409 # Darwin ld has some visibility support.
24410 gcc_cv_ld_hidden=yes
24411 ;;
24412 hppa64*-*-hpux* | ia64*-*-hpux*)
24413 gcc_cv_ld_hidden=yes
24414 ;;
24415 *-*-solaris2*)
24416 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24417 # .symbolic was only added in Solaris 9 12/02.
24418 gcc_cv_ld_hidden=yes
24419 ;;
24420 *)
24421 gcc_cv_ld_hidden=no
24422 ;;
24423 esac
24424 fi
24425 fi
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24428 $as_echo "$gcc_cv_ld_hidden" >&6; }
24429 libgcc_visibility=no
24430
24431
24432 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24433 libgcc_visibility=yes
24434
24435 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24436
24437 fi
24438
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24440 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24441 gcc_cv_ld_ro_rw_mix=unknown
24442 if test $in_tree_ld = yes ; then
24443 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 \
24444 && test $in_tree_ld_is_elf = yes; then
24445 gcc_cv_ld_ro_rw_mix=read-write
24446 fi
24447 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24448 echo '.section myfoosect, "a"' > conftest1.s
24449 echo '.section myfoosect, "aw"' > conftest2.s
24450 echo '.byte 1' >> conftest2.s
24451 echo '.section myfoosect, "a"' > conftest3.s
24452 echo '.byte 0' >> conftest3.s
24453 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24454 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24455 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24456 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24457 conftest2.o conftest3.o > /dev/null 2>&1 \
24458 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24459 conftest2.o conftest3.o > /dev/null 2>&1; then
24460 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24461 | sed -e '/myfoosect/!d' -e N`
24462 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24463 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24464 gcc_cv_ld_ro_rw_mix=read-only
24465 else
24466 gcc_cv_ld_ro_rw_mix=read-write
24467 fi
24468 fi
24469 fi
24470 fi
24471 rm -f conftest.* conftest[123].*
24472 fi
24473 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24474
24475 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24476
24477 fi
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24479 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24480
24481 # Check whether --enable-initfini-array was given.
24482 if test "${enable_initfini_array+set}" = set; then :
24483 enableval=$enable_initfini_array;
24484 else
24485
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24487 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24488 if ${gcc_cv_initfini_array+:} false; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24492 case "${target}" in
24493 ia64-*)
24494 if test "$cross_compiling" = yes; then :
24495 gcc_cv_initfini_array=no
24496 else
24497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24498 /* end confdefs.h. */
24499
24500 #ifndef __ELF__
24501 #error Not an ELF OS
24502 #endif
24503 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24504 if it can be used. */
24505 static int x = -1;
24506 int main (void) { return x; }
24507 int foo (void) { x = 0; }
24508 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24509
24510 _ACEOF
24511 if ac_fn_cxx_try_run "$LINENO"; then :
24512 gcc_cv_initfini_array=yes
24513 else
24514 gcc_cv_initfini_array=no
24515 fi
24516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24517 conftest.$ac_objext conftest.beam conftest.$ac_ext
24518 fi
24519 ;;
24520 *)
24521 gcc_cv_initfini_array=no
24522 if test $in_tree_ld = yes ; then
24523 if test "$gcc_cv_gld_major_version" -eq 2 \
24524 -a "$gcc_cv_gld_minor_version" -ge 22 \
24525 -o "$gcc_cv_gld_major_version" -gt 2 \
24526 && test $in_tree_ld_is_elf = yes; then
24527 gcc_cv_initfini_array=yes
24528 fi
24529 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24530 case $target:$gas in
24531 *:yes)
24532 sh_flags='"a"'
24533 sh_type='%progbits'
24534 ;;
24535 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24536 sh_flags='"a"'
24537 sh_type='@progbits'
24538 ;;
24539 sparc*-*-solaris2*:no)
24540 sh_flags='#alloc'
24541 sh_type='#progbits'
24542 sh_quote='"'
24543 ;;
24544 esac
24545 case "$target:$gnu_ld" in
24546 *:yes)
24547 cat > conftest.s <<EOF
24548 .section .dtors,$sh_flags,$sh_type
24549 .balign 4
24550 .byte 'A', 'A', 'A', 'A'
24551 .section .ctors,$sh_flags,$sh_type
24552 .balign 4
24553 .byte 'B', 'B', 'B', 'B'
24554 .section .fini_array.65530,$sh_flags,$sh_type
24555 .balign 4
24556 .byte 'C', 'C', 'C', 'C'
24557 .section .init_array.65530,$sh_flags,$sh_type
24558 .balign 4
24559 .byte 'D', 'D', 'D', 'D'
24560 .section .dtors.64528,$sh_flags,$sh_type
24561 .balign 4
24562 .byte 'E', 'E', 'E', 'E'
24563 .section .ctors.64528,$sh_flags,$sh_type
24564 .balign 4
24565 .byte 'F', 'F', 'F', 'F'
24566 .section .fini_array.01005,$sh_flags,$sh_type
24567 .balign 4
24568 .byte 'G', 'G', 'G', 'G'
24569 .section .init_array.01005,$sh_flags,$sh_type
24570 .balign 4
24571 .byte 'H', 'H', 'H', 'H'
24572 .text
24573 .globl _start
24574 _start:
24575 EOF
24576 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24577 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24578 && $gcc_cv_objdump -s -j .init_array conftest \
24579 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24580 && $gcc_cv_objdump -s -j .fini_array conftest \
24581 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24582 gcc_cv_initfini_array=yes
24583 fi
24584 ;;
24585 *-*-solaris2*:no)
24586 # When Solaris ld added constructor priority support, it was
24587 # decided to only handle .init_array.N/.fini_array.N since
24588 # there was no need for backwards compatibility with
24589 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24590 # sections with correct execution order resp. to
24591 # .init_array/.fini_array, while gld merges them into
24592 # .init_array/.fini_array.
24593 cat > conftest.s <<EOF
24594 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24595 .align 4
24596 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24597 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24598 .align 4
24599 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24600 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24601 .align 4
24602 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24603 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24604 .align 4
24605 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24606 .text
24607 .globl _start
24608 _start:
24609 EOF
24610 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24611 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24612 && $gcc_cv_objdump -s -j .init_array conftest \
24613 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24614 && $gcc_cv_objdump -s -j .fini_array conftest \
24615 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24616 gcc_cv_initfini_array=yes
24617 fi
24618 ;;
24619 esac
24620 rm -f conftest conftest.*
24621 fi
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24624
24625 #ifndef __ELF__
24626 # error Not an ELF OS
24627 #endif
24628 #include <stdlib.h>
24629 #if defined __GLIBC_PREREQ
24630 # if __GLIBC_PREREQ (2, 4)
24631 # else
24632 # error GLIBC 2.4 required
24633 # endif
24634 #else
24635 # if defined __sun__ && defined __svr4__
24636 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24637 # else
24638 # error The C library not known to support .init_array/.fini_array
24639 # endif
24640 #endif
24641
24642 _ACEOF
24643 if ac_fn_cxx_try_cpp "$LINENO"; then :
24644
24645 else
24646 gcc_cv_initfini_array=no
24647 fi
24648 rm -f conftest.err conftest.i conftest.$ac_ext;;
24649 esac
24650 else
24651 case "${target}" in
24652 aarch64*-linux-gnu*)
24653 # AArch64 postdates glibc support for .init_array/.fini_array,
24654 # so we don't need the preprocessor test above.
24655 gcc_cv_initfini_array=yes
24656 ;;
24657
24658 *)
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24660 $as_echo_n "checking cross compile... guessing... " >&6; }
24661 gcc_cv_initfini_array=no
24662 ;;
24663 esac
24664 fi
24665 fi
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24667 $as_echo "$gcc_cv_initfini_array" >&6; }
24668 enable_initfini_array=$gcc_cv_initfini_array
24669
24670 fi
24671
24672
24673 cat >>confdefs.h <<_ACEOF
24674 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24675 _ACEOF
24676
24677
24678
24679 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24680 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24681 # these directives, even when they appear to accept them.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24683 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24684 if ${gcc_cv_as_leb128+:} false; then :
24685 $as_echo_n "(cached) " >&6
24686 else
24687 gcc_cv_as_leb128=no
24688 if test x$gcc_cv_as != x; then
24689 $as_echo ' .data
24690 .uleb128 L2 - L1
24691 L1:
24692 .uleb128 1280
24693 .sleb128 -1010
24694 L2:
24695 .uleb128 0x8000000000000000
24696 ' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704
24705 if test "x$gcc_cv_objdump" != x; then
24706 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24707 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24708 gcc_cv_as_leb128=yes
24709 fi
24710 elif test "x$gcc_cv_otool" != x; then
24711 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24712 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24713 gcc_cv_as_leb128=yes
24714 fi
24715 else
24716 # play safe, assume the assembler is broken.
24717 :
24718 fi
24719
24720 else
24721 echo "configure: failed program was" >&5
24722 cat conftest.s >&5
24723 fi
24724 rm -f conftest.o conftest.s
24725 fi
24726 fi
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24728 $as_echo "$gcc_cv_as_leb128" >&6; }
24729 if test $gcc_cv_as_leb128 = yes; then
24730
24731 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24732
24733 fi
24734 if test $gcc_cv_as_leb128 != yes; then
24735
24736 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24737
24738 fi
24739
24740 # Determine if an .eh_frame section is read-only.
24741 gcc_fn_eh_frame_ro () {
24742 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24743 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24744 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24745 }
24746
24747 # Check if we have assembler support for unwind directives.
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24749 $as_echo_n "checking assembler for cfi directives... " >&6; }
24750 if ${gcc_cv_as_cfi_directive+:} false; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 gcc_cv_as_cfi_directive=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo ' .text
24756 .cfi_startproc
24757 .cfi_offset 0, 0
24758 .cfi_same_value 1
24759 .cfi_def_cfa 1, 2
24760 .cfi_escape 1, 2, 3, 4, 5
24761 .cfi_endproc' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 case "$target" in
24770 *-*-solaris*)
24771 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24772 # read-only and read-write sections, we need to make sure that the
24773 # assembler used emits read-write .eh_frame sections.
24774 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24775 gcc_cv_as_cfi_directive=yes
24776 elif test "x$gcc_cv_objdump" = x; then
24777 # No objdump, err on the side of caution.
24778 gcc_cv_as_cfi_directive=no
24779 else
24780 if test x$gas = xyes; then
24781 as_32_opt="--32"
24782 as_64_opt="--64"
24783 else
24784 as_32_opt="-m32"
24785 as_64_opt="-m64"
24786 fi
24787 case "$target" in
24788 sparc*-*-solaris2.*)
24789 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24790 if gcc_fn_eh_frame_ro $as_32_opt \
24791 || gcc_fn_eh_frame_ro $as_64_opt; then
24792 gcc_cv_as_cfi_directive=no
24793 else
24794 gcc_cv_as_cfi_directive=yes
24795 fi
24796 ;;
24797 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24798 # On Solaris/x86, make sure that GCC and assembler agree on using
24799 # read-only .eh_frame sections for 64-bit.
24800 if gcc_fn_eh_frame_ro $as_32_opt; then
24801 gcc_cv_as_cfi_directive=no
24802 elif gcc_fn_eh_frame_ro $as_64_opt; then
24803 gcc_cv_as_cfi_directive=yes
24804 else
24805 gcc_cv_as_cfi_directive=no
24806 fi
24807 ;;
24808 esac
24809 fi
24810 ;;
24811 *-*-*)
24812 gcc_cv_as_cfi_directive=yes
24813 ;;
24814 esac
24815 else
24816 echo "configure: failed program was" >&5
24817 cat conftest.s >&5
24818 fi
24819 rm -f conftest.o conftest.s
24820 fi
24821 fi
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24823 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24824
24825
24826 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24828 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24829 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24830 $as_echo_n "(cached) " >&6
24831 else
24832 gcc_cv_as_cfi_advance_working=no
24833 if test x$gcc_cv_as != x; then
24834 $as_echo ' .text
24835 .cfi_startproc
24836 .cfi_adjust_cfa_offset 64
24837 .skip 75040, 0
24838 .cfi_adjust_cfa_offset 128
24839 .cfi_endproc' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847
24848 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24849 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24850 gcc_cv_as_cfi_advance_working=yes
24851 fi
24852
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24856 fi
24857 rm -f conftest.o conftest.s
24858 fi
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24861 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24862
24863
24864 else
24865 # no objdump, err on the side of caution
24866 gcc_cv_as_cfi_advance_working=no
24867 fi
24868
24869
24870 cat >>confdefs.h <<_ACEOF
24871 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24872 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24873 _ACEOF
24874
24875
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24878 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24879 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_cfi_personality_directive=no
24883 if test x$gcc_cv_as != x; then
24884 $as_echo ' .text
24885 .cfi_startproc
24886 .cfi_personality 0, symbol
24887 .cfi_endproc' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 gcc_cv_as_cfi_personality_directive=yes
24896 else
24897 echo "configure: failed program was" >&5
24898 cat conftest.s >&5
24899 fi
24900 rm -f conftest.o conftest.s
24901 fi
24902 fi
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24904 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24905
24906
24907
24908 cat >>confdefs.h <<_ACEOF
24909 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24910 _ACEOF
24911
24912
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24914 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24915 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 gcc_cv_as_cfi_sections_directive=no
24919 if test x$gcc_cv_as != x; then
24920 $as_echo ' .text
24921 .cfi_sections .debug_frame, .eh_frame
24922 .cfi_startproc
24923 .cfi_endproc' > conftest.s
24924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24930 then
24931 case $target_os in
24932 win32 | pe | cygwin* | mingw32*)
24933 # Need to check that we generated the correct relocation for the
24934 # .debug_frame section. This was fixed for binutils 2.21.
24935 gcc_cv_as_cfi_sections_directive=no
24936 if test "x$gcc_cv_objdump" != x; then
24937 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24938 grep -i secrel > /dev/null; then
24939 gcc_cv_as_cfi_sections_directive=yes
24940 fi
24941 fi
24942 ;;
24943 *)
24944 gcc_cv_as_cfi_sections_directive=yes
24945 ;;
24946 esac
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24950 fi
24951 rm -f conftest.o conftest.s
24952 fi
24953 fi
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24955 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24956
24957
24958
24959
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24962 _ACEOF
24963
24964
24965 # GAS versions up to and including 2.11.0 may mis-optimize
24966 # .eh_frame data.
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24968 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24969 if ${gcc_cv_as_eh_frame+:} false; then :
24970 $as_echo_n "(cached) " >&6
24971 else
24972 gcc_cv_as_eh_frame=no
24973 if test x$gcc_cv_as != x; then
24974 $as_echo ' .text
24975 .LFB1:
24976 .4byte 0
24977 .L1:
24978 .4byte 0
24979 .LFE1:
24980 .section .eh_frame,"aw",@progbits
24981 __FRAME_BEGIN__:
24982 .4byte .LECIE1-.LSCIE1
24983 .LSCIE1:
24984 .4byte 0x0
24985 .byte 0x1
24986 .ascii "z\0"
24987 .byte 0x1
24988 .byte 0x78
24989 .byte 0x1a
24990 .byte 0x0
24991 .byte 0x4
24992 .4byte 1
24993 .p2align 1
24994 .LECIE1:
24995 .LSFDE1:
24996 .4byte .LEFDE1-.LASFDE1
24997 .LASFDE1:
24998 .4byte .LASFDE1-__FRAME_BEGIN__
24999 .4byte .LFB1
25000 .4byte .LFE1-.LFB1
25001 .byte 0x4
25002 .4byte .LFE1-.LFB1
25003 .byte 0x4
25004 .4byte .L1-.LFB1
25005 .LEFDE1:' > conftest.s
25006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25012 then
25013 cat > conftest.lit <<EOF
25014 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25015 0010 01000000 12000000 18000000 00000000 ................
25016 0020 08000000 04080000 0044 .........D
25017 EOF
25018 cat > conftest.big <<EOF
25019 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25020 0010 00000001 00000012 00000018 00000000 ................
25021 0020 00000008 04000000 0844 .........D
25022 EOF
25023 # If the assembler didn't choke, and we can objdump,
25024 # and we got the correct data, then succeed.
25025 # The text in the here-document typically retains its unix-style line
25026 # endings, while the output of objdump will use host line endings.
25027 # Therefore, use diff -b for the comparisons.
25028 if test x$gcc_cv_objdump != x \
25029 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25030 | tail -3 > conftest.got \
25031 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25032 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25033 then
25034 gcc_cv_as_eh_frame=yes
25035 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }; then
25041 gcc_cv_as_eh_frame=buggy
25042 else
25043 # Uh oh, what do we do now?
25044 gcc_cv_as_eh_frame=no
25045 fi
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25049 fi
25050 rm -f conftest.o conftest.s
25051 fi
25052 fi
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25054 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25055
25056
25057
25058 if test $gcc_cv_as_eh_frame = buggy; then
25059
25060 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25061
25062 fi
25063
25064 # Test if the assembler supports the section flag 'e' or #exclude for
25065 # specifying an excluded section.
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25067 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25068 if ${gcc_cv_as_section_exclude_e+:} false; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 gcc_cv_as_section_exclude_e=no
25072 if test x$gcc_cv_as != x; then
25073 $as_echo '.section foo1,"e"
25074 .byte 0,0,0,0' > conftest.s
25075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25081 then
25082 gcc_cv_as_section_exclude_e=yes
25083 else
25084 echo "configure: failed program was" >&5
25085 cat conftest.s >&5
25086 fi
25087 rm -f conftest.o conftest.s
25088 fi
25089 fi
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25091 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25092
25093
25094 if test $gcc_cv_as_section_exclude_e = no; then
25095 case "${target}" in
25096 # Solaris as uses #exclude instead.
25097 *-*-solaris2*)
25098 case "${target}" in
25099 sparc*-*-solaris2*)
25100 conftest_s='.section "foo1", #exclude'
25101 ;;
25102 i?86-*-solaris2* | x86_64-*-solaris2*)
25103 conftest_s='.section foo1, #exclude'
25104 ;;
25105 esac
25106 ;;
25107 esac
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25109 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25110 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 gcc_cv_as_section_exclude_hash=no
25114 if test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s
25116 .byte 0,0,0,0" > conftest.s
25117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25123 then
25124 gcc_cv_as_section_exclude_hash=yes
25125 else
25126 echo "configure: failed program was" >&5
25127 cat conftest.s >&5
25128 fi
25129 rm -f conftest.o conftest.s
25130 fi
25131 fi
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25133 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25134
25135
25136 fi
25137
25138 cat >>confdefs.h <<_ACEOF
25139 #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`
25140 _ACEOF
25141
25142
25143 # Test if the assembler supports the section flag 'R' for specifying
25144 # section with SHF_GNU_RETAIN.
25145 case "${target}" in
25146 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25147 # assembler supports the section flag 'R', it doesn't mean that
25148 # Solairs ld supports it.
25149 *-*-solaris2*)
25150 gcc_cv_as_shf_gnu_retain=no
25151 ;;
25152 *)
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25154 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25155 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 gcc_cv_as_shf_gnu_retain=no
25159 if test x$gcc_cv_as != x; then
25160 $as_echo '.section .foo,"awR",%progbits
25161 .byte 0' > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_shf_gnu_retain=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25173 fi
25174 rm -f conftest.o conftest.s
25175 fi
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25178 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25179
25180
25181 ;;
25182 esac
25183
25184 cat >>confdefs.h <<_ACEOF
25185 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25186 _ACEOF
25187
25188
25189 # Test if the assembler supports the section flag 'o' for specifying
25190 # section with link-order.
25191 case "${target}" in
25192 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25193 # assembler supports the section flag 'o', it doesn't mean that
25194 # Solairs ld supports it.
25195 *-*-solaris2*)
25196 gcc_cv_as_section_link_order=no
25197 ;;
25198 *)
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25200 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25201 if ${gcc_cv_as_section_link_order+:} false; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 gcc_cv_as_section_link_order=no
25205 if test x$gcc_cv_as != x; then
25206 $as_echo '.section .foo,"a"
25207 .byte 0
25208 .section __patchable_function_entries,"awo",%progbits,.foo
25209 .byte 0' > conftest.s
25210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25216 then
25217 gcc_cv_as_section_link_order=yes
25218 else
25219 echo "configure: failed program was" >&5
25220 cat conftest.s >&5
25221 fi
25222 rm -f conftest.o conftest.s
25223 fi
25224 fi
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25226 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25227
25228
25229 ;;
25230 esac
25231
25232 cat >>confdefs.h <<_ACEOF
25233 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25234 _ACEOF
25235
25236
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25238 $as_echo_n "checking assembler for section merging support... " >&6; }
25239 if ${gcc_cv_as_shf_merge+:} false; then :
25240 $as_echo_n "(cached) " >&6
25241 else
25242 gcc_cv_as_shf_merge=no
25243 if test x$gcc_cv_as != x; then
25244 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_shf_merge=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25256 fi
25257 rm -f conftest.o conftest.s
25258 fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25261 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25262
25263
25264 if test $gcc_cv_as_shf_merge = no; then
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25266 $as_echo_n "checking assembler for section merging support... " >&6; }
25267 if ${gcc_cv_as_shf_merge+:} false; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_shf_merge=no
25271 if test x$gcc_cv_as != x; then
25272 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 gcc_cv_as_shf_merge=yes
25281 else
25282 echo "configure: failed program was" >&5
25283 cat conftest.s >&5
25284 fi
25285 rm -f conftest.o conftest.s
25286 fi
25287 fi
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25289 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25290
25291
25292 fi
25293
25294 cat >>confdefs.h <<_ACEOF
25295 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25296 _ACEOF
25297
25298
25299 gcc_cv_ld_aligned_shf_merge=yes
25300 case "$target" in
25301 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25302 # alignment > 1.
25303 sparc*-*-solaris2.11*)
25304 if test x"$gnu_ld" = xno \
25305 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25306 gcc_cv_ld_aligned_shf_merge=no
25307 fi
25308 ;;
25309 esac
25310
25311 cat >>confdefs.h <<_ACEOF
25312 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25313 _ACEOF
25314
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25317 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25318 if ${gcc_cv_as_comdat_group+:} false; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25321 gcc_cv_as_comdat_group=no
25322 if test x$gcc_cv_as != x; then
25323 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }
25330 then
25331 gcc_cv_as_comdat_group=yes
25332 else
25333 echo "configure: failed program was" >&5
25334 cat conftest.s >&5
25335 fi
25336 rm -f conftest.o conftest.s
25337 fi
25338 fi
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25340 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25341
25342
25343 if test $gcc_cv_as_comdat_group = yes; then
25344 gcc_cv_as_comdat_group_percent=no
25345 gcc_cv_as_comdat_group_group=no
25346 else
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25348 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25349 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_comdat_group_percent=no
25353 if test x$gcc_cv_as != x; then
25354 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25360 test $ac_status = 0; }; }
25361 then
25362 gcc_cv_as_comdat_group_percent=yes
25363 else
25364 echo "configure: failed program was" >&5
25365 cat conftest.s >&5
25366 fi
25367 rm -f conftest.o conftest.s
25368 fi
25369 fi
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25371 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25372
25373
25374 if test $gcc_cv_as_comdat_group_percent = yes; then
25375 gcc_cv_as_comdat_group_group=no
25376 else
25377 case "${target}" in
25378 # Sun as uses a completely different syntax.
25379 *-*-solaris2*)
25380 case "${target}" in
25381 sparc*-*-solaris2*)
25382 conftest_s='
25383 .group foo,".text%foo",#comdat
25384 .section ".text%foo", #alloc,#execinstr,#progbits
25385 .globl foo
25386 foo:
25387 '
25388 ;;
25389 i?86-*-solaris2* | x86_64-*-solaris2*)
25390 conftest_s='
25391 .group foo,.text%foo,#comdat
25392 .section .text%foo, "ax", @progbits
25393 .globl foo
25394 foo:
25395 '
25396 ;;
25397 esac
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25399 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25400 if ${gcc_cv_as_comdat_group_group+:} false; then :
25401 $as_echo_n "(cached) " >&6
25402 else
25403 gcc_cv_as_comdat_group_group=no
25404 if test x$gcc_cv_as != x; then
25405 $as_echo "$conftest_s" > conftest.s
25406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25412 then
25413 gcc_cv_as_comdat_group_group=yes
25414 else
25415 echo "configure: failed program was" >&5
25416 cat conftest.s >&5
25417 fi
25418 rm -f conftest.o conftest.s
25419 fi
25420 fi
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25422 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25423
25424
25425 ;;
25426 esac
25427 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25428 gcc_cv_as_comdat_group_group=no
25429 fi
25430 fi
25431 fi
25432 if test x"$ld_is_gold" = xyes; then
25433 comdat_group=yes
25434 elif test x"$ld_is_mold" = xyes; then
25435 comdat_group=yes
25436 elif test $in_tree_ld = yes ; then
25437 comdat_group=no
25438 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 \
25439 && test $in_tree_ld_is_elf = yes; then
25440 comdat_group=yes
25441 fi
25442 elif echo "$ld_ver" | grep GNU > /dev/null; then
25443 comdat_group=yes
25444 if test 0"$ld_date" -lt 20050308; then
25445 if test -n "$ld_date"; then
25446 # If there was date string, but was earlier than 2005-03-08, fail
25447 comdat_group=no
25448 elif test "$ld_vers_major" -lt 2; then
25449 comdat_group=no
25450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25451 comdat_group=no
25452 fi
25453 fi
25454 else
25455 case "${target}" in
25456 *-*-solaris2.1[1-9]*)
25457 comdat_group=no
25458 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25459 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25460 # version 1.688.
25461 #
25462 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25463 # least ld version 1.2267.
25464 if test "$ld_vers_major" -gt 1; then
25465 comdat_group=yes
25466 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25467 comdat_group=yes
25468 elif test "$ld_vers_minor" -ge 2267; then
25469 comdat_group=yes
25470 fi
25471 ;;
25472 *)
25473 # Assume linkers other than GNU ld don't support COMDAT group.
25474 comdat_group=no
25475 ;;
25476 esac
25477 fi
25478 # Allow overriding the automatic COMDAT group tests above.
25479 # Check whether --enable-comdat was given.
25480 if test "${enable_comdat+set}" = set; then :
25481 enableval=$enable_comdat; comdat_group="$enable_comdat"
25482 fi
25483
25484 if test $comdat_group = no; then
25485 gcc_cv_as_comdat_group=no
25486 gcc_cv_as_comdat_group_percent=no
25487 gcc_cv_as_comdat_group_group=no
25488 fi
25489
25490 cat >>confdefs.h <<_ACEOF
25491 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25492 || test $gcc_cv_as_comdat_group_percent = yes \
25493 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25494 _ACEOF
25495
25496
25497 # Restrict this test to Solaris/x86: other targets define this statically.
25498 case "${target}" in
25499 i?86-*-solaris2* | x86_64-*-solaris2*)
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25501 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25502 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25503 hidden_linkonce=yes
25504 else
25505 case "${target}" in
25506 # Full support for hidden thunks in linkonce sections only appeared in
25507 # Solaris 11/OpenSolaris.
25508 *-*-solaris2.1[1-9]*)
25509 hidden_linkonce=yes
25510 ;;
25511 *)
25512 hidden_linkonce=no
25513 ;;
25514 esac
25515 fi
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25517 $as_echo "$hidden_linkonce" >&6; }
25518
25519 cat >>confdefs.h <<_ACEOF
25520 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25521 _ACEOF
25522
25523 ;;
25524 esac
25525
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25527 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25528 if ${gcc_cv_as_is_stmt+:} false; then :
25529 $as_echo_n "(cached) " >&6
25530 else
25531 gcc_cv_as_is_stmt=no
25532 if test x$gcc_cv_as != x; then
25533 $as_echo ' .text
25534 .file 1 "conf.c"
25535 .loc 1 1 0 is_stmt 1' > conftest.s
25536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25542 then
25543 gcc_cv_as_is_stmt=yes
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25547 fi
25548 rm -f conftest.o conftest.s
25549 fi
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25552 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25553 if test $gcc_cv_as_is_stmt = yes; then
25554
25555 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25556
25557 fi
25558
25559
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25561 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25562 if ${gcc_cv_as_discriminator+:} false; then :
25563 $as_echo_n "(cached) " >&6
25564 else
25565 gcc_cv_as_discriminator=no
25566 if test x$gcc_cv_as != x; then
25567 $as_echo ' .text
25568 .file 1 "conf.c"
25569 .loc 1 1 0 discriminator 1' > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_discriminator=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25581 fi
25582 rm -f conftest.o conftest.s
25583 fi
25584 fi
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25586 $as_echo "$gcc_cv_as_discriminator" >&6; }
25587 if test $gcc_cv_as_discriminator = yes; then
25588
25589 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25590
25591 fi
25592
25593
25594 # Catch the newlib flag of the same name so we can gate GCC features on it.
25595 # Check whether --enable-newlib-nano-formatted-io was given.
25596 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25597 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25598 yes|no)
25599 ;;
25600 *)
25601 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25602 ;;
25603 esac
25604 fi
25605
25606
25607 # Thread-local storage - the check is heavily parameterized.
25608 conftest_s=
25609 tls_as_opt=
25610 case "$target" in
25611 alpha*-*-*)
25612 conftest_s='
25613 .section ".tdata","awT",@progbits
25614 foo: .long 25
25615 .text
25616 ldq $27,__tls_get_addr($29) !literal!1
25617 lda $16,foo($29) !tlsgd!1
25618 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25619 ldq $27,__tls_get_addr($29) !literal!2
25620 lda $16,foo($29) !tlsldm!2
25621 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25622 ldq $1,foo($29) !gotdtprel
25623 ldah $2,foo($29) !dtprelhi
25624 lda $3,foo($2) !dtprello
25625 lda $4,foo($29) !dtprel
25626 ldq $1,foo($29) !gottprel
25627 ldah $2,foo($29) !tprelhi
25628 lda $3,foo($2) !tprello
25629 lda $4,foo($29) !tprel'
25630 tls_as_opt=--fatal-warnings
25631 ;;
25632 arc*-*-*)
25633 conftest_s='
25634 add_s r0,r0, @foo@tpoff'
25635 ;;
25636 cris-*-*|crisv32-*-*)
25637 conftest_s='
25638 .section ".tdata","awT",@progbits
25639 x: .long 25
25640 .text
25641 move.d x:IE,$r10
25642 nop'
25643 tls_as_opt=--fatal-warnings
25644 ;;
25645 frv*-*-*)
25646 conftest_s='
25647 .section ".tdata","awT",@progbits
25648 x: .long 25
25649 .text
25650 call #gettlsoff(x)'
25651 ;;
25652 hppa*-*-linux*)
25653 conftest_s='
25654 t1: .reg %r20
25655 t2: .reg %r21
25656 gp: .reg %r19
25657 .section ".tdata","awT",@progbits
25658 foo: .long 25
25659 .text
25660 .align 4
25661 addil LT%foo-$tls_gdidx$,gp
25662 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25663 b __tls_get_addr
25664 nop
25665 addil LT%foo-$tls_ldidx$,gp
25666 b __tls_get_addr
25667 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25668 addil LR%foo-$tls_dtpoff$,%ret0
25669 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25670 mfctl %cr27,%t1
25671 addil LT%foo-$tls_ieoff$,gp
25672 ldw RT%foo-$tls_ieoff$(%r1),%t2
25673 add %t1,%t2,%t3
25674 mfctl %cr27,%t1
25675 addil LR%foo-$tls_leoff$,%t1
25676 ldo RR%foo-$tls_leoff$(%r1),%t2'
25677 tls_as_opt=--fatal-warnings
25678 ;;
25679 arm*-*-*)
25680 conftest_s='
25681 .section ".tdata","awT",%progbits
25682 foo: .long 25
25683 .text
25684 .word foo(gottpoff)
25685 .word foo(tpoff)
25686 .word foo(tlsgd)
25687 .word foo(tlsldm)
25688 .word foo(tlsldo)'
25689 ;;
25690 i[34567]86-*-* | x86_64-*-*)
25691 case "$target" in
25692 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25693 on_solaris=yes
25694 ;;
25695 *)
25696 on_solaris=no
25697 ;;
25698 esac
25699 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25700 conftest_s='
25701 .section .tdata,"awt",@progbits'
25702 tls_section_flag=t
25703
25704 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25705
25706 else
25707 conftest_s='
25708 .section ".tdata","awT",@progbits'
25709 tls_section_flag=T
25710 tls_as_opt="--fatal-warnings"
25711 fi
25712 case "$target" in
25713 i[34567]86-*-*)
25714 if test x$on_solaris = xyes; then
25715 case $gas_flag in
25716 yes) tls_as_opt="$tls_as_opt --32" ;;
25717 esac
25718 fi
25719 conftest_s="$conftest_s
25720 foo: .long 25
25721 .text
25722 movl %gs:0, %eax
25723 leal foo@tlsgd(,%ebx,1), %eax
25724 leal foo@tlsldm(%ebx), %eax
25725 leal foo@dtpoff(%eax), %edx
25726 movl foo@gottpoff(%ebx), %eax
25727 subl foo@gottpoff(%ebx), %eax
25728 addl foo@gotntpoff(%ebx), %eax
25729 movl foo@indntpoff, %eax
25730 movl \$foo@tpoff, %eax
25731 subl \$foo@tpoff, %eax
25732 leal foo@ntpoff(%ecx), %eax"
25733 ;;
25734 x86_64-*-*)
25735 if test x$on_solaris = xyes; then
25736 case $gas_flag in
25737 yes) tls_as_opt="$tls_as_opt --64" ;;
25738 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25739 esac
25740 fi
25741 conftest_s="$conftest_s
25742 foo: .long 25
25743 .text
25744 movq %fs:0, %rax
25745 leaq foo@tlsgd(%rip), %rdi
25746 leaq foo@tlsld(%rip), %rdi
25747 leaq foo@dtpoff(%rax), %rdx
25748 movq foo@gottpoff(%rip), %rax
25749 movq \$foo@tpoff, %rax"
25750 ;;
25751 esac
25752 ;;
25753 ia64-*-*)
25754 conftest_s='
25755 .section ".tdata","awT",@progbits
25756 foo: data8 25
25757 .text
25758 addl r16 = @ltoff(@dtpmod(foo#)), gp
25759 addl r17 = @ltoff(@dtprel(foo#)), gp
25760 addl r18 = @ltoff(@tprel(foo#)), gp
25761 addl r19 = @dtprel(foo#), gp
25762 adds r21 = @dtprel(foo#), r13
25763 movl r23 = @dtprel(foo#)
25764 addl r20 = @tprel(foo#), gp
25765 adds r22 = @tprel(foo#), r13
25766 movl r24 = @tprel(foo#)'
25767 tls_as_opt=--fatal-warnings
25768 ;;
25769 loongarch*-*-*)
25770 conftest_s='
25771 .section .tdata,"awT",@progbits
25772 x: .word 2
25773 .text
25774 la.tls.gd $a0,x
25775 bl __tls_get_addr'
25776 tls_first_major=0
25777 tls_first_minor=0
25778 tls_as_opt='--fatal-warnings'
25779 ;;
25780 microblaze*-*-*)
25781 conftest_s='
25782 .section .tdata,"awT",@progbits
25783 x:
25784 .word 2
25785 .text
25786 addik r5,r20,x@TLSGD
25787 addik r5,r20,x@TLSLDM'
25788 tls_as_opt='--fatal-warnings'
25789 ;;
25790 mips*-*-*)
25791 conftest_s='
25792 .section .tdata,"awT",@progbits
25793 x:
25794 .word 2
25795 .text
25796 addiu $4, $28, %tlsgd(x)
25797 addiu $4, $28, %tlsldm(x)
25798 lui $4, %dtprel_hi(x)
25799 addiu $4, $4, %dtprel_lo(x)
25800 lw $4, %gottprel(x)($28)
25801 lui $4, %tprel_hi(x)
25802 addiu $4, $4, %tprel_lo(x)'
25803 tls_as_opt='-32 --fatal-warnings'
25804 ;;
25805 m68k-*-*)
25806 conftest_s='
25807 .section .tdata,"awT",@progbits
25808 x:
25809 .word 2
25810 .text
25811 foo:
25812 move.l x@TLSGD(%a5),%a0
25813 move.l x@TLSLDM(%a5),%a0
25814 move.l x@TLSLDO(%a5),%a0
25815 move.l x@TLSIE(%a5),%a0
25816 move.l x@TLSLE(%a5),%a0'
25817 tls_as_opt='--fatal-warnings'
25818 ;;
25819 nios2-*-*)
25820 conftest_s='
25821 .section ".tdata","awT",@progbits'
25822 tls_as_opt="--fatal-warnings"
25823 ;;
25824 aarch64*-*-*)
25825 conftest_s='
25826 .section ".tdata","awT",%progbits
25827 foo: .long 25
25828 .text
25829 adrp x0, :tlsgd:x
25830 add x0, x0, #:tlsgd_lo12:x
25831 bl __tls_get_addr
25832 nop'
25833 tls_as_opt='--fatal-warnings'
25834 ;;
25835 or1k*-*-*)
25836 conftest_s='
25837 .section ".tdata","awT",@progbits
25838 foo: .long 25
25839 .text
25840 l.movhi r3, tpoffha(foo)
25841 l.add r3, r3, r10
25842 l.lwz r4, tpofflo(foo)(r3)'
25843 tls_as_opt=--fatal-warnings
25844 ;;
25845 powerpc-ibm-aix*)
25846 conftest_s='
25847 .extern __get_tpointer
25848 .toc
25849 LC..1:
25850 .tc a[TC],a[TL]@le
25851 .csect .text[PR]
25852 .tlstest:
25853 lwz 9,LC..1(2)
25854 bla __get_tpointer
25855 lwzx 3,9,3
25856 .globl a
25857 .csect a[TL],4
25858 a:
25859 .space 4'
25860 ;;
25861 powerpc64*-*-*)
25862 conftest_s='
25863 .section ".tdata","awT",@progbits
25864 .align 3
25865 ld0: .space 8
25866 ld1: .space 8
25867 x1: .space 8
25868 x2: .space 8
25869 x3: .space 8
25870 .text
25871 addi 3,2,ld0@got@tlsgd
25872 bl .__tls_get_addr
25873 nop
25874 addi 3,2,ld1@toc
25875 bl .__tls_get_addr
25876 nop
25877 addi 3,2,x1@got@tlsld
25878 bl .__tls_get_addr
25879 nop
25880 addi 9,3,x1@dtprel
25881 bl .__tls_get_addr
25882 nop
25883 addis 9,3,x2@dtprel@ha
25884 addi 9,9,x2@dtprel@l
25885 bl .__tls_get_addr
25886 nop
25887 ld 9,x3@got@dtprel(2)
25888 add 9,9,3
25889 bl .__tls_get_addr
25890 nop'
25891 tls_as_opt="-a64 --fatal-warnings"
25892 ;;
25893 powerpc*-*-*)
25894 conftest_s='
25895 .section ".tdata","awT",@progbits
25896 .align 2
25897 ld0: .space 4
25898 ld1: .space 4
25899 x1: .space 4
25900 x2: .space 4
25901 x3: .space 4
25902 .text
25903 addi 3,31,ld0@got@tlsgd
25904 bl __tls_get_addr
25905 addi 3,31,x1@got@tlsld
25906 bl __tls_get_addr
25907 addi 9,3,x1@dtprel
25908 addis 9,3,x2@dtprel@ha
25909 addi 9,9,x2@dtprel@l
25910 lwz 9,x3@got@tprel(31)
25911 add 9,9,x@tls
25912 addi 9,2,x1@tprel
25913 addis 9,2,x2@tprel@ha
25914 addi 9,9,x2@tprel@l'
25915 tls_as_opt="-a32 --fatal-warnings"
25916 ;;
25917 riscv*-*-*)
25918 conftest_s='
25919 .section .tdata,"awT",@progbits
25920 x: .word 2
25921 .text
25922 la.tls.gd a0,x
25923 call __tls_get_addr'
25924 tls_as_opt='--fatal-warnings'
25925 ;;
25926 s390-*-*)
25927 conftest_s='
25928 .section ".tdata","awT",@progbits
25929 foo: .long 25
25930 .text
25931 .long foo@TLSGD
25932 .long foo@TLSLDM
25933 .long foo@DTPOFF
25934 .long foo@NTPOFF
25935 .long foo@GOTNTPOFF
25936 .long foo@INDNTPOFF
25937 l %r1,foo@GOTNTPOFF(%r12)
25938 l %r1,0(%r1):tls_load:foo
25939 bas %r14,0(%r1,%r13):tls_gdcall:foo
25940 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25941 tls_as_opt="-m31 --fatal-warnings"
25942 ;;
25943 s390x-*-*)
25944 conftest_s='
25945 .section ".tdata","awT",@progbits
25946 foo: .long 25
25947 .text
25948 .quad foo@TLSGD
25949 .quad foo@TLSLDM
25950 .quad foo@DTPOFF
25951 .quad foo@NTPOFF
25952 .quad foo@GOTNTPOFF
25953 lg %r1,foo@GOTNTPOFF(%r12)
25954 larl %r1,foo@INDNTPOFF
25955 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25956 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25957 tls_as_opt="-m64 -Aesame --fatal-warnings"
25958 ;;
25959 sh-*-* | sh[123456789lbe]*-*-*)
25960 conftest_s='
25961 .section ".tdata","awT",@progbits
25962 foo: .long 25
25963 .text
25964 .long foo@TLSGD
25965 .long foo@TLSLDM
25966 .long foo@DTPOFF
25967 .long foo@GOTTPOFF
25968 .long foo@TPOFF'
25969 tls_as_opt=--fatal-warnings
25970 ;;
25971 sparc*-*-*)
25972 case "$target" in
25973 sparc*-sun-solaris2.*)
25974 on_solaris=yes
25975 ;;
25976 *)
25977 on_solaris=no
25978 ;;
25979 esac
25980 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25981 conftest_s='
25982 .section ".tdata",#alloc,#write,#tls'
25983 else
25984 conftest_s='
25985 .section ".tdata","awT",@progbits'
25986 tls_as_opt="-32 --fatal-warnings"
25987 fi
25988 conftest_s="$conftest_s
25989 foo: .long 25
25990 .text
25991 sethi %tgd_hi22(foo), %o0
25992 add %o0, %tgd_lo10(foo), %o1
25993 add %l7, %o1, %o0, %tgd_add(foo)
25994 call __tls_get_addr, %tgd_call(foo)
25995 sethi %tldm_hi22(foo), %l1
25996 add %l1, %tldm_lo10(foo), %l2
25997 add %l7, %l2, %o0, %tldm_add(foo)
25998 call __tls_get_addr, %tldm_call(foo)
25999 sethi %tldo_hix22(foo), %l3
26000 xor %l3, %tldo_lox10(foo), %l4
26001 add %o0, %l4, %l5, %tldo_add(foo)
26002 sethi %tie_hi22(foo), %o3
26003 add %o3, %tie_lo10(foo), %o3
26004 ld [%l7 + %o3], %o2, %tie_ld(foo)
26005 add %g7, %o2, %o4, %tie_add(foo)
26006 sethi %tle_hix22(foo), %l1
26007 xor %l1, %tle_lox10(foo), %o5
26008 ld [%g7 + %o5], %o1"
26009 ;;
26010 xtensa*-*-*)
26011 conftest_s='
26012 .section ".tdata","awT",@progbits
26013 foo: .long 25
26014 .text
26015 movi a8, foo@TLSFUNC
26016 movi a10, foo@TLSARG
26017 callx8.tls a8, foo@TLSCALL'
26018 ;;
26019 esac
26020 set_have_as_tls=no
26021 if test "x$enable_tls" = xno ; then
26022 : # TLS explicitly disabled.
26023 elif test "x$enable_tls" = xyes ; then
26024 set_have_as_tls=yes # TLS explicitly enabled.
26025 elif test -z "$conftest_s"; then
26026 : # If we don't have a check, assume no support.
26027 else
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26029 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26030 if ${gcc_cv_as_tls+:} false; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_tls=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo "$conftest_s" > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 gcc_cv_as_tls=yes
26044 else
26045 echo "configure: failed program was" >&5
26046 cat conftest.s >&5
26047 fi
26048 rm -f conftest.o conftest.s
26049 fi
26050 fi
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26052 $as_echo "$gcc_cv_as_tls" >&6; }
26053 if test $gcc_cv_as_tls = yes; then
26054 set_have_as_tls=yes
26055 fi
26056
26057 fi
26058 if test $set_have_as_tls = yes ; then
26059
26060 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26061
26062 fi
26063
26064 # Target-specific assembler checks.
26065
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26067 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26068 gcc_cv_ld_static_dynamic=no
26069 gcc_cv_ld_static_option='-Bstatic'
26070 gcc_cv_ld_dynamic_option='-Bdynamic'
26071 if test $in_tree_ld = yes ; then
26072 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
26073 gcc_cv_ld_static_dynamic=yes
26074 fi
26075 elif test x$gcc_cv_ld != x; then
26076 # Check if linker supports -Bstatic/-Bdynamic option
26077 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26078 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26079 gcc_cv_ld_static_dynamic=yes
26080 else
26081 case "$target" in
26082 # AIX ld uses -b flags
26083 *-*-aix4.[23]* | *-*-aix[5-9]*)
26084 gcc_cv_ld_static_dynamic=yes
26085 gcc_cv_ld_static_option="-bstatic"
26086 gcc_cv_ld_dynamic_option="-bdynamic"
26087 ;;
26088 # HP-UX ld uses -a flags to select between shared and archive.
26089 *-*-hpux*)
26090 if test x"$gnu_ld" = xno; then
26091 gcc_cv_ld_static_dynamic=yes
26092 gcc_cv_ld_static_option="-aarchive_shared"
26093 gcc_cv_ld_dynamic_option="-adefault"
26094 fi
26095 ;;
26096 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26097 *-*-solaris2*)
26098 gcc_cv_ld_static_dynamic=yes
26099 ;;
26100 esac
26101 fi
26102 fi
26103 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26104
26105 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26106
26107
26108 cat >>confdefs.h <<_ACEOF
26109 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26110 _ACEOF
26111
26112
26113 cat >>confdefs.h <<_ACEOF
26114 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26115 _ACEOF
26116
26117 fi
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26119 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26120
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26122 $as_echo_n "checking linker --version-script option... " >&6; }
26123 gcc_cv_ld_version_script=no
26124 ld_version_script_option=''
26125 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26126 gcc_cv_ld_version_script=yes
26127 ld_version_script_option='--version-script'
26128 elif test x$gcc_cv_ld != x; then
26129 case "$target" in
26130 # Solaris 2 ld always supports -M. It also supports a subset of
26131 # --version-script since Solaris 11.4, but requires
26132 # -z gnu-version-script-compat to activate.
26133 *-*-solaris2*)
26134 gcc_cv_ld_version_script=yes
26135 ld_version_script_option='-M'
26136 ;;
26137 esac
26138 fi
26139 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26141 $as_echo "$gcc_cv_ld_version_script" >&6; }
26142
26143
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26145 $as_echo_n "checking linker soname option... " >&6; }
26146 gcc_cv_ld_soname=no
26147 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26148 gcc_cv_ld_soname=yes
26149 ld_soname_option='-soname'
26150 elif test x$gcc_cv_ld != x; then
26151 case "$target" in
26152 *-*-darwin*)
26153 gcc_cv_ld_soname=yes
26154 ld_soname_option='-install_name'
26155 ;;
26156 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26157 # ld compatiblity since some Solaris 10 update.
26158 *-*-solaris2*)
26159 gcc_cv_ld_soname=yes
26160 ld_soname_option='-h'
26161 ;;
26162 esac
26163 fi
26164 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26166 $as_echo "$gcc_cv_ld_soname" >&6; }
26167
26168
26169 if test x"$demangler_in_ld" = xyes; then
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26171 $as_echo_n "checking linker --demangle support... " >&6; }
26172 gcc_cv_ld_demangle=no
26173 if test $in_tree_ld = yes; then
26174 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 \
26175 gcc_cv_ld_demangle=yes
26176 fi
26177 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26178 # Check if the GNU linker supports --demangle option
26179 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26180 gcc_cv_ld_demangle=yes
26181 fi
26182 fi
26183 if test x"$gcc_cv_ld_demangle" = xyes; then
26184
26185 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26186
26187 fi
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26189 $as_echo "$gcc_cv_ld_demangle" >&6; }
26190 fi
26191
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26193 $as_echo_n "checking linker plugin support... " >&6; }
26194 gcc_cv_lto_plugin=0
26195 if test -f liblto_plugin.la; then
26196 save_ld_ver="$ld_ver"
26197 save_ld_vers_major="$ld_vers_major"
26198 save_ld_vers_minor="$ld_vers_minor"
26199 save_ld_is_gold="$ld_is_gold"
26200
26201 ld_is_gold=no
26202
26203 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26204 ld_ver="GNU ld"
26205 # FIXME: ld_is_gold?
26206 ld_vers_major="$gcc_cv_gld_major_version"
26207 ld_vers_minor="$gcc_cv_gld_minor_version"
26208 else
26209 # Determine plugin linker version.
26210 # FIXME: Partial duplicate from above, generalize.
26211 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26212 if echo "$ld_ver" | grep GNU > /dev/null; then
26213 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26214 ld_is_gold=yes
26215 ld_vers=`echo $ld_ver | sed -n \
26216 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26217 else
26218 ld_vers=`echo $ld_ver | sed -n \
26219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26220 fi
26221 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26222 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26223 fi
26224 fi
26225
26226 # Determine plugin support.
26227 if echo "$ld_ver" | grep GNU > /dev/null; then
26228 # Require GNU ld or gold 2.21+ for plugin support by default.
26229 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26230 gcc_cv_lto_plugin=2
26231 elif test "$ld_is_mold" = yes; then
26232 gcc_cv_lto_plugin=2
26233 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26234 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26235 gcc_cv_lto_plugin=1
26236 fi
26237 fi
26238
26239 ld_ver="$save_ld_ver"
26240 ld_vers_major="$save_ld_vers_major"
26241 ld_vers_minor="$save_ld_vers_minor"
26242 ld_is_gold="$save_ld_is_gold"
26243 fi
26244
26245 cat >>confdefs.h <<_ACEOF
26246 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26247 _ACEOF
26248
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26250 $as_echo "$gcc_cv_lto_plugin" >&6; }
26251
26252 # Target OS-specific assembler checks.
26253
26254 case "$target_os" in
26255 darwin*)
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26257 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26258 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_mmacosx_version_min=no
26262 if test x$gcc_cv_as != x; then
26263 $as_echo '.text' > conftest.s
26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26270 then
26271 gcc_cv_as_mmacosx_version_min=yes
26272 else
26273 echo "configure: failed program was" >&5
26274 cat conftest.s >&5
26275 fi
26276 rm -f conftest.o conftest.s
26277 fi
26278 fi
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26280 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26281 if test $gcc_cv_as_mmacosx_version_min = yes; then
26282
26283 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26284
26285 fi
26286
26287 ;;
26288 esac
26289
26290 # Target CPU-specific assembler checks.
26291
26292 case "$target" in
26293 aarch64*-*-*)
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26295 $as_echo_n "checking assembler for -mabi option... " >&6; }
26296 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26297 $as_echo_n "(cached) " >&6
26298 else
26299 gcc_cv_as_aarch64_mabi=no
26300 if test x$gcc_cv_as != x; then
26301 $as_echo '.text' > conftest.s
26302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26308 then
26309 gcc_cv_as_aarch64_mabi=yes
26310 else
26311 echo "configure: failed program was" >&5
26312 cat conftest.s >&5
26313 fi
26314 rm -f conftest.o conftest.s
26315 fi
26316 fi
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26318 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26319
26320
26321 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26322
26323 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26324
26325 else
26326 if test x$with_abi = xilp32; then
26327 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26328 Upgrade the Assembler." "$LINENO" 5
26329 fi
26330 if test x"$with_multilib_list" = xdefault; then
26331 TM_MULTILIB_CONFIG=lp64
26332 else
26333 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26334 for aarch64_multilib in ${aarch64_multilibs}; do
26335 case ${aarch64_multilib} in
26336 ilp32)
26337 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26338 Upgrade the Assembler." "$LINENO" 5
26339 ;;
26340 *)
26341 ;;
26342 esac
26343 done
26344 fi
26345 fi
26346 # Check if we have binutils support for relocations types needed by -fpic
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26348 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26349 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26350 $as_echo_n "(cached) " >&6
26351 else
26352 gcc_cv_as_aarch64_picreloc=no
26353 if test x$gcc_cv_as != x; then
26354 $as_echo '
26355 .text
26356 ldr x0, [x2, #:gotpage_lo15:globalsym]
26357 ' > conftest.s
26358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26363 test $ac_status = 0; }; }
26364 then
26365 gcc_cv_as_aarch64_picreloc=yes
26366 else
26367 echo "configure: failed program was" >&5
26368 cat conftest.s >&5
26369 fi
26370 rm -f conftest.o conftest.s
26371 fi
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26374 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26375 if test $gcc_cv_as_aarch64_picreloc = yes; then
26376
26377 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26378
26379 fi
26380
26381 # Enable Branch Target Identification Mechanism and Return Address
26382 # Signing by default.
26383 # Check whether --enable-standard-branch-protection was given.
26384 if test "${enable_standard_branch_protection+set}" = set; then :
26385 enableval=$enable_standard_branch_protection;
26386 case $enableval in
26387 yes)
26388 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26389 ;;
26390 no)
26391 ;;
26392 *)
26393 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26394 Valid choices are 'yes' and 'no'." "$LINENO" 5
26395 ;;
26396 esac
26397
26398 fi
26399
26400 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26401 # Check whether --enable-fix-cortex-a53-835769 was given.
26402 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26403 enableval=$enable_fix_cortex_a53_835769;
26404 case $enableval in
26405 yes)
26406 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26407 ;;
26408 no)
26409 ;;
26410 *)
26411 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26412 Valid choices are 'yes' and 'no'." "$LINENO" 5
26413 ;;
26414
26415 esac
26416
26417 fi
26418
26419 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26420 # Check whether --enable-fix-cortex-a53-843419 was given.
26421 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26422 enableval=$enable_fix_cortex_a53_843419;
26423 case $enableval in
26424 yes)
26425 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26426 ;;
26427 no)
26428 ;;
26429 *)
26430 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26431 Valid choices are 'yes' and 'no'." "$LINENO" 5
26432 ;;
26433
26434 esac
26435
26436 fi
26437
26438 ;;
26439
26440 # All TARGET_ABI_OSF targets.
26441 alpha*-*-linux* | alpha*-*-*bsd*)
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26443 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26444 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_alpha_explicit_relocs=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo ' .set nomacro
26450 .text
26451 extbl $3, $2, $3 !lituse_bytoff!1
26452 ldq $2, a($29) !literal!1
26453 ldq $4, b($29) !literal!2
26454 ldq_u $3, 0($2) !lituse_base!1
26455 ldq $27, f($29) !literal!5
26456 jsr $26, ($27), f !lituse_jsr!5
26457 ldah $29, 0($26) !gpdisp!3
26458 lda $0, c($29) !gprel
26459 ldah $1, d($29) !gprelhigh
26460 lda $1, d($1) !gprellow
26461 lda $29, 0($29) !gpdisp!3' > conftest.s
26462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 then
26469 gcc_cv_as_alpha_explicit_relocs=yes
26470 else
26471 echo "configure: failed program was" >&5
26472 cat conftest.s >&5
26473 fi
26474 rm -f conftest.o conftest.s
26475 fi
26476 fi
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26478 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26479 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26480
26481 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26482
26483 fi
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26486 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26487 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26488 $as_echo_n "(cached) " >&6
26489 else
26490 gcc_cv_as_alpha_jsrdirect_relocs=no
26491 if test x$gcc_cv_as != x; then
26492 $as_echo ' .set nomacro
26493 .text
26494 ldq $27, a($29) !literal!1
26495 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26502 then
26503 gcc_cv_as_alpha_jsrdirect_relocs=yes
26504 else
26505 echo "configure: failed program was" >&5
26506 cat conftest.s >&5
26507 fi
26508 rm -f conftest.o conftest.s
26509 fi
26510 fi
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26512 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26513 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26514
26515 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26516
26517 fi
26518
26519 ;;
26520
26521 avr-*-*)
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26523 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26524 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26525 $as_echo_n "(cached) " >&6
26526 else
26527 gcc_cv_as_avr_mlink_relax=no
26528 if test x$gcc_cv_as != x; then
26529 $as_echo '.text' > conftest.s
26530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26533 ac_status=$?
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; }
26536 then
26537 gcc_cv_as_avr_mlink_relax=yes
26538 else
26539 echo "configure: failed program was" >&5
26540 cat conftest.s >&5
26541 fi
26542 rm -f conftest.o conftest.s
26543 fi
26544 fi
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26546 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26547 if test $gcc_cv_as_avr_mlink_relax = yes; then
26548
26549 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26550
26551 fi
26552
26553
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26555 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26556 if ${gcc_cv_as_avr_mrmw+:} false; then :
26557 $as_echo_n "(cached) " >&6
26558 else
26559 gcc_cv_as_avr_mrmw=no
26560 if test x$gcc_cv_as != x; then
26561 $as_echo '.text' > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_avr_mrmw=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26573 fi
26574 rm -f conftest.o conftest.s
26575 fi
26576 fi
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26578 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26579 if test $gcc_cv_as_avr_mrmw = yes; then
26580
26581 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26582
26583 fi
26584
26585
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26587 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26588 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26589 $as_echo_n "(cached) " >&6
26590 else
26591 gcc_cv_as_avr_mgccisr=no
26592 if test x$gcc_cv_as != x; then
26593 $as_echo '.text
26594 __gcc_isr 1
26595 __gcc_isr 2
26596 __gcc_isr 0,r24
26597 ' > conftest.s
26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26604 then
26605 gcc_cv_as_avr_mgccisr=yes
26606 else
26607 echo "configure: failed program was" >&5
26608 cat conftest.s >&5
26609 fi
26610 rm -f conftest.o conftest.s
26611 fi
26612 fi
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26614 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26615 if test $gcc_cv_as_avr_mgccisr = yes; then
26616
26617 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26618
26619 fi
26620
26621
26622 # Check how default linker description file implements .rodata for
26623 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26624 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26626 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26627 cat > conftest.s <<EOF
26628 .section .rodata,"a",@progbits
26629 .global xxvaryy
26630 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26631 xxvaryy:
26632 .word 1
26633 EOF
26634 rm -f conftest.nm
26635 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26646 test $ac_status = 0; }; }
26647 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26653 if test -s conftest.nm
26654 then
26655 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26657 $as_echo "yes" >&6; }
26658
26659 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26660
26661 else
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26663 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26664 echo "$as_me: nm output was" >&5
26665 cat conftest.nm >&5
26666 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26667 { $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
26668 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26669 fi
26670 else
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26672 $as_echo "test failed" >&6; }
26673 echo "$as_me: failed program was" >&5
26674 cat conftest.s >&5
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26676 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26677 fi
26678 rm -f conftest.s conftest.o conftest.elf conftest.nm
26679 ;;
26680
26681 cris-*-*)
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26683 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26684 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_cris_no_mul_bug=no
26688 if test x$gcc_cv_as != x; then
26689 $as_echo '.text' > conftest.s
26690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26696 then
26697 gcc_cv_as_cris_no_mul_bug=yes
26698 else
26699 echo "configure: failed program was" >&5
26700 cat conftest.s >&5
26701 fi
26702 rm -f conftest.o conftest.s
26703 fi
26704 fi
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26706 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26707 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26708
26709 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26710
26711 fi
26712
26713 ;;
26714
26715 sparc*-*-*)
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26717 $as_echo_n "checking assembler for -relax option... " >&6; }
26718 if ${gcc_cv_as_sparc_relax+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_sparc_relax=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo '.text' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_sparc_relax=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26735 fi
26736 rm -f conftest.o conftest.s
26737 fi
26738 fi
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26740 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26741 if test $gcc_cv_as_sparc_relax = yes; then
26742
26743 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26744
26745 fi
26746
26747
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26749 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26750 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26751 $as_echo_n "(cached) " >&6
26752 else
26753 gcc_cv_as_sparc_gotdata_op=no
26754 if test x$gcc_cv_as != x; then
26755 $as_echo '.text
26756 .align 4
26757 foo:
26758 nop
26759 bar:
26760 sethi %gdop_hix22(foo), %g1
26761 xor %g1, %gdop_lox10(foo), %g1
26762 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26769 then
26770 if test x$gcc_cv_ld != x \
26771 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26772 if test x$gcc_cv_objdump != x; then
26773 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26774 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26775 gcc_cv_as_sparc_gotdata_op=no
26776 else
26777 gcc_cv_as_sparc_gotdata_op=yes
26778 fi
26779 fi
26780 fi
26781 rm -f conftest
26782 else
26783 echo "configure: failed program was" >&5
26784 cat conftest.s >&5
26785 fi
26786 rm -f conftest.o conftest.s
26787 fi
26788 fi
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26790 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26791 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26792
26793 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26794
26795 fi
26796
26797
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26799 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26800 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26801 $as_echo_n "(cached) " >&6
26802 else
26803 gcc_cv_as_sparc_ua_pcrel=no
26804 if test x$gcc_cv_as != x; then
26805 $as_echo '.text
26806 foo:
26807 nop
26808 .data
26809 .align 4
26810 .byte 0
26811 .uaword %r_disp32(foo)' > conftest.s
26812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26818 then
26819 if test x$gcc_cv_ld != x \
26820 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26821 gcc_cv_as_sparc_ua_pcrel=yes
26822 fi
26823 rm -f conftest
26824 else
26825 echo "configure: failed program was" >&5
26826 cat conftest.s >&5
26827 fi
26828 rm -f conftest.o conftest.s
26829 fi
26830 fi
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26832 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26833 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26834
26835 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26836
26837
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26839 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26840 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26841 $as_echo_n "(cached) " >&6
26842 else
26843 gcc_cv_as_sparc_ua_pcrel_hidden=no
26844 if test x$gcc_cv_as != x; then
26845 $as_echo '.data
26846 .align 4
26847 .byte 0x31
26848 .uaword %r_disp32(foo)
26849 .byte 0x32, 0x33, 0x34
26850 .global foo
26851 .hidden foo
26852 foo:
26853 .skip 4' > conftest.s
26854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26860 then
26861 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26862 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26863 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26864 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26865 if $gcc_cv_objdump -R conftest 2> /dev/null \
26866 | grep 'DISP32' > /dev/null 2>&1; then
26867 :
26868 else
26869 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26870 fi
26871 fi
26872 rm -f conftest
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26876 fi
26877 rm -f conftest.o conftest.s
26878 fi
26879 fi
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26881 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26882 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26883
26884 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26885
26886 fi
26887
26888
26889 fi
26890 # unaligned pcrel relocs
26891
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26893 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26894 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 gcc_cv_as_sparc_offsetable_lo10=no
26898 if test x$gcc_cv_as != x; then
26899 $as_echo '.text
26900 or %g1, %lo(ab) + 12, %g1
26901 or %g1, %lo(ab + 12), %g1' > conftest.s
26902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26904 (eval $ac_try) 2>&5
26905 ac_status=$?
26906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26907 test $ac_status = 0; }; }
26908 then
26909 if test x$gcc_cv_objdump != x \
26910 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26911 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26912 gcc_cv_as_sparc_offsetable_lo10=yes
26913 fi
26914 else
26915 echo "configure: failed program was" >&5
26916 cat conftest.s >&5
26917 fi
26918 rm -f conftest.o conftest.s
26919 fi
26920 fi
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26922 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26923 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26924
26925 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26926
26927 fi
26928
26929
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26931 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26932 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26933 $as_echo_n "(cached) " >&6
26934 else
26935 gcc_cv_as_sparc_fmaf=no
26936 if test x$gcc_cv_as != x; then
26937 $as_echo '.text
26938 .register %g2, #scratch
26939 .register %g3, #scratch
26940 .align 4
26941 fmaddd %f0, %f2, %f4, %f6
26942 addxccc %g1, %g2, %g3
26943 fsrl32 %f2, %f4, %f8
26944 fnaddd %f10, %f12, %f14' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 gcc_cv_as_sparc_fmaf=yes
26953 else
26954 echo "configure: failed program was" >&5
26955 cat conftest.s >&5
26956 fi
26957 rm -f conftest.o conftest.s
26958 fi
26959 fi
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26961 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26962 if test $gcc_cv_as_sparc_fmaf = yes; then
26963
26964 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26965
26966 fi
26967
26968
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26970 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26971 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26972 $as_echo_n "(cached) " >&6
26973 else
26974 gcc_cv_as_sparc_sparc4=no
26975 if test x$gcc_cv_as != x; then
26976 $as_echo '.text
26977 .register %g2, #scratch
26978 .register %g3, #scratch
26979 .align 4
26980 cxbe %g2, %g3, 1f
26981 1: cwbneg %g2, %g3, 1f
26982 1: sha1
26983 md5
26984 aes_kexpand0 %f4, %f6, %f8
26985 des_round %f38, %f40, %f42, %f44
26986 camellia_f %f54, %f56, %f58, %f60
26987 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26994 then
26995 gcc_cv_as_sparc_sparc4=yes
26996 else
26997 echo "configure: failed program was" >&5
26998 cat conftest.s >&5
26999 fi
27000 rm -f conftest.o conftest.s
27001 fi
27002 fi
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27004 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27005 if test $gcc_cv_as_sparc_sparc4 = yes; then
27006
27007 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27008
27009 fi
27010
27011
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27013 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27014 if ${gcc_cv_as_sparc_sparc5+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_sparc_sparc5=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.text
27020 .register %g2, #scratch
27021 .register %g3, #scratch
27022 .align 4
27023 subxc %g1, %g2, %g3
27024 fpadd8 %f0, %f2, %f4' > conftest.s
27025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27031 then
27032 gcc_cv_as_sparc_sparc5=yes
27033 else
27034 echo "configure: failed program was" >&5
27035 cat conftest.s >&5
27036 fi
27037 rm -f conftest.o conftest.s
27038 fi
27039 fi
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27041 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27042 if test $gcc_cv_as_sparc_sparc5 = yes; then
27043
27044 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27045
27046 fi
27047
27048
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27050 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27051 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27052 $as_echo_n "(cached) " >&6
27053 else
27054 gcc_cv_as_sparc_sparc6=no
27055 if test x$gcc_cv_as != x; then
27056 $as_echo '.text
27057 .register %g2, #scratch
27058 .register %g3, #scratch
27059 .align 4
27060 rd %entropy, %g1
27061 fpsll64x %f0, %f2, %f4' > conftest.s
27062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27068 then
27069 gcc_cv_as_sparc_sparc6=yes
27070 else
27071 echo "configure: failed program was" >&5
27072 cat conftest.s >&5
27073 fi
27074 rm -f conftest.o conftest.s
27075 fi
27076 fi
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27078 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27079 if test $gcc_cv_as_sparc_sparc6 = yes; then
27080
27081 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27082
27083 fi
27084
27085
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27087 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27088 if ${gcc_cv_as_sparc_leon+:} false; then :
27089 $as_echo_n "(cached) " >&6
27090 else
27091 gcc_cv_as_sparc_leon=no
27092 if test x$gcc_cv_as != x; then
27093 $as_echo '.text
27094 .register %g2, #scratch
27095 .register %g3, #scratch
27096 .align 4
27097 smac %g2, %g3, %g1
27098 umac %g2, %g3, %g1
27099 casa [%g2] 0xb, %g3, %g1' > conftest.s
27100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105 test $ac_status = 0; }; }
27106 then
27107 gcc_cv_as_sparc_leon=yes
27108 else
27109 echo "configure: failed program was" >&5
27110 cat conftest.s >&5
27111 fi
27112 rm -f conftest.o conftest.s
27113 fi
27114 fi
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27116 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27117 if test $gcc_cv_as_sparc_leon = yes; then
27118
27119 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27120
27121 fi
27122
27123 ;;
27124
27125 i[34567]86-*-* | x86_64-*-*)
27126 case $target_os in
27127 cygwin*)
27128 # Full C++ conformance when using a shared libstdc++-v3 requires some
27129 # support from the Cygwin DLL, which in more recent versions exports
27130 # wrappers to aid in interposing and redirecting operators new, delete,
27131 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27132 # are configuring for a version of Cygwin that exports the wrappers.
27133 if test x$host = x$target && test x$host_cpu = xi686; then
27134 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27135 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27136 gcc_ac_cygwin_dll_wrappers=yes
27137 else
27138 gcc_ac_cygwin_dll_wrappers=no
27139 fi
27140
27141 else
27142 # Can't check presence of libc functions during cross-compile, so
27143 # we just have to assume we're building for an up-to-date target.
27144 gcc_ac_cygwin_dll_wrappers=yes
27145 fi
27146
27147 cat >>confdefs.h <<_ACEOF
27148 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27149 _ACEOF
27150
27151 esac
27152 case $target_os in
27153 cygwin* | pe | mingw32*)
27154 # Recent binutils allows the three-operand form of ".comm" on PE. This
27155 # definition is used unconditionally to initialise the default state of
27156 # the target option variable that governs usage of the feature.
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27158 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27159 if ${gcc_cv_as_comm_has_align+:} false; then :
27160 $as_echo_n "(cached) " >&6
27161 else
27162 gcc_cv_as_comm_has_align=no
27163 if test x$gcc_cv_as != x; then
27164 $as_echo '.comm foo,1,32' > conftest.s
27165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27171 then
27172 gcc_cv_as_comm_has_align=yes
27173 else
27174 echo "configure: failed program was" >&5
27175 cat conftest.s >&5
27176 fi
27177 rm -f conftest.o conftest.s
27178 fi
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27181 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27182
27183
27184
27185 cat >>confdefs.h <<_ACEOF
27186 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27187 _ACEOF
27188
27189 # Used for DWARF 2 in PE
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27191 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27192 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_ix86_pe_secrel32=no
27196 if test x$gcc_cv_as != x; then
27197 $as_echo '.text
27198 foo: nop
27199 .data
27200 .secrel32 foo' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27207 then
27208 if test x$gcc_cv_ld != x \
27209 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27210 gcc_cv_as_ix86_pe_secrel32=yes
27211 fi
27212 rm -f conftest
27213 else
27214 echo "configure: failed program was" >&5
27215 cat conftest.s >&5
27216 fi
27217 rm -f conftest.o conftest.s
27218 fi
27219 fi
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27221 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27222 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27223
27224 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27225
27226 fi
27227
27228 # Test if the assembler supports the extended form of the .section
27229 # directive that specifies section alignment. LTO support uses this,
27230 # but normally only after installation, so we warn but don't fail the
27231 # configure if LTO is enabled but the assembler does not support it.
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27233 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27234 if ${gcc_cv_as_section_has_align+:} false; then :
27235 $as_echo_n "(cached) " >&6
27236 else
27237 gcc_cv_as_section_has_align=no
27238 if test x$gcc_cv_as != x; then
27239 $as_echo '.section lto_test,"dr0"' > conftest.s
27240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27246 then
27247 gcc_cv_as_section_has_align=yes
27248 else
27249 echo "configure: failed program was" >&5
27250 cat conftest.s >&5
27251 fi
27252 rm -f conftest.o conftest.s
27253 fi
27254 fi
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27256 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27257
27258
27259 if test x$gcc_cv_as_section_has_align != xyes; then
27260 case ",$enable_languages," in
27261 *,lto,*)
27262 { $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
27263 $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;}
27264 ;;
27265 esac
27266 fi
27267 ;;
27268 esac
27269 case $target_os in
27270 darwin2* | darwin19*)
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27272 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27273 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_as_mllvm_x86_pad_for_align=no
27277 if test x$gcc_cv_as != x; then
27278 $as_echo '.text' > conftest.s
27279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -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_mllvm_x86_pad_for_align=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_mllvm_x86_pad_for_align" >&5
27295 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27296 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27297
27298 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27299
27300 fi
27301
27302 ;;
27303 esac
27304
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27306 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27307 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27308 $as_echo_n "(cached) " >&6
27309 else
27310 gcc_cv_as_ix86_xbrace_comment=no
27311 if test x$gcc_cv_as != x; then
27312 $as_echo '.text' > conftest.s
27313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27319 then
27320 gcc_cv_as_ix86_xbrace_comment=yes
27321 else
27322 echo "configure: failed program was" >&5
27323 cat conftest.s >&5
27324 fi
27325 rm -f conftest.o conftest.s
27326 fi
27327 fi
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27329 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27330 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27331
27332 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27333
27334 fi
27335
27336
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27338 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27339 if ${gcc_cv_as_ix86_filds+:} false; then :
27340 $as_echo_n "(cached) " >&6
27341 else
27342 gcc_cv_as_ix86_filds=no
27343 if test x$gcc_cv_as != x; then
27344 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_ix86_filds=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27356 fi
27357 rm -f conftest.o conftest.s
27358 fi
27359 fi
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27361 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27362 if test $gcc_cv_as_ix86_filds = yes; then
27363
27364 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27365
27366 fi
27367
27368
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27370 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27371 if ${gcc_cv_as_ix86_fildq+:} false; then :
27372 $as_echo_n "(cached) " >&6
27373 else
27374 gcc_cv_as_ix86_fildq=no
27375 if test x$gcc_cv_as != x; then
27376 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; }
27383 then
27384 gcc_cv_as_ix86_fildq=yes
27385 else
27386 echo "configure: failed program was" >&5
27387 cat conftest.s >&5
27388 fi
27389 rm -f conftest.o conftest.s
27390 fi
27391 fi
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27393 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27394 if test $gcc_cv_as_ix86_fildq = yes; then
27395
27396 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27397
27398 fi
27399
27400
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27402 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27403 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27404 $as_echo_n "(cached) " >&6
27405 else
27406 gcc_cv_as_ix86_cmov_sun_syntax=no
27407 if test x$gcc_cv_as != x; then
27408 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27415 then
27416 gcc_cv_as_ix86_cmov_sun_syntax=yes
27417 else
27418 echo "configure: failed program was" >&5
27419 cat conftest.s >&5
27420 fi
27421 rm -f conftest.o conftest.s
27422 fi
27423 fi
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27425 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27426 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27427
27428 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27429
27430 fi
27431
27432
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27434 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27435 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27436 $as_echo_n "(cached) " >&6
27437 else
27438 gcc_cv_as_ix86_ffreep=no
27439 if test x$gcc_cv_as != x; then
27440 $as_echo 'ffreep %st(1)' > conftest.s
27441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27446 test $ac_status = 0; }; }
27447 then
27448 gcc_cv_as_ix86_ffreep=yes
27449 else
27450 echo "configure: failed program was" >&5
27451 cat conftest.s >&5
27452 fi
27453 rm -f conftest.o conftest.s
27454 fi
27455 fi
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27457 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27458 if test $gcc_cv_as_ix86_ffreep = yes; then
27459
27460 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27461
27462 fi
27463
27464
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27466 $as_echo_n "checking assembler for .quad directive... " >&6; }
27467 if ${gcc_cv_as_ix86_quad+:} false; then :
27468 $as_echo_n "(cached) " >&6
27469 else
27470 gcc_cv_as_ix86_quad=no
27471 if test x$gcc_cv_as != x; then
27472 $as_echo '.quad 0' > conftest.s
27473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27478 test $ac_status = 0; }; }
27479 then
27480 gcc_cv_as_ix86_quad=yes
27481 else
27482 echo "configure: failed program was" >&5
27483 cat conftest.s >&5
27484 fi
27485 rm -f conftest.o conftest.s
27486 fi
27487 fi
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27489 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27490 if test $gcc_cv_as_ix86_quad = yes; then
27491
27492 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27493
27494 fi
27495
27496
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27498 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27499 if ${gcc_cv_as_ix86_sahf+:} false; then :
27500 $as_echo_n "(cached) " >&6
27501 else
27502 gcc_cv_as_ix86_sahf=no
27503 if test x$gcc_cv_as != x; then
27504 $as_echo '.code64
27505 sahf' > conftest.s
27506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27508 (eval $ac_try) 2>&5
27509 ac_status=$?
27510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511 test $ac_status = 0; }; }
27512 then
27513 gcc_cv_as_ix86_sahf=yes
27514 else
27515 echo "configure: failed program was" >&5
27516 cat conftest.s >&5
27517 fi
27518 rm -f conftest.o conftest.s
27519 fi
27520 fi
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27522 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27523 if test $gcc_cv_as_ix86_sahf = yes; then
27524
27525 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27526
27527 fi
27528
27529
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27531 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27532 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27533 $as_echo_n "(cached) " >&6
27534 else
27535 gcc_cv_as_ix86_interunit_movq=no
27536 if test x$gcc_cv_as != x; then
27537 $as_echo '.code64
27538 movq %mm0, %rax
27539 movq %rax, %xmm0' > conftest.s
27540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27545 test $ac_status = 0; }; }
27546 then
27547 gcc_cv_as_ix86_interunit_movq=yes
27548 else
27549 echo "configure: failed program was" >&5
27550 cat conftest.s >&5
27551 fi
27552 rm -f conftest.o conftest.s
27553 fi
27554 fi
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27556 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27557
27558
27559
27560 cat >>confdefs.h <<_ACEOF
27561 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27562 _ACEOF
27563
27564
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27566 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27567 if ${gcc_cv_as_ix86_hle+:} false; then :
27568 $as_echo_n "(cached) " >&6
27569 else
27570 gcc_cv_as_ix86_hle=no
27571 if test x$gcc_cv_as != x; then
27572 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27575 (eval $ac_try) 2>&5
27576 ac_status=$?
27577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27578 test $ac_status = 0; }; }
27579 then
27580 gcc_cv_as_ix86_hle=yes
27581 else
27582 echo "configure: failed program was" >&5
27583 cat conftest.s >&5
27584 fi
27585 rm -f conftest.o conftest.s
27586 fi
27587 fi
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27589 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27590 if test $gcc_cv_as_ix86_hle = yes; then
27591
27592 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27593
27594 fi
27595
27596
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27598 $as_echo_n "checking assembler for swap suffix... " >&6; }
27599 if ${gcc_cv_as_ix86_swap+:} false; then :
27600 $as_echo_n "(cached) " >&6
27601 else
27602 gcc_cv_as_ix86_swap=no
27603 if test x$gcc_cv_as != x; then
27604 $as_echo 'movl.s %esp, %ebp' > conftest.s
27605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27611 then
27612 gcc_cv_as_ix86_swap=yes
27613 else
27614 echo "configure: failed program was" >&5
27615 cat conftest.s >&5
27616 fi
27617 rm -f conftest.o conftest.s
27618 fi
27619 fi
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27621 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27622 if test $gcc_cv_as_ix86_swap = yes; then
27623
27624 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27625
27626 fi
27627
27628
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27630 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27631 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27632 $as_echo_n "(cached) " >&6
27633 else
27634 gcc_cv_as_ix86_diff_sect_delta=no
27635 if test x$gcc_cv_as != x; then
27636 $as_echo '.section .rodata
27637 .L1:
27638 .long .L2-.L1
27639 .long .L3-.L1
27640 .text
27641 .L3: nop
27642 .L2: nop' > conftest.s
27643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27649 then
27650 gcc_cv_as_ix86_diff_sect_delta=yes
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27654 fi
27655 rm -f conftest.o conftest.s
27656 fi
27657 fi
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27659 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27660 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27661
27662 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27663
27664 fi
27665
27666
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27668 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27669 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27670 $as_echo_n "(cached) " >&6
27671 else
27672 gcc_cv_as_ix86_rep_lock_prefix=no
27673 if test x$gcc_cv_as != x; then
27674 $as_echo 'rep movsl
27675 rep ret
27676 rep nop
27677 rep bsf %ecx, %eax
27678 rep bsr %ecx, %eax
27679 lock addl %edi, (%eax,%esi)
27680 lock orl $0, (%esp)' > conftest.s
27681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27687 then
27688 gcc_cv_as_ix86_rep_lock_prefix=yes
27689 else
27690 echo "configure: failed program was" >&5
27691 cat conftest.s >&5
27692 fi
27693 rm -f conftest.o conftest.s
27694 fi
27695 fi
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27697 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27698 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27699
27700 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27701
27702 fi
27703
27704
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27706 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27707 if ${gcc_cv_as_ix86_ud2+:} false; then :
27708 $as_echo_n "(cached) " >&6
27709 else
27710 gcc_cv_as_ix86_ud2=no
27711 if test x$gcc_cv_as != x; then
27712 $as_echo 'ud2' > conftest.s
27713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27718 test $ac_status = 0; }; }
27719 then
27720 gcc_cv_as_ix86_ud2=yes
27721 else
27722 echo "configure: failed program was" >&5
27723 cat conftest.s >&5
27724 fi
27725 rm -f conftest.o conftest.s
27726 fi
27727 fi
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27729 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27730 if test $gcc_cv_as_ix86_ud2 = yes; then
27731
27732 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27733
27734 fi
27735
27736
27737 # Enforce 32-bit output with gas and gld.
27738 if test x$gas = xyes; then
27739 as_ix86_gas_32_opt="--32"
27740 fi
27741 if echo "$ld_ver" | grep GNU > /dev/null; then
27742 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27743 ld_ix86_gld_32_opt="-melf_i386_sol2"
27744 else
27745 ld_ix86_gld_32_opt="-melf_i386"
27746 fi
27747 fi
27748
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27750 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27751 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27752 $as_echo_n "(cached) " >&6
27753 else
27754 gcc_cv_as_ix86_tlsgdplt=no
27755 if test x$gcc_cv_as != x; then
27756 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27760 ac_status=$?
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27763 then
27764 if test x$gcc_cv_ld != x \
27765 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27766 gcc_cv_as_ix86_tlsgdplt=yes
27767 fi
27768 rm -f conftest
27769 else
27770 echo "configure: failed program was" >&5
27771 cat conftest.s >&5
27772 fi
27773 rm -f conftest.o conftest.s
27774 fi
27775 fi
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27777 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27778 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27779
27780 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27781
27782 fi
27783
27784
27785 conftest_s='
27786 .section .tdata,"aw'$tls_section_flag'",@progbits
27787 tls_ld:
27788 .section .text,"ax",@progbits
27789 call tls_ld@tlsldmplt'
27790
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27792 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27793 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27794 $as_echo_n "(cached) " >&6
27795 else
27796 gcc_cv_as_ix86_tlsldmplt=no
27797 if test x$gcc_cv_as != x; then
27798 $as_echo "$conftest_s" > conftest.s
27799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; }
27805 then
27806 if test x$gcc_cv_ld != x \
27807 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27808 gcc_cv_as_ix86_tlsldmplt=yes
27809 fi
27810 rm -f conftest
27811 else
27812 echo "configure: failed program was" >&5
27813 cat conftest.s >&5
27814 fi
27815 rm -f conftest.o conftest.s
27816 fi
27817 fi
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27819 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27820
27821
27822
27823 cat >>confdefs.h <<_ACEOF
27824 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27825 _ACEOF
27826
27827
27828 conftest_s='
27829 .section .text,"ax",@progbits
27830 .globl _start
27831 .type _start, @function
27832 _start:
27833 leal value@tlsldm(%ebx), %eax
27834 call ___tls_get_addr@plt
27835
27836 .section .tdata,"aw'$tls_section_flag'",@progbits
27837 .type value, @object
27838 value:'
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27840 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27841 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27842 $as_echo_n "(cached) " >&6
27843 else
27844 gcc_cv_as_ix86_tlsldm=no
27845 if test x$gcc_cv_as != x; then
27846 $as_echo "$conftest_s" > conftest.s
27847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27850 ac_status=$?
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27853 then
27854 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27855 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27856 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27857 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27858 gcc_cv_as_ix86_tlsldm=yes
27859 fi
27860 fi
27861 rm -f conftest
27862 else
27863 echo "configure: failed program was" >&5
27864 cat conftest.s >&5
27865 fi
27866 rm -f conftest.o conftest.s
27867 fi
27868 fi
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27870 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27871
27872
27873
27874 cat >>confdefs.h <<_ACEOF
27875 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27876 _ACEOF
27877
27878
27879 conftest_s='
27880 .data
27881 bar:
27882 .byte 1
27883 .text
27884 .global _start
27885 _start:
27886 cmpl $0, bar@GOT
27887 jmp *_start@GOT'
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27889 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27890 if ${gcc_cv_as_ix86_got32x+:} false; then :
27891 $as_echo_n "(cached) " >&6
27892 else
27893 gcc_cv_as_ix86_got32x=no
27894 if test x$gcc_cv_as != x; then
27895 $as_echo "$conftest_s" > conftest.s
27896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27901 test $ac_status = 0; }; }
27902 then
27903 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27904 && test x$gcc_cv_readelf != x \
27905 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27906 | grep R_386_GOT32X > /dev/null 2>&1 \
27907 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27908 if $gcc_cv_objdump -dw conftest 2>&1 \
27909 | grep 0xffffff > /dev/null 2>&1; then
27910 gcc_cv_as_ix86_got32x=no
27911 else
27912 gcc_cv_as_ix86_got32x=yes
27913 fi
27914 fi
27915 rm -f conftest
27916 else
27917 echo "configure: failed program was" >&5
27918 cat conftest.s >&5
27919 fi
27920 rm -f conftest.o conftest.s
27921 fi
27922 fi
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27924 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27925
27926
27927
27928 cat >>confdefs.h <<_ACEOF
27929 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27930 _ACEOF
27931
27932
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27934 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27935 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27936 $as_echo_n "(cached) " >&6
27937 else
27938 gcc_cv_as_ix86_gotoff_in_data=no
27939 if test x$gcc_cv_as != x; then
27940 $as_echo ' .text
27941 .L0:
27942 nop
27943 .data
27944 .long .L0@GOTOFF' > conftest.s
27945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27951 then
27952 gcc_cv_as_ix86_gotoff_in_data=yes
27953 else
27954 echo "configure: failed program was" >&5
27955 cat conftest.s >&5
27956 fi
27957 rm -f conftest.o conftest.s
27958 fi
27959 fi
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27961 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27962
27963
27964
27965 cat >>confdefs.h <<_ACEOF
27966 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27967 _ACEOF
27968
27969
27970 conftest_s='
27971 .section .text,"ax",@progbits
27972 .globl _start
27973 .type _start, @function
27974 _start:
27975 leal ld@tlsldm(%ecx), %eax
27976 call *___tls_get_addr@GOT(%ecx)
27977 leal gd@tlsgd(%ecx), %eax
27978 call *___tls_get_addr@GOT(%ecx)
27979
27980 .section .tdata,"aw'$tls_section_flag'",@progbits
27981 .type ld, @object
27982 ld:
27983 .byte 0
27984 .globl gd
27985 .type gd, @object
27986 gd:
27987 .byte 0'
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27989 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27990 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27991 $as_echo_n "(cached) " >&6
27992 else
27993 gcc_cv_as_ix86_tls_get_addr_via_got=no
27994 if test x$gcc_cv_as != x; then
27995 $as_echo "$conftest_s" > conftest.s
27996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28001 test $ac_status = 0; }; }
28002 then
28003 if test x$gcc_cv_ld != x \
28004 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28005 gcc_cv_as_ix86_tls_get_addr_via_got=yes
28006 fi
28007 rm -f conftest
28008 else
28009 echo "configure: failed program was" >&5
28010 cat conftest.s >&5
28011 fi
28012 rm -f conftest.o conftest.s
28013 fi
28014 fi
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28016 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28017
28018
28019
28020 cat >>confdefs.h <<_ACEOF
28021 #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`
28022 _ACEOF
28023
28024 ;;
28025
28026 ia64*-*-*)
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28028 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28029 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
28030 $as_echo_n "(cached) " >&6
28031 else
28032 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
28033 if test x$gcc_cv_as != x; then
28034 $as_echo ' .text
28035 addl r15 = @ltoffx(x#), gp
28036 ;;
28037 ld8.mov r16 = [r15], x#
28038 ' > conftest.s
28039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28044 test $ac_status = 0; }; }
28045 then
28046 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28047 else
28048 echo "configure: failed program was" >&5
28049 cat conftest.s >&5
28050 fi
28051 rm -f conftest.o conftest.s
28052 fi
28053 fi
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28055 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28056 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28057
28058 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28059
28060 fi
28061
28062
28063 ;;
28064
28065 powerpc*-*-*)
28066
28067 case $target in
28068 *-*-darwin*)
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28070 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28071 if ${gcc_cv_as_machine_directive+:} false; then :
28072 $as_echo_n "(cached) " >&6
28073 else
28074 gcc_cv_as_machine_directive=no
28075 if test x$gcc_cv_as != x; then
28076 $as_echo ' .machine ppc7400' > conftest.s
28077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; }
28083 then
28084 gcc_cv_as_machine_directive=yes
28085 else
28086 echo "configure: failed program was" >&5
28087 cat conftest.s >&5
28088 fi
28089 rm -f conftest.o conftest.s
28090 fi
28091 fi
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28093 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28094
28095
28096 if test x$gcc_cv_as_machine_directive != xyes; then
28097 echo "*** This target requires an assembler supporting \".machine\"" >&2
28098 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28099 test x$build = x$target && exit 1
28100 fi
28101 ;;
28102 esac
28103
28104 case $target in
28105 *-*-aix*) conftest_s=' .machine "pwr5"
28106 .csect .text[PR]
28107 mfcr 3,128';;
28108 *-*-darwin*) conftest_s=' .text
28109 mfcr r3,128';;
28110 *) conftest_s=' .machine power4
28111 .text
28112 mfcr 3,128';;
28113 esac
28114
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28116 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28117 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28118 $as_echo_n "(cached) " >&6
28119 else
28120 gcc_cv_as_powerpc_mfcrf=no
28121 if test x$gcc_cv_as != x; then
28122 $as_echo "$conftest_s" > conftest.s
28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28129 then
28130 gcc_cv_as_powerpc_mfcrf=yes
28131 else
28132 echo "configure: failed program was" >&5
28133 cat conftest.s >&5
28134 fi
28135 rm -f conftest.o conftest.s
28136 fi
28137 fi
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28139 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28140 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28141
28142 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28143
28144 fi
28145
28146
28147 case $target in
28148 *-*-aix*) conftest_s=' .csect .text[PR]
28149 LCF..0:
28150 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28151 *-*-darwin*)
28152 conftest_s=' .text
28153 LCF0:
28154 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28155 *) conftest_s=' .text
28156 .LCF0:
28157 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28158 esac
28159
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28161 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28162 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28163 $as_echo_n "(cached) " >&6
28164 else
28165 gcc_cv_as_powerpc_rel16=no
28166 if test x$gcc_cv_as != x; then
28167 $as_echo "$conftest_s" > conftest.s
28168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28174 then
28175 gcc_cv_as_powerpc_rel16=yes
28176 else
28177 echo "configure: failed program was" >&5
28178 cat conftest.s >&5
28179 fi
28180 rm -f conftest.o conftest.s
28181 fi
28182 fi
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28184 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28185 if test $gcc_cv_as_powerpc_rel16 = yes; then
28186
28187 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28188
28189 fi
28190
28191
28192 case $target in
28193 *-*-aix*) conftest_s=' .machine "pwr7"
28194 .csect .text[PR]
28195 lxvd2x 1,2,3';;
28196 *) conftest_s=' .machine power7
28197 .text
28198 lxvd2x 1,2,3';;
28199 esac
28200
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28202 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28203 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205 else
28206 gcc_cv_as_powerpc_vsx=no
28207 if test x$gcc_cv_as != x; then
28208 $as_echo "$conftest_s" > conftest.s
28209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28214 test $ac_status = 0; }; }
28215 then
28216 gcc_cv_as_powerpc_vsx=yes
28217 else
28218 echo "configure: failed program was" >&5
28219 cat conftest.s >&5
28220 fi
28221 rm -f conftest.o conftest.s
28222 fi
28223 fi
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28225 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28226 if test $gcc_cv_as_powerpc_vsx = yes; then
28227
28228 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28229
28230 fi
28231
28232
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28234 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28235 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28236 $as_echo_n "(cached) " >&6
28237 else
28238 gcc_cv_as_powerpc_gnu_attribute=no
28239 if test x$gcc_cv_as != x; then
28240 $as_echo '.gnu_attribute 4,1' > conftest.s
28241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28246 test $ac_status = 0; }; }
28247 then
28248 gcc_cv_as_powerpc_gnu_attribute=yes
28249 else
28250 echo "configure: failed program was" >&5
28251 cat conftest.s >&5
28252 fi
28253 rm -f conftest.o conftest.s
28254 fi
28255 fi
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28257 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28258 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28259
28260 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28261
28262 fi
28263
28264
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28266 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28267 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28268 $as_echo_n "(cached) " >&6
28269 else
28270 gcc_cv_as_powerpc_entry_markers=no
28271 if test x$gcc_cv_as != x; then
28272 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; }
28279 then
28280 gcc_cv_as_powerpc_entry_markers=yes
28281 else
28282 echo "configure: failed program was" >&5
28283 cat conftest.s >&5
28284 fi
28285 rm -f conftest.o conftest.s
28286 fi
28287 fi
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28289 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28290 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28291
28292 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28293
28294 fi
28295
28296
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28298 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28299 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28300 $as_echo_n "(cached) " >&6
28301 else
28302 gcc_cv_as_powerpc_pltseq_markers=no
28303 if test x$gcc_cv_as != x; then
28304 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; }
28311 then
28312 gcc_cv_as_powerpc_pltseq_markers=yes
28313 else
28314 echo "configure: failed program was" >&5
28315 cat conftest.s >&5
28316 fi
28317 rm -f conftest.o conftest.s
28318 fi
28319 fi
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28321 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28322 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28323
28324 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28325
28326 fi
28327
28328
28329 case $target in
28330 *-*-aix*)
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28332 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28333 if ${gcc_cv_as_aix_ref+:} false; then :
28334 $as_echo_n "(cached) " >&6
28335 else
28336 gcc_cv_as_aix_ref=no
28337 if test x$gcc_cv_as != x; then
28338 $as_echo ' .csect stuff[rw]
28339 stuff:
28340 .long 1
28341 .extern sym
28342 .ref sym
28343 ' > conftest.s
28344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28346 (eval $ac_try) 2>&5
28347 ac_status=$?
28348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; }
28350 then
28351 gcc_cv_as_aix_ref=yes
28352 else
28353 echo "configure: failed program was" >&5
28354 cat conftest.s >&5
28355 fi
28356 rm -f conftest.o conftest.s
28357 fi
28358 fi
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28360 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28361 if test $gcc_cv_as_aix_ref = yes; then
28362
28363 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28364
28365 fi
28366
28367
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28369 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28370 if ${gcc_cv_as_aix_dwloc+:} false; then :
28371 $as_echo_n "(cached) " >&6
28372 else
28373 gcc_cv_as_aix_dwloc=no
28374 if test x$gcc_cv_as != x; then
28375 $as_echo ' .dwsect 0xA0000
28376 Lframe..0:
28377 .vbyte 4,Lframe..0
28378 ' > conftest.s
28379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 then
28386 gcc_cv_as_aix_dwloc=yes
28387 else
28388 echo "configure: failed program was" >&5
28389 cat conftest.s >&5
28390 fi
28391 rm -f conftest.o conftest.s
28392 fi
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28395 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28396 if test $gcc_cv_as_aix_dwloc = yes; then
28397
28398 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28399
28400 fi
28401
28402 ;;
28403 esac
28404 ;;
28405
28406 mips*-*-*)
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28408 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28409 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_mips_explicit_relocs=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28421 then
28422 gcc_cv_as_mips_explicit_relocs=yes
28423 else
28424 echo "configure: failed program was" >&5
28425 cat conftest.s >&5
28426 fi
28427 rm -f conftest.o conftest.s
28428 fi
28429 fi
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28431 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28433 if test x$target_cpu_default = x
28434 then target_cpu_default=MASK_EXPLICIT_RELOCS
28435 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28436 fi
28437 fi
28438
28439
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28441 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28442 if ${gcc_cv_as_mips_no_shared+:} false; then :
28443 $as_echo_n "(cached) " >&6
28444 else
28445 gcc_cv_as_mips_no_shared=no
28446 if test x$gcc_cv_as != x; then
28447 $as_echo 'nop' > conftest.s
28448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28454 then
28455 gcc_cv_as_mips_no_shared=yes
28456 else
28457 echo "configure: failed program was" >&5
28458 cat conftest.s >&5
28459 fi
28460 rm -f conftest.o conftest.s
28461 fi
28462 fi
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28464 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28465 if test $gcc_cv_as_mips_no_shared = yes; then
28466
28467 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28468
28469 fi
28470
28471
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28473 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28474 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28475 $as_echo_n "(cached) " >&6
28476 else
28477 gcc_cv_as_mips_gnu_attribute=no
28478 if test x$gcc_cv_as != x; then
28479 $as_echo '.gnu_attribute 4,1' > conftest.s
28480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28485 test $ac_status = 0; }; }
28486 then
28487 gcc_cv_as_mips_gnu_attribute=yes
28488 else
28489 echo "configure: failed program was" >&5
28490 cat conftest.s >&5
28491 fi
28492 rm -f conftest.o conftest.s
28493 fi
28494 fi
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28496 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28497 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28498
28499 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28500
28501 fi
28502
28503
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28505 $as_echo_n "checking assembler for .module support... " >&6; }
28506 if ${gcc_cv_as_mips_dot_module+:} false; then :
28507 $as_echo_n "(cached) " >&6
28508 else
28509 gcc_cv_as_mips_dot_module=no
28510 if test x$gcc_cv_as != x; then
28511 $as_echo '.module mips2
28512 .module fp=xx' > conftest.s
28513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28519 then
28520 gcc_cv_as_mips_dot_module=yes
28521 else
28522 echo "configure: failed program was" >&5
28523 cat conftest.s >&5
28524 fi
28525 rm -f conftest.o conftest.s
28526 fi
28527 fi
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28529 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28530 if test $gcc_cv_as_mips_dot_module = yes; then
28531
28532 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28533
28534 fi
28535
28536 if test x$gcc_cv_as_mips_dot_module = xno \
28537 && test x$with_fp_32 != x; then
28538 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28539 fi
28540
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28542 $as_echo_n "checking assembler for .micromips support... " >&6; }
28543 if ${gcc_cv_as_micromips_support+:} false; then :
28544 $as_echo_n "(cached) " >&6
28545 else
28546 gcc_cv_as_micromips_support=no
28547 if test x$gcc_cv_as != x; then
28548 $as_echo '.set micromips' > conftest.s
28549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554 test $ac_status = 0; }; }
28555 then
28556 gcc_cv_as_micromips_support=yes
28557 else
28558 echo "configure: failed program was" >&5
28559 cat conftest.s >&5
28560 fi
28561 rm -f conftest.o conftest.s
28562 fi
28563 fi
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28565 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28566 if test $gcc_cv_as_micromips_support = yes; then
28567
28568 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28569
28570 fi
28571
28572
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28574 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28575 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28576 $as_echo_n "(cached) " >&6
28577 else
28578 gcc_cv_as_mips_dtprelword=no
28579 if test x$gcc_cv_as != x; then
28580 $as_echo '.section .tdata,"awT",@progbits
28581 x:
28582 .word 2
28583 .text
28584 .dtprelword x+0x8000' > conftest.s
28585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28590 test $ac_status = 0; }; }
28591 then
28592 gcc_cv_as_mips_dtprelword=yes
28593 else
28594 echo "configure: failed program was" >&5
28595 cat conftest.s >&5
28596 fi
28597 rm -f conftest.o conftest.s
28598 fi
28599 fi
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28601 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28602 if test $gcc_cv_as_mips_dtprelword = yes; then
28603
28604 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28605
28606 fi
28607
28608
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28610 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28611 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28612 $as_echo_n "(cached) " >&6
28613 else
28614 gcc_cv_as_mips_dspr1_mult=no
28615 if test x$gcc_cv_as != x; then
28616 $as_echo ' .set mips32r2
28617 .set nodspr2
28618 .set dsp
28619 madd $ac3,$4,$5
28620 maddu $ac3,$4,$5
28621 msub $ac3,$4,$5
28622 msubu $ac3,$4,$5
28623 mult $ac3,$4,$5
28624 multu $ac3,$4,$5' > conftest.s
28625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630 test $ac_status = 0; }; }
28631 then
28632 gcc_cv_as_mips_dspr1_mult=yes
28633 else
28634 echo "configure: failed program was" >&5
28635 cat conftest.s >&5
28636 fi
28637 rm -f conftest.o conftest.s
28638 fi
28639 fi
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28641 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28642 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28643
28644 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28645
28646 fi
28647
28648
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28650 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28651 gcc_cv_as_ld_jalr_reloc=no
28652 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28653 if test $in_tree_ld = yes ; then
28654 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 \
28655 && test $in_tree_ld_is_elf = yes; then
28656 gcc_cv_as_ld_jalr_reloc=yes
28657 fi
28658 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28659 echo ' .ent x' > conftest.s
28660 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28661 echo ' lw $25,%call16(y)($28)' >> conftest.s
28662 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28663 echo '1: jalr $25' >> conftest.s
28664 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28665 echo '1: jalr $25' >> conftest.s
28666 echo ' .end x' >> conftest.s
28667 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28668 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28669 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28670 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28671 gcc_cv_as_ld_jalr_reloc=yes
28672 fi
28673 fi
28674 rm -f conftest.*
28675 fi
28676 fi
28677 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28678 if test x$target_cpu_default = x; then
28679 target_cpu_default=MASK_RELAX_PIC_CALLS
28680 else
28681 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28682 fi
28683 fi
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28685 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28686
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28688 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28689 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28690 $as_echo_n "(cached) " >&6
28691 else
28692 gcc_cv_ld_mips_personality_relaxation=no
28693 if test $in_tree_ld = yes ; then
28694 if test "$gcc_cv_gld_major_version" -eq 2 \
28695 -a "$gcc_cv_gld_minor_version" -ge 21 \
28696 -o "$gcc_cv_gld_major_version" -gt 2; then
28697 gcc_cv_ld_mips_personality_relaxation=yes
28698 fi
28699 elif test x$gcc_cv_as != x \
28700 -a x$gcc_cv_ld != x \
28701 -a x$gcc_cv_readelf != x ; then
28702 cat > conftest.s <<EOF
28703 .cfi_startproc
28704 .cfi_personality 0x80,indirect_ptr
28705 .ent test
28706 test:
28707 nop
28708 .end test
28709 .cfi_endproc
28710
28711 .section .data,"aw",@progbits
28712 indirect_ptr:
28713 .dc.a personality
28714 EOF
28715 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28716 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28717 if $gcc_cv_readelf -d conftest 2>&1 \
28718 | grep TEXTREL > /dev/null 2>&1; then
28719 :
28720 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28721 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28722 :
28723 else
28724 gcc_cv_ld_mips_personality_relaxation=yes
28725 fi
28726 fi
28727 fi
28728 rm -f conftest.s conftest.o conftest
28729 fi
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28731 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28732 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28733
28734 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28735
28736 fi
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28739 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28740 if ${gcc_cv_as_mips_nan+:} false; then :
28741 $as_echo_n "(cached) " >&6
28742 else
28743 gcc_cv_as_mips_nan=no
28744 if test x$gcc_cv_as != x; then
28745 $as_echo '' > conftest.s
28746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28752 then
28753 gcc_cv_as_mips_nan=yes
28754 else
28755 echo "configure: failed program was" >&5
28756 cat conftest.s >&5
28757 fi
28758 rm -f conftest.o conftest.s
28759 fi
28760 fi
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28762 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28763 if test $gcc_cv_as_mips_nan = yes; then
28764
28765 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28766
28767 fi
28768
28769 if test x$gcc_cv_as_mips_nan = xno \
28770 && test x$with_nan != x; then
28771 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28772 fi
28773 ;;
28774 msp430-*-*)
28775 # Earlier GAS versions generically support .gnu_attribute, but the
28776 # msp430 assembler will not do anything with it.
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28778 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28779 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28780 $as_echo_n "(cached) " >&6
28781 else
28782 gcc_cv_as_msp430_gnu_attribute=no
28783 if test x$gcc_cv_as != x; then
28784 $as_echo '.gnu_attribute 4,1' > conftest.s
28785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28787 (eval $ac_try) 2>&5
28788 ac_status=$?
28789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28790 test $ac_status = 0; }; }
28791 then
28792 gcc_cv_as_msp430_gnu_attribute=yes
28793 else
28794 echo "configure: failed program was" >&5
28795 cat conftest.s >&5
28796 fi
28797 rm -f conftest.o conftest.s
28798 fi
28799 fi
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28801 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28802 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28803
28804 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28805
28806 fi
28807
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28809 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28810 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28811 $as_echo_n "(cached) " >&6
28812 else
28813 gcc_cv_as_msp430_mspabi_attribute=no
28814 if test x$gcc_cv_as != x; then
28815 $as_echo '.mspabi_attribute 4,2' > conftest.s
28816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28821 test $ac_status = 0; }; }
28822 then
28823 gcc_cv_as_msp430_mspabi_attribute=yes
28824 else
28825 echo "configure: failed program was" >&5
28826 cat conftest.s >&5
28827 fi
28828 rm -f conftest.o conftest.s
28829 fi
28830 fi
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28832 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28833 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28834
28835 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28836
28837 fi
28838
28839 if test x$enable_newlib_nano_formatted_io = xyes; then
28840
28841 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28842
28843 fi
28844 ;;
28845 nios2-*-*)
28846 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28847 # syntax that is documented in the ABI specification.
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28849 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28850 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28851 $as_echo_n "(cached) " >&6
28852 else
28853 gcc_cv_as_nios2_gotoff_relocation=no
28854 if test x$gcc_cv_as != x; then
28855 $as_echo ' .extern foo
28856 .data
28857 .long %gotoff(foo)' > conftest.s
28858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28863 test $ac_status = 0; }; }
28864 then
28865 gcc_cv_as_nios2_gotoff_relocation=yes
28866 else
28867 echo "configure: failed program was" >&5
28868 cat conftest.s >&5
28869 fi
28870 rm -f conftest.o conftest.s
28871 fi
28872 fi
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28874 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28875 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28876
28877 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28878
28879 fi
28880
28881 ;;
28882 riscv*-*-*)
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28884 $as_echo_n "checking assembler for .attribute support... " >&6; }
28885 if ${gcc_cv_as_riscv_attribute+:} false; then :
28886 $as_echo_n "(cached) " >&6
28887 else
28888 gcc_cv_as_riscv_attribute=no
28889 if test x$gcc_cv_as != x; then
28890 $as_echo '.attribute stack_align,4' > conftest.s
28891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28893 (eval $ac_try) 2>&5
28894 ac_status=$?
28895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28896 test $ac_status = 0; }; }
28897 then
28898 gcc_cv_as_riscv_attribute=yes
28899 else
28900 echo "configure: failed program was" >&5
28901 cat conftest.s >&5
28902 fi
28903 rm -f conftest.o conftest.s
28904 fi
28905 fi
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28907 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28908 if test $gcc_cv_as_riscv_attribute = yes; then
28909
28910 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28911
28912 fi
28913
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28915 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28916 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28917 $as_echo_n "(cached) " >&6
28918 else
28919 gcc_cv_as_riscv_isa_spec=no
28920 if test x$gcc_cv_as != x; then
28921 $as_echo '' > conftest.s
28922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28927 test $ac_status = 0; }; }
28928 then
28929 gcc_cv_as_riscv_isa_spec=yes
28930 else
28931 echo "configure: failed program was" >&5
28932 cat conftest.s >&5
28933 fi
28934 rm -f conftest.o conftest.s
28935 fi
28936 fi
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28938 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28939 if test $gcc_cv_as_riscv_isa_spec = yes; then
28940
28941 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28942
28943 fi
28944
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28946 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28947 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28948 $as_echo_n "(cached) " >&6
28949 else
28950 gcc_cv_as_riscv_march_zifencei=no
28951 if test x$gcc_cv_as != x; then
28952 $as_echo '' > conftest.s
28953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }
28959 then
28960 gcc_cv_as_riscv_march_zifencei=yes
28961 else
28962 echo "configure: failed program was" >&5
28963 cat conftest.s >&5
28964 fi
28965 rm -f conftest.o conftest.s
28966 fi
28967 fi
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28969 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28970 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28971
28972 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28973
28974 fi
28975
28976 ;;
28977 loongarch*-*-*)
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28979 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28980 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_loongarch_dtprelword=no
28984 if test x$gcc_cv_as != x; then
28985 $as_echo '' > conftest.s
28986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28991 test $ac_status = 0; }; }
28992 then
28993 .section .tdata,"awT",@progbits
28994 x:
28995 .word 2
28996 .text
28997 .dtprelword x+0x8000
28998 else
28999 echo "configure: failed program was" >&5
29000 cat conftest.s >&5
29001 fi
29002 rm -f conftest.o conftest.s
29003 fi
29004 fi
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29006 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29007
29008 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29009
29010 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29011
29012 fi
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29014 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29015 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
29016 $as_echo_n "(cached) " >&6
29017 else
29018 gcc_cv_as_loongarch_explicit_relocs=no
29019 if test x$gcc_cv_as != x; then
29020 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; }
29027 then
29028 gcc_cv_as_loongarch_explicit_relocs=yes
29029 else
29030 echo "configure: failed program was" >&5
29031 cat conftest.s >&5
29032 fi
29033 rm -f conftest.o conftest.s
29034 fi
29035 fi
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29037 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29038 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29039
29040 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29041
29042 fi
29043
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29045 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29046 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
29047 $as_echo_n "(cached) " >&6
29048 else
29049 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
29050 if test x$gcc_cv_as != x; then
29051 $as_echo '.cfi_startproc
29052 .cfi_personality 0x9b,a
29053 .cfi_lsda 0x1b,b
29054 .cfi_endproc' > conftest.s
29055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29057 (eval $ac_try) 2>&5
29058 ac_status=$?
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; }
29061 then
29062 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29063 else
29064 echo "configure: failed program was" >&5
29065 cat conftest.s >&5
29066 fi
29067 rm -f conftest.o conftest.s
29068 fi
29069 fi
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29071 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29072 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29073
29074 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29075
29076 fi
29077
29078 ;;
29079 s390*-*-*)
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29081 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29082 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29083 $as_echo_n "(cached) " >&6
29084 else
29085 gcc_cv_as_s390_gnu_attribute=no
29086 if test x$gcc_cv_as != x; then
29087 $as_echo '.gnu_attribute 8,1' > conftest.s
29088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29093 test $ac_status = 0; }; }
29094 then
29095 gcc_cv_as_s390_gnu_attribute=yes
29096 else
29097 echo "configure: failed program was" >&5
29098 cat conftest.s >&5
29099 fi
29100 rm -f conftest.o conftest.s
29101 fi
29102 fi
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29104 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29105 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29106
29107 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29108
29109 fi
29110
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29112 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29113 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29114 $as_echo_n "(cached) " >&6
29115 else
29116 gcc_cv_as_s390_machine_machinemode=no
29117 if test x$gcc_cv_as != x; then
29118 $as_echo ' .machinemode push
29119 .machinemode pop
29120 .machine push
29121 .machine pop' > conftest.s
29122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29127 test $ac_status = 0; }; }
29128 then
29129 gcc_cv_as_s390_machine_machinemode=yes
29130 else
29131 echo "configure: failed program was" >&5
29132 cat conftest.s >&5
29133 fi
29134 rm -f conftest.o conftest.s
29135 fi
29136 fi
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29138 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29139 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29140
29141 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29142
29143 fi
29144
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29146 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29147 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29148 $as_echo_n "(cached) " >&6
29149 else
29150 gcc_cv_as_s390_architecture_modifiers=no
29151 if test x$gcc_cv_as != x; then
29152 $as_echo ' .machine z13+vx ' > conftest.s
29153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158 test $ac_status = 0; }; }
29159 then
29160 gcc_cv_as_s390_architecture_modifiers=yes
29161 else
29162 echo "configure: failed program was" >&5
29163 cat conftest.s >&5
29164 fi
29165 rm -f conftest.o conftest.s
29166 fi
29167 fi
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29169 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29170 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29171
29172 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29173
29174 fi
29175
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29177 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29178 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29179 $as_echo_n "(cached) " >&6
29180 else
29181 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29182 if test x$gcc_cv_as != x; then
29183 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; }
29190 then
29191 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29192 else
29193 echo "configure: failed program was" >&5
29194 cat conftest.s >&5
29195 fi
29196 rm -f conftest.o conftest.s
29197 fi
29198 fi
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29200 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29201 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29202
29203 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29204
29205 fi
29206
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29208 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29209 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29210 $as_echo_n "(cached) " >&6
29211 else
29212 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29213 if test x$gcc_cv_as != x; then
29214 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29220 test $ac_status = 0; }; }
29221 then
29222 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29223 else
29224 echo "configure: failed program was" >&5
29225 cat conftest.s >&5
29226 fi
29227 rm -f conftest.o conftest.s
29228 fi
29229 fi
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29231 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29232 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29233
29234 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29235
29236 fi
29237
29238
29239 ;;
29240 esac
29241
29242 # Mips, LoongArch and HP-UX need the GNU assembler.
29243 # Linux on IA64 might be able to use the Intel assembler.
29244
29245 case "$target" in
29246 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29247 if test x$gas_flag = xyes \
29248 || test x"$host" != x"$build" \
29249 || test ! -x "$gcc_cv_as" \
29250 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29251 :
29252 else
29253 echo "*** This configuration requires the GNU assembler" >&2
29254 exit 1
29255 fi
29256 ;;
29257 esac
29258
29259 # AMD GCN needs the LLVM assembler and linker.
29260 # Test that LLVM is at least 13.0.1.
29261 case "$target" in
29262 amdgcn-* | gcn-*)
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29264 $as_echo_n "checking llvm assembler version... " >&6; }
29265 gcc_cv_as_version="unknown"
29266 if test x$gcc_cv_as != x; then
29267 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29268 case "$gcc_cv_as_version" in
29269 13.0.[1-9]*) ;; # 13.0.1+
29270 13.[1-9]*) ;; # 13.1+
29271 1[4-9]*) ;; # 14..19
29272 [2-9][0-9]*) ;; # 20..99
29273 [1-9][0-9][0-9]*) ;; # 100+
29274 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29275 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29276 esac
29277 fi
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29279 $as_echo "$gcc_cv_as_version, ok" >&6; }
29280 ;;
29281 esac
29282
29283 case "$target" in
29284 arm*)
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29286 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29287 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29288 $as_echo_n "(cached) " >&6
29289 else
29290 gcc_cv_as_arm_option_extensions=no
29291 if test x$gcc_cv_as != x; then
29292 $as_echo '.text
29293 .thumb
29294 .syntax unified
29295 vmov.f32 s0, s1' > conftest.s
29296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29298 (eval $ac_try) 2>&5
29299 ac_status=$?
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; }
29302 then
29303 gcc_cv_as_arm_option_extensions=yes
29304 else
29305 echo "configure: failed program was" >&5
29306 cat conftest.s >&5
29307 fi
29308 rm -f conftest.o conftest.s
29309 fi
29310 fi
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29312 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29313 if test $gcc_cv_as_arm_option_extensions = yes; then
29314
29315 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29316
29317 fi
29318
29319 esac
29320
29321 # ??? Not all targets support dwarf2 debug_line, even within a version
29322 # of gas. Moreover, we need to emit a valid instruction to trigger any
29323 # info to the output file. So, as supported targets are added to gas 2.11,
29324 # add some instruction here to (also) show we expect this might work.
29325 # ??? Once 2.11 is released, probably need to add first known working
29326 # version to the per-target configury.
29327 case "$cpu_type" in
29328 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29329 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29330 | visium | xstormy16 | xtensa)
29331 insn="nop"
29332 ;;
29333 ia64 | s390)
29334 insn="nop 0"
29335 ;;
29336 mmix)
29337 insn="swym 0"
29338 ;;
29339 esac
29340 if test x"$insn" != x; then
29341 conftest_s="\
29342 .file 1 \"conftest.s\"
29343 .loc 1 3 0
29344 $insn"
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29346 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29347 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29348 $as_echo_n "(cached) " >&6
29349 else
29350 gcc_cv_as_dwarf2_debug_line=no
29351 if test x$gcc_cv_as != x; then
29352 $as_echo "$conftest_s" > conftest.s
29353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29358 test $ac_status = 0; }; }
29359 then
29360 if test x$gcc_cv_objdump != x \
29361 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29362 | grep debug_line > /dev/null 2>&1; then
29363 gcc_cv_as_dwarf2_debug_line=yes
29364 elif test x$gcc_cv_otool != x \
29365 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29366 | grep debug_line > /dev/null 2>&1; then
29367 gcc_cv_as_dwarf2_debug_line=yes
29368 fi
29369 else
29370 echo "configure: failed program was" >&5
29371 cat conftest.s >&5
29372 fi
29373 rm -f conftest.o conftest.s
29374 fi
29375 fi
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29377 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29378
29379
29380
29381 # The .debug_line file table must be in the exact order that
29382 # we specified the files, since these indices are also used
29383 # by DW_AT_decl_file. Approximate this test by testing if
29384 # the assembler bitches if the same index is assigned twice.
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29386 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29387 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29388 $as_echo_n "(cached) " >&6
29389 else
29390 gcc_cv_as_dwarf2_file_buggy=no
29391 if test x$gcc_cv_as != x; then
29392 $as_echo ' .file 1 "foo.s"
29393 .file 1 "bar.s"' > conftest.s
29394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29399 test $ac_status = 0; }; }
29400 then
29401 gcc_cv_as_dwarf2_file_buggy=yes
29402 else
29403 echo "configure: failed program was" >&5
29404 cat conftest.s >&5
29405 fi
29406 rm -f conftest.o conftest.s
29407 fi
29408 fi
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29410 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29411
29412
29413
29414 if test $gcc_cv_as_dwarf2_debug_line = yes \
29415 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29416
29417 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29418
29419
29420 if test $gcc_cv_as_leb128 = yes; then
29421 conftest_s="\
29422 .file 1 \"conftest.s\"
29423 .loc 1 3 0 view .LVU1
29424 $insn
29425 .data
29426 .uleb128 .LVU1
29427 .uleb128 .LVU1
29428 "
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29430 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29431 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29432 $as_echo_n "(cached) " >&6
29433 else
29434 gcc_cv_as_dwarf2_debug_view=no
29435 if test x$gcc_cv_as != x; then
29436 $as_echo "$conftest_s" > conftest.s
29437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29442 test $ac_status = 0; }; }
29443 then
29444 gcc_cv_as_dwarf2_debug_view=yes
29445 else
29446 echo "configure: failed program was" >&5
29447 cat conftest.s >&5
29448 fi
29449 rm -f conftest.o conftest.s
29450 fi
29451 fi
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29453 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29454 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29455
29456 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29457
29458 fi
29459
29460 fi
29461 fi
29462
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29464 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29465 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29466 $as_echo_n "(cached) " >&6
29467 else
29468 gcc_cv_as_gdwarf2_flag=no
29469 if test x$gcc_cv_as != x; then
29470 $as_echo "$insn" > conftest.s
29471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29473 (eval $ac_try) 2>&5
29474 ac_status=$?
29475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29476 test $ac_status = 0; }; }
29477 then
29478 gcc_cv_as_gdwarf2_flag=yes
29479 else
29480 echo "configure: failed program was" >&5
29481 cat conftest.s >&5
29482 fi
29483 rm -f conftest.o conftest.s
29484 fi
29485 fi
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29487 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29488 if test $gcc_cv_as_gdwarf2_flag = yes; then
29489
29490 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29491
29492 fi
29493
29494
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29496 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29497 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29498 $as_echo_n "(cached) " >&6
29499 else
29500 gcc_cv_as_gdwarf_5_flag=no
29501 if test x$gcc_cv_as != x; then
29502 $as_echo "$insn" > conftest.s
29503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29508 test $ac_status = 0; }; }
29509 then
29510 if test x$gcc_cv_objdump != x \
29511 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29512 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29513 gcc_cv_as_gdwarf_5_flag=yes;
29514 fi
29515 else
29516 echo "configure: failed program was" >&5
29517 cat conftest.s >&5
29518 fi
29519 rm -f conftest.o conftest.s
29520 fi
29521 fi
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29523 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29524 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29525
29526 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29527
29528 fi
29529
29530
29531 case $target_os in
29532 win32 | pe | cygwin* | mingw32*)
29533 section_flags=\"dr\"
29534 function_type=".def foo; .scl 2; .type 32; .endef"
29535 function_size="";;
29536 *)
29537 section_flags=\"\",%progbits
29538 function_type=".type foo, %function"
29539 function_size=".size foo, .-foo";;
29540 esac
29541 dwarf4_debug_info_size=0x46
29542 dwarf4_high_pc_form=7
29543 dwarf4_debug_aranges_size=0x2c
29544 dwarf4_line_sz=9
29545 for dwarf4_addr_size in 8 4; do
29546 conftest_s="\
29547 .file \"a.c\"
29548 .text
29549 .Ltext0:
29550 .p2align 4
29551 .globl foo
29552 $function_type
29553 foo:
29554 .LFB0:
29555 .LM1:
29556 $insn
29557 .LM2:
29558 .LFE0:
29559 $function_size
29560 .Letext0:
29561 .section .debug_info,$section_flags
29562 .Ldebug_info0:
29563 .4byte $dwarf4_debug_info_size
29564 .2byte 0x4
29565 .4byte .Ldebug_abbrev0
29566 .byte 0x$dwarf4_addr_size
29567 .byte 0x1
29568 .ascii \"GNU C17\\0\"
29569 .byte 0xc
29570 .ascii \"a.c\\0\"
29571 .ascii \"/\\0\"
29572 .${dwarf4_addr_size}byte .Ltext0
29573 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29574 .4byte .Ldebug_line0
29575 .byte 0x2
29576 .ascii \"foo\\0\"
29577 .byte 0x1
29578 .byte 0x2
29579 .byte 0x1
29580 .${dwarf4_addr_size}byte .LFB0
29581 .${dwarf4_addr_size}byte .LFE0-.LFB0
29582 .byte 0x1
29583 .byte 0x9c
29584 .byte 0
29585 .section .debug_abbrev,$section_flags
29586 .Ldebug_abbrev0:
29587 .byte 0x1
29588 .byte 0x11
29589 .byte 0x1
29590 .byte 0x25
29591 .byte 0x8
29592 .byte 0x13
29593 .byte 0xb
29594 .byte 0x3
29595 .byte 0x8
29596 .byte 0x1b
29597 .byte 0x8
29598 .byte 0x11
29599 .byte 0x1
29600 .byte 0x12
29601 .byte 0x$dwarf4_high_pc_form
29602 .byte 0x10
29603 .byte 0x17
29604 .byte 0
29605 .byte 0
29606 .byte 0x2
29607 .byte 0x2e
29608 .byte 0
29609 .byte 0x3f
29610 .byte 0x19
29611 .byte 0x3
29612 .byte 0x8
29613 .byte 0x3a
29614 .byte 0xb
29615 .byte 0x3b
29616 .byte 0xb
29617 .byte 0x39
29618 .byte 0xb
29619 .byte 0x11
29620 .byte 0x1
29621 .byte 0x12
29622 .byte 0x$dwarf4_high_pc_form
29623 .byte 0x40
29624 .byte 0x18
29625 .byte 0
29626 .byte 0
29627 .byte 0
29628 .section .debug_aranges,$section_flags
29629 .4byte $dwarf4_debug_aranges_size
29630 .2byte 0x2
29631 .4byte .Ldebug_info0
29632 .byte 0x8
29633 .byte 0
29634 .2byte 0
29635 .2byte 0
29636 .${dwarf4_addr_size}byte .Ltext0
29637 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29638 .${dwarf4_addr_size}byte 0
29639 .${dwarf4_addr_size}byte 0
29640 .section .debug_line,$section_flags
29641 .Ldebug_line0:
29642 .4byte .LELT0-.LSLT0
29643 .LSLT0:
29644 .2byte 0x4
29645 .4byte .LELTP0-.LASLTP0
29646 .LASLTP0:
29647 .byte 0x1
29648 .byte 0x1
29649 .byte 0x1
29650 .byte 0xf6
29651 .byte 0xf2
29652 .byte 0xd
29653 .byte 0
29654 .byte 0x1
29655 .byte 0x1
29656 .byte 0x1
29657 .byte 0x1
29658 .byte 0
29659 .byte 0
29660 .byte 0
29661 .byte 0x1
29662 .byte 0
29663 .byte 0
29664 .byte 0x1
29665 .byte 0
29666 .ascii \"a.c\\0\"
29667 .byte 0
29668 .byte 0
29669 .byte 0
29670 .byte 0
29671 .LELTP0:
29672 .byte 0
29673 .byte 0x$dwarf4_line_sz
29674 .byte 0x2
29675 .${dwarf4_addr_size}byte .LM1
29676 .byte 0x18
29677 .byte 0x5
29678 .byte 0x1
29679 .byte 0
29680 .byte 0x$dwarf4_line_sz
29681 .byte 0x2
29682 .${dwarf4_addr_size}byte .LM2
29683 .byte 0x1
29684 .byte 0x5
29685 .byte 0x1
29686 .byte 0
29687 .byte 0x$dwarf4_line_sz
29688 .byte 0x2
29689 .${dwarf4_addr_size}byte .Letext0
29690 .byte 0
29691 .byte 0x1
29692 .byte 0x1
29693 .LELT0:
29694 .section .debug_str,$section_flags
29695 .ident \"GCC\"
29696 "
29697 dwarf4_success=no
29698 if test $dwarf4_addr_size = 4; then
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29700 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29701 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29702 $as_echo_n "(cached) " >&6
29703 else
29704 gcc_cv_as_debug_line_32_flag=no
29705 if test x$gcc_cv_as != x; then
29706 $as_echo "$conftest_s" > conftest.s
29707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29712 test $ac_status = 0; }; }
29713 then
29714 gcc_cv_as_debug_line_32_flag=yes
29715 else
29716 echo "configure: failed program was" >&5
29717 cat conftest.s >&5
29718 fi
29719 rm -f conftest.o conftest.s
29720 fi
29721 fi
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29723 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29724 if test $gcc_cv_as_debug_line_32_flag = yes; then
29725 dwarf4_success=yes
29726 fi
29727
29728 else
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29730 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29731 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29732 $as_echo_n "(cached) " >&6
29733 else
29734 gcc_cv_as_debug_line_64_flag=no
29735 if test x$gcc_cv_as != x; then
29736 $as_echo "$conftest_s" > conftest.s
29737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29739 (eval $ac_try) 2>&5
29740 ac_status=$?
29741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29742 test $ac_status = 0; }; }
29743 then
29744 gcc_cv_as_debug_line_64_flag=yes
29745 else
29746 echo "configure: failed program was" >&5
29747 cat conftest.s >&5
29748 fi
29749 rm -f conftest.o conftest.s
29750 fi
29751 fi
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29753 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29754 if test $gcc_cv_as_debug_line_64_flag = yes; then
29755 dwarf4_success=yes
29756 fi
29757
29758 fi
29759 if test $dwarf4_success = yes; then
29760 dwarf4_success=no
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29762 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29763 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29764 $as_echo_n "(cached) " >&6
29765 else
29766 gcc_cv_as_dwarf_4_debug_line_flag=no
29767 if test x$gcc_cv_as != x; then
29768 $as_echo "$conftest_s" > conftest.s
29769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29774 test $ac_status = 0; }; }
29775 then
29776 gcc_cv_as_dwarf_4_debug_line_flag=yes
29777 else
29778 echo "configure: failed program was" >&5
29779 cat conftest.s >&5
29780 fi
29781 rm -f conftest.o conftest.s
29782 fi
29783 fi
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29785 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29786 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29787 dwarf4_success=yes
29788 fi
29789
29790 break
29791 fi
29792 dwarf4_debug_info_size=0x36
29793 dwarf4_high_pc_form=6
29794 dwarf4_debug_aranges_size=0x1c
29795 dwarf4_line_sz=5
29796 done
29797
29798 if test $dwarf4_success = yes; then
29799 conftest_s="\
29800 .file \"foo.c\"
29801 .text
29802 bar:
29803 #APP
29804 # 82 \"xxx.h\" 1
29805 $insn
29806 # 0 \"\" 2
29807 #NO_APP
29808 $insn
29809 foo:
29810 .file 1 \"foo.c\"
29811 $insn
29812 .file 2 \"foo.h\"
29813 ret
29814 "
29815 dwarf4_success=no
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29817 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29818 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29819 $as_echo_n "(cached) " >&6
29820 else
29821 gcc_cv_as_dwarf_4_app_flag=no
29822 if test x$gcc_cv_as != x; then
29823 $as_echo "$conftest_s" > conftest.s
29824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29826 (eval $ac_try) 2>&5
29827 ac_status=$?
29828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29829 test $ac_status = 0; }; }
29830 then
29831 gcc_cv_as_dwarf_4_app_flag=yes
29832 else
29833 echo "configure: failed program was" >&5
29834 cat conftest.s >&5
29835 fi
29836 rm -f conftest.o conftest.s
29837 fi
29838 fi
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29840 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29841 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29842 dwarf4_success=yes
29843 fi
29844
29845 fi
29846
29847 if test $dwarf4_success = yes; then
29848 conftest_s="\
29849 .text
29850 .globl foo
29851 $function_type
29852 foo:
29853 $insn
29854 $function_size
29855 .file 1 \"foo.c\"
29856 "
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29858 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29859 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29860 $as_echo_n "(cached) " >&6
29861 else
29862 gcc_cv_as_working_gdwarf_n_flag=no
29863 if test x$gcc_cv_as != x; then
29864 $as_echo "$conftest_s" > conftest.s
29865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }
29871 then
29872 if test x$gcc_cv_objdump != x \
29873 && $gcc_cv_objdump -W conftest.o 2>&1 \
29874 | grep conftest.s > /dev/null 2>&1; then
29875 gcc_cv_as_working_gdwarf_n_flag=no
29876 else
29877 gcc_cv_as_working_gdwarf_n_flag=yes
29878 fi
29879 else
29880 echo "configure: failed program was" >&5
29881 cat conftest.s >&5
29882 fi
29883 rm -f conftest.o conftest.s
29884 fi
29885 fi
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29887 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29888
29889
29890 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29891
29892 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29893
29894 fi
29895 fi
29896
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29898 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29899 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29900 $as_echo_n "(cached) " >&6
29901 else
29902 gcc_cv_as_debug_prefix_map_flag=no
29903 if test x$gcc_cv_as != x; then
29904 $as_echo "$insn" > conftest.s
29905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29910 test $ac_status = 0; }; }
29911 then
29912 gcc_cv_as_debug_prefix_map_flag=yes
29913 else
29914 echo "configure: failed program was" >&5
29915 cat conftest.s >&5
29916 fi
29917 rm -f conftest.o conftest.s
29918 fi
29919 fi
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29921 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29922 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29923
29924 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29925
29926 fi
29927
29928 fi
29929
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29931 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29932 if ${gcc_cv_as_compress_debug+:} false; then :
29933 $as_echo_n "(cached) " >&6
29934 else
29935 gcc_cv_as_compress_debug=no
29936 if test x$gcc_cv_as != x; then
29937 $as_echo '' > conftest.s
29938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943 test $ac_status = 0; }; }
29944 then
29945 # gas compiled without zlib cannot compress debug sections and warns
29946 # about it, but still exits successfully. So check for this, too.
29947 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29948 then
29949 gcc_cv_as_compress_debug=0
29950 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29951 then
29952 gcc_cv_as_compress_debug=1
29953 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29954 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29955 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29956 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29957 then
29958 gcc_cv_as_compress_debug=2
29959 fi
29960 else
29961 gcc_cv_as_compress_debug=0
29962 fi
29963 else
29964 echo "configure: failed program was" >&5
29965 cat conftest.s >&5
29966 fi
29967 rm -f conftest.o conftest.s
29968 fi
29969 fi
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29971 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29972
29973
29974
29975 cat >>confdefs.h <<_ACEOF
29976 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29977 _ACEOF
29978
29979
29980 cat >>confdefs.h <<_ACEOF
29981 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29982 _ACEOF
29983
29984
29985 cat >>confdefs.h <<_ACEOF
29986 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29987 _ACEOF
29988
29989
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29991 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29992 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29993 $as_echo_n "(cached) " >&6
29994 else
29995 gcc_cv_as_lcomm_with_alignment=no
29996 if test x$gcc_cv_as != x; then
29997 $as_echo '.lcomm bar,4,16' > conftest.s
29998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30003 test $ac_status = 0; }; }
30004 then
30005 gcc_cv_as_lcomm_with_alignment=yes
30006 else
30007 echo "configure: failed program was" >&5
30008 cat conftest.s >&5
30009 fi
30010 rm -f conftest.o conftest.s
30011 fi
30012 fi
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30014 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30015 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30016
30017 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30018
30019 fi
30020
30021
30022 if test x$with_sysroot = x && test x$host = x$target \
30023 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30024 && test "$prefix" != "NONE"; then
30025
30026 cat >>confdefs.h <<_ACEOF
30027 #define PREFIX_INCLUDE_DIR "$prefix/include"
30028 _ACEOF
30029
30030 fi
30031
30032 # Determine the version of glibc, if any, used on the target.
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30034 $as_echo_n "checking for target glibc version... " >&6; }
30035
30036 # Check whether --with-glibc-version was given.
30037 if test "${with_glibc_version+set}" = set; then :
30038 withval=$with_glibc_version;
30039 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30040 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30041 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30042 else
30043 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30044 fi
30045 else
30046
30047 glibc_version_major=0
30048 glibc_version_minor=0
30049 if test -f $target_header_dir/features.h \
30050 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30051 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30052 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30053 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30054 fi
30055 fi
30056
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30058 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30059
30060 cat >>confdefs.h <<_ACEOF
30061 #define TARGET_GLIBC_MAJOR $glibc_version_major
30062 _ACEOF
30063
30064
30065 cat >>confdefs.h <<_ACEOF
30066 #define TARGET_GLIBC_MINOR $glibc_version_minor
30067 _ACEOF
30068
30069
30070 # Check whether --enable-gnu-unique-object was given.
30071 if test "${enable_gnu_unique_object+set}" = set; then :
30072 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30073 yes | no) ;;
30074 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30075 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30076 esac
30077 else
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30079 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30080 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30081 $as_echo_n "(cached) " >&6
30082 else
30083 gcc_cv_as_gnu_unique_object=no
30084 if test x$gcc_cv_as != x; then
30085 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091 test $ac_status = 0; }; }
30092 then
30093 gcc_cv_as_gnu_unique_object=yes
30094 else
30095 echo "configure: failed program was" >&5
30096 cat conftest.s >&5
30097 fi
30098 rm -f conftest.o conftest.s
30099 fi
30100 fi
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30102 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30103 if test $gcc_cv_as_gnu_unique_object = yes; then
30104 # We need to unquote above to to use the definition from config.gcc.
30105 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30106
30107 if test $glibc_version_major -gt 2 \
30108 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30109 enable_gnu_unique_object=yes
30110 fi
30111
30112 fi
30113
30114 fi
30115
30116 if test x$enable_gnu_unique_object = xyes; then
30117
30118 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30119
30120 fi
30121
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30123 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30124 if ${gcc_cv_as_line_zero+:} false; then :
30125 $as_echo_n "(cached) " >&6
30126 else
30127 gcc_cv_as_line_zero=no
30128 if test "x$gcc_cv_as" != x; then
30129 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30130 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30132 (eval $ac_try) 2>&5
30133 ac_status=$?
30134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135 test $ac_status = 0; }; } &&
30136 test "x`cat conftest.out`" = x
30137 then
30138 gcc_cv_as_line_zero=yes
30139 else
30140 echo "configure: failed program was" >&5
30141 cat conftest.s >&5
30142 echo "configure: error output was" >&5
30143 cat conftest.out >&5
30144 fi
30145 rm -f conftest.o conftest.s conftest.out
30146 fi
30147 fi
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30149 $as_echo "$gcc_cv_as_line_zero" >&6; }
30150 if test "x$gcc_cv_as_line_zero" = xyes; then
30151
30152 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30153
30154 fi
30155
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30157 $as_echo_n "checking support for thin archives... " >&6; }
30158 thin_archive_support=no
30159 echo 'int main (void) { return 0; }' > conftest.c
30160 if ($AR --version | sed 1q | grep "GNU ar" \
30161 && $CC $CFLAGS -c conftest.c \
30162 && $AR rcT conftest.a conftest.o \
30163 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30164 thin_archive_support=yes
30165 fi
30166 rm -f conftest.c conftest.o conftest.a conftest
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30168 $as_echo "$thin_archive_support" >&6; }
30169
30170
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30172 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30173 gcc_cv_ld_eh_frame_hdr=no
30174 if test $in_tree_ld = yes ; then
30175 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 \
30176 && test $in_tree_ld_is_elf = yes; then
30177 gcc_cv_ld_eh_frame_hdr=yes
30178 fi
30179 elif test x$gcc_cv_ld != x; then
30180 if echo "$ld_ver" | grep GNU > /dev/null; then
30181 # Check if linker supports --eh-frame-hdr option
30182 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30183 gcc_cv_ld_eh_frame_hdr=yes
30184 fi
30185 else
30186 case "$target" in
30187 *-*-solaris2*)
30188 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30189 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30190 gcc_cv_ld_eh_frame_hdr=yes
30191 fi
30192 ;;
30193 esac
30194 fi
30195 fi
30196
30197 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30198
30199 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30200
30201 fi
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30203 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30204
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30206 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30207 gcc_cv_ld_eh_frame_ciev3=no
30208 if test $in_tree_ld = yes ; then
30209 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 \
30210 && test $in_tree_ld_is_elf = yes; then
30211 gcc_cv_ld_eh_frame_ciev3=yes
30212 fi
30213 elif test x$gcc_cv_ld != x; then
30214 if echo "$ld_ver" | grep GNU > /dev/null; then
30215 gcc_cv_ld_eh_frame_ciev3=yes
30216 if test 0"$ld_date" -lt 20040513; then
30217 if test -n "$ld_date"; then
30218 # If there was date string, but was earlier than 2004-05-13, fail
30219 gcc_cv_ld_eh_frame_ciev3=no
30220 elif test "$ld_vers_major" -lt 2; then
30221 gcc_cv_ld_eh_frame_ciev3=no
30222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30223 gcc_cv_ld_eh_frame_ciev3=no
30224 fi
30225 fi
30226 else
30227 case "$target" in
30228 *-*-solaris2*)
30229 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30230 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30231 gcc_cv_ld_eh_frame_ciev3=yes
30232 fi
30233 ;;
30234 esac
30235 fi
30236 fi
30237
30238 cat >>confdefs.h <<_ACEOF
30239 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30240 _ACEOF
30241
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30243 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30244
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30246 $as_echo_n "checking linker position independent executable support... " >&6; }
30247 gcc_cv_ld_pie=no
30248 if test $in_tree_ld = yes ; then
30249 case "$target" in
30250 # Full PIE support on Solaris was only introduced in gld 2.26.
30251 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30252 *) gcc_gld_pie_min_version=15 ;;
30253 esac
30254 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 \
30255 && test $in_tree_ld_is_elf = yes; then
30256 gcc_cv_ld_pie=yes
30257 fi
30258 elif test x$gcc_cv_ld != x; then
30259 # Check if linker supports -pie option
30260 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30261 gcc_cv_ld_pie=yes
30262 case "$target" in
30263 *-*-solaris2*)
30264 if echo "$ld_ver" | grep GNU > /dev/null \
30265 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30266 gcc_cv_ld_pie=no
30267 fi
30268 ;;
30269 esac
30270 else
30271 case "$target" in
30272 *-*-solaris2.1[1-9]*)
30273 # Solaris 11.3 added PIE support.
30274 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30275 gcc_cv_ld_pie=yes
30276 fi
30277 ;;
30278 esac
30279 fi
30280 fi
30281 if test x"$gcc_cv_ld_pie" = xyes; then
30282
30283 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30284
30285 fi
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30287 $as_echo "$gcc_cv_ld_pie" >&6; }
30288
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30290 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30291 gcc_cv_ld_pie_copyreloc=no
30292 if test $gcc_cv_ld_pie = yes ; then
30293 if test $in_tree_ld = yes ; then
30294 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
30295 gcc_cv_ld_pie_copyreloc=yes
30296 fi
30297 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30298 # Check if linker supports -pie option with copy reloc
30299 case "$target" in
30300 i?86-*-linux* | x86_64-*-linux*)
30301 cat > conftest1.s <<EOF
30302 .globl a_glob
30303 .data
30304 .type a_glob, @object
30305 .size a_glob, 4
30306 a_glob:
30307 .long 2
30308 EOF
30309 cat > conftest2.s <<EOF
30310 .text
30311 .globl main
30312 .type main, @function
30313 main:
30314 movl %eax, a_glob(%rip)
30315 .size main, .-main
30316 .globl ptr
30317 .section .data.rel,"aw",@progbits
30318 .type ptr, @object
30319 ptr:
30320 .quad a_glob
30321 EOF
30322 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30323 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30324 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30325 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30326 gcc_cv_ld_pie_copyreloc=yes
30327 fi
30328 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30329 ;;
30330 esac
30331 fi
30332 fi
30333
30334 cat >>confdefs.h <<_ACEOF
30335 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30336 _ACEOF
30337
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30339 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30340
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30342 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30343 gcc_cv_ld_eh_gc_sections=no
30344 if test $in_tree_ld = yes ; then
30345 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 \
30346 && test $in_tree_ld_is_elf = yes; then
30347 gcc_cv_ld_eh_gc_sections=yes
30348 fi
30349 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30350 cat > conftest.s <<EOF
30351 .section .text
30352 .globl _start
30353 .type _start, @function
30354 _start:
30355 .long foo
30356 .size _start, .-_start
30357 .section .text.foo,"ax",@progbits
30358 .type foo, @function
30359 foo:
30360 .long 0
30361 .size foo, .-foo
30362 .section .gcc_except_table.foo,"a",@progbits
30363 .L0:
30364 .long 0
30365 .section .eh_frame,"a",@progbits
30366 .long .L0
30367 EOF
30368 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30369 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30370 | grep "gc-sections option ignored" > /dev/null; then
30371 gcc_cv_ld_eh_gc_sections=no
30372 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30373 | grep gcc_except_table > /dev/null; then
30374 gcc_cv_ld_eh_gc_sections=yes
30375 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30376 if test x$gcc_cv_as_comdat_group != xyes; then
30377 gcc_cv_ld_eh_gc_sections=no
30378 cat > conftest.s <<EOF
30379 .section .text
30380 .globl _start
30381 .type _start, @function
30382 _start:
30383 .long foo
30384 .size _start, .-_start
30385 .section .gnu.linkonce.t.foo,"ax",@progbits
30386 .type foo, @function
30387 foo:
30388 .long 0
30389 .size foo, .-foo
30390 .section .gcc_except_table.foo,"a",@progbits
30391 .L0:
30392 .long 0
30393 .section .eh_frame,"a",@progbits
30394 .long .L0
30395 EOF
30396 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30397 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30398 | grep "gc-sections option ignored" > /dev/null; then
30399 gcc_cv_ld_eh_gc_sections=no
30400 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30401 | grep gcc_except_table > /dev/null; then
30402 gcc_cv_ld_eh_gc_sections=yes
30403 fi
30404 fi
30405 fi
30406 fi
30407 fi
30408 rm -f conftest.s conftest.o conftest
30409 fi
30410 case "$target" in
30411 hppa*-*-linux*)
30412 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30413 gcc_cv_ld_eh_gc_sections=no
30414 ;;
30415 esac
30416 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30417
30418 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30419
30420 fi
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30422 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30423
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30425 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30426 gcc_cv_ld_eh_gc_sections_bug=no
30427 if test $in_tree_ld = yes ; then
30428 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 \
30429 && test $in_tree_ld_is_elf = yes; then
30430 gcc_cv_ld_eh_gc_sections_bug=yes
30431 fi
30432 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
30433 gcc_cv_ld_eh_gc_sections_bug=yes
30434 cat > conftest.s <<EOF
30435 .section .text
30436 .globl _start
30437 .type _start, @function
30438 _start:
30439 .long foo
30440 .size _start, .-_start
30441 .section .text.startup.foo,"ax",@progbits
30442 .type foo, @function
30443 foo:
30444 .long 0
30445 .size foo, .-foo
30446 .section .gcc_except_table.foo,"a",@progbits
30447 .L0:
30448 .long 0
30449 .section .eh_frame,"a",@progbits
30450 .long .L0
30451 EOF
30452 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30453 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30454 | grep "gc-sections option ignored" > /dev/null; then
30455 :
30456 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30457 | grep gcc_except_table > /dev/null; then
30458 gcc_cv_ld_eh_gc_sections_bug=no
30459 fi
30460 fi
30461 rm -f conftest.s conftest.o conftest
30462 fi
30463 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30464
30465 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30466
30467 fi
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30469 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30470
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30472 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30473 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30474 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30475 gcc_cv_ld_compress_debug=1
30476 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30477 # Detect zstd debug section compression support
30478 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30479 gcc_cv_ld_compress_debug=2
30480 fi
30481 else
30482 case "${target}" in
30483 *-*-solaris2*)
30484 # Introduced in Solaris 11.2.
30485 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30486 gcc_cv_ld_compress_debug=1
30487 gcc_cv_ld_compress_debug_option="-z compress-sections"
30488 else
30489 gcc_cv_ld_compress_debug=0
30490 fi
30491 ;;
30492 *)
30493 # Assume linkers other than GNU ld don't support compessed debug
30494 # sections.
30495 gcc_cv_ld_compress_debug=0
30496 ;;
30497 esac
30498 fi
30499
30500 cat >>confdefs.h <<_ACEOF
30501 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30502 _ACEOF
30503
30504
30505 cat >>confdefs.h <<_ACEOF
30506 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30507 _ACEOF
30508
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30510 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30511
30512 if test x"$ld64_flag" = x"yes"; then
30513
30514 # Set defaults for possibly untestable items.
30515 gcc_cv_ld64_export_dynamic=0
30516 gcc_cv_ld64_platform_version=0
30517 gcc_cv_ld64_demangle=0
30518
30519 if test "$build" = "$host"; then
30520 darwin_try_test=1
30521 else
30522 darwin_try_test=0
30523 fi
30524
30525 # On Darwin, because of FAT library support, it is often possible to execute
30526 # exes from compatible archs even when the host differs from the build system.
30527 case "$build","$host" in
30528 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30529 darwin_try_test=1;;
30530 *) ;;
30531 esac
30532
30533 # If the configurer specified a minimum ld64 version to be supported, then use
30534 # that to determine feature support.
30535 if test x"${gcc_cv_ld64_version}" != x; then
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30537 $as_echo_n "checking ld64 specified version... " >&6; }
30538 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30540 $as_echo "$gcc_cv_ld64_major" >&6; }
30541 if test "$gcc_cv_ld64_major" -ge 97; then
30542 gcc_cv_ld64_demangle=1
30543 fi
30544 if test "$gcc_cv_ld64_major" -ge 236; then
30545 gcc_cv_ld64_export_dynamic=1
30546 fi
30547 if test "$gcc_cv_ld64_major" -ge 512; then
30548 gcc_cv_ld64_platform_version=1
30549 fi
30550 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30551 # If the version was not specified, try to find it.
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30553 $as_echo_n "checking linker version... " >&6; }
30554 if test x"${gcc_cv_ld64_version}" = x; then
30555 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30556 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30557 fi
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30559 $as_echo "$gcc_cv_ld64_version" >&6; }
30560
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30562 $as_echo_n "checking linker for -demangle support... " >&6; }
30563 gcc_cv_ld64_demangle=1
30564 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30565 gcc_cv_ld64_demangle=0
30566 fi
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30568 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30569
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30571 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30572 gcc_cv_ld64_export_dynamic=1
30573 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30574 gcc_cv_ld64_export_dynamic=0
30575 fi
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30577 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30578
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30580 $as_echo_n "checking linker for -platform_version support... " >&6; }
30581 gcc_cv_ld64_platform_version=1
30582 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30583 gcc_cv_ld64_platform_version=0
30584 fi
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30586 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30587 fi
30588
30589 if test x"${gcc_cv_ld64_version}" != x; then
30590
30591 cat >>confdefs.h <<_ACEOF
30592 #define LD64_VERSION "${gcc_cv_ld64_version}"
30593 _ACEOF
30594
30595 fi
30596
30597
30598 cat >>confdefs.h <<_ACEOF
30599 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30600 _ACEOF
30601
30602
30603
30604 cat >>confdefs.h <<_ACEOF
30605 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30606 _ACEOF
30607
30608
30609
30610 cat >>confdefs.h <<_ACEOF
30611 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30612 _ACEOF
30613
30614 fi
30615
30616 if test x"$dsymutil_flag" = x"yes"; then
30617
30618 # If the user specified a dsymutil path, then we will already have the
30619 # version string, otherwise, pick it up.
30620 if test x"$gcc_cv_dsymutil" = x; then
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30622 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30623 dsymutil_vers="tool unspecified"
30624 elif test x"$dsymutil_vers" = x; then
30625 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30626 fi
30627
30628 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30630 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30631 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30632 dsymutil_kind=DWARFUTILS
30633 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30634 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30635 dsymutil_kind=CLANG
30636 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30637 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30638 dsymutil_kind=LLVM
30639 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30640 else
30641 dsymutil_kind=UNKNOWN
30642 dsymutil_vers="0.0"
30643 fi
30644 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30645 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30646 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30647 if test x"${dsymutil_minor}" = x; then
30648 dsymutil_minor=0
30649 fi
30650 if test x"${dsymutil_tiny}" = x; then
30651 dsymutil_tiny=0
30652 fi
30653
30654 cat >>confdefs.h <<_ACEOF
30655 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30656 _ACEOF
30657
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30659 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30660 fi
30661
30662 case $target_os in
30663 win32 | pe | cygwin* | mingw32*)
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30665 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30666 gcc_cv_ld_broken_pe_dwarf5=yes
30667 if test $in_tree_ld = yes ; then
30668 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30669 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30670 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30671 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30672 gcc_cv_ld_broken_pe_dwarf5=no
30673 fi
30674 else
30675 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30676 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30677 gcc_cv_ld_broken_pe_dwarf5=no
30678 fi
30679 fi
30680 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30681
30682 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30683
30684 fi
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30686 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30687
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30689 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30690 gcc_cv_ld_disable_dynamicbase=no
30691 if test $in_tree_ld = yes; then
30692 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 \
30693 gcc_cv_ld_disable_dynamicbase=yes
30694 fi
30695 else
30696 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30697 gcc_cv_ld_disable_dynamicbase=yes
30698 fi
30699 fi
30700 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30701
30702 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30703
30704 fi
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30706 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30707 ;;
30708 esac
30709
30710 # --------
30711 # UNSORTED
30712 # --------
30713
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30715 $as_echo_n "checking linker --as-needed support... " >&6; }
30716 if ${gcc_cv_ld_as_needed+:} false; then :
30717 $as_echo_n "(cached) " >&6
30718 else
30719 gcc_cv_ld_as_needed=no
30720 gcc_cv_ld_as_needed_option='--as-needed'
30721 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30722 if test $in_tree_ld = yes ; then
30723 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 \
30724 && test $in_tree_ld_is_elf = yes; then
30725 gcc_cv_ld_as_needed=yes
30726 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30727 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30728 gcc_cv_ld_no_as_needed_option='--pop-state'
30729 fi
30730 fi
30731 elif test x$gcc_cv_ld != x; then
30732 # Check if linker supports --as-needed and --no-as-needed options
30733 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30734 gcc_cv_ld_as_needed=yes
30735 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30736 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30737 && echo "$ld_ver" | grep GNU > /dev/null \
30738 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30739 # Use these options only when both ld.bfd and ld.gold support
30740 # --push-state/--pop-state, which unfortunately wasn't added
30741 # at the same time.
30742 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30743 gcc_cv_ld_no_as_needed_option='--pop-state'
30744 fi
30745 fi
30746 case "$target:$gnu_ld" in
30747 *-*-solaris2*:no)
30748 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30749 # forms.
30750 gcc_cv_ld_as_needed=yes
30751 gcc_cv_ld_as_needed_option="-z ignore"
30752 gcc_cv_ld_no_as_needed_option="-z record"
30753 ;;
30754 esac
30755 fi
30756 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30757 # dl_iterate_phdr, i.e. since Solaris 11.
30758 case "$target" in
30759 *-*-solaris2.1[1-9]*)
30760 case "$target" in
30761 i?86-*-* | x86_64-*-*)
30762 if echo "$ld_ver" | grep GNU > /dev/null; then
30763 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30764 gcc_cv_ld_as_needed=no
30765 fi
30766 ;;
30767 esac
30768 ;;
30769 *-*-solaris2*)
30770 gcc_cv_ld_as_needed=no
30771 ;;
30772 esac
30773
30774 fi
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30776 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30777 if test x"$gcc_cv_ld_as_needed" = xyes; then
30778
30779 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30780
30781
30782 cat >>confdefs.h <<_ACEOF
30783 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30784 _ACEOF
30785
30786
30787 cat >>confdefs.h <<_ACEOF
30788 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30789 _ACEOF
30790
30791 fi
30792
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30794 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30795 saved_LDFLAGS="$LDFLAGS"
30796 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30797 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30799 /* end confdefs.h. */
30800 int main(void) {return 0;}
30801 _ACEOF
30802 if ac_fn_cxx_try_link "$LINENO"; then :
30803 gcc_cv_ld_clearcap=yes; break
30804 else
30805 gcc_cv_ld_clearcap=no
30806 fi
30807 rm -f core conftest.err conftest.$ac_objext \
30808 conftest$ac_exeext conftest.$ac_ext
30809 done
30810 LDFLAGS="$saved_LDFLAGS"
30811 if test "x$gcc_cv_ld_clearcap" = xyes; then
30812
30813 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30814
30815 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30816
30817 fi
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30819 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30820
30821 case "$target" in
30822 powerpc*-*-*)
30823 case "$target" in
30824 *le-*-linux*)
30825 emul_name="-melf32lppc"
30826 ;;
30827 *)
30828 emul_name="-melf32ppc"
30829 ;;
30830 esac
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30832 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30833 if ${gcc_cv_ld_ppc_attr+:} false; then :
30834 $as_echo_n "(cached) " >&6
30835 else
30836 gcc_cv_ld_ppc_attr=no
30837 if test x"$ld_is_gold" = xyes; then
30838 gcc_cv_ld_ppc_attr=yes
30839 elif test $in_tree_ld = yes ; then
30840 if test "$gcc_cv_gld_major_version" -eq 2 \
30841 -a "$gcc_cv_gld_minor_version" -ge 28 \
30842 -o "$gcc_cv_gld_major_version" -gt 2; then
30843 gcc_cv_ld_ppc_attr=yes
30844 fi
30845 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30846 # check that merging the long double .gnu_attribute doesn't warn
30847 cat > conftest1.s <<EOF
30848 .gnu_attribute 4,1
30849 EOF
30850 cat > conftest2.s <<EOF
30851 .gnu_attribute 4,9
30852 EOF
30853 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30854 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30855 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30856 && test ! -s conftest.err; then
30857 gcc_cv_ld_ppc_attr=yes
30858 fi
30859 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30860 fi
30861
30862 fi
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30864 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30865 if test x$gcc_cv_ld_ppc_attr = xyes; then
30866
30867 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30868
30869 fi
30870 ;;
30871 esac
30872
30873 case "$target:$tm_file" in
30874 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30875 case "$target" in
30876 *le-*-linux*)
30877 emul_name="-melf64lppc"
30878 ;;
30879 *-*-linux*)
30880 emul_name="-melf64ppc"
30881 ;;
30882 *le-*-freebsd*)
30883 emul_name="-melf64lppc_fbsd"
30884 ;;
30885 *-*-freebsd*)
30886 emul_name="-melf64ppc_fbsd"
30887 ;;
30888 esac
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30890 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30891 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30892 $as_echo_n "(cached) " >&6
30893 else
30894 gcc_cv_ld_no_dot_syms=no
30895 if test x"$ld_is_gold" = xyes; then
30896 gcc_cv_ld_no_dot_syms=yes
30897 elif test $in_tree_ld = yes ; then
30898 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
30899 gcc_cv_ld_no_dot_syms=yes
30900 fi
30901 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30902 cat > conftest1.s <<EOF
30903 .text
30904 bl .foo
30905 EOF
30906 cat > conftest2.s <<EOF
30907 .section ".opd","aw"
30908 .align 3
30909 .globl foo
30910 .type foo,@function
30911 foo:
30912 .quad .LEfoo,.TOC.@tocbase,0
30913 .text
30914 .LEfoo:
30915 blr
30916 .size foo,.-.LEfoo
30917 EOF
30918 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30919 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30920 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30921 gcc_cv_ld_no_dot_syms=yes
30922 fi
30923 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30924 fi
30925
30926 fi
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30928 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30929 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30930
30931 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30932
30933 fi
30934
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30936 $as_echo_n "checking linker large toc support... " >&6; }
30937 if ${gcc_cv_ld_large_toc+:} false; then :
30938 $as_echo_n "(cached) " >&6
30939 else
30940 gcc_cv_ld_large_toc=no
30941 if test x"$ld_is_gold" = xyes; then
30942 gcc_cv_ld_large_toc=yes
30943 elif test $in_tree_ld = yes ; then
30944 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
30945 gcc_cv_ld_large_toc=yes
30946 fi
30947 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30948 cat > conftest.s <<EOF
30949 .section ".tbss","awT",@nobits
30950 .align 3
30951 ie0: .space 8
30952 .global _start
30953 .text
30954 _start:
30955 addis 9,13,ie0@got@tprel@ha
30956 ld 9,ie0@got@tprel@l(9)
30957 EOF
30958 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30959 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30960 gcc_cv_ld_large_toc=yes
30961 fi
30962 rm -f conftest conftest.o conftest.s
30963 fi
30964
30965 fi
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30967 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30968 if test x"$gcc_cv_ld_large_toc" = xyes; then
30969
30970 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30971
30972 fi
30973
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30975 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30976 if ${gcc_cv_ld_toc_align+:} false; then :
30977 $as_echo_n "(cached) " >&6
30978 else
30979 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30980 cat > conftest.s <<EOF
30981 .global _start
30982 .text
30983 _start:
30984 addis 9,2,x@got@ha
30985 .section .data.rel.ro,"aw",@progbits
30986 .p2align 16
30987 .space 32768
30988 x: .quad .TOC.
30989 EOF
30990 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30991 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30992 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)) }'`
30993 fi
30994 rm -f conftest conftest.o conftest.s
30995 fi
30996
30997 fi
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30999 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31000 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31001
31002 cat >>confdefs.h <<_ACEOF
31003 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31004 _ACEOF
31005
31006 fi
31007 ;;
31008 esac
31009
31010 case "$target" in
31011 *-*-aix*)
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31013 $as_echo_n "checking linker large toc support... " >&6; }
31014 if ${gcc_cv_ld_large_toc+:} false; then :
31015 $as_echo_n "(cached) " >&6
31016 else
31017 gcc_cv_ld_large_toc=no
31018 if test x$gcc_cv_as != x ; then
31019 cat > conftest.s <<EOF
31020 .toc
31021 LC..1:
31022 .tc a[TC],a[RW]
31023 .extern a[RW]
31024 .csect .text[PR]
31025 .largetoctest:
31026 addis 9,LC..1@u(2)
31027 ld 3,LC..1@l(9)
31028 EOF
31029 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31030 gcc_cv_ld_large_toc=yes
31031 fi
31032 rm -f conftest conftest.o conftest.s
31033 fi
31034
31035 fi
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31037 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31038 if test x"$gcc_cv_ld_large_toc" = xyes; then
31039
31040 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31041
31042 fi
31043 ;;
31044 esac
31045
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31047 $as_echo_n "checking linker --build-id support... " >&6; }
31048 if ${gcc_cv_ld_buildid+:} false; then :
31049 $as_echo_n "(cached) " >&6
31050 else
31051 gcc_cv_ld_buildid=no
31052 if test $in_tree_ld = yes ; then
31053 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31054 "$gcc_cv_gld_minor_version" -ge 18 -o \
31055 "$gcc_cv_gld_major_version" -gt 2 \
31056 && test $in_tree_ld_is_elf = yes; then
31057 gcc_cv_ld_buildid=yes
31058 fi
31059 elif test x$gcc_cv_ld != x; then
31060 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31061 gcc_cv_ld_buildid=yes
31062 fi
31063 fi
31064 fi
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31066 $as_echo "$gcc_cv_ld_buildid" >&6; }
31067 if test x"$gcc_cv_ld_buildid" = xyes; then
31068
31069 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31070
31071 fi
31072
31073 # Check whether --enable-linker-build-id was given.
31074 if test "${enable_linker_build_id+set}" = set; then :
31075 enableval=$enable_linker_build_id;
31076 else
31077 enable_linker_build_id=no
31078 fi
31079
31080
31081 if test x"$enable_linker_build_id" = xyes; then
31082 if test x"$gcc_cv_ld_buildid" = xyes; then
31083
31084 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31085
31086 else
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31088 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31089 fi
31090 fi
31091
31092 # In binutils 2.21, GNU ld gained support for new emulations fully
31093 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31095 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31096 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098 else
31099 gcc_cv_ld_sol2_emulation=no
31100 if test $in_tree_ld = yes ; then
31101 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31102 "$gcc_cv_gld_minor_version" -ge 21 -o \
31103 "$gcc_cv_gld_major_version" -gt 2 \
31104 && test $in_tree_ld_is_elf = yes; then
31105 gcc_cv_ld_sol2_emulation=yes
31106 fi
31107 elif test x$gcc_cv_ld != x; then
31108 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31109 grep _sol2 > /dev/null; then
31110 gcc_cv_ld_sol2_emulation=yes
31111 fi
31112 fi
31113 fi
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31115 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31116 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31117
31118 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31119
31120 fi
31121
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31123 $as_echo_n "checking linker --sysroot support... " >&6; }
31124 if ${gcc_cv_ld_sysroot+:} false; then :
31125 $as_echo_n "(cached) " >&6
31126 else
31127 gcc_cv_ld_sysroot=no
31128 if test $in_tree_ld = yes ; then
31129 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
31130 gcc_cv_ld_sysroot=yes
31131 fi
31132 elif test x$gcc_cv_ld != x; then
31133 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31134 gcc_cv_ld_sysroot=yes
31135 fi
31136 fi
31137 fi
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31139 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31140 if test x"$gcc_cv_ld_sysroot" = xyes; then
31141
31142 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31143
31144 fi
31145
31146 case $target in
31147 *-*-solaris2*)
31148 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31150 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31151 if ${gcc_cv_solaris_crts+:} false; then :
31152 $as_echo_n "(cached) " >&6
31153 else
31154 gcc_cv_solaris_crts=no
31155 if test x$host != x$target; then
31156 if test "x$with_sysroot" = xyes; then
31157 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31158 else
31159 target_sysroot="${with_sysroot}"
31160 fi
31161 fi
31162 target_libdir="$target_sysroot/usr/lib"
31163 # At the time they were added, gcrt1.o became a symlink for backwards
31164 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31165 case $target in
31166 i?86-*-solaris2* | x86_64-*-solaris2*)
31167 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31168 ;;
31169 sparc*-*-solaris2*)
31170 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31171 ;;
31172 esac
31173 fi
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31175 $as_echo "$gcc_cv_solaris_crts" >&6; }
31176 ;;
31177 esac
31178 if test x$gcc_cv_solaris_crts = xyes; then
31179
31180 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31181
31182 fi
31183
31184 # Check whether --enable-libssp was given.
31185 if test "${enable_libssp+set}" = set; then :
31186 enableval=$enable_libssp; case "${enableval}" in
31187 yes|no)
31188 ;;
31189 *)
31190 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31191 ;;
31192 esac
31193 fi
31194
31195
31196 # Test for stack protector support in target C library.
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31198 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31199 if ${gcc_cv_libc_provides_ssp+:} false; then :
31200 $as_echo_n "(cached) " >&6
31201 else
31202 gcc_cv_libc_provides_ssp=no
31203 if test "x$enable_libssp" = "xno"; then
31204 gcc_cv_libc_provides_ssp=yes
31205 elif test "x$enable_libssp" = "xyes"; then
31206 gcc_cv_libc_provides_ssp=no
31207 else
31208 case "$target" in
31209 *-*-musl*)
31210 # All versions of musl provide stack protector
31211 gcc_cv_libc_provides_ssp=yes;;
31212 *-*-linux* | *-*-kfreebsd*-gnu)
31213 # glibc 2.4 and later provides __stack_chk_fail and
31214 # either __stack_chk_guard, or TLS access to stack guard canary.
31215
31216 if test $glibc_version_major -gt 2 \
31217 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31218 gcc_cv_libc_provides_ssp=yes
31219 else
31220
31221 if test -f $target_header_dir/features.h \
31222 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31223 $target_header_dir/features.h > /dev/null; then
31224 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31225 $target_header_dir/features.h > /dev/null && \
31226 test -f $target_header_dir/bits/uClibc_config.h && \
31227 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31228 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31229 gcc_cv_libc_provides_ssp=yes
31230 fi
31231 # all versions of Bionic support stack protector
31232 elif test -f $target_header_dir/sys/cdefs.h \
31233 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31234 $target_header_dir/sys/cdefs.h > /dev/null; then
31235 gcc_cv_libc_provides_ssp=yes
31236 fi
31237 fi
31238 ;;
31239 *-*-gnu*)
31240 # Avoid complicated tests (see
31241 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31242 # simply assert that glibc does provide this, which is true for all
31243 # realistically usable GNU/Hurd configurations.
31244 # All supported versions of musl provide it as well
31245 gcc_cv_libc_provides_ssp=yes;;
31246 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31247 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31248 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31249 gcc_cv_libc_provides_ssp=yes
31250 else
31251 echo "no __stack_chk_fail on this target"
31252 fi
31253
31254 ;;
31255 *) gcc_cv_libc_provides_ssp=no ;;
31256 esac
31257 fi
31258 fi
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31260 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31261
31262 if test x$gcc_cv_libc_provides_ssp = xyes; then
31263
31264 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31265
31266 fi
31267
31268 # Check whether --enable-default-ssp was given.
31269 # Check whether --enable-default-ssp was given.
31270 if test "${enable_default_ssp+set}" = set; then :
31271 enableval=$enable_default_ssp;
31272 if test x$gcc_cv_libc_provides_ssp = xyes; then
31273 case "$target" in
31274 ia64*-*-*) enable_default_ssp=no ;;
31275 *) enable_default_ssp=$enableval ;;
31276 esac
31277 else
31278 enable_default_ssp=no
31279 fi
31280 else
31281 enable_default_ssp=no
31282 fi
31283
31284 if test x$enable_default_ssp = xyes ; then
31285
31286 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31287
31288 fi
31289
31290
31291 # Test for <sys/sdt.h> on the target.
31292
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31294 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31295 if ${gcc_cv_sys_sdt_h+:} false; then :
31296 $as_echo_n "(cached) " >&6
31297 else
31298
31299 gcc_cv_sys_sdt_h=no
31300 if test -f $target_header_dir/sys/sdt.h; then
31301 gcc_cv_sys_sdt_h=yes
31302 fi
31303
31304 fi
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31306 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31307 if test x$gcc_cv_sys_sdt_h = xyes; then :
31308
31309
31310 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31311
31312
31313 fi
31314
31315 # Check if TFmode long double should be used by default or not.
31316 # Some glibc targets used DFmode long double, but with glibc 2.4
31317 # and later they can use TFmode.
31318 case "$target" in
31319 powerpc*-*-linux* | \
31320 sparc*-*-linux* | \
31321 s390*-*-linux* | \
31322 alpha*-*-linux*)
31323
31324 # Check whether --with-long-double-128 was given.
31325 if test "${with_long_double_128+set}" = set; then :
31326 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31327 else
31328
31329 case "$target" in
31330 s390*-*-linux-musl*)
31331 gcc_cv_target_ldbl128=yes
31332 ;;
31333 powerpc*-*-linux-musl*)
31334 gcc_cv_target_ldbl128=no
31335 ;;
31336 *)
31337
31338 if test $glibc_version_major -gt 2 \
31339 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31340 gcc_cv_target_ldbl128=yes
31341 else
31342
31343 gcc_cv_target_ldbl128=no
31344 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31345 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31346 && gcc_cv_target_ldbl128=yes
31347
31348 fi
31349
31350 ;;
31351 esac
31352
31353 fi
31354
31355 ;;
31356 esac
31357 if test x$gcc_cv_target_ldbl128 = xyes; then
31358
31359 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31360
31361 fi
31362
31363 # Check if TFmode long double target should use the IBM extended double or IEEE
31364 # 128-bit floating point formats if long doubles are 128-bits long. The long
31365 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31366 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31367 # libgcc.
31368
31369 # Check whether --with-long-double-format was given.
31370 if test "${with_long_double_format+set}" = set; then :
31371 withval=$with_long_double_format;
31372 case "$target:$with_long_double_format" in
31373 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31374 :
31375 ;;
31376 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31377 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31378 case "$with_cpu" in
31379 power7 | power8 | power9 | power1*)
31380 :
31381 ;;
31382 *)
31383 as_fn_error $? "Configuration option --with-long-double-format is only \
31384 supported if the default cpu is power7 or newer" "$LINENO" 5
31385 with_long_double_format=""
31386 ;;
31387 esac
31388 ;;
31389 powerpc64*-*-linux*:*)
31390 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31391 with_long_double_format=""
31392 ;;
31393 *)
31394 as_fn_error $? "Configure option --with-long-double-format is only supported \
31395 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31396 with_long_double_format=""
31397 ;;
31398 esac
31399 fi
31400
31401
31402 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31403 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31404 gcc_cv_libc_provides_hwcap_in_tcb=no
31405 case "$target" in
31406 powerpc*-*-linux*)
31407
31408 if test $glibc_version_major -gt 2 \
31409 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31410 gcc_cv_libc_provides_hwcap_in_tcb=yes
31411 fi
31412 ;;
31413 esac
31414 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31415
31416 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31417
31418 fi
31419
31420 # Check if the target LIBC handles PT_GNU_STACK.
31421 gcc_cv_libc_gnustack=unknown
31422 case "$target" in
31423 mips*-*-linux-musl*)
31424 gcc_cv_libc_gnustack=yes
31425 ;;
31426 mips*-*-linux*)
31427
31428 if test $glibc_version_major -gt 2 \
31429 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31430 gcc_cv_libc_gnustack=yes
31431 fi
31432 ;;
31433 esac
31434 if test x$gcc_cv_libc_gnustack = xyes; then
31435
31436 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31437
31438 fi
31439
31440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31441 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31442 gcc_cv_target_dl_iterate_phdr=unknown
31443 case "$target" in
31444 *-*-solaris2*)
31445 # <link.h> needs both a dl_iterate_phdr declaration and support for
31446 # compilation with largefile support.
31447 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31448 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31449 gcc_cv_target_dl_iterate_phdr=yes
31450 else
31451 gcc_cv_target_dl_iterate_phdr=no
31452 fi
31453 ;;
31454 *-*-dragonfly* | *-*-freebsd*)
31455 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31456 gcc_cv_target_dl_iterate_phdr=yes
31457 else
31458 gcc_cv_target_dl_iterate_phdr=no
31459 fi
31460 ;;
31461 *-linux-musl*)
31462 gcc_cv_target_dl_iterate_phdr=yes
31463 ;;
31464 esac
31465
31466 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31467
31468 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31469
31470 fi
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31472 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31473
31474 # We no longer support different GC mechanisms. Emit an error if
31475 # the user configures with --with-gc.
31476
31477 # Check whether --with-gc was given.
31478 if test "${with_gc+set}" = set; then :
31479 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31480 fi
31481
31482
31483 # Libraries to use on the host. This will normally be set by the top
31484 # level Makefile. Here we simply capture the value for our Makefile.
31485 if test -z "${HOST_LIBS+set}"; then
31486 HOST_LIBS=
31487 fi
31488
31489
31490 # Use the system's zlib library.
31491
31492 # Use the system's zlib library.
31493 zlibdir="-L\$(top_builddir)/../zlib"
31494 zlibinc="-I\$(top_srcdir)/../zlib"
31495
31496 # Check whether --with-system-zlib was given.
31497 if test "${with_system_zlib+set}" = set; then :
31498 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31499 zlibdir=
31500 zlibinc=
31501 fi
31502
31503 fi
31504
31505
31506
31507
31508
31509
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31511 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31512 # Check whether --enable-maintainer-mode was given.
31513 if test "${enable_maintainer_mode+set}" = set; then :
31514 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31515 else
31516 maintainer_mode=no
31517 fi
31518
31519
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31521 $as_echo "$maintainer_mode" >&6; }
31522
31523 if test "$maintainer_mode" = "yes"; then
31524 MAINT=''
31525 else
31526 MAINT='#'
31527 fi
31528
31529 if test -z "$CTAGS"; then
31530 CTAGS=ctags
31531 fi
31532
31533 if test -z "$ETAGS"; then
31534 ETAGS=etags
31535 fi
31536
31537 if test -z "$CSCOPE"; then
31538 CSCOPE=cscope
31539 fi
31540
31541
31542
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31544 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31545 # Check whether --enable-link-mutex was given.
31546 if test "${enable_link_mutex+set}" = set; then :
31547 enableval=$enable_link_mutex; do_link_mutex=$enableval
31548 else
31549 do_link_mutex=no
31550 fi
31551
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31553 $as_echo "$do_link_mutex" >&6; }
31554
31555 if test "$do_link_mutex" = "yes"; then
31556 DO_LINK_MUTEX=true
31557 { $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
31558 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31559 else
31560 DO_LINK_MUTEX=false
31561 fi
31562
31563
31564
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31566 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31567 # Check whether --enable-link-serialization was given.
31568 if test "${enable_link_serialization+set}" = set; then :
31569 enableval=$enable_link_serialization; do_link_serialization=$enableval
31570 else
31571 do_link_serialization=no
31572 fi
31573
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31575 $as_echo "$do_link_serialization" >&6; }
31576
31577 case "$do_link_serialization" in
31578 yes)
31579 DO_LINK_SERIALIZATION=1;;
31580 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31581 DO_LINK_SERIALIZATION=$do_link_serialization;;
31582 no)
31583 DO_LINK_SERIALIZATION=;;
31584 *)
31585 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31586 esac
31587
31588
31589 # --------------
31590 # Language hooks
31591 # --------------
31592
31593 # Make empty files to contain the specs and options for each language.
31594 # Then add #include lines to for a compiler that has specs and/or options.
31595
31596 subdirs=
31597 lang_opt_files=
31598 lang_specs_files=
31599 lang_tree_files=
31600 # These (without "all_") are set in each config-lang.in.
31601 # `language' must be a single word so is spelled singularly.
31602 all_languages=
31603 all_compilers=
31604 all_outputs='Makefile'
31605 # List of language configure and makefile fragments.
31606 all_lang_configurefrags=
31607 all_lang_makefrags=
31608 # Additional files for gengtype
31609 all_gtfiles="$target_gtfiles"
31610
31611 # These are the languages that are set in --enable-languages,
31612 # and are available in the GCC tree.
31613 all_selected_languages=
31614
31615 # Add the language fragments.
31616 # Languages are added via two mechanisms. Some information must be
31617 # recorded in makefile variables, these are defined in config-lang.in.
31618 # We accumulate them and plug them into the main Makefile.
31619 # The other mechanism is a set of hooks for each of the main targets
31620 # like `clean', `install', etc.
31621
31622 language_hooks="Make-hooks"
31623
31624 for lang in ${srcdir}/*/config-lang.in
31625 do
31626 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31627
31628 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31629 if test "x$lang_alias" = x
31630 then
31631 echo "$lang doesn't set \$language." 1>&2
31632 exit 1
31633 fi
31634 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31635 subdirs="$subdirs $subdir"
31636
31637 # $gcc_subdir is where the gcc integration files are to be found
31638 # for a language, both for internal compiler purposes (compiler
31639 # sources implementing front-end to GCC tree converters), and for
31640 # build infrastructure purposes (Make-lang.in, etc.)
31641 #
31642 # This will be <subdir> (relative to $srcdir) if a line like
31643 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31644 # is found in <langdir>/config-lang.in, and will remain <langdir>
31645 # otherwise.
31646 #
31647 # Except for the language alias (fetched above), the regular
31648 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31649 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31650 # only this and the language alias.
31651
31652 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31653 if [ "$gcc_subdir" = "" ]; then
31654 gcc_subdir="$subdir"
31655 fi
31656
31657 case ",$enable_languages," in
31658 *,$lang_alias,*)
31659 all_selected_languages="$all_selected_languages $lang_alias"
31660 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31661 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31662 fi
31663 ;;
31664 esac
31665
31666 language=
31667 boot_language=
31668 compilers=
31669 outputs=
31670 gtfiles=
31671 subdir_requires=
31672 . ${srcdir}/$gcc_subdir/config-lang.in
31673 if test "x$language" = x
31674 then
31675 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31676 exit 1
31677 fi
31678
31679 ok=:
31680 case ",$enable_languages," in
31681 *,$lang_alias,*) ;;
31682 *)
31683 for i in $subdir_requires; do
31684 test -f "${srcdir}/$i/config-lang.in" && continue
31685 ok=false
31686 break
31687 done
31688 ;;
31689 esac
31690 $ok || continue
31691
31692 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31693 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31694 # Put c/Make-lang.in fragment first to match serialization languages order.
31695 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31696 else
31697 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31698 fi
31699 if test -f $srcdir/$gcc_subdir/lang.opt; then
31700 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31701 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31702 fi
31703 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31704 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31705 fi
31706 all_languages="$all_languages $language"
31707 all_compilers="$all_compilers $compilers"
31708 all_outputs="$all_outputs $outputs"
31709 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31710 case ",$enable_languages," in
31711 *,lto,*)
31712
31713 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31714
31715 enable_lto=yes
31716
31717 ;;
31718 *) ;;
31719 esac
31720 done
31721
31722 check_languages=
31723 for language in $all_selected_languages
31724 do
31725 check_languages="$check_languages check-$language"
31726 done
31727
31728 selftest_languages=
31729 for language in $all_selected_languages
31730 do
31731 selftest_languages="$selftest_languages selftest-$language"
31732 done
31733
31734 # We link each language in with a set of hooks, reached indirectly via
31735 # lang.${target}. Only do so for selected languages.
31736
31737 rm -f Make-hooks
31738 touch Make-hooks
31739 target_list="all.cross start.encap rest.encap tags \
31740 install-common install-man install-info install-dvi install-pdf \
31741 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31742 mostlyclean clean distclean maintainer-clean install-plugin"
31743
31744 for t in $target_list
31745 do
31746 x=
31747 for lang in $all_selected_languages
31748 do
31749 x="$x $lang.$t"
31750 done
31751 echo "lang.$t: $x" >> Make-hooks
31752 done
31753
31754 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31755 echo "SERIAL_LIST =" >> Make-hooks
31756 echo else >> Make-hooks
31757 lang_cnt=0
31758 lang_list=
31759 prev=c
31760 serialization_languages=c
31761 for lang in $all_selected_languages
31762 do
31763 test $lang = c && continue
31764 if test $lang = lto; then
31765 serialization_languages="$serialization_languages lto1 lto2"
31766 else
31767 serialization_languages="$serialization_languages $lang"
31768 fi
31769 done
31770 for lang in $serialization_languages
31771 do
31772 test $lang = c && continue
31773 lang_cnt=`expr $lang_cnt + 1`
31774 lang_list=" $prev$lang_list"
31775 prev=${lang}
31776 done
31777 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31778 echo endif >> Make-hooks
31779 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31780 echo "INDEX.c = 0" >> Make-hooks
31781 lang_idx=1
31782 for lang in $serialization_languages
31783 do
31784 test $lang = c && continue
31785 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31786 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31787 lang_cnt=`expr $lang_cnt - 1`
31788 lang_idx=`expr $lang_idx + 1`
31789 done
31790
31791 # --------
31792 # Option include files
31793 # --------
31794
31795 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31796 option_includes="option-includes.mk"
31797
31798
31799 # --------
31800 # UNSORTED
31801 # --------
31802
31803 # Create .gdbinit.
31804
31805 echo "dir ." > .gdbinit
31806 echo "dir ${srcdir}" >> .gdbinit
31807 if test x$gdb_needs_out_file_path = xyes
31808 then
31809 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31810 fi
31811 if test "x$subdirs" != x; then
31812 for s in $subdirs
31813 do
31814 echo "dir ${srcdir}/$s" >> .gdbinit
31815 done
31816 fi
31817 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31818 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31819
31820 # Put a breakpoint on __asan_report_error to help with debugging buffer
31821 # overflow.
31822 case "$CFLAGS" in
31823 *-fsanitize=address*)
31824 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31825 ;;
31826 esac
31827
31828 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31829
31830
31831
31832 # Find a directory in which to install a shared libgcc.
31833
31834 # Check whether --enable-version-specific-runtime-libs was given.
31835 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31836 enableval=$enable_version_specific_runtime_libs;
31837 fi
31838
31839
31840 # Substitute configuration variables
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910 # Echo link setup.
31911 if test x${build} = x${host} ; then
31912 if test x${host} = x${target} ; then
31913 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31914 else
31915 echo "Links are now set up to build a cross-compiler" 1>&2
31916 echo " from ${host} to ${target}." 1>&2
31917 fi
31918 else
31919 if test x${host} = x${target} ; then
31920 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31921 echo " for ${target}." 1>&2
31922 else
31923 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31924 echo " from ${host} to ${target}." 1>&2
31925 fi
31926 fi
31927
31928
31929
31930
31931
31932
31933 if test "x${ISLLIBS}" != "x" ; then
31934
31935 $as_echo "#define HAVE_isl 1" >>confdefs.h
31936
31937 fi
31938
31939 # Check for plugin support
31940 # Check whether --enable-plugin was given.
31941 if test "${enable_plugin+set}" = set; then :
31942 enableval=$enable_plugin; enable_plugin=$enableval
31943 else
31944 enable_plugin=yes; default_plugin=yes
31945 fi
31946
31947
31948 pluginlibs=
31949 plugin_check=yes
31950
31951 case "${host}" in
31952 *-*-mingw*)
31953 # Since plugin support under MinGW is not as straightforward as on
31954 # other platforms (e.g., we have to link import library, etc), we
31955 # only enable it if explicitly requested.
31956 if test x"$default_plugin" = x"yes"; then
31957 enable_plugin=no
31958 elif test x"$enable_plugin" = x"yes"; then
31959 # Use make's target variable to derive import library name.
31960 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31961 plugin_check=no
31962 fi
31963 ;;
31964 *-*-darwin*)
31965 if test x$build = x$host; then
31966 export_sym_check="nm${exeext} -g"
31967 elif test x$host = x$target; then
31968 export_sym_check="$gcc_cv_nm -g"
31969 else
31970 export_sym_check=
31971 fi
31972 ;;
31973 *)
31974 if test x$build = x$host; then
31975 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31976 elif test x$host = x$target; then
31977 export_sym_check="$gcc_cv_objdump -T"
31978 else
31979 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31980 fi
31981 ;;
31982 esac
31983
31984 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31985
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31987 $as_echo_n "checking for exported symbols... " >&6; }
31988 if test "x$export_sym_check" != x; then
31989 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31990 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31991 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31992 : # No need to use a flag
31993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31994 $as_echo "yes" >&6; }
31995 else
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31997 $as_echo "yes" >&6; }
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31999 $as_echo_n "checking for -rdynamic... " >&6; }
32000 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32001 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32002 plugin_rdynamic=yes
32003 pluginlibs="-rdynamic"
32004 else
32005 plugin_rdynamic=no
32006 enable_plugin=no
32007 fi
32008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32009 $as_echo "$plugin_rdynamic" >&6; }
32010 fi
32011 else
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32013 $as_echo "unable to check" >&6; }
32014 fi
32015
32016 # Check -ldl
32017 saved_LIBS="$LIBS"
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32019 $as_echo_n "checking for library containing dlopen... " >&6; }
32020 if ${ac_cv_search_dlopen+:} false; then :
32021 $as_echo_n "(cached) " >&6
32022 else
32023 ac_func_search_save_LIBS=$LIBS
32024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32025 /* end confdefs.h. */
32026
32027 /* Override any GCC internal prototype to avoid an error.
32028 Use char because int might match the return type of a GCC
32029 builtin and then its argument prototype would still apply. */
32030 #ifdef __cplusplus
32031 extern "C"
32032 #endif
32033 char dlopen ();
32034 int
32035 main ()
32036 {
32037 return dlopen ();
32038 ;
32039 return 0;
32040 }
32041 _ACEOF
32042 for ac_lib in '' dl; do
32043 if test -z "$ac_lib"; then
32044 ac_res="none required"
32045 else
32046 ac_res=-l$ac_lib
32047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32048 fi
32049 if ac_fn_cxx_try_link "$LINENO"; then :
32050 ac_cv_search_dlopen=$ac_res
32051 fi
32052 rm -f core conftest.err conftest.$ac_objext \
32053 conftest$ac_exeext
32054 if ${ac_cv_search_dlopen+:} false; then :
32055 break
32056 fi
32057 done
32058 if ${ac_cv_search_dlopen+:} false; then :
32059
32060 else
32061 ac_cv_search_dlopen=no
32062 fi
32063 rm conftest.$ac_ext
32064 LIBS=$ac_func_search_save_LIBS
32065 fi
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32067 $as_echo "$ac_cv_search_dlopen" >&6; }
32068 ac_res=$ac_cv_search_dlopen
32069 if test "$ac_res" != no; then :
32070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32071
32072 fi
32073
32074 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32075 pluginlibs="$pluginlibs -ldl"
32076 fi
32077 LIBS="$saved_LIBS"
32078
32079 # Check that we can build shared objects with -fPIC -shared
32080 saved_LDFLAGS="$LDFLAGS"
32081 saved_CFLAGS="$CFLAGS"
32082 saved_CXXFLAGS="$CXXFLAGS"
32083 case "${host}" in
32084 *-*-darwin*)
32085 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32086 CFLAGS="$CFLAGS -fPIC"
32087 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32088 CXXFLAGS="$CXXFLAGS -fPIC"
32089 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32090 ;;
32091 *)
32092 CFLAGS="$CFLAGS -fPIC"
32093 CXXFLAGS="$CXXFLAGS -fPIC"
32094 LDFLAGS="$LDFLAGS -fPIC -shared"
32095 ;;
32096 esac
32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32098 $as_echo_n "checking for -fPIC -shared... " >&6; }
32099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100 /* end confdefs.h. */
32101 extern int X;
32102 int
32103 main ()
32104 {
32105 return X == 0;
32106 ;
32107 return 0;
32108 }
32109 _ACEOF
32110 if ac_fn_cxx_try_link "$LINENO"; then :
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32112 $as_echo "yes" >&6; }; have_pic_shared=yes
32113 else
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32115 $as_echo "no" >&6; }; have_pic_shared=no
32116 fi
32117 rm -f core conftest.err conftest.$ac_objext \
32118 conftest$ac_exeext conftest.$ac_ext
32119 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32120 pluginlibs=
32121 enable_plugin=no
32122 fi
32123 LDFLAGS="$saved_LDFLAGS"
32124 CFLAGS="$saved_CFLAGS"
32125 CXXFLAGS="$saved_CXXFLAGS"
32126
32127 # If plugin support had been requested but not available, fail.
32128 if test x"$enable_plugin" = x"no" ; then
32129 if test x"$default_plugin" != x"yes"; then
32130 as_fn_error $? "
32131 Building GCC with plugin support requires a host that supports
32132 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32133 fi
32134 fi
32135 fi
32136
32137
32138
32139 if test x"$enable_plugin" = x"yes"; then
32140
32141 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32142
32143 fi
32144
32145
32146 # Enable --enable-host-shared
32147 # Check whether --enable-host-shared was given.
32148 if test "${enable_host_shared+set}" = set; then :
32149 enableval=$enable_host_shared;
32150 fi
32151
32152
32153
32154 # Enable --enable-host-pie
32155 # Check whether --enable-host-pie was given.
32156 if test "${enable_host_pie+set}" = set; then :
32157 enableval=$enable_host_pie;
32158 fi
32159
32160
32161
32162 # Enable --enable-host-bind-now
32163 # Check whether --enable-host-bind-now was given.
32164 if test "${enable_host_bind_now+set}" = set; then :
32165 enableval=$enable_host_bind_now;
32166 fi
32167
32168
32169
32170 # Check whether --enable-libquadmath-support was given.
32171 if test "${enable_libquadmath_support+set}" = set; then :
32172 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32173 else
32174 ENABLE_LIBQUADMATH_SUPPORT=yes
32175 fi
32176
32177 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32178
32179 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32180
32181 fi
32182
32183
32184 # Specify what hash style to use by default.
32185
32186 # Check whether --with-linker-hash-style was given.
32187 if test "${with_linker_hash_style+set}" = set; then :
32188 withval=$with_linker_hash_style; case x"$withval" in
32189 xsysv)
32190 LINKER_HASH_STYLE=sysv
32191 ;;
32192 xgnu)
32193 LINKER_HASH_STYLE=gnu
32194 ;;
32195 xboth)
32196 LINKER_HASH_STYLE=both
32197 ;;
32198 *)
32199 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32200 ;;
32201 esac
32202 else
32203 LINKER_HASH_STYLE=''
32204 fi
32205
32206 if test x"${LINKER_HASH_STYLE}" != x; then
32207
32208 cat >>confdefs.h <<_ACEOF
32209 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32210 _ACEOF
32211
32212 fi
32213
32214 # Specify what should be the default of -fdiagnostics-color option.
32215
32216 # Check whether --with-diagnostics-color was given.
32217 if test "${with_diagnostics_color+set}" = set; then :
32218 withval=$with_diagnostics_color; case x"$withval" in
32219 xnever)
32220 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32221 ;;
32222 xauto)
32223 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32224 ;;
32225 xauto-if-env)
32226 DIAGNOSTICS_COLOR_DEFAULT=-1
32227 ;;
32228 xalways)
32229 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32230 ;;
32231 *)
32232 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32233 ;;
32234 esac
32235 else
32236 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32237 fi
32238
32239
32240 cat >>confdefs.h <<_ACEOF
32241 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32242 _ACEOF
32243
32244
32245 # Specify what should be the default of -fdiagnostics-urls option.
32246
32247 # Check whether --with-diagnostics-urls was given.
32248 if test "${with_diagnostics_urls+set}" = set; then :
32249 withval=$with_diagnostics_urls; case x"$withval" in
32250 xnever)
32251 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32252 ;;
32253 xauto)
32254 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32255 ;;
32256 xauto-if-env)
32257 DIAGNOSTICS_URLS_DEFAULT=-1
32258 ;;
32259 xalways)
32260 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32261 ;;
32262 *)
32263 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32264 ;;
32265 esac
32266 else
32267 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32268 fi
32269
32270
32271 cat >>confdefs.h <<_ACEOF
32272 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32273 _ACEOF
32274
32275
32276 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32277 # of jit/jit-playback.cc.
32278 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32279 echo "gcc_driver_version: ${gcc_driver_version}"
32280 cat > gcc-driver-name.h <<EOF
32281 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32282 EOF
32283
32284 # Check whether --enable-default-pie was given.
32285 # Check whether --enable-default-pie was given.
32286 if test "${enable_default_pie+set}" = set; then :
32287 enableval=$enable_default_pie; enable_default_pie=$enableval
32288 else
32289 enable_default_pie=no
32290 fi
32291
32292 if test x$enable_default_pie = xyes ; then
32293
32294 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32295
32296 fi
32297
32298
32299 # Check if -fno-PIE works.
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32301 $as_echo_n "checking for -fno-PIE option... " >&6; }
32302 if ${gcc_cv_c_no_fpie+:} false; then :
32303 $as_echo_n "(cached) " >&6
32304 else
32305 saved_CXXFLAGS="$CXXFLAGS"
32306 CXXFLAGS="$CXXFLAGS -fno-PIE"
32307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32308 /* end confdefs.h. */
32309 int main(void) {return 0;}
32310 _ACEOF
32311 if ac_fn_cxx_try_compile "$LINENO"; then :
32312 gcc_cv_c_no_fpie=yes
32313 else
32314 gcc_cv_c_no_fpie=no
32315 fi
32316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32317 CXXFLAGS="$saved_CXXFLAGS"
32318 fi
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32320 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32321
32322 # Check if -no-pie works.
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32324 $as_echo_n "checking for -no-pie option... " >&6; }
32325 if ${gcc_cv_no_pie+:} false; then :
32326 $as_echo_n "(cached) " >&6
32327 else
32328 saved_LDFLAGS="$LDFLAGS"
32329 LDFLAGS="$LDFLAGS -no-pie"
32330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32331 /* end confdefs.h. */
32332 int main(void) {return 0;}
32333 _ACEOF
32334 if ac_fn_cxx_try_link "$LINENO"; then :
32335 gcc_cv_no_pie=yes
32336 else
32337 gcc_cv_no_pie=no
32338 fi
32339 rm -f core conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
32341 LDFLAGS="$saved_LDFLAGS"
32342 fi
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32344 $as_echo "$gcc_cv_no_pie" >&6; }
32345
32346 if test x$enable_host_shared = xyes; then
32347 PICFLAG=-fPIC
32348 elif test x$enable_host_pie = xyes; then
32349 PICFLAG=-fPIE
32350 elif test x$gcc_cv_c_no_fpie = xyes; then
32351 PICFLAG=-fno-PIE
32352 else
32353 PICFLAG=
32354 fi
32355
32356
32357
32358 if test x$enable_host_pie = xyes; then
32359 LD_PICFLAG=-pie
32360 elif test x$gcc_cv_no_pie = xyes; then
32361 LD_PICFLAG=-no-pie
32362 else
32363 LD_PICFLAG=
32364 fi
32365
32366 if test x$enable_host_bind_now = xyes; then
32367 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
32368 fi
32369
32370
32371
32372 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32373 # Check whether --enable-cet was given.
32374 if test "${enable_cet+set}" = set; then :
32375 enableval=$enable_cet;
32376 case "$enableval" in
32377 yes|no|auto) ;;
32378 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32379 esac
32380
32381 else
32382 enable_cet=auto
32383 fi
32384
32385
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32387 $as_echo_n "checking for CET support... " >&6; }
32388
32389 case "$host" in
32390 i[34567]86-*-linux* | x86_64-*-linux*)
32391 may_have_cet=yes
32392 cet_save_CFLAGS="$CFLAGS"
32393 CFLAGS="$CFLAGS -fcf-protection"
32394 case "$enable_cet" in
32395 auto)
32396 # Check if target supports multi-byte NOPs
32397 # and if compiler and assembler support CET.
32398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32399 /* end confdefs.h. */
32400
32401 int
32402 main ()
32403 {
32404
32405 #if !defined(__SSE2__)
32406 #error target does not support multi-byte NOPs
32407 #else
32408 asm ("setssbsy");
32409 #endif
32410
32411 ;
32412 return 0;
32413 }
32414 _ACEOF
32415 if ac_fn_cxx_try_compile "$LINENO"; then :
32416 enable_cet=yes
32417 else
32418 enable_cet=no
32419 fi
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32421 ;;
32422 yes)
32423 # Check if compiler and assembler support CET.
32424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32425 /* end confdefs.h. */
32426
32427 int
32428 main ()
32429 {
32430 asm ("setssbsy");
32431 ;
32432 return 0;
32433 }
32434 _ACEOF
32435 if ac_fn_cxx_try_compile "$LINENO"; then :
32436 support_cet=yes
32437 else
32438 support_cet=no
32439 fi
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 if test $support_cet = "no"; then
32442 if test x$enable_bootstrap != xno \
32443 && test -z "${with_build_subdir}" \
32444 && (test ! -f ../stage_current \
32445 || test `cat ../stage_current` != "stage1"); then
32446 # Require CET support only for the final GCC build.
32447 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32448 else
32449 # Don't enable CET without CET support for non-bootstrap
32450 # build, in stage1 nor for build support.
32451 enable_cet=no
32452 fi
32453 fi
32454 ;;
32455 esac
32456 CFLAGS="$cet_save_CFLAGS"
32457 ;;
32458 *)
32459 may_have_cet=no
32460 enable_cet=no
32461 ;;
32462 esac
32463
32464 cet_save_CFLAGS="$CFLAGS"
32465 CFLAGS="$CFLAGS -fcf-protection=none"
32466 cet_save_LDFLAGS="$LDFLAGS"
32467 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32468 if test x$may_have_cet = xyes; then
32469 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32471 /* end confdefs.h. */
32472
32473 int
32474 main ()
32475 {
32476 return 0;
32477 ;
32478 return 0;
32479 }
32480 _ACEOF
32481 if ac_fn_cxx_try_link "$LINENO"; then :
32482 may_have_cet=yes
32483 else
32484 may_have_cet=no
32485 fi
32486 rm -f core conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
32488 fi
32489
32490 if test x$may_have_cet = xyes; then
32491 if test x$cross_compiling = xno; then
32492 if test "$cross_compiling" = yes; then :
32493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32495 as_fn_error $? "cannot run test program while cross compiling
32496 See \`config.log' for more details" "$LINENO" 5; }
32497 else
32498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32499 /* end confdefs.h. */
32500
32501 int
32502 main ()
32503 {
32504 asm ("endbr32");
32505 return 0;
32506 }
32507
32508 _ACEOF
32509 if ac_fn_cxx_try_run "$LINENO"; then :
32510 have_multi_byte_nop=yes
32511 else
32512 have_multi_byte_nop=no
32513 fi
32514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32515 conftest.$ac_objext conftest.beam conftest.$ac_ext
32516 fi
32517
32518 have_cet=no
32519 if test x$have_multi_byte_nop = xyes; then
32520 if test "$cross_compiling" = yes; then :
32521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32523 as_fn_error $? "cannot run test program while cross compiling
32524 See \`config.log' for more details" "$LINENO" 5; }
32525 else
32526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32527 /* end confdefs.h. */
32528
32529 static void
32530 foo (void)
32531 {
32532 }
32533
32534 static void
32535 __attribute__ ((noinline, noclone))
32536 xxx (void (*f) (void))
32537 {
32538 f ();
32539 }
32540
32541 static void
32542 __attribute__ ((noinline, noclone))
32543 bar (void)
32544 {
32545 xxx (foo);
32546 }
32547
32548 int
32549 main ()
32550 {
32551 bar ();
32552 return 0;
32553 }
32554
32555 _ACEOF
32556 if ac_fn_cxx_try_run "$LINENO"; then :
32557 have_cet=no
32558 else
32559 have_cet=yes
32560 fi
32561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32562 conftest.$ac_objext conftest.beam conftest.$ac_ext
32563 fi
32564
32565 fi
32566 if test x$enable_cet = xno -a x$have_cet = xyes; then
32567 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32568 fi
32569 fi
32570 else
32571 # Enable CET in cross compiler if possible so that it will run on both
32572 # CET and non-CET hosts.
32573 have_cet=yes
32574 fi
32575 if test x$enable_cet = xyes; then
32576 CET_HOST_FLAGS="-fcf-protection"
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32578 $as_echo "yes" >&6; }
32579 else
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32581 $as_echo "no" >&6; }
32582 fi
32583 CFLAGS="$cet_save_CFLAGS"
32584 LDFLAGS="$cet_save_LDFLAGS"
32585
32586 case x$enable_languages in
32587 *jit*)
32588 ;;
32589 *)
32590 CET_HOST_FLAGS=
32591 ;;
32592 esac
32593
32594
32595 # Check linker supports '-z bndplt'
32596 ld_bndplt_support=no
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32598 $as_echo_n "checking linker -z bndplt option... " >&6; }
32599 if test x"$ld_is_gold" = xno; then
32600 if test $in_tree_ld = yes ; then
32601 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
32602 ld_bndplt_support=yes
32603 fi
32604 elif test x$gcc_cv_ld != x; then
32605 # Check if linker supports -a bndplt option
32606 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32607 ld_bndplt_support=yes
32608 fi
32609 fi
32610 fi
32611 if test x"$ld_bndplt_support" = xyes; then
32612
32613 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32614
32615 fi
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32617 $as_echo "$ld_bndplt_support" >&6; }
32618
32619 # Check linker supports '--push-state'/'--pop-state'
32620 ld_pushpopstate_support=no
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32622 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32623 if test x"$ld_is_gold" = xno; then
32624 if test $in_tree_ld = yes ; then
32625 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
32626 ld_pushpopstate_support=yes
32627 fi
32628 elif test x$gcc_cv_ld != x; then
32629 # Check if linker supports --push-state/--pop-state options
32630 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32631 ld_pushpopstate_support=yes
32632 fi
32633 fi
32634 fi
32635 if test x"$ld_pushpopstate_support" = xyes; then
32636
32637 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32638
32639 fi
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32641 $as_echo "$ld_pushpopstate_support" >&6; }
32642
32643 # On s390, float_t has historically been statically defined as double for no
32644 # good reason. To comply with the C standard in the light of this definition,
32645 # gcc has evaluated float expressions in double precision when in
32646 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32647 # a smooth transition towards the new model used by most architectures, where
32648 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32649 # float_t from that, this behavior can be configured with
32650 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32651 # the old model. When omitted, native builds and cross compiles that have target
32652 # libc headers will detect whether libc clamps float_t to double and in that
32653 # case maintain the old model. Otherwise, they will default to the new model.
32654 # Check whether --enable-s390-excess-float-precision was given.
32655 if test "${enable_s390_excess_float_precision+set}" = set; then :
32656 enableval=$enable_s390_excess_float_precision;
32657 else
32658 enable_s390_excess_float_precision=auto
32659 fi
32660
32661
32662 case $target in
32663 s390*-linux*)
32664 if test x"$enable_s390_excess_float_precision" = xauto; then
32665 # Can we autodetect the behavior of the target libc?
32666 if test "$target" = "$host" -a "$host" = "$build"; then
32667 enable_s390_excess_float_precision=autodetect
32668 elif test "x$with_headers" != xno; then
32669 # cross build. are target headers available?
32670 # carefully coerce the build-system compiler to use target headers
32671 saved_CXXFLAGS="$CXXFLAGS"
32672 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32673 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32674 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676 /* end confdefs.h. */
32677
32678 #include <math.h>
32679
32680 _ACEOF
32681 if ac_fn_cxx_try_compile "$LINENO"; then :
32682 enable_s390_excess_float_precision=autodetect
32683 fi
32684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32685 CXXFLAGS="$saved_CXXFLAGS"
32686 fi
32687
32688 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32689 saved_CXXFLAGS="$CXXFLAGS"
32690 if ! test "$target" = "$host" -a "$host" = "$build"; then
32691 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32692 unset CROSS_TEST_CXXFLAGS
32693 fi
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32695 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32696 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32697 $as_echo_n "(cached) " >&6
32698 else
32699
32700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32701 /* end confdefs.h. */
32702
32703 #define __FLT_EVAL_METHOD__ 0
32704 #include <math.h>
32705 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32706
32707 _ACEOF
32708 if ac_fn_cxx_try_compile "$LINENO"; then :
32709 gcc_cv_float_t_clamped_to_double=yes
32710 else
32711 gcc_cv_float_t_clamped_to_double=no
32712 fi
32713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32714 fi
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32716 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32717 CXXFLAGS="$saved_CXXFLAGS"
32718 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32719 else
32720 # no way to detect behavior of target libc, default to new model
32721 enable_s390_excess_float_precision=no
32722 fi
32723 fi
32724
32725
32726 if test x"$enable_s390_excess_float_precision" = xyes; then
32727
32728 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32729
32730 fi
32731 ;;
32732 esac
32733
32734 # Configure the subdirectories
32735 # AC_CONFIG_SUBDIRS($subdirs)
32736
32737 # Create the Makefile
32738 # and configure language subdirectories
32739 ac_config_files="$ac_config_files $all_outputs"
32740
32741
32742 ac_config_commands="$ac_config_commands default"
32743
32744 cat >confcache <<\_ACEOF
32745 # This file is a shell script that caches the results of configure
32746 # tests run on this system so they can be shared between configure
32747 # scripts and configure runs, see configure's option --config-cache.
32748 # It is not useful on other systems. If it contains results you don't
32749 # want to keep, you may remove or edit it.
32750 #
32751 # config.status only pays attention to the cache file if you give it
32752 # the --recheck option to rerun configure.
32753 #
32754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32756 # following values.
32757
32758 _ACEOF
32759
32760 # The following way of writing the cache mishandles newlines in values,
32761 # but we know of no workaround that is simple, portable, and efficient.
32762 # So, we kill variables containing newlines.
32763 # Ultrix sh set writes to stderr and can't be redirected directly,
32764 # and sets the high bit in the cache file unless we assign to the vars.
32765 (
32766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32767 eval ac_val=\$$ac_var
32768 case $ac_val in #(
32769 *${as_nl}*)
32770 case $ac_var in #(
32771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32773 esac
32774 case $ac_var in #(
32775 _ | IFS | as_nl) ;; #(
32776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32777 *) { eval $ac_var=; unset $ac_var;} ;;
32778 esac ;;
32779 esac
32780 done
32781
32782 (set) 2>&1 |
32783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32784 *${as_nl}ac_space=\ *)
32785 # `set' does not quote correctly, so add quotes: double-quote
32786 # substitution turns \\\\ into \\, and sed turns \\ into \.
32787 sed -n \
32788 "s/'/'\\\\''/g;
32789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32790 ;; #(
32791 *)
32792 # `set' quotes correctly as required by POSIX, so do not add quotes.
32793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32794 ;;
32795 esac |
32796 sort
32797 ) |
32798 sed '
32799 /^ac_cv_env_/b end
32800 t clear
32801 :clear
32802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32803 t end
32804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32805 :end' >>confcache
32806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32807 if test -w "$cache_file"; then
32808 if test "x$cache_file" != "x/dev/null"; then
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32810 $as_echo "$as_me: updating cache $cache_file" >&6;}
32811 if test ! -f "$cache_file" || test -h "$cache_file"; then
32812 cat confcache >"$cache_file"
32813 else
32814 case $cache_file in #(
32815 */* | ?:*)
32816 mv -f confcache "$cache_file"$$ &&
32817 mv -f "$cache_file"$$ "$cache_file" ;; #(
32818 *)
32819 mv -f confcache "$cache_file" ;;
32820 esac
32821 fi
32822 fi
32823 else
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32826 fi
32827 fi
32828 rm -f confcache
32829
32830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32831 # Let make expand exec_prefix.
32832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32833
32834 DEFS=-DHAVE_CONFIG_H
32835
32836 ac_libobjs=
32837 ac_ltlibobjs=
32838 U=
32839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32840 # 1. Remove the extension, and $U if already installed.
32841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32844 # will be set to the directory where LIBOBJS objects are built.
32845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32847 done
32848 LIBOBJS=$ac_libobjs
32849
32850 LTLIBOBJS=$ac_ltlibobjs
32851
32852
32853
32854
32855 : "${CONFIG_STATUS=./config.status}"
32856 ac_write_fail=0
32857 ac_clean_files_save=$ac_clean_files
32858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32860 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32861 as_write_fail=0
32862 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32863 #! $SHELL
32864 # Generated by $as_me.
32865 # Run this file to recreate the current configuration.
32866 # Compiler output produced by configure, useful for debugging
32867 # configure, is in config.log if it exists.
32868
32869 debug=false
32870 ac_cs_recheck=false
32871 ac_cs_silent=false
32872
32873 SHELL=\${CONFIG_SHELL-$SHELL}
32874 export SHELL
32875 _ASEOF
32876 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32877 ## -------------------- ##
32878 ## M4sh Initialization. ##
32879 ## -------------------- ##
32880
32881 # Be more Bourne compatible
32882 DUALCASE=1; export DUALCASE # for MKS sh
32883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32884 emulate sh
32885 NULLCMD=:
32886 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32887 # is contrary to our usage. Disable this feature.
32888 alias -g '${1+"$@"}'='"$@"'
32889 setopt NO_GLOB_SUBST
32890 else
32891 case `(set -o) 2>/dev/null` in #(
32892 *posix*) :
32893 set -o posix ;; #(
32894 *) :
32895 ;;
32896 esac
32897 fi
32898
32899
32900 as_nl='
32901 '
32902 export as_nl
32903 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32904 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32907 # Prefer a ksh shell builtin over an external printf program on Solaris,
32908 # but without wasting forks for bash or zsh.
32909 if test -z "$BASH_VERSION$ZSH_VERSION" \
32910 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32911 as_echo='print -r --'
32912 as_echo_n='print -rn --'
32913 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32914 as_echo='printf %s\n'
32915 as_echo_n='printf %s'
32916 else
32917 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32918 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32919 as_echo_n='/usr/ucb/echo -n'
32920 else
32921 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32922 as_echo_n_body='eval
32923 arg=$1;
32924 case $arg in #(
32925 *"$as_nl"*)
32926 expr "X$arg" : "X\\(.*\\)$as_nl";
32927 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32928 esac;
32929 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32930 '
32931 export as_echo_n_body
32932 as_echo_n='sh -c $as_echo_n_body as_echo'
32933 fi
32934 export as_echo_body
32935 as_echo='sh -c $as_echo_body as_echo'
32936 fi
32937
32938 # The user is always right.
32939 if test "${PATH_SEPARATOR+set}" != set; then
32940 PATH_SEPARATOR=:
32941 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32942 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32943 PATH_SEPARATOR=';'
32944 }
32945 fi
32946
32947
32948 # IFS
32949 # We need space, tab and new line, in precisely that order. Quoting is
32950 # there to prevent editors from complaining about space-tab.
32951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32952 # splitting by setting IFS to empty value.)
32953 IFS=" "" $as_nl"
32954
32955 # Find who we are. Look in the path if we contain no directory separator.
32956 as_myself=
32957 case $0 in #((
32958 *[\\/]* ) as_myself=$0 ;;
32959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32960 for as_dir in $PATH
32961 do
32962 IFS=$as_save_IFS
32963 test -z "$as_dir" && as_dir=.
32964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32965 done
32966 IFS=$as_save_IFS
32967
32968 ;;
32969 esac
32970 # We did not find ourselves, most probably we were run as `sh COMMAND'
32971 # in which case we are not to be found in the path.
32972 if test "x$as_myself" = x; then
32973 as_myself=$0
32974 fi
32975 if test ! -f "$as_myself"; then
32976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32977 exit 1
32978 fi
32979
32980 # Unset variables that we do not need and which cause bugs (e.g. in
32981 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32982 # suppresses any "Segmentation fault" message there. '((' could
32983 # trigger a bug in pdksh 5.2.14.
32984 for as_var in BASH_ENV ENV MAIL MAILPATH
32985 do eval test x\${$as_var+set} = xset \
32986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32987 done
32988 PS1='$ '
32989 PS2='> '
32990 PS4='+ '
32991
32992 # NLS nuisances.
32993 LC_ALL=C
32994 export LC_ALL
32995 LANGUAGE=C
32996 export LANGUAGE
32997
32998 # CDPATH.
32999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33000
33001
33002 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33003 # ----------------------------------------
33004 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33005 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33006 # script with STATUS, using 1 if that was 0.
33007 as_fn_error ()
33008 {
33009 as_status=$1; test $as_status -eq 0 && as_status=1
33010 if test "$4"; then
33011 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33013 fi
33014 $as_echo "$as_me: error: $2" >&2
33015 as_fn_exit $as_status
33016 } # as_fn_error
33017
33018
33019 # as_fn_set_status STATUS
33020 # -----------------------
33021 # Set $? to STATUS, without forking.
33022 as_fn_set_status ()
33023 {
33024 return $1
33025 } # as_fn_set_status
33026
33027 # as_fn_exit STATUS
33028 # -----------------
33029 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33030 as_fn_exit ()
33031 {
33032 set +e
33033 as_fn_set_status $1
33034 exit $1
33035 } # as_fn_exit
33036
33037 # as_fn_unset VAR
33038 # ---------------
33039 # Portably unset VAR.
33040 as_fn_unset ()
33041 {
33042 { eval $1=; unset $1;}
33043 }
33044 as_unset=as_fn_unset
33045 # as_fn_append VAR VALUE
33046 # ----------------------
33047 # Append the text in VALUE to the end of the definition contained in VAR. Take
33048 # advantage of any shell optimizations that allow amortized linear growth over
33049 # repeated appends, instead of the typical quadratic growth present in naive
33050 # implementations.
33051 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33052 eval 'as_fn_append ()
33053 {
33054 eval $1+=\$2
33055 }'
33056 else
33057 as_fn_append ()
33058 {
33059 eval $1=\$$1\$2
33060 }
33061 fi # as_fn_append
33062
33063 # as_fn_arith ARG...
33064 # ------------------
33065 # Perform arithmetic evaluation on the ARGs, and store the result in the
33066 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33067 # must be portable across $(()) and expr.
33068 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33069 eval 'as_fn_arith ()
33070 {
33071 as_val=$(( $* ))
33072 }'
33073 else
33074 as_fn_arith ()
33075 {
33076 as_val=`expr "$@" || test $? -eq 1`
33077 }
33078 fi # as_fn_arith
33079
33080
33081 if expr a : '\(a\)' >/dev/null 2>&1 &&
33082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33083 as_expr=expr
33084 else
33085 as_expr=false
33086 fi
33087
33088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33089 as_basename=basename
33090 else
33091 as_basename=false
33092 fi
33093
33094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33095 as_dirname=dirname
33096 else
33097 as_dirname=false
33098 fi
33099
33100 as_me=`$as_basename -- "$0" ||
33101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33102 X"$0" : 'X\(//\)$' \| \
33103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33104 $as_echo X/"$0" |
33105 sed '/^.*\/\([^/][^/]*\)\/*$/{
33106 s//\1/
33107 q
33108 }
33109 /^X\/\(\/\/\)$/{
33110 s//\1/
33111 q
33112 }
33113 /^X\/\(\/\).*/{
33114 s//\1/
33115 q
33116 }
33117 s/.*/./; q'`
33118
33119 # Avoid depending upon Character Ranges.
33120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33123 as_cr_digits='0123456789'
33124 as_cr_alnum=$as_cr_Letters$as_cr_digits
33125
33126 ECHO_C= ECHO_N= ECHO_T=
33127 case `echo -n x` in #(((((
33128 -n*)
33129 case `echo 'xy\c'` in
33130 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33131 xy) ECHO_C='\c';;
33132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33133 ECHO_T=' ';;
33134 esac;;
33135 *)
33136 ECHO_N='-n';;
33137 esac
33138
33139 rm -f conf$$ conf$$.exe conf$$.file
33140 if test -d conf$$.dir; then
33141 rm -f conf$$.dir/conf$$.file
33142 else
33143 rm -f conf$$.dir
33144 mkdir conf$$.dir 2>/dev/null
33145 fi
33146 if (echo >conf$$.file) 2>/dev/null; then
33147 if ln -s conf$$.file conf$$ 2>/dev/null; then
33148 as_ln_s='ln -s'
33149 # ... but there are two gotchas:
33150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33152 # In both cases, we have to default to `cp -pR'.
33153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33154 as_ln_s='cp -pR'
33155 elif ln conf$$.file conf$$ 2>/dev/null; then
33156 as_ln_s=ln
33157 else
33158 as_ln_s='cp -pR'
33159 fi
33160 else
33161 as_ln_s='cp -pR'
33162 fi
33163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33164 rmdir conf$$.dir 2>/dev/null
33165
33166
33167 # as_fn_mkdir_p
33168 # -------------
33169 # Create "$as_dir" as a directory, including parents if necessary.
33170 as_fn_mkdir_p ()
33171 {
33172
33173 case $as_dir in #(
33174 -*) as_dir=./$as_dir;;
33175 esac
33176 test -d "$as_dir" || eval $as_mkdir_p || {
33177 as_dirs=
33178 while :; do
33179 case $as_dir in #(
33180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33181 *) as_qdir=$as_dir;;
33182 esac
33183 as_dirs="'$as_qdir' $as_dirs"
33184 as_dir=`$as_dirname -- "$as_dir" ||
33185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33186 X"$as_dir" : 'X\(//\)[^/]' \| \
33187 X"$as_dir" : 'X\(//\)$' \| \
33188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33189 $as_echo X"$as_dir" |
33190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33191 s//\1/
33192 q
33193 }
33194 /^X\(\/\/\)[^/].*/{
33195 s//\1/
33196 q
33197 }
33198 /^X\(\/\/\)$/{
33199 s//\1/
33200 q
33201 }
33202 /^X\(\/\).*/{
33203 s//\1/
33204 q
33205 }
33206 s/.*/./; q'`
33207 test -d "$as_dir" && break
33208 done
33209 test -z "$as_dirs" || eval "mkdir $as_dirs"
33210 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33211
33212
33213 } # as_fn_mkdir_p
33214 if mkdir -p . 2>/dev/null; then
33215 as_mkdir_p='mkdir -p "$as_dir"'
33216 else
33217 test -d ./-p && rmdir ./-p
33218 as_mkdir_p=false
33219 fi
33220
33221
33222 # as_fn_executable_p FILE
33223 # -----------------------
33224 # Test if FILE is an executable regular file.
33225 as_fn_executable_p ()
33226 {
33227 test -f "$1" && test -x "$1"
33228 } # as_fn_executable_p
33229 as_test_x='test -x'
33230 as_executable_p=as_fn_executable_p
33231
33232 # Sed expression to map a string onto a valid CPP name.
33233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33234
33235 # Sed expression to map a string onto a valid variable name.
33236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33237
33238
33239 exec 6>&1
33240 ## ----------------------------------- ##
33241 ## Main body of $CONFIG_STATUS script. ##
33242 ## ----------------------------------- ##
33243 _ASEOF
33244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33245
33246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33247 # Save the log message, to keep $0 and so on meaningful, and to
33248 # report actual input values of CONFIG_FILES etc. instead of their
33249 # values after options handling.
33250 ac_log="
33251 This file was extended by $as_me, which was
33252 generated by GNU Autoconf 2.69. Invocation command line was
33253
33254 CONFIG_FILES = $CONFIG_FILES
33255 CONFIG_HEADERS = $CONFIG_HEADERS
33256 CONFIG_LINKS = $CONFIG_LINKS
33257 CONFIG_COMMANDS = $CONFIG_COMMANDS
33258 $ $0 $@
33259
33260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33261 "
33262
33263 _ACEOF
33264
33265 case $ac_config_files in *"
33266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33267 esac
33268
33269 case $ac_config_headers in *"
33270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33271 esac
33272
33273
33274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33275 # Files that config.status was made for.
33276 config_files="$ac_config_files"
33277 config_headers="$ac_config_headers"
33278 config_links="$ac_config_links"
33279 config_commands="$ac_config_commands"
33280
33281 _ACEOF
33282
33283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33284 ac_cs_usage="\
33285 \`$as_me' instantiates files and other configuration actions
33286 from templates according to the current configuration. Unless the files
33287 and actions are specified as TAGs, all are instantiated by default.
33288
33289 Usage: $0 [OPTION]... [TAG]...
33290
33291 -h, --help print this help, then exit
33292 -V, --version print version number and configuration settings, then exit
33293 --config print configuration, then exit
33294 -q, --quiet, --silent
33295 do not print progress messages
33296 -d, --debug don't remove temporary files
33297 --recheck update $as_me by reconfiguring in the same conditions
33298 --file=FILE[:TEMPLATE]
33299 instantiate the configuration file FILE
33300 --header=FILE[:TEMPLATE]
33301 instantiate the configuration header FILE
33302
33303 Configuration files:
33304 $config_files
33305
33306 Configuration headers:
33307 $config_headers
33308
33309 Configuration links:
33310 $config_links
33311
33312 Configuration commands:
33313 $config_commands
33314
33315 Report bugs to the package provider."
33316
33317 _ACEOF
33318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33320 ac_cs_version="\\
33321 config.status
33322 configured by $0, generated by GNU Autoconf 2.69,
33323 with options \\"\$ac_cs_config\\"
33324
33325 Copyright (C) 2012 Free Software Foundation, Inc.
33326 This config.status script is free software; the Free Software Foundation
33327 gives unlimited permission to copy, distribute and modify it."
33328
33329 ac_pwd='$ac_pwd'
33330 srcdir='$srcdir'
33331 AWK='$AWK'
33332 test -n "\$AWK" || AWK=awk
33333 _ACEOF
33334
33335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33336 # The default lists apply if the user does not specify any file.
33337 ac_need_defaults=:
33338 while test $# != 0
33339 do
33340 case $1 in
33341 --*=?*)
33342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33344 ac_shift=:
33345 ;;
33346 --*=)
33347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33348 ac_optarg=
33349 ac_shift=:
33350 ;;
33351 *)
33352 ac_option=$1
33353 ac_optarg=$2
33354 ac_shift=shift
33355 ;;
33356 esac
33357
33358 case $ac_option in
33359 # Handling of the options.
33360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33361 ac_cs_recheck=: ;;
33362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33363 $as_echo "$ac_cs_version"; exit ;;
33364 --config | --confi | --conf | --con | --co | --c )
33365 $as_echo "$ac_cs_config"; exit ;;
33366 --debug | --debu | --deb | --de | --d | -d )
33367 debug=: ;;
33368 --file | --fil | --fi | --f )
33369 $ac_shift
33370 case $ac_optarg in
33371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33372 '') as_fn_error $? "missing file argument" ;;
33373 esac
33374 as_fn_append CONFIG_FILES " '$ac_optarg'"
33375 ac_need_defaults=false;;
33376 --header | --heade | --head | --hea )
33377 $ac_shift
33378 case $ac_optarg in
33379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33380 esac
33381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33382 ac_need_defaults=false;;
33383 --he | --h)
33384 # Conflict between --help and --header
33385 as_fn_error $? "ambiguous option: \`$1'
33386 Try \`$0 --help' for more information.";;
33387 --help | --hel | -h )
33388 $as_echo "$ac_cs_usage"; exit ;;
33389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33391 ac_cs_silent=: ;;
33392
33393 # This is an error.
33394 -*) as_fn_error $? "unrecognized option: \`$1'
33395 Try \`$0 --help' for more information." ;;
33396
33397 *) as_fn_append ac_config_targets " $1"
33398 ac_need_defaults=false ;;
33399
33400 esac
33401 shift
33402 done
33403
33404 ac_configure_extra_args=
33405
33406 if $ac_cs_silent; then
33407 exec 6>/dev/null
33408 ac_configure_extra_args="$ac_configure_extra_args --silent"
33409 fi
33410
33411 _ACEOF
33412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33413 if \$ac_cs_recheck; then
33414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33415 shift
33416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33417 CONFIG_SHELL='$SHELL'
33418 export CONFIG_SHELL
33419 exec "\$@"
33420 fi
33421
33422 _ACEOF
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 exec 5>>config.log
33425 {
33426 echo
33427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33428 ## Running $as_me. ##
33429 _ASBOX
33430 $as_echo "$ac_log"
33431 } >&5
33432
33433 _ACEOF
33434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33435 #
33436 # INIT-COMMANDS
33437 #
33438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33439 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33440 subdirs='$subdirs'
33441
33442 _ACEOF
33443
33444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33445
33446 # Handling of arguments.
33447 for ac_config_target in $ac_config_targets
33448 do
33449 case $ac_config_target in
33450 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33451 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33452 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33453 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33454 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33455 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33456 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33457 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33458 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33459 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33460
33461 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33462 esac
33463 done
33464
33465
33466 # If the user did not use the arguments to specify the items to instantiate,
33467 # then the envvar interface is used. Set only those that are not.
33468 # We use the long form for the default assignment because of an extremely
33469 # bizarre bug on SunOS 4.1.3.
33470 if $ac_need_defaults; then
33471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33473 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33475 fi
33476
33477 # Have a temporary directory for convenience. Make it in the build tree
33478 # simply because there is no reason against having it here, and in addition,
33479 # creating and moving files from /tmp can sometimes cause problems.
33480 # Hook for its removal unless debugging.
33481 # Note that there is a small window in which the directory will not be cleaned:
33482 # after its creation but before its name has been assigned to `$tmp'.
33483 $debug ||
33484 {
33485 tmp= ac_tmp=
33486 trap 'exit_status=$?
33487 : "${ac_tmp:=$tmp}"
33488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33489 ' 0
33490 trap 'as_fn_exit 1' 1 2 13 15
33491 }
33492 # Create a (secure) tmp directory for tmp files.
33493
33494 {
33495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33496 test -d "$tmp"
33497 } ||
33498 {
33499 tmp=./conf$$-$RANDOM
33500 (umask 077 && mkdir "$tmp")
33501 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33502 ac_tmp=$tmp
33503
33504 # Set up the scripts for CONFIG_FILES section.
33505 # No need to generate them if there are no CONFIG_FILES.
33506 # This happens for instance with `./config.status config.h'.
33507 if test -n "$CONFIG_FILES"; then
33508
33509 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33510 ac_cs_awk_getline=:
33511 ac_cs_awk_pipe_init=
33512 ac_cs_awk_read_file='
33513 while ((getline aline < (F[key])) > 0)
33514 print(aline)
33515 close(F[key])'
33516 ac_cs_awk_pipe_fini=
33517 else
33518 ac_cs_awk_getline=false
33519 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33520 ac_cs_awk_read_file='
33521 print "|#_!!_#|"
33522 print "cat " F[key] " &&"
33523 '$ac_cs_awk_pipe_init
33524 # The final `:' finishes the AND list.
33525 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33526 fi
33527 ac_cr=`echo X | tr X '\015'`
33528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33529 # But we know of no other shell where ac_cr would be empty at this
33530 # point, so we can use a bashism as a fallback.
33531 if test "x$ac_cr" = x; then
33532 eval ac_cr=\$\'\\r\'
33533 fi
33534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33536 ac_cs_awk_cr='\\r'
33537 else
33538 ac_cs_awk_cr=$ac_cr
33539 fi
33540
33541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33542 _ACEOF
33543
33544 # Create commands to substitute file output variables.
33545 {
33546 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33547 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33548 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33549 echo "_ACAWK" &&
33550 echo "_ACEOF"
33551 } >conf$$files.sh &&
33552 . ./conf$$files.sh ||
33553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33554 rm -f conf$$files.sh
33555
33556 {
33557 echo "cat >conf$$subs.awk <<_ACEOF" &&
33558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33559 echo "_ACEOF"
33560 } >conf$$subs.sh ||
33561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33563 ac_delim='%!_!# '
33564 for ac_last_try in false false false false false :; do
33565 . ./conf$$subs.sh ||
33566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33567
33568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33569 if test $ac_delim_n = $ac_delim_num; then
33570 break
33571 elif $ac_last_try; then
33572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33573 else
33574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33575 fi
33576 done
33577 rm -f conf$$subs.sh
33578
33579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33580 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33581 _ACEOF
33582 sed -n '
33583 h
33584 s/^/S["/; s/!.*/"]=/
33585 p
33586 g
33587 s/^[^!]*!//
33588 :repl
33589 t repl
33590 s/'"$ac_delim"'$//
33591 t delim
33592 :nl
33593 h
33594 s/\(.\{148\}\)..*/\1/
33595 t more1
33596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33597 p
33598 n
33599 b repl
33600 :more1
33601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33602 p
33603 g
33604 s/.\{148\}//
33605 t nl
33606 :delim
33607 h
33608 s/\(.\{148\}\)..*/\1/
33609 t more2
33610 s/["\\]/\\&/g; s/^/"/; s/$/"/
33611 p
33612 b
33613 :more2
33614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33615 p
33616 g
33617 s/.\{148\}//
33618 t delim
33619 ' <conf$$subs.awk | sed '
33620 /^[^""]/{
33621 N
33622 s/\n//
33623 }
33624 ' >>$CONFIG_STATUS || ac_write_fail=1
33625 rm -f conf$$subs.awk
33626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33627 _ACAWK
33628 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33629 for (key in S) S_is_set[key] = 1
33630 FS = "\a"
33631 \$ac_cs_awk_pipe_init
33632 }
33633 {
33634 line = $ 0
33635 nfields = split(line, field, "@")
33636 substed = 0
33637 len = length(field[1])
33638 for (i = 2; i < nfields; i++) {
33639 key = field[i]
33640 keylen = length(key)
33641 if (S_is_set[key]) {
33642 value = S[key]
33643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33644 len += length(value) + length(field[++i])
33645 substed = 1
33646 } else
33647 len += 1 + keylen
33648 }
33649 if (nfields == 3 && !substed) {
33650 key = field[2]
33651 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33652 \$ac_cs_awk_read_file
33653 next
33654 }
33655 }
33656 print line
33657 }
33658 \$ac_cs_awk_pipe_fini
33659 _ACAWK
33660 _ACEOF
33661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33662 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33663 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33664 else
33665 cat
33666 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33667 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33668 _ACEOF
33669
33670 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33671 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33672 # trailing colons and then remove the whole line if VPATH becomes empty
33673 # (actually we leave an empty line to preserve line numbers).
33674 if test "x$srcdir" = x.; then
33675 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33676 h
33677 s///
33678 s/^/:/
33679 s/[ ]*$/:/
33680 s/:\$(srcdir):/:/g
33681 s/:\${srcdir}:/:/g
33682 s/:@srcdir@:/:/g
33683 s/^:*//
33684 s/:*$//
33685 x
33686 s/\(=[ ]*\).*/\1/
33687 G
33688 s/\n//
33689 s/^[^=]*=[ ]*$//
33690 }'
33691 fi
33692
33693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33694 fi # test -n "$CONFIG_FILES"
33695
33696 # Set up the scripts for CONFIG_HEADERS section.
33697 # No need to generate them if there are no CONFIG_HEADERS.
33698 # This happens for instance with `./config.status Makefile'.
33699 if test -n "$CONFIG_HEADERS"; then
33700 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33701 BEGIN {
33702 _ACEOF
33703
33704 # Transform confdefs.h into an awk script `defines.awk', embedded as
33705 # here-document in config.status, that substitutes the proper values into
33706 # config.h.in to produce config.h.
33707
33708 # Create a delimiter string that does not exist in confdefs.h, to ease
33709 # handling of long lines.
33710 ac_delim='%!_!# '
33711 for ac_last_try in false false :; do
33712 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33713 if test -z "$ac_tt"; then
33714 break
33715 elif $ac_last_try; then
33716 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33717 else
33718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33719 fi
33720 done
33721
33722 # For the awk script, D is an array of macro values keyed by name,
33723 # likewise P contains macro parameters if any. Preserve backslash
33724 # newline sequences.
33725
33726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33727 sed -n '
33728 s/.\{148\}/&'"$ac_delim"'/g
33729 t rset
33730 :rset
33731 s/^[ ]*#[ ]*define[ ][ ]*/ /
33732 t def
33733 d
33734 :def
33735 s/\\$//
33736 t bsnl
33737 s/["\\]/\\&/g
33738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33739 D["\1"]=" \3"/p
33740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33741 d
33742 :bsnl
33743 s/["\\]/\\&/g
33744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33745 D["\1"]=" \3\\\\\\n"\\/p
33746 t cont
33747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33748 t cont
33749 d
33750 :cont
33751 n
33752 s/.\{148\}/&'"$ac_delim"'/g
33753 t clear
33754 :clear
33755 s/\\$//
33756 t bsnlc
33757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33758 d
33759 :bsnlc
33760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33761 b cont
33762 ' <confdefs.h | sed '
33763 s/'"$ac_delim"'/"\\\
33764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33765
33766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33767 for (key in D) D_is_set[key] = 1
33768 FS = "\a"
33769 }
33770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33771 line = \$ 0
33772 split(line, arg, " ")
33773 if (arg[1] == "#") {
33774 defundef = arg[2]
33775 mac1 = arg[3]
33776 } else {
33777 defundef = substr(arg[1], 2)
33778 mac1 = arg[2]
33779 }
33780 split(mac1, mac2, "(") #)
33781 macro = mac2[1]
33782 prefix = substr(line, 1, index(line, defundef) - 1)
33783 if (D_is_set[macro]) {
33784 # Preserve the white space surrounding the "#".
33785 print prefix "define", macro P[macro] D[macro]
33786 next
33787 } else {
33788 # Replace #undef with comments. This is necessary, for example,
33789 # in the case of _POSIX_SOURCE, which is predefined and required
33790 # on some systems where configure will not decide to define it.
33791 if (defundef == "undef") {
33792 print "/*", prefix defundef, macro, "*/"
33793 next
33794 }
33795 }
33796 }
33797 { print }
33798 _ACAWK
33799 _ACEOF
33800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33801 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33802 fi # test -n "$CONFIG_HEADERS"
33803
33804
33805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33806 shift
33807 for ac_tag
33808 do
33809 case $ac_tag in
33810 :[FHLC]) ac_mode=$ac_tag; continue;;
33811 esac
33812 case $ac_mode$ac_tag in
33813 :[FHL]*:*);;
33814 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33815 :[FH]-) ac_tag=-:-;;
33816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33817 esac
33818 ac_save_IFS=$IFS
33819 IFS=:
33820 set x $ac_tag
33821 IFS=$ac_save_IFS
33822 shift
33823 ac_file=$1
33824 shift
33825
33826 case $ac_mode in
33827 :L) ac_source=$1;;
33828 :[FH])
33829 ac_file_inputs=
33830 for ac_f
33831 do
33832 case $ac_f in
33833 -) ac_f="$ac_tmp/stdin";;
33834 *) # Look for the file first in the build tree, then in the source tree
33835 # (if the path is not absolute). The absolute path cannot be DOS-style,
33836 # because $ac_f cannot contain `:'.
33837 test -f "$ac_f" ||
33838 case $ac_f in
33839 [\\/$]*) false;;
33840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33841 esac ||
33842 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33843 esac
33844 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33845 as_fn_append ac_file_inputs " '$ac_f'"
33846 done
33847
33848 # Let's still pretend it is `configure' which instantiates (i.e., don't
33849 # use $as_me), people would be surprised to read:
33850 # /* config.h. Generated by config.status. */
33851 configure_input='Generated from '`
33852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33853 `' by configure.'
33854 if test x"$ac_file" != x-; then
33855 configure_input="$ac_file. $configure_input"
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33857 $as_echo "$as_me: creating $ac_file" >&6;}
33858 fi
33859 # Neutralize special characters interpreted by sed in replacement strings.
33860 case $configure_input in #(
33861 *\&* | *\|* | *\\* )
33862 ac_sed_conf_input=`$as_echo "$configure_input" |
33863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33864 *) ac_sed_conf_input=$configure_input;;
33865 esac
33866
33867 case $ac_tag in
33868 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33870 esac
33871 ;;
33872 esac
33873
33874 ac_dir=`$as_dirname -- "$ac_file" ||
33875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33876 X"$ac_file" : 'X\(//\)[^/]' \| \
33877 X"$ac_file" : 'X\(//\)$' \| \
33878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33879 $as_echo X"$ac_file" |
33880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33881 s//\1/
33882 q
33883 }
33884 /^X\(\/\/\)[^/].*/{
33885 s//\1/
33886 q
33887 }
33888 /^X\(\/\/\)$/{
33889 s//\1/
33890 q
33891 }
33892 /^X\(\/\).*/{
33893 s//\1/
33894 q
33895 }
33896 s/.*/./; q'`
33897 as_dir="$ac_dir"; as_fn_mkdir_p
33898 ac_builddir=.
33899
33900 case "$ac_dir" in
33901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33902 *)
33903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33904 # A ".." for each directory in $ac_dir_suffix.
33905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33906 case $ac_top_builddir_sub in
33907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33909 esac ;;
33910 esac
33911 ac_abs_top_builddir=$ac_pwd
33912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33913 # for backward compatibility:
33914 ac_top_builddir=$ac_top_build_prefix
33915
33916 case $srcdir in
33917 .) # We are building in place.
33918 ac_srcdir=.
33919 ac_top_srcdir=$ac_top_builddir_sub
33920 ac_abs_top_srcdir=$ac_pwd ;;
33921 [\\/]* | ?:[\\/]* ) # Absolute name.
33922 ac_srcdir=$srcdir$ac_dir_suffix;
33923 ac_top_srcdir=$srcdir
33924 ac_abs_top_srcdir=$srcdir ;;
33925 *) # Relative name.
33926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33927 ac_top_srcdir=$ac_top_build_prefix$srcdir
33928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33929 esac
33930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33931
33932
33933 case $ac_mode in
33934 :F)
33935 #
33936 # CONFIG_FILE
33937 #
33938
33939 _ACEOF
33940
33941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33942 # If the template does not know about datarootdir, expand it.
33943 # FIXME: This hack should be removed a few years after 2.60.
33944 ac_datarootdir_hack=; ac_datarootdir_seen=
33945 ac_sed_dataroot='
33946 /datarootdir/ {
33947 p
33948 q
33949 }
33950 /@datadir@/p
33951 /@docdir@/p
33952 /@infodir@/p
33953 /@localedir@/p
33954 /@mandir@/p'
33955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33956 *datarootdir*) ac_datarootdir_seen=yes;;
33957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33960 _ACEOF
33961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33962 ac_datarootdir_hack='
33963 s&@datadir@&$datadir&g
33964 s&@docdir@&$docdir&g
33965 s&@infodir@&$infodir&g
33966 s&@localedir@&$localedir&g
33967 s&@mandir@&$mandir&g
33968 s&\\\${datarootdir}&$datarootdir&g' ;;
33969 esac
33970 _ACEOF
33971
33972 # Neutralize VPATH when `$srcdir' = `.'.
33973 # Shell code in configure.ac might set extrasub.
33974 # FIXME: do we really want to maintain this feature?
33975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33976 ac_sed_extra="$ac_vpsub
33977 $extrasub
33978 _ACEOF
33979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33980 :t
33981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33982 s|@configure_input@|$ac_sed_conf_input|;t t
33983 s&@top_builddir@&$ac_top_builddir_sub&;t t
33984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33985 s&@srcdir@&$ac_srcdir&;t t
33986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33987 s&@top_srcdir@&$ac_top_srcdir&;t t
33988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33989 s&@builddir@&$ac_builddir&;t t
33990 s&@abs_builddir@&$ac_abs_builddir&;t t
33991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33992 $ac_datarootdir_hack
33993 "
33994 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33995 if $ac_cs_awk_getline; then
33996 $AWK -f "$ac_tmp/subs.awk"
33997 else
33998 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33999 fi \
34000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34001
34002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34005 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34007 which seems to be undefined. Please make sure it is defined" >&5
34008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34009 which seems to be undefined. Please make sure it is defined" >&2;}
34010
34011 rm -f "$ac_tmp/stdin"
34012 case $ac_file in
34013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34015 esac \
34016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34017 ;;
34018 :H)
34019 #
34020 # CONFIG_HEADER
34021 #
34022 if test x"$ac_file" != x-; then
34023 {
34024 $as_echo "/* $configure_input */" \
34025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34026 } >"$ac_tmp/config.h" \
34027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34031 else
34032 rm -f "$ac_file"
34033 mv "$ac_tmp/config.h" "$ac_file" \
34034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34035 fi
34036 else
34037 $as_echo "/* $configure_input */" \
34038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34039 || as_fn_error $? "could not create -" "$LINENO" 5
34040 fi
34041 ;;
34042 :L)
34043 #
34044 # CONFIG_LINK
34045 #
34046
34047 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34048 :
34049 else
34050 # Prefer the file from the source tree if names are identical.
34051 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34052 ac_source=$srcdir/$ac_source
34053 fi
34054
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34056 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34057
34058 if test ! -r "$ac_source"; then
34059 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34060 fi
34061 rm -f "$ac_file"
34062
34063 # Try a relative symlink, then a hard link, then a copy.
34064 case $ac_source in
34065 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34066 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34067 esac
34068 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34069 ln "$ac_source" "$ac_file" 2>/dev/null ||
34070 cp -p "$ac_source" "$ac_file" ||
34071 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34072 fi
34073 ;;
34074 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34075 $as_echo "$as_me: executing $ac_file commands" >&6;}
34076 ;;
34077 esac
34078
34079
34080 case $ac_file$ac_mode in
34081 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34082 "gccdepdir":C)
34083 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34084 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34085 do
34086 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34087 done ;;
34088 "as":F) chmod +x as ;;
34089 "collect-ld":F) chmod +x collect-ld ;;
34090 "nm":F) chmod +x nm ;;
34091 "dsymutil":F) chmod +x dsymutil ;;
34092 "default":C)
34093 case ${CONFIG_HEADERS} in
34094 *auto-host.h:config.in*)
34095 echo > cstamp-h ;;
34096 esac
34097 # Make sure all the subdirs exist.
34098 for d in $subdirs doc build common c-family
34099 do
34100 test -d $d || mkdir $d
34101 done
34102 ;;
34103
34104 esac
34105 done # for ac_tag
34106
34107
34108 as_fn_exit 0
34109 _ACEOF
34110 ac_clean_files=$ac_clean_files_save
34111
34112 test $ac_write_fail = 0 ||
34113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34114
34115
34116 # configure is writing to config.log, and then calls config.status.
34117 # config.status does its own redirection, appending to config.log.
34118 # Unfortunately, on DOS this fails, as config.log is still kept open
34119 # by configure, so config.status won't be able to write to it; its
34120 # output is simply discarded. So we exec the FD to /dev/null,
34121 # effectively closing config.log, so it can be properly (re)opened and
34122 # appended to by config.status. When coming back to configure, we
34123 # need to make the FD available again.
34124 if test "$no_create" != yes; then
34125 ac_cs_success=:
34126 ac_config_status_args=
34127 test "$silent" = yes &&
34128 ac_config_status_args="$ac_config_status_args --quiet"
34129 exec 5>/dev/null
34130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34131 exec 5>>config.log
34132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34133 # would make configure fail if this is the last instruction.
34134 $ac_cs_success || as_fn_exit 1
34135 fi
34136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34139 fi
34140