C-family, Objective-C [1/3] : Implement Wobjc-root-class [PR77404].
[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.c"
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 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_include_dir_add_sysroot
679 gcc_gxx_include_dir
680 gcc_config_arguments
681 float_h_file
682 extra_programs
683 extra_objs
684 extra_headers_list
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
687 extra_gcc_objs
688 TM_MULTILIB_EXCEPTIONS_CONFIG
689 TM_MULTILIB_CONFIG
690 TM_ENDIAN_CONFIG
691 tmake_file
692 xmake_file
693 cpp_install_dir
694 selftest_languages
695 check_languages
696 build_file_translate
697 build_xm_defines
698 build_xm_include_list
699 build_xm_file_list
700 build_install_headers_dir
701 build_exeext
702 all_selected_languages
703 all_languages
704 all_lang_makefrags
705 all_lang_configurefrags
706 all_gtfiles
707 all_compilers
708 srcdir
709 subdirs
710 dollar
711 gcc_tooldir
712 enable_lto
713 DO_LINK_MUTEX
714 MAINT
715 zlibinc
716 zlibdir
717 HOST_LIBS
718 enable_default_ssp
719 thin_archive_support
720 ld_soname_option
721 ld_version_script_option
722 libgcc_visibility
723 gcc_cv_otool
724 gcc_cv_readelf
725 gcc_cv_objdump
726 ORIGINAL_NM_FOR_TARGET
727 gcc_cv_nm
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 gcc_cv_ld
733 ORIGINAL_AS_FOR_TARGET
734 gcc_cv_as
735 enable_fast_install
736 objdir
737 OTOOL64
738 OTOOL
739 LIPO
740 NMEDIT
741 DSYMUTIL
742 STRIP
743 OBJDUMP
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 SED
749 LIBTOOL
750 collect2
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
753 BUILD_NO_PIE_FLAG
754 BUILD_NO_PIE_CFLAGS
755 STMP_FIXINC
756 BUILD_LDFLAGS
757 BUILD_CXXFLAGS
758 BUILD_CFLAGS
759 CXX_FOR_BUILD
760 CC_FOR_BUILD
761 inhibit_libc
762 BUILD_SYSTEM_HEADER_DIR
763 SYSTEM_HEADER_DIR
764 ALL
765 CROSS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 get_gcc_base_ver
779 HAVE_AUTO_BUILD
780 extra_opt_files
781 extra_modes_file
782 NATIVE_SYSTEM_HEADER_DIR
783 objext
784 manext
785 LIBICONV_DEP
786 LTLIBICONV
787 LIBICONV
788 ZSTD_LDFLAGS
789 ZSTD_CPPFLAGS
790 ZSTD_LIB
791 ZSTD_INCLUDE
792 DL_LIB
793 LDEXP_LIB
794 EXTRA_GCC_LIBS
795 GNAT_LIBEXC
796 COLLECT2_LIBS
797 CXXDEPMODE
798 DEPDIR
799 am__leading_dot
800 doc_build_sys
801 AR
802 NM
803 BISON
804 FLEX
805 GENERATED_MANPAGES
806 BUILD_INFO
807 MAKEINFO
808 have_mktemp_command
809 make_compare_target
810 INSTALL_DATA
811 INSTALL_PROGRAM
812 INSTALL
813 ranlib_flags
814 RANLIB
815 LN
816 LN_S
817 AWK
818 SET_MAKE
819 omp_device_property_deps
820 omp_device_properties
821 accel_dir_suffix
822 real_target_noncanonical
823 enable_as_accelerator
824 gnat_install_lib
825 REPORT_BUGS_TEXI
826 REPORT_BUGS_TO
827 PKGVERSION
828 CONFIGURE_SPECS
829 enable_gcov
830 enable_shared
831 enable_fixed_point
832 enable_decimal_float
833 with_float
834 with_cpu
835 enable_multiarch
836 enable_multilib
837 coverage_flags
838 valgrind_command
839 valgrind_path_defines
840 valgrind_path
841 TREECHECKING
842 nocommon_flag
843 noexception_flags
844 warn_cxxflags
845 warn_cflags
846 c_strict_warn
847 strict_warn
848 c_loose_warn
849 loose_warn
850 aliasing_flags
851 CPP
852 EGREP
853 GREP
854 CXXCPP
855 PICFLAG_FOR_TARGET
856 GNATMAKE
857 GNATBIND
858 ac_ct_CXX
859 CXXFLAGS
860 CXX
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
867 CC
868 GENINSRC
869 CROSS_SYSTEM_HEADER_DIR
870 TARGET_SYSTEM_ROOT_DEFINE
871 TARGET_SYSTEM_ROOT
872 SYSROOT_CFLAGS_FOR_TARGET
873 target_subdir
874 host_subdir
875 build_subdir
876 build_libsubdir
877 target_noncanonical
878 host_noncanonical
879 target_os
880 target_vendor
881 target_cpu
882 target
883 host_os
884 host_vendor
885 host_cpu
886 host
887 build_os
888 build_vendor
889 build_cpu
890 build
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_URL
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files='option_includes
930 language_hooks'
931 ac_user_opts='
932 enable_option_checking
933 with_build_libsubdir
934 with_local_prefix
935 with_native_system_header_dir
936 with_build_sysroot
937 with_sysroot
938 with_gxx_include_dir
939 with_cpp_install_dir
940 enable_generated_files_in_srcdir
941 with_gnu_ld
942 with_ld
943 with_demangler_in_ld
944 with_gnu_as
945 with_as
946 enable_largefile
947 enable_build_format_warnings
948 enable_werror_always
949 enable_checking
950 enable_coverage
951 enable_gather_detailed_mem_stats
952 enable_valgrind_annotations
953 with_stabs
954 enable_multilib
955 enable_multiarch
956 with_stack_clash_protection_guard_size
957 enable___cxa_atexit
958 enable_decimal_float
959 enable_fixed_point
960 enable_threads
961 enable_tls
962 enable_vtable_verify
963 enable_analyzer
964 enable_objc_gc
965 with_dwarf2
966 enable_shared
967 enable_gcov
968 with_specs
969 with_pkgversion
970 with_bugurl
971 with_documentation_root_url
972 with_changes_root_url
973 enable_languages
974 with_multilib_list
975 with_multilib_generator
976 with_zstd
977 with_zstd_include
978 with_zstd_lib
979 enable_rpath
980 with_libiconv_prefix
981 with_libiconv_type
982 enable_sjlj_exceptions
983 with_gcc_major_version_only
984 enable_secureplt
985 enable_mingw_wildcard
986 enable_large_address_aware
987 enable_leading_mingw64_underscores
988 enable_cld
989 enable_frame_pointer
990 enable_win32_registry
991 enable_static
992 with_pic
993 enable_fast_install
994 enable_libtool_lock
995 enable_ld
996 enable_gold
997 with_plugin_ld
998 enable_gnu_indirect_function
999 enable_initfini_array
1000 enable_comdat
1001 enable_newlib_nano_formatted_io
1002 enable_standard_branch_protection
1003 enable_fix_cortex_a53_835769
1004 enable_fix_cortex_a53_843419
1005 with_glibc_version
1006 enable_gnu_unique_object
1007 enable_linker_build_id
1008 enable_libssp
1009 enable_default_ssp
1010 with_long_double_128
1011 with_long_double_format
1012 with_gc
1013 with_system_zlib
1014 enable_maintainer_mode
1015 enable_link_mutex
1016 enable_version_specific_runtime_libs
1017 enable_plugin
1018 enable_host_shared
1019 enable_libquadmath_support
1020 with_linker_hash_style
1021 with_diagnostics_color
1022 with_diagnostics_urls
1023 enable_default_pie
1024 enable_cet
1025 '
1026 ac_precious_vars='build_alias
1027 host_alias
1028 target_alias
1029 CC
1030 CFLAGS
1031 LDFLAGS
1032 LIBS
1033 CPPFLAGS
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 CXXCPP
1038 CPP
1039 GMPLIBS
1040 GMPINC
1041 ISLLIBS
1042 ISLINC'
1043
1044
1045 # Initialize some variables set by options.
1046 ac_init_help=
1047 ac_init_version=false
1048 ac_unrecognized_opts=
1049 ac_unrecognized_sep=
1050 # The variables have the same names as the options, with
1051 # dashes changed to underlines.
1052 cache_file=/dev/null
1053 exec_prefix=NONE
1054 no_create=
1055 no_recursion=
1056 prefix=NONE
1057 program_prefix=NONE
1058 program_suffix=NONE
1059 program_transform_name=s,x,x,
1060 silent=
1061 site=
1062 srcdir=
1063 verbose=
1064 x_includes=NONE
1065 x_libraries=NONE
1066
1067 # Installation directory options.
1068 # These are left unexpanded so users can "make install exec_prefix=/foo"
1069 # and all the variables that are supposed to be based on exec_prefix
1070 # by default will actually change.
1071 # Use braces instead of parens because sh, perl, etc. also accept them.
1072 # (The list follows the same order as the GNU Coding Standards.)
1073 bindir='${exec_prefix}/bin'
1074 sbindir='${exec_prefix}/sbin'
1075 libexecdir='${exec_prefix}/libexec'
1076 datarootdir='${prefix}/share'
1077 datadir='${datarootdir}'
1078 sysconfdir='${prefix}/etc'
1079 sharedstatedir='${prefix}/com'
1080 localstatedir='${prefix}/var'
1081 includedir='${prefix}/include'
1082 oldincludedir='/usr/include'
1083 docdir='${datarootdir}/doc/${PACKAGE}'
1084 infodir='${datarootdir}/info'
1085 htmldir='${docdir}'
1086 dvidir='${docdir}'
1087 pdfdir='${docdir}'
1088 psdir='${docdir}'
1089 libdir='${exec_prefix}/lib'
1090 localedir='${datarootdir}/locale'
1091 mandir='${datarootdir}/man'
1092
1093 ac_prev=
1094 ac_dashdash=
1095 for ac_option
1096 do
1097 # If the previous option needs an argument, assign it.
1098 if test -n "$ac_prev"; then
1099 eval $ac_prev=\$ac_option
1100 ac_prev=
1101 continue
1102 fi
1103
1104 case $ac_option in
1105 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 *=) ac_optarg= ;;
1107 *) ac_optarg=yes ;;
1108 esac
1109
1110 # Accept the important Cygnus configure options, so we can diagnose typos.
1111
1112 case $ac_dashdash$ac_option in
1113 --)
1114 ac_dashdash=yes ;;
1115
1116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1117 ac_prev=bindir ;;
1118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1119 bindir=$ac_optarg ;;
1120
1121 -build | --build | --buil | --bui | --bu)
1122 ac_prev=build_alias ;;
1123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1124 build_alias=$ac_optarg ;;
1125
1126 -cache-file | --cache-file | --cache-fil | --cache-fi \
1127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1128 ac_prev=cache_file ;;
1129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1131 cache_file=$ac_optarg ;;
1132
1133 --config-cache | -C)
1134 cache_file=config.cache ;;
1135
1136 -datadir | --datadir | --datadi | --datad)
1137 ac_prev=datadir ;;
1138 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1139 datadir=$ac_optarg ;;
1140
1141 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1142 | --dataroo | --dataro | --datar)
1143 ac_prev=datarootdir ;;
1144 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1145 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1146 datarootdir=$ac_optarg ;;
1147
1148 -disable-* | --disable-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid feature name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "enable_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval enable_$ac_useropt=no ;;
1163
1164 -docdir | --docdir | --docdi | --doc | --do)
1165 ac_prev=docdir ;;
1166 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167 docdir=$ac_optarg ;;
1168
1169 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170 ac_prev=dvidir ;;
1171 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172 dvidir=$ac_optarg ;;
1173
1174 -enable-* | --enable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid feature name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "enable_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval enable_$ac_useropt=\$ac_optarg ;;
1189
1190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1192 | --exec | --exe | --ex)
1193 ac_prev=exec_prefix ;;
1194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1196 | --exec=* | --exe=* | --ex=*)
1197 exec_prefix=$ac_optarg ;;
1198
1199 -gas | --gas | --ga | --g)
1200 # Obsolete; use --with-gas.
1201 with_gas=yes ;;
1202
1203 -help | --help | --hel | --he | -h)
1204 ac_init_help=long ;;
1205 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1206 ac_init_help=recursive ;;
1207 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1208 ac_init_help=short ;;
1209
1210 -host | --host | --hos | --ho)
1211 ac_prev=host_alias ;;
1212 -host=* | --host=* | --hos=* | --ho=*)
1213 host_alias=$ac_optarg ;;
1214
1215 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1216 ac_prev=htmldir ;;
1217 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1218 | --ht=*)
1219 htmldir=$ac_optarg ;;
1220
1221 -includedir | --includedir | --includedi | --included | --include \
1222 | --includ | --inclu | --incl | --inc)
1223 ac_prev=includedir ;;
1224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1225 | --includ=* | --inclu=* | --incl=* | --inc=*)
1226 includedir=$ac_optarg ;;
1227
1228 -infodir | --infodir | --infodi | --infod | --info | --inf)
1229 ac_prev=infodir ;;
1230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1231 infodir=$ac_optarg ;;
1232
1233 -libdir | --libdir | --libdi | --libd)
1234 ac_prev=libdir ;;
1235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1236 libdir=$ac_optarg ;;
1237
1238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1239 | --libexe | --libex | --libe)
1240 ac_prev=libexecdir ;;
1241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1242 | --libexe=* | --libex=* | --libe=*)
1243 libexecdir=$ac_optarg ;;
1244
1245 -localedir | --localedir | --localedi | --localed | --locale)
1246 ac_prev=localedir ;;
1247 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1248 localedir=$ac_optarg ;;
1249
1250 -localstatedir | --localstatedir | --localstatedi | --localstated \
1251 | --localstate | --localstat | --localsta | --localst | --locals)
1252 ac_prev=localstatedir ;;
1253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1254 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1255 localstatedir=$ac_optarg ;;
1256
1257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1258 ac_prev=mandir ;;
1259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1260 mandir=$ac_optarg ;;
1261
1262 -nfp | --nfp | --nf)
1263 # Obsolete; use --without-fp.
1264 with_fp=no ;;
1265
1266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1267 | --no-cr | --no-c | -n)
1268 no_create=yes ;;
1269
1270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1272 no_recursion=yes ;;
1273
1274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1276 | --oldin | --oldi | --old | --ol | --o)
1277 ac_prev=oldincludedir ;;
1278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1281 oldincludedir=$ac_optarg ;;
1282
1283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1284 ac_prev=prefix ;;
1285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1286 prefix=$ac_optarg ;;
1287
1288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1289 | --program-pre | --program-pr | --program-p)
1290 ac_prev=program_prefix ;;
1291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1293 program_prefix=$ac_optarg ;;
1294
1295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1296 | --program-suf | --program-su | --program-s)
1297 ac_prev=program_suffix ;;
1298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1300 program_suffix=$ac_optarg ;;
1301
1302 -program-transform-name | --program-transform-name \
1303 | --program-transform-nam | --program-transform-na \
1304 | --program-transform-n | --program-transform- \
1305 | --program-transform | --program-transfor \
1306 | --program-transfo | --program-transf \
1307 | --program-trans | --program-tran \
1308 | --progr-tra | --program-tr | --program-t)
1309 ac_prev=program_transform_name ;;
1310 -program-transform-name=* | --program-transform-name=* \
1311 | --program-transform-nam=* | --program-transform-na=* \
1312 | --program-transform-n=* | --program-transform-=* \
1313 | --program-transform=* | --program-transfor=* \
1314 | --program-transfo=* | --program-transf=* \
1315 | --program-trans=* | --program-tran=* \
1316 | --progr-tra=* | --program-tr=* | --program-t=*)
1317 program_transform_name=$ac_optarg ;;
1318
1319 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1320 ac_prev=pdfdir ;;
1321 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1322 pdfdir=$ac_optarg ;;
1323
1324 -psdir | --psdir | --psdi | --psd | --ps)
1325 ac_prev=psdir ;;
1326 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1327 psdir=$ac_optarg ;;
1328
1329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330 | -silent | --silent | --silen | --sile | --sil)
1331 silent=yes ;;
1332
1333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334 ac_prev=sbindir ;;
1335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336 | --sbi=* | --sb=*)
1337 sbindir=$ac_optarg ;;
1338
1339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341 | --sharedst | --shareds | --shared | --share | --shar \
1342 | --sha | --sh)
1343 ac_prev=sharedstatedir ;;
1344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347 | --sha=* | --sh=*)
1348 sharedstatedir=$ac_optarg ;;
1349
1350 -site | --site | --sit)
1351 ac_prev=site ;;
1352 -site=* | --site=* | --sit=*)
1353 site=$ac_optarg ;;
1354
1355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356 ac_prev=srcdir ;;
1357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358 srcdir=$ac_optarg ;;
1359
1360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361 | --syscon | --sysco | --sysc | --sys | --sy)
1362 ac_prev=sysconfdir ;;
1363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365 sysconfdir=$ac_optarg ;;
1366
1367 -target | --target | --targe | --targ | --tar | --ta | --t)
1368 ac_prev=target_alias ;;
1369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370 target_alias=$ac_optarg ;;
1371
1372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373 verbose=yes ;;
1374
1375 -version | --version | --versio | --versi | --vers | -V)
1376 ac_init_version=: ;;
1377
1378 -with-* | --with-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1386 *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=\$ac_optarg ;;
1393
1394 -without-* | --without-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1402 *"
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=no ;;
1409
1410 --x)
1411 # Obsolete; use --with-x.
1412 with_x=yes ;;
1413
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1420
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1427
1428 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1430 ;;
1431
1432 *=*)
1433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1434 # Reject names that are not valid shell variable names.
1435 case $ac_envvar in #(
1436 '' | [0-9]* | *[!_$as_cr_alnum]* )
1437 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1438 esac
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1441
1442 *)
1443 # FIXME: should be removed in autoconf 3.0.
1444 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1448 ;;
1449
1450 esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 as_fn_error $? "missing argument to $ac_option"
1456 fi
1457
1458 if test -n "$ac_unrecognized_opts"; then
1459 case $enable_option_checking in
1460 no) ;;
1461 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1462 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1463 esac
1464 fi
1465
1466 # Check all directory arguments for consistency.
1467 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468 datadir sysconfdir sharedstatedir localstatedir includedir \
1469 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470 libdir localedir mandir
1471 do
1472 eval ac_val=\$$ac_var
1473 # Remove trailing slashes.
1474 case $ac_val in
1475 */ )
1476 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477 eval $ac_var=\$ac_val;;
1478 esac
1479 # Be sure to have absolute directory names.
1480 case $ac_val in
1481 [\\/$]* | ?:[\\/]* ) continue;;
1482 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1483 esac
1484 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1485 done
1486
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1490 build=$build_alias
1491 host=$host_alias
1492 target=$target_alias
1493
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x; then
1496 if test "x$build_alias" = x; then
1497 cross_compiling=maybe
1498 elif test "x$build_alias" != "x$host_alias"; then
1499 cross_compiling=yes
1500 fi
1501 fi
1502
1503 ac_tool_prefix=
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506 test "$silent" = yes && exec 6>/dev/null
1507
1508
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $? "pwd does not report name of working directory"
1515
1516
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 s//\1/
1529 q
1530 }
1531 /^X\(\/\/\)[^/].*/{
1532 s//\1/
1533 q
1534 }
1535 /^X\(\/\/\)$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\).*/{
1540 s//\1/
1541 q
1542 }
1543 s/.*/./; q'`
1544 srcdir=$ac_confdir
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 srcdir=..
1547 fi
1548 else
1549 ac_srcdir_defaulted=no
1550 fi
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 fi
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 ac_abs_confdir=`(
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558 pwd)`
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 srcdir=.
1562 fi
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1566 case $srcdir in
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 esac
1569 for ac_var in $ac_precious_vars; do
1570 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_${ac_var}_value=\$${ac_var}
1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 done
1575
1576 #
1577 # Report the --help message.
1578 #
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1582 cat <<_ACEOF
1583 \`configure' configures this package to adapt to many kinds of systems.
1584
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1589
1590 Defaults for the options are specified in brackets.
1591
1592 Configuration:
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 [PREFIX]
1608
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1613
1614 For better control, use the options below.
1615
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --libdir=DIR object code libraries [EPREFIX/lib]
1624 --includedir=DIR C header files [PREFIX/include]
1625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1628 --infodir=DIR info documentation [DATAROOTDIR/info]
1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1630 --mandir=DIR man documentation [DATAROOTDIR/man]
1631 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1632 --htmldir=DIR html documentation [DOCDIR]
1633 --dvidir=DIR dvi documentation [DOCDIR]
1634 --pdfdir=DIR pdf documentation [DOCDIR]
1635 --psdir=DIR ps documentation [DOCDIR]
1636 _ACEOF
1637
1638 cat <<\_ACEOF
1639
1640 Program names:
1641 --program-prefix=PREFIX prepend PREFIX to installed program names
1642 --program-suffix=SUFFIX append SUFFIX to installed program names
1643 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644
1645 System types:
1646 --build=BUILD configure for building on BUILD [guessed]
1647 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1648 --target=TARGET configure for building compilers for TARGET [HOST]
1649 _ACEOF
1650 fi
1651
1652 if test -n "$ac_init_help"; then
1653
1654 cat <<\_ACEOF
1655
1656 Optional Features:
1657 --disable-option-checking ignore unrecognized --enable/--with options
1658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1660 --enable-generated-files-in-srcdir
1661 put copies of generated files in source dir intended
1662 for creating source tarballs for users without
1663 texinfo bison or flex
1664 --disable-largefile omit support for large files
1665 --disable-build-format-warnings
1666 don't use -Wformat while building GCC
1667 --enable-werror-always enable -Werror despite compiler version
1668 --enable-checking[=LIST]
1669 enable expensive run-time checks. With LIST, enable
1670 only specific categories of checks. Categories are:
1671 yes,no,all,none,release. Flags are:
1672 assert,df,extra,fold,gc,gcac,gimple,misc,
1673 rtlflag,rtl,runtime,tree,valgrind,types
1674 --enable-coverage[=LEVEL]
1675 enable compiler's code coverage collection. Use to
1676 measure compiler performance and locate unused parts
1677 of the compiler. With LEVEL, specify optimization.
1678 Values are opt, noopt, default is noopt
1679 --enable-gather-detailed-mem-stats
1680 enable detailed memory allocation stats gathering
1681 --enable-valgrind-annotations
1682 enable valgrind runtime interaction
1683 --enable-multilib enable library support for multiple ABIs
1684 --enable-multiarch enable support for multiarch paths
1685 --enable-__cxa_atexit enable __cxa_atexit for C++
1686 --enable-decimal-float={no,yes,bid,dpd}
1687 enable decimal float extension to C. Selecting 'bid'
1688 or 'dpd' choses which decimal floating point format
1689 to use
1690 --enable-fixed-point enable fixed-point arithmetic extension to C
1691 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1692 package
1693 --enable-tls enable or disable generation of tls code overriding
1694 the assembler check for tls support
1695 --enable-vtable-verify enable vtable verification feature
1696 --disable-analyzer disable -fanalyzer static analyzer
1697 --enable-objc-gc enable the use of Boehm's garbage collector with the
1698 GNU Objective-C runtime
1699 --disable-shared don't provide a shared libgcc
1700 --disable-gcov don't provide libgcov and related host tools
1701 --enable-languages=LIST specify which front-ends to build
1702 --disable-rpath do not hardcode runtime library paths
1703 --enable-sjlj-exceptions
1704 arrange to use setjmp/longjmp exception handling
1705 --enable-secureplt enable -msecure-plt by default for PowerPC
1706 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1707 Default to platform configuration
1708 --enable-large-address-aware
1709 Link mingw executables with --large-address-aware
1710 --enable-leading-mingw64-underscores
1711 enable leading underscores on 64 bit mingw targets
1712 --enable-cld enable -mcld by default for 32bit x86
1713 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1714 --disable-win32-registry
1715 disable lookup of installation paths in the Registry
1716 on Windows hosts
1717 --enable-win32-registry enable registry lookup (default)
1718 --enable-win32-registry=KEY
1719 use KEY instead of GCC version as the last portion
1720 of the registry key
1721 --enable-shared[=PKGS] build shared libraries [default=yes]
1722 --enable-static[=PKGS] build static libraries [default=yes]
1723 --enable-fast-install[=PKGS]
1724 optimize for fast installation [default=yes]
1725 --disable-libtool-lock avoid locking (might break parallel builds)
1726 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1727 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1728 --enable-gnu-indirect-function
1729 enable the use of the @gnu_indirect_function to
1730 glibc systems
1731 --enable-initfini-array use .init_array/.fini_array sections
1732 --enable-comdat enable COMDAT group support
1733 --enable-newlib-nano-formatted-io
1734 Use nano version formatted IO
1735
1736 --enable-standard-branch-protection
1737 enable Branch Target Identification Mechanism and
1738 Return Address Signing by default for AArch64
1739 --disable-standard-branch-protection
1740 disable Branch Target Identification Mechanism and
1741 Return Address Signing by default for AArch64
1742
1743
1744 --enable-fix-cortex-a53-835769
1745 enable workaround for AArch64 Cortex-A53 erratum
1746 835769 by default
1747 --disable-fix-cortex-a53-835769
1748 disable workaround for AArch64 Cortex-A53 erratum
1749 835769 by default
1750
1751
1752 --enable-fix-cortex-a53-843419
1753 enable workaround for AArch64 Cortex-A53 erratum
1754 843419 by default
1755 --disable-fix-cortex-a53-843419
1756 disable workaround for AArch64 Cortex-A53 erratum
1757 843419 by default
1758
1759 --enable-gnu-unique-object
1760 enable the use of the @gnu_unique_object ELF
1761 extension on glibc systems
1762 --enable-linker-build-id
1763 compiler will always pass --build-id to linker
1764 --enable-libssp enable linking against libssp
1765 --enable-default-ssp enable Stack Smashing Protection as default
1766 --enable-maintainer-mode
1767 enable make rules and dependencies not useful (and
1768 sometimes confusing) to the casual installer
1769 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1770 thrashing on the build machine
1771 --enable-version-specific-runtime-libs
1772 specify that runtime libraries should be installed
1773 in a compiler-specific directory
1774 --enable-plugin enable plugin support
1775 --enable-host-shared build host code as shared libraries
1776 --disable-libquadmath-support
1777 disable libquadmath support for Fortran
1778 --enable-default-pie enable Position Independent Executable as default
1779 --enable-cet enable Intel CET in host libraries [default=auto]
1780
1781 Optional Packages:
1782 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1783 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1784 --with-build-libsubdir=DIR Directory where to find libraries for build system
1785 --with-local-prefix=DIR specifies directory to put local include
1786 --with-native-system-header-dir=dir
1787 use dir as the directory to look for standard
1788 system header files in. Defaults to /usr/include.
1789 --with-build-sysroot=sysroot
1790 use sysroot as the system root during the build
1791 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1792 --with-gxx-include-dir=DIR
1793 specifies directory to put g++ header files
1794 --with-cpp-install-dir=DIR
1795 install the user visible C preprocessor in DIR
1796 (relative to PREFIX) as well as PREFIX/bin
1797 --with-gnu-ld arrange to work with GNU ld
1798 --with-ld arrange to use the specified ld (full pathname)
1799 --with-demangler-in-ld try to use demangler in GNU ld
1800 --with-gnu-as arrange to work with GNU as
1801 --with-as arrange to use the specified as (full pathname)
1802 --with-stabs arrange to use stabs instead of host debug format
1803 --with-stack-clash-protection-guard-size=size
1804 Set the default stack clash protection guard size
1805 for specific targets as a power of two in bytes.
1806 --with-dwarf2 force the default debug format to be DWARF 2
1807 --with-specs=SPECS add SPECS to driver command-line processing
1808 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1809 --with-bugurl=URL Direct users to URL to report a bug
1810 --with-documentation-root-url=URL
1811 Root for documentation URLs
1812 --with-changes-root-url=URL
1813 Root for GCC changes URLs
1814 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1815 --with-multilib-generator
1816 Multi-libs configuration string (RISC-V only)
1817 --with-zstd=PATH specify prefix directory for installed zstd library.
1818 Equivalent to --with-zstd-include=PATH/include plus
1819 --with-zstd-lib=PATH/lib
1820 --with-zstd-include=PATH
1821 specify directory for installed zstd include files
1822 --with-zstd-lib=PATH specify directory for the installed zstd library
1823 --with-gnu-ld assume the C compiler uses GNU ld default=no
1824 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1825 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1826 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1827 --with-gcc-major-version-only
1828 use only GCC major number in filesystem paths
1829 --with-pic try to use only PIC/non-PIC objects [default=use
1830 both]
1831 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1832 --with-plugin-ld=[ARG] specify the plugin linker
1833 --with-glibc-version=M.N
1834 assume GCC used with glibc version M.N or later
1835 --with-long-double-128 use 128-bit long double by default
1836 --with-long-double-format={ieee,ibm}
1837 Specify whether PowerPC long double uses IEEE or IBM format
1838
1839 --with-gc={page,zone} this option is not supported anymore. It used to
1840 choose the garbage collection mechanism to use with
1841 the compiler
1842 --with-system-zlib use installed libz
1843 --with-linker-hash-style={sysv,gnu,both}
1844 specify the linker hash style
1845 --with-diagnostics-color={never,auto,auto-if-env,always}
1846 specify the default of -fdiagnostics-color option
1847 auto-if-env stands for -fdiagnostics-color=auto if
1848 GCC_COLOR environment variable is present and
1849 -fdiagnostics-color=never otherwise
1850 --with-diagnostics-urls={never,auto,auto-if-env,always}
1851 specify the default of -fdiagnostics-urls option
1852 auto-if-env stands for -fdiagnostics-urls=auto if
1853 GCC_URLS or TERM_URLS environment variable is
1854 present and -fdiagnostics-urls=never otherwise
1855
1856 Some influential environment variables:
1857 CC C compiler command
1858 CFLAGS C compiler flags
1859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1860 nonstandard directory <lib dir>
1861 LIBS libraries to pass to the linker, e.g. -l<library>
1862 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863 you have headers in a nonstandard directory <include dir>
1864 CXX C++ compiler command
1865 CXXFLAGS C++ compiler flags
1866 CXXCPP C++ preprocessor
1867 CPP C preprocessor
1868 GMPLIBS How to link GMP
1869 GMPINC How to find GMP include files
1870 ISLLIBS How to link isl
1871 ISLINC How to find isl include files
1872
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1875
1876 Report bugs to the package provider.
1877 _ACEOF
1878 ac_status=$?
1879 fi
1880
1881 if test "$ac_init_help" = "recursive"; then
1882 # If there are subdirs, report their specific --help.
1883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884 test -d "$ac_dir" ||
1885 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1886 continue
1887 ac_builddir=.
1888
1889 case "$ac_dir" in
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 *)
1892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893 # A ".." for each directory in $ac_dir_suffix.
1894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895 case $ac_top_builddir_sub in
1896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1898 esac ;;
1899 esac
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1904
1905 case $srcdir in
1906 .) # We are building in place.
1907 ac_srcdir=.
1908 ac_top_srcdir=$ac_top_builddir_sub
1909 ac_abs_top_srcdir=$ac_pwd ;;
1910 [\\/]* | ?:[\\/]* ) # Absolute name.
1911 ac_srcdir=$srcdir$ac_dir_suffix;
1912 ac_top_srcdir=$srcdir
1913 ac_abs_top_srcdir=$srcdir ;;
1914 *) # Relative name.
1915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916 ac_top_srcdir=$ac_top_build_prefix$srcdir
1917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1918 esac
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1920
1921 cd "$ac_dir" || { ac_status=$?; continue; }
1922 # Check for guested configure.
1923 if test -f "$ac_srcdir/configure.gnu"; then
1924 echo &&
1925 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926 elif test -f "$ac_srcdir/configure"; then
1927 echo &&
1928 $SHELL "$ac_srcdir/configure" --help=recursive
1929 else
1930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1931 fi || ac_status=$?
1932 cd "$ac_pwd" || { ac_status=$?; break; }
1933 done
1934 fi
1935
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1938 cat <<\_ACEOF
1939 configure
1940 generated by GNU Autoconf 2.69
1941
1942 Copyright (C) 2012 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1945 _ACEOF
1946 exit
1947 fi
1948
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1952
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.$ac_objext; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985 fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_compile
1990
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2026
2027 } # ac_fn_cxx_try_compile
2028
2029 # ac_fn_cxx_try_cpp LINENO
2030 # ------------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_cpp ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_cpp conftest.$ac_ext"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2043 ac_status=$?
2044 if test -s conftest.err; then
2045 grep -v '^ *+' conftest.err >conftest.er1
2046 cat conftest.er1 >&5
2047 mv -f conftest.er1 conftest.err
2048 fi
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } > conftest.i && {
2051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2052 test ! -s conftest.err
2053 }; then :
2054 ac_retval=0
2055 else
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 ac_retval=1
2060 fi
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2063
2064 } # ac_fn_cxx_try_cpp
2065
2066 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2067 # ---------------------------------------------------------
2068 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069 # the include files in INCLUDES and setting the cache variable VAR
2070 # accordingly.
2071 ac_fn_cxx_check_header_mongrel ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if eval \${$3+:} false; then :
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval \${$3+:} false; then :
2078 $as_echo_n "(cached) " >&6
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 else
2084 # Is the header compilable?
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086 $as_echo_n "checking $2 usability... " >&6; }
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_cxx_try_compile "$LINENO"; then :
2093 ac_header_compiler=yes
2094 else
2095 ac_header_compiler=no
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099 $as_echo "$ac_header_compiler" >&6; }
2100
2101 # Is the header present?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103 $as_echo_n "checking $2 presence... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_cxx_try_cpp "$LINENO"; then :
2109 ac_header_preproc=yes
2110 else
2111 ac_header_preproc=no
2112 fi
2113 rm -f conftest.err conftest.i conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115 $as_echo "$ac_header_preproc" >&6; }
2116
2117 # So? What about this header?
2118 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2119 yes:no: )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ;;
2125 no:yes:* )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 ;;
2137 esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 eval "$3=\$ac_header_compiler"
2144 fi
2145 eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 fi
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151 } # ac_fn_cxx_check_header_mongrel
2152
2153 # ac_fn_cxx_try_run LINENO
2154 # ------------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_cxx_try_run ()
2158 {
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161 case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182 else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188 fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
2192
2193 } # ac_fn_cxx_try_run
2194
2195 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2196 # ---------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_cxx_check_header_compile ()
2200 {
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214 else
2215 eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224 } # ac_fn_cxx_check_header_compile
2225
2226 # ac_fn_c_try_cpp LINENO
2227 # ----------------------
2228 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_c_try_cpp ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_cpp conftest.$ac_ext"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2240 ac_status=$?
2241 if test -s conftest.err; then
2242 grep -v '^ *+' conftest.err >conftest.er1
2243 cat conftest.er1 >&5
2244 mv -f conftest.er1 conftest.err
2245 fi
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; } > conftest.i && {
2248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2249 test ! -s conftest.err
2250 }; then :
2251 ac_retval=0
2252 else
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_retval=1
2257 fi
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2260
2261 } # ac_fn_c_try_cpp
2262
2263 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2264 # ----------------------------------------------
2265 # Tries to find the compile-time value of EXPR in a program that includes
2266 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2267 # computed
2268 ac_fn_cxx_compute_int ()
2269 {
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 if test "$cross_compiling" = yes; then
2272 # Depending upon the size, compute the lo and hi bounds.
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $4
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(($2) >= 0)];
2280 test_array [0] = 0;
2281 return test_array [0];
2282
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_cxx_try_compile "$LINENO"; then :
2288 ac_lo=0 ac_mid=0
2289 while :; do
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $4
2293 int
2294 main ()
2295 {
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297 test_array [0] = 0;
2298 return test_array [0];
2299
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_cxx_try_compile "$LINENO"; then :
2305 ac_hi=$ac_mid; break
2306 else
2307 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2308 if test $ac_lo -le $ac_mid; then
2309 ac_lo= ac_hi=
2310 break
2311 fi
2312 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 done
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 int
2321 main ()
2322 {
2323 static int test_array [1 - 2 * !(($2) < 0)];
2324 test_array [0] = 0;
2325 return test_array [0];
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_cxx_try_compile "$LINENO"; then :
2332 ac_hi=-1 ac_mid=-1
2333 while :; do
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2336 $4
2337 int
2338 main ()
2339 {
2340 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2341 test_array [0] = 0;
2342 return test_array [0];
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_cxx_try_compile "$LINENO"; then :
2349 ac_lo=$ac_mid; break
2350 else
2351 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2352 if test $ac_mid -le $ac_hi; then
2353 ac_lo= ac_hi=
2354 break
2355 fi
2356 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 done
2360 else
2361 ac_lo= ac_hi=
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 # Binary search between lo and hi bounds.
2367 while test "x$ac_lo" != "x$ac_hi"; do
2368 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_hi=$ac_mid
2385 else
2386 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 done
2390 case $ac_lo in #((
2391 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2392 '') ac_retval=1 ;;
2393 esac
2394 else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 static long int longval () { return $2; }
2399 static unsigned long int ulongval () { return $2; }
2400 #include <stdio.h>
2401 #include <stdlib.h>
2402 int
2403 main ()
2404 {
2405
2406 FILE *f = fopen ("conftest.val", "w");
2407 if (! f)
2408 return 1;
2409 if (($2) < 0)
2410 {
2411 long int i = longval ();
2412 if (i != ($2))
2413 return 1;
2414 fprintf (f, "%ld", i);
2415 }
2416 else
2417 {
2418 unsigned long int i = ulongval ();
2419 if (i != ($2))
2420 return 1;
2421 fprintf (f, "%lu", i);
2422 }
2423 /* Do not output a trailing newline, as this causes \r\n confusion
2424 on some platforms. */
2425 return ferror (f) || fclose (f) != 0;
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_cxx_try_run "$LINENO"; then :
2432 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2433 else
2434 ac_retval=1
2435 fi
2436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2437 conftest.$ac_objext conftest.beam conftest.$ac_ext
2438 rm -f conftest.val
2439
2440 fi
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 as_fn_set_status $ac_retval
2443
2444 } # ac_fn_cxx_compute_int
2445
2446 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2447 # ---------------------------------------------
2448 # Tests whether TYPE exists after having included INCLUDES, setting cache
2449 # variable VAR accordingly.
2450 ac_fn_cxx_check_type ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 eval "$3=no"
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 $4
2462 int
2463 main ()
2464 {
2465 if (sizeof ($2))
2466 return 0;
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_cxx_try_compile "$LINENO"; then :
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 int
2476 main ()
2477 {
2478 if (sizeof (($2)))
2479 return 0;
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_cxx_try_compile "$LINENO"; then :
2485
2486 else
2487 eval "$3=yes"
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 fi
2493 eval ac_res=\$$3
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497
2498 } # ac_fn_cxx_check_type
2499
2500 # ac_fn_c_find_intX_t LINENO BITS VAR
2501 # -----------------------------------
2502 # Finds a signed integer type with width BITS, setting cache variable VAR
2503 # accordingly.
2504 ac_fn_c_find_intX_t ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2508 $as_echo_n "checking for int$2_t... " >&6; }
2509 if eval \${$3+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 eval "$3=no"
2513 # Order is important - never check a type that is potentially smaller
2514 # than half of the expected target width.
2515 for ac_type in int$2_t 'int' 'long int' \
2516 'long long int' 'short int' 'signed char'; do
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $ac_includes_default
2520 enum { N = $2 / 2 - 1 };
2521 int
2522 main ()
2523 {
2524 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2525 test_array [0] = 0;
2526 return test_array [0];
2527
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2537 int
2538 main ()
2539 {
2540 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2541 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2542 test_array [0] = 0;
2543 return test_array [0];
2544
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 if ac_fn_cxx_try_compile "$LINENO"; then :
2550
2551 else
2552 case $ac_type in #(
2553 int$2_t) :
2554 eval "$3=yes" ;; #(
2555 *) :
2556 eval "$3=\$ac_type" ;;
2557 esac
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 if eval test \"x\$"$3"\" = x"no"; then :
2563
2564 else
2565 break
2566 fi
2567 done
2568 fi
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573
2574 } # ac_fn_c_find_intX_t
2575
2576 # ac_fn_cxx_try_link LINENO
2577 # -------------------------
2578 # Try to link conftest.$ac_ext, and return whether this succeeded.
2579 ac_fn_cxx_try_link ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589 $as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2591 ac_status=$?
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_cxx_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
2603 test -x conftest$ac_exeext
2604 }; then :
2605 ac_retval=0
2606 else
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_retval=1
2611 fi
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 as_fn_set_status $ac_retval
2619
2620 } # ac_fn_cxx_try_link
2621
2622 # ac_fn_c_find_uintX_t LINENO BITS VAR
2623 # ------------------------------------
2624 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2625 # accordingly.
2626 ac_fn_c_find_uintX_t ()
2627 {
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2630 $as_echo_n "checking for uint$2_t... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 eval "$3=no"
2635 # Order is important - never check a type that is potentially smaller
2636 # than half of the expected target width.
2637 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2638 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $ac_includes_default
2642 int
2643 main ()
2644 {
2645 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2646 test_array [0] = 0;
2647 return test_array [0];
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_cxx_try_compile "$LINENO"; then :
2654 case $ac_type in #(
2655 uint$2_t) :
2656 eval "$3=yes" ;; #(
2657 *) :
2658 eval "$3=\$ac_type" ;;
2659 esac
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 if eval test \"x\$"$3"\" = x"no"; then :
2663
2664 else
2665 break
2666 fi
2667 done
2668 fi
2669 eval ac_res=\$$3
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671 $as_echo "$ac_res" >&6; }
2672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2673
2674 } # ac_fn_c_find_uintX_t
2675
2676 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2677 # ------------------------------------------------
2678 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2679 ac_fn_cxx_check_header_preproc ()
2680 {
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \${$3+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 #include <$2>
2690 _ACEOF
2691 if ac_fn_cxx_try_cpp "$LINENO"; then :
2692 eval "$3=yes"
2693 else
2694 eval "$3=no"
2695 fi
2696 rm -f conftest.err conftest.i conftest.$ac_ext
2697 fi
2698 eval ac_res=\$$3
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700 $as_echo "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702
2703 } # ac_fn_cxx_check_header_preproc
2704
2705 # ac_fn_cxx_check_func LINENO FUNC VAR
2706 # ------------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_cxx_check_func ()
2709 {
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2720 #define $2 innocuous_$2
2721
2722 /* System header to define __stub macros and hopefully few prototypes,
2723 which can conflict with char $2 (); below.
2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 <limits.h> exists even on freestanding compilers. */
2726
2727 #ifdef __STDC__
2728 # include <limits.h>
2729 #else
2730 # include <assert.h>
2731 #endif
2732
2733 #undef $2
2734
2735 /* Override any GCC internal prototype to avoid an error.
2736 Use char because int might match the return type of a GCC
2737 builtin and then its argument prototype would still apply. */
2738 #ifdef __cplusplus
2739 extern "C"
2740 #endif
2741 char $2 ();
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined __stub_$2 || defined __stub___$2
2746 choke me
2747 #endif
2748
2749 int
2750 main ()
2751 {
2752 return $2 ();
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_cxx_try_link "$LINENO"; then :
2758 eval "$3=yes"
2759 else
2760 eval "$3=no"
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext \
2763 conftest$ac_exeext conftest.$ac_ext
2764 fi
2765 eval ac_res=\$$3
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2769
2770 } # ac_fn_cxx_check_func
2771
2772 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2773 # -----------------------------------------------
2774 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2775 # accordingly.
2776 ac_fn_cxx_check_decl ()
2777 {
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 as_decl_name=`echo $2|sed 's/ *(.*//'`
2780 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2782 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2783 if eval \${$3+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 $4
2789 int
2790 main ()
2791 {
2792 #ifndef $as_decl_name
2793 #ifdef __cplusplus
2794 (void) $as_decl_use;
2795 #else
2796 (void) $as_decl_name;
2797 #endif
2798 #endif
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_cxx_try_compile "$LINENO"; then :
2805 eval "$3=yes"
2806 else
2807 eval "$3=no"
2808 fi
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 fi
2811 eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2815
2816 } # ac_fn_cxx_check_decl
2817
2818 # ac_fn_c_try_link LINENO
2819 # -----------------------
2820 # Try to link conftest.$ac_ext, and return whether this succeeded.
2821 ac_fn_c_try_link ()
2822 {
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 rm -f conftest.$ac_objext conftest$ac_exeext
2825 if { { ac_try="$ac_link"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link") 2>conftest.err
2833 ac_status=$?
2834 if test -s conftest.err; then
2835 grep -v '^ *+' conftest.err >conftest.er1
2836 cat conftest.er1 >&5
2837 mv -f conftest.er1 conftest.err
2838 fi
2839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840 test $ac_status = 0; } && {
2841 test -z "$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest$ac_exeext && {
2844 test "$cross_compiling" = yes ||
2845 test -x conftest$ac_exeext
2846 }; then :
2847 ac_retval=0
2848 else
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 ac_retval=1
2853 fi
2854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2856 # interfere with the next link command; also delete a directory that is
2857 # left behind by Apple's compiler. We do this before executing the actions.
2858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2860 as_fn_set_status $ac_retval
2861
2862 } # ac_fn_c_try_link
2863
2864 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2865 # ----------------------------------------------
2866 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2867 ac_fn_c_check_header_preproc ()
2868 {
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if eval \${$3+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 #include <$2>
2878 _ACEOF
2879 if ac_fn_c_try_cpp "$LINENO"; then :
2880 eval "$3=yes"
2881 else
2882 eval "$3=no"
2883 fi
2884 rm -f conftest.err conftest.i conftest.$ac_ext
2885 fi
2886 eval ac_res=\$$3
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890
2891 } # ac_fn_c_check_header_preproc
2892
2893 # ac_fn_c_check_func LINENO FUNC VAR
2894 # ----------------------------------
2895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2896 ac_fn_c_check_func ()
2897 {
2898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 $as_echo_n "checking for $2... " >&6; }
2901 if eval \${$3+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2908 #define $2 innocuous_$2
2909
2910 /* System header to define __stub macros and hopefully few prototypes,
2911 which can conflict with char $2 (); below.
2912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913 <limits.h> exists even on freestanding compilers. */
2914
2915 #ifdef __STDC__
2916 # include <limits.h>
2917 #else
2918 # include <assert.h>
2919 #endif
2920
2921 #undef $2
2922
2923 /* Override any GCC internal prototype to avoid an error.
2924 Use char because int might match the return type of a GCC
2925 builtin and then its argument prototype would still apply. */
2926 #ifdef __cplusplus
2927 extern "C"
2928 #endif
2929 char $2 ();
2930 /* The GNU C library defines this for functions which it implements
2931 to always fail with ENOSYS. Some functions are actually named
2932 something starting with __ and the normal name is an alias. */
2933 #if defined __stub_$2 || defined __stub___$2
2934 choke me
2935 #endif
2936
2937 int
2938 main ()
2939 {
2940 return $2 ();
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_link "$LINENO"; then :
2946 eval "$3=yes"
2947 else
2948 eval "$3=no"
2949 fi
2950 rm -f core conftest.err conftest.$ac_objext \
2951 conftest$ac_exeext conftest.$ac_ext
2952 fi
2953 eval ac_res=\$$3
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955 $as_echo "$ac_res" >&6; }
2956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2957
2958 } # ac_fn_c_check_func
2959 cat >config.log <<_ACEOF
2960 This file contains any messages produced by compilers while
2961 running configure, to aid debugging if configure makes a mistake.
2962
2963 It was created by $as_me, which was
2964 generated by GNU Autoconf 2.69. Invocation command line was
2965
2966 $ $0 $@
2967
2968 _ACEOF
2969 exec 5>>config.log
2970 {
2971 cat <<_ASUNAME
2972 ## --------- ##
2973 ## Platform. ##
2974 ## --------- ##
2975
2976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2981
2982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2984
2985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2992
2993 _ASUNAME
2994
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 $as_echo "PATH: $as_dir"
3001 done
3002 IFS=$as_save_IFS
3003
3004 } >&5
3005
3006 cat >&5 <<_ACEOF
3007
3008
3009 ## ----------- ##
3010 ## Core tests. ##
3011 ## ----------- ##
3012
3013 _ACEOF
3014
3015
3016 # Keep a trace of the command line.
3017 # Strip out --no-create and --no-recursion so they do not pile up.
3018 # Strip out --silent because we don't want to record it for future runs.
3019 # Also quote any args containing shell meta-characters.
3020 # Make two passes to allow for proper duplicate-argument suppression.
3021 ac_configure_args=
3022 ac_configure_args0=
3023 ac_configure_args1=
3024 ac_must_keep_next=false
3025 for ac_pass in 1 2
3026 do
3027 for ac_arg
3028 do
3029 case $ac_arg in
3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3032 | -silent | --silent | --silen | --sile | --sil)
3033 continue ;;
3034 *\'*)
3035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3036 esac
3037 case $ac_pass in
3038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3039 2)
3040 as_fn_append ac_configure_args1 " '$ac_arg'"
3041 if test $ac_must_keep_next = true; then
3042 ac_must_keep_next=false # Got value, back to normal.
3043 else
3044 case $ac_arg in
3045 *=* | --config-cache | -C | -disable-* | --disable-* \
3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3048 | -with-* | --with-* | -without-* | --without-* | --x)
3049 case "$ac_configure_args0 " in
3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3051 esac
3052 ;;
3053 -* ) ac_must_keep_next=true ;;
3054 esac
3055 fi
3056 as_fn_append ac_configure_args " '$ac_arg'"
3057 ;;
3058 esac
3059 done
3060 done
3061 { ac_configure_args0=; unset ac_configure_args0;}
3062 { ac_configure_args1=; unset ac_configure_args1;}
3063
3064 # When interrupted or exit'd, cleanup temporary files, and complete
3065 # config.log. We remove comments because anyway the quotes in there
3066 # would cause problems or look ugly.
3067 # WARNING: Use '\'' to represent an apostrophe within the trap.
3068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3069 trap 'exit_status=$?
3070 # Save into config.log some information that might help in debugging.
3071 {
3072 echo
3073
3074 $as_echo "## ---------------- ##
3075 ## Cache variables. ##
3076 ## ---------------- ##"
3077 echo
3078 # The following way of writing the cache mishandles newlines in values,
3079 (
3080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in #(
3083 *${as_nl}*)
3084 case $ac_var in #(
3085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3087 esac
3088 case $ac_var in #(
3089 _ | IFS | as_nl) ;; #(
3090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3091 *) { eval $ac_var=; unset $ac_var;} ;;
3092 esac ;;
3093 esac
3094 done
3095 (set) 2>&1 |
3096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3097 *${as_nl}ac_space=\ *)
3098 sed -n \
3099 "s/'\''/'\''\\\\'\'''\''/g;
3100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3101 ;; #(
3102 *)
3103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3104 ;;
3105 esac |
3106 sort
3107 )
3108 echo
3109
3110 $as_echo "## ----------------- ##
3111 ## Output variables. ##
3112 ## ----------------- ##"
3113 echo
3114 for ac_var in $ac_subst_vars
3115 do
3116 eval ac_val=\$$ac_var
3117 case $ac_val in
3118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3119 esac
3120 $as_echo "$ac_var='\''$ac_val'\''"
3121 done | sort
3122 echo
3123
3124 if test -n "$ac_subst_files"; then
3125 $as_echo "## ------------------- ##
3126 ## File substitutions. ##
3127 ## ------------------- ##"
3128 echo
3129 for ac_var in $ac_subst_files
3130 do
3131 eval ac_val=\$$ac_var
3132 case $ac_val in
3133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3134 esac
3135 $as_echo "$ac_var='\''$ac_val'\''"
3136 done | sort
3137 echo
3138 fi
3139
3140 if test -s confdefs.h; then
3141 $as_echo "## ----------- ##
3142 ## confdefs.h. ##
3143 ## ----------- ##"
3144 echo
3145 cat confdefs.h
3146 echo
3147 fi
3148 test "$ac_signal" != 0 &&
3149 $as_echo "$as_me: caught signal $ac_signal"
3150 $as_echo "$as_me: exit $exit_status"
3151 } >&5
3152 rm -f core *.core core.conftest.* &&
3153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3154 exit $exit_status
3155 ' 0
3156 for ac_signal in 1 2 13 15; do
3157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3158 done
3159 ac_signal=0
3160
3161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3162 rm -f -r conftest* confdefs.h
3163
3164 $as_echo "/* confdefs.h */" > confdefs.h
3165
3166 # Predefined preprocessor variables.
3167
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_NAME "$PACKAGE_NAME"
3170 _ACEOF
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3174 _ACEOF
3175
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3178 _ACEOF
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE_STRING "$PACKAGE_STRING"
3182 _ACEOF
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3186 _ACEOF
3187
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_URL "$PACKAGE_URL"
3190 _ACEOF
3191
3192
3193 # Let the site file select an alternate cache file if it wants to.
3194 # Prefer an explicitly selected file to automatically selected ones.
3195 ac_site_file1=NONE
3196 ac_site_file2=NONE
3197 if test -n "$CONFIG_SITE"; then
3198 # We do not want a PATH search for config.site.
3199 case $CONFIG_SITE in #((
3200 -*) ac_site_file1=./$CONFIG_SITE;;
3201 */*) ac_site_file1=$CONFIG_SITE;;
3202 *) ac_site_file1=./$CONFIG_SITE;;
3203 esac
3204 elif test "x$prefix" != xNONE; then
3205 ac_site_file1=$prefix/share/config.site
3206 ac_site_file2=$prefix/etc/config.site
3207 else
3208 ac_site_file1=$ac_default_prefix/share/config.site
3209 ac_site_file2=$ac_default_prefix/etc/config.site
3210 fi
3211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3212 do
3213 test "x$ac_site_file" = xNONE && continue
3214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3217 sed 's/^/| /' "$ac_site_file" >&5
3218 . "$ac_site_file" \
3219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "failed to load site script $ac_site_file
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 done
3225
3226 if test -r "$cache_file"; then
3227 # Some versions of bash will fail to source /dev/null (special files
3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3231 $as_echo "$as_me: loading cache $cache_file" >&6;}
3232 case $cache_file in
3233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3234 *) . "./$cache_file";;
3235 esac
3236 fi
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3239 $as_echo "$as_me: creating cache $cache_file" >&6;}
3240 >$cache_file
3241 fi
3242
3243 # Check that the precious variables saved in the cache have kept the same
3244 # value.
3245 ac_cache_corrupted=false
3246 for ac_var in $ac_precious_vars; do
3247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3248 eval ac_new_set=\$ac_env_${ac_var}_set
3249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3250 eval ac_new_val=\$ac_env_${ac_var}_value
3251 case $ac_old_set,$ac_new_set in
3252 set,)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3256 ,set)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3259 ac_cache_corrupted=: ;;
3260 ,);;
3261 *)
3262 if test "x$ac_old_val" != "x$ac_new_val"; then
3263 # differences in whitespace do not lead to failure.
3264 ac_old_val_w=`echo x $ac_old_val`
3265 ac_new_val_w=`echo x $ac_new_val`
3266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3269 ac_cache_corrupted=:
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3273 eval $ac_var=\$ac_old_val
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3279 fi;;
3280 esac
3281 # Pass precious variables to config.status.
3282 if test "$ac_new_set" = set; then
3283 case $ac_new_val in
3284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3285 *) ac_arg=$ac_var=$ac_new_val ;;
3286 esac
3287 case " $ac_configure_args " in
3288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3290 esac
3291 fi
3292 done
3293 if $ac_cache_corrupted; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3299 fi
3300 ## -------------------- ##
3301 ## Main body of script. ##
3302 ## -------------------- ##
3303
3304 ac_ext=c
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
3310
3311
3312
3313
3314
3315 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3316
3317
3318 gcc_version=`cat $srcdir/BASE-VER`
3319
3320 # Determine the host, build, and target systems
3321 ac_aux_dir=
3322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3323 if test -f "$ac_dir/install-sh"; then
3324 ac_aux_dir=$ac_dir
3325 ac_install_sh="$ac_aux_dir/install-sh -c"
3326 break
3327 elif test -f "$ac_dir/install.sh"; then
3328 ac_aux_dir=$ac_dir
3329 ac_install_sh="$ac_aux_dir/install.sh -c"
3330 break
3331 elif test -f "$ac_dir/shtool"; then
3332 ac_aux_dir=$ac_dir
3333 ac_install_sh="$ac_aux_dir/shtool install -c"
3334 break
3335 fi
3336 done
3337 if test -z "$ac_aux_dir"; then
3338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3339 fi
3340
3341 # These three variables are undocumented and unsupported,
3342 # and are intended to be withdrawn in a future Autoconf release.
3343 # They can cause serious problems if a builder's source tree is in a directory
3344 # whose full name contains unusual characters.
3345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3348
3349
3350 # Make sure we can run config.sub.
3351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3355 $as_echo_n "checking build system type... " >&6; }
3356 if ${ac_cv_build+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_build_alias=$build_alias
3360 test "x$ac_build_alias" = x &&
3361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3362 test "x$ac_build_alias" = x &&
3363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3366
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3369 $as_echo "$ac_cv_build" >&6; }
3370 case $ac_cv_build in
3371 *-*-*) ;;
3372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3373 esac
3374 build=$ac_cv_build
3375 ac_save_IFS=$IFS; IFS='-'
3376 set x $ac_cv_build
3377 shift
3378 build_cpu=$1
3379 build_vendor=$2
3380 shift; shift
3381 # Remember, the first character of IFS is used to create $*,
3382 # except with old shells:
3383 build_os=$*
3384 IFS=$ac_save_IFS
3385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3386
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3389 $as_echo_n "checking host system type... " >&6; }
3390 if ${ac_cv_host+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test "x$host_alias" = x; then
3394 ac_cv_host=$ac_cv_build
3395 else
3396 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3398 fi
3399
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3402 $as_echo "$ac_cv_host" >&6; }
3403 case $ac_cv_host in
3404 *-*-*) ;;
3405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3406 esac
3407 host=$ac_cv_host
3408 ac_save_IFS=$IFS; IFS='-'
3409 set x $ac_cv_host
3410 shift
3411 host_cpu=$1
3412 host_vendor=$2
3413 shift; shift
3414 # Remember, the first character of IFS is used to create $*,
3415 # except with old shells:
3416 host_os=$*
3417 IFS=$ac_save_IFS
3418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3419
3420
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3422 $as_echo_n "checking target system type... " >&6; }
3423 if ${ac_cv_target+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test "x$target_alias" = x; then
3427 ac_cv_target=$ac_cv_host
3428 else
3429 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3431 fi
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3435 $as_echo "$ac_cv_target" >&6; }
3436 case $ac_cv_target in
3437 *-*-*) ;;
3438 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3439 esac
3440 target=$ac_cv_target
3441 ac_save_IFS=$IFS; IFS='-'
3442 set x $ac_cv_target
3443 shift
3444 target_cpu=$1
3445 target_vendor=$2
3446 shift; shift
3447 # Remember, the first character of IFS is used to create $*,
3448 # except with old shells:
3449 target_os=$*
3450 IFS=$ac_save_IFS
3451 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3452
3453
3454 # The aliases save the names the user supplied, while $host etc.
3455 # will get canonicalized.
3456 test -n "$target_alias" &&
3457 test "$program_prefix$program_suffix$program_transform_name" = \
3458 NONENONEs,x,x, &&
3459 program_prefix=${target_alias}-
3460
3461 # Determine the noncanonical host name, for Ada.
3462 case ${build_alias} in
3463 "") build_noncanonical=${build} ;;
3464 *) build_noncanonical=${build_alias} ;;
3465 esac
3466
3467 case ${host_alias} in
3468 "") host_noncanonical=${build_noncanonical} ;;
3469 *) host_noncanonical=${host_alias} ;;
3470 esac
3471
3472
3473
3474
3475 # Determine the noncanonical target name, for directory use.
3476 case ${target_alias} in
3477 "") target_noncanonical=${host_noncanonical} ;;
3478 *) target_noncanonical=${target_alias} ;;
3479 esac
3480
3481
3482
3483
3484 # Used for constructing correct paths for offload compilers.
3485 real_target_noncanonical=${target_noncanonical}
3486 accel_dir_suffix=
3487
3488 # Determine the target- and build-specific subdirectories
3489
3490 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3491 # have matching libraries, they should use host libraries: Makefile.tpl
3492 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3493 # However, they still use the build modules, because the corresponding
3494 # host modules (e.g. bison) are only built for the host when bootstrap
3495 # finishes. So:
3496 # - build_subdir is where we find build modules, and never changes.
3497 # - build_libsubdir is where we find build libraries, and can be overridden.
3498
3499 # Prefix 'build-' so this never conflicts with target_subdir.
3500 build_subdir="build-${build_noncanonical}"
3501
3502 # Check whether --with-build-libsubdir was given.
3503 if test "${with_build_libsubdir+set}" = set; then :
3504 withval=$with_build_libsubdir; build_libsubdir="$withval"
3505 else
3506 build_libsubdir="$build_subdir"
3507 fi
3508
3509 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3510 if ( test $srcdir = . && test -d gcc ) \
3511 || test -d $srcdir/../host-${host_noncanonical}; then
3512 host_subdir="host-${host_noncanonical}"
3513 else
3514 host_subdir=.
3515 fi
3516 # No prefix.
3517 target_subdir=${target_noncanonical}
3518
3519
3520 # Set program_transform_name
3521 test "$program_prefix" != NONE &&
3522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3523 # Use a double $ so make ignores it.
3524 test "$program_suffix" != NONE &&
3525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3526 # Double any \ or $.
3527 # By default was `s,x,x', remove it if useless.
3528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3530
3531
3532 # Check for bogus environment variables.
3533 # Test if LIBRARY_PATH contains the notation for the current directory
3534 # since this would lead to problems installing/building glibc.
3535 # LIBRARY_PATH contains the current directory if one of the following
3536 # is true:
3537 # - one of the terminals (":" and ";") is the first or last sign
3538 # - two terminals occur directly after each other
3539 # - the path contains an element with a dot in it
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3541 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3542 case ${LIBRARY_PATH} in
3543 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3544 library_path_setting="contains current directory"
3545 ;;
3546 *)
3547 library_path_setting="ok"
3548 ;;
3549 esac
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3551 $as_echo "$library_path_setting" >&6; }
3552 if test "$library_path_setting" != "ok"; then
3553 as_fn_error $? "
3554 *** LIBRARY_PATH shouldn't contain the current directory when
3555 *** building gcc. Please change the environment variable
3556 *** and run configure again." "$LINENO" 5
3557 fi
3558
3559 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # GCC_EXEC_PREFIX contains the current directory if one of the following
3562 # is true:
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3567 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3568 case ${GCC_EXEC_PREFIX} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 gcc_exec_prefix_setting="contains current directory"
3571 ;;
3572 *)
3573 gcc_exec_prefix_setting="ok"
3574 ;;
3575 esac
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3577 $as_echo "$gcc_exec_prefix_setting" >&6; }
3578 if test "$gcc_exec_prefix_setting" != "ok"; then
3579 as_fn_error $? "
3580 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again." "$LINENO" 5
3583 fi
3584
3585 # -----------
3586 # Directories
3587 # -----------
3588
3589 # Specify the local prefix
3590 local_prefix=
3591
3592 # Check whether --with-local-prefix was given.
3593 if test "${with_local_prefix+set}" = set; then :
3594 withval=$with_local_prefix; case "${withval}" in
3595 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3596 no) ;;
3597 *) local_prefix=$with_local_prefix ;;
3598 esac
3599 fi
3600
3601
3602 # Default local prefix if it is empty
3603 if test x$local_prefix = x; then
3604 local_prefix=/usr/local
3605 fi
3606
3607
3608 # Check whether --with-native-system-header-dir was given.
3609 if test "${with_native_system_header_dir+set}" = set; then :
3610 withval=$with_native_system_header_dir;
3611 case ${with_native_system_header_dir} in
3612 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3613 /* | [A-Za-z]:[\\/]*) ;;
3614 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3615 esac
3616 configured_native_system_header_dir="${withval}"
3617
3618 else
3619 configured_native_system_header_dir=
3620 fi
3621
3622
3623
3624 # Check whether --with-build-sysroot was given.
3625 if test "${with_build_sysroot+set}" = set; then :
3626 withval=$with_build_sysroot; if test x"$withval" != x ; then
3627 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3628 fi
3629 else
3630 SYSROOT_CFLAGS_FOR_TARGET=
3631 fi
3632
3633
3634
3635 if test "x$prefix" = xNONE; then
3636 test_prefix=/usr/local
3637 else
3638 test_prefix=$prefix
3639 fi
3640 if test "x$exec_prefix" = xNONE; then
3641 test_exec_prefix=$test_prefix
3642 else
3643 test_exec_prefix=$exec_prefix
3644 fi
3645
3646
3647 # Check whether --with-sysroot was given.
3648 if test "${with_sysroot+set}" = set; then :
3649 withval=$with_sysroot;
3650 case ${with_sysroot} in
3651 /) ;;
3652 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3653 esac
3654 case ${with_sysroot} in
3655 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3656 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3657 esac
3658
3659 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3660 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3661
3662 case ${TARGET_SYSTEM_ROOT} in
3663 "${test_prefix}"|"${test_prefix}/"*|\
3664 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3665 '${prefix}'|'${prefix}/'*|\
3666 '${exec_prefix}'|'${exec_prefix}/'*)
3667 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3668 TARGET_SYSTEM_ROOT_DEFINE="$t"
3669 ;;
3670 esac
3671
3672 else
3673
3674 TARGET_SYSTEM_ROOT=
3675 TARGET_SYSTEM_ROOT_DEFINE=
3676 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3677
3678 fi
3679
3680
3681
3682
3683
3684 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3685 # passed in by the toplevel make and thus we'd get different behavior
3686 # depending on where we built the sources.
3687 gcc_gxx_include_dir=
3688 # Specify the g++ header file directory
3689
3690 # Check whether --with-gxx-include-dir was given.
3691 if test "${with_gxx_include_dir+set}" = set; then :
3692 withval=$with_gxx_include_dir; case "${withval}" in
3693 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3694 no) ;;
3695 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3696 esac
3697 fi
3698
3699
3700 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3701 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3702 # relative to the sysroot.
3703 gcc_gxx_include_dir_add_sysroot=0
3704
3705 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3706 if test x${gcc_gxx_include_dir} = x; then
3707 if test x${enable_version_specific_runtime_libs} = xyes; then
3708 gcc_gxx_include_dir='${libsubdir}/include/c++'
3709 else
3710 libstdcxx_incdir='include/c++/$(version)'
3711 if test x$host != x$target; then
3712 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3713 fi
3714 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3715 fi
3716 elif test "${with_sysroot+set}" = set; then
3717 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3718 if test "${gcc_gxx_without_sysroot}"; then
3719 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3720 gcc_gxx_include_dir_add_sysroot=1
3721 fi
3722 fi
3723
3724
3725 # Check whether --with-cpp_install_dir was given.
3726 if test "${with_cpp_install_dir+set}" = set; then :
3727 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3728 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3729 elif test x$withval != xno; then
3730 cpp_install_dir=$withval
3731 fi
3732 fi
3733
3734
3735 # We would like to our source tree to be readonly. However when releases or
3736 # pre-releases are generated, the flex/bison generated files as well as the
3737 # various formats of manuals need to be included along with the rest of the
3738 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3739 # just that.
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3742 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3743 # Check whether --enable-generated-files-in-srcdir was given.
3744 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3745 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3746 else
3747 generated_files_in_srcdir=no
3748 fi
3749
3750
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3752 $as_echo "$generated_files_in_srcdir" >&6; }
3753
3754 if test "$generated_files_in_srcdir" = "yes"; then
3755 GENINSRC=''
3756 else
3757 GENINSRC='#'
3758 fi
3759
3760
3761 # -------------------
3762 # Find default linker
3763 # -------------------
3764
3765 # With GNU ld
3766
3767 # Check whether --with-gnu-ld was given.
3768 if test "${with_gnu_ld+set}" = set; then :
3769 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3770 else
3771 gnu_ld_flag=no
3772 fi
3773
3774
3775 case $target in
3776 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3777 *) ld64_flag=no;;
3778 esac
3779
3780 # With pre-defined ld
3781
3782 # Check whether --with-ld was given.
3783 if test "${with_ld+set}" = set; then :
3784 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3785 fi
3786
3787 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3788 if test ! -x "$DEFAULT_LINKER"; then
3789 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3790 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3791 gnu_ld_flag=yes
3792 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3793 ld64_flag=yes
3794 fi
3795
3796 cat >>confdefs.h <<_ACEOF
3797 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3798 _ACEOF
3799
3800 fi
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3803 $as_echo_n "checking whether a default linker was specified... " >&6; }
3804 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3805 if test x"$gnu_ld_flag" = x"no"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3807 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3810 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3811 fi
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817 # With demangler in GNU ld
3818
3819 # Check whether --with-demangler-in-ld was given.
3820 if test "${with_demangler_in_ld+set}" = set; then :
3821 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3822 else
3823 demangler_in_ld=yes
3824 fi
3825
3826
3827 # ----------------------
3828 # Find default assembler
3829 # ----------------------
3830
3831 # With GNU as
3832
3833 # Check whether --with-gnu-as was given.
3834 if test "${with_gnu_as+set}" = set; then :
3835 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3836 else
3837 gas_flag=no
3838 fi
3839
3840
3841
3842 # Check whether --with-as was given.
3843 if test "${with_as+set}" = set; then :
3844 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3845 fi
3846
3847 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3848 if test ! -x "$DEFAULT_ASSEMBLER"; then
3849 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3850 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3851 gas_flag=yes
3852 fi
3853
3854 cat >>confdefs.h <<_ACEOF
3855 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3856 _ACEOF
3857
3858 fi
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3861 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3862 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3863 if test x"$gas_flag" = x"no"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3865 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3868 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3869 fi
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875 # ---------------
3876 # Find C compiler
3877 # ---------------
3878
3879 # If a non-executable a.out is present (e.g. created by GNU as above even if
3880 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3881 # file, even when creating an executable, so an execution test fails.
3882 # Remove possible default executable files to avoid this.
3883 #
3884 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3885 # Autoconf includes it.
3886 rm -f a.out a.exe b.out
3887
3888 # Find the native compiler
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 if test -n "$ac_tool_prefix"; then
3895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916 done
3917 done
3918 IFS=$as_save_IFS
3919
3920 fi
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if test -z "$ac_cv_prog_CC"; then
3934 ac_ct_CC=$CC
3935 # Extract the first word of "gcc", so it can be a program name with args.
3936 set dummy gcc; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$ac_ct_CC"; then
3943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_ac_ct_CC="gcc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3963 if test -n "$ac_ct_CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3965 $as_echo "$ac_ct_CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971 if test "x$ac_ct_CC" = x; then
3972 CC=""
3973 else
3974 case $cross_compiling:$ac_tool_warned in
3975 yes:)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978 ac_tool_warned=yes ;;
3979 esac
3980 CC=$ac_ct_CC
3981 fi
3982 else
3983 CC="$ac_cv_prog_CC"
3984 fi
3985
3986 if test -z "$CC"; then
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}cc; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_CC+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_CC="${ac_tool_prefix}cc"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 fi
4027 if test -z "$CC"; then
4028 # Extract the first word of "cc", so it can be a program name with args.
4029 set dummy cc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_CC+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC="$CC" # Let the user override the test.
4037 else
4038 ac_prog_rejected=no
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4047 ac_prog_rejected=yes
4048 continue
4049 fi
4050 ac_cv_prog_CC="cc"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 if test $ac_prog_rejected = yes; then
4059 # We found a bogon in the path, so make sure we never use it.
4060 set dummy $ac_cv_prog_CC
4061 shift
4062 if test $# != 0; then
4063 # We chose a different compiler from the bogus one.
4064 # However, it has the same basename, so the bogon will be chosen
4065 # first if we set CC to just the basename; use the full file name.
4066 shift
4067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4068 fi
4069 fi
4070 fi
4071 fi
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in cl.exe
4086 do
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CC+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 $as_echo "$CC" >&6; }
4118 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124 test -n "$CC" && break
4125 done
4126 fi
4127 if test -z "$CC"; then
4128 ac_ct_CC=$CC
4129 for ac_prog in cl.exe
4130 do
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$ac_ct_CC"; then
4139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CC="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152 done
4153 done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161 $as_echo "$ac_ct_CC" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168 test -n "$ac_ct_CC" && break
4169 done
4170
4171 if test "x$ac_ct_CC" = x; then
4172 CC=""
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180 CC=$ac_ct_CC
4181 fi
4182 fi
4183
4184 fi
4185
4186
4187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error $? "no acceptable C compiler found in \$PATH
4190 See \`config.log' for more details" "$LINENO" 5; }
4191
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4194 set X $ac_compile
4195 ac_compiler=$2
4196 for ac_option in --version -v -V -qversion; do
4197 { { ac_try="$ac_compiler $ac_option >&5"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4205 ac_status=$?
4206 if test -s conftest.err; then
4207 sed '10a\
4208 ... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
4211 fi
4212 rm -f conftest.er1 conftest.err
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4215 done
4216
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219
4220 int
4221 main ()
4222 {
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 ac_clean_files_save=$ac_clean_files
4229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4230 # Try to create an executable without -o first, disregard a.out.
4231 # It will help us diagnose broken compilers, and finding out an intuition
4232 # of exeext.
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4234 $as_echo_n "checking whether the C compiler works... " >&6; }
4235 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4236
4237 # The possible output files:
4238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4239
4240 ac_rmfiles=
4241 for ac_file in $ac_files
4242 do
4243 case $ac_file in
4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4246 esac
4247 done
4248 rm -f $ac_rmfiles
4249
4250 if { { ac_try="$ac_link_default"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_link_default") 2>&5
4258 ac_status=$?
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }; then :
4261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4264 # so that the user can short-circuit this test for compilers unknown to
4265 # Autoconf.
4266 for ac_file in $ac_files ''
4267 do
4268 test -f "$ac_file" || continue
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4271 ;;
4272 [ab].out )
4273 # We found the default executable, but exeext='' is most
4274 # certainly right.
4275 break;;
4276 *.* )
4277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4278 then :; else
4279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4280 fi
4281 # We set ac_cv_exeext here because the later test for it is not
4282 # safe: cross compilers may not add the suffix if given an `-o'
4283 # argument, so we may need to know it at that point already.
4284 # Even if this section looks crufty: it has the advantage of
4285 # actually working.
4286 break;;
4287 * )
4288 break;;
4289 esac
4290 done
4291 test "$ac_cv_exeext" = no && ac_cv_exeext=
4292
4293 else
4294 ac_file=''
4295 fi
4296 if test -z "$ac_file"; then :
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error 77 "C compiler cannot create executables
4305 See \`config.log' for more details" "$LINENO" 5; }
4306 else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308 $as_echo "yes" >&6; }
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 $as_echo_n "checking for C compiler default output file name... " >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4313 $as_echo "$ac_file" >&6; }
4314 ac_exeext=$ac_cv_exeext
4315
4316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4317 ac_clean_files=$ac_clean_files_save
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4319 $as_echo_n "checking for suffix of executables... " >&6; }
4320 if { { ac_try="$ac_link"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4333 # work properly (i.e., refer to `conftest.exe'), while it won't with
4334 # `rm'.
4335 for ac_file in conftest.exe conftest conftest.*; do
4336 test -f "$ac_file" || continue
4337 case $ac_file in
4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4340 break;;
4341 * ) break;;
4342 esac
4343 done
4344 else
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4348 See \`config.log' for more details" "$LINENO" 5; }
4349 fi
4350 rm -f conftest conftest$ac_cv_exeext
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4352 $as_echo "$ac_cv_exeext" >&6; }
4353
4354 rm -f conftest.$ac_ext
4355 EXEEXT=$ac_cv_exeext
4356 ac_exeext=$EXEEXT
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #include <stdio.h>
4360 int
4361 main ()
4362 {
4363 FILE *f = fopen ("conftest.out", "w");
4364 return ferror (f) || fclose (f) != 0;
4365
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 ac_clean_files="$ac_clean_files conftest.out"
4371 # Check that the compiler produces executables we can run. If not, either
4372 # the compiler is broken, or we cross compile.
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4374 $as_echo_n "checking whether we are cross compiling... " >&6; }
4375 if test "$cross_compiling" != yes; then
4376 { { ac_try="$ac_link"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_link") 2>&5
4384 ac_status=$?
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }
4387 if { ac_try='./conftest$ac_cv_exeext'
4388 { { case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }; }; then
4398 cross_compiling=no
4399 else
4400 if test "$cross_compiling" = maybe; then
4401 cross_compiling=yes
4402 else
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $? "cannot run C compiled programs.
4406 If you meant to cross compile, use \`--host'.
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 fi
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4412 $as_echo "$cross_compiling" >&6; }
4413
4414 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4415 ac_clean_files=$ac_clean_files_save
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4417 $as_echo_n "checking for suffix of object files... " >&6; }
4418 if ${ac_cv_objext+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423
4424 int
4425 main ()
4426 {
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.o conftest.obj
4433 if { { ac_try="$ac_compile"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_compile") 2>&5
4441 ac_status=$?
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 for ac_file in conftest.o conftest.obj conftest.*; do
4445 test -f "$ac_file" || continue;
4446 case $ac_file in
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4449 break;;
4450 esac
4451 done
4452 else
4453 $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of object files: cannot compile
4459 See \`config.log' for more details" "$LINENO" 5; }
4460 fi
4461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4464 $as_echo "$ac_cv_objext" >&6; }
4465 OBJEXT=$ac_cv_objext
4466 ac_objext=$OBJEXT
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4469 if ${ac_cv_c_compiler_gnu+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474
4475 int
4476 main ()
4477 {
4478 #ifndef __GNUC__
4479 choke me
4480 #endif
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"; then :
4487 ac_compiler_gnu=yes
4488 else
4489 ac_compiler_gnu=no
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4497 if test $ac_compiler_gnu = yes; then
4498 GCC=yes
4499 else
4500 GCC=
4501 fi
4502 ac_test_CFLAGS=${CFLAGS+set}
4503 ac_save_CFLAGS=$CFLAGS
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4506 if ${ac_cv_prog_cc_g+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 ac_save_c_werror_flag=$ac_c_werror_flag
4510 ac_c_werror_flag=yes
4511 ac_cv_prog_cc_g=no
4512 CFLAGS="-g"
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_prog_cc_g=yes
4526 else
4527 CFLAGS=""
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540
4541 else
4542 ac_c_werror_flag=$ac_save_c_werror_flag
4543 CFLAGS="-g"
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_prog_cc_g=yes
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4566 $as_echo "$ac_cv_prog_cc_g" >&6; }
4567 if test "$ac_test_CFLAGS" = set; then
4568 CFLAGS=$ac_save_CFLAGS
4569 elif test $ac_cv_prog_cc_g = yes; then
4570 if test "$GCC" = yes; then
4571 CFLAGS="-g -O2"
4572 else
4573 CFLAGS="-g"
4574 fi
4575 else
4576 if test "$GCC" = yes; then
4577 CFLAGS="-O2"
4578 else
4579 CFLAGS=
4580 fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4584 if ${ac_cv_prog_cc_c89+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 ac_cv_prog_cc_c89=no
4588 ac_save_CC=$CC
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <stdarg.h>
4592 #include <stdio.h>
4593 struct stat;
4594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4595 struct buf { int x; };
4596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4597 static char *e (p, i)
4598 char **p;
4599 int i;
4600 {
4601 return p[i];
4602 }
4603 static char *f (char * (*g) (char **, int), char **p, ...)
4604 {
4605 char *s;
4606 va_list v;
4607 va_start (v,p);
4608 s = g (p, va_arg (v,int));
4609 va_end (v);
4610 return s;
4611 }
4612
4613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4614 function prototypes and stuff, but not '\xHH' hex character constants.
4615 These don't provoke an error unfortunately, instead are silently treated
4616 as 'x'. The following induces an error, until -std is added to get
4617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4618 array size at least. It's necessary to write '\x00'==0 to get something
4619 that's true only with -std. */
4620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4621
4622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4623 inside strings and character constants. */
4624 #define FOO(x) 'x'
4625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4626
4627 int test (int i, double x);
4628 struct s1 {int (*f) (int a);};
4629 struct s2 {int (*f) (double a);};
4630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4631 int argc;
4632 char **argv;
4633 int
4634 main ()
4635 {
4636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4643 do
4644 CC="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_c89=$ac_arg
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext
4649 test "x$ac_cv_prog_cc_c89" != "xno" && break
4650 done
4651 rm -f conftest.$ac_ext
4652 CC=$ac_save_CC
4653
4654 fi
4655 # AC_CACHE_VAL
4656 case "x$ac_cv_prog_cc_c89" in
4657 x)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4659 $as_echo "none needed" >&6; } ;;
4660 xno)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4662 $as_echo "unsupported" >&6; } ;;
4663 *)
4664 CC="$CC $ac_cv_prog_cc_c89"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4667 esac
4668 if test "x$ac_cv_prog_cc_c89" != xno; then :
4669
4670 fi
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677
4678 ac_ext=cpp
4679 ac_cpp='$CXXCPP $CPPFLAGS'
4680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683 if test -z "$CXX"; then
4684 if test -n "$CCC"; then
4685 CXX=$CCC
4686 else
4687 if test -n "$ac_tool_prefix"; then
4688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4689 do
4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_CXX+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$CXX"; then
4698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 CXX=$ac_cv_prog_CXX
4718 if test -n "$CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4720 $as_echo "$CXX" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727 test -n "$CXX" && break
4728 done
4729 fi
4730 if test -z "$CXX"; then
4731 ac_ct_CXX=$CXX
4732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4733 do
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$ac_ct_CXX"; then
4742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_CXX="$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4762 if test -n "$ac_ct_CXX"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4764 $as_echo "$ac_ct_CXX" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 test -n "$ac_ct_CXX" && break
4772 done
4773
4774 if test "x$ac_ct_CXX" = x; then
4775 CXX="g++"
4776 else
4777 case $cross_compiling:$ac_tool_warned in
4778 yes:)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4782 esac
4783 CXX=$ac_ct_CXX
4784 fi
4785 fi
4786
4787 fi
4788 fi
4789 # Provide some information about the compiler.
4790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4791 set X $ac_compile
4792 ac_compiler=$2
4793 for ac_option in --version -v -V -qversion; do
4794 { { ac_try="$ac_compiler $ac_option >&5"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4800 $as_echo "$ac_try_echo"; } >&5
4801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4802 ac_status=$?
4803 if test -s conftest.err; then
4804 sed '10a\
4805 ... rest of stderr output deleted ...
4806 10q' conftest.err >conftest.er1
4807 cat conftest.er1 >&5
4808 fi
4809 rm -f conftest.er1 conftest.err
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4812 done
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4815 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4816 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825 #ifndef __GNUC__
4826 choke me
4827 #endif
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_cxx_try_compile "$LINENO"; then :
4834 ac_compiler_gnu=yes
4835 else
4836 ac_compiler_gnu=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4840
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4843 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4844 if test $ac_compiler_gnu = yes; then
4845 GXX=yes
4846 else
4847 GXX=
4848 fi
4849 ac_test_CXXFLAGS=${CXXFLAGS+set}
4850 ac_save_CXXFLAGS=$CXXFLAGS
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4852 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4853 if ${ac_cv_prog_cxx_g+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4857 ac_cxx_werror_flag=yes
4858 ac_cv_prog_cxx_g=no
4859 CXXFLAGS="-g"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_cxx_try_compile "$LINENO"; then :
4872 ac_cv_prog_cxx_g=yes
4873 else
4874 CXXFLAGS=""
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887
4888 else
4889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4890 CXXFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 int
4895 main ()
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_cxx_try_compile "$LINENO"; then :
4903 ac_cv_prog_cxx_g=yes
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4913 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4914 if test "$ac_test_CXXFLAGS" = set; then
4915 CXXFLAGS=$ac_save_CXXFLAGS
4916 elif test $ac_cv_prog_cxx_g = yes; then
4917 if test "$GXX" = yes; then
4918 CXXFLAGS="-g -O2"
4919 else
4920 CXXFLAGS="-g"
4921 fi
4922 else
4923 if test "$GXX" = yes; then
4924 CXXFLAGS="-O2"
4925 else
4926 CXXFLAGS=
4927 fi
4928 fi
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936
4937
4938 if test -n "$ac_tool_prefix"; then
4939 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4940 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_GNATBIND+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$GNATBIND"; then
4947 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 GNATBIND=$ac_cv_prog_GNATBIND
4967 if test -n "$GNATBIND"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4969 $as_echo "$GNATBIND" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975
4976 fi
4977 if test -z "$ac_cv_prog_GNATBIND"; then
4978 ac_ct_GNATBIND=$GNATBIND
4979 # Extract the first word of "gnatbind", so it can be a program name with args.
4980 set dummy gnatbind; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$ac_ct_GNATBIND"; then
4987 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5007 if test -n "$ac_ct_GNATBIND"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5009 $as_echo "$ac_ct_GNATBIND" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015 if test "x$ac_ct_GNATBIND" = x; then
5016 GNATBIND="no"
5017 else
5018 case $cross_compiling:$ac_tool_warned in
5019 yes:)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5022 ac_tool_warned=yes ;;
5023 esac
5024 GNATBIND=$ac_ct_GNATBIND
5025 fi
5026 else
5027 GNATBIND="$ac_cv_prog_GNATBIND"
5028 fi
5029
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_GNATMAKE+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$GNATMAKE"; then
5039 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 GNATMAKE=$ac_cv_prog_GNATMAKE
5059 if test -n "$GNATMAKE"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5061 $as_echo "$GNATMAKE" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 fi
5069 if test -z "$ac_cv_prog_GNATMAKE"; then
5070 ac_ct_GNATMAKE=$GNATMAKE
5071 # Extract the first word of "gnatmake", so it can be a program name with args.
5072 set dummy gnatmake; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$ac_ct_GNATMAKE"; then
5079 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5099 if test -n "$ac_ct_GNATMAKE"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5101 $as_echo "$ac_ct_GNATMAKE" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107 if test "x$ac_ct_GNATMAKE" = x; then
5108 GNATMAKE="no"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 GNATMAKE=$ac_ct_GNATMAKE
5117 fi
5118 else
5119 GNATMAKE="$ac_cv_prog_GNATMAKE"
5120 fi
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5123 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5124 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat >conftest.adb <<EOF
5128 procedure conftest is begin null; end conftest;
5129 EOF
5130 acx_cv_cc_gcc_supports_ada=no
5131 # There is a bug in old released versions of GCC which causes the
5132 # driver to exit successfully when the appropriate language module
5133 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5134 # Therefore we must check for the error message as well as an
5135 # unsuccessful exit.
5136 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5137 # given a .adb file, but produce no object file. So we must check
5138 # if an object file was really produced to guard against this.
5139 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5140 if test x"$errors" = x && test -f conftest.$ac_objext; then
5141 acx_cv_cc_gcc_supports_ada=yes
5142 fi
5143 rm -f conftest.*
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5146 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5147
5148 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5149 have_gnat=yes
5150 else
5151 have_gnat=no
5152 fi
5153
5154
5155 # Do configure tests with the C++ compiler, since that's what we build with.
5156 ac_ext=cpp
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5164 # optimizations to be activated explicitly by the toplevel.
5165 case "$CC" in
5166 */prev-gcc/xgcc*) ;;
5167 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5168 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5169 esac
5170
5171
5172
5173 # Determine PICFLAG for target gnatlib.
5174
5175
5176
5177
5178 case "${target}" in
5179 # PIC is the default on some targets or must not be used.
5180 *-*-darwin*)
5181 # For darwin, common symbols are not allowed in MH_DYLIB files
5182 case "${CFLAGS}" in
5183 # If we are using a compiler supporting mdynamic-no-pic
5184 # and the option has been tested as safe to add, then cancel
5185 # it here, since the code generated is incompatible with shared
5186 # libs.
5187 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5188 *) PICFLAG_FOR_TARGET=-fno-common ;;
5189 esac
5190 ;;
5191 alpha*-dec-osf5*)
5192 # PIC is the default.
5193 ;;
5194 hppa*64*-*-hpux*)
5195 # PIC is the default for 64-bit PA HP-UX.
5196 ;;
5197 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5198 ;;
5199 i[34567]86-*-mingw* | x86_64-*-mingw*)
5200 ;;
5201 i[34567]86-*-interix[3-9]*)
5202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5203 # Instead, we relocate shared libraries at runtime.
5204 ;;
5205 i[34567]86-*-nto-qnx*)
5206 # QNX uses GNU C++, but need to define -shared option too, otherwise
5207 # it will coredump.
5208 PICFLAG_FOR_TARGET='-fPIC -shared'
5209 ;;
5210 i[34567]86-pc-msdosdjgpp*)
5211 # DJGPP does not support shared libraries at all.
5212 ;;
5213 ia64*-*-hpux*)
5214 # On IA64 HP-UX, PIC is the default but the pic flag
5215 # sets the default TLS model and affects inlining.
5216 PICFLAG_FOR_TARGET=-fPIC
5217 ;;
5218 mips-sgi-irix6*)
5219 # PIC is the default.
5220 ;;
5221 rs6000-ibm-aix* | powerpc-ibm-aix*)
5222 # All AIX code is PIC.
5223 ;;
5224
5225 # Some targets support both -fPIC and -fpic, but prefer the latter.
5226 # FIXME: Why?
5227 i[34567]86-*-* | x86_64-*-*)
5228 PICFLAG_FOR_TARGET=-fpic
5229 ;;
5230 # FIXME: Override -fPIC default in libgcc only?
5231 sh-*-linux* | sh[2346lbe]*-*-linux*)
5232 PICFLAG_FOR_TARGET=-fpic
5233 ;;
5234 # FIXME: Simplify to sh*-*-netbsd*?
5235 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5236 sh64-*-netbsd* | sh64l*-*-netbsd*)
5237 PICFLAG_FOR_TARGET=-fpic
5238 ;;
5239 # Default to -fPIC unless specified otherwise.
5240 *)
5241 PICFLAG_FOR_TARGET=-fPIC
5242 ;;
5243 esac
5244
5245 # If the user explicitly uses -fpic/-fPIC, keep that.
5246 case "${CFLAGS_FOR_TARGET}" in
5247 *-fpic*)
5248 PICFLAG_FOR_TARGET=-fpic
5249 ;;
5250 *-fPIC*)
5251 PICFLAG_FOR_TARGET=-fPIC
5252 ;;
5253 esac
5254
5255
5256
5257 # -------------------------
5258 # Check C compiler features
5259 # -------------------------
5260
5261
5262 ac_ext=cpp
5263 ac_cpp='$CXXCPP $CPPFLAGS'
5264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5268 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5269 if test -z "$CXXCPP"; then
5270 if ${ac_cv_prog_CXXCPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 # Double quotes because CXXCPP needs to be expanded
5274 for CXXCPP in "$CXX -E" "/lib/cpp"
5275 do
5276 ac_preproc_ok=false
5277 for ac_cxx_preproc_warn_flag in '' yes
5278 do
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifdef __STDC__
5288 # include <limits.h>
5289 #else
5290 # include <assert.h>
5291 #endif
5292 Syntax error
5293 _ACEOF
5294 if ac_fn_cxx_try_cpp "$LINENO"; then :
5295
5296 else
5297 # Broken: fails on valid input.
5298 continue
5299 fi
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5307 _ACEOF
5308 if ac_fn_cxx_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5310 continue
5311 else
5312 # Passes both tests.
5313 ac_preproc_ok=:
5314 break
5315 fi
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5317
5318 done
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.$ac_ext
5321 if $ac_preproc_ok; then :
5322 break
5323 fi
5324
5325 done
5326 ac_cv_prog_CXXCPP=$CXXCPP
5327
5328 fi
5329 CXXCPP=$ac_cv_prog_CXXCPP
5330 else
5331 ac_cv_prog_CXXCPP=$CXXCPP
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5334 $as_echo "$CXXCPP" >&6; }
5335 ac_preproc_ok=false
5336 for ac_cxx_preproc_warn_flag in '' yes
5337 do
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #ifdef __STDC__
5347 # include <limits.h>
5348 #else
5349 # include <assert.h>
5350 #endif
5351 Syntax error
5352 _ACEOF
5353 if ac_fn_cxx_try_cpp "$LINENO"; then :
5354
5355 else
5356 # Broken: fails on valid input.
5357 continue
5358 fi
5359 rm -f conftest.err conftest.i conftest.$ac_ext
5360
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5366 _ACEOF
5367 if ac_fn_cxx_try_cpp "$LINENO"; then :
5368 # Broken: success on invalid input.
5369 continue
5370 else
5371 # Passes both tests.
5372 ac_preproc_ok=:
5373 break
5374 fi
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5376
5377 done
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.$ac_ext
5380 if $ac_preproc_ok; then :
5381
5382 else
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5387 fi
5388
5389 ac_ext=cpp
5390 ac_cpp='$CXXCPP $CPPFLAGS'
5391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_prog in grep ggrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p "$ac_path_GREP" || continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5416 *GNU*)
5417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5418 *)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP="$ac_path_GREP"
5433 ac_path_GREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439 esac
5440
5441 $ac_path_GREP_found && break 3
5442 done
5443 done
5444 done
5445 IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449 else
5450 ac_cv_path_GREP=$GREP
5451 fi
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP="$ac_cv_path_GREP"
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5465 then ac_cv_path_EGREP="$GREP -E"
5466 else
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_prog in egrep; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_EGREP" || continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5482 *GNU*)
5483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5484 *)
5485 ac_count=0
5486 $as_echo_n 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP="$ac_path_EGREP"
5499 ac_path_EGREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5503 done
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507 $ac_path_EGREP_found && break 3
5508 done
5509 done
5510 done
5511 IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
5515 else
5516 ac_cv_path_EGREP=$EGREP
5517 fi
5518
5519 fi
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP="$ac_cv_path_EGREP"
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5534 #include <stdarg.h>
5535 #include <string.h>
5536 #include <float.h>
5537
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 ac_cv_header_stdc=yes
5548 else
5549 ac_cv_header_stdc=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #include <string.h>
5558
5559 _ACEOF
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev/null 2>&1; then :
5562
5563 else
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f conftest*
5567
5568 fi
5569
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <stdlib.h>
5575
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev/null 2>&1; then :
5579
5580 else
5581 ac_cv_header_stdc=no
5582 fi
5583 rm -f conftest*
5584
5585 fi
5586
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5590 :
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ctype.h>
5595 #include <stdlib.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5605 #endif
5606
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 int
5609 main ()
5610 {
5611 int i;
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5615 return 2;
5616 return 0;
5617 }
5618 _ACEOF
5619 if ac_fn_cxx_try_run "$LINENO"; then :
5620
5621 else
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5625 conftest.$ac_objext conftest.beam conftest.$ac_ext
5626 fi
5627
5628 fi
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5633
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5635
5636 fi
5637
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640 inttypes.h stdint.h unistd.h
5641 do :
5642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5644 "
5645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5646 cat >>confdefs.h <<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 _ACEOF
5649
5650 fi
5651
5652 done
5653
5654
5655
5656 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5658 MINIX=yes
5659 else
5660 MINIX=
5661 fi
5662
5663
5664 if test "$MINIX" = yes; then
5665
5666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5667
5668
5669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5670
5671
5672 $as_echo "#define _MINIX 1" >>confdefs.h
5673
5674 fi
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5679 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 # define __EXTENSIONS__ 1
5686 $ac_includes_default
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_cxx_try_compile "$LINENO"; then :
5696 ac_cv_safe_to_define___extensions__=yes
5697 else
5698 ac_cv_safe_to_define___extensions__=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5704 test $ac_cv_safe_to_define___extensions__ = yes &&
5705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5706
5707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5708
5709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5710
5711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5712
5713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5714
5715
5716
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5723 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5724 # On Suns, sometimes $CPP names a directory.
5725 if test -n "$CPP" && test -d "$CPP"; then
5726 CPP=
5727 fi
5728 if test -z "$CPP"; then
5729 if ${ac_cv_prog_CPP+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 # Double quotes because CPP needs to be expanded
5733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5734 do
5735 ac_preproc_ok=false
5736 for ac_c_preproc_warn_flag in '' yes
5737 do
5738 # Use a header file that comes with gcc, so configuring glibc
5739 # with a fresh cross-compiler works.
5740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 # <limits.h> exists even on freestanding compilers.
5742 # On the NeXT, cc -E runs the code through the compiler's parser,
5743 # not just through cpp. "Syntax error" is here to catch this case.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5751 Syntax error
5752 _ACEOF
5753 if ac_fn_c_try_cpp "$LINENO"; then :
5754
5755 else
5756 # Broken: fails on valid input.
5757 continue
5758 fi
5759 rm -f conftest.err conftest.i conftest.$ac_ext
5760
5761 # OK, works on sane cases. Now check whether nonexistent headers
5762 # can be detected and how.
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <ac_nonexistent.h>
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5768 # Broken: success on invalid input.
5769 continue
5770 else
5771 # Passes both tests.
5772 ac_preproc_ok=:
5773 break
5774 fi
5775 rm -f conftest.err conftest.i conftest.$ac_ext
5776
5777 done
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.i conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then :
5781 break
5782 fi
5783
5784 done
5785 ac_cv_prog_CPP=$CPP
5786
5787 fi
5788 CPP=$ac_cv_prog_CPP
5789 else
5790 ac_cv_prog_CPP=$CPP
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5793 $as_echo "$CPP" >&6; }
5794 ac_preproc_ok=false
5795 for ac_c_preproc_warn_flag in '' yes
5796 do
5797 # Use a header file that comes with gcc, so configuring glibc
5798 # with a fresh cross-compiler works.
5799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 # <limits.h> exists even on freestanding compilers.
5801 # On the NeXT, cc -E runs the code through the compiler's parser,
5802 # not just through cpp. "Syntax error" is here to catch this case.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #ifdef __STDC__
5806 # include <limits.h>
5807 #else
5808 # include <assert.h>
5809 #endif
5810 Syntax error
5811 _ACEOF
5812 if ac_fn_c_try_cpp "$LINENO"; then :
5813
5814 else
5815 # Broken: fails on valid input.
5816 continue
5817 fi
5818 rm -f conftest.err conftest.i conftest.$ac_ext
5819
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5827 # Broken: success on invalid input.
5828 continue
5829 else
5830 # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5833 fi
5834 rm -f conftest.err conftest.i conftest.$ac_ext
5835
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.i conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then :
5840
5841 else
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details" "$LINENO" 5; }
5846 fi
5847
5848 ac_ext=cpp
5849 ac_cpp='$CXXCPP $CPPFLAGS'
5850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5855 $as_echo_n "checking for inline... " >&6; }
5856 if ${ac_cv_c_inline+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_cv_c_inline=no
5860 for ac_kw in inline __inline__ __inline; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #ifndef __cplusplus
5864 typedef int foo_t;
5865 static $ac_kw foo_t static_foo () {return 0; }
5866 $ac_kw foo_t foo () {return 0; }
5867 #endif
5868
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_c_inline=$ac_kw
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 test "$ac_cv_c_inline" != no && break
5875 done
5876
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5879 $as_echo "$ac_cv_c_inline" >&6; }
5880
5881 case $ac_cv_c_inline in
5882 inline | yes) ;;
5883 *)
5884 case $ac_cv_c_inline in
5885 no) ac_val=;;
5886 *) ac_val=$ac_cv_c_inline;;
5887 esac
5888 cat >>confdefs.h <<_ACEOF
5889 #ifndef __cplusplus
5890 #define inline $ac_val
5891 #endif
5892 _ACEOF
5893 ;;
5894 esac
5895
5896
5897 # Check whether --enable-largefile was given.
5898 if test "${enable_largefile+set}" = set; then :
5899 enableval=$enable_largefile;
5900 fi
5901
5902 if test "$enable_largefile" != no; then
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5905 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5906 if ${ac_cv_sys_largefile_CC+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_cv_sys_largefile_CC=no
5910 if test "$GCC" != yes; then
5911 ac_save_CC=$CC
5912 while :; do
5913 # IRIX 6.2 and later do not support large files by default,
5914 # so use the C compiler's -n32 option if that helps.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <sys/types.h>
5918 /* Check that off_t can represent 2**63 - 1 correctly.
5919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5920 since some C++ compilers masquerading as C compilers
5921 incorrectly reject 9223372036854775807. */
5922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924 && LARGE_OFF_T % 2147483647 == 1)
5925 ? 1 : -1];
5926 int
5927 main ()
5928 {
5929
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 if ac_fn_cxx_try_compile "$LINENO"; then :
5935 break
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext
5938 CC="$CC -n32"
5939 if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_cv_sys_largefile_CC=' -n32'; break
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext
5943 break
5944 done
5945 CC=$ac_save_CC
5946 rm -f conftest.$ac_ext
5947 fi
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5950 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5951 if test "$ac_cv_sys_largefile_CC" != no; then
5952 CC=$CC$ac_cv_sys_largefile_CC
5953 fi
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5956 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5957 if ${ac_cv_sys_file_offset_bits+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 while :; do
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 /* Check that off_t can represent 2**63 - 1 correctly.
5965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5966 since some C++ compilers masquerading as C compilers
5967 incorrectly reject 9223372036854775807. */
5968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5970 && LARGE_OFF_T % 2147483647 == 1)
5971 ? 1 : -1];
5972 int
5973 main ()
5974 {
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_cxx_try_compile "$LINENO"; then :
5981 ac_cv_sys_file_offset_bits=no; break
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #define _FILE_OFFSET_BITS 64
5987 #include <sys/types.h>
5988 /* Check that off_t can represent 2**63 - 1 correctly.
5989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5990 since some C++ compilers masquerading as C compilers
5991 incorrectly reject 9223372036854775807. */
5992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5994 && LARGE_OFF_T % 2147483647 == 1)
5995 ? 1 : -1];
5996 int
5997 main ()
5998 {
5999
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_cxx_try_compile "$LINENO"; then :
6005 ac_cv_sys_file_offset_bits=64; break
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 ac_cv_sys_file_offset_bits=unknown
6009 break
6010 done
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6013 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6014 case $ac_cv_sys_file_offset_bits in #(
6015 no | unknown) ;;
6016 *)
6017 cat >>confdefs.h <<_ACEOF
6018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6019 _ACEOF
6020 ;;
6021 esac
6022 rm -rf conftest*
6023 if test $ac_cv_sys_file_offset_bits = unknown; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6025 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6026 if ${ac_cv_sys_large_files+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 while :; do
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 /* Check that off_t can represent 2**63 - 1 correctly.
6034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6035 since some C++ compilers masquerading as C compilers
6036 incorrectly reject 9223372036854775807. */
6037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6039 && LARGE_OFF_T % 2147483647 == 1)
6040 ? 1 : -1];
6041 int
6042 main ()
6043 {
6044
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_cxx_try_compile "$LINENO"; then :
6050 ac_cv_sys_large_files=no; break
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #define _LARGE_FILES 1
6056 #include <sys/types.h>
6057 /* Check that off_t can represent 2**63 - 1 correctly.
6058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6059 since some C++ compilers masquerading as C compilers
6060 incorrectly reject 9223372036854775807. */
6061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6063 && LARGE_OFF_T % 2147483647 == 1)
6064 ? 1 : -1];
6065 int
6066 main ()
6067 {
6068
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 if ac_fn_cxx_try_compile "$LINENO"; then :
6074 ac_cv_sys_large_files=1; break
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_sys_large_files=unknown
6078 break
6079 done
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6082 $as_echo "$ac_cv_sys_large_files" >&6; }
6083 case $ac_cv_sys_large_files in #(
6084 no | unknown) ;;
6085 *)
6086 cat >>confdefs.h <<_ACEOF
6087 #define _LARGE_FILES $ac_cv_sys_large_files
6088 _ACEOF
6089 ;;
6090 esac
6091 rm -rf conftest*
6092 fi
6093
6094
6095 fi
6096
6097
6098 # sizeof(char) is 1 by definition.
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6104 $as_echo_n "checking size of void *... " >&6; }
6105 if ${ac_cv_sizeof_void_p+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6109
6110 else
6111 if test "$ac_cv_type_void_p" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error 77 "cannot compute sizeof (void *)
6115 See \`config.log' for more details" "$LINENO" 5; }
6116 else
6117 ac_cv_sizeof_void_p=0
6118 fi
6119 fi
6120
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6123 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6124
6125
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6129 _ACEOF
6130
6131
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6137 $as_echo_n "checking size of short... " >&6; }
6138 if ${ac_cv_sizeof_short+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6142
6143 else
6144 if test "$ac_cv_type_short" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error 77 "cannot compute sizeof (short)
6148 See \`config.log' for more details" "$LINENO" 5; }
6149 else
6150 ac_cv_sizeof_short=0
6151 fi
6152 fi
6153
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6156 $as_echo "$ac_cv_sizeof_short" >&6; }
6157
6158
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define SIZEOF_SHORT $ac_cv_sizeof_short
6162 _ACEOF
6163
6164
6165 # The cast to long int works around a bug in the HP C Compiler
6166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168 # This bug is HP SR number 8606223364.
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6170 $as_echo_n "checking size of int... " >&6; }
6171 if ${ac_cv_sizeof_int+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6175
6176 else
6177 if test "$ac_cv_type_int" = yes; then
6178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180 as_fn_error 77 "cannot compute sizeof (int)
6181 See \`config.log' for more details" "$LINENO" 5; }
6182 else
6183 ac_cv_sizeof_int=0
6184 fi
6185 fi
6186
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6189 $as_echo "$ac_cv_sizeof_int" >&6; }
6190
6191
6192
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_INT $ac_cv_sizeof_int
6195 _ACEOF
6196
6197
6198 # The cast to long int works around a bug in the HP C Compiler
6199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6201 # This bug is HP SR number 8606223364.
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6203 $as_echo_n "checking size of long... " >&6; }
6204 if ${ac_cv_sizeof_long+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6208
6209 else
6210 if test "$ac_cv_type_long" = yes; then
6211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6213 as_fn_error 77 "cannot compute sizeof (long)
6214 See \`config.log' for more details" "$LINENO" 5; }
6215 else
6216 ac_cv_sizeof_long=0
6217 fi
6218 fi
6219
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6222 $as_echo "$ac_cv_sizeof_long" >&6; }
6223
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define SIZEOF_LONG $ac_cv_sizeof_long
6228 _ACEOF
6229
6230
6231 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6232 if test "x$ac_cv_type_long_long" = xyes; then :
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LONG_LONG 1
6236 _ACEOF
6237
6238 # The cast to long int works around a bug in the HP C Compiler
6239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6241 # This bug is HP SR number 8606223364.
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6243 $as_echo_n "checking size of long long... " >&6; }
6244 if ${ac_cv_sizeof_long_long+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6248
6249 else
6250 if test "$ac_cv_type_long_long" = yes; then
6251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6253 as_fn_error 77 "cannot compute sizeof (long long)
6254 See \`config.log' for more details" "$LINENO" 5; }
6255 else
6256 ac_cv_sizeof_long_long=0
6257 fi
6258 fi
6259
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6262 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6263
6264
6265
6266 cat >>confdefs.h <<_ACEOF
6267 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6268 _ACEOF
6269
6270
6271 fi
6272
6273 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6274 case $ac_cv_c_int8_t in #(
6275 no|yes) ;; #(
6276 *)
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define int8_t $ac_cv_c_int8_t
6280 _ACEOF
6281 ;;
6282 esac
6283
6284 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6285 case $ac_cv_c_int16_t in #(
6286 no|yes) ;; #(
6287 *)
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define int16_t $ac_cv_c_int16_t
6291 _ACEOF
6292 ;;
6293 esac
6294
6295 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6296 case $ac_cv_c_int32_t in #(
6297 no|yes) ;; #(
6298 *)
6299
6300 cat >>confdefs.h <<_ACEOF
6301 #define int32_t $ac_cv_c_int32_t
6302 _ACEOF
6303 ;;
6304 esac
6305
6306 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6307 case $ac_cv_c_int64_t in #(
6308 no|yes) ;; #(
6309 *)
6310
6311 cat >>confdefs.h <<_ACEOF
6312 #define int64_t $ac_cv_c_int64_t
6313 _ACEOF
6314 ;;
6315 esac
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6319 $as_echo_n "checking for unsigned long long int... " >&6; }
6320 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 ac_cv_type_unsigned_long_long_int=yes
6324 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327
6328 /* For now, do not test the preprocessor; as of 2007 there are too many
6329 implementations with broken preprocessors. Perhaps this can
6330 be revisited in 2012. In the meantime, code should not expect
6331 #if to work with literals wider than 32 bits. */
6332 /* Test literals. */
6333 long long int ll = 9223372036854775807ll;
6334 long long int nll = -9223372036854775807LL;
6335 unsigned long long int ull = 18446744073709551615ULL;
6336 /* Test constant expressions. */
6337 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6338 ? 1 : -1)];
6339 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6340 ? 1 : -1)];
6341 int i = 63;
6342 int
6343 main ()
6344 {
6345 /* Test availability of runtime routines for shift and division. */
6346 long long int llmax = 9223372036854775807ll;
6347 unsigned long long int ullmax = 18446744073709551615ull;
6348 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6349 | (llmax / ll) | (llmax % ll)
6350 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6351 | (ullmax / ull) | (ullmax % ull));
6352 ;
6353 return 0;
6354 }
6355
6356 _ACEOF
6357 if ac_fn_cxx_try_link "$LINENO"; then :
6358
6359 else
6360 ac_cv_type_unsigned_long_long_int=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 fi
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6367 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6368 if test $ac_cv_type_unsigned_long_long_int = yes; then
6369
6370 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6371
6372 fi
6373
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6377 $as_echo_n "checking for long long int... " >&6; }
6378 if ${ac_cv_type_long_long_int+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 ac_cv_type_long_long_int=yes
6382 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6383 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6384 if test $ac_cv_type_long_long_int = yes; then
6385 if test "$cross_compiling" = yes; then :
6386 :
6387 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <limits.h>
6391 #ifndef LLONG_MAX
6392 # define HALF \
6393 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6394 # define LLONG_MAX (HALF - 1 + HALF)
6395 #endif
6396 int
6397 main ()
6398 {
6399 long long int n = 1;
6400 int i;
6401 for (i = 0; ; i++)
6402 {
6403 long long int m = n << i;
6404 if (m >> i != n)
6405 return 1;
6406 if (LLONG_MAX / 2 < m)
6407 break;
6408 }
6409 return 0;
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_cxx_try_run "$LINENO"; then :
6415
6416 else
6417 ac_cv_type_long_long_int=no
6418 fi
6419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6420 conftest.$ac_objext conftest.beam conftest.$ac_ext
6421 fi
6422
6423 fi
6424 fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6427 $as_echo "$ac_cv_type_long_long_int" >&6; }
6428 if test $ac_cv_type_long_long_int = yes; then
6429
6430 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6431
6432 fi
6433
6434
6435
6436 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6437 if test "x$ac_cv_type_intmax_t" = xyes; then :
6438
6439 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6440
6441 else
6442 test $ac_cv_type_long_long_int = yes \
6443 && ac_type='long long int' \
6444 || ac_type='long int'
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define intmax_t $ac_type
6448 _ACEOF
6449
6450 fi
6451
6452
6453
6454 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6455 if test "x$ac_cv_type_intptr_t" = xyes; then :
6456
6457 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6458
6459 else
6460 for ac_type in 'int' 'long int' 'long long int'; do
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 $ac_includes_default
6464 int
6465 main ()
6466 {
6467 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6468 test_array [0] = 0;
6469 return test_array [0];
6470
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_cxx_try_compile "$LINENO"; then :
6476
6477 cat >>confdefs.h <<_ACEOF
6478 #define intptr_t $ac_type
6479 _ACEOF
6480
6481 ac_type=
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 test -z "$ac_type" && break
6485 done
6486 fi
6487
6488
6489 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6490 case $ac_cv_c_uint8_t in #(
6491 no|yes) ;; #(
6492 *)
6493
6494 $as_echo "#define _UINT8_T 1" >>confdefs.h
6495
6496
6497 cat >>confdefs.h <<_ACEOF
6498 #define uint8_t $ac_cv_c_uint8_t
6499 _ACEOF
6500 ;;
6501 esac
6502
6503 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6504 case $ac_cv_c_uint16_t in #(
6505 no|yes) ;; #(
6506 *)
6507
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define uint16_t $ac_cv_c_uint16_t
6511 _ACEOF
6512 ;;
6513 esac
6514
6515 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6516 case $ac_cv_c_uint32_t in #(
6517 no|yes) ;; #(
6518 *)
6519
6520 $as_echo "#define _UINT32_T 1" >>confdefs.h
6521
6522
6523 cat >>confdefs.h <<_ACEOF
6524 #define uint32_t $ac_cv_c_uint32_t
6525 _ACEOF
6526 ;;
6527 esac
6528
6529 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6530 case $ac_cv_c_uint64_t in #(
6531 no|yes) ;; #(
6532 *)
6533
6534 $as_echo "#define _UINT64_T 1" >>confdefs.h
6535
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define uint64_t $ac_cv_c_uint64_t
6539 _ACEOF
6540 ;;
6541 esac
6542
6543
6544
6545 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6546 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6547
6548 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6549
6550 else
6551 test $ac_cv_type_unsigned_long_long_int = yes \
6552 && ac_type='unsigned long long int' \
6553 || ac_type='unsigned long int'
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define uintmax_t $ac_type
6557 _ACEOF
6558
6559 fi
6560
6561
6562
6563 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6564 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6565
6566 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6567
6568 else
6569 for ac_type in 'unsigned int' 'unsigned long int' \
6570 'unsigned long long int'; do
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 int
6575 main ()
6576 {
6577 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6578 test_array [0] = 0;
6579 return test_array [0];
6580
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_cxx_try_compile "$LINENO"; then :
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define uintptr_t $ac_type
6589 _ACEOF
6590
6591 ac_type=
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 test -z "$ac_type" && break
6595 done
6596 fi
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6612 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6613 fi
6614
6615 # check what underlying integer type int64_t uses
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6617 $as_echo_n "checking for int64_t underlying type... " >&6; }
6618 if ${ac_cv_int64_t_type+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624
6625 #ifdef HAVE_STDINT_H
6626 #include <stdint.h>
6627 #endif
6628 template <typename T> struct X { };
6629 template <>
6630 struct X<long> { typedef long t; };
6631
6632 int
6633 main ()
6634 {
6635 X<int64_t>::t x;
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_cxx_try_compile "$LINENO"; then :
6641 ac_cv_int64_t_type=long
6642 else
6643 ac_cv_int64_t_type="long long"
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6648 $as_echo "$ac_cv_int64_t_type" >&6; }
6649 if test "$ac_cv_int64_t_type" = "long"; then
6650
6651 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6652
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656
6657 #ifdef HAVE_STDINT_H
6658 #include <stdint.h>
6659 #endif
6660 template <typename T> struct X { };
6661 template <>
6662 struct X<long long> { typedef long long t; };
6663
6664 int
6665 main ()
6666 {
6667 X<int64_t>::t x;
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_cxx_try_compile "$LINENO"; then :
6673
6674 else
6675 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 fi
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6681 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6682 if ${ac_cv_std_swap_in_utility+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688
6689 #include <utility>
6690
6691 int
6692 main ()
6693 {
6694 int a, b; std::swap(a,b);
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_cxx_try_compile "$LINENO"; then :
6700 ac_cv_std_swap_in_utility=yes
6701 else
6702 ac_cv_std_swap_in_utility=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6707 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6708 if test $ac_cv_std_swap_in_utility = yes; then
6709
6710 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6711
6712 fi
6713
6714 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6715 # If the host compiler is affected by the bug, and we build with optimization
6716 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6717 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6718 # Since there is no reliable feature check for the presence of this bug,
6719 # we simply use a GCC version number check. (This should never trigger for
6720 # stages 2 or 3 of a native bootstrap.)
6721 aliasing_flags=
6722 if test "$GCC" = yes; then
6723 saved_CXXFLAGS="$CXXFLAGS"
6724
6725 # The following test compilation will succeed if and only if $CXX accepts
6726 # -fno-strict-aliasing *and* is older than GCC 4.3.
6727 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6729 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732
6733 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6734 #error compiler not affected by placement new aliasing bug
6735 #endif
6736
6737 _ACEOF
6738 if ac_fn_cxx_try_compile "$LINENO"; then :
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6740 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747 CXXFLAGS="$saved_CXXFLAGS"
6748 fi
6749
6750
6751
6752
6753 # ---------------------
6754 # Warnings and checking
6755 # ---------------------
6756
6757 # Check $CC warning features (if it's GCC).
6758 # We want to use -pedantic, but we don't want warnings about
6759 # * 'long long'
6760 # * variadic macros
6761 # * overlong strings
6762 # * C++11 narrowing conversions in { }
6763 # So, we only use -pedantic if we can disable those warnings.
6764
6765 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6766 # Check whether --enable-build-format-warnings was given.
6767 if test "${enable_build_format_warnings+set}" = set; then :
6768 enableval=$enable_build_format_warnings;
6769 else
6770 enable_build_format_warnings=yes
6771 fi
6772
6773 if test $enable_build_format_warnings = no; then :
6774 wf_opt=-Wno-format
6775 else
6776 wf_opt=
6777 fi
6778 ac_ext=cpp
6779 ac_cpp='$CXXCPP $CPPFLAGS'
6780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6783
6784 loose_warn=
6785 save_CXXFLAGS="$CXXFLAGS"
6786 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6787 # Do the check with the no- prefix removed since gcc silently
6788 # accepts any -Wno-* option on purpose
6789 case $real_option in
6790 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6791 *) option=$real_option ;;
6792 esac
6793 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6796 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6797 if eval \${$as_acx_Woption+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 CXXFLAGS="$option"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_cxx_try_compile "$LINENO"; then :
6813 eval "$as_acx_Woption=yes"
6814 else
6815 eval "$as_acx_Woption=no"
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818
6819 fi
6820 eval ac_res=\$$as_acx_Woption
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6822 $as_echo "$ac_res" >&6; }
6823 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6824 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6825 fi
6826 done
6827 CXXFLAGS="$save_CXXFLAGS"
6828 ac_ext=cpp
6829 ac_cpp='$CXXCPP $CPPFLAGS'
6830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6833
6834
6835
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 c_loose_warn=
6843 save_CFLAGS="$CFLAGS"
6844 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6845 # Do the check with the no- prefix removed since gcc silently
6846 # accepts any -Wno-* option on purpose
6847 case $real_option in
6848 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6849 *) option=$real_option ;;
6850 esac
6851 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6854 $as_echo_n "checking whether $CC supports $option... " >&6; }
6855 if eval \${$as_acx_Woption+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 CFLAGS="$option"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 eval "$as_acx_Woption=yes"
6872 else
6873 eval "$as_acx_Woption=no"
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876
6877 fi
6878 eval ac_res=\$$as_acx_Woption
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6882 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6883 fi
6884 done
6885 CFLAGS="$save_CFLAGS"
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891
6892
6893 ac_ext=cpp
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6898
6899 strict_warn=
6900 save_CXXFLAGS="$CXXFLAGS"
6901 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6902 # Do the check with the no- prefix removed since gcc silently
6903 # accepts any -Wno-* option on purpose
6904 case $real_option in
6905 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6906 *) option=$real_option ;;
6907 esac
6908 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6911 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6912 if eval \${$as_acx_Woption+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 CXXFLAGS="$option"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_cxx_try_compile "$LINENO"; then :
6928 eval "$as_acx_Woption=yes"
6929 else
6930 eval "$as_acx_Woption=no"
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933
6934 fi
6935 eval ac_res=\$$as_acx_Woption
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937 $as_echo "$ac_res" >&6; }
6938 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6939 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6940 fi
6941 done
6942 CXXFLAGS="$save_CXXFLAGS"
6943 ac_ext=cpp
6944 ac_cpp='$CXXCPP $CPPFLAGS'
6945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948
6949
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 c_strict_warn=
6957 save_CFLAGS="$CFLAGS"
6958 for real_option in -Wold-style-definition -Wc++-compat; do
6959 # Do the check with the no- prefix removed since gcc silently
6960 # accepts any -Wno-* option on purpose
6961 case $real_option in
6962 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6963 *) option=$real_option ;;
6964 esac
6965 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6968 $as_echo_n "checking whether $CC supports $option... " >&6; }
6969 if eval \${$as_acx_Woption+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 CFLAGS="$option"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975
6976 int
6977 main ()
6978 {
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 eval "$as_acx_Woption=yes"
6986 else
6987 eval "$as_acx_Woption=no"
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991 fi
6992 eval ac_res=\$$as_acx_Woption
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6994 $as_echo "$ac_res" >&6; }
6995 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6996 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6997 fi
6998 done
6999 CFLAGS="$save_CFLAGS"
7000 ac_ext=cpp
7001 ac_cpp='$CXXCPP $CPPFLAGS'
7002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7005
7006
7007 ac_ext=cpp
7008 ac_cpp='$CXXCPP $CPPFLAGS'
7009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7012
7013 # Do the check with the no- prefix removed from the warning options
7014 # since gcc silently accepts any -Wno-* option on purpose
7015 if test "$GXX" = yes; then :
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7017 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7018 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 save_CXXFLAGS="$CXXFLAGS"
7022 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_cxx_try_compile "$LINENO"; then :
7035 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7036 else
7037 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 CXXFLAGS="$save_CXXFLAGS"
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7043 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7044 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7045 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7046 fi
7047
7048 fi
7049 ac_ext=cpp
7050 ac_cpp='$CXXCPP $CPPFLAGS'
7051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7054
7055
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7061
7062 # Check whether --enable-werror-always was given.
7063 if test "${enable_werror_always+set}" = set; then :
7064 enableval=$enable_werror_always;
7065 else
7066 enable_werror_always=no
7067 fi
7068
7069 if test $enable_werror_always = yes; then :
7070 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7071 fi
7072
7073 ac_ext=cpp
7074 ac_cpp='$CXXCPP $CPPFLAGS'
7075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7078
7079
7080
7081 # The above macros do nothing if the compiler is not GCC. However, the
7082 # Makefile has more goo to add other flags, so these variables are used
7083 # to enable warnings only for GCC.
7084 warn_cflags=
7085 warn_cxxflags=
7086 if test "x$GCC" = "xyes"; then
7087 warn_cflags='$(GCC_WARN_CFLAGS)'
7088 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7089 fi
7090
7091
7092
7093 # Disable exceptions and RTTI if building with g++
7094 ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100 noexception_flags=
7101 save_CFLAGS="$CFLAGS"
7102 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7103 # Do the check with the no- prefix removed since gcc silently
7104 # accepts any -Wno-* option on purpose
7105 case $real_option in
7106 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7107 *) option=$real_option ;;
7108 esac
7109 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7112 $as_echo_n "checking whether $CC supports $option... " >&6; }
7113 if eval \${$as_acx_Woption+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 CFLAGS="$option"
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119
7120 int
7121 main ()
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 eval "$as_acx_Woption=yes"
7130 else
7131 eval "$as_acx_Woption=no"
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134
7135 fi
7136 eval ac_res=\$$as_acx_Woption
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7138 $as_echo "$ac_res" >&6; }
7139 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7140 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7141 fi
7142 done
7143 CFLAGS="$save_CFLAGS"
7144 ac_ext=cpp
7145 ac_cpp='$CXXCPP $CPPFLAGS'
7146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7149
7150
7151
7152 # Enable expensive internal checks
7153 is_release=
7154 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7155 is_release=yes
7156 fi
7157
7158 # Check whether --enable-checking was given.
7159 if test "${enable_checking+set}" = set; then :
7160 enableval=$enable_checking; ac_checking_flags="${enableval}"
7161 else
7162
7163 # Determine the default checks.
7164 if test x$is_release = x ; then
7165 ac_checking_flags=yes,extra
7166 else
7167 ac_checking_flags=release
7168 fi
7169 fi
7170
7171 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7172 for check in release $ac_checking_flags
7173 do
7174 case $check in
7175 # these set all the flags to specific states
7176 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7177 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7178 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7179 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7180 ac_tree_checking=1 ; ac_valgrind_checking= ;
7181 ac_types_checking=1 ;;
7182 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7183 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7184 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7185 ac_rtlflag_checking= ; ac_runtime_checking= ;
7186 ac_tree_checking= ; ac_valgrind_checking= ;
7187 ac_types_checking= ;;
7188 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7189 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7190 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7191 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7192 ac_tree_checking=1 ; ac_valgrind_checking= ;
7193 ac_types_checking=1 ;;
7194 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7195 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7196 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7197 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7198 ac_tree_checking= ; ac_valgrind_checking= ;
7199 ac_types_checking= ;;
7200 # these enable particular checks
7201 assert) ac_assert_checking=1 ;;
7202 df) ac_df_checking=1 ;;
7203 extra) ac_extra_checking=1 ;;
7204 fold) ac_fold_checking=1 ;;
7205 gc) ac_gc_checking=1 ;;
7206 gcac) ac_gc_always_collect=1 ;;
7207 gimple) ac_gimple_checking=1 ;;
7208 misc) ac_checking=1 ;;
7209 rtl) ac_rtl_checking=1 ;;
7210 rtlflag) ac_rtlflag_checking=1 ;;
7211 runtime) ac_runtime_checking=1 ;;
7212 tree) ac_tree_checking=1 ;;
7213 types) ac_types_checking=1 ;;
7214 valgrind) ac_valgrind_checking=1 ;;
7215 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7216 esac
7217 done
7218 IFS="$ac_save_IFS"
7219
7220 nocommon_flag=""
7221 if test x$ac_checking != x ; then
7222
7223 $as_echo "#define CHECKING_P 1" >>confdefs.h
7224
7225 nocommon_flag=-fno-common
7226 else
7227 $as_echo "#define CHECKING_P 0" >>confdefs.h
7228
7229 fi
7230
7231 if test x$ac_extra_checking != x ; then
7232
7233 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7234
7235 else
7236 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7237
7238 fi
7239 if test x$ac_df_checking != x ; then
7240
7241 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7242
7243 fi
7244 if test x$ac_assert_checking != x ; then
7245
7246 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7247
7248 fi
7249 if test x$ac_gimple_checking != x ; then
7250
7251 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7252
7253 fi
7254
7255 if test x$ac_runtime_checking != x ; then
7256
7257 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7258
7259 fi
7260 if test x$ac_tree_checking != x ; then
7261
7262 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7263
7264 TREECHECKING=yes
7265 fi
7266 if test x$ac_types_checking != x ; then
7267
7268 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7269
7270 fi
7271
7272 if test x$ac_rtl_checking != x ; then
7273
7274 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7275
7276 fi
7277 if test x$ac_rtlflag_checking != x ; then
7278
7279 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7280
7281 fi
7282 if test x$ac_gc_checking != x ; then
7283
7284 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7285
7286 fi
7287 if test x$ac_gc_always_collect != x ; then
7288
7289 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7290
7291 fi
7292 if test x$ac_fold_checking != x ; then
7293
7294 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7295
7296 fi
7297 valgrind_path_defines=
7298 valgrind_command=
7299
7300 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7301 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7302 have_valgrind_h=yes
7303 else
7304 have_valgrind_h=no
7305 fi
7306
7307
7308
7309 # It is certainly possible that there's valgrind but no valgrind.h.
7310 # GCC relies on making annotations so we must have both.
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7312 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <valgrind/memcheck.h>
7316 #ifndef VALGRIND_DISCARD
7317 #error VALGRIND_DISCARD not defined
7318 #endif
7319 _ACEOF
7320 if ac_fn_cxx_try_cpp "$LINENO"; then :
7321 gcc_cv_header_valgrind_memcheck_h=yes
7322 else
7323 gcc_cv_header_valgrind_memcheck_h=no
7324 fi
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7327 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7329 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #include <memcheck.h>
7333 #ifndef VALGRIND_DISCARD
7334 #error VALGRIND_DISCARD not defined
7335 #endif
7336 _ACEOF
7337 if ac_fn_cxx_try_cpp "$LINENO"; then :
7338 gcc_cv_header_memcheck_h=yes
7339 else
7340 gcc_cv_header_memcheck_h=no
7341 fi
7342 rm -f conftest.err conftest.i conftest.$ac_ext
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7344 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7345 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7346
7347 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7348
7349 fi
7350 if test $gcc_cv_header_memcheck_h = yes; then
7351
7352 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7353
7354 fi
7355
7356 if test x$ac_valgrind_checking != x ; then
7357
7358 # Prepare PATH_SEPARATOR.
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361 echo "#! /bin/sh" >conf$$.sh
7362 echo "exit 0" >>conf$$.sh
7363 chmod +x conf$$.sh
7364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7365 PATH_SEPARATOR=';'
7366 else
7367 PATH_SEPARATOR=:
7368 fi
7369 rm -f conf$$.sh
7370 fi
7371
7372 # Find out how to test for executable files. Don't use a zero-byte file,
7373 # as systems may use methods other than mode bits to determine executability.
7374 cat >conf$$.file <<_ASEOF
7375 #! /bin/sh
7376 exit 0
7377 _ASEOF
7378 chmod +x conf$$.file
7379 if test -x conf$$.file >/dev/null 2>&1; then
7380 ac_executable_p="test -x"
7381 else
7382 ac_executable_p="test -f"
7383 fi
7384 rm -f conf$$.file
7385
7386 # Extract the first word of "valgrind", so it can be a program name with args.
7387 set dummy valgrind; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_path_valgrind_path+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 case "$valgrind_path" in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7396 ;;
7397 *)
7398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7399 for ac_dir in $PATH; do
7400 IFS="$ac_save_IFS"
7401 test -z "$ac_dir" && ac_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7404 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7405 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7406 break 2
7407 fi
7408 fi
7409 done
7410 done
7411 IFS="$ac_save_IFS"
7412 ;;
7413 esac
7414 fi
7415 valgrind_path="$ac_cv_path_valgrind_path"
7416 if test -n "$valgrind_path"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7418 $as_echo "$valgrind_path" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424 if test "x$valgrind_path" = "x" \
7425 || (test $have_valgrind_h = no \
7426 && test $gcc_cv_header_memcheck_h = no \
7427 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7428 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7429 fi
7430 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7431 valgrind_command="$valgrind_path -q"
7432
7433 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7434
7435 fi
7436
7437
7438
7439 # Enable code coverage collection
7440 # Check whether --enable-coverage was given.
7441 if test "${enable_coverage+set}" = set; then :
7442 enableval=$enable_coverage; case "${enableval}" in
7443 yes|noopt)
7444 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7445 ;;
7446 opt)
7447 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7448 ;;
7449 no)
7450 # a.k.a. --disable-coverage
7451 coverage_flags=""
7452 ;;
7453 *)
7454 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7455 ;;
7456 esac
7457 else
7458 coverage_flags=""
7459 fi
7460
7461
7462
7463 # Check whether --enable-gather-detailed-mem-stats was given.
7464 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7465 enableval=$enable_gather_detailed_mem_stats;
7466 else
7467 enable_gather_detailed_mem_stats=no
7468 fi
7469
7470 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define GATHER_STATISTICS $gather_stats
7474 _ACEOF
7475
7476
7477 # Check whether --enable-valgrind-annotations was given.
7478 if test "${enable_valgrind_annotations+set}" = set; then :
7479 enableval=$enable_valgrind_annotations;
7480 else
7481 enable_valgrind_annotations=no
7482 fi
7483
7484 if test x$enable_valgrind_annotations != xno \
7485 || test x$ac_valgrind_checking != x; then
7486 if (test $have_valgrind_h = no \
7487 && test $gcc_cv_header_memcheck_h = no \
7488 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7489 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7490 fi
7491
7492 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7493
7494 fi
7495
7496 # -------------------------------
7497 # Miscenalleous configure options
7498 # -------------------------------
7499
7500 # With stabs
7501
7502 # Check whether --with-stabs was given.
7503 if test "${with_stabs+set}" = set; then :
7504 withval=$with_stabs; stabs="$with_stabs"
7505 else
7506 stabs=no
7507 fi
7508
7509
7510 # Determine whether or not multilibs are enabled.
7511 # Check whether --enable-multilib was given.
7512 if test "${enable_multilib+set}" = set; then :
7513 enableval=$enable_multilib;
7514 else
7515 enable_multilib=yes
7516 fi
7517
7518
7519
7520 # Determine whether or not multiarch is enabled.
7521 # Check whether --enable-multiarch was given.
7522 if test "${enable_multiarch+set}" = set; then :
7523 enableval=$enable_multiarch; case "${enableval}" in
7524 yes|no|auto) enable_multiarch=$enableval;;
7525 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7526 esac
7527 else
7528 enable_multiarch=auto
7529 fi
7530
7531 if test x${enable_multiarch} = xauto; then
7532 if test x${with_native_system_header_dir} != x; then
7533 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7534 enable_multiarch=no
7535 fi
7536 if test x$host != x$target && test "x$with_sysroot" = x; then
7537 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7538 enable_multiarch=no
7539 fi
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7542 $as_echo_n "checking for multiarch configuration... " >&6; }
7543
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7545 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7546
7547 # needed for setting the multiarch name for soft-float/hard-float ABIs
7548
7549
7550
7551 # default stack clash protection guard size as power of twos in bytes.
7552 # Please keep these in sync with params.def.
7553 stk_clash_min=12
7554 stk_clash_max=30
7555
7556 # Keep the default value when the option is not used to 0, this allows us to
7557 # distinguish between the cases where the user specifially set a value via
7558 # configure and when the normal default value is used.
7559
7560 # Check whether --with-stack-clash-protection-guard-size was given.
7561 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7562 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7563 else
7564 DEFAULT_STK_CLASH_GUARD_SIZE=0
7565 fi
7566
7567 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7568 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7569 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7570 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
7571 fi
7572
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7576 _ACEOF
7577
7578
7579 # Enable __cxa_atexit for C++.
7580 # Check whether --enable-__cxa_atexit was given.
7581 if test "${enable___cxa_atexit+set}" = set; then :
7582 enableval=$enable___cxa_atexit;
7583 fi
7584
7585
7586 # Enable C extension for decimal float if target supports it.
7587
7588 # Check whether --enable-decimal-float was given.
7589 if test "${enable_decimal_float+set}" = set; then :
7590 enableval=$enable_decimal_float;
7591 case $enable_decimal_float in
7592 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7593 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7594 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7595 esac
7596
7597 else
7598
7599 case $target in
7600 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7601 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7602 i?86*-*-mingw* | x86_64*-*-mingw* | \
7603 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7604 enable_decimal_float=yes
7605 ;;
7606 *)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7608 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7609 enable_decimal_float=no
7610 ;;
7611 esac
7612
7613 fi
7614
7615
7616 # x86's use BID format instead of DPD
7617 case x$enable_decimal_float in
7618 xyes)
7619 case $target in
7620 i?86*-*-* | x86_64*-*-*)
7621 enable_decimal_float=bid
7622 ;;
7623 *)
7624 enable_decimal_float=dpd
7625 ;;
7626 esac
7627 default_decimal_float=$enable_decimal_float
7628 ;;
7629 xno)
7630 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7631 # dependency on libdecnumber.
7632 default_decimal_float=dpd
7633 ;;
7634 esac
7635
7636
7637
7638
7639 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define ENABLE_DECIMAL_FLOAT $dfp
7643 _ACEOF
7644
7645
7646 # Use default_decimal_float for dependency.
7647 enable_decimal_float=$default_decimal_float
7648
7649 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7650
7651 cat >>confdefs.h <<_ACEOF
7652 #define ENABLE_DECIMAL_BID_FORMAT $bid
7653 _ACEOF
7654
7655
7656 # Enable C extension for fixed-point arithmetic.
7657 # Check whether --enable-fixed-point was given.
7658 if test "${enable_fixed_point+set}" = set; then :
7659 enableval=$enable_fixed_point;
7660 else
7661
7662 case $target in
7663 arm*)
7664 enable_fixed_point=yes
7665 ;;
7666
7667 mips*-*-*)
7668 enable_fixed_point=yes
7669 ;;
7670 *)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7672 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7673 enable_fixed_point=no
7674 ;;
7675 esac
7676
7677 fi
7678
7679
7680
7681 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7682
7683 cat >>confdefs.h <<_ACEOF
7684 #define ENABLE_FIXED_POINT $fixedpoint
7685 _ACEOF
7686
7687
7688 # Enable threads
7689 # Pass with no value to take the default
7690 # Pass with a value to specify a thread package
7691 # Check whether --enable-threads was given.
7692 if test "${enable_threads+set}" = set; then :
7693 enableval=$enable_threads;
7694 else
7695 enable_threads=''
7696 fi
7697
7698
7699 # Check whether --enable-tls was given.
7700 if test "${enable_tls+set}" = set; then :
7701 enableval=$enable_tls;
7702 case $enable_tls in
7703 yes | no) ;;
7704 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7705 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7706 esac
7707
7708 else
7709 enable_tls=''
7710 fi
7711
7712
7713 # Check whether --enable-vtable-verify was given.
7714 if test "${enable_vtable_verify+set}" = set; then :
7715 enableval=$enable_vtable_verify;
7716 else
7717 enable_vtable_verify=no
7718 fi
7719
7720 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define ENABLE_VTABLE_VERIFY $vtable_verify
7724 _ACEOF
7725
7726
7727 # Check whether --enable-analyzer was given.
7728 if test "${enable_analyzer+set}" = set; then :
7729 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7730 analyzer=0
7731 else
7732 analyzer=1
7733 fi
7734 else
7735 analyzer=1
7736 fi
7737
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define ENABLE_ANALYZER $analyzer
7741 _ACEOF
7742
7743
7744 # Check whether --enable-objc-gc was given.
7745 if test "${enable_objc_gc+set}" = set; then :
7746 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7747 objc_boehm_gc=''
7748 else
7749 objc_boehm_gc=1
7750 fi
7751 else
7752 objc_boehm_gc=''
7753 fi
7754
7755
7756
7757 # Check whether --with-dwarf2 was given.
7758 if test "${with_dwarf2+set}" = set; then :
7759 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7760 else
7761 dwarf2=no
7762 fi
7763
7764
7765 # Check whether --enable-shared was given.
7766 if test "${enable_shared+set}" = set; then :
7767 enableval=$enable_shared;
7768 case $enable_shared in
7769 yes | no) ;;
7770 *)
7771 enable_shared=no
7772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7773 for pkg in $enableval; do
7774 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7775 enable_shared=yes
7776 fi
7777 done
7778 IFS="$ac_save_ifs"
7779 ;;
7780 esac
7781
7782 else
7783 enable_shared=yes
7784 fi
7785
7786
7787
7788 # Check whether --enable-gcov was given.
7789 if test "${enable_gcov+set}" = set; then :
7790 enableval=$enable_gcov;
7791 else
7792 enable_gcov=yes
7793 fi
7794
7795
7796
7797
7798 # Check whether --with-specs was given.
7799 if test "${with_specs+set}" = set; then :
7800 withval=$with_specs; CONFIGURE_SPECS=$withval
7801 else
7802 CONFIGURE_SPECS=
7803
7804 fi
7805
7806
7807
7808
7809
7810 # Check whether --with-pkgversion was given.
7811 if test "${with_pkgversion+set}" = set; then :
7812 withval=$with_pkgversion; case "$withval" in
7813 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7814 no) PKGVERSION= ;;
7815 *) PKGVERSION="($withval) " ;;
7816 esac
7817 else
7818 PKGVERSION="(GCC) "
7819
7820 fi
7821
7822
7823
7824
7825
7826 # Check whether --with-bugurl was given.
7827 if test "${with_bugurl+set}" = set; then :
7828 withval=$with_bugurl; case "$withval" in
7829 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7830 no) BUGURL=
7831 ;;
7832 *) BUGURL="$withval"
7833 ;;
7834 esac
7835 else
7836 BUGURL="https://gcc.gnu.org/bugs/"
7837
7838 fi
7839
7840 case ${BUGURL} in
7841 "")
7842 REPORT_BUGS_TO=
7843 REPORT_BUGS_TEXI=
7844 ;;
7845 *)
7846 REPORT_BUGS_TO="<$BUGURL>"
7847 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7848 ;;
7849 esac;
7850
7851
7852
7853
7854 # Allow overriding the default URL for documentation
7855
7856 # Check whether --with-documentation-root-url was given.
7857 if test "${with_documentation_root_url+set}" = set; then :
7858 withval=$with_documentation_root_url; case "$withval" in
7859 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7860 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7861 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7862 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7863 esac
7864 else
7865 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7866
7867 fi
7868
7869
7870 cat >>confdefs.h <<_ACEOF
7871 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7872 _ACEOF
7873
7874
7875 # Allow overriding the default URL for GCC changes
7876
7877 # Check whether --with-changes-root-url was given.
7878 if test "${with_changes_root_url+set}" = set; then :
7879 withval=$with_changes_root_url; case "$withval" in
7880 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7881 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7882 */) CHANGES_ROOT_URL="$withval" ;;
7883 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7884 esac
7885 else
7886 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7887
7888 fi
7889
7890
7891 cat >>confdefs.h <<_ACEOF
7892 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7893 _ACEOF
7894
7895
7896 # Sanity check enable_languages in case someone does not run the toplevel
7897 # configure # script.
7898 # Check whether --enable-languages was given.
7899 if test "${enable_languages+set}" = set; then :
7900 enableval=$enable_languages; case ,${enable_languages}, in
7901 ,,|,yes,)
7902 # go safe -- we cannot be much sure without the toplevel
7903 # configure's
7904 # analysis of which target libs are present and usable
7905 enable_languages=c
7906 ;;
7907 *,all,*)
7908 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7909 ;;
7910 *,c,*)
7911 ;;
7912 *)
7913 enable_languages=c,${enable_languages}
7914 ;;
7915 esac
7916 else
7917 enable_languages=c
7918 fi
7919
7920
7921 # If top-level libada has been disabled, then wire in install-gnatlib
7922 # invocation with `make install', so that one can build and install
7923 # the library manually with `make -C gcc all gnatlib gnattools install'.
7924 if test x"$enable_libada" = xno; then
7925 gnat_install_lib=gnat-install-lib
7926 else
7927 gnat_install_lib=
7928 fi
7929
7930
7931 if test x"$enable_as_accelerator_for" != x; then
7932
7933 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7934
7935 enable_as_accelerator=yes
7936 case "${target}" in
7937 *-intelmicemul-*)
7938 # In this case we expect offload compiler to be built as native, so we
7939 # need to rename the driver to avoid clashes with host's drivers.
7940 program_transform_name="s&^&${target}-&" ;;
7941 esac
7942 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7943 program_transform_name=`echo $program_transform_name | sed $sedscript`
7944 accel_dir_suffix=/accel/${target_noncanonical}
7945 real_target_noncanonical=${enable_as_accelerator_for}
7946 fi
7947
7948
7949
7950
7951 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7952 tgt=`echo $tgt | sed 's/=.*//'`
7953
7954 enable_offloading=1
7955 case "$tgt" in
7956 *-intelmic-* | *-intelmicemul-*)
7957 omp_device_property=omp-device-properties-i386
7958 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7959 ;;
7960 amdgcn*)
7961 omp_device_property=omp-device-properties-gcn
7962 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7963 ;;
7964 nvptx*)
7965 omp_device_property=omp-device-properties-nvptx
7966 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7967 ;;
7968 *)
7969 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7970 ;;
7971 esac
7972 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7973 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7974
7975 if test x"$offload_targets" = x; then
7976 offload_targets=$tgt
7977 else
7978 offload_targets="$offload_targets,$tgt"
7979 fi
7980 done
7981
7982
7983
7984
7985 cat >>confdefs.h <<_ACEOF
7986 #define OFFLOAD_TARGETS "$offload_targets"
7987 _ACEOF
7988
7989 if test x"$enable_offloading" != x; then
7990
7991 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7992
7993 else
7994
7995 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7996
7997 fi
7998
7999
8000 # Check whether --with-multilib-list was given.
8001 if test "${with_multilib_list+set}" = set; then :
8002 withval=$with_multilib_list; :
8003 else
8004 with_multilib_list=default
8005 fi
8006
8007
8008
8009 # Check whether --with-multilib-generator was given.
8010 if test "${with_multilib_generator+set}" = set; then :
8011 withval=$with_multilib_generator; :
8012 else
8013 with_multilib_generator=default
8014 fi
8015
8016
8017 # -------------------------
8018 # Checks for other programs
8019 # -------------------------
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8023 set x ${MAKE-make}
8024 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8025 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat >conftest.make <<\_ACEOF
8029 SHELL = /bin/sh
8030 all:
8031 @echo '@@@%%%=$(MAKE)=@@@%%%'
8032 _ACEOF
8033 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8035 *@@@%%%=?*=@@@%%%*)
8036 eval ac_cv_prog_make_${ac_make}_set=yes;;
8037 *)
8038 eval ac_cv_prog_make_${ac_make}_set=no;;
8039 esac
8040 rm -f conftest.make
8041 fi
8042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044 $as_echo "yes" >&6; }
8045 SET_MAKE=
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 SET_MAKE="MAKE=${MAKE-make}"
8050 fi
8051
8052
8053 # Find some useful tools
8054 for ac_prog in gawk mawk nawk awk
8055 do
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy $ac_prog; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_AWK+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$AWK"; then
8064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_AWK="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 AWK=$ac_cv_prog_AWK
8084 if test -n "$AWK"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8086 $as_echo "$AWK" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 test -n "$AWK" && break
8094 done
8095
8096 # We need awk to create options.c and options.h.
8097 # Bail out if it's missing.
8098 case ${AWK} in
8099 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8100 esac
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8103 $as_echo_n "checking whether ln -s works... " >&6; }
8104 if ${gcc_cv_prog_LN_S+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 rm -f conftestdata_t
8108 echo >conftestdata_f
8109 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8110 then
8111 gcc_cv_prog_LN_S="ln -s"
8112 else
8113 if ln conftestdata_f conftestdata_t 2>/dev/null
8114 then
8115 gcc_cv_prog_LN_S=ln
8116 else
8117 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8118 then
8119 gcc_cv_prog_LN_S="cp -p"
8120 else
8121 gcc_cv_prog_LN_S=cp
8122 fi
8123 fi
8124 fi
8125 rm -f conftestdata_f conftestdata_t
8126
8127 fi
8128 LN_S="$gcc_cv_prog_LN_S"
8129 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 else
8133 if test "$gcc_cv_prog_LN_S" = "ln"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8135 $as_echo "no, using ln" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8138 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8139 fi
8140 fi
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8143 $as_echo_n "checking whether ln works... " >&6; }
8144 if ${acx_cv_prog_LN+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 rm -f conftestdata_t
8148 echo >conftestdata_f
8149 if ln conftestdata_f conftestdata_t 2>/dev/null
8150 then
8151 acx_cv_prog_LN=ln
8152 else
8153 acx_cv_prog_LN=no
8154 fi
8155 rm -f conftestdata_f conftestdata_t
8156
8157 fi
8158 if test $acx_cv_prog_LN = no; then
8159 LN="$LN_S"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8161 $as_echo "no, using $LN" >&6; }
8162 else
8163 LN="$acx_cv_prog_LN"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8165 $as_echo "yes" >&6; }
8166 fi
8167
8168 if test -n "$ac_tool_prefix"; then
8169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_RANLIB+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$RANLIB"; then
8177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi
8195 fi
8196 RANLIB=$ac_cv_prog_RANLIB
8197 if test -n "$RANLIB"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8199 $as_echo "$RANLIB" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205
8206 fi
8207 if test -z "$ac_cv_prog_RANLIB"; then
8208 ac_ct_RANLIB=$RANLIB
8209 # Extract the first word of "ranlib", so it can be a program name with args.
8210 set dummy ranlib; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$ac_ct_RANLIB"; then
8217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_RANLIB="ranlib"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8237 if test -n "$ac_ct_RANLIB"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8239 $as_echo "$ac_ct_RANLIB" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245 if test "x$ac_ct_RANLIB" = x; then
8246 RANLIB=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249 yes:)
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254 RANLIB=$ac_ct_RANLIB
8255 fi
8256 else
8257 RANLIB="$ac_cv_prog_RANLIB"
8258 fi
8259
8260 ranlib_flags=""
8261
8262
8263 # Find a good install program. We prefer a C program (faster),
8264 # so one script is as good as another. But avoid the broken or
8265 # incompatible versions:
8266 # SysV /etc/install, /usr/sbin/install
8267 # SunOS /usr/etc/install
8268 # IRIX /sbin/install
8269 # AIX /bin/install
8270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8272 # ./install, which can be erroneously created by make from ./install.sh.
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8274 $as_echo_n "checking for a BSD compatible install... " >&6; }
8275 if test -z "$INSTALL"; then
8276 if ${ac_cv_path_install+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8280 for ac_dir in $PATH; do
8281 # Account for people who put trailing slashes in PATH elements.
8282 case "$ac_dir/" in
8283 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8284 *)
8285 # OSF1 and SCO ODT 3.0 have their own names for install.
8286 for ac_prog in ginstall scoinst install; do
8287 if test -f $ac_dir/$ac_prog; then
8288 if test $ac_prog = install &&
8289 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8290 # AIX install. It has an incompatible calling convention.
8291 # OSF/1 installbsd also uses dspmsg, but is usable.
8292 :
8293 else
8294 ac_cv_path_install="$ac_dir/$ac_prog -c"
8295 break 2
8296 fi
8297 fi
8298 done
8299 ;;
8300 esac
8301 done
8302 IFS="$ac_save_IFS"
8303
8304 fi
8305 if test "${ac_cv_path_install+set}" = set; then
8306 INSTALL="$ac_cv_path_install"
8307 else
8308 # As a last resort, use the slow shell script. We don't cache a
8309 # path for INSTALL within a source directory, because that will
8310 # break other packages using the cache if that directory is
8311 # removed, or if the path is relative.
8312 INSTALL="$ac_install_sh"
8313 fi
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8316 $as_echo "$INSTALL" >&6; }
8317
8318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8319 # It thinks the first close brace ends the variable substitution.
8320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8321
8322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8323
8324
8325 # See if cmp has --ignore-initial.
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8327 $as_echo_n "checking for cmp's capabilities... " >&6; }
8328 if ${gcc_cv_prog_cmp_skip+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 echo abfoo >t1
8332 echo cdfoo >t2
8333 gcc_cv_prog_cmp_skip=slowcompare
8334 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8335 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8336 :
8337 else
8338 gcc_cv_prog_cmp_skip=gnucompare
8339 fi
8340 fi
8341 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8344 :
8345 else
8346 gcc_cv_prog_cmp_skip=fastcompare
8347 fi
8348 fi
8349 fi
8350 rm t1 t2
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8354 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8355 make_compare_target=$gcc_cv_prog_cmp_skip
8356
8357
8358
8359 # See if we have the mktemp command.
8360 # Extract the first word of "mktemp", so it can be a program name with args.
8361 set dummy mktemp; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$have_mktemp_command"; then
8368 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_have_mktemp_command="yes"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8386 fi
8387 fi
8388 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8389 if test -n "$have_mktemp_command"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8391 $as_echo "$have_mktemp_command" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398
8399 # See if makeinfo has been installed and is modern enough
8400 # that we can use it.
8401
8402 # Extract the first word of "makeinfo", so it can be a program name with args.
8403 set dummy makeinfo; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_prog_MAKEINFO+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$MAKEINFO"; then
8410 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_MAKEINFO="makeinfo"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 MAKEINFO=$ac_cv_prog_MAKEINFO
8430 if test -n "$MAKEINFO"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8432 $as_echo "$MAKEINFO" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 if test -n "$MAKEINFO"; then
8440 # Found it, now check the version.
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8442 $as_echo_n "checking for modern makeinfo... " >&6; }
8443 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8447 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8448
8449 case $ac_prog_version in
8450 '') gcc_cv_prog_makeinfo_modern=no;;
8451 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8452 *) gcc_cv_prog_makeinfo_modern=no;;
8453 esac
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8457 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8458 else
8459 gcc_cv_prog_makeinfo_modern=no
8460 fi
8461 if test $gcc_cv_prog_makeinfo_modern = no; then
8462 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8463 fi
8464
8465 if test $gcc_cv_prog_makeinfo_modern = no; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8467 *** Makeinfo is missing or too old.
8468 *** Info documentation will not be built." >&5
8469 $as_echo "$as_me: WARNING:
8470 *** Makeinfo is missing or too old.
8471 *** Info documentation will not be built." >&2;}
8472 BUILD_INFO=
8473 else
8474 BUILD_INFO=info
8475 fi
8476
8477
8478 # Is pod2man recent enough to regenerate manpages?
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8480 $as_echo_n "checking for recent Pod::Man... " >&6; }
8481 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8484 GENERATED_MANPAGES=generated-manpages
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 GENERATED_MANPAGES=
8489 fi
8490
8491
8492 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8493
8494 # How about lex?
8495 for ac_prog in flex
8496 do
8497 # Extract the first word of "$ac_prog", so it can be a program name with args.
8498 set dummy $ac_prog; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_FLEX+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$FLEX"; then
8505 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_FLEX="$ac_prog"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 FLEX=$ac_cv_prog_FLEX
8525 if test -n "$FLEX"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8527 $as_echo "$FLEX" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534 test -n "$FLEX" && break
8535 done
8536 test -n "$FLEX" || FLEX="$MISSING flex"
8537
8538
8539 # Bison?
8540 for ac_prog in bison
8541 do
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_BISON+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if test -n "$BISON"; then
8550 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_BISON="$ac_prog"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563 done
8564 done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 BISON=$ac_cv_prog_BISON
8570 if test -n "$BISON"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8572 $as_echo "$BISON" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579 test -n "$BISON" && break
8580 done
8581 test -n "$BISON" || BISON="$MISSING bison"
8582
8583
8584 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8585 # check for build == host before using them.
8586
8587 # NM
8588 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8589 && test -d ../binutils ; then
8590 NM='${objdir}/../binutils/nm-new'
8591 else
8592 # Extract the first word of "nm", so it can be a program name with args.
8593 set dummy nm; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_NM+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$NM"; then
8600 ac_cv_prog_NM="$NM" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_NM="nm"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8618 fi
8619 fi
8620 NM=$ac_cv_prog_NM
8621 if test -n "$NM"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8623 $as_echo "$NM" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630 fi
8631
8632 # AR
8633 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8634 && test -d ../binutils ; then
8635 AR='${objdir}/../binutils/ar'
8636 else
8637 # Extract the first word of "ar", so it can be a program name with args.
8638 set dummy ar; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_AR+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$AR"; then
8645 ac_cv_prog_AR="$AR" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_AR="ar"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658 done
8659 done
8660 IFS=$as_save_IFS
8661
8662 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8663 fi
8664 fi
8665 AR=$ac_cv_prog_AR
8666 if test -n "$AR"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8668 $as_echo "$AR" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675 fi
8676
8677 # The jit documentation looks better if built with sphinx, but can be
8678 # built with texinfo if sphinx is not available.
8679 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8680 # Extract the first word of "sphinx-build", so it can be a program name with args.
8681 set dummy sphinx-build; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_prog_doc_build_sys+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 if test -n "$doc_build_sys"; then
8688 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_doc_build_sys="sphinx"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701 done
8702 done
8703 IFS=$as_save_IFS
8704
8705 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8706 fi
8707 fi
8708 doc_build_sys=$ac_cv_prog_doc_build_sys
8709 if test -n "$doc_build_sys"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8711 $as_echo "$doc_build_sys" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718
8719 # --------------------
8720 # Checks for C headers
8721 # --------------------
8722
8723 # Need to reject headers which give warnings, so that the -Werror bootstrap
8724 # works later. *sigh* This needs to come before all header checks.
8725
8726 ac_c_preproc_warn_flag=yes
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8729 $as_echo_n "checking for ANSI C header files... " >&6; }
8730 if ${ac_cv_header_stdc+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <stdlib.h>
8736 #include <stdarg.h>
8737 #include <string.h>
8738 #include <float.h>
8739
8740 int
8741 main ()
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_cxx_try_compile "$LINENO"; then :
8749 ac_cv_header_stdc=yes
8750 else
8751 ac_cv_header_stdc=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754
8755 if test $ac_cv_header_stdc = yes; then
8756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #include <string.h>
8760
8761 _ACEOF
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "memchr" >/dev/null 2>&1; then :
8764
8765 else
8766 ac_cv_header_stdc=no
8767 fi
8768 rm -f conftest*
8769
8770 fi
8771
8772 if test $ac_cv_header_stdc = yes; then
8773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 #include <stdlib.h>
8777
8778 _ACEOF
8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780 $EGREP "free" >/dev/null 2>&1; then :
8781
8782 else
8783 ac_cv_header_stdc=no
8784 fi
8785 rm -f conftest*
8786
8787 fi
8788
8789 if test $ac_cv_header_stdc = yes; then
8790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8791 if test "$cross_compiling" = yes; then :
8792 :
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 #include <ctype.h>
8797 #include <stdlib.h>
8798 #if ((' ' & 0x0FF) == 0x020)
8799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8801 #else
8802 # define ISLOWER(c) \
8803 (('a' <= (c) && (c) <= 'i') \
8804 || ('j' <= (c) && (c) <= 'r') \
8805 || ('s' <= (c) && (c) <= 'z'))
8806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8807 #endif
8808
8809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8810 int
8811 main ()
8812 {
8813 int i;
8814 for (i = 0; i < 256; i++)
8815 if (XOR (islower (i), ISLOWER (i))
8816 || toupper (i) != TOUPPER (i))
8817 return 2;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_cxx_try_run "$LINENO"; then :
8822
8823 else
8824 ac_cv_header_stdc=no
8825 fi
8826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8827 conftest.$ac_objext conftest.beam conftest.$ac_ext
8828 fi
8829
8830 fi
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8833 $as_echo "$ac_cv_header_stdc" >&6; }
8834 if test $ac_cv_header_stdc = yes; then
8835
8836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8837
8838 fi
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8841 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8842 if ${ac_cv_header_time+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <sys/types.h>
8848 #include <sys/time.h>
8849 #include <time.h>
8850
8851 int
8852 main ()
8853 {
8854 if ((struct tm *) 0)
8855 return 0;
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_cxx_try_compile "$LINENO"; then :
8861 ac_cv_header_time=yes
8862 else
8863 ac_cv_header_time=no
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8868 $as_echo "$ac_cv_header_time" >&6; }
8869 if test $ac_cv_header_time = yes; then
8870
8871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8872
8873 fi
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8876 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8877 if ${gcc_cv_header_string+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <string.h>
8883 #include <strings.h>
8884 int
8885 main ()
8886 {
8887
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_cxx_try_compile "$LINENO"; then :
8893 gcc_cv_header_string=yes
8894 else
8895 gcc_cv_header_string=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8900 $as_echo "$gcc_cv_header_string" >&6; }
8901 if test $gcc_cv_header_string = yes; then
8902
8903 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8904
8905 fi
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8908 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8909 if ${ac_cv_header_sys_wait_h+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 #include <sys/wait.h>
8916 #ifndef WEXITSTATUS
8917 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8918 #endif
8919 #ifndef WIFEXITED
8920 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8921 #endif
8922
8923 int
8924 main ()
8925 {
8926 int s;
8927 wait (&s);
8928 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_cxx_try_compile "$LINENO"; then :
8934 ac_cv_header_sys_wait_h=yes
8935 else
8936 ac_cv_header_sys_wait_h=no
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8941 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8942 if test $ac_cv_header_sys_wait_h = yes; then
8943
8944 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8945
8946 fi
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8949 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8950 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #include <termios.h>
8957 #ifdef TIOCGWINSZ
8958 yes
8959 #endif
8960
8961 _ACEOF
8962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8963 $EGREP "yes" >/dev/null 2>&1; then :
8964 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8965 else
8966 ac_cv_sys_tiocgwinsz_in_termios_h=no
8967 fi
8968 rm -f conftest*
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8972 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8973
8974 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8976 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8977 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/ioctl.h>
8984 #ifdef TIOCGWINSZ
8985 yes
8986 #endif
8987
8988 _ACEOF
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "yes" >/dev/null 2>&1; then :
8991 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8992 else
8993 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8994 fi
8995 rm -f conftest*
8996
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8999 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9000
9001 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9002
9003 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9004
9005 fi
9006 fi
9007
9008 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9009 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9010 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9012 do :
9013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9014 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9016 cat >>confdefs.h <<_ACEOF
9017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 _ACEOF
9019
9020 fi
9021 done
9022
9023
9024 # Check for thread headers.
9025 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9026 if test "x$ac_cv_header_thread_h" = xyes; then :
9027 have_thread_h=yes
9028 else
9029 have_thread_h=
9030 fi
9031
9032 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9033 if test "x$ac_cv_header_pthread_h" = xyes; then :
9034 have_pthread_h=yes
9035 else
9036 have_pthread_h=
9037 fi
9038
9039
9040 # These tests can't be done till we know if we have limits.h.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9042 $as_echo_n "checking for CHAR_BIT... " >&6; }
9043 if ${gcc_cv_decl_char_bit+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #ifdef HAVE_LIMITS_H
9049 #include <limits.h>
9050 #endif
9051 #ifdef CHAR_BIT
9052 found
9053 #endif
9054 _ACEOF
9055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9056 $EGREP "found" >/dev/null 2>&1; then :
9057 gcc_cv_decl_char_bit=yes
9058 else
9059 gcc_cv_decl_char_bit=no
9060 fi
9061 rm -f conftest*
9062
9063
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9066 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9067 if test $gcc_cv_decl_char_bit = no; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9069 $as_echo_n "checking number of bits in a byte... " >&6; }
9070 if ${gcc_cv_c_nbby+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 i=8
9074 gcc_cv_c_nbby=
9075 while test $i -lt 65; do
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078
9079 int
9080 main ()
9081 {
9082 switch(0) {
9083 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9084 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9085 ; }
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_cxx_try_compile "$LINENO"; then :
9091 gcc_cv_c_nbby=$i; break
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 i=`expr $i + 1`
9095 done
9096 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9100 $as_echo "$gcc_cv_c_nbby" >&6; }
9101 if test $gcc_cv_c_nbby = failed; then
9102 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9103 else
9104
9105 cat >>confdefs.h <<_ACEOF
9106 #define CHAR_BIT $gcc_cv_c_nbby
9107 _ACEOF
9108
9109 fi
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9112 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9113 if ${ac_cv_c_bigendian+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 ac_cv_c_bigendian=unknown
9117 # See if we're dealing with a universal compiler.
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #ifndef __APPLE_CC__
9121 not a universal capable compiler
9122 #endif
9123 typedef int dummy;
9124
9125 _ACEOF
9126 if ac_fn_cxx_try_compile "$LINENO"; then :
9127
9128 # Check for potential -arch flags. It is not universal unless
9129 # there are at least two -arch flags with different values.
9130 ac_arch=
9131 ac_prev=
9132 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9133 if test -n "$ac_prev"; then
9134 case $ac_word in
9135 i?86 | x86_64 | ppc | ppc64)
9136 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9137 ac_arch=$ac_word
9138 else
9139 ac_cv_c_bigendian=universal
9140 break
9141 fi
9142 ;;
9143 esac
9144 ac_prev=
9145 elif test "x$ac_word" = "x-arch"; then
9146 ac_prev=arch
9147 fi
9148 done
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 if test $ac_cv_c_bigendian = unknown; then
9152 # See if sys/param.h defines the BYTE_ORDER macro.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9156 #include <sys/param.h>
9157
9158 int
9159 main ()
9160 {
9161 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9162 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9163 && LITTLE_ENDIAN)
9164 bogus endian macros
9165 #endif
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_cxx_try_compile "$LINENO"; then :
9172 # It does; now see whether it defined to BIG_ENDIAN or not.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <sys/types.h>
9176 #include <sys/param.h>
9177
9178 int
9179 main ()
9180 {
9181 #if BYTE_ORDER != BIG_ENDIAN
9182 not big endian
9183 #endif
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_cxx_try_compile "$LINENO"; then :
9190 ac_cv_c_bigendian=yes
9191 else
9192 ac_cv_c_bigendian=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 if test $ac_cv_c_bigendian = unknown; then
9199 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 #include <limits.h>
9203
9204 int
9205 main ()
9206 {
9207 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9208 bogus endian macros
9209 #endif
9210
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_cxx_try_compile "$LINENO"; then :
9216 # It does; now see whether it defined to _BIG_ENDIAN or not.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 #include <limits.h>
9220
9221 int
9222 main ()
9223 {
9224 #ifndef _BIG_ENDIAN
9225 not big endian
9226 #endif
9227
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_cxx_try_compile "$LINENO"; then :
9233 ac_cv_c_bigendian=yes
9234 else
9235 ac_cv_c_bigendian=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 if test $ac_cv_c_bigendian = unknown; then
9242 # Compile a test program.
9243 if test "$cross_compiling" = yes; then :
9244 # Try to guess by grepping values from an object file.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 short int ascii_mm[] =
9248 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9249 short int ascii_ii[] =
9250 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9251 int use_ascii (int i) {
9252 return ascii_mm[i] + ascii_ii[i];
9253 }
9254 short int ebcdic_ii[] =
9255 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9256 short int ebcdic_mm[] =
9257 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9258 int use_ebcdic (int i) {
9259 return ebcdic_mm[i] + ebcdic_ii[i];
9260 }
9261 extern int foo;
9262
9263 int
9264 main ()
9265 {
9266 return use_ascii (foo) == use_ebcdic (foo);
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_cxx_try_compile "$LINENO"; then :
9272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9273 ac_cv_c_bigendian=yes
9274 fi
9275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9276 if test "$ac_cv_c_bigendian" = unknown; then
9277 ac_cv_c_bigendian=no
9278 else
9279 # finding both strings is unlikely to happen, but who knows?
9280 ac_cv_c_bigendian=unknown
9281 fi
9282 fi
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 else
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 int
9290 main ()
9291 {
9292
9293 /* Are we little or big endian? From Harbison&Steele. */
9294 union
9295 {
9296 long int l;
9297 char c[sizeof (long int)];
9298 } u;
9299 u.l = 1;
9300 return u.c[sizeof (long int) - 1] == 1;
9301
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_cxx_try_run "$LINENO"; then :
9307 ac_cv_c_bigendian=no
9308 else
9309 ac_cv_c_bigendian=yes
9310 fi
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312 conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314
9315 fi
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9318 $as_echo "$ac_cv_c_bigendian" >&6; }
9319 case $ac_cv_c_bigendian in #(
9320 yes)
9321 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9322 ;; #(
9323 no)
9324 ;; #(
9325 universal)
9326
9327 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9328
9329 ;; #(
9330 *)
9331 as_fn_error $? "unknown endianness
9332 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9333 esac
9334
9335
9336 # ----------------------
9337 # Checks for C++ headers
9338 # ----------------------
9339
9340 ac_ext=cpp
9341 ac_cpp='$CXXCPP $CPPFLAGS'
9342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9346 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9347 if test -z "$CXXCPP"; then
9348 if ${ac_cv_prog_CXXCPP+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 # Double quotes because CXXCPP needs to be expanded
9352 for CXXCPP in "$CXX -E" "/lib/cpp"
9353 do
9354 ac_preproc_ok=false
9355 for ac_cxx_preproc_warn_flag in '' yes
9356 do
9357 # Use a header file that comes with gcc, so configuring glibc
9358 # with a fresh cross-compiler works.
9359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 # <limits.h> exists even on freestanding compilers.
9361 # On the NeXT, cc -E runs the code through the compiler's parser,
9362 # not just through cpp. "Syntax error" is here to catch this case.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370 Syntax error
9371 _ACEOF
9372 if ac_fn_cxx_try_cpp "$LINENO"; then :
9373
9374 else
9375 # Broken: fails on valid input.
9376 continue
9377 fi
9378 rm -f conftest.err conftest.i conftest.$ac_ext
9379
9380 # OK, works on sane cases. Now check whether nonexistent headers
9381 # can be detected and how.
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <ac_nonexistent.h>
9385 _ACEOF
9386 if ac_fn_cxx_try_cpp "$LINENO"; then :
9387 # Broken: success on invalid input.
9388 continue
9389 else
9390 # Passes both tests.
9391 ac_preproc_ok=:
9392 break
9393 fi
9394 rm -f conftest.err conftest.i conftest.$ac_ext
9395
9396 done
9397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9398 rm -f conftest.i conftest.err conftest.$ac_ext
9399 if $ac_preproc_ok; then :
9400 break
9401 fi
9402
9403 done
9404 ac_cv_prog_CXXCPP=$CXXCPP
9405
9406 fi
9407 CXXCPP=$ac_cv_prog_CXXCPP
9408 else
9409 ac_cv_prog_CXXCPP=$CXXCPP
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9412 $as_echo "$CXXCPP" >&6; }
9413 ac_preproc_ok=false
9414 for ac_cxx_preproc_warn_flag in '' yes
9415 do
9416 # Use a header file that comes with gcc, so configuring glibc
9417 # with a fresh cross-compiler works.
9418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 # <limits.h> exists even on freestanding compilers.
9420 # On the NeXT, cc -E runs the code through the compiler's parser,
9421 # not just through cpp. "Syntax error" is here to catch this case.
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 #ifdef __STDC__
9425 # include <limits.h>
9426 #else
9427 # include <assert.h>
9428 #endif
9429 Syntax error
9430 _ACEOF
9431 if ac_fn_cxx_try_cpp "$LINENO"; then :
9432
9433 else
9434 # Broken: fails on valid input.
9435 continue
9436 fi
9437 rm -f conftest.err conftest.i conftest.$ac_ext
9438
9439 # OK, works on sane cases. Now check whether nonexistent headers
9440 # can be detected and how.
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #include <ac_nonexistent.h>
9444 _ACEOF
9445 if ac_fn_cxx_try_cpp "$LINENO"; then :
9446 # Broken: success on invalid input.
9447 continue
9448 else
9449 # Passes both tests.
9450 ac_preproc_ok=:
9451 break
9452 fi
9453 rm -f conftest.err conftest.i conftest.$ac_ext
9454
9455 done
9456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9457 rm -f conftest.i conftest.err conftest.$ac_ext
9458 if $ac_preproc_ok; then :
9459
9460 else
9461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9464 See \`config.log' for more details" >&5
9465 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9466 See \`config.log' for more details" >&2;}; }
9467 fi
9468
9469 ac_ext=cpp
9470 ac_cpp='$CXXCPP $CPPFLAGS'
9471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9474
9475
9476 for ac_header in unordered_map
9477 do :
9478 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9479 if test "x$ac_cv_header_unordered_map" = xyes; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_UNORDERED_MAP 1
9482 _ACEOF
9483
9484 fi
9485 done
9486
9487 for ac_header in tr1/unordered_map
9488 do :
9489 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9490 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9491 cat >>confdefs.h <<_ACEOF
9492 #define HAVE_TR1_UNORDERED_MAP 1
9493 _ACEOF
9494
9495 fi
9496 done
9497
9498 for ac_header in ext/hash_map
9499 do :
9500 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9501 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_EXT_HASH_MAP 1
9504 _ACEOF
9505
9506 fi
9507 done
9508
9509
9510 # --------
9511 # Dependency checking.
9512 # --------
9513
9514 rm -rf .tst 2>/dev/null
9515 mkdir .tst 2>/dev/null
9516 if test -d .tst; then
9517 am__leading_dot=.
9518 else
9519 am__leading_dot=_
9520 fi
9521 rmdir .tst 2>/dev/null
9522
9523 DEPDIR="${am__leading_dot}deps"
9524
9525 ac_config_commands="$ac_config_commands depdir"
9526
9527
9528 ac_config_commands="$ac_config_commands gccdepdir"
9529
9530
9531 depcc="$CXX" am_compiler_list=
9532
9533 am_depcomp=$ac_aux_dir/depcomp
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9535 $as_echo_n "checking dependency style of $depcc... " >&6; }
9536 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test -f "$am_depcomp"; then
9540 # We make a subdir and do the tests there. Otherwise we can end up
9541 # making bogus files that we don't know about and never remove. For
9542 # instance it was reported that on HP-UX the gcc test will end up
9543 # making a dummy file named `D' -- because `-MD' means `put the output
9544 # in D'.
9545 mkdir conftest.dir
9546 # Copy depcomp to subdir because otherwise we won't find it if we're
9547 # using a relative directory.
9548 cp "$am_depcomp" conftest.dir
9549 cd conftest.dir
9550 # We will build objects and dependencies in a subdirectory because
9551 # it helps to detect inapplicable dependency modes. For instance
9552 # both Tru64's cc and ICC support -MD to output dependencies as a
9553 # side effect of compilation, but ICC will put the dependencies in
9554 # the current directory while Tru64 will put them in the object
9555 # directory.
9556 mkdir sub
9557
9558 am_cv_CXX_dependencies_compiler_type=none
9559 if test "$am_compiler_list" = ""; then
9560 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9561 fi
9562 for depmode in $am_compiler_list; do
9563 if test $depmode = none; then break; fi
9564
9565 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9566 # Setup a source with many dependencies, because some compilers
9567 # like to wrap large dependency lists on column 80 (with \), and
9568 # we should not choose a depcomp mode which is confused by this.
9569 #
9570 # We need to recreate these files for each test, as the compiler may
9571 # overwrite some of them when testing with obscure command lines.
9572 # This happens at least with the AIX C compiler.
9573 : > sub/conftest.c
9574 for i in 1 2 3 4 5 6; do
9575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9577 # Solaris 8's {/usr,}/bin/sh.
9578 touch sub/conftst$i.h
9579 done
9580 echo "include sub/conftest.Po" > confmf
9581
9582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9583 # mode. It turns out that the SunPro C++ compiler does not properly
9584 # handle `-M -o', and we need to detect this.
9585 depcmd="depmode=$depmode \
9586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9589 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9590 if env $depcmd > conftest.err 2>&1 &&
9591 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9593 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9594 # icc doesn't choke on unknown options, it will just issue warnings
9595 # or remarks (even with -Werror). So we grep stderr for any message
9596 # that says an option was ignored or not supported.
9597 # When given -MP, icc 7.0 and 7.1 complain thusly:
9598 # icc: Command line warning: ignoring option '-M'; no argument required
9599 # The diagnosis changed in icc 8.0:
9600 # icc: Command line remark: option '-MP' not supported
9601 if (grep 'ignoring option' conftest.err ||
9602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9603 am_cv_CXX_dependencies_compiler_type=$depmode
9604 $as_echo "$as_me:$LINENO: success" >&5
9605 break
9606 fi
9607 fi
9608 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9609 sed -e 's/^/| /' < conftest.err >&5
9610 done
9611
9612 cd ..
9613 rm -rf conftest.dir
9614 else
9615 am_cv_CXX_dependencies_compiler_type=none
9616 fi
9617
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9620 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9621 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9622 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9623 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9624
9625 fi
9626
9627
9628 # --------
9629 # UNSORTED
9630 # --------
9631
9632
9633 # These libraries may be used by collect2.
9634 # We may need a special search path to get them linked.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9636 $as_echo_n "checking for collect2 libraries... " >&6; }
9637 if ${gcc_cv_collect2_libs+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 save_LIBS="$LIBS"
9641 for libs in '' -lld -lmld \
9642 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9643 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9644 do
9645 LIBS="$libs"
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char ldopen ();
9656 int
9657 main ()
9658 {
9659 return ldopen ();
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 if ac_fn_cxx_try_link "$LINENO"; then :
9665 gcc_cv_collect2_libs="$libs"; break
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 done
9670 LIBS="$save_LIBS"
9671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9674 $as_echo "$gcc_cv_collect2_libs" >&6; }
9675 case $gcc_cv_collect2_libs in
9676 "none required") ;;
9677 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9678 esac
9679
9680
9681 # When building Ada code on Alpha, we need exc_resume which is usually in
9682 # -lexc. So test for it.
9683 save_LIBS="$LIBS"
9684 LIBS=
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9686 $as_echo_n "checking for library containing exc_resume... " >&6; }
9687 if ${ac_cv_search_exc_resume+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 ac_func_search_save_LIBS=$LIBS
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char exc_resume ();
9701 int
9702 main ()
9703 {
9704 return exc_resume ();
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 for ac_lib in '' exc; do
9710 if test -z "$ac_lib"; then
9711 ac_res="none required"
9712 else
9713 ac_res=-l$ac_lib
9714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9715 fi
9716 if ac_fn_cxx_try_link "$LINENO"; then :
9717 ac_cv_search_exc_resume=$ac_res
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext
9721 if ${ac_cv_search_exc_resume+:} false; then :
9722 break
9723 fi
9724 done
9725 if ${ac_cv_search_exc_resume+:} false; then :
9726
9727 else
9728 ac_cv_search_exc_resume=no
9729 fi
9730 rm conftest.$ac_ext
9731 LIBS=$ac_func_search_save_LIBS
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9734 $as_echo "$ac_cv_search_exc_resume" >&6; }
9735 ac_res=$ac_cv_search_exc_resume
9736 if test "$ac_res" != no; then :
9737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9738
9739 fi
9740
9741 GNAT_LIBEXC="$LIBS"
9742 LIBS="$save_LIBS"
9743
9744
9745 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9746 save_LIBS="$LIBS"
9747 LIBS=
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9749 $as_echo_n "checking for library containing kstat_open... " >&6; }
9750 if ${ac_cv_search_kstat_open+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 ac_func_search_save_LIBS=$LIBS
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char kstat_open ();
9764 int
9765 main ()
9766 {
9767 return kstat_open ();
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 for ac_lib in '' kstat; do
9773 if test -z "$ac_lib"; then
9774 ac_res="none required"
9775 else
9776 ac_res=-l$ac_lib
9777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9778 fi
9779 if ac_fn_cxx_try_link "$LINENO"; then :
9780 ac_cv_search_kstat_open=$ac_res
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext
9784 if ${ac_cv_search_kstat_open+:} false; then :
9785 break
9786 fi
9787 done
9788 if ${ac_cv_search_kstat_open+:} false; then :
9789
9790 else
9791 ac_cv_search_kstat_open=no
9792 fi
9793 rm conftest.$ac_ext
9794 LIBS=$ac_func_search_save_LIBS
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9797 $as_echo "$ac_cv_search_kstat_open" >&6; }
9798 ac_res=$ac_cv_search_kstat_open
9799 if test "$ac_res" != no; then :
9800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9801
9802 fi
9803
9804 EXTRA_GCC_LIBS="$LIBS"
9805 LIBS="$save_LIBS"
9806
9807
9808 # Some systems put ldexp and frexp in libm instead of libc; assume
9809 # they're both in the same place. jcf-dump needs them.
9810 save_LIBS="$LIBS"
9811 LIBS=
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9813 $as_echo_n "checking for library containing ldexp... " >&6; }
9814 if ${ac_cv_search_ldexp+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 ac_func_search_save_LIBS=$LIBS
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char ldexp ();
9828 int
9829 main ()
9830 {
9831 return ldexp ();
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 for ac_lib in '' m; do
9837 if test -z "$ac_lib"; then
9838 ac_res="none required"
9839 else
9840 ac_res=-l$ac_lib
9841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9842 fi
9843 if ac_fn_cxx_try_link "$LINENO"; then :
9844 ac_cv_search_ldexp=$ac_res
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext
9848 if ${ac_cv_search_ldexp+:} false; then :
9849 break
9850 fi
9851 done
9852 if ${ac_cv_search_ldexp+:} false; then :
9853
9854 else
9855 ac_cv_search_ldexp=no
9856 fi
9857 rm conftest.$ac_ext
9858 LIBS=$ac_func_search_save_LIBS
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9861 $as_echo "$ac_cv_search_ldexp" >&6; }
9862 ac_res=$ac_cv_search_ldexp
9863 if test "$ac_res" != no; then :
9864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9865
9866 fi
9867
9868 LDEXP_LIB="$LIBS"
9869 LIBS="$save_LIBS"
9870
9871
9872 # Some systems need dlopen
9873 save_LIBS="$LIBS"
9874 LIBS=
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9876 $as_echo_n "checking for library containing dlopen... " >&6; }
9877 if ${ac_cv_search_dlopen+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 ac_func_search_save_LIBS=$LIBS
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 char dlopen ();
9891 int
9892 main ()
9893 {
9894 return dlopen ();
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 for ac_lib in '' dl; do
9900 if test -z "$ac_lib"; then
9901 ac_res="none required"
9902 else
9903 ac_res=-l$ac_lib
9904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9905 fi
9906 if ac_fn_cxx_try_link "$LINENO"; then :
9907 ac_cv_search_dlopen=$ac_res
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext
9911 if ${ac_cv_search_dlopen+:} false; then :
9912 break
9913 fi
9914 done
9915 if ${ac_cv_search_dlopen+:} false; then :
9916
9917 else
9918 ac_cv_search_dlopen=no
9919 fi
9920 rm conftest.$ac_ext
9921 LIBS=$ac_func_search_save_LIBS
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9924 $as_echo "$ac_cv_search_dlopen" >&6; }
9925 ac_res=$ac_cv_search_dlopen
9926 if test "$ac_res" != no; then :
9927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9928
9929 fi
9930
9931 DL_LIB="$LIBS"
9932 LIBS="$save_LIBS"
9933
9934
9935 # Use <inttypes.h> only if it exists,
9936 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9937 # PRId64
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9939 $as_echo_n "checking for inttypes.h... " >&6; }
9940 if ${gcc_cv_header_inttypes_h+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #define __STDC_FORMAT_MACROS
9946 #include <sys/types.h>
9947 #include <inttypes.h>
9948 int
9949 main ()
9950 {
9951 intmax_t i = -1;
9952 #ifndef PRId64
9953 choke me
9954 #endif
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_cxx_try_compile "$LINENO"; then :
9960 gcc_cv_header_inttypes_h=yes
9961 else
9962 gcc_cv_header_inttypes_h=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 fi
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9968 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9969 if test $gcc_cv_header_inttypes_h = yes; then
9970
9971 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9972
9973 fi
9974
9975 # Look for the ZSTD package.
9976 ZSTD_INCLUDE=
9977 ZSTD_LIB=
9978
9979
9980 ZSTD_CPPFLAGS=
9981 ZSTD_LDFLAGS=
9982
9983
9984
9985 # Check whether --with-zstd was given.
9986 if test "${with_zstd+set}" = set; then :
9987 withval=$with_zstd;
9988 fi
9989
9990
9991 # Check whether --with-zstd-include was given.
9992 if test "${with_zstd_include+set}" = set; then :
9993 withval=$with_zstd_include;
9994 fi
9995
9996
9997 # Check whether --with-zstd-lib was given.
9998 if test "${with_zstd_lib+set}" = set; then :
9999 withval=$with_zstd_lib;
10000 fi
10001
10002 case "x$with_zstd" in
10003 x) ;;
10004 xno)
10005 ZSTD_INCLUDE=
10006 ZSTD_LIB=
10007 ;;
10008 *) ZSTD_INCLUDE=$with_zstd/include
10009 ZSTD_LIB=$with_zstd/lib
10010 ;;
10011 esac
10012
10013 if test "x$with_zstd" != xno; then
10014 if test "x$with_zstd_include" != x; then
10015 ZSTD_INCLUDE=$with_zstd_include
10016 fi
10017 if test "x$with_zstd_lib" != x; then
10018 ZSTD_LIB=$with_zstd_lib
10019 fi
10020 if test "x$ZSTD_INCLUDE" != x \
10021 && test "x$ZSTD_INCLUDE" != xno; then
10022 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10023 fi
10024 if test "x$ZSTD_LIB" != x \
10025 && test "x$ZSTD_LIB" != xno; then
10026 ZSTD_LDFLAGS=-L$ZSTD_LIB
10027 fi
10028
10029 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10030 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10033 $as_echo_n "checking for zstd.h... " >&6; }
10034 if ${gcc_cv_header_zstd_h+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 # We require version 1.3.0 or later. This is the first version that has
10038 # ZSTD_getFrameContentSize.
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 #include <zstd.h>
10042 #if ZSTD_VERSION_NUMBER < 10300
10043 #error "need zstd 1.3.0 or better"
10044 #endif
10045 int
10046 main ()
10047 {
10048
10049 ;
10050 return 0;
10051 }
10052 _ACEOF
10053 if ac_fn_cxx_try_compile "$LINENO"; then :
10054 gcc_cv_header_zstd_h=yes
10055 else
10056 gcc_cv_header_zstd_h=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 fi
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10062 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10063 if test $gcc_cv_header_zstd_h = yes; then
10064
10065 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10066
10067 elif test "x$with_zstd" != x; then
10068 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10069 fi
10070
10071 # LTO can use zstd compression algorithm
10072 save_LIBS="$LIBS"
10073 LIBS=
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10075 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10076 if ${ac_cv_search_ZSTD_compress+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_func_search_save_LIBS=$LIBS
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char ZSTD_compress ();
10090 int
10091 main ()
10092 {
10093 return ZSTD_compress ();
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 for ac_lib in '' zstd; do
10099 if test -z "$ac_lib"; then
10100 ac_res="none required"
10101 else
10102 ac_res=-l$ac_lib
10103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10104 fi
10105 if ac_fn_cxx_try_link "$LINENO"; then :
10106 ac_cv_search_ZSTD_compress=$ac_res
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext
10110 if ${ac_cv_search_ZSTD_compress+:} false; then :
10111 break
10112 fi
10113 done
10114 if ${ac_cv_search_ZSTD_compress+:} false; then :
10115
10116 else
10117 ac_cv_search_ZSTD_compress=no
10118 fi
10119 rm conftest.$ac_ext
10120 LIBS=$ac_func_search_save_LIBS
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10123 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10124 ac_res=$ac_cv_search_ZSTD_compress
10125 if test "$ac_res" != no; then :
10126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10127
10128 fi
10129
10130 ZSTD_LIB="$LIBS"
10131 LIBS="$save_LIBS"
10132
10133 fi
10134
10135
10136
10137 for ac_func in times clock kill getrlimit setrlimit atoq \
10138 popen sysconf strsignal getrusage nl_langinfo \
10139 gettimeofday mbstowcs wcswidth mmap setlocale \
10140 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
10141 do :
10142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10145 cat >>confdefs.h <<_ACEOF
10146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147 _ACEOF
10148
10149 fi
10150 done
10151
10152
10153 if test x$ac_cv_func_mbstowcs = xyes; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10155 $as_echo_n "checking whether mbstowcs works... " >&6; }
10156 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 if test "$cross_compiling" = yes; then :
10160 gcc_cv_func_mbstowcs_works=yes
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <stdlib.h>
10165 int main()
10166 {
10167 mbstowcs(0, "", 0);
10168 return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_cxx_try_run "$LINENO"; then :
10172 gcc_cv_func_mbstowcs_works=yes
10173 else
10174 gcc_cv_func_mbstowcs_works=no
10175 fi
10176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10177 conftest.$ac_objext conftest.beam conftest.$ac_ext
10178 fi
10179
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10182 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10183 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10184
10185 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10186
10187 fi
10188 fi
10189
10190 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10191 if test "x$ac_cv_type_ssize_t" = xyes; then :
10192
10193 else
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define ssize_t int
10197 _ACEOF
10198
10199 fi
10200
10201 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10202 if test "x$ac_cv_type_caddr_t" = xyes; then :
10203
10204 else
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define caddr_t char *
10208 _ACEOF
10209
10210 fi
10211
10212
10213
10214 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10215 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10216 gcc_header_sys_mman_h=yes
10217 else
10218 gcc_header_sys_mman_h=no
10219 fi
10220
10221 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10222 if test "x$ac_cv_func_mmap" = xyes; then :
10223 gcc_func_mmap=yes
10224 else
10225 gcc_func_mmap=no
10226 fi
10227
10228 if test "$gcc_header_sys_mman_h" != yes \
10229 || test "$gcc_func_mmap" != yes; then
10230 gcc_cv_func_mmap_file=no
10231 gcc_cv_func_mmap_dev_zero=no
10232 gcc_cv_func_mmap_anon=no
10233 else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10235 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10236 if ${gcc_cv_func_mmap_file+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 # Add a system to this blacklist if
10240 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10241 # memory area containing the same data that you'd get if you applied
10242 # read() to the same fd. The only system known to have a problem here
10243 # is VMS, where text files have record structure.
10244 case "$host_os" in
10245 *vms* | ultrix*)
10246 gcc_cv_func_mmap_file=no ;;
10247 *)
10248 gcc_cv_func_mmap_file=yes;;
10249 esac
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10252 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10254 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10255 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 # Add a system to this blacklist if it has mmap() but /dev/zero
10259 # does not exist, or if mmapping /dev/zero does not give anonymous
10260 # zeroed pages with both the following properties:
10261 # 1. If you map N consecutive pages in with one call, and then
10262 # unmap any subset of those pages, the pages that were not
10263 # explicitly unmapped remain accessible.
10264 # 2. If you map two adjacent blocks of memory and then unmap them
10265 # both at once, they must both go away.
10266 # Systems known to be in this category are Windows (all variants),
10267 # VMS, and Darwin.
10268 case "$host_os" in
10269 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10270 gcc_cv_func_mmap_dev_zero=no ;;
10271 *)
10272 gcc_cv_func_mmap_dev_zero=yes;;
10273 esac
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10276 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10277
10278 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10280 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10281 if ${gcc_cv_decl_map_anon+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 #include <sys/types.h>
10287 #include <sys/mman.h>
10288 #include <unistd.h>
10289
10290 #ifndef MAP_ANONYMOUS
10291 #define MAP_ANONYMOUS MAP_ANON
10292 #endif
10293
10294 int
10295 main ()
10296 {
10297 int n = MAP_ANONYMOUS;
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_cxx_try_compile "$LINENO"; then :
10303 gcc_cv_decl_map_anon=yes
10304 else
10305 gcc_cv_decl_map_anon=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10310 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10311
10312 if test $gcc_cv_decl_map_anon = no; then
10313 gcc_cv_func_mmap_anon=no
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10316 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10317 if ${gcc_cv_func_mmap_anon+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10321 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10322 # doesn't give anonymous zeroed pages with the same properties listed
10323 # above for use of /dev/zero.
10324 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10325 case "$host_os" in
10326 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10327 gcc_cv_func_mmap_anon=no ;;
10328 *)
10329 gcc_cv_func_mmap_anon=yes;;
10330 esac
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10333 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10334 fi
10335 fi
10336
10337 if test $gcc_cv_func_mmap_file = yes; then
10338
10339 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10340
10341 fi
10342 if test $gcc_cv_func_mmap_dev_zero = yes; then
10343
10344 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10345
10346 fi
10347 if test $gcc_cv_func_mmap_anon = yes; then
10348
10349 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10350
10351 fi
10352
10353
10354 case "${host}" in
10355 *-*-*vms*)
10356 # Under VMS, vfork works very differently than on Unix. The standard test
10357 # won't work, and it isn't easily adaptable. It makes more sense to
10358 # just force it.
10359 ac_cv_func_vfork_works=yes
10360 ;;
10361 esac
10362 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10363 if test "x$ac_cv_type_pid_t" = xyes; then :
10364
10365 else
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define pid_t int
10369 _ACEOF
10370
10371 fi
10372
10373 for ac_header in vfork.h
10374 do :
10375 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10376 if test "x$ac_cv_header_vfork_h" = xyes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_VFORK_H 1
10379 _ACEOF
10380
10381 fi
10382 done
10383
10384 for ac_func in fork vfork
10385 do :
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10391 _ACEOF
10392
10393 fi
10394 done
10395
10396 if test "x$ac_cv_func_fork" = xyes; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10398 $as_echo_n "checking for working fork... " >&6; }
10399 if ${ac_cv_func_fork_works+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test "$cross_compiling" = yes; then :
10403 ac_cv_func_fork_works=cross
10404 else
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 $ac_includes_default
10408 int
10409 main ()
10410 {
10411
10412 /* By Ruediger Kuhlmann. */
10413 return fork () < 0;
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_cxx_try_run "$LINENO"; then :
10420 ac_cv_func_fork_works=yes
10421 else
10422 ac_cv_func_fork_works=no
10423 fi
10424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10425 conftest.$ac_objext conftest.beam conftest.$ac_ext
10426 fi
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10430 $as_echo "$ac_cv_func_fork_works" >&6; }
10431
10432 else
10433 ac_cv_func_fork_works=$ac_cv_func_fork
10434 fi
10435 if test "x$ac_cv_func_fork_works" = xcross; then
10436 case $host in
10437 *-*-amigaos* | *-*-msdosdjgpp*)
10438 # Override, as these systems have only a dummy fork() stub
10439 ac_cv_func_fork_works=no
10440 ;;
10441 *)
10442 ac_cv_func_fork_works=yes
10443 ;;
10444 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10447 fi
10448 ac_cv_func_vfork_works=$ac_cv_func_vfork
10449 if test "x$ac_cv_func_vfork" = xyes; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10451 $as_echo_n "checking for working vfork... " >&6; }
10452 if ${ac_cv_func_vfork_works+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 if test "$cross_compiling" = yes; then :
10456 ac_cv_func_vfork_works=cross
10457 else
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 /* Thanks to Paul Eggert for this test. */
10461 $ac_includes_default
10462 #include <sys/wait.h>
10463 #ifdef HAVE_VFORK_H
10464 # include <vfork.h>
10465 #endif
10466 /* On some sparc systems, changes by the child to local and incoming
10467 argument registers are propagated back to the parent. The compiler
10468 is told about this with #include <vfork.h>, but some compilers
10469 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10470 static variable whose address is put into a register that is
10471 clobbered by the vfork. */
10472 static void
10473 #ifdef __cplusplus
10474 sparc_address_test (int arg)
10475 # else
10476 sparc_address_test (arg) int arg;
10477 #endif
10478 {
10479 static pid_t child;
10480 if (!child) {
10481 child = vfork ();
10482 if (child < 0) {
10483 perror ("vfork");
10484 _exit(2);
10485 }
10486 if (!child) {
10487 arg = getpid();
10488 write(-1, "", 0);
10489 _exit (arg);
10490 }
10491 }
10492 }
10493
10494 int
10495 main ()
10496 {
10497 pid_t parent = getpid ();
10498 pid_t child;
10499
10500 sparc_address_test (0);
10501
10502 child = vfork ();
10503
10504 if (child == 0) {
10505 /* Here is another test for sparc vfork register problems. This
10506 test uses lots of local variables, at least as many local
10507 variables as main has allocated so far including compiler
10508 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10509 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10510 reuse the register of parent for one of the local variables,
10511 since it will think that parent can't possibly be used any more
10512 in this routine. Assigning to the local variable will thus
10513 munge parent in the parent process. */
10514 pid_t
10515 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10516 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10517 /* Convince the compiler that p..p7 are live; otherwise, it might
10518 use the same hardware register for all 8 local variables. */
10519 if (p != p1 || p != p2 || p != p3 || p != p4
10520 || p != p5 || p != p6 || p != p7)
10521 _exit(1);
10522
10523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10524 from child file descriptors. If the child closes a descriptor
10525 before it execs or exits, this munges the parent's descriptor
10526 as well. Test for this by closing stdout in the child. */
10527 _exit(close(fileno(stdout)) != 0);
10528 } else {
10529 int status;
10530 struct stat st;
10531
10532 while (wait(&status) != child)
10533 ;
10534 return (
10535 /* Was there some problem with vforking? */
10536 child < 0
10537
10538 /* Did the child fail? (This shouldn't happen.) */
10539 || status
10540
10541 /* Did the vfork/compiler bug occur? */
10542 || parent != getpid()
10543
10544 /* Did the file descriptor bug occur? */
10545 || fstat(fileno(stdout), &st) != 0
10546 );
10547 }
10548 }
10549 _ACEOF
10550 if ac_fn_cxx_try_run "$LINENO"; then :
10551 ac_cv_func_vfork_works=yes
10552 else
10553 ac_cv_func_vfork_works=no
10554 fi
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10556 conftest.$ac_objext conftest.beam conftest.$ac_ext
10557 fi
10558
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10561 $as_echo "$ac_cv_func_vfork_works" >&6; }
10562
10563 fi;
10564 if test "x$ac_cv_func_fork_works" = xcross; then
10565 ac_cv_func_vfork_works=$ac_cv_func_vfork
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10568 fi
10569
10570 if test "x$ac_cv_func_vfork_works" = xyes; then
10571
10572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10573
10574 else
10575
10576 $as_echo "#define vfork fork" >>confdefs.h
10577
10578 fi
10579 if test "x$ac_cv_func_fork_works" = xyes; then
10580
10581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10582
10583 fi
10584
10585
10586
10587 if test "X$prefix" = "XNONE"; then
10588 acl_final_prefix="$ac_default_prefix"
10589 else
10590 acl_final_prefix="$prefix"
10591 fi
10592 if test "X$exec_prefix" = "XNONE"; then
10593 acl_final_exec_prefix='${prefix}'
10594 else
10595 acl_final_exec_prefix="$exec_prefix"
10596 fi
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10600 prefix="$acl_save_prefix"
10601
10602
10603 # Check whether --with-gnu-ld was given.
10604 if test "${with_gnu_ld+set}" = set; then :
10605 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10606 else
10607 with_gnu_ld=no
10608 fi
10609
10610 # Prepare PATH_SEPARATOR.
10611 # The user is always right.
10612 if test "${PATH_SEPARATOR+set}" != set; then
10613 echo "#! /bin/sh" >conf$$.sh
10614 echo "exit 0" >>conf$$.sh
10615 chmod +x conf$$.sh
10616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10617 PATH_SEPARATOR=';'
10618 else
10619 PATH_SEPARATOR=:
10620 fi
10621 rm -f conf$$.sh
10622 fi
10623 ac_prog=ld
10624 if test "$GCC" = yes; then
10625 # Check if gcc -print-prog-name=ld gives a path.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10627 $as_echo_n "checking for ld used by GCC... " >&6; }
10628 case $host in
10629 *-*-mingw*)
10630 # gcc leaves a trailing carriage return which upsets mingw
10631 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10632 *)
10633 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10634 esac
10635 case $ac_prog in
10636 # Accept absolute paths.
10637 [\\/]* | [A-Za-z]:[\\/]*)
10638 re_direlt='/[^/][^/]*/\.\./'
10639 # Canonicalize the path of ld
10640 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10641 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10642 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10643 done
10644 test -z "$LD" && LD="$ac_prog"
10645 ;;
10646 "")
10647 # If it fails, then pretend we aren't using GCC.
10648 ac_prog=ld
10649 ;;
10650 *)
10651 # If it is relative, then search for the first ld in PATH.
10652 with_gnu_ld=unknown
10653 ;;
10654 esac
10655 elif test "$with_gnu_ld" = yes; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10657 $as_echo_n "checking for GNU ld... " >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10660 $as_echo_n "checking for non-GNU ld... " >&6; }
10661 fi
10662 if ${acl_cv_path_LD+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 if test -z "$LD"; then
10666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10667 for ac_dir in $PATH; do
10668 test -z "$ac_dir" && ac_dir=.
10669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10670 acl_cv_path_LD="$ac_dir/$ac_prog"
10671 # Check to see if the program is GNU ld. I'd rather use --version,
10672 # but apparently some GNU ld's only accept -v.
10673 # Break only if it was the GNU/non-GNU ld that we prefer.
10674 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10675 test "$with_gnu_ld" != no && break
10676 else
10677 test "$with_gnu_ld" != yes && break
10678 fi
10679 fi
10680 done
10681 IFS="$ac_save_ifs"
10682 else
10683 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10684 fi
10685 fi
10686
10687 LD="$acl_cv_path_LD"
10688 if test -n "$LD"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10690 $as_echo "$LD" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10698 if ${acl_cv_prog_gnu_ld+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10702 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10703 acl_cv_prog_gnu_ld=yes
10704 else
10705 acl_cv_prog_gnu_ld=no
10706 fi
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10709 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10710 with_gnu_ld=$acl_cv_prog_gnu_ld
10711
10712
10713
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10715 $as_echo_n "checking for shared library run path origin... " >&6; }
10716 if ${acl_cv_rpath+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719
10720 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10722 . ./conftest.sh
10723 rm -f ./conftest.sh
10724 acl_cv_rpath=done
10725
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10728 $as_echo "$acl_cv_rpath" >&6; }
10729 wl="$acl_cv_wl"
10730 libext="$acl_cv_libext"
10731 shlibext="$acl_cv_shlibext"
10732 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10733 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10734 hardcode_direct="$acl_cv_hardcode_direct"
10735 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10736 # Check whether --enable-rpath was given.
10737 if test "${enable_rpath+set}" = set; then :
10738 enableval=$enable_rpath; :
10739 else
10740 enable_rpath=yes
10741 fi
10742
10743
10744
10745
10746
10747
10748
10749
10750 use_additional=yes
10751
10752 acl_save_prefix="$prefix"
10753 prefix="$acl_final_prefix"
10754 acl_save_exec_prefix="$exec_prefix"
10755 exec_prefix="$acl_final_exec_prefix"
10756
10757 eval additional_includedir=\"$includedir\"
10758 eval additional_libdir=\"$libdir\"
10759
10760 exec_prefix="$acl_save_exec_prefix"
10761 prefix="$acl_save_prefix"
10762
10763
10764 # Check whether --with-libiconv-prefix was given.
10765 if test "${with_libiconv_prefix+set}" = set; then :
10766 withval=$with_libiconv_prefix;
10767 if test "X$withval" = "Xno"; then
10768 use_additional=no
10769 else
10770 if test "X$withval" = "X"; then
10771
10772 acl_save_prefix="$prefix"
10773 prefix="$acl_final_prefix"
10774 acl_save_exec_prefix="$exec_prefix"
10775 exec_prefix="$acl_final_exec_prefix"
10776
10777 eval additional_includedir=\"$includedir\"
10778 eval additional_libdir=\"$libdir\"
10779
10780 exec_prefix="$acl_save_exec_prefix"
10781 prefix="$acl_save_prefix"
10782
10783 else
10784 additional_includedir="$withval/include"
10785 additional_libdir="$withval/lib"
10786 fi
10787 fi
10788
10789 fi
10790
10791
10792 # Check whether --with-libiconv-type was given.
10793 if test "${with_libiconv_type+set}" = set; then :
10794 withval=$with_libiconv_type; with_libiconv_type=$withval
10795 else
10796 with_libiconv_type=auto
10797 fi
10798
10799 lib_type=`eval echo \$with_libiconv_type`
10800
10801 LIBICONV=
10802 LTLIBICONV=
10803 INCICONV=
10804 rpathdirs=
10805 ltrpathdirs=
10806 names_already_handled=
10807 names_next_round='iconv '
10808 while test -n "$names_next_round"; do
10809 names_this_round="$names_next_round"
10810 names_next_round=
10811 for name in $names_this_round; do
10812 already_handled=
10813 for n in $names_already_handled; do
10814 if test "$n" = "$name"; then
10815 already_handled=yes
10816 break
10817 fi
10818 done
10819 if test -z "$already_handled"; then
10820 names_already_handled="$names_already_handled $name"
10821 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10822 eval value=\"\$HAVE_LIB$uppername\"
10823 if test -n "$value"; then
10824 if test "$value" = yes; then
10825 eval value=\"\$LIB$uppername\"
10826 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10827 eval value=\"\$LTLIB$uppername\"
10828 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10829 else
10830 :
10831 fi
10832 else
10833 found_dir=
10834 found_la=
10835 found_so=
10836 found_a=
10837 if test $use_additional = yes; then
10838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10839 found_dir="$additional_libdir"
10840 found_so="$additional_libdir/lib$name.$shlibext"
10841 if test -f "$additional_libdir/lib$name.la"; then
10842 found_la="$additional_libdir/lib$name.la"
10843 fi
10844 elif test x$lib_type != xshared; then
10845 if test -f "$additional_libdir/lib$name.$libext"; then
10846 found_dir="$additional_libdir"
10847 found_a="$additional_libdir/lib$name.$libext"
10848 if test -f "$additional_libdir/lib$name.la"; then
10849 found_la="$additional_libdir/lib$name.la"
10850 fi
10851 fi
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBICONV; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10869 found_dir="$dir"
10870 found_so="$dir/lib$name.$shlibext"
10871 if test -f "$dir/lib$name.la"; then
10872 found_la="$dir/lib$name.la"
10873 fi
10874 elif test x$lib_type != xshared; then
10875 if test -f "$dir/lib$name.$libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/lib$name.$libext"
10878 if test -f "$dir/lib$name.la"; then
10879 found_la="$dir/lib$name.la"
10880 fi
10881 fi
10882 fi
10883 ;;
10884 esac
10885 if test "X$found_dir" != "X"; then
10886 break
10887 fi
10888 done
10889 fi
10890 if test "X$found_dir" != "X"; then
10891 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10892 if test "X$found_so" != "X"; then
10893 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10895 else
10896 haveit=
10897 for x in $ltrpathdirs; do
10898 if test "X$x" = "X$found_dir"; then
10899 haveit=yes
10900 break
10901 fi
10902 done
10903 if test -z "$haveit"; then
10904 ltrpathdirs="$ltrpathdirs $found_dir"
10905 fi
10906 if test "$hardcode_direct" = yes; then
10907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10908 else
10909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10911 haveit=
10912 for x in $rpathdirs; do
10913 if test "X$x" = "X$found_dir"; then
10914 haveit=yes
10915 break
10916 fi
10917 done
10918 if test -z "$haveit"; then
10919 rpathdirs="$rpathdirs $found_dir"
10920 fi
10921 else
10922 haveit=
10923 for x in $LDFLAGS $LIBICONV; do
10924
10925 acl_save_prefix="$prefix"
10926 prefix="$acl_final_prefix"
10927 acl_save_exec_prefix="$exec_prefix"
10928 exec_prefix="$acl_final_exec_prefix"
10929 eval x=\"$x\"
10930 exec_prefix="$acl_save_exec_prefix"
10931 prefix="$acl_save_prefix"
10932
10933 if test "X$x" = "X-L$found_dir"; then
10934 haveit=yes
10935 break
10936 fi
10937 done
10938 if test -z "$haveit"; then
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10940 fi
10941 if test "$hardcode_minus_L" != no; then
10942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10943 else
10944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10945 fi
10946 fi
10947 fi
10948 fi
10949 else
10950 if test "X$found_a" != "X"; then
10951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10952 else
10953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10954 fi
10955 fi
10956 additional_includedir=
10957 case "$found_dir" in
10958 */lib | */lib/)
10959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10960 additional_includedir="$basedir/include"
10961 ;;
10962 esac
10963 if test "X$additional_includedir" != "X"; then
10964 if test "X$additional_includedir" != "X/usr/include"; then
10965 haveit=
10966 if test "X$additional_includedir" = "X/usr/local/include"; then
10967 if test -n "$GCC"; then
10968 case $host_os in
10969 linux*) haveit=yes;;
10970 esac
10971 fi
10972 fi
10973 if test -z "$haveit"; then
10974 for x in $CPPFLAGS $INCICONV; do
10975
10976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10980 eval x=\"$x\"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
10983
10984 if test "X$x" = "X-I$additional_includedir"; then
10985 haveit=yes
10986 break
10987 fi
10988 done
10989 if test -z "$haveit"; then
10990 if test -d "$additional_includedir"; then
10991 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10992 fi
10993 fi
10994 fi
10995 fi
10996 fi
10997 if test -n "$found_la"; then
10998 save_libdir="$libdir"
10999 case "$found_la" in
11000 */* | *\\*) . "$found_la" ;;
11001 *) . "./$found_la" ;;
11002 esac
11003 libdir="$save_libdir"
11004 for dep in $dependency_libs; do
11005 case "$dep" in
11006 -L*)
11007 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11008 if test "X$additional_libdir" != "X/usr/lib"; then
11009 haveit=
11010 if test "X$additional_libdir" = "X/usr/local/lib"; then
11011 if test -n "$GCC"; then
11012 case $host_os in
11013 linux*) haveit=yes;;
11014 esac
11015 fi
11016 fi
11017 if test -z "$haveit"; then
11018 haveit=
11019 for x in $LDFLAGS $LIBICONV; do
11020
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$additional_libdir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 if test -d "$additional_libdir"; then
11036 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11037 fi
11038 fi
11039 haveit=
11040 for x in $LDFLAGS $LTLIBICONV; do
11041
11042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11046 eval x=\"$x\"
11047 exec_prefix="$acl_save_exec_prefix"
11048 prefix="$acl_save_prefix"
11049
11050 if test "X$x" = "X-L$additional_libdir"; then
11051 haveit=yes
11052 break
11053 fi
11054 done
11055 if test -z "$haveit"; then
11056 if test -d "$additional_libdir"; then
11057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11058 fi
11059 fi
11060 fi
11061 fi
11062 ;;
11063 -R*)
11064 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11065 if test "$enable_rpath" != no; then
11066 haveit=
11067 for x in $rpathdirs; do
11068 if test "X$x" = "X$dir"; then
11069 haveit=yes
11070 break
11071 fi
11072 done
11073 if test -z "$haveit"; then
11074 rpathdirs="$rpathdirs $dir"
11075 fi
11076 haveit=
11077 for x in $ltrpathdirs; do
11078 if test "X$x" = "X$dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 ltrpathdirs="$ltrpathdirs $dir"
11085 fi
11086 fi
11087 ;;
11088 -l*)
11089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11090 ;;
11091 *.la)
11092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11093 ;;
11094 *)
11095 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11097 ;;
11098 esac
11099 done
11100 fi
11101 else
11102 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11103 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11105 else
11106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11108 fi
11109 fi
11110 fi
11111 fi
11112 done
11113 done
11114 if test "X$rpathdirs" != "X"; then
11115 if test -n "$hardcode_libdir_separator"; then
11116 alldirs=
11117 for found_dir in $rpathdirs; do
11118 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11119 done
11120 acl_save_libdir="$libdir"
11121 libdir="$alldirs"
11122 eval flag=\"$hardcode_libdir_flag_spec\"
11123 libdir="$acl_save_libdir"
11124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11125 else
11126 for found_dir in $rpathdirs; do
11127 acl_save_libdir="$libdir"
11128 libdir="$found_dir"
11129 eval flag=\"$hardcode_libdir_flag_spec\"
11130 libdir="$acl_save_libdir"
11131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11132 done
11133 fi
11134 fi
11135 if test "X$ltrpathdirs" != "X"; then
11136 for found_dir in $ltrpathdirs; do
11137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11138 done
11139 fi
11140
11141
11142
11143
11144
11145
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11148 $as_echo_n "checking for iconv... " >&6; }
11149 if ${am_cv_func_iconv+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152
11153 am_cv_func_iconv="no, consider installing GNU libiconv"
11154 am_cv_lib_iconv=no
11155 am_save_CPPFLAGS="$CPPFLAGS"
11156 CPPFLAGS="$CPPFLAGS $INCICONV"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 #include <stdlib.h>
11160 #include <iconv.h>
11161 int
11162 main ()
11163 {
11164 iconv_t cd = iconv_open("","");
11165 iconv(cd,NULL,NULL,NULL,NULL);
11166 iconv_close(cd);
11167 ;
11168 return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_cxx_try_link "$LINENO"; then :
11172 am_cv_func_iconv=yes
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 CPPFLAGS="$am_save_CPPFLAGS"
11177
11178 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11179 for _libs in .libs _libs; do
11180 am_save_CPPFLAGS="$CPPFLAGS"
11181 am_save_LIBS="$LIBS"
11182 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11183 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <stdlib.h>
11187 #include <iconv.h>
11188 int
11189 main ()
11190 {
11191 iconv_t cd = iconv_open("","");
11192 iconv(cd,NULL,NULL,NULL,NULL);
11193 iconv_close(cd);
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_cxx_try_link "$LINENO"; then :
11199 INCICONV="-I../libiconv/include"
11200 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11201 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11202 am_cv_lib_iconv=yes
11203 am_cv_func_iconv=yes
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 CPPFLAGS="$am_save_CPPFLAGS"
11208 LIBS="$am_save_LIBS"
11209 if test "$am_cv_func_iconv" = "yes"; then
11210 break
11211 fi
11212 done
11213 fi
11214
11215 if test "$am_cv_func_iconv" != yes; then
11216 am_save_CPPFLAGS="$CPPFLAGS"
11217 am_save_LIBS="$LIBS"
11218 CPPFLAGS="$CPPFLAGS $INCICONV"
11219 LIBS="$LIBS $LIBICONV"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 #include <stdlib.h>
11223 #include <iconv.h>
11224 int
11225 main ()
11226 {
11227 iconv_t cd = iconv_open("","");
11228 iconv(cd,NULL,NULL,NULL,NULL);
11229 iconv_close(cd);
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_cxx_try_link "$LINENO"; then :
11235 am_cv_lib_iconv=yes
11236 am_cv_func_iconv=yes
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 CPPFLAGS="$am_save_CPPFLAGS"
11241 LIBS="$am_save_LIBS"
11242 fi
11243
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11246 $as_echo "$am_cv_func_iconv" >&6; }
11247 if test "$am_cv_func_iconv" = yes; then
11248
11249 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11250
11251 fi
11252 if test "$am_cv_lib_iconv" = yes; then
11253
11254 for element in $INCICONV; do
11255 haveit=
11256 for x in $CPPFLAGS; do
11257
11258 acl_save_prefix="$prefix"
11259 prefix="$acl_final_prefix"
11260 acl_save_exec_prefix="$exec_prefix"
11261 exec_prefix="$acl_final_exec_prefix"
11262 eval x=\"$x\"
11263 exec_prefix="$acl_save_exec_prefix"
11264 prefix="$acl_save_prefix"
11265
11266 if test "X$x" = "X$element"; then
11267 haveit=yes
11268 break
11269 fi
11270 done
11271 if test -z "$haveit"; then
11272 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11273 fi
11274 done
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11277 $as_echo_n "checking how to link with libiconv... " >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11279 $as_echo "$LIBICONV" >&6; }
11280 else
11281 LIBICONV=
11282 LTLIBICONV=
11283 fi
11284
11285
11286
11287 if test "$am_cv_func_iconv" = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11289 $as_echo_n "checking for iconv declaration... " >&6; }
11290 if ${am_cv_proto_iconv+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296
11297 #include <stdlib.h>
11298 #include <iconv.h>
11299 extern
11300 #ifdef __cplusplus
11301 "C"
11302 #endif
11303 #if defined(__STDC__) || defined(__cplusplus)
11304 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11305 #else
11306 size_t iconv();
11307 #endif
11308
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318 am_cv_proto_iconv_arg1=""
11319 else
11320 am_cv_proto_iconv_arg1="const"
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 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);"
11324 fi
11325
11326 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11328 }$am_cv_proto_iconv" >&5
11329 $as_echo "${ac_t:-
11330 }$am_cv_proto_iconv" >&6; }
11331
11332 cat >>confdefs.h <<_ACEOF
11333 #define ICONV_CONST $am_cv_proto_iconv_arg1
11334 _ACEOF
11335
11336 fi
11337
11338
11339 # Until we have in-tree GNU iconv:
11340 LIBICONV_DEP=
11341 if test -f "$LTLIBICONV"; then
11342 LIBICONV_DEP=$LTLIBICONV
11343 fi
11344
11345
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11349 if ${am_cv_val_LC_MESSAGES+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <locale.h>
11355 int
11356 main ()
11357 {
11358 return LC_MESSAGES
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_cxx_try_link "$LINENO"; then :
11364 am_cv_val_LC_MESSAGES=yes
11365 else
11366 am_cv_val_LC_MESSAGES=no
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11373 if test $am_cv_val_LC_MESSAGES = yes; then
11374
11375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11376
11377 fi
11378
11379
11380
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11383 if ${am_cv_langinfo_codeset+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388 #include <langinfo.h>
11389 int
11390 main ()
11391 {
11392 char* cs = nl_langinfo(CODESET);
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_cxx_try_link "$LINENO"; then :
11398 am_cv_langinfo_codeset=yes
11399 else
11400 am_cv_langinfo_codeset=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11407 $as_echo "$am_cv_langinfo_codeset" >&6; }
11408 if test $am_cv_langinfo_codeset = yes; then
11409
11410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11411
11412 fi
11413
11414
11415 # We will need to find libiberty.h and ansidecl.h
11416 saved_CFLAGS="$CFLAGS"
11417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11418 saved_CXXFLAGS="$CXXFLAGS"
11419 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11420
11421 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11422 # normal autoconf function for these. But force definition of
11423 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11424 # basename handling in libiberty.h.
11425 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11426 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11427 #undef HAVE_DECL_BASENAME
11428 #define HAVE_DECL_BASENAME 1
11429 #include \"ansidecl.h\"
11430 #include \"system.h\"
11431 "
11432 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11433 ac_have_decl=1
11434 else
11435 ac_have_decl=0
11436 fi
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_DECL_BASENAME $ac_have_decl
11440 _ACEOF
11441 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11442 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11443 #undef HAVE_DECL_BASENAME
11444 #define HAVE_DECL_BASENAME 1
11445 #include \"ansidecl.h\"
11446 #include \"system.h\"
11447 "
11448 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11449 ac_have_decl=1
11450 else
11451 ac_have_decl=0
11452 fi
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_DECL_STRSTR $ac_have_decl
11456 _ACEOF
11457
11458
11459 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11460 madvise stpcpy strnlen strsignal strverscmp \
11461 strtol strtoul strtoll strtoull setenv unsetenv \
11462 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11463 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
11464 do
11465 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11468 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 #undef $ac_tr_decl
11474 #define $ac_tr_decl 1
11475
11476 #include "ansidecl.h"
11477 #include "system.h"
11478
11479 int
11480 main ()
11481 {
11482 #ifndef $ac_func
11483 char *(*pfn) = (char *(*)) $ac_func ;
11484 #endif
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_cxx_try_compile "$LINENO"; then :
11490 eval "gcc_cv_have_decl_$ac_func=yes"
11491 else
11492 eval "gcc_cv_have_decl_$ac_func=no"
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 fi
11496
11497 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11500 #define $ac_tr_decl 1
11501 _ACEOF
11502
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11506 #define $ac_tr_decl 0
11507 _ACEOF
11508
11509 fi
11510
11511 done
11512
11513
11514 for ac_func in getrlimit setrlimit getrusage
11515 do
11516 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11518 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11519 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #undef $ac_tr_decl
11525 #define $ac_tr_decl 1
11526
11527 #include "ansidecl.h"
11528 #include "system.h"
11529 #ifdef HAVE_SYS_RESOURCE_H
11530 #include <sys/resource.h>
11531 #endif
11532
11533
11534 int
11535 main ()
11536 {
11537 #ifndef $ac_func
11538 char *(*pfn) = (char *(*)) $ac_func ;
11539 #endif
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_cxx_try_compile "$LINENO"; then :
11545 eval "gcc_cv_have_decl_$ac_func=yes"
11546 else
11547 eval "gcc_cv_have_decl_$ac_func=no"
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 fi
11551
11552 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11555 #define $ac_tr_decl 1
11556 _ACEOF
11557
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11561 #define $ac_tr_decl 0
11562 _ACEOF
11563
11564 fi
11565
11566 done
11567
11568
11569 for ac_func in mallinfo mallinfo2
11570 do
11571 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11573 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11574 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 #undef $ac_tr_decl
11580 #define $ac_tr_decl 1
11581
11582 #include "ansidecl.h"
11583 #include "system.h"
11584 #ifdef HAVE_MALLOC_H
11585 #include <malloc.h>
11586 #endif
11587
11588
11589 int
11590 main ()
11591 {
11592 #ifndef $ac_func
11593 char *(*pfn) = (char *(*)) $ac_func ;
11594 #endif
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_cxx_try_compile "$LINENO"; then :
11600 eval "gcc_cv_have_decl_$ac_func=yes"
11601 else
11602 eval "gcc_cv_have_decl_$ac_func=no"
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 fi
11606
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11610 #define $ac_tr_decl 1
11611 _ACEOF
11612
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11616 #define $ac_tr_decl 0
11617 _ACEOF
11618
11619 fi
11620
11621 done
11622
11623
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11626
11627 #include "ansidecl.h"
11628 #include "system.h"
11629 #ifdef HAVE_SYS_RESOURCE_H
11630 #include <sys/resource.h>
11631 #endif
11632
11633 int
11634 main ()
11635 {
11636 rlim_t l = 0;
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_cxx_try_compile "$LINENO"; then :
11642
11643 else
11644
11645 $as_echo "#define rlim_t long" >>confdefs.h
11646
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649
11650 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11651 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11652 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11653 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11654 for ac_func in ldgetname
11655 do
11656 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11658 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11659 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 #undef $ac_tr_decl
11665 #define $ac_tr_decl 1
11666
11667 #include "ansidecl.h"
11668 #include "system.h"
11669 #ifdef HAVE_LDFCN_H
11670 #undef FREAD
11671 #undef FWRITE
11672 #include <ldfcn.h>
11673 #endif
11674
11675
11676 int
11677 main ()
11678 {
11679 #ifndef $ac_func
11680 char *(*pfn) = (char *(*)) $ac_func ;
11681 #endif
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_cxx_try_compile "$LINENO"; then :
11687 eval "gcc_cv_have_decl_$ac_func=yes"
11688 else
11689 eval "gcc_cv_have_decl_$ac_func=no"
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693
11694 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11696 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11697 #define $ac_tr_decl 1
11698 _ACEOF
11699
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11703 #define $ac_tr_decl 0
11704 _ACEOF
11705
11706 fi
11707
11708 done
11709
11710
11711 for ac_func in times
11712 do
11713 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11716 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 #undef $ac_tr_decl
11722 #define $ac_tr_decl 1
11723
11724 #include "ansidecl.h"
11725 #include "system.h"
11726 #ifdef HAVE_SYS_TIMES_H
11727 #include <sys/times.h>
11728 #endif
11729
11730
11731 int
11732 main ()
11733 {
11734 #ifndef $ac_func
11735 char *(*pfn) = (char *(*)) $ac_func ;
11736 #endif
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_cxx_try_compile "$LINENO"; then :
11742 eval "gcc_cv_have_decl_$ac_func=yes"
11743 else
11744 eval "gcc_cv_have_decl_$ac_func=no"
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 fi
11748
11749 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11752 #define $ac_tr_decl 1
11753 _ACEOF
11754
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11758 #define $ac_tr_decl 0
11759 _ACEOF
11760
11761 fi
11762
11763 done
11764
11765
11766 for ac_func in sigaltstack
11767 do
11768 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11770 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11771 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 #undef $ac_tr_decl
11777 #define $ac_tr_decl 1
11778
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #include <signal.h>
11782
11783
11784 int
11785 main ()
11786 {
11787 #ifndef $ac_func
11788 char *(*pfn) = (char *(*)) $ac_func ;
11789 #endif
11790 ;
11791 return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_cxx_try_compile "$LINENO"; then :
11795 eval "gcc_cv_have_decl_$ac_func=yes"
11796 else
11797 eval "gcc_cv_have_decl_$ac_func=no"
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 fi
11801
11802 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11805 #define $ac_tr_decl 1
11806 _ACEOF
11807
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11811 #define $ac_tr_decl 0
11812 _ACEOF
11813
11814 fi
11815
11816 done
11817
11818
11819 # More time-related stuff.
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11821 $as_echo_n "checking for struct tms... " >&6; }
11822 if ${ac_cv_struct_tms+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11828
11829 #include "ansidecl.h"
11830 #include "system.h"
11831 #ifdef HAVE_SYS_TIMES_H
11832 #include <sys/times.h>
11833 #endif
11834
11835 int
11836 main ()
11837 {
11838 struct tms tms;
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_cxx_try_compile "$LINENO"; then :
11844 ac_cv_struct_tms=yes
11845 else
11846 ac_cv_struct_tms=no
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11851 $as_echo "$ac_cv_struct_tms" >&6; }
11852 if test $ac_cv_struct_tms = yes; then
11853
11854 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11855
11856 fi
11857
11858 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11859 # revisit after autoconf 2.50.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11861 $as_echo_n "checking for clock_t... " >&6; }
11862 if ${gcc_cv_type_clock_t+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 #include "ansidecl.h"
11870 #include "system.h"
11871
11872 int
11873 main ()
11874 {
11875 clock_t x;
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_cxx_try_compile "$LINENO"; then :
11881 gcc_cv_type_clock_t=yes
11882 else
11883 gcc_cv_type_clock_t=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11888 $as_echo "$gcc_cv_type_clock_t" >&6; }
11889 if test $gcc_cv_type_clock_t = yes; then
11890
11891 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11892
11893 fi
11894
11895 # Check if F_SETLKW is supported by fcntl.
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11897 $as_echo_n "checking for F_SETLKW... " >&6; }
11898 if ${ac_cv_f_setlkw+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 #include <fcntl.h>
11906 int
11907 main ()
11908 {
11909
11910 struct flock fl;
11911 fl.l_whence = 0;
11912 fl.l_start = 0;
11913 fl.l_len = 0;
11914 fl.l_pid = 0;
11915 return fcntl (1, F_SETLKW, &fl);
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_cxx_try_compile "$LINENO"; then :
11921 ac_cv_f_setlkw=yes
11922 else
11923 ac_cv_f_setlkw=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11928 $as_echo "$ac_cv_f_setlkw" >&6; }
11929 if test $ac_cv_f_setlkw = yes; then
11930
11931 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11932
11933 fi
11934
11935 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11936 CFLAGS="$saved_CFLAGS"
11937 CXXFLAGS="$saved_CXXFLAGS"
11938
11939 # mkdir takes a single argument on some systems.
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11941 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11942 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947
11948 #include <sys/types.h>
11949 #ifdef HAVE_SYS_STAT_H
11950 # include <sys/stat.h>
11951 #endif
11952 #ifdef HAVE_UNISTD_H
11953 # include <unistd.h>
11954 #endif
11955 #ifdef HAVE_DIRECT_H
11956 # include <direct.h>
11957 #endif
11958 int
11959 main ()
11960 {
11961 mkdir ("foo", 0);
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_cxx_try_compile "$LINENO"; then :
11967 gcc_cv_mkdir_takes_one_arg=no
11968 else
11969 gcc_cv_mkdir_takes_one_arg=yes
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11974 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11975 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11976
11977 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11978
11979 fi
11980
11981
11982 # File extensions
11983 manext='.1'
11984 objext='.o'
11985
11986
11987
11988 # With Setjmp/Longjmp based exception handling.
11989 # Check whether --enable-sjlj-exceptions was given.
11990 if test "${enable_sjlj_exceptions+set}" = set; then :
11991 enableval=$enable_sjlj_exceptions; case $target in
11992 *-*-hpux10*)
11993 if test $enableval != yes; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11995 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11996 enableval=yes
11997 fi
11998 ;;
11999 esac
12000 force_sjlj_exceptions=yes
12001 else
12002 case $target in
12003 *-*-hpux10*)
12004 force_sjlj_exceptions=yes
12005 enableval=yes
12006 ;;
12007 lm32*-*-*)
12008 force_sjlj_exceptions=yes
12009 enableval=yes
12010 ;;
12011 *)
12012 force_sjlj_exceptions=no
12013 ;;
12014 esac
12015 fi
12016
12017 if test $force_sjlj_exceptions = yes; then
12018 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12019
12020 cat >>confdefs.h <<_ACEOF
12021 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12022 _ACEOF
12023
12024 fi
12025
12026 # --------------------------------------------------------
12027 # Build, host, and target specific configuration fragments
12028 # --------------------------------------------------------
12029
12030 # Collect build-machine-specific information.
12031 . ${srcdir}/config.build || exit 1
12032
12033 # Collect host-machine-specific information.
12034 . ${srcdir}/config.host || exit 1
12035
12036 target_gtfiles=
12037
12038 # Collect target-machine-specific information.
12039 . ${srcdir}/config.gcc || exit 1
12040
12041 extra_objs="${host_extra_objs} ${extra_objs}"
12042 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12043
12044 # Default the target-machine variables that were not explicitly set.
12045 if test x"$tm_file" = x
12046 then tm_file=$cpu_type/$cpu_type.h; fi
12047
12048 if test x"$extra_headers" = x
12049 then extra_headers=; fi
12050
12051 if test x$md_file = x
12052 then md_file=$cpu_type/$cpu_type.md; fi
12053
12054 if test x$out_file = x
12055 then out_file=$cpu_type/$cpu_type.c; fi
12056
12057 if test x"$tmake_file" = x
12058 then tmake_file=$cpu_type/t-$cpu_type
12059 fi
12060
12061 # Support --enable-initfini-array.
12062 if test x$enable_initfini_array != xno; then
12063 tm_file="${tm_file} initfini-array.h"
12064 fi
12065
12066 if test x"$dwarf2" = xyes
12067 then tm_file="$tm_file tm-dwarf2.h"
12068 fi
12069
12070 # Say what files are being used for the output code and MD file.
12071 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12072 echo "Using \`$srcdir/config/$md_file' as machine description file."
12073
12074 # If any of the xm_file variables contain nonexistent files, warn
12075 # about them and drop them.
12076
12077 bx=
12078 for x in $build_xm_file; do
12079 if test -f $srcdir/config/$x
12080 then bx="$bx $x"
12081 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12082 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12083 fi
12084 done
12085 build_xm_file="$bx"
12086
12087 hx=
12088 for x in $host_xm_file; do
12089 if test -f $srcdir/config/$x
12090 then hx="$hx $x"
12091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12093 fi
12094 done
12095 host_xm_file="$hx"
12096
12097 tx=
12098 for x in $xm_file; do
12099 if test -f $srcdir/config/$x
12100 then tx="$tx $x"
12101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12103 fi
12104 done
12105 xm_file="$tx"
12106
12107 count=a
12108 for f in $tm_file; do
12109 count=${count}x
12110 done
12111 if test $count = ax; then
12112 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12113 else
12114 echo "Using the following target machine macro files:"
12115 for f in $tm_file; do
12116 echo " $srcdir/config/$f"
12117 done
12118 fi
12119
12120 if test x$use_long_long_for_widest_fast_int = xyes; then
12121
12122 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12123
12124 fi
12125
12126 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12127
12128 cat >>confdefs.h <<_ACEOF
12129 #define HAVE_GNU_LD $gnu_ld_bool
12130 _ACEOF
12131
12132
12133 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12134
12135 cat >>confdefs.h <<_ACEOF
12136 #define HAVE_GNU_AS $gnu_as_bool
12137 _ACEOF
12138
12139
12140 count=a
12141 for f in $host_xm_file; do
12142 count=${count}x
12143 done
12144 if test $count = a; then
12145 :
12146 elif test $count = ax; then
12147 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12148 else
12149 echo "Using the following host machine macro files:"
12150 for f in $host_xm_file; do
12151 echo " $srcdir/config/$f"
12152 done
12153 fi
12154 echo "Using ${out_host_hook_obj} for host machine hooks."
12155
12156 if test "$host_xm_file" != "$build_xm_file"; then
12157 count=a
12158 for f in $build_xm_file; do
12159 count=${count}x
12160 done
12161 if test $count = a; then
12162 :
12163 elif test $count = ax; then
12164 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12165 else
12166 echo "Using the following build machine macro files:"
12167 for f in $build_xm_file; do
12168 echo " $srcdir/config/$f"
12169 done
12170 fi
12171 fi
12172
12173 if test -n "$configured_native_system_header_dir"; then
12174 native_system_header_dir=$configured_native_system_header_dir
12175 fi
12176 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12177
12178
12179 case ${host} in
12180 powerpc*-*-darwin*)
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12182 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12183 if ${gcc_cv_mcontext_underscores+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 #include <sys/cdefs.h>
12190 #include <sys/signal.h>
12191 #include <ucontext.h>
12192 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12193
12194 _ACEOF
12195 if ac_fn_cxx_try_compile "$LINENO"; then :
12196 gcc_cv_mcontext_underscores=no
12197 else
12198 gcc_cv_mcontext_underscores=yes
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12203 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12204 if test $gcc_cv_mcontext_underscores = yes; then
12205
12206 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12207
12208 fi
12209 ;;
12210 esac
12211
12212 # ---------
12213 # Threading
12214 # ---------
12215
12216 # Check if a valid thread package
12217 case ${enable_threads} in
12218 "" | no)
12219 # No threads
12220 target_thread_file='single'
12221 ;;
12222 yes)
12223 # default
12224 target_thread_file='single'
12225 ;;
12226 aix | dce | lynx | mipssde | posix | rtems | \
12227 single | tpf | vxworks | win32)
12228 target_thread_file=${enable_threads}
12229 ;;
12230 *)
12231 echo "${enable_threads} is an unknown thread package" 1>&2
12232 exit 1
12233 ;;
12234 esac
12235
12236 if test x${thread_file} = x; then
12237 # No thread file set by target-specific clauses in config.gcc,
12238 # so use file chosen by default logic above
12239 thread_file=${target_thread_file}
12240 fi
12241
12242 # --------
12243 # UNSORTED
12244 # --------
12245
12246 use_cxa_atexit=no
12247 if test x$enable___cxa_atexit = xyes || \
12248 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12249 if test x$host = x$target; then
12250 case $host in
12251 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12252 # keyed to flag_use_cxa_atexit
12253 *-*-mingw32*)
12254 use_cxa_atexit=yes
12255 ;;
12256 powerpc-ibm-aix*)
12257 use_cxa_atexit=yes
12258 ;;
12259 *)
12260 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12261 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12262 use_cxa_atexit=yes
12263 else
12264 echo "__cxa_atexit can't be enabled on this target"
12265 fi
12266
12267 ;;
12268 esac
12269 else
12270 # We can't check for __cxa_atexit when building a cross, so assume
12271 # it is available
12272 use_cxa_atexit=yes
12273 fi
12274 if test x$use_cxa_atexit = xyes; then
12275
12276 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12277
12278 fi
12279 fi
12280
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12283 extra_modes_file='$(srcdir)'/config/${extra_modes}
12284
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12288 _ACEOF
12289
12290 fi
12291
12292 # Convert extra_options into a form suitable for Makefile use.
12293 extra_opt_files=
12294 all_opt_files=
12295 for f in $extra_options; do
12296 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12297 all_opt_files="$all_opt_files $srcdir/config/$f"
12298 done
12299
12300
12301 # auto-host.h is the file containing items generated by autoconf and is
12302 # the first file included by config.h.
12303 # If host=build, it is correct to have bconfig include auto-host.h
12304 # as well. If host!=build, we are in error and need to do more
12305 # work to find out the build config parameters.
12306 if test x$host = x$build
12307 then
12308 build_auto=auto-host.h
12309 HAVE_AUTO_BUILD='# '
12310 else
12311 # We create a subdir, then run autoconf in the subdir.
12312 # To prevent recursion we set host and build for the new
12313 # invocation of configure to the build for this invocation
12314 # of configure.
12315 tempdir=build.$$
12316 rm -rf $tempdir
12317 mkdir $tempdir
12318 cd $tempdir
12319 case ${srcdir} in
12320 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12321 *) realsrcdir=../${srcdir};;
12322 esac
12323 # Clearing GMPINC is necessary to prevent host headers being
12324 # used by the build compiler. Defining GENERATOR_FILE stops
12325 # system.h from including gmp.h.
12326 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12327 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12328 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12329 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12330 ${realsrcdir}/configure \
12331 --enable-languages=${enable_languages-all} \
12332 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12333 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12334 --target=$target_alias --host=$build_alias \
12335 --build=$build_alias || exit # retaining $tempdir
12336
12337 # We just finished tests for the build machine, so rename
12338 # the file auto-build.h in the gcc directory.
12339 mv auto-host.h ../auto-build.h
12340 cd ..
12341 rm -rf $tempdir
12342 build_auto=auto-build.h
12343 HAVE_AUTO_BUILD=
12344 fi
12345
12346
12347
12348 tm_file="${tm_file} defaults.h"
12349 tm_p_file="${tm_p_file} tm-preds.h"
12350 tm_d_file="${tm_d_file} defaults.h"
12351 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12352 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12353 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12354 # put this back in temporarily.
12355 xm_file="auto-host.h ansidecl.h ${xm_file}"
12356
12357 # --------
12358 # UNSORTED
12359 # --------
12360
12361 # Compile in configure arguments.
12362 if test -f configargs.h ; then
12363 # Being re-configured.
12364 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12365 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12366 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12367 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12368 fi
12369 else
12370 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12371 fi
12372
12373 # Double all backslashes and backslash all quotes to turn
12374 # gcc_config_arguments into a C string.
12375 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12376 $gcc_config_arguments
12377 EOF
12378 gcc_config_arguments_str=`cat conftest.out`
12379 rm -f conftest.out
12380
12381 cat > configargs.h <<EOF
12382 /* Generated automatically. */
12383 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12384 static const char thread_model[] = "$thread_file";
12385
12386 static const struct {
12387 const char *name, *value;
12388 } configure_default_options[] = $configure_default_options;
12389 EOF
12390
12391 gcc_BASEVER=`cat $srcdir/BASE-VER`
12392 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12393 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12394 if test -f $srcdir/REVISION ; then
12395 gcc_REVISION=`cat $srcdir/REVISION`
12396 else
12397 gcc_REVISION=""
12398 fi
12399 cat > plugin-version.h <<EOF
12400 #include "configargs.h"
12401
12402 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12403 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12404 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12405 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12406
12407 static char basever[] = "$gcc_BASEVER";
12408 static char datestamp[] = "$gcc_DATESTAMP";
12409 static char devphase[] = "$gcc_DEVPHASE";
12410 static char revision[] = "$gcc_REVISION";
12411
12412 /* FIXME plugins: We should make the version information more precise.
12413 One way to do is to add a checksum. */
12414
12415 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12416 devphase, revision,
12417 configuration_arguments};
12418 EOF
12419
12420 # Determine what GCC version number to use in filesystem paths.
12421
12422 get_gcc_base_ver="cat"
12423
12424 # Check whether --with-gcc-major-version-only was given.
12425 if test "${with_gcc_major_version_only+set}" = set; then :
12426 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12427 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12428 fi
12429
12430 fi
12431
12432
12433
12434
12435 # Internationalization
12436 # If we haven't got the data from the intl directory,
12437 # assume NLS is disabled.
12438 USE_NLS=no
12439 LIBINTL=
12440 LIBINTL_DEP=
12441 INCINTL=
12442 XGETTEXT=
12443 GMSGFMT=
12444 POSUB=
12445
12446 if test -f ../intl/config.intl; then
12447 . ../intl/config.intl
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12450 $as_echo_n "checking whether NLS is requested... " >&6; }
12451 if test x"$USE_NLS" != xyes; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457
12458 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12459
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12462 $as_echo_n "checking for catalogs to be installed... " >&6; }
12463 # Look for .po and .gmo files in the source directory.
12464 CATALOGS=
12465 XLINGUAS=
12466 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12467 # If there aren't any .gmo files the shell will give us the
12468 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12469 # weeded out.
12470 case "$cat" in *\**)
12471 continue;;
12472 esac
12473 # The quadruple backslash is collapsed to a double backslash
12474 # by the backticks, then collapsed again by the double quotes,
12475 # leaving us with one backslash in the sed expression (right
12476 # before the dot that mustn't act as a wildcard).
12477 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12478 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12479 # The user is allowed to set LINGUAS to a list of languages to
12480 # install catalogs for. If it's empty that means "all of them."
12481 if test "x$LINGUAS" = x; then
12482 CATALOGS="$CATALOGS $cat"
12483 XLINGUAS="$XLINGUAS $lang"
12484 else
12485 case "$LINGUAS" in *$lang*)
12486 CATALOGS="$CATALOGS $cat"
12487 XLINGUAS="$XLINGUAS $lang"
12488 ;;
12489 esac
12490 fi
12491 done
12492 LINGUAS="$XLINGUAS"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12494 $as_echo "$LINGUAS" >&6; }
12495
12496
12497 DATADIRNAME=share
12498
12499 INSTOBJEXT=.mo
12500
12501 GENCAT=gencat
12502
12503 CATOBJEXT=.gmo
12504
12505 fi
12506
12507 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12508 # -liconv on the link line twice.
12509 case "$LIBINTL" in *$LIBICONV*)
12510 LIBICONV= ;;
12511 esac
12512
12513 # Check whether --enable-secureplt was given.
12514 if test "${enable_secureplt+set}" = set; then :
12515 enableval=$enable_secureplt;
12516 fi
12517
12518
12519 # Check whether --enable-mingw-wildcard was given.
12520 if test "${enable_mingw_wildcard+set}" = set; then :
12521 enableval=$enable_mingw_wildcard;
12522 else
12523 enable_mingw_wildcard=platform
12524 fi
12525
12526 if test x"$enable_mingw_wildcard" != xplatform ; then :
12527
12528 cat >>confdefs.h <<_ACEOF
12529 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12530 _ACEOF
12531
12532 fi
12533
12534 # Check whether --enable-large-address-aware was given.
12535 if test "${enable_large_address_aware+set}" = set; then :
12536 enableval=$enable_large_address_aware;
12537 fi
12538
12539 if test x"$enable_large_address_aware" = xyes; then :
12540
12541 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12542
12543 fi
12544
12545 # Check whether --enable-leading-mingw64-underscores was given.
12546 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12547 enableval=$enable_leading_mingw64_underscores;
12548 fi
12549
12550 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12551
12552 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12553
12554 fi
12555
12556 # Check whether --enable-cld was given.
12557 if test "${enable_cld+set}" = set; then :
12558 enableval=$enable_cld;
12559 else
12560 enable_cld=no
12561 fi
12562
12563
12564 # Check whether --enable-frame-pointer was given.
12565 if test "${enable_frame_pointer+set}" = set; then :
12566 enableval=$enable_frame_pointer;
12567 else
12568
12569 case $target_os in
12570 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12571 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12572 enable_frame_pointer=no
12573 ;;
12574 *)
12575 enable_frame_pointer=yes
12576 ;;
12577 esac
12578
12579 fi
12580
12581
12582 case $target in
12583 i[34567]86-*-* | x86_64-*-*)
12584 if test "x$enable_cld" = xyes; then
12585 tm_defines="${tm_defines} USE_IX86_CLD=1"
12586 fi
12587 if test "x$enable_frame_pointer" = xyes; then
12588 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12589 fi
12590 ;;
12591 esac
12592
12593 # Windows32 Registry support for specifying GCC installation paths.
12594 # Check whether --enable-win32-registry was given.
12595 if test "${enable_win32_registry+set}" = set; then :
12596 enableval=$enable_win32_registry;
12597 fi
12598
12599
12600 case $host_os in
12601 win32 | pe | cygwin* | mingw32*)
12602 if test "x$enable_win32_registry" != xno; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12604 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12605 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 ac_func_search_save_LIBS=$LIBS
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char RegOpenKeyExA ();
12619 int
12620 main ()
12621 {
12622 return RegOpenKeyExA ();
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 for ac_lib in '' advapi32; do
12628 if test -z "$ac_lib"; then
12629 ac_res="none required"
12630 else
12631 ac_res=-l$ac_lib
12632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12633 fi
12634 if ac_fn_cxx_try_link "$LINENO"; then :
12635 ac_cv_search_RegOpenKeyExA=$ac_res
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext
12639 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12640 break
12641 fi
12642 done
12643 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12644
12645 else
12646 ac_cv_search_RegOpenKeyExA=no
12647 fi
12648 rm conftest.$ac_ext
12649 LIBS=$ac_func_search_save_LIBS
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12652 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12653 ac_res=$ac_cv_search_RegOpenKeyExA
12654 if test "$ac_res" != no; then :
12655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12656
12657 else
12658 enable_win32_registry=no
12659 fi
12660
12661 fi
12662
12663 if test "x$enable_win32_registry" != xno; then
12664
12665 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12666
12667
12668 if test "x$enable_win32_registry" != xyes \
12669 && test "x$enable_win32_registry" != x; then
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12673 _ACEOF
12674
12675 fi
12676 fi
12677 ;;
12678 esac
12679
12680 # Get an absolute path to the GCC top-level source directory
12681 holddir=`${PWDCMD-pwd}`
12682 cd $srcdir
12683 topdir=`${PWDCMD-pwd}`
12684 cd $holddir
12685
12686 # Conditionalize the makefile for this host machine.
12687 xmake_file=
12688 for f in ${host_xmake_file}
12689 do
12690 if test -f ${srcdir}/config/$f
12691 then
12692 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12693 fi
12694 done
12695
12696 # Conditionalize the makefile for this target machine.
12697 tmake_file_=
12698 for f in ${tmake_file}
12699 do
12700 if test -f ${srcdir}/config/$f
12701 then
12702 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12703 fi
12704 done
12705 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12706
12707 out_object_file=`basename $out_file .c`.o
12708 common_out_object_file=`basename $common_out_file .c`.o
12709
12710 tm_file_list="options.h"
12711 tm_include_list="options.h insn-constants.h"
12712 for f in $tm_file; do
12713 case $f in
12714 ./* )
12715 f=`echo $f | sed 's/^..//'`
12716 tm_file_list="${tm_file_list} $f"
12717 tm_include_list="${tm_include_list} $f"
12718 ;;
12719 defaults.h )
12720 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12721 tm_include_list="${tm_include_list} $f"
12722 ;;
12723 * )
12724 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12725 tm_include_list="${tm_include_list} config/$f"
12726 ;;
12727 esac
12728 done
12729
12730 tm_p_file_list=
12731 tm_p_include_list=
12732 for f in $tm_p_file; do
12733 case $f in
12734 tm-preds.h )
12735 tm_p_file_list="${tm_p_file_list} $f"
12736 tm_p_include_list="${tm_p_include_list} $f"
12737 ;;
12738 * )
12739 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12740 tm_p_include_list="${tm_p_include_list} config/$f"
12741 esac
12742 done
12743
12744 tm_d_file_list=
12745 tm_d_include_list="options.h insn-constants.h"
12746 for f in $tm_d_file; do
12747 case $f in
12748 defaults.h )
12749 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12750 tm_d_include_list="${tm_d_include_list} $f"
12751 ;;
12752 * )
12753 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12754 tm_d_include_list="${tm_d_include_list} config/$f"
12755 ;;
12756 esac
12757 done
12758
12759 xm_file_list=
12760 xm_include_list=
12761 for f in $xm_file; do
12762 case $f in
12763 ansidecl.h )
12764 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12765 xm_include_list="${xm_include_list} $f"
12766 ;;
12767 auto-host.h )
12768 xm_file_list="${xm_file_list} $f"
12769 xm_include_list="${xm_include_list} $f"
12770 ;;
12771 * )
12772 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12773 xm_include_list="${xm_include_list} config/$f"
12774 ;;
12775 esac
12776 done
12777
12778 host_xm_file_list=
12779 host_xm_include_list=
12780 for f in $host_xm_file; do
12781 case $f in
12782 ansidecl.h )
12783 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12784 host_xm_include_list="${host_xm_include_list} $f"
12785 ;;
12786 auto-host.h )
12787 host_xm_file_list="${host_xm_file_list} $f"
12788 host_xm_include_list="${host_xm_include_list} $f"
12789 ;;
12790 * )
12791 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12792 host_xm_include_list="${host_xm_include_list} config/$f"
12793 ;;
12794 esac
12795 done
12796
12797 build_xm_file_list=
12798 for f in $build_xm_file; do
12799 case $f in
12800 ansidecl.h )
12801 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12802 build_xm_include_list="${build_xm_include_list} $f"
12803 ;;
12804 auto-build.h | auto-host.h )
12805 build_xm_file_list="${build_xm_file_list} $f"
12806 build_xm_include_list="${build_xm_include_list} $f"
12807 ;;
12808 * )
12809 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12810 build_xm_include_list="${build_xm_include_list} config/$f"
12811 ;;
12812 esac
12813 done
12814
12815 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12816 # cross-compiler which does not use the native headers and libraries.
12817 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12818 CROSS=
12819 ALL=all.internal
12820 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12821 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12822
12823 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12824 test x$build != x$host || test "x$with_build_sysroot" != x; then
12825 if test "x$with_build_sysroot" != x; then
12826 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12827 else
12828 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12829 fi
12830
12831 if test x$host != x$target
12832 then
12833 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12834 ALL=all.cross
12835 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12836 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12837 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12838 fi
12839
12840 if test "x$with_build_sysroot" != "x"; then
12841 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12842 elif test "x$with_sysroot" = x; then
12843 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12844 elif test "x$with_sysroot" = xyes; then
12845 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12846 else
12847 target_header_dir="${with_sysroot}${native_system_header_dir}"
12848 fi
12849 else
12850 target_header_dir=${native_system_header_dir}
12851 fi
12852
12853 # If this is a cross-compiler that does not
12854 # have its own set of headers then define
12855 # inhibit_libc
12856
12857 # If this is using newlib, without having the headers available now,
12858 # then define inhibit_libc in LIBGCC2_CFLAGS.
12859 # This prevents libgcc2 from containing any code which requires libc
12860 # support.
12861 : ${inhibit_libc=false}
12862 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12863 test x$with_newlib = xyes ; } &&
12864 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12865 inhibit_libc=true
12866 fi
12867
12868
12869 # When building gcc with a cross-compiler, we need to adjust things so
12870 # that the generator programs are still built with the native compiler.
12871 # Also, we cannot run fixincludes.
12872
12873 # These are the normal (build=host) settings:
12874 CC_FOR_BUILD='$(CC)'
12875 CXX_FOR_BUILD='$(CXX)'
12876 BUILD_CFLAGS='$(ALL_CFLAGS)'
12877 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12878 BUILD_LDFLAGS='$(LDFLAGS)'
12879 STMP_FIXINC=stmp-fixinc
12880
12881 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12882 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12883
12884 # And these apply if build != host, or we are generating coverage data
12885 if test x$build != x$host || test "x$coverage_flags" != x
12886 then
12887 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12888 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12889 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12890
12891 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12892 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12893 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12894 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12895 fi
12896
12897
12898
12899 # Expand extra_headers to include complete path.
12900 # This substitutes for lots of t-* files.
12901 extra_headers_list=
12902 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12903 for file in ${extra_headers} ; do
12904 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12905 done
12906
12907 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12908 if test x"$use_gcc_tgmath" = xyes
12909 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12910 fi
12911
12912 # Define collect2 in Makefile.
12913 case $host_can_use_collect2 in
12914 no) collect2= ;;
12915 *) collect2='collect2$(exeext)' ;;
12916 esac
12917
12918
12919 # Add a definition of USE_COLLECT2 if system wants one.
12920 case $use_collect2 in
12921 no) use_collect2= ;;
12922 "") ;;
12923 *)
12924 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12925 xm_defines="${xm_defines} USE_COLLECT2"
12926 case $host_can_use_collect2 in
12927 no)
12928 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12929 ;;
12930 esac
12931 ;;
12932 esac
12933
12934
12935 cat >>confdefs.h <<_ACEOF
12936 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12937 _ACEOF
12938
12939
12940 # ---------------------------
12941 # Assembler & linker features
12942 # ---------------------------
12943
12944 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12945 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12946 # However when ld-new is first executed from the build tree, libtool will
12947 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12948 # to the build tree. While doing this we need to use the previous-stage
12949 # linker, or we have an infinite loop. The presence of a shell script as
12950 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12951 # the gcc/collect-ld script. So we need to know how libtool works, or
12952 # exec-tool will fail.
12953
12954
12955 case `pwd` in
12956 *\ * | *\ *)
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12959 esac
12960
12961
12962
12963 macro_version='2.2.7a'
12964 macro_revision='1.3134'
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 ltmain="$ac_aux_dir/ltmain.sh"
12979
12980 # Backslashify metacharacters that are still active within
12981 # double-quoted strings.
12982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12983
12984 # Same as above, but do not quote variable references.
12985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12986
12987 # Sed substitution to delay expansion of an escaped shell variable in a
12988 # double_quote_subst'ed string.
12989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12990
12991 # Sed substitution to delay expansion of an escaped single quote.
12992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12993
12994 # Sed substitution to avoid accidental globbing in evaled expressions
12995 no_glob_subst='s/\*/\\\*/g'
12996
12997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13002 $as_echo_n "checking how to print strings... " >&6; }
13003 # Test print first, because it will be a builtin if present.
13004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13006 ECHO='print -r --'
13007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13008 ECHO='printf %s\n'
13009 else
13010 # Use this function as a fallback that always works.
13011 func_fallback_echo ()
13012 {
13013 eval 'cat <<_LTECHO_EOF
13014 $1
13015 _LTECHO_EOF'
13016 }
13017 ECHO='func_fallback_echo'
13018 fi
13019
13020 # func_echo_all arg...
13021 # Invoke $ECHO with all args, space-separated.
13022 func_echo_all ()
13023 {
13024 $ECHO ""
13025 }
13026
13027 case "$ECHO" in
13028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13029 $as_echo "printf" >&6; } ;;
13030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13031 $as_echo "print -r" >&6; } ;;
13032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13033 $as_echo "cat" >&6; } ;;
13034 esac
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13051 if ${ac_cv_path_SED+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13055 for ac_i in 1 2 3 4 5 6 7; do
13056 ac_script="$ac_script$as_nl$ac_script"
13057 done
13058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13059 { ac_script=; unset ac_script;}
13060 if test -z "$SED"; then
13061 ac_path_SED_found=false
13062 # Loop through the user's path and test for each of PROGNAME-LIST
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_prog in sed gsed; do
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13071 as_fn_executable_p "$ac_path_SED" || continue
13072 # Check for GNU ac_path_SED and select it if it is found.
13073 # Check for GNU $ac_path_SED
13074 case `"$ac_path_SED" --version 2>&1` in
13075 *GNU*)
13076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13077 *)
13078 ac_count=0
13079 $as_echo_n 0123456789 >"conftest.in"
13080 while :
13081 do
13082 cat "conftest.in" "conftest.in" >"conftest.tmp"
13083 mv "conftest.tmp" "conftest.in"
13084 cp "conftest.in" "conftest.nl"
13085 $as_echo '' >> "conftest.nl"
13086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13088 as_fn_arith $ac_count + 1 && ac_count=$as_val
13089 if test $ac_count -gt ${ac_path_SED_max-0}; then
13090 # Best one so far, save it but keep looking for a better one
13091 ac_cv_path_SED="$ac_path_SED"
13092 ac_path_SED_max=$ac_count
13093 fi
13094 # 10*(2^10) chars as input seems more than enough
13095 test $ac_count -gt 10 && break
13096 done
13097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13098 esac
13099
13100 $ac_path_SED_found && break 3
13101 done
13102 done
13103 done
13104 IFS=$as_save_IFS
13105 if test -z "$ac_cv_path_SED"; then
13106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13107 fi
13108 else
13109 ac_cv_path_SED=$SED
13110 fi
13111
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13114 $as_echo "$ac_cv_path_SED" >&6; }
13115 SED="$ac_cv_path_SED"
13116 rm -f conftest.sed
13117
13118 test -z "$SED" && SED=sed
13119 Xsed="$SED -e 1s/^X//"
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13132 $as_echo_n "checking for fgrep... " >&6; }
13133 if ${ac_cv_path_FGREP+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13137 then ac_cv_path_FGREP="$GREP -F"
13138 else
13139 if test -z "$FGREP"; then
13140 ac_path_FGREP_found=false
13141 # Loop through the user's path and test for each of PROGNAME-LIST
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13144 do
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 for ac_prog in fgrep; do
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13150 as_fn_executable_p "$ac_path_FGREP" || continue
13151 # Check for GNU ac_path_FGREP and select it if it is found.
13152 # Check for GNU $ac_path_FGREP
13153 case `"$ac_path_FGREP" --version 2>&1` in
13154 *GNU*)
13155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13156 *)
13157 ac_count=0
13158 $as_echo_n 0123456789 >"conftest.in"
13159 while :
13160 do
13161 cat "conftest.in" "conftest.in" >"conftest.tmp"
13162 mv "conftest.tmp" "conftest.in"
13163 cp "conftest.in" "conftest.nl"
13164 $as_echo 'FGREP' >> "conftest.nl"
13165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13167 as_fn_arith $ac_count + 1 && ac_count=$as_val
13168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13169 # Best one so far, save it but keep looking for a better one
13170 ac_cv_path_FGREP="$ac_path_FGREP"
13171 ac_path_FGREP_max=$ac_count
13172 fi
13173 # 10*(2^10) chars as input seems more than enough
13174 test $ac_count -gt 10 && break
13175 done
13176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13177 esac
13178
13179 $ac_path_FGREP_found && break 3
13180 done
13181 done
13182 done
13183 IFS=$as_save_IFS
13184 if test -z "$ac_cv_path_FGREP"; then
13185 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13186 fi
13187 else
13188 ac_cv_path_FGREP=$FGREP
13189 fi
13190
13191 fi
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13194 $as_echo "$ac_cv_path_FGREP" >&6; }
13195 FGREP="$ac_cv_path_FGREP"
13196
13197
13198 test -z "$GREP" && GREP=grep
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218 # Check whether --with-gnu-ld was given.
13219 if test "${with_gnu_ld+set}" = set; then :
13220 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13221 else
13222 with_gnu_ld=no
13223 fi
13224
13225 ac_prog=ld
13226 if test "$GCC" = yes; then
13227 # Check if gcc -print-prog-name=ld gives a path.
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13229 $as_echo_n "checking for ld used by $CC... " >&6; }
13230 case $host in
13231 *-*-mingw*)
13232 # gcc leaves a trailing carriage return which upsets mingw
13233 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13234 *)
13235 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13236 esac
13237 case $ac_prog in
13238 # Accept absolute paths.
13239 [\\/]* | ?:[\\/]*)
13240 re_direlt='/[^/][^/]*/\.\./'
13241 # Canonicalize the pathname of ld
13242 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13243 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13244 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13245 done
13246 test -z "$LD" && LD="$ac_prog"
13247 ;;
13248 "")
13249 # If it fails, then pretend we aren't using GCC.
13250 ac_prog=ld
13251 ;;
13252 *)
13253 # If it is relative, then search for the first ld in PATH.
13254 with_gnu_ld=unknown
13255 ;;
13256 esac
13257 elif test "$with_gnu_ld" = yes; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13259 $as_echo_n "checking for GNU ld... " >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13262 $as_echo_n "checking for non-GNU ld... " >&6; }
13263 fi
13264 if ${lt_cv_path_LD+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 if test -z "$LD"; then
13268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13269 for ac_dir in $PATH; do
13270 IFS="$lt_save_ifs"
13271 test -z "$ac_dir" && ac_dir=.
13272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13273 lt_cv_path_LD="$ac_dir/$ac_prog"
13274 # Check to see if the program is GNU ld. I'd rather use --version,
13275 # but apparently some variants of GNU ld only accept -v.
13276 # Break only if it was the GNU/non-GNU ld that we prefer.
13277 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13278 *GNU* | *'with BFD'*)
13279 test "$with_gnu_ld" != no && break
13280 ;;
13281 *)
13282 test "$with_gnu_ld" != yes && break
13283 ;;
13284 esac
13285 fi
13286 done
13287 IFS="$lt_save_ifs"
13288 else
13289 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13290 fi
13291 fi
13292
13293 LD="$lt_cv_path_LD"
13294 if test -n "$LD"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13296 $as_echo "$LD" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13304 if ${lt_cv_prog_gnu_ld+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13308 case `$LD -v 2>&1 </dev/null` in
13309 *GNU* | *'with BFD'*)
13310 lt_cv_prog_gnu_ld=yes
13311 ;;
13312 *)
13313 lt_cv_prog_gnu_ld=no
13314 ;;
13315 esac
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13319 with_gnu_ld=$lt_cv_prog_gnu_ld
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13331 if ${lt_cv_path_NM+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test -n "$NM"; then
13335 # Let the user override the test.
13336 lt_cv_path_NM="$NM"
13337 else
13338 lt_nm_to_check="${ac_tool_prefix}nm"
13339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13340 lt_nm_to_check="$lt_nm_to_check nm"
13341 fi
13342 for lt_tmp_nm in $lt_nm_to_check; do
13343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13345 IFS="$lt_save_ifs"
13346 test -z "$ac_dir" && ac_dir=.
13347 tmp_nm="$ac_dir/$lt_tmp_nm"
13348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13349 # Check to see if the nm accepts a BSD-compat flag.
13350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13351 # nm: unknown option "B" ignored
13352 # Tru64's nm complains that /dev/null is an invalid object file
13353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13354 */dev/null* | *'Invalid file or object type'*)
13355 lt_cv_path_NM="$tmp_nm -B"
13356 break
13357 ;;
13358 *)
13359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13360 */dev/null*)
13361 lt_cv_path_NM="$tmp_nm -p"
13362 break
13363 ;;
13364 *)
13365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13366 continue # so that we can try to find one that supports BSD flags
13367 ;;
13368 esac
13369 ;;
13370 esac
13371 fi
13372 done
13373 IFS="$lt_save_ifs"
13374 done
13375 : ${lt_cv_path_NM=no}
13376 fi
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13379 $as_echo "$lt_cv_path_NM" >&6; }
13380 if test "$lt_cv_path_NM" != "no"; then
13381 NM="$lt_cv_path_NM"
13382 else
13383 # Didn't find any BSD compatible name lister, look for dumpbin.
13384 if test -n "$DUMPBIN"; then :
13385 # Let the user override the test.
13386 else
13387 if test -n "$ac_tool_prefix"; then
13388 for ac_prog in dumpbin "link -dump"
13389 do
13390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_prog_DUMPBIN+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 if test -n "$DUMPBIN"; then
13398 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13410 fi
13411 done
13412 done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 DUMPBIN=$ac_cv_prog_DUMPBIN
13418 if test -n "$DUMPBIN"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13420 $as_echo "$DUMPBIN" >&6; }
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427 test -n "$DUMPBIN" && break
13428 done
13429 fi
13430 if test -z "$DUMPBIN"; then
13431 ac_ct_DUMPBIN=$DUMPBIN
13432 for ac_prog in dumpbin "link -dump"
13433 do
13434 # Extract the first word of "$ac_prog", so it can be a program name with args.
13435 set dummy $ac_prog; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if test -n "$ac_ct_DUMPBIN"; then
13442 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455 done
13456 done
13457 IFS=$as_save_IFS
13458
13459 fi
13460 fi
13461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13462 if test -n "$ac_ct_DUMPBIN"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13464 $as_echo "$ac_ct_DUMPBIN" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468 fi
13469
13470
13471 test -n "$ac_ct_DUMPBIN" && break
13472 done
13473
13474 if test "x$ac_ct_DUMPBIN" = x; then
13475 DUMPBIN=":"
13476 else
13477 case $cross_compiling:$ac_tool_warned in
13478 yes:)
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13482 esac
13483 DUMPBIN=$ac_ct_DUMPBIN
13484 fi
13485 fi
13486
13487 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13488 *COFF*)
13489 DUMPBIN="$DUMPBIN -symbols"
13490 ;;
13491 *)
13492 DUMPBIN=:
13493 ;;
13494 esac
13495 fi
13496
13497 if test "$DUMPBIN" != ":"; then
13498 NM="$DUMPBIN"
13499 fi
13500 fi
13501 test -z "$NM" && NM=nm
13502
13503
13504
13505
13506
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13510 if ${lt_cv_nm_interface+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_nm_interface="BSD nm"
13514 echo "int some_variable = 0;" > conftest.$ac_ext
13515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13516 (eval "$ac_compile" 2>conftest.err)
13517 cat conftest.err >&5
13518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13520 cat conftest.err >&5
13521 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13522 cat conftest.out >&5
13523 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13524 lt_cv_nm_interface="MS dumpbin"
13525 fi
13526 rm -f conftest*
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13529 $as_echo "$lt_cv_nm_interface" >&6; }
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13532 $as_echo_n "checking whether ln -s works... " >&6; }
13533 LN_S=$as_ln_s
13534 if test "$LN_S" = "ln -s"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 $as_echo "yes" >&6; }
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13539 $as_echo "no, using $LN_S" >&6; }
13540 fi
13541
13542 # find the maximum length of command line arguments
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13545 if ${lt_cv_sys_max_cmd_len+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 i=0
13549 teststring="ABCD"
13550
13551 case $build_os in
13552 msdosdjgpp*)
13553 # On DJGPP, this test can blow up pretty badly due to problems in libc
13554 # (any single argument exceeding 2000 bytes causes a buffer overrun
13555 # during glob expansion). Even if it were fixed, the result of this
13556 # check would be larger than it should be.
13557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13558 ;;
13559
13560 gnu*)
13561 # Under GNU Hurd, this test is not required because there is
13562 # no limit to the length of command line arguments.
13563 # Libtool will interpret -1 as no limit whatsoever
13564 lt_cv_sys_max_cmd_len=-1;
13565 ;;
13566
13567 cygwin* | mingw* | cegcc*)
13568 # On Win9x/ME, this test blows up -- it succeeds, but takes
13569 # about 5 minutes as the teststring grows exponentially.
13570 # Worse, since 9x/ME are not pre-emptively multitasking,
13571 # you end up with a "frozen" computer, even though with patience
13572 # the test eventually succeeds (with a max line length of 256k).
13573 # Instead, let's just punt: use the minimum linelength reported by
13574 # all of the supported platforms: 8192 (on NT/2K/XP).
13575 lt_cv_sys_max_cmd_len=8192;
13576 ;;
13577
13578 mint*)
13579 # On MiNT this can take a long time and run out of memory.
13580 lt_cv_sys_max_cmd_len=8192;
13581 ;;
13582
13583 amigaos*)
13584 # On AmigaOS with pdksh, this test takes hours, literally.
13585 # So we just punt and use a minimum line length of 8192.
13586 lt_cv_sys_max_cmd_len=8192;
13587 ;;
13588
13589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13590 # This has been around since 386BSD, at least. Likely further.
13591 if test -x /sbin/sysctl; then
13592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13593 elif test -x /usr/sbin/sysctl; then
13594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13595 else
13596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13597 fi
13598 # And add a safety zone
13599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13601 ;;
13602
13603 interix*)
13604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13605 lt_cv_sys_max_cmd_len=196608
13606 ;;
13607
13608 osf*)
13609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13611 # nice to cause kernel panics so lets avoid the loop below.
13612 # First set a reasonable default.
13613 lt_cv_sys_max_cmd_len=16384
13614 #
13615 if test -x /sbin/sysconfig; then
13616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13617 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13618 esac
13619 fi
13620 ;;
13621 sco3.2v5*)
13622 lt_cv_sys_max_cmd_len=102400
13623 ;;
13624 sysv5* | sco5v6* | sysv4.2uw2*)
13625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13626 if test -n "$kargmax"; then
13627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13628 else
13629 lt_cv_sys_max_cmd_len=32768
13630 fi
13631 ;;
13632 *)
13633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13634 if test -n "$lt_cv_sys_max_cmd_len"; then
13635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13637 else
13638 # Make teststring a little bigger before we do anything with it.
13639 # a 1K string should be a reasonable start.
13640 for i in 1 2 3 4 5 6 7 8 ; do
13641 teststring=$teststring$teststring
13642 done
13643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13644 # If test is not a shell built-in, we'll probably end up computing a
13645 # maximum length that is only half of the actual maximum length, but
13646 # we can't tell.
13647 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13648 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13649 test $i != 17 # 1/2 MB should be enough
13650 do
13651 i=`expr $i + 1`
13652 teststring=$teststring$teststring
13653 done
13654 # Only check the string length outside the loop.
13655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13656 teststring=
13657 # Add a significant safety factor because C++ compilers can tack on
13658 # massive amounts of additional arguments before passing them to the
13659 # linker. It appears as though 1/2 is a usable value.
13660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13661 fi
13662 ;;
13663 esac
13664
13665 fi
13666
13667 if test -n $lt_cv_sys_max_cmd_len ; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13672 $as_echo "none" >&6; }
13673 fi
13674 max_cmd_len=$lt_cv_sys_max_cmd_len
13675
13676
13677
13678
13679
13680
13681 : ${CP="cp -f"}
13682 : ${MV="mv -f"}
13683 : ${RM="rm -f"}
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13687 # Try some XSI features
13688 xsi_shell=no
13689 ( _lt_dummy="a/b/c"
13690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13691 = c,a/b,, \
13692 && eval 'test $(( 1 + 1 )) -eq 2 \
13693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13694 && xsi_shell=yes
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13696 $as_echo "$xsi_shell" >&6; }
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13701 lt_shell_append=no
13702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13703 >/dev/null 2>&1 \
13704 && lt_shell_append=yes
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13706 $as_echo "$lt_shell_append" >&6; }
13707
13708
13709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13710 lt_unset=unset
13711 else
13712 lt_unset=false
13713 fi
13714
13715
13716
13717
13718
13719 # test EBCDIC or ASCII
13720 case `echo X|tr X '\101'` in
13721 A) # ASCII based system
13722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13723 lt_SP2NL='tr \040 \012'
13724 lt_NL2SP='tr \015\012 \040\040'
13725 ;;
13726 *) # EBCDIC based system
13727 lt_SP2NL='tr \100 \n'
13728 lt_NL2SP='tr \r\n \100\100'
13729 ;;
13730 esac
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13742 if ${lt_cv_ld_reload_flag+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 lt_cv_ld_reload_flag='-r'
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13749 reload_flag=$lt_cv_ld_reload_flag
13750 case $reload_flag in
13751 "" | " "*) ;;
13752 *) reload_flag=" $reload_flag" ;;
13753 esac
13754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13755 case $host_os in
13756 darwin*)
13757 if test "$GCC" = yes; then
13758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13759 else
13760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13761 fi
13762 ;;
13763 esac
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 if test -n "$ac_tool_prefix"; then
13774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_prog_OBJDUMP+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$OBJDUMP"; then
13782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13794 fi
13795 done
13796 done
13797 IFS=$as_save_IFS
13798
13799 fi
13800 fi
13801 OBJDUMP=$ac_cv_prog_OBJDUMP
13802 if test -n "$OBJDUMP"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13804 $as_echo "$OBJDUMP" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809
13810
13811 fi
13812 if test -z "$ac_cv_prog_OBJDUMP"; then
13813 ac_ct_OBJDUMP=$OBJDUMP
13814 # Extract the first word of "objdump", so it can be a program name with args.
13815 set dummy objdump; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$ac_ct_OBJDUMP"; then
13822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13842 if test -n "$ac_ct_OBJDUMP"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13844 $as_echo "$ac_ct_OBJDUMP" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850 if test "x$ac_ct_OBJDUMP" = x; then
13851 OBJDUMP="false"
13852 else
13853 case $cross_compiling:$ac_tool_warned in
13854 yes:)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859 OBJDUMP=$ac_ct_OBJDUMP
13860 fi
13861 else
13862 OBJDUMP="$ac_cv_prog_OBJDUMP"
13863 fi
13864
13865 test -z "$OBJDUMP" && OBJDUMP=objdump
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13877 if ${lt_cv_deplibs_check_method+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 lt_cv_file_magic_cmd='$MAGIC_CMD'
13881 lt_cv_file_magic_test_file=
13882 lt_cv_deplibs_check_method='unknown'
13883 # Need to set the preceding variable on all platforms that support
13884 # interlibrary dependencies.
13885 # 'none' -- dependencies not supported.
13886 # `unknown' -- same as none, but documents that we really don't know.
13887 # 'pass_all' -- all dependencies passed with no checks.
13888 # 'test_compile' -- check by making test program.
13889 # 'file_magic [[regex]]' -- check by looking for files in library path
13890 # which responds to the $file_magic_cmd with a given extended regex.
13891 # If you have `file' or equivalent on your system and you're not sure
13892 # whether `pass_all' will *always* work, you probably want this one.
13893
13894 case $host_os in
13895 aix[4-9]*)
13896 lt_cv_deplibs_check_method=pass_all
13897 ;;
13898
13899 beos*)
13900 lt_cv_deplibs_check_method=pass_all
13901 ;;
13902
13903 bsdi[45]*)
13904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13905 lt_cv_file_magic_cmd='/usr/bin/file -L'
13906 lt_cv_file_magic_test_file=/shlib/libc.so
13907 ;;
13908
13909 cygwin*)
13910 # func_win32_libid is a shell function defined in ltmain.sh
13911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13912 lt_cv_file_magic_cmd='func_win32_libid'
13913 ;;
13914
13915 mingw* | pw32*)
13916 # Base MSYS/MinGW do not provide the 'file' command needed by
13917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13918 # unless we find 'file', for example because we are cross-compiling.
13919 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13920 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13922 lt_cv_file_magic_cmd='func_win32_libid'
13923 else
13924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13925 lt_cv_file_magic_cmd='$OBJDUMP -f'
13926 fi
13927 ;;
13928
13929 cegcc*)
13930 # use the weaker test based on 'objdump'. See mingw*.
13931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13932 lt_cv_file_magic_cmd='$OBJDUMP -f'
13933 ;;
13934
13935 darwin* | rhapsody*)
13936 lt_cv_deplibs_check_method=pass_all
13937 ;;
13938
13939 freebsd* | dragonfly*)
13940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13941 case $host_cpu in
13942 i*86 )
13943 # Not sure whether the presence of OpenBSD here was a mistake.
13944 # Let's accept both of them until this is cleared up.
13945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13946 lt_cv_file_magic_cmd=/usr/bin/file
13947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13948 ;;
13949 esac
13950 else
13951 lt_cv_deplibs_check_method=pass_all
13952 fi
13953 ;;
13954
13955 gnu*)
13956 lt_cv_deplibs_check_method=pass_all
13957 ;;
13958
13959 haiku*)
13960 lt_cv_deplibs_check_method=pass_all
13961 ;;
13962
13963 hpux10.20* | hpux11*)
13964 lt_cv_file_magic_cmd=/usr/bin/file
13965 case $host_cpu in
13966 ia64*)
13967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13969 ;;
13970 hppa*64*)
13971 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]'
13972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13973 ;;
13974 *)
13975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13977 ;;
13978 esac
13979 ;;
13980
13981 interix[3-9]*)
13982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13984 ;;
13985
13986 irix5* | irix6* | nonstopux*)
13987 case $LD in
13988 *-32|*"-32 ") libmagic=32-bit;;
13989 *-n32|*"-n32 ") libmagic=N32;;
13990 *-64|*"-64 ") libmagic=64-bit;;
13991 *) libmagic=never-match;;
13992 esac
13993 lt_cv_deplibs_check_method=pass_all
13994 ;;
13995
13996 # This must be Linux ELF.
13997 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13998 lt_cv_deplibs_check_method=pass_all
13999 ;;
14000
14001 netbsd*)
14002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14004 else
14005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14006 fi
14007 ;;
14008
14009 newos6*)
14010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14011 lt_cv_file_magic_cmd=/usr/bin/file
14012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14013 ;;
14014
14015 *nto* | *qnx*)
14016 lt_cv_deplibs_check_method=pass_all
14017 ;;
14018
14019 openbsd*)
14020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14022 else
14023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14024 fi
14025 ;;
14026
14027 osf3* | osf4* | osf5*)
14028 lt_cv_deplibs_check_method=pass_all
14029 ;;
14030
14031 rdos*)
14032 lt_cv_deplibs_check_method=pass_all
14033 ;;
14034
14035 solaris*)
14036 lt_cv_deplibs_check_method=pass_all
14037 ;;
14038
14039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14040 lt_cv_deplibs_check_method=pass_all
14041 ;;
14042
14043 sysv4 | sysv4.3*)
14044 case $host_vendor in
14045 motorola)
14046 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]'
14047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14048 ;;
14049 ncr)
14050 lt_cv_deplibs_check_method=pass_all
14051 ;;
14052 sequent)
14053 lt_cv_file_magic_cmd='/bin/file'
14054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14055 ;;
14056 sni)
14057 lt_cv_file_magic_cmd='/bin/file'
14058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14059 lt_cv_file_magic_test_file=/lib/libc.so
14060 ;;
14061 siemens)
14062 lt_cv_deplibs_check_method=pass_all
14063 ;;
14064 pc)
14065 lt_cv_deplibs_check_method=pass_all
14066 ;;
14067 esac
14068 ;;
14069
14070 tpf*)
14071 lt_cv_deplibs_check_method=pass_all
14072 ;;
14073 esac
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14077 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14078 file_magic_cmd=$lt_cv_file_magic_cmd
14079 deplibs_check_method=$lt_cv_deplibs_check_method
14080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 if test -n "$ac_tool_prefix"; then
14094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14095 set dummy ${ac_tool_prefix}ar; ac_word=$2
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14097 $as_echo_n "checking for $ac_word... " >&6; }
14098 if ${ac_cv_prog_AR+:} false; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 if test -n "$AR"; then
14102 ac_cv_prog_AR="$AR" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14106 do
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111 ac_cv_prog_AR="${ac_tool_prefix}ar"
14112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 break 2
14114 fi
14115 done
14116 done
14117 IFS=$as_save_IFS
14118
14119 fi
14120 fi
14121 AR=$ac_cv_prog_AR
14122 if test -n "$AR"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14124 $as_echo "$AR" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128 fi
14129
14130
14131 fi
14132 if test -z "$ac_cv_prog_AR"; then
14133 ac_ct_AR=$AR
14134 # Extract the first word of "ar", so it can be a program name with args.
14135 set dummy ar; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 if test -n "$ac_ct_AR"; then
14142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14146 do
14147 IFS=$as_save_IFS
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14151 ac_cv_prog_ac_ct_AR="ar"
14152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 break 2
14154 fi
14155 done
14156 done
14157 IFS=$as_save_IFS
14158
14159 fi
14160 fi
14161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14162 if test -n "$ac_ct_AR"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14164 $as_echo "$ac_ct_AR" >&6; }
14165 else
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 fi
14169
14170 if test "x$ac_ct_AR" = x; then
14171 AR="false"
14172 else
14173 case $cross_compiling:$ac_tool_warned in
14174 yes:)
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14177 ac_tool_warned=yes ;;
14178 esac
14179 AR=$ac_ct_AR
14180 fi
14181 else
14182 AR="$ac_cv_prog_AR"
14183 fi
14184
14185 test -z "$AR" && AR=ar
14186 test -z "$AR_FLAGS" && AR_FLAGS=cru
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "$STRIP"; then
14207 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
14227 if test -n "$STRIP"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14229 $as_echo "$STRIP" >&6; }
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 fi
14234
14235
14236 fi
14237 if test -z "$ac_cv_prog_STRIP"; then
14238 ac_ct_STRIP=$STRIP
14239 # Extract the first word of "strip", so it can be a program name with args.
14240 set dummy strip; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$ac_ct_STRIP"; then
14247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_STRIP="strip"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14267 if test -n "$ac_ct_STRIP"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14269 $as_echo "$ac_ct_STRIP" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275 if test "x$ac_ct_STRIP" = x; then
14276 STRIP=":"
14277 else
14278 case $cross_compiling:$ac_tool_warned in
14279 yes:)
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14282 ac_tool_warned=yes ;;
14283 esac
14284 STRIP=$ac_ct_STRIP
14285 fi
14286 else
14287 STRIP="$ac_cv_prog_STRIP"
14288 fi
14289
14290 test -z "$STRIP" && STRIP=:
14291
14292
14293
14294
14295
14296
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if ${ac_cv_prog_RANLIB+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14328 $as_echo "$RANLIB" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14332 fi
14333
14334
14335 fi
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_ac_ct_RANLIB="ranlib"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14368 $as_echo "$ac_ct_RANLIB" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372 fi
14373
14374 if test "x$ac_ct_RANLIB" = x; then
14375 RANLIB=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378 yes:)
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14381 ac_tool_warned=yes ;;
14382 esac
14383 RANLIB=$ac_ct_RANLIB
14384 fi
14385 else
14386 RANLIB="$ac_cv_prog_RANLIB"
14387 fi
14388
14389 test -z "$RANLIB" && RANLIB=:
14390
14391
14392
14393
14394
14395
14396 # Determine commands to create old-style static archives.
14397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14398 old_postinstall_cmds='chmod 644 $oldlib'
14399 old_postuninstall_cmds=
14400
14401 if test -n "$RANLIB"; then
14402 case $host_os in
14403 openbsd*)
14404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14405 ;;
14406 *)
14407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14408 ;;
14409 esac
14410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14411 fi
14412
14413 case $host_os in
14414 darwin*)
14415 lock_old_archive_extraction=yes ;;
14416 *)
14417 lock_old_archive_extraction=no ;;
14418 esac
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458 # If no C compiler was specified, use CC.
14459 LTCC=${LTCC-"$CC"}
14460
14461 # If no C compiler flags were specified, use CFLAGS.
14462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14463
14464 # Allow CC to be a program name with arguments.
14465 compiler=$CC
14466
14467
14468 # Check for command to grab the raw symbol name followed by C symbol from nm.
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14470 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14471 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474
14475 # These are sane defaults that work on at least a few old systems.
14476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14477
14478 # Character class describing NM global symbol codes.
14479 symcode='[BCDEGRST]'
14480
14481 # Regexp to match symbols that can be accessed directly from C.
14482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14483
14484 # Define system-specific variables.
14485 case $host_os in
14486 aix*)
14487 symcode='[BCDT]'
14488 ;;
14489 cygwin* | mingw* | pw32* | cegcc*)
14490 symcode='[ABCDGISTW]'
14491 ;;
14492 hpux*)
14493 if test "$host_cpu" = ia64; then
14494 symcode='[ABCDEGRST]'
14495 fi
14496 ;;
14497 irix* | nonstopux*)
14498 symcode='[BCDEGRST]'
14499 ;;
14500 osf*)
14501 symcode='[BCDEGQRST]'
14502 ;;
14503 solaris*)
14504 symcode='[BDRT]'
14505 ;;
14506 sco3.2v5*)
14507 symcode='[DT]'
14508 ;;
14509 sysv4.2uw2*)
14510 symcode='[DT]'
14511 ;;
14512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14513 symcode='[ABDT]'
14514 ;;
14515 sysv4)
14516 symcode='[DFNSTU]'
14517 ;;
14518 esac
14519
14520 # If we're using GNU nm, then use its standard symbol codes.
14521 case `$NM -V 2>&1` in
14522 *GNU* | *'with BFD'*)
14523 symcode='[ABCDGIRSTW]' ;;
14524 esac
14525
14526 # Transform an extracted symbol line into a proper C declaration.
14527 # Some systems (esp. on ia64) link data and code symbols differently,
14528 # so use this general approach.
14529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14530
14531 # Transform an extracted symbol line into symbol name and symbol address
14532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14533 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'"
14534
14535 # Handle CRLF in mingw tool chain
14536 opt_cr=
14537 case $build_os in
14538 mingw*)
14539 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14540 ;;
14541 esac
14542
14543 # Try without a prefix underscore, then with it.
14544 for ac_symprfx in "" "_"; do
14545
14546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14547 symxfrm="\\1 $ac_symprfx\\2 \\2"
14548
14549 # Write the raw and C identifiers.
14550 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14551 # Fake it for dumpbin and say T for any non-static function
14552 # and D for any global variable.
14553 # Also find C++ and __fastcall symbols from MSVC++,
14554 # which start with @ or ?.
14555 lt_cv_sys_global_symbol_pipe="$AWK '"\
14556 " {last_section=section; section=\$ 3};"\
14557 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14558 " \$ 0!~/External *\|/{next};"\
14559 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14560 " {if(hide[section]) next};"\
14561 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14562 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14563 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14564 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14565 " ' prfx=^$ac_symprfx"
14566 else
14567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14568 fi
14569
14570 # Check to see that the pipe works correctly.
14571 pipe_works=no
14572
14573 rm -f conftest*
14574 cat > conftest.$ac_ext <<_LT_EOF
14575 #ifdef __cplusplus
14576 extern "C" {
14577 #endif
14578 char nm_test_var;
14579 void nm_test_func(void);
14580 void nm_test_func(void){}
14581 #ifdef __cplusplus
14582 }
14583 #endif
14584 int main(){nm_test_var='a';nm_test_func();return(0);}
14585 _LT_EOF
14586
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; }; then
14592 # Now try to grab the symbols.
14593 nlist=conftest.nm
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; } && test -s "$nlist"; then
14599 # Try sorting and uniquifying the output.
14600 if sort "$nlist" | uniq > "$nlist"T; then
14601 mv -f "$nlist"T "$nlist"
14602 else
14603 rm -f "$nlist"T
14604 fi
14605
14606 # Make sure that we snagged all the symbols we need.
14607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14609 cat <<_LT_EOF > conftest.$ac_ext
14610 #ifdef __cplusplus
14611 extern "C" {
14612 #endif
14613
14614 _LT_EOF
14615 # Now generate the symbol file.
14616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14617
14618 cat <<_LT_EOF >> conftest.$ac_ext
14619
14620 /* The mapping between symbol names and symbols. */
14621 const struct {
14622 const char *name;
14623 void *address;
14624 }
14625 lt__PROGRAM__LTX_preloaded_symbols[] =
14626 {
14627 { "@PROGRAM@", (void *) 0 },
14628 _LT_EOF
14629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14630 cat <<\_LT_EOF >> conftest.$ac_ext
14631 {0, (void *) 0}
14632 };
14633
14634 /* This works around a problem in FreeBSD linker */
14635 #ifdef FREEBSD_WORKAROUND
14636 static const void *lt_preloaded_setup() {
14637 return lt__PROGRAM__LTX_preloaded_symbols;
14638 }
14639 #endif
14640
14641 #ifdef __cplusplus
14642 }
14643 #endif
14644 _LT_EOF
14645 # Now try linking the two files.
14646 mv conftest.$ac_objext conftstm.$ac_objext
14647 lt_save_LIBS="$LIBS"
14648 lt_save_CFLAGS="$CFLAGS"
14649 LIBS="conftstm.$ac_objext"
14650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14652 (eval $ac_link) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14656 pipe_works=yes
14657 fi
14658 LIBS="$lt_save_LIBS"
14659 CFLAGS="$lt_save_CFLAGS"
14660 else
14661 echo "cannot find nm_test_func in $nlist" >&5
14662 fi
14663 else
14664 echo "cannot find nm_test_var in $nlist" >&5
14665 fi
14666 else
14667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14668 fi
14669 else
14670 echo "$progname: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 fi
14673 rm -rf conftest* conftst*
14674
14675 # Do not use the global_symbol_pipe unless it works.
14676 if test "$pipe_works" = yes; then
14677 break
14678 else
14679 lt_cv_sys_global_symbol_pipe=
14680 fi
14681 done
14682
14683 fi
14684
14685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14686 lt_cv_sys_global_symbol_to_cdecl=
14687 fi
14688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14690 $as_echo "failed" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14693 $as_echo "ok" >&6; }
14694 fi
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717 # Check whether --enable-libtool-lock was given.
14718 if test "${enable_libtool_lock+set}" = set; then :
14719 enableval=$enable_libtool_lock;
14720 fi
14721
14722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14723
14724 # Some flags need to be propagated to the compiler or linker for good
14725 # libtool support.
14726 case $host in
14727 ia64-*-hpux*)
14728 # Find out which ABI we are using.
14729 echo 'int i;' > conftest.$ac_ext
14730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14731 (eval $ac_compile) 2>&5
14732 ac_status=$?
14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 case `/usr/bin/file conftest.$ac_objext` in
14736 *ELF-32*)
14737 HPUX_IA64_MODE="32"
14738 ;;
14739 *ELF-64*)
14740 HPUX_IA64_MODE="64"
14741 ;;
14742 esac
14743 fi
14744 rm -rf conftest*
14745 ;;
14746 *-*-irix6*)
14747 # Find out which ABI we are using.
14748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14750 (eval $ac_compile) 2>&5
14751 ac_status=$?
14752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14753 test $ac_status = 0; }; then
14754 if test "$lt_cv_prog_gnu_ld" = yes; then
14755 case `/usr/bin/file conftest.$ac_objext` in
14756 *32-bit*)
14757 LD="${LD-ld} -melf32bsmip"
14758 ;;
14759 *N32*)
14760 LD="${LD-ld} -melf32bmipn32"
14761 ;;
14762 *64-bit*)
14763 LD="${LD-ld} -melf64bmip"
14764 ;;
14765 esac
14766 else
14767 case `/usr/bin/file conftest.$ac_objext` in
14768 *32-bit*)
14769 LD="${LD-ld} -32"
14770 ;;
14771 *N32*)
14772 LD="${LD-ld} -n32"
14773 ;;
14774 *64-bit*)
14775 LD="${LD-ld} -64"
14776 ;;
14777 esac
14778 fi
14779 fi
14780 rm -rf conftest*
14781 ;;
14782
14783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14785 # Find out which ABI we are using.
14786 echo 'int i;' > conftest.$ac_ext
14787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14788 (eval $ac_compile) 2>&5
14789 ac_status=$?
14790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14791 test $ac_status = 0; }; then
14792 case `/usr/bin/file conftest.o` in
14793 *32-bit*)
14794 case $host in
14795 x86_64-*kfreebsd*-gnu)
14796 LD="${LD-ld} -m elf_i386_fbsd"
14797 ;;
14798 x86_64-*linux*)
14799 case `/usr/bin/file conftest.o` in
14800 *x86-64*)
14801 LD="${LD-ld} -m elf32_x86_64"
14802 ;;
14803 *)
14804 LD="${LD-ld} -m elf_i386"
14805 ;;
14806 esac
14807 ;;
14808 powerpc64le-*linux*)
14809 LD="${LD-ld} -m elf32lppclinux"
14810 ;;
14811 powerpc64-*linux*)
14812 LD="${LD-ld} -m elf32ppclinux"
14813 ;;
14814 s390x-*linux*)
14815 LD="${LD-ld} -m elf_s390"
14816 ;;
14817 sparc64-*linux*)
14818 LD="${LD-ld} -m elf32_sparc"
14819 ;;
14820 esac
14821 ;;
14822 *64-bit*)
14823 case $host in
14824 x86_64-*kfreebsd*-gnu)
14825 LD="${LD-ld} -m elf_x86_64_fbsd"
14826 ;;
14827 x86_64-*linux*)
14828 LD="${LD-ld} -m elf_x86_64"
14829 ;;
14830 powerpcle-*linux*)
14831 LD="${LD-ld} -m elf64lppc"
14832 ;;
14833 powerpc-*linux*)
14834 LD="${LD-ld} -m elf64ppc"
14835 ;;
14836 s390*-*linux*|s390*-*tpf*)
14837 LD="${LD-ld} -m elf64_s390"
14838 ;;
14839 sparc*-*linux*)
14840 LD="${LD-ld} -m elf64_sparc"
14841 ;;
14842 esac
14843 ;;
14844 esac
14845 fi
14846 rm -rf conftest*
14847 ;;
14848
14849 *-*-sco3.2v5*)
14850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14851 SAVE_CFLAGS="$CFLAGS"
14852 CFLAGS="$CFLAGS -belf"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14855 if ${lt_cv_cc_needs_belf+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866
14867 int
14868 main ()
14869 {
14870
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 lt_cv_cc_needs_belf=yes
14877 else
14878 lt_cv_cc_needs_belf=no
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 ac_ext=c
14883 ac_cpp='$CPP $CPPFLAGS'
14884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14887
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14893 CFLAGS="$SAVE_CFLAGS"
14894 fi
14895 ;;
14896 sparc*-*solaris*)
14897 # Find out which ABI we are using.
14898 echo 'int i;' > conftest.$ac_ext
14899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14900 (eval $ac_compile) 2>&5
14901 ac_status=$?
14902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14903 test $ac_status = 0; }; then
14904 case `/usr/bin/file conftest.o` in
14905 *64-bit*)
14906 case $lt_cv_prog_gnu_ld in
14907 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14908 *)
14909 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14910 LD="${LD-ld} -64"
14911 fi
14912 ;;
14913 esac
14914 ;;
14915 esac
14916 fi
14917 rm -rf conftest*
14918 ;;
14919 esac
14920
14921 need_locks="$enable_libtool_lock"
14922
14923
14924 case $host_os in
14925 rhapsody* | darwin*)
14926 if test -n "$ac_tool_prefix"; then
14927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930 $as_echo_n "checking for $ac_word... " >&6; }
14931 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 if test -n "$DSYMUTIL"; then
14935 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14936 else
14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946 break 2
14947 fi
14948 done
14949 done
14950 IFS=$as_save_IFS
14951
14952 fi
14953 fi
14954 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14955 if test -n "$DSYMUTIL"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14957 $as_echo "$DSYMUTIL" >&6; }
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14961 fi
14962
14963
14964 fi
14965 if test -z "$ac_cv_prog_DSYMUTIL"; then
14966 ac_ct_DSYMUTIL=$DSYMUTIL
14967 # Extract the first word of "dsymutil", so it can be a program name with args.
14968 set dummy dsymutil; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if test -n "$ac_ct_DSYMUTIL"; then
14975 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14976 else
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14979 do
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988 done
14989 done
14990 IFS=$as_save_IFS
14991
14992 fi
14993 fi
14994 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14995 if test -n "$ac_ct_DSYMUTIL"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14997 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003 if test "x$ac_ct_DSYMUTIL" = x; then
15004 DSYMUTIL=":"
15005 else
15006 case $cross_compiling:$ac_tool_warned in
15007 yes:)
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15010 ac_tool_warned=yes ;;
15011 esac
15012 DSYMUTIL=$ac_ct_DSYMUTIL
15013 fi
15014 else
15015 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15016 fi
15017
15018 if test -n "$ac_tool_prefix"; then
15019 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15020 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15022 $as_echo_n "checking for $ac_word... " >&6; }
15023 if ${ac_cv_prog_NMEDIT+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 if test -n "$NMEDIT"; then
15027 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15028 else
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15031 do
15032 IFS=$as_save_IFS
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15038 break 2
15039 fi
15040 done
15041 done
15042 IFS=$as_save_IFS
15043
15044 fi
15045 fi
15046 NMEDIT=$ac_cv_prog_NMEDIT
15047 if test -n "$NMEDIT"; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15049 $as_echo "$NMEDIT" >&6; }
15050 else
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15053 fi
15054
15055
15056 fi
15057 if test -z "$ac_cv_prog_NMEDIT"; then
15058 ac_ct_NMEDIT=$NMEDIT
15059 # Extract the first word of "nmedit", so it can be a program name with args.
15060 set dummy nmedit; ac_word=$2
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062 $as_echo_n "checking for $ac_word... " >&6; }
15063 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 if test -n "$ac_ct_NMEDIT"; then
15067 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15068 else
15069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15070 for as_dir in $PATH
15071 do
15072 IFS=$as_save_IFS
15073 test -z "$as_dir" && as_dir=.
15074 for ac_exec_ext in '' $ac_executable_extensions; do
15075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15076 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15078 break 2
15079 fi
15080 done
15081 done
15082 IFS=$as_save_IFS
15083
15084 fi
15085 fi
15086 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15087 if test -n "$ac_ct_NMEDIT"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15089 $as_echo "$ac_ct_NMEDIT" >&6; }
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093 fi
15094
15095 if test "x$ac_ct_NMEDIT" = x; then
15096 NMEDIT=":"
15097 else
15098 case $cross_compiling:$ac_tool_warned in
15099 yes:)
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15102 ac_tool_warned=yes ;;
15103 esac
15104 NMEDIT=$ac_ct_NMEDIT
15105 fi
15106 else
15107 NMEDIT="$ac_cv_prog_NMEDIT"
15108 fi
15109
15110 if test -n "$ac_tool_prefix"; then
15111 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15114 $as_echo_n "checking for $ac_word... " >&6; }
15115 if ${ac_cv_prog_LIPO+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 if test -n "$LIPO"; then
15119 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15120 else
15121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15123 do
15124 IFS=$as_save_IFS
15125 test -z "$as_dir" && as_dir=.
15126 for ac_exec_ext in '' $ac_executable_extensions; do
15127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 break 2
15131 fi
15132 done
15133 done
15134 IFS=$as_save_IFS
15135
15136 fi
15137 fi
15138 LIPO=$ac_cv_prog_LIPO
15139 if test -n "$LIPO"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15141 $as_echo "$LIPO" >&6; }
15142 else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15145 fi
15146
15147
15148 fi
15149 if test -z "$ac_cv_prog_LIPO"; then
15150 ac_ct_LIPO=$LIPO
15151 # Extract the first word of "lipo", so it can be a program name with args.
15152 set dummy lipo; ac_word=$2
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15154 $as_echo_n "checking for $ac_word... " >&6; }
15155 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15156 $as_echo_n "(cached) " >&6
15157 else
15158 if test -n "$ac_ct_LIPO"; then
15159 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15160 else
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162 for as_dir in $PATH
15163 do
15164 IFS=$as_save_IFS
15165 test -z "$as_dir" && as_dir=.
15166 for ac_exec_ext in '' $ac_executable_extensions; do
15167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15168 ac_cv_prog_ac_ct_LIPO="lipo"
15169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15170 break 2
15171 fi
15172 done
15173 done
15174 IFS=$as_save_IFS
15175
15176 fi
15177 fi
15178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15179 if test -n "$ac_ct_LIPO"; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15181 $as_echo "$ac_ct_LIPO" >&6; }
15182 else
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 $as_echo "no" >&6; }
15185 fi
15186
15187 if test "x$ac_ct_LIPO" = x; then
15188 LIPO=":"
15189 else
15190 case $cross_compiling:$ac_tool_warned in
15191 yes:)
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15194 ac_tool_warned=yes ;;
15195 esac
15196 LIPO=$ac_ct_LIPO
15197 fi
15198 else
15199 LIPO="$ac_cv_prog_LIPO"
15200 fi
15201
15202 if test -n "$ac_tool_prefix"; then
15203 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15204 set dummy ${ac_tool_prefix}otool; ac_word=$2
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15206 $as_echo_n "checking for $ac_word... " >&6; }
15207 if ${ac_cv_prog_OTOOL+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 if test -n "$OTOOL"; then
15211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15212 else
15213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15214 for as_dir in $PATH
15215 do
15216 IFS=$as_save_IFS
15217 test -z "$as_dir" && as_dir=.
15218 for ac_exec_ext in '' $ac_executable_extensions; do
15219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15222 break 2
15223 fi
15224 done
15225 done
15226 IFS=$as_save_IFS
15227
15228 fi
15229 fi
15230 OTOOL=$ac_cv_prog_OTOOL
15231 if test -n "$OTOOL"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15233 $as_echo "$OTOOL" >&6; }
15234 else
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15237 fi
15238
15239
15240 fi
15241 if test -z "$ac_cv_prog_OTOOL"; then
15242 ac_ct_OTOOL=$OTOOL
15243 # Extract the first word of "otool", so it can be a program name with args.
15244 set dummy otool; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15246 $as_echo_n "checking for $ac_word... " >&6; }
15247 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15248 $as_echo_n "(cached) " >&6
15249 else
15250 if test -n "$ac_ct_OTOOL"; then
15251 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15252 else
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15255 do
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_prog_ac_ct_OTOOL="otool"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15263 fi
15264 done
15265 done
15266 IFS=$as_save_IFS
15267
15268 fi
15269 fi
15270 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15271 if test -n "$ac_ct_OTOOL"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15273 $as_echo "$ac_ct_OTOOL" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278
15279 if test "x$ac_ct_OTOOL" = x; then
15280 OTOOL=":"
15281 else
15282 case $cross_compiling:$ac_tool_warned in
15283 yes:)
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15286 ac_tool_warned=yes ;;
15287 esac
15288 OTOOL=$ac_ct_OTOOL
15289 fi
15290 else
15291 OTOOL="$ac_cv_prog_OTOOL"
15292 fi
15293
15294 if test -n "$ac_tool_prefix"; then
15295 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15296 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 $as_echo_n "checking for $ac_word... " >&6; }
15299 if ${ac_cv_prog_OTOOL64+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 if test -n "$OTOOL64"; then
15303 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15304 else
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15307 do
15308 IFS=$as_save_IFS
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314 break 2
15315 fi
15316 done
15317 done
15318 IFS=$as_save_IFS
15319
15320 fi
15321 fi
15322 OTOOL64=$ac_cv_prog_OTOOL64
15323 if test -n "$OTOOL64"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15325 $as_echo "$OTOOL64" >&6; }
15326 else
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328 $as_echo "no" >&6; }
15329 fi
15330
15331
15332 fi
15333 if test -z "$ac_cv_prog_OTOOL64"; then
15334 ac_ct_OTOOL64=$OTOOL64
15335 # Extract the first word of "otool64", so it can be a program name with args.
15336 set dummy otool64; ac_word=$2
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15338 $as_echo_n "checking for $ac_word... " >&6; }
15339 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15340 $as_echo_n "(cached) " >&6
15341 else
15342 if test -n "$ac_ct_OTOOL64"; then
15343 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15344 else
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15347 do
15348 IFS=$as_save_IFS
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352 ac_cv_prog_ac_ct_OTOOL64="otool64"
15353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15354 break 2
15355 fi
15356 done
15357 done
15358 IFS=$as_save_IFS
15359
15360 fi
15361 fi
15362 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15363 if test -n "$ac_ct_OTOOL64"; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15365 $as_echo "$ac_ct_OTOOL64" >&6; }
15366 else
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 $as_echo "no" >&6; }
15369 fi
15370
15371 if test "x$ac_ct_OTOOL64" = x; then
15372 OTOOL64=":"
15373 else
15374 case $cross_compiling:$ac_tool_warned in
15375 yes:)
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15378 ac_tool_warned=yes ;;
15379 esac
15380 OTOOL64=$ac_ct_OTOOL64
15381 fi
15382 else
15383 OTOOL64="$ac_cv_prog_OTOOL64"
15384 fi
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15413 $as_echo_n "checking for -single_module linker flag... " >&6; }
15414 if ${lt_cv_apple_cc_single_mod+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 lt_cv_apple_cc_single_mod=no
15418 if test -z "${LT_MULTI_MODULE}"; then
15419 # By default we will add the -single_module flag. You can override
15420 # by either setting the environment variable LT_MULTI_MODULE
15421 # non-empty at configure time, or by adding -multi_module to the
15422 # link flags.
15423 rm -rf libconftest.dylib*
15424 echo "int foo(void){return 1;}" > conftest.c
15425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15426 -dynamiclib -Wl,-single_module conftest.c" >&5
15427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15429 _lt_result=$?
15430 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15431 lt_cv_apple_cc_single_mod=yes
15432 else
15433 cat conftest.err >&5
15434 fi
15435 rm -rf libconftest.dylib*
15436 rm -f conftest.*
15437 fi
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15440 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15442 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15443 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15446 lt_cv_ld_exported_symbols_list=no
15447 save_LDFLAGS=$LDFLAGS
15448 echo "_main" > conftest.sym
15449 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452
15453 int
15454 main ()
15455 {
15456
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_c_try_link "$LINENO"; then :
15462 lt_cv_ld_exported_symbols_list=yes
15463 else
15464 lt_cv_ld_exported_symbols_list=no
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468 LDFLAGS="$save_LDFLAGS"
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15474 $as_echo_n "checking for -force_load linker flag... " >&6; }
15475 if ${lt_cv_ld_force_load+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 lt_cv_ld_force_load=no
15479 cat > conftest.c << _LT_EOF
15480 int forced_loaded() { return 2;}
15481 _LT_EOF
15482 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15483 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15484 echo "$AR cru libconftest.a conftest.o" >&5
15485 $AR cru libconftest.a conftest.o 2>&5
15486 cat > conftest.c << _LT_EOF
15487 int main() { return 0;}
15488 _LT_EOF
15489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15491 _lt_result=$?
15492 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15493 lt_cv_ld_force_load=yes
15494 else
15495 cat conftest.err >&5
15496 fi
15497 rm -f conftest.err libconftest.a conftest conftest.c
15498 rm -rf conftest.dSYM
15499
15500 fi
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15502 $as_echo "$lt_cv_ld_force_load" >&6; }
15503 case $host_os in
15504 rhapsody* | darwin1.[012])
15505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15506 darwin1.*)
15507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15508 darwin*) # darwin 5.x on
15509 # if running on 10.5 or later, the deployment target defaults
15510 # to the OS version, if on x86, and 10.4, the deployment
15511 # target defaults to 10.4. Don't you love it?
15512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15515 10.[012][,.]*)
15516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15517 10.*)
15518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15519 esac
15520 ;;
15521 esac
15522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15523 _lt_dar_single_mod='$single_module'
15524 fi
15525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15527 else
15528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15529 fi
15530 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15531 _lt_dsymutil='~$DSYMUTIL $lib || :'
15532 else
15533 _lt_dsymutil=
15534 fi
15535 ;;
15536 esac
15537
15538
15539 for ac_header in dlfcn.h
15540 do :
15541 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15542 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_DLFCN_H 1
15545 _ACEOF
15546
15547 fi
15548 done
15549
15550
15551
15552
15553
15554 # Set options
15555
15556
15557
15558 enable_dlopen=no
15559
15560
15561 enable_win32_dll=no
15562
15563
15564 # Check whether --enable-shared was given.
15565 if test "${enable_shared+set}" = set; then :
15566 enableval=$enable_shared; p=${PACKAGE-default}
15567 case $enableval in
15568 yes) enable_shared=yes ;;
15569 no) enable_shared=no ;;
15570 *)
15571 enable_shared=no
15572 # Look at the argument we got. We use all the common list separators.
15573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15574 for pkg in $enableval; do
15575 IFS="$lt_save_ifs"
15576 if test "X$pkg" = "X$p"; then
15577 enable_shared=yes
15578 fi
15579 done
15580 IFS="$lt_save_ifs"
15581 ;;
15582 esac
15583 else
15584 enable_shared=yes
15585 fi
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 # Check whether --enable-static was given.
15596 if test "${enable_static+set}" = set; then :
15597 enableval=$enable_static; p=${PACKAGE-default}
15598 case $enableval in
15599 yes) enable_static=yes ;;
15600 no) enable_static=no ;;
15601 *)
15602 enable_static=no
15603 # Look at the argument we got. We use all the common list separators.
15604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15605 for pkg in $enableval; do
15606 IFS="$lt_save_ifs"
15607 if test "X$pkg" = "X$p"; then
15608 enable_static=yes
15609 fi
15610 done
15611 IFS="$lt_save_ifs"
15612 ;;
15613 esac
15614 else
15615 enable_static=yes
15616 fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 # Check whether --with-pic was given.
15628 if test "${with_pic+set}" = set; then :
15629 withval=$with_pic; pic_mode="$withval"
15630 else
15631 pic_mode=default
15632 fi
15633
15634
15635 test -z "$pic_mode" && pic_mode=default
15636
15637
15638
15639
15640
15641
15642
15643 # Check whether --enable-fast-install was given.
15644 if test "${enable_fast_install+set}" = set; then :
15645 enableval=$enable_fast_install; p=${PACKAGE-default}
15646 case $enableval in
15647 yes) enable_fast_install=yes ;;
15648 no) enable_fast_install=no ;;
15649 *)
15650 enable_fast_install=no
15651 # Look at the argument we got. We use all the common list separators.
15652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15653 for pkg in $enableval; do
15654 IFS="$lt_save_ifs"
15655 if test "X$pkg" = "X$p"; then
15656 enable_fast_install=yes
15657 fi
15658 done
15659 IFS="$lt_save_ifs"
15660 ;;
15661 esac
15662 else
15663 enable_fast_install=yes
15664 fi
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676 # This can be used to rebuild libtool when needed
15677 LIBTOOL_DEPS="$ltmain"
15678
15679 # Always use our own libtool.
15680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 test -z "$LN_S" && LN_S="ln -s"
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722 if test -n "${ZSH_VERSION+set}" ; then
15723 setopt NO_GLOB_SUBST
15724 fi
15725
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15727 $as_echo_n "checking for objdir... " >&6; }
15728 if ${lt_cv_objdir+:} false; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15731 rm -f .libs 2>/dev/null
15732 mkdir .libs 2>/dev/null
15733 if test -d .libs; then
15734 lt_cv_objdir=.libs
15735 else
15736 # MS-DOS does not allow filenames that begin with a dot.
15737 lt_cv_objdir=_libs
15738 fi
15739 rmdir .libs 2>/dev/null
15740 fi
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15742 $as_echo "$lt_cv_objdir" >&6; }
15743 objdir=$lt_cv_objdir
15744
15745
15746
15747
15748
15749 cat >>confdefs.h <<_ACEOF
15750 #define LT_OBJDIR "$lt_cv_objdir/"
15751 _ACEOF
15752
15753
15754
15755
15756 case $host_os in
15757 aix3*)
15758 # AIX sometimes has problems with the GCC collect2 program. For some
15759 # reason, if we set the COLLECT_NAMES environment variable, the problems
15760 # vanish in a puff of smoke.
15761 if test "X${COLLECT_NAMES+set}" != Xset; then
15762 COLLECT_NAMES=
15763 export COLLECT_NAMES
15764 fi
15765 ;;
15766 esac
15767
15768 # Global variables:
15769 ofile=libtool
15770 can_build_shared=yes
15771
15772 # All known linkers require a `.a' archive for static linking (except MSVC,
15773 # which needs '.lib').
15774 libext=a
15775
15776 with_gnu_ld="$lt_cv_prog_gnu_ld"
15777
15778 old_CC="$CC"
15779 old_CFLAGS="$CFLAGS"
15780
15781 # Set sane defaults for various variables
15782 test -z "$CC" && CC=cc
15783 test -z "$LTCC" && LTCC=$CC
15784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15785 test -z "$LD" && LD=ld
15786 test -z "$ac_objext" && ac_objext=o
15787
15788 for cc_temp in $compiler""; do
15789 case $cc_temp in
15790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15792 \-*) ;;
15793 *) break;;
15794 esac
15795 done
15796 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15797
15798
15799 # Only perform the check for file, if the check method requires it
15800 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15801 case $deplibs_check_method in
15802 file_magic*)
15803 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15805 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15806 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 case $MAGIC_CMD in
15810 [\\/*] | ?:[\\/]*)
15811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15812 ;;
15813 *)
15814 lt_save_MAGIC_CMD="$MAGIC_CMD"
15815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15817 for ac_dir in $ac_dummy; do
15818 IFS="$lt_save_ifs"
15819 test -z "$ac_dir" && ac_dir=.
15820 if test -f $ac_dir/${ac_tool_prefix}file; then
15821 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15822 if test -n "$file_magic_test_file"; then
15823 case $deplibs_check_method in
15824 "file_magic "*)
15825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15828 $EGREP "$file_magic_regex" > /dev/null; then
15829 :
15830 else
15831 cat <<_LT_EOF 1>&2
15832
15833 *** Warning: the command libtool uses to detect shared libraries,
15834 *** $file_magic_cmd, produces output that libtool cannot recognize.
15835 *** The result is that libtool may fail to recognize shared libraries
15836 *** as such. This will affect the creation of libtool libraries that
15837 *** depend on shared libraries, but programs linked with such libtool
15838 *** libraries will work regardless of this problem. Nevertheless, you
15839 *** may want to report the problem to your system manager and/or to
15840 *** bug-libtool@gnu.org
15841
15842 _LT_EOF
15843 fi ;;
15844 esac
15845 fi
15846 break
15847 fi
15848 done
15849 IFS="$lt_save_ifs"
15850 MAGIC_CMD="$lt_save_MAGIC_CMD"
15851 ;;
15852 esac
15853 fi
15854
15855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15856 if test -n "$MAGIC_CMD"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15858 $as_echo "$MAGIC_CMD" >&6; }
15859 else
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15862 fi
15863
15864
15865
15866
15867
15868 if test -z "$lt_cv_path_MAGIC_CMD"; then
15869 if test -n "$ac_tool_prefix"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15871 $as_echo_n "checking for file... " >&6; }
15872 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 case $MAGIC_CMD in
15876 [\\/*] | ?:[\\/]*)
15877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15878 ;;
15879 *)
15880 lt_save_MAGIC_CMD="$MAGIC_CMD"
15881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15883 for ac_dir in $ac_dummy; do
15884 IFS="$lt_save_ifs"
15885 test -z "$ac_dir" && ac_dir=.
15886 if test -f $ac_dir/file; then
15887 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15888 if test -n "$file_magic_test_file"; then
15889 case $deplibs_check_method in
15890 "file_magic "*)
15891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15894 $EGREP "$file_magic_regex" > /dev/null; then
15895 :
15896 else
15897 cat <<_LT_EOF 1>&2
15898
15899 *** Warning: the command libtool uses to detect shared libraries,
15900 *** $file_magic_cmd, produces output that libtool cannot recognize.
15901 *** The result is that libtool may fail to recognize shared libraries
15902 *** as such. This will affect the creation of libtool libraries that
15903 *** depend on shared libraries, but programs linked with such libtool
15904 *** libraries will work regardless of this problem. Nevertheless, you
15905 *** may want to report the problem to your system manager and/or to
15906 *** bug-libtool@gnu.org
15907
15908 _LT_EOF
15909 fi ;;
15910 esac
15911 fi
15912 break
15913 fi
15914 done
15915 IFS="$lt_save_ifs"
15916 MAGIC_CMD="$lt_save_MAGIC_CMD"
15917 ;;
15918 esac
15919 fi
15920
15921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15922 if test -n "$MAGIC_CMD"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15924 $as_echo "$MAGIC_CMD" >&6; }
15925 else
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15928 fi
15929
15930
15931 else
15932 MAGIC_CMD=:
15933 fi
15934 fi
15935
15936 fi
15937 ;;
15938 esac
15939
15940 # Use C for the default configuration in the libtool script
15941
15942 lt_save_CC="$CC"
15943 ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
15949
15950 # Source file extension for C test sources.
15951 ac_ext=c
15952
15953 # Object file extension for compiled C test sources.
15954 objext=o
15955 objext=$objext
15956
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="int some_variable = 0;"
15959
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='int main(){return(0);}'
15962
15963
15964
15965
15966
15967
15968
15969 # If no C compiler was specified, use CC.
15970 LTCC=${LTCC-"$CC"}
15971
15972 # If no C compiler flags were specified, use CFLAGS.
15973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15974
15975 # Allow CC to be a program name with arguments.
15976 compiler=$CC
15977
15978 # Save the default compiler, since it gets overwritten when the other
15979 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15980 compiler_DEFAULT=$CC
15981
15982 # save warnings/boilerplate of simple test code
15983 ac_outfile=conftest.$ac_objext
15984 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15985 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15986 _lt_compiler_boilerplate=`cat conftest.err`
15987 $RM conftest*
15988
15989 ac_outfile=conftest.$ac_objext
15990 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15991 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15992 _lt_linker_boilerplate=`cat conftest.err`
15993 $RM -r conftest*
15994
15995
15996 ## CAVEAT EMPTOR:
15997 ## There is no encapsulation within the following macros, do not change
15998 ## the running order or otherwise move them around unless you know exactly
15999 ## what you are doing...
16000 if test -n "$compiler"; then
16001
16002 lt_prog_compiler_no_builtin_flag=
16003
16004 if test "$GCC" = yes; then
16005 case $cc_basename in
16006 nvcc*)
16007 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16008 *)
16009 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16010 esac
16011
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16013 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16014 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 lt_cv_prog_compiler_rtti_exceptions=no
16018 ac_outfile=conftest.$ac_objext
16019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16020 lt_compiler_flag="-fno-rtti -fno-exceptions"
16021 # Insert the option either (1) after the last *FLAGS variable, or
16022 # (2) before a word containing "conftest.", or (3) at the end.
16023 # Note that $ac_compile itself does not contain backslashes and begins
16024 # with a dollar sign (not a hyphen), so the echo should work correctly.
16025 # The option is referenced via a variable to avoid confusing sed.
16026 lt_compile=`echo "$ac_compile" | $SED \
16027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029 -e 's:$: $lt_compiler_flag:'`
16030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16031 (eval "$lt_compile" 2>conftest.err)
16032 ac_status=$?
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 if (exit $ac_status) && test -s "$ac_outfile"; then
16036 # The compiler can only warn and ignore the option if not recognized
16037 # So say no if there are warnings other than the usual output.
16038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16041 lt_cv_prog_compiler_rtti_exceptions=yes
16042 fi
16043 fi
16044 $RM conftest*
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16048 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16049
16050 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16052 else
16053 :
16054 fi
16055
16056 fi
16057
16058
16059
16060
16061
16062
16063 lt_prog_compiler_wl=
16064 lt_prog_compiler_pic=
16065 lt_prog_compiler_static=
16066
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16068 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16069
16070 if test "$GCC" = yes; then
16071 lt_prog_compiler_wl='-Wl,'
16072 lt_prog_compiler_static='-static'
16073
16074 case $host_os in
16075 aix*)
16076 # All AIX code is PIC.
16077 if test "$host_cpu" = ia64; then
16078 # AIX 5 now supports IA64 processor
16079 lt_prog_compiler_static='-Bstatic'
16080 fi
16081 lt_prog_compiler_pic='-fPIC'
16082 ;;
16083
16084 amigaos*)
16085 case $host_cpu in
16086 powerpc)
16087 # see comment about AmigaOS4 .so support
16088 lt_prog_compiler_pic='-fPIC'
16089 ;;
16090 m68k)
16091 # FIXME: we need at least 68020 code to build shared libraries, but
16092 # adding the `-m68020' flag to GCC prevents building anything better,
16093 # like `-m68040'.
16094 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16095 ;;
16096 esac
16097 ;;
16098
16099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16100 # PIC is the default for these OSes.
16101 ;;
16102
16103 mingw* | cygwin* | pw32* | os2* | cegcc*)
16104 # This hack is so that the source file can tell whether it is being
16105 # built for inclusion in a dll (and should export symbols for example).
16106 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16107 # (--disable-auto-import) libraries
16108 lt_prog_compiler_pic='-DDLL_EXPORT'
16109 ;;
16110
16111 darwin* | rhapsody*)
16112 # PIC is the default on this platform
16113 # Common symbols not allowed in MH_DYLIB files
16114 lt_prog_compiler_pic='-fno-common'
16115 ;;
16116
16117 haiku*)
16118 # PIC is the default for Haiku.
16119 # The "-static" flag exists, but is broken.
16120 lt_prog_compiler_static=
16121 ;;
16122
16123 hpux*)
16124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16126 # sets the default TLS model and affects inlining.
16127 case $host_cpu in
16128 hppa*64*)
16129 # +Z the default
16130 ;;
16131 *)
16132 lt_prog_compiler_pic='-fPIC'
16133 ;;
16134 esac
16135 ;;
16136
16137 interix[3-9]*)
16138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16139 # Instead, we relocate shared libraries at runtime.
16140 ;;
16141
16142 msdosdjgpp*)
16143 # Just because we use GCC doesn't mean we suddenly get shared libraries
16144 # on systems that don't support them.
16145 lt_prog_compiler_can_build_shared=no
16146 enable_shared=no
16147 ;;
16148
16149 *nto* | *qnx*)
16150 # QNX uses GNU C++, but need to define -shared option too, otherwise
16151 # it will coredump.
16152 lt_prog_compiler_pic='-fPIC -shared'
16153 ;;
16154
16155 sysv4*MP*)
16156 if test -d /usr/nec; then
16157 lt_prog_compiler_pic=-Kconform_pic
16158 fi
16159 ;;
16160
16161 *)
16162 lt_prog_compiler_pic='-fPIC'
16163 ;;
16164 esac
16165
16166 case $cc_basename in
16167 nvcc*) # Cuda Compiler Driver 2.2
16168 lt_prog_compiler_wl='-Xlinker '
16169 lt_prog_compiler_pic='-Xcompiler -fPIC'
16170 ;;
16171 esac
16172 else
16173 # PORTME Check for flag to pass linker flags through the system compiler.
16174 case $host_os in
16175 aix*)
16176 lt_prog_compiler_wl='-Wl,'
16177 if test "$host_cpu" = ia64; then
16178 # AIX 5 now supports IA64 processor
16179 lt_prog_compiler_static='-Bstatic'
16180 else
16181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16182 fi
16183 ;;
16184
16185 mingw* | cygwin* | pw32* | os2* | cegcc*)
16186 # This hack is so that the source file can tell whether it is being
16187 # built for inclusion in a dll (and should export symbols for example).
16188 lt_prog_compiler_pic='-DDLL_EXPORT'
16189 ;;
16190
16191 hpux9* | hpux10* | hpux11*)
16192 lt_prog_compiler_wl='-Wl,'
16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194 # not for PA HP-UX.
16195 case $host_cpu in
16196 hppa*64*|ia64*)
16197 # +Z the default
16198 ;;
16199 *)
16200 lt_prog_compiler_pic='+Z'
16201 ;;
16202 esac
16203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16204 lt_prog_compiler_static='${wl}-a ${wl}archive'
16205 ;;
16206
16207 irix5* | irix6* | nonstopux*)
16208 lt_prog_compiler_wl='-Wl,'
16209 # PIC (with -KPIC) is the default.
16210 lt_prog_compiler_static='-non_shared'
16211 ;;
16212
16213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16214 case $cc_basename in
16215 # old Intel for x86_64 which still supported -KPIC.
16216 ecc*)
16217 lt_prog_compiler_wl='-Wl,'
16218 lt_prog_compiler_pic='-KPIC'
16219 lt_prog_compiler_static='-static'
16220 ;;
16221 # icc used to be incompatible with GCC.
16222 # ICC 10 doesn't accept -KPIC any more.
16223 icc* | ifort*)
16224 lt_prog_compiler_wl='-Wl,'
16225 lt_prog_compiler_pic='-fPIC'
16226 lt_prog_compiler_static='-static'
16227 ;;
16228 # Lahey Fortran 8.1.
16229 lf95*)
16230 lt_prog_compiler_wl='-Wl,'
16231 lt_prog_compiler_pic='--shared'
16232 lt_prog_compiler_static='--static'
16233 ;;
16234 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16235 # Portland Group compilers (*not* the Pentium gcc compiler,
16236 # which looks to be a dead project)
16237 lt_prog_compiler_wl='-Wl,'
16238 lt_prog_compiler_pic='-fpic'
16239 lt_prog_compiler_static='-Bstatic'
16240 ;;
16241 ccc*)
16242 lt_prog_compiler_wl='-Wl,'
16243 # All Alpha code is PIC.
16244 lt_prog_compiler_static='-non_shared'
16245 ;;
16246 xl* | bgxl* | bgf* | mpixl*)
16247 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16248 lt_prog_compiler_wl='-Wl,'
16249 lt_prog_compiler_pic='-qpic'
16250 lt_prog_compiler_static='-qstaticlink'
16251 ;;
16252 *)
16253 case `$CC -V 2>&1 | sed 5q` in
16254 *Sun\ F* | *Sun*Fortran*)
16255 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16256 lt_prog_compiler_pic='-KPIC'
16257 lt_prog_compiler_static='-Bstatic'
16258 lt_prog_compiler_wl=''
16259 ;;
16260 *Sun\ C*)
16261 # Sun C 5.9
16262 lt_prog_compiler_pic='-KPIC'
16263 lt_prog_compiler_static='-Bstatic'
16264 lt_prog_compiler_wl='-Wl,'
16265 ;;
16266 esac
16267 ;;
16268 esac
16269 ;;
16270
16271 newsos6)
16272 lt_prog_compiler_pic='-KPIC'
16273 lt_prog_compiler_static='-Bstatic'
16274 ;;
16275
16276 *nto* | *qnx*)
16277 # QNX uses GNU C++, but need to define -shared option too, otherwise
16278 # it will coredump.
16279 lt_prog_compiler_pic='-fPIC -shared'
16280 ;;
16281
16282 osf3* | osf4* | osf5*)
16283 lt_prog_compiler_wl='-Wl,'
16284 # All OSF/1 code is PIC.
16285 lt_prog_compiler_static='-non_shared'
16286 ;;
16287
16288 rdos*)
16289 lt_prog_compiler_static='-non_shared'
16290 ;;
16291
16292 solaris*)
16293 lt_prog_compiler_pic='-KPIC'
16294 lt_prog_compiler_static='-Bstatic'
16295 case $cc_basename in
16296 f77* | f90* | f95*)
16297 lt_prog_compiler_wl='-Qoption ld ';;
16298 *)
16299 lt_prog_compiler_wl='-Wl,';;
16300 esac
16301 ;;
16302
16303 sunos4*)
16304 lt_prog_compiler_wl='-Qoption ld '
16305 lt_prog_compiler_pic='-PIC'
16306 lt_prog_compiler_static='-Bstatic'
16307 ;;
16308
16309 sysv4 | sysv4.2uw2* | sysv4.3*)
16310 lt_prog_compiler_wl='-Wl,'
16311 lt_prog_compiler_pic='-KPIC'
16312 lt_prog_compiler_static='-Bstatic'
16313 ;;
16314
16315 sysv4*MP*)
16316 if test -d /usr/nec ;then
16317 lt_prog_compiler_pic='-Kconform_pic'
16318 lt_prog_compiler_static='-Bstatic'
16319 fi
16320 ;;
16321
16322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16323 lt_prog_compiler_wl='-Wl,'
16324 lt_prog_compiler_pic='-KPIC'
16325 lt_prog_compiler_static='-Bstatic'
16326 ;;
16327
16328 unicos*)
16329 lt_prog_compiler_wl='-Wl,'
16330 lt_prog_compiler_can_build_shared=no
16331 ;;
16332
16333 uts4*)
16334 lt_prog_compiler_pic='-pic'
16335 lt_prog_compiler_static='-Bstatic'
16336 ;;
16337
16338 *)
16339 lt_prog_compiler_can_build_shared=no
16340 ;;
16341 esac
16342 fi
16343
16344 case $host_os in
16345 # For platforms which do not support PIC, -DPIC is meaningless:
16346 *djgpp*)
16347 lt_prog_compiler_pic=
16348 ;;
16349 *)
16350 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16351 ;;
16352 esac
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16354 $as_echo "$lt_prog_compiler_pic" >&6; }
16355
16356
16357
16358
16359
16360
16361 #
16362 # Check to make sure the PIC flag actually works.
16363 #
16364 if test -n "$lt_prog_compiler_pic"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16367 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16368 $as_echo_n "(cached) " >&6
16369 else
16370 lt_cv_prog_compiler_pic_works=no
16371 ac_outfile=conftest.$ac_objext
16372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16374 # Insert the option either (1) after the last *FLAGS variable, or
16375 # (2) before a word containing "conftest.", or (3) at the end.
16376 # Note that $ac_compile itself does not contain backslashes and begins
16377 # with a dollar sign (not a hyphen), so the echo should work correctly.
16378 # The option is referenced via a variable to avoid confusing sed.
16379 lt_compile=`echo "$ac_compile" | $SED \
16380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16382 -e 's:$: $lt_compiler_flag:'`
16383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16384 (eval "$lt_compile" 2>conftest.err)
16385 ac_status=$?
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 if (exit $ac_status) && test -s "$ac_outfile"; then
16389 # The compiler can only warn and ignore the option if not recognized
16390 # So say no if there are warnings other than the usual output.
16391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16394 lt_cv_prog_compiler_pic_works=yes
16395 fi
16396 fi
16397 $RM conftest*
16398
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16401 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16402
16403 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16404 case $lt_prog_compiler_pic in
16405 "" | " "*) ;;
16406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16407 esac
16408 else
16409 lt_prog_compiler_pic=
16410 lt_prog_compiler_can_build_shared=no
16411 fi
16412
16413 fi
16414
16415
16416
16417
16418
16419
16420 #
16421 # Check to make sure the static flag actually works.
16422 #
16423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16426 if ${lt_cv_prog_compiler_static_works+:} false; then :
16427 $as_echo_n "(cached) " >&6
16428 else
16429 lt_cv_prog_compiler_static_works=no
16430 save_LDFLAGS="$LDFLAGS"
16431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16434 # The linker can only warn and ignore the option if not recognized
16435 # So say no if there are warnings
16436 if test -s conftest.err; then
16437 # Append any errors to the config.log.
16438 cat conftest.err 1>&5
16439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16441 if diff conftest.exp conftest.er2 >/dev/null; then
16442 lt_cv_prog_compiler_static_works=yes
16443 fi
16444 else
16445 lt_cv_prog_compiler_static_works=yes
16446 fi
16447 fi
16448 $RM -r conftest*
16449 LDFLAGS="$save_LDFLAGS"
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16453 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16454
16455 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16456 :
16457 else
16458 lt_prog_compiler_static=
16459 fi
16460
16461
16462
16463
16464
16465
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16468 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16469 if ${lt_cv_prog_compiler_c_o+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 lt_cv_prog_compiler_c_o=no
16473 $RM -r conftest 2>/dev/null
16474 mkdir conftest
16475 cd conftest
16476 mkdir out
16477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16478
16479 lt_compiler_flag="-o out/conftest2.$ac_objext"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 lt_compile=`echo "$ac_compile" | $SED \
16485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487 -e 's:$: $lt_compiler_flag:'`
16488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16489 (eval "$lt_compile" 2>out/conftest.err)
16490 ac_status=$?
16491 cat out/conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16494 then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings
16497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_c_o=yes
16501 fi
16502 fi
16503 chmod u+w . 2>&5
16504 $RM conftest*
16505 # SGI C++ compiler will create directory out/ii_files/ for
16506 # template instantiation
16507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16508 $RM out/* && rmdir out
16509 cd ..
16510 $RM -r conftest
16511 $RM conftest*
16512
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16515 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16516
16517
16518
16519
16520
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16524 if ${lt_cv_prog_compiler_c_o+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 lt_cv_prog_compiler_c_o=no
16528 $RM -r conftest 2>/dev/null
16529 mkdir conftest
16530 cd conftest
16531 mkdir out
16532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16533
16534 lt_compiler_flag="-o out/conftest2.$ac_objext"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 lt_compile=`echo "$ac_compile" | $SED \
16540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16542 -e 's:$: $lt_compiler_flag:'`
16543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16544 (eval "$lt_compile" 2>out/conftest.err)
16545 ac_status=$?
16546 cat out/conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16549 then
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16555 lt_cv_prog_compiler_c_o=yes
16556 fi
16557 fi
16558 chmod u+w . 2>&5
16559 $RM conftest*
16560 # SGI C++ compiler will create directory out/ii_files/ for
16561 # template instantiation
16562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16563 $RM out/* && rmdir out
16564 cd ..
16565 $RM -r conftest
16566 $RM conftest*
16567
16568 fi
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16571
16572
16573
16574
16575 hard_links="nottested"
16576 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16577 # do not overwrite the value of need_locks provided by the user
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16579 $as_echo_n "checking if we can lock with hard links... " >&6; }
16580 hard_links=yes
16581 $RM conftest*
16582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16583 touch conftest.a
16584 ln conftest.a conftest.b 2>&5 || hard_links=no
16585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16587 $as_echo "$hard_links" >&6; }
16588 if test "$hard_links" = no; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16590 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16591 need_locks=warn
16592 fi
16593 else
16594 need_locks=no
16595 fi
16596
16597
16598
16599
16600
16601
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16604
16605 runpath_var=
16606 allow_undefined_flag=
16607 always_export_symbols=no
16608 archive_cmds=
16609 archive_expsym_cmds=
16610 compiler_needs_object=no
16611 enable_shared_with_static_runtimes=no
16612 export_dynamic_flag_spec=
16613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614 hardcode_automatic=no
16615 hardcode_direct=no
16616 hardcode_direct_absolute=no
16617 hardcode_libdir_flag_spec=
16618 hardcode_libdir_flag_spec_ld=
16619 hardcode_libdir_separator=
16620 hardcode_minus_L=no
16621 hardcode_shlibpath_var=unsupported
16622 inherit_rpath=no
16623 link_all_deplibs=unknown
16624 module_cmds=
16625 module_expsym_cmds=
16626 old_archive_from_new_cmds=
16627 old_archive_from_expsyms_cmds=
16628 thread_safe_flag_spec=
16629 whole_archive_flag_spec=
16630 # include_expsyms should be a list of space-separated symbols to be *always*
16631 # included in the symbol list
16632 include_expsyms=
16633 # exclude_expsyms can be an extended regexp of symbols to exclude
16634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16636 # as well as any symbol that contains `d'.
16637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16639 # platforms (ab)use it in PIC code, but their linkers get confused if
16640 # the symbol is explicitly referenced. Since portable code cannot
16641 # rely on this symbol name, it's probably fine to never include it in
16642 # preloaded symbol tables.
16643 # Exclude shared library initialization/finalization symbols.
16644 extract_expsyms_cmds=
16645
16646 case $host_os in
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16649 # When not using gcc, we currently assume that we are using
16650 # Microsoft Visual C++.
16651 if test "$GCC" != yes; then
16652 with_gnu_ld=no
16653 fi
16654 ;;
16655 interix*)
16656 # we just hope/assume this is gcc and not c89 (= MSVC++)
16657 with_gnu_ld=yes
16658 ;;
16659 openbsd*)
16660 with_gnu_ld=no
16661 ;;
16662 esac
16663
16664 ld_shlibs=yes
16665
16666 # On some targets, GNU ld is compatible enough with the native linker
16667 # that we're better off using the native interface for both.
16668 lt_use_gnu_ld_interface=no
16669 if test "$with_gnu_ld" = yes; then
16670 case $host_os in
16671 aix*)
16672 # The AIX port of GNU ld has always aspired to compatibility
16673 # with the native linker. However, as the warning in the GNU ld
16674 # block says, versions before 2.19.5* couldn't really create working
16675 # shared libraries, regardless of the interface used.
16676 case `$LD -v 2>&1` in
16677 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16678 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16679 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16680 *)
16681 lt_use_gnu_ld_interface=yes
16682 ;;
16683 esac
16684 ;;
16685 *)
16686 lt_use_gnu_ld_interface=yes
16687 ;;
16688 esac
16689 fi
16690
16691 if test "$lt_use_gnu_ld_interface" = yes; then
16692 # If archive_cmds runs LD, not CC, wlarc should be empty
16693 wlarc='${wl}'
16694
16695 # Set some defaults for GNU ld with shared library support. These
16696 # are reset later if shared libraries are not supported. Putting them
16697 # here allows them to be overridden if necessary.
16698 runpath_var=LD_RUN_PATH
16699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16700 export_dynamic_flag_spec='${wl}--export-dynamic'
16701 # ancient GNU ld didn't support --whole-archive et. al.
16702 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16704 else
16705 whole_archive_flag_spec=
16706 fi
16707 supports_anon_versioning=no
16708 case `$LD -v 2>&1` in
16709 *GNU\ gold*) supports_anon_versioning=yes ;;
16710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16713 *\ 2.11.*) ;; # other 2.11 versions
16714 *) supports_anon_versioning=yes ;;
16715 esac
16716
16717 # See if GNU ld supports shared libraries.
16718 case $host_os in
16719 aix[3-9]*)
16720 # On AIX/PPC, the GNU linker is very broken
16721 if test "$host_cpu" != ia64; then
16722 ld_shlibs=no
16723 cat <<_LT_EOF 1>&2
16724
16725 *** Warning: the GNU linker, at least up to release 2.19, is reported
16726 *** to be unable to reliably create shared libraries on AIX.
16727 *** Therefore, libtool is disabling shared libraries support. If you
16728 *** really care for shared libraries, you may want to install binutils
16729 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16730 *** You will then need to restart the configuration process.
16731
16732 _LT_EOF
16733 fi
16734 ;;
16735
16736 amigaos*)
16737 case $host_cpu in
16738 powerpc)
16739 # see comment about AmigaOS4 .so support
16740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741 archive_expsym_cmds=''
16742 ;;
16743 m68k)
16744 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)'
16745 hardcode_libdir_flag_spec='-L$libdir'
16746 hardcode_minus_L=yes
16747 ;;
16748 esac
16749 ;;
16750
16751 beos*)
16752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16753 allow_undefined_flag=unsupported
16754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16755 # support --undefined. This deserves some investigation. FIXME
16756 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757 else
16758 ld_shlibs=no
16759 fi
16760 ;;
16761
16762 cygwin* | mingw* | pw32* | cegcc*)
16763 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16764 # as there is no search path for DLLs.
16765 hardcode_libdir_flag_spec='-L$libdir'
16766 export_dynamic_flag_spec='${wl}--export-all-symbols'
16767 allow_undefined_flag=unsupported
16768 always_export_symbols=no
16769 enable_shared_with_static_runtimes=yes
16770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16771
16772 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16774 # If the export-symbols file already is a .def file (1st line
16775 # is EXPORTS), use it as is; otherwise, prepend...
16776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16777 cp $export_symbols $output_objdir/$soname.def;
16778 else
16779 echo EXPORTS > $output_objdir/$soname.def;
16780 cat $export_symbols >> $output_objdir/$soname.def;
16781 fi~
16782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16783 else
16784 ld_shlibs=no
16785 fi
16786 ;;
16787
16788 haiku*)
16789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16790 link_all_deplibs=yes
16791 ;;
16792
16793 interix[3-9]*)
16794 hardcode_direct=no
16795 hardcode_shlibpath_var=no
16796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16797 export_dynamic_flag_spec='${wl}-E'
16798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16799 # Instead, shared libraries are loaded at an image base (0x10000000 by
16800 # default) and relocated if they conflict, which is a slow very memory
16801 # consuming and fragmenting process. To avoid this, we pick a random,
16802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16805 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'
16806 ;;
16807
16808 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16809 tmp_diet=no
16810 if test "$host_os" = linux-dietlibc; then
16811 case $cc_basename in
16812 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16813 esac
16814 fi
16815 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16816 && test "$tmp_diet" = no
16817 then
16818 tmp_addflag=' $pic_flag'
16819 tmp_sharedflag='-shared'
16820 case $cc_basename,$host_cpu in
16821 pgcc*) # Portland Group C compiler
16822 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'
16823 tmp_addflag=' $pic_flag'
16824 ;;
16825 pgf77* | pgf90* | pgf95* | pgfortran*)
16826 # Portland Group f77 and f90 compilers
16827 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'
16828 tmp_addflag=' $pic_flag -Mnomain' ;;
16829 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16830 tmp_addflag=' -i_dynamic' ;;
16831 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16832 tmp_addflag=' -i_dynamic -nofor_main' ;;
16833 ifc* | ifort*) # Intel Fortran compiler
16834 tmp_addflag=' -nofor_main' ;;
16835 lf95*) # Lahey Fortran 8.1
16836 whole_archive_flag_spec=
16837 tmp_sharedflag='--shared' ;;
16838 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16839 tmp_sharedflag='-qmkshrobj'
16840 tmp_addflag= ;;
16841 nvcc*) # Cuda Compiler Driver 2.2
16842 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'
16843 compiler_needs_object=yes
16844 ;;
16845 esac
16846 case `$CC -V 2>&1 | sed 5q` in
16847 *Sun\ C*) # Sun C 5.9
16848 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'
16849 compiler_needs_object=yes
16850 tmp_sharedflag='-G' ;;
16851 *Sun\ F*) # Sun Fortran 8.3
16852 tmp_sharedflag='-G' ;;
16853 esac
16854 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855
16856 if test "x$supports_anon_versioning" = xyes; then
16857 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16859 echo "local: *; };" >> $output_objdir/$libname.ver~
16860 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16861 fi
16862
16863 case $cc_basename in
16864 xlf* | bgf* | bgxlf* | mpixlf*)
16865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16866 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16867 hardcode_libdir_flag_spec=
16868 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16869 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16870 if test "x$supports_anon_versioning" = xyes; then
16871 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16873 echo "local: *; };" >> $output_objdir/$libname.ver~
16874 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16875 fi
16876 ;;
16877 esac
16878 else
16879 ld_shlibs=no
16880 fi
16881 ;;
16882
16883 netbsd*)
16884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16885 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16886 wlarc=
16887 else
16888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16890 fi
16891 ;;
16892
16893 solaris*)
16894 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16895 ld_shlibs=no
16896 cat <<_LT_EOF 1>&2
16897
16898 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16899 *** create shared libraries on Solaris systems. Therefore, libtool
16900 *** is disabling shared libraries support. We urge you to upgrade GNU
16901 *** binutils to release 2.9.1 or newer. Another option is to modify
16902 *** your PATH or compiler configuration so that the native linker is
16903 *** used, and then restart.
16904
16905 _LT_EOF
16906 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16909 else
16910 ld_shlibs=no
16911 fi
16912 ;;
16913
16914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16915 case `$LD -v 2>&1` in
16916 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16917 ld_shlibs=no
16918 cat <<_LT_EOF 1>&2
16919
16920 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16921 *** reliably create shared libraries on SCO systems. Therefore, libtool
16922 *** is disabling shared libraries support. We urge you to upgrade GNU
16923 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16924 *** your PATH or compiler configuration so that the native linker is
16925 *** used, and then restart.
16926
16927 _LT_EOF
16928 ;;
16929 *)
16930 # For security reasons, it is highly recommended that you always
16931 # use absolute paths for naming shared libraries, and exclude the
16932 # DT_RUNPATH tag from executables and libraries. But doing so
16933 # requires that you compile everything twice, which is a pain.
16934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938 else
16939 ld_shlibs=no
16940 fi
16941 ;;
16942 esac
16943 ;;
16944
16945 sunos4*)
16946 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16947 wlarc=
16948 hardcode_direct=yes
16949 hardcode_shlibpath_var=no
16950 ;;
16951
16952 *)
16953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16956 else
16957 ld_shlibs=no
16958 fi
16959 ;;
16960 esac
16961
16962 if test "$ld_shlibs" = no; then
16963 runpath_var=
16964 hardcode_libdir_flag_spec=
16965 export_dynamic_flag_spec=
16966 whole_archive_flag_spec=
16967 fi
16968 else
16969 # PORTME fill in a description of your system's linker (not GNU ld)
16970 case $host_os in
16971 aix3*)
16972 allow_undefined_flag=unsupported
16973 always_export_symbols=yes
16974 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'
16975 # Note: this linker hardcodes the directories in LIBPATH if there
16976 # are no directories specified by -L.
16977 hardcode_minus_L=yes
16978 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16979 # Neither direct hardcoding nor static linking is supported with a
16980 # broken collect2.
16981 hardcode_direct=unsupported
16982 fi
16983 ;;
16984
16985 aix[4-9]*)
16986 if test "$host_cpu" = ia64; then
16987 # On IA64, the linker does run time linking by default, so we don't
16988 # have to do anything special.
16989 aix_use_runtimelinking=no
16990 exp_sym_flag='-Bexport'
16991 no_entry_flag=""
16992 else
16993 # If we're using GNU nm, then we don't want the "-C" option.
16994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16995 # Also, AIX nm treats weak defined symbols like other global
16996 # defined symbols, whereas GNU nm marks them as "W".
16997 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16998 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'
16999 else
17000 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'
17001 fi
17002 aix_use_runtimelinking=no
17003
17004 # Test if we are trying to use run time linking or normal
17005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17006 # need to do runtime linking.
17007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17008 for ld_flag in $LDFLAGS; do
17009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17010 aix_use_runtimelinking=yes
17011 break
17012 fi
17013 done
17014 ;;
17015 esac
17016
17017 exp_sym_flag='-bexport'
17018 no_entry_flag='-bnoentry'
17019 fi
17020
17021 # When large executables or shared objects are built, AIX ld can
17022 # have problems creating the table of contents. If linking a library
17023 # or program results in "error TOC overflow" add -mminimal-toc to
17024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17026
17027 archive_cmds=''
17028 hardcode_direct=yes
17029 hardcode_direct_absolute=yes
17030 hardcode_libdir_separator=':'
17031 link_all_deplibs=yes
17032 file_list_spec='${wl}-f,'
17033
17034 if test "$GCC" = yes; then
17035 case $host_os in aix4.[012]|aix4.[012].*)
17036 # We only want to do this on AIX 4.2 and lower, the check
17037 # below for broken collect2 doesn't work under 4.3+
17038 collect2name=`${CC} -print-prog-name=collect2`
17039 if test -f "$collect2name" &&
17040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17041 then
17042 # We have reworked collect2
17043 :
17044 else
17045 # We have old collect2
17046 hardcode_direct=unsupported
17047 # It fails to find uninstalled libraries when the uninstalled
17048 # path is not listed in the libpath. Setting hardcode_minus_L
17049 # to unsupported forces relinking
17050 hardcode_minus_L=yes
17051 hardcode_libdir_flag_spec='-L$libdir'
17052 hardcode_libdir_separator=
17053 fi
17054 ;;
17055 esac
17056 shared_flag='-shared'
17057 if test "$aix_use_runtimelinking" = yes; then
17058 shared_flag="$shared_flag "'${wl}-G'
17059 fi
17060 else
17061 # not using gcc
17062 if test "$host_cpu" = ia64; then
17063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17064 # chokes on -Wl,-G. The following line is correct:
17065 shared_flag='-G'
17066 else
17067 if test "$aix_use_runtimelinking" = yes; then
17068 shared_flag='${wl}-G'
17069 else
17070 shared_flag='${wl}-bM:SRE'
17071 fi
17072 fi
17073 fi
17074
17075 export_dynamic_flag_spec='${wl}-bexpall'
17076 # It seems that -bexpall does not export symbols beginning with
17077 # underscore (_), so it is better to generate a list of symbols to export.
17078 always_export_symbols=yes
17079 if test "$aix_use_runtimelinking" = yes; then
17080 # Warning - without using the other runtime loading flags (-brtl),
17081 # -berok will link without error, but may produce a broken library.
17082 allow_undefined_flag='-berok'
17083 # Determine the default libpath from the value encoded in an
17084 # empty executable.
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087
17088 int
17089 main ()
17090 {
17091
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_link "$LINENO"; then :
17097
17098 lt_aix_libpath_sed='
17099 /Import File Strings/,/^$/ {
17100 /^0/ {
17101 s/^0 *\(.*\)$/\1/
17102 p
17103 }
17104 }'
17105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17106 # Check for a 64-bit object if we didn't find anything.
17107 if test -z "$aix_libpath"; then
17108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17109 fi
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17114
17115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17116 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"
17117 else
17118 if test "$host_cpu" = ia64; then
17119 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17120 allow_undefined_flag="-z nodefs"
17121 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"
17122 else
17123 # Determine the default libpath from the value encoded in an
17124 # empty executable.
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127
17128 int
17129 main ()
17130 {
17131
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 if ac_fn_c_try_link "$LINENO"; then :
17137
17138 lt_aix_libpath_sed='
17139 /Import File Strings/,/^$/ {
17140 /^0/ {
17141 s/^0 *\(.*\)$/\1/
17142 p
17143 }
17144 }'
17145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17146 # Check for a 64-bit object if we didn't find anything.
17147 if test -z "$aix_libpath"; then
17148 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149 fi
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17154
17155 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17156 # Warning - without using the other run time loading flags,
17157 # -berok will link without error, but may produce a broken library.
17158 no_undefined_flag=' ${wl}-bernotok'
17159 allow_undefined_flag=' ${wl}-berok'
17160 if test "$with_gnu_ld" = yes; then
17161 # We only use this code for GNU lds that support --whole-archive.
17162 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17163 else
17164 # Exported symbols can be pulled into shared objects from archives
17165 whole_archive_flag_spec='$convenience'
17166 fi
17167 archive_cmds_need_lc=yes
17168 # This is similar to how AIX traditionally builds its shared libraries.
17169 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'
17170 fi
17171 fi
17172 ;;
17173
17174 amigaos*)
17175 case $host_cpu in
17176 powerpc)
17177 # see comment about AmigaOS4 .so support
17178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17179 archive_expsym_cmds=''
17180 ;;
17181 m68k)
17182 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)'
17183 hardcode_libdir_flag_spec='-L$libdir'
17184 hardcode_minus_L=yes
17185 ;;
17186 esac
17187 ;;
17188
17189 bsdi[45]*)
17190 export_dynamic_flag_spec=-rdynamic
17191 ;;
17192
17193 cygwin* | mingw* | pw32* | cegcc*)
17194 # When not using gcc, we currently assume that we are using
17195 # Microsoft Visual C++.
17196 # hardcode_libdir_flag_spec is actually meaningless, as there is
17197 # no search path for DLLs.
17198 hardcode_libdir_flag_spec=' '
17199 allow_undefined_flag=unsupported
17200 # Tell ltmain to make .lib files, not .a files.
17201 libext=lib
17202 # Tell ltmain to make .dll files, not .so files.
17203 shrext_cmds=".dll"
17204 # FIXME: Setting linknames here is a bad hack.
17205 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17206 # The linker will automatically build a .lib file if we build a DLL.
17207 old_archive_from_new_cmds='true'
17208 # FIXME: Should let the user specify the lib program.
17209 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17210 fix_srcfile_path='`cygpath -w "$srcfile"`'
17211 enable_shared_with_static_runtimes=yes
17212 ;;
17213
17214 darwin* | rhapsody*)
17215
17216
17217 archive_cmds_need_lc=no
17218 hardcode_direct=no
17219 hardcode_automatic=yes
17220 hardcode_shlibpath_var=unsupported
17221 if test "$lt_cv_ld_force_load" = "yes"; then
17222 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\"`'
17223 else
17224 whole_archive_flag_spec=''
17225 fi
17226 link_all_deplibs=yes
17227 allow_undefined_flag="$_lt_dar_allow_undefined"
17228 case $cc_basename in
17229 ifort*) _lt_dar_can_shared=yes ;;
17230 *) _lt_dar_can_shared=$GCC ;;
17231 esac
17232 if test "$_lt_dar_can_shared" = "yes"; then
17233 output_verbose_link_cmd=func_echo_all
17234 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17235 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236 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}"
17237 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}"
17238
17239 else
17240 ld_shlibs=no
17241 fi
17242
17243 ;;
17244
17245 dgux*)
17246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247 hardcode_libdir_flag_spec='-L$libdir'
17248 hardcode_shlibpath_var=no
17249 ;;
17250
17251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17252 # support. Future versions do this automatically, but an explicit c++rt0.o
17253 # does not break anything, and helps significantly (at the cost of a little
17254 # extra space).
17255 freebsd2.2*)
17256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17257 hardcode_libdir_flag_spec='-R$libdir'
17258 hardcode_direct=yes
17259 hardcode_shlibpath_var=no
17260 ;;
17261
17262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17263 freebsd2.*)
17264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17265 hardcode_direct=yes
17266 hardcode_minus_L=yes
17267 hardcode_shlibpath_var=no
17268 ;;
17269
17270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17271 freebsd* | dragonfly*)
17272 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17273 hardcode_libdir_flag_spec='-R$libdir'
17274 hardcode_direct=yes
17275 hardcode_shlibpath_var=no
17276 ;;
17277
17278 hpux9*)
17279 if test "$GCC" = yes; then
17280 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'
17281 else
17282 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'
17283 fi
17284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator=:
17286 hardcode_direct=yes
17287
17288 # hardcode_minus_L: Not really in the search PATH,
17289 # but as the default location of the library.
17290 hardcode_minus_L=yes
17291 export_dynamic_flag_spec='${wl}-E'
17292 ;;
17293
17294 hpux10*)
17295 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17297 else
17298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17299 fi
17300 if test "$with_gnu_ld" = no; then
17301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17302 hardcode_libdir_flag_spec_ld='+b $libdir'
17303 hardcode_libdir_separator=:
17304 hardcode_direct=yes
17305 hardcode_direct_absolute=yes
17306 export_dynamic_flag_spec='${wl}-E'
17307 # hardcode_minus_L: Not really in the search PATH,
17308 # but as the default location of the library.
17309 hardcode_minus_L=yes
17310 fi
17311 ;;
17312
17313 hpux11*)
17314 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17315 case $host_cpu in
17316 hppa*64*)
17317 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 ;;
17319 ia64*)
17320 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17321 ;;
17322 *)
17323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17324 ;;
17325 esac
17326 else
17327 case $host_cpu in
17328 hppa*64*)
17329 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 ;;
17331 ia64*)
17332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17333 ;;
17334 *)
17335
17336 # Older versions of the 11.00 compiler do not understand -b yet
17337 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17339 $as_echo_n "checking if $CC understands -b... " >&6; }
17340 if ${lt_cv_prog_compiler__b+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 lt_cv_prog_compiler__b=no
17344 save_LDFLAGS="$LDFLAGS"
17345 LDFLAGS="$LDFLAGS -b"
17346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17348 # The linker can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test -s conftest.err; then
17351 # Append any errors to the config.log.
17352 cat conftest.err 1>&5
17353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17355 if diff conftest.exp conftest.er2 >/dev/null; then
17356 lt_cv_prog_compiler__b=yes
17357 fi
17358 else
17359 lt_cv_prog_compiler__b=yes
17360 fi
17361 fi
17362 $RM -r conftest*
17363 LDFLAGS="$save_LDFLAGS"
17364
17365 fi
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17367 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17368
17369 if test x"$lt_cv_prog_compiler__b" = xyes; then
17370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17371 else
17372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17373 fi
17374
17375 ;;
17376 esac
17377 fi
17378 if test "$with_gnu_ld" = no; then
17379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17380 hardcode_libdir_separator=:
17381
17382 case $host_cpu in
17383 hppa*64*|ia64*)
17384 hardcode_direct=no
17385 hardcode_shlibpath_var=no
17386 ;;
17387 *)
17388 hardcode_direct=yes
17389 hardcode_direct_absolute=yes
17390 export_dynamic_flag_spec='${wl}-E'
17391
17392 # hardcode_minus_L: Not really in the search PATH,
17393 # but as the default location of the library.
17394 hardcode_minus_L=yes
17395 ;;
17396 esac
17397 fi
17398 ;;
17399
17400 irix5* | irix6* | nonstopux*)
17401 if test "$GCC" = yes; then
17402 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'
17403 # Try to use the -exported_symbol ld option, if it does not
17404 # work, assume that -exports_file does not work either and
17405 # implicitly export all symbols.
17406 save_LDFLAGS="$LDFLAGS"
17407 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 int foo(void) {}
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 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'
17414
17415 fi
17416 rm -f core conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LDFLAGS="$save_LDFLAGS"
17419 else
17420 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'
17421 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'
17422 fi
17423 archive_cmds_need_lc='no'
17424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17425 hardcode_libdir_separator=:
17426 inherit_rpath=yes
17427 link_all_deplibs=yes
17428 ;;
17429
17430 netbsd*)
17431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17433 else
17434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17435 fi
17436 hardcode_libdir_flag_spec='-R$libdir'
17437 hardcode_direct=yes
17438 hardcode_shlibpath_var=no
17439 ;;
17440
17441 newsos6)
17442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct=yes
17444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17445 hardcode_libdir_separator=:
17446 hardcode_shlibpath_var=no
17447 ;;
17448
17449 *nto* | *qnx*)
17450 ;;
17451
17452 openbsd*)
17453 if test -f /usr/libexec/ld.so; then
17454 hardcode_direct=yes
17455 hardcode_shlibpath_var=no
17456 hardcode_direct_absolute=yes
17457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17459 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17461 export_dynamic_flag_spec='${wl}-E'
17462 else
17463 case $host_os in
17464 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17466 hardcode_libdir_flag_spec='-R$libdir'
17467 ;;
17468 *)
17469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17471 ;;
17472 esac
17473 fi
17474 else
17475 ld_shlibs=no
17476 fi
17477 ;;
17478
17479 os2*)
17480 hardcode_libdir_flag_spec='-L$libdir'
17481 hardcode_minus_L=yes
17482 allow_undefined_flag=unsupported
17483 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'
17484 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17485 ;;
17486
17487 osf3*)
17488 if test "$GCC" = yes; then
17489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17490 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'
17491 else
17492 allow_undefined_flag=' -expect_unresolved \*'
17493 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'
17494 fi
17495 archive_cmds_need_lc='no'
17496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17497 hardcode_libdir_separator=:
17498 ;;
17499
17500 osf4* | osf5*) # as osf3* with the addition of -msym flag
17501 if test "$GCC" = yes; then
17502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17503 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'
17504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17505 else
17506 allow_undefined_flag=' -expect_unresolved \*'
17507 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'
17508 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~
17509 $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'
17510
17511 # Both c and cxx compiler support -rpath directly
17512 hardcode_libdir_flag_spec='-rpath $libdir'
17513 fi
17514 archive_cmds_need_lc='no'
17515 hardcode_libdir_separator=:
17516 ;;
17517
17518 solaris*)
17519 no_undefined_flag=' -z defs'
17520 if test "$GCC" = yes; then
17521 wlarc='${wl}'
17522 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17524 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17525 else
17526 case `$CC -V 2>&1` in
17527 *"Compilers 5.0"*)
17528 wlarc=''
17529 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17532 ;;
17533 *)
17534 wlarc='${wl}'
17535 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17537 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17538 ;;
17539 esac
17540 fi
17541 hardcode_libdir_flag_spec='-R$libdir'
17542 hardcode_shlibpath_var=no
17543 case $host_os in
17544 solaris2.[0-5] | solaris2.[0-5].*) ;;
17545 *)
17546 # The compiler driver will combine and reorder linker options,
17547 # but understands `-z linker_flag'. GCC discards it without `$wl',
17548 # but is careful enough not to reorder.
17549 # Supported since Solaris 2.6 (maybe 2.5.1?)
17550 if test "$GCC" = yes; then
17551 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17552 else
17553 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17554 fi
17555 ;;
17556 esac
17557 link_all_deplibs=yes
17558 ;;
17559
17560 sunos4*)
17561 if test "x$host_vendor" = xsequent; then
17562 # Use $CC to link under sequent, because it throws in some extra .o
17563 # files that make .init and .fini sections work.
17564 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17565 else
17566 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17567 fi
17568 hardcode_libdir_flag_spec='-L$libdir'
17569 hardcode_direct=yes
17570 hardcode_minus_L=yes
17571 hardcode_shlibpath_var=no
17572 ;;
17573
17574 sysv4)
17575 case $host_vendor in
17576 sni)
17577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578 hardcode_direct=yes # is this really true???
17579 ;;
17580 siemens)
17581 ## LD is ld it makes a PLAMLIB
17582 ## CC just makes a GrossModule.
17583 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17584 reload_cmds='$CC -r -o $output$reload_objs'
17585 hardcode_direct=no
17586 ;;
17587 motorola)
17588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17590 ;;
17591 esac
17592 runpath_var='LD_RUN_PATH'
17593 hardcode_shlibpath_var=no
17594 ;;
17595
17596 sysv4.3*)
17597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598 hardcode_shlibpath_var=no
17599 export_dynamic_flag_spec='-Bexport'
17600 ;;
17601
17602 sysv4*MP*)
17603 if test -d /usr/nec; then
17604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_shlibpath_var=no
17606 runpath_var=LD_RUN_PATH
17607 hardcode_runpath_var=yes
17608 ld_shlibs=yes
17609 fi
17610 ;;
17611
17612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17613 no_undefined_flag='${wl}-z,text'
17614 archive_cmds_need_lc=no
17615 hardcode_shlibpath_var=no
17616 runpath_var='LD_RUN_PATH'
17617
17618 if test "$GCC" = yes; then
17619 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17621 else
17622 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17624 fi
17625 ;;
17626
17627 sysv5* | sco3.2v5* | sco5v6*)
17628 # Note: We can NOT use -z defs as we might desire, because we do not
17629 # link with -lc, and that would cause any symbols used from libc to
17630 # always be unresolved, which means just about no library would
17631 # ever link correctly. If we're not using GNU ld we use -z text
17632 # though, which does catch some bad symbols but isn't as heavy-handed
17633 # as -z defs.
17634 no_undefined_flag='${wl}-z,text'
17635 allow_undefined_flag='${wl}-z,nodefs'
17636 archive_cmds_need_lc=no
17637 hardcode_shlibpath_var=no
17638 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17639 hardcode_libdir_separator=':'
17640 link_all_deplibs=yes
17641 export_dynamic_flag_spec='${wl}-Bexport'
17642 runpath_var='LD_RUN_PATH'
17643
17644 if test "$GCC" = yes; then
17645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17647 else
17648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17650 fi
17651 ;;
17652
17653 uts4*)
17654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17655 hardcode_libdir_flag_spec='-L$libdir'
17656 hardcode_shlibpath_var=no
17657 ;;
17658
17659 *)
17660 ld_shlibs=no
17661 ;;
17662 esac
17663
17664 if test x$host_vendor = xsni; then
17665 case $host in
17666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17667 export_dynamic_flag_spec='${wl}-Blargedynsym'
17668 ;;
17669 esac
17670 fi
17671 fi
17672
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17674 $as_echo "$ld_shlibs" >&6; }
17675 test "$ld_shlibs" = no && can_build_shared=no
17676
17677 with_gnu_ld=$with_gnu_ld
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693 #
17694 # Do we need to explicitly link libc?
17695 #
17696 case "x$archive_cmds_need_lc" in
17697 x|xyes)
17698 # Assume -lc should be added
17699 archive_cmds_need_lc=yes
17700
17701 if test "$enable_shared" = yes && test "$GCC" = yes; then
17702 case $archive_cmds in
17703 *'~'*)
17704 # FIXME: we may have to deal with multi-command sequences.
17705 ;;
17706 '$CC '*)
17707 # Test whether the compiler implicitly links with -lc since on some
17708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17709 # to ld, don't add -lc before -lgcc.
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17712 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 $RM conftest*
17716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17717
17718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17719 (eval $ac_compile) 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; } 2>conftest.err; then
17723 soname=conftest
17724 lib=conftest
17725 libobjs=conftest.$ac_objext
17726 deplibs=
17727 wl=$lt_prog_compiler_wl
17728 pic_flag=$lt_prog_compiler_pic
17729 compiler_flags=-v
17730 linker_flags=-v
17731 verstring=
17732 output_objdir=.
17733 libname=conftest
17734 lt_save_allow_undefined_flag=$allow_undefined_flag
17735 allow_undefined_flag=
17736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17737 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17738 ac_status=$?
17739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; }
17741 then
17742 lt_cv_archive_cmds_need_lc=no
17743 else
17744 lt_cv_archive_cmds_need_lc=yes
17745 fi
17746 allow_undefined_flag=$lt_save_allow_undefined_flag
17747 else
17748 cat conftest.err 1>&5
17749 fi
17750 $RM conftest*
17751
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17754 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17755 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17756 ;;
17757 esac
17758 fi
17759 ;;
17760 esac
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17920
17921 if test "$GCC" = yes; then
17922 case $host_os in
17923 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17924 *) lt_awk_arg="/^libraries:/" ;;
17925 esac
17926 case $host_os in
17927 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17928 *) lt_sed_strip_eq="s,=/,/,g" ;;
17929 esac
17930 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17931 case $lt_search_path_spec in
17932 *\;*)
17933 # if the path contains ";" then we assume it to be the separator
17934 # otherwise default to the standard path separator (i.e. ":") - it is
17935 # assumed that no part of a normal pathname contains ";" but that should
17936 # okay in the real world where ";" in dirpaths is itself problematic.
17937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17938 ;;
17939 *)
17940 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17941 ;;
17942 esac
17943 # Ok, now we have the path, separated by spaces, we can step through it
17944 # and add multilib dir if necessary.
17945 lt_tmp_lt_search_path_spec=
17946 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17947 for lt_sys_path in $lt_search_path_spec; do
17948 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17949 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17950 else
17951 test -d "$lt_sys_path" && \
17952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17953 fi
17954 done
17955 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17956 BEGIN {RS=" "; FS="/|\n";} {
17957 lt_foo="";
17958 lt_count=0;
17959 for (lt_i = NF; lt_i > 0; lt_i--) {
17960 if ($lt_i != "" && $lt_i != ".") {
17961 if ($lt_i == "..") {
17962 lt_count++;
17963 } else {
17964 if (lt_count == 0) {
17965 lt_foo="/" $lt_i lt_foo;
17966 } else {
17967 lt_count--;
17968 }
17969 }
17970 }
17971 }
17972 if (lt_foo != "") { lt_freq[lt_foo]++; }
17973 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17974 }'`
17975 # AWK program above erroneously prepends '/' to C:/dos/paths
17976 # for these hosts.
17977 case $host_os in
17978 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17979 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17980 esac
17981 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17982 else
17983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17984 fi
17985 library_names_spec=
17986 libname_spec='lib$name'
17987 soname_spec=
17988 shrext_cmds=".so"
17989 postinstall_cmds=
17990 postuninstall_cmds=
17991 finish_cmds=
17992 finish_eval=
17993 shlibpath_var=
17994 shlibpath_overrides_runpath=unknown
17995 version_type=none
17996 dynamic_linker="$host_os ld.so"
17997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17998 need_lib_prefix=unknown
17999 hardcode_into_libs=no
18000
18001 # when you set need_version to no, make sure it does not cause -set_version
18002 # flags to be left without arguments
18003 need_version=unknown
18004
18005 case $host_os in
18006 aix3*)
18007 version_type=linux
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18009 shlibpath_var=LIBPATH
18010
18011 # AIX 3 has no versioning support, so we append a major version to the name.
18012 soname_spec='${libname}${release}${shared_ext}$major'
18013 ;;
18014
18015 aix[4-9]*)
18016 version_type=linux
18017 need_lib_prefix=no
18018 need_version=no
18019 hardcode_into_libs=yes
18020 if test "$host_cpu" = ia64; then
18021 # AIX 5 supports IA64
18022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 else
18025 # With GCC up to 2.95.x, collect2 would create an import file
18026 # for dependence libraries. The import file would start with
18027 # the line `#! .'. This would cause the generated library to
18028 # depend on `.', always an invalid library. This was fixed in
18029 # development snapshots of GCC prior to 3.0.
18030 case $host_os in
18031 aix4 | aix4.[01] | aix4.[01].*)
18032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18033 echo ' yes '
18034 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18035 :
18036 else
18037 can_build_shared=no
18038 fi
18039 ;;
18040 esac
18041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18042 # soname into executable. Probably we can add versioning support to
18043 # collect2, so additional links can be useful in future.
18044 if test "$aix_use_runtimelinking" = yes; then
18045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18046 # instead of lib<name>.a to let people know that these are not
18047 # typical AIX shared libraries.
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049 else
18050 # We preserve .a as extension for shared libraries through AIX4.2
18051 # and later when we are not doing run time linking.
18052 library_names_spec='${libname}${release}.a $libname.a'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 fi
18055 shlibpath_var=LIBPATH
18056 fi
18057 ;;
18058
18059 amigaos*)
18060 case $host_cpu in
18061 powerpc)
18062 # Since July 2007 AmigaOS4 officially supports .so libraries.
18063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 ;;
18066 m68k)
18067 library_names_spec='$libname.ixlibrary $libname.a'
18068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18069 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'
18070 ;;
18071 esac
18072 ;;
18073
18074 beos*)
18075 library_names_spec='${libname}${shared_ext}'
18076 dynamic_linker="$host_os ld.so"
18077 shlibpath_var=LIBRARY_PATH
18078 ;;
18079
18080 bsdi[45]*)
18081 version_type=linux
18082 need_version=no
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18089 # the default ld.so.conf also contains /usr/contrib/lib and
18090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18091 # libtool to hard-code these into programs
18092 ;;
18093
18094 cygwin* | mingw* | pw32* | cegcc*)
18095 version_type=windows
18096 shrext_cmds=".dll"
18097 need_version=no
18098 need_lib_prefix=no
18099
18100 case $GCC,$host_os in
18101 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18102 library_names_spec='$libname.dll.a'
18103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18104 postinstall_cmds='base_file=`basename \${file}`~
18105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18106 dldir=$destdir/`dirname \$dlpath`~
18107 test -d \$dldir || mkdir -p \$dldir~
18108 $install_prog $dir/$dlname \$dldir/$dlname~
18109 chmod a+x \$dldir/$dlname~
18110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18112 fi'
18113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18114 dlpath=$dir/\$dldll~
18115 $RM \$dlpath'
18116 shlibpath_overrides_runpath=yes
18117
18118 case $host_os in
18119 cygwin*)
18120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18122
18123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18124 ;;
18125 mingw* | cegcc*)
18126 # MinGW DLLs use traditional 'lib' prefix
18127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18128 ;;
18129 pw32*)
18130 # pw32 DLLs use 'pw' prefix rather than 'lib'
18131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18132 ;;
18133 esac
18134 ;;
18135
18136 *)
18137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18138 ;;
18139 esac
18140 dynamic_linker='Win32 ld.exe'
18141 # FIXME: first we should search . and the directory the executable is in
18142 shlibpath_var=PATH
18143 ;;
18144
18145 darwin* | rhapsody*)
18146 dynamic_linker="$host_os dyld"
18147 version_type=darwin
18148 need_lib_prefix=no
18149 need_version=no
18150 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18151 soname_spec='${libname}${release}${major}$shared_ext'
18152 shlibpath_overrides_runpath=yes
18153 shlibpath_var=DYLD_LIBRARY_PATH
18154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18155
18156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18158 ;;
18159
18160 dgux*)
18161 version_type=linux
18162 need_lib_prefix=no
18163 need_version=no
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 ;;
18168
18169 freebsd* | dragonfly*)
18170 # DragonFly does not have aout. When/if they implement a new
18171 # versioning mechanism, adjust this.
18172 if test -x /usr/bin/objformat; then
18173 objformat=`/usr/bin/objformat`
18174 else
18175 case $host_os in
18176 freebsd[23].*) objformat=aout ;;
18177 *) objformat=elf ;;
18178 esac
18179 fi
18180 version_type=freebsd-$objformat
18181 case $version_type in
18182 freebsd-elf*)
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18184 need_version=no
18185 need_lib_prefix=no
18186 ;;
18187 freebsd-*)
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18189 need_version=yes
18190 ;;
18191 esac
18192 shlibpath_var=LD_LIBRARY_PATH
18193 case $host_os in
18194 freebsd2.*)
18195 shlibpath_overrides_runpath=yes
18196 ;;
18197 freebsd3.[01]* | freebsdelf3.[01]*)
18198 shlibpath_overrides_runpath=yes
18199 hardcode_into_libs=yes
18200 ;;
18201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18203 shlibpath_overrides_runpath=no
18204 hardcode_into_libs=yes
18205 ;;
18206 *) # from 4.6 on, and DragonFly
18207 shlibpath_overrides_runpath=yes
18208 hardcode_into_libs=yes
18209 ;;
18210 esac
18211 ;;
18212
18213 gnu*)
18214 version_type=linux
18215 need_lib_prefix=no
18216 need_version=no
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 hardcode_into_libs=yes
18221 ;;
18222
18223 haiku*)
18224 version_type=linux
18225 need_lib_prefix=no
18226 need_version=no
18227 dynamic_linker="$host_os runtime_loader"
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18233 hardcode_into_libs=yes
18234 ;;
18235
18236 hpux9* | hpux10* | hpux11*)
18237 # Give a soname corresponding to the major version so that dld.sl refuses to
18238 # link against other versions.
18239 version_type=sunos
18240 need_lib_prefix=no
18241 need_version=no
18242 case $host_cpu in
18243 ia64*)
18244 shrext_cmds='.so'
18245 hardcode_into_libs=yes
18246 dynamic_linker="$host_os dld.so"
18247 shlibpath_var=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 if test "X$HPUX_IA64_MODE" = X32; then
18252 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18253 else
18254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18255 fi
18256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18257 ;;
18258 hppa*64*)
18259 shrext_cmds='.sl'
18260 hardcode_into_libs=yes
18261 dynamic_linker="$host_os dld.sl"
18262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18268 ;;
18269 *)
18270 shrext_cmds='.sl'
18271 dynamic_linker="$host_os dld.sl"
18272 shlibpath_var=SHLIB_PATH
18273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec='${libname}${release}${shared_ext}$major'
18276 ;;
18277 esac
18278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18279 postinstall_cmds='chmod 555 $lib'
18280 # or fails outright, so override atomically:
18281 install_override_mode=555
18282 ;;
18283
18284 interix[3-9]*)
18285 version_type=linux
18286 need_lib_prefix=no
18287 need_version=no
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 shlibpath_overrides_runpath=no
18293 hardcode_into_libs=yes
18294 ;;
18295
18296 irix5* | irix6* | nonstopux*)
18297 case $host_os in
18298 nonstopux*) version_type=nonstopux ;;
18299 *)
18300 if test "$lt_cv_prog_gnu_ld" = yes; then
18301 version_type=linux
18302 else
18303 version_type=irix
18304 fi ;;
18305 esac
18306 need_lib_prefix=no
18307 need_version=no
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18310 case $host_os in
18311 irix5* | nonstopux*)
18312 libsuff= shlibsuff=
18313 ;;
18314 *)
18315 case $LD in # libtool.m4 will add one of these switches to LD
18316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18317 libsuff= shlibsuff= libmagic=32-bit;;
18318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18319 libsuff=32 shlibsuff=N32 libmagic=N32;;
18320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18322 *) libsuff= shlibsuff= libmagic=never-match;;
18323 esac
18324 ;;
18325 esac
18326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18330 hardcode_into_libs=yes
18331 ;;
18332
18333 # No shared lib support for Linux oldld, aout, or coff.
18334 linux*oldld* | linux*aout* | linux*coff*)
18335 dynamic_linker=no
18336 ;;
18337
18338 # This must be Linux ELF.
18339
18340 # uclinux* changes (here and below) have been submitted to the libtool
18341 # project, but have not yet been accepted: they are GCC-local changes
18342 # for the time being. (See
18343 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18344 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18345 version_type=linux
18346 need_lib_prefix=no
18347 need_version=no
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=no
18353
18354 # Some binutils ld are patched to set DT_RUNPATH
18355 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 lt_cv_shlibpath_overrides_runpath=no
18359 save_LDFLAGS=$LDFLAGS
18360 save_libdir=$libdir
18361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365
18366 int
18367 main ()
18368 {
18369
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18376 lt_cv_shlibpath_overrides_runpath=yes
18377 fi
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LDFLAGS=$save_LDFLAGS
18382 libdir=$save_libdir
18383
18384 fi
18385
18386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18387
18388 # This implies no fast_install, which is unacceptable.
18389 # Some rework will be needed to allow for fast_install
18390 # before this can be enabled.
18391 hardcode_into_libs=yes
18392
18393 # Append ld.so.conf contents to the search path
18394 if test -f /etc/ld.so.conf; then
18395 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' ' '`
18396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18397 fi
18398
18399 # We used to test for /lib/ld.so.1 and disable shared libraries on
18400 # powerpc, because MkLinux only supported shared libraries with the
18401 # GNU dynamic linker. Since this was broken with cross compilers,
18402 # most powerpc-linux boxes support dynamic linking these days and
18403 # people can always --disable-shared, the test was removed, and we
18404 # assume the GNU/Linux dynamic linker is in use.
18405 dynamic_linker='GNU/Linux ld.so'
18406 ;;
18407
18408 netbsd*)
18409 version_type=sunos
18410 need_lib_prefix=no
18411 need_version=no
18412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18415 dynamic_linker='NetBSD (a.out) ld.so'
18416 else
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 dynamic_linker='NetBSD ld.elf_so'
18420 fi
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes
18423 hardcode_into_libs=yes
18424 ;;
18425
18426 newsos6)
18427 version_type=linux
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 shlibpath_overrides_runpath=yes
18431 ;;
18432
18433 *nto* | *qnx*)
18434 version_type=qnx
18435 need_lib_prefix=no
18436 need_version=no
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=no
18441 hardcode_into_libs=yes
18442 dynamic_linker='ldqnx.so'
18443 ;;
18444
18445 openbsd*)
18446 version_type=sunos
18447 sys_lib_dlsearch_path_spec="/usr/lib"
18448 need_lib_prefix=no
18449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18450 case $host_os in
18451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18452 *) need_version=no ;;
18453 esac
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18458 case $host_os in
18459 openbsd2.[89] | openbsd2.[89].*)
18460 shlibpath_overrides_runpath=no
18461 ;;
18462 *)
18463 shlibpath_overrides_runpath=yes
18464 ;;
18465 esac
18466 else
18467 shlibpath_overrides_runpath=yes
18468 fi
18469 ;;
18470
18471 os2*)
18472 libname_spec='$name'
18473 shrext_cmds=".dll"
18474 need_lib_prefix=no
18475 library_names_spec='$libname${shared_ext} $libname.a'
18476 dynamic_linker='OS/2 ld.exe'
18477 shlibpath_var=LIBPATH
18478 ;;
18479
18480 osf3* | osf4* | osf5*)
18481 version_type=osf
18482 need_lib_prefix=no
18483 need_version=no
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486 shlibpath_var=LD_LIBRARY_PATH
18487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18489 ;;
18490
18491 rdos*)
18492 dynamic_linker=no
18493 ;;
18494
18495 solaris*)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=yes
18503 hardcode_into_libs=yes
18504 # ldd complains unless libraries are executable
18505 postinstall_cmds='chmod +x $lib'
18506 ;;
18507
18508 sunos4*)
18509 version_type=sunos
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=yes
18514 if test "$with_gnu_ld" = yes; then
18515 need_lib_prefix=no
18516 fi
18517 need_version=yes
18518 ;;
18519
18520 sysv4 | sysv4.3*)
18521 version_type=linux
18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 soname_spec='${libname}${release}${shared_ext}$major'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 case $host_vendor in
18526 sni)
18527 shlibpath_overrides_runpath=no
18528 need_lib_prefix=no
18529 runpath_var=LD_RUN_PATH
18530 ;;
18531 siemens)
18532 need_lib_prefix=no
18533 ;;
18534 motorola)
18535 need_lib_prefix=no
18536 need_version=no
18537 shlibpath_overrides_runpath=no
18538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18539 ;;
18540 esac
18541 ;;
18542
18543 sysv4*MP*)
18544 if test -d /usr/nec ;then
18545 version_type=linux
18546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18547 soname_spec='$libname${shared_ext}.$major'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 fi
18550 ;;
18551
18552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18553 version_type=freebsd-elf
18554 need_lib_prefix=no
18555 need_version=no
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 shlibpath_overrides_runpath=yes
18560 hardcode_into_libs=yes
18561 if test "$with_gnu_ld" = yes; then
18562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18563 else
18564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18565 case $host_os in
18566 sco3.2v5*)
18567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18568 ;;
18569 esac
18570 fi
18571 sys_lib_dlsearch_path_spec='/usr/lib'
18572 ;;
18573
18574 tpf*)
18575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18576 version_type=linux
18577 need_lib_prefix=no
18578 need_version=no
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580 shlibpath_var=LD_LIBRARY_PATH
18581 shlibpath_overrides_runpath=no
18582 hardcode_into_libs=yes
18583 ;;
18584
18585 uts4*)
18586 version_type=linux
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 ;;
18591
18592 *)
18593 dynamic_linker=no
18594 ;;
18595 esac
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18597 $as_echo "$dynamic_linker" >&6; }
18598 test "$dynamic_linker" = no && can_build_shared=no
18599
18600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18601 if test "$GCC" = yes; then
18602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18603 fi
18604
18605 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18607 fi
18608 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18609 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18610 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18705 hardcode_action=
18706 if test -n "$hardcode_libdir_flag_spec" ||
18707 test -n "$runpath_var" ||
18708 test "X$hardcode_automatic" = "Xyes" ; then
18709
18710 # We can hardcode non-existent directories.
18711 if test "$hardcode_direct" != no &&
18712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18713 # have to relink, otherwise we might link with an installed library
18714 # when we should be linking with a yet-to-be-installed one
18715 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18716 test "$hardcode_minus_L" != no; then
18717 # Linking always hardcodes the temporary library directory.
18718 hardcode_action=relink
18719 else
18720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18721 hardcode_action=immediate
18722 fi
18723 else
18724 # We cannot hardcode anything, or else we can only hardcode existing
18725 # directories.
18726 hardcode_action=unsupported
18727 fi
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18729 $as_echo "$hardcode_action" >&6; }
18730
18731 if test "$hardcode_action" = relink ||
18732 test "$inherit_rpath" = yes; then
18733 # Fast installation is not supported
18734 enable_fast_install=no
18735 elif test "$shlibpath_overrides_runpath" = yes ||
18736 test "$enable_shared" = no; then
18737 # Fast installation is not necessary
18738 enable_fast_install=needless
18739 fi
18740
18741
18742
18743
18744
18745
18746 if test "x$enable_dlopen" != xyes; then
18747 enable_dlopen=unknown
18748 enable_dlopen_self=unknown
18749 enable_dlopen_self_static=unknown
18750 else
18751 lt_cv_dlopen=no
18752 lt_cv_dlopen_libs=
18753
18754 case $host_os in
18755 beos*)
18756 lt_cv_dlopen="load_add_on"
18757 lt_cv_dlopen_libs=
18758 lt_cv_dlopen_self=yes
18759 ;;
18760
18761 mingw* | pw32* | cegcc*)
18762 lt_cv_dlopen="LoadLibrary"
18763 lt_cv_dlopen_libs=
18764 ;;
18765
18766 cygwin*)
18767 lt_cv_dlopen="dlopen"
18768 lt_cv_dlopen_libs=
18769 ;;
18770
18771 darwin*)
18772 # if libdl is installed we need to link against it
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18775 if ${ac_cv_lib_dl_dlopen+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 ac_check_lib_save_LIBS=$LIBS
18779 LIBS="-ldl $LIBS"
18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18782
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786 #ifdef __cplusplus
18787 extern "C"
18788 #endif
18789 char dlopen ();
18790 int
18791 main ()
18792 {
18793 return dlopen ();
18794 ;
18795 return 0;
18796 }
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 ac_cv_lib_dl_dlopen=yes
18800 else
18801 ac_cv_lib_dl_dlopen=no
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18809 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18811 else
18812
18813 lt_cv_dlopen="dyld"
18814 lt_cv_dlopen_libs=
18815 lt_cv_dlopen_self=yes
18816
18817 fi
18818
18819 ;;
18820
18821 *)
18822 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18823 if test "x$ac_cv_func_shl_load" = xyes; then :
18824 lt_cv_dlopen="shl_load"
18825 else
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18827 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18828 if ${ac_cv_lib_dld_shl_load+:} false; then :
18829 $as_echo_n "(cached) " >&6
18830 else
18831 ac_check_lib_save_LIBS=$LIBS
18832 LIBS="-ldld $LIBS"
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 char shl_load ();
18843 int
18844 main ()
18845 {
18846 return shl_load ();
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 if ac_fn_c_try_link "$LINENO"; then :
18852 ac_cv_lib_dld_shl_load=yes
18853 else
18854 ac_cv_lib_dld_shl_load=no
18855 fi
18856 rm -f core conftest.err conftest.$ac_objext \
18857 conftest$ac_exeext conftest.$ac_ext
18858 LIBS=$ac_check_lib_save_LIBS
18859 fi
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18861 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18862 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18863 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18864 else
18865 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18866 if test "x$ac_cv_func_dlopen" = xyes; then :
18867 lt_cv_dlopen="dlopen"
18868 else
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18871 if ${ac_cv_lib_dl_dlopen+:} false; then :
18872 $as_echo_n "(cached) " >&6
18873 else
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-ldl $LIBS"
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char dlopen ();
18886 int
18887 main ()
18888 {
18889 return dlopen ();
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18895 ac_cv_lib_dl_dlopen=yes
18896 else
18897 ac_cv_lib_dl_dlopen=no
18898 fi
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18902 fi
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18905 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18907 else
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18909 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18910 if ${ac_cv_lib_svld_dlopen+:} false; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lsvld $LIBS"
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921 #ifdef __cplusplus
18922 extern "C"
18923 #endif
18924 char dlopen ();
18925 int
18926 main ()
18927 {
18928 return dlopen ();
18929 ;
18930 return 0;
18931 }
18932 _ACEOF
18933 if ac_fn_c_try_link "$LINENO"; then :
18934 ac_cv_lib_svld_dlopen=yes
18935 else
18936 ac_cv_lib_svld_dlopen=no
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18943 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18944 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18946 else
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18948 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18949 if ${ac_cv_lib_dld_dld_link+:} false; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-ldld $LIBS"
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char dld_link ();
18964 int
18965 main ()
18966 {
18967 return dld_link ();
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 if ac_fn_c_try_link "$LINENO"; then :
18973 ac_cv_lib_dld_dld_link=yes
18974 else
18975 ac_cv_lib_dld_dld_link=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18982 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18983 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18984 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18985 fi
18986
18987
18988 fi
18989
18990
18991 fi
18992
18993
18994 fi
18995
18996
18997 fi
18998
18999
19000 fi
19001
19002 ;;
19003 esac
19004
19005 if test "x$lt_cv_dlopen" != xno; then
19006 enable_dlopen=yes
19007 else
19008 enable_dlopen=no
19009 fi
19010
19011 case $lt_cv_dlopen in
19012 dlopen)
19013 save_CPPFLAGS="$CPPFLAGS"
19014 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19015
19016 save_LDFLAGS="$LDFLAGS"
19017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19018
19019 save_LIBS="$LIBS"
19020 LIBS="$lt_cv_dlopen_libs $LIBS"
19021
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19023 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19024 if ${lt_cv_dlopen_self+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 if test "$cross_compiling" = yes; then :
19028 lt_cv_dlopen_self=cross
19029 else
19030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19031 lt_status=$lt_dlunknown
19032 cat > conftest.$ac_ext <<_LT_EOF
19033 #line 19033 "configure"
19034 #include "confdefs.h"
19035
19036 #if HAVE_DLFCN_H
19037 #include <dlfcn.h>
19038 #endif
19039
19040 #include <stdio.h>
19041
19042 #ifdef RTLD_GLOBAL
19043 # define LT_DLGLOBAL RTLD_GLOBAL
19044 #else
19045 # ifdef DL_GLOBAL
19046 # define LT_DLGLOBAL DL_GLOBAL
19047 # else
19048 # define LT_DLGLOBAL 0
19049 # endif
19050 #endif
19051
19052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19053 find out it does not work in some platform. */
19054 #ifndef LT_DLLAZY_OR_NOW
19055 # ifdef RTLD_LAZY
19056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19057 # else
19058 # ifdef DL_LAZY
19059 # define LT_DLLAZY_OR_NOW DL_LAZY
19060 # else
19061 # ifdef RTLD_NOW
19062 # define LT_DLLAZY_OR_NOW RTLD_NOW
19063 # else
19064 # ifdef DL_NOW
19065 # define LT_DLLAZY_OR_NOW DL_NOW
19066 # else
19067 # define LT_DLLAZY_OR_NOW 0
19068 # endif
19069 # endif
19070 # endif
19071 # endif
19072 #endif
19073
19074 /* When -fvisbility=hidden is used, assume the code has been annotated
19075 correspondingly for the symbols needed. */
19076 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19077 void fnord () __attribute__((visibility("default")));
19078 #endif
19079
19080 void fnord () { int i=42; }
19081 int main ()
19082 {
19083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19084 int status = $lt_dlunknown;
19085
19086 if (self)
19087 {
19088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19089 else
19090 {
19091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19092 else puts (dlerror ());
19093 }
19094 /* dlclose (self); */
19095 }
19096 else
19097 puts (dlerror ());
19098
19099 return status;
19100 }
19101 _LT_EOF
19102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19103 (eval $ac_link) 2>&5
19104 ac_status=$?
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19107 (./conftest; exit; ) >&5 2>/dev/null
19108 lt_status=$?
19109 case x$lt_status in
19110 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19111 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19112 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19113 esac
19114 else :
19115 # compilation failed
19116 lt_cv_dlopen_self=no
19117 fi
19118 fi
19119 rm -fr conftest*
19120
19121
19122 fi
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19124 $as_echo "$lt_cv_dlopen_self" >&6; }
19125
19126 if test "x$lt_cv_dlopen_self" = xyes; then
19127 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19129 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19130 if ${lt_cv_dlopen_self_static+:} false; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 if test "$cross_compiling" = yes; then :
19134 lt_cv_dlopen_self_static=cross
19135 else
19136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19137 lt_status=$lt_dlunknown
19138 cat > conftest.$ac_ext <<_LT_EOF
19139 #line 19139 "configure"
19140 #include "confdefs.h"
19141
19142 #if HAVE_DLFCN_H
19143 #include <dlfcn.h>
19144 #endif
19145
19146 #include <stdio.h>
19147
19148 #ifdef RTLD_GLOBAL
19149 # define LT_DLGLOBAL RTLD_GLOBAL
19150 #else
19151 # ifdef DL_GLOBAL
19152 # define LT_DLGLOBAL DL_GLOBAL
19153 # else
19154 # define LT_DLGLOBAL 0
19155 # endif
19156 #endif
19157
19158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19159 find out it does not work in some platform. */
19160 #ifndef LT_DLLAZY_OR_NOW
19161 # ifdef RTLD_LAZY
19162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19163 # else
19164 # ifdef DL_LAZY
19165 # define LT_DLLAZY_OR_NOW DL_LAZY
19166 # else
19167 # ifdef RTLD_NOW
19168 # define LT_DLLAZY_OR_NOW RTLD_NOW
19169 # else
19170 # ifdef DL_NOW
19171 # define LT_DLLAZY_OR_NOW DL_NOW
19172 # else
19173 # define LT_DLLAZY_OR_NOW 0
19174 # endif
19175 # endif
19176 # endif
19177 # endif
19178 #endif
19179
19180 /* When -fvisbility=hidden is used, assume the code has been annotated
19181 correspondingly for the symbols needed. */
19182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19183 void fnord () __attribute__((visibility("default")));
19184 #endif
19185
19186 void fnord () { int i=42; }
19187 int main ()
19188 {
19189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19190 int status = $lt_dlunknown;
19191
19192 if (self)
19193 {
19194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19195 else
19196 {
19197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19198 else puts (dlerror ());
19199 }
19200 /* dlclose (self); */
19201 }
19202 else
19203 puts (dlerror ());
19204
19205 return status;
19206 }
19207 _LT_EOF
19208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19209 (eval $ac_link) 2>&5
19210 ac_status=$?
19211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19213 (./conftest; exit; ) >&5 2>/dev/null
19214 lt_status=$?
19215 case x$lt_status in
19216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19218 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19219 esac
19220 else :
19221 # compilation failed
19222 lt_cv_dlopen_self_static=no
19223 fi
19224 fi
19225 rm -fr conftest*
19226
19227
19228 fi
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19230 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19231 fi
19232
19233 CPPFLAGS="$save_CPPFLAGS"
19234 LDFLAGS="$save_LDFLAGS"
19235 LIBS="$save_LIBS"
19236 ;;
19237 esac
19238
19239 case $lt_cv_dlopen_self in
19240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19241 *) enable_dlopen_self=unknown ;;
19242 esac
19243
19244 case $lt_cv_dlopen_self_static in
19245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19246 *) enable_dlopen_self_static=unknown ;;
19247 esac
19248 fi
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266 striplib=
19267 old_striplib=
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19269 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19270 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274 $as_echo "yes" >&6; }
19275 else
19276 # FIXME - insert some real tests, host_os isn't really good enough
19277 case $host_os in
19278 darwin*)
19279 if test -n "$STRIP" ; then
19280 striplib="$STRIP -x"
19281 old_striplib="$STRIP -S"
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19283 $as_echo "yes" >&6; }
19284 else
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19287 fi
19288 ;;
19289 *)
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19291 $as_echo "no" >&6; }
19292 ;;
19293 esac
19294 fi
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307 # Report which library types will actually be built
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19309 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19311 $as_echo "$can_build_shared" >&6; }
19312
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19314 $as_echo_n "checking whether to build shared libraries... " >&6; }
19315 test "$can_build_shared" = "no" && enable_shared=no
19316
19317 # On AIX, shared libraries and static libraries use the same namespace, and
19318 # are all built from PIC.
19319 case $host_os in
19320 aix3*)
19321 test "$enable_shared" = yes && enable_static=no
19322 if test -n "$RANLIB"; then
19323 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19324 postinstall_cmds='$RANLIB $lib'
19325 fi
19326 ;;
19327
19328 aix[4-9]*)
19329 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19330 test "$enable_shared" = yes && enable_static=no
19331 fi
19332 ;;
19333 esac
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19335 $as_echo "$enable_shared" >&6; }
19336
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19338 $as_echo_n "checking whether to build static libraries... " >&6; }
19339 # Make sure either enable_shared or enable_static is yes.
19340 test "$enable_shared" = yes || enable_static=yes
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19342 $as_echo "$enable_static" >&6; }
19343
19344
19345
19346
19347 fi
19348 ac_ext=cpp
19349 ac_cpp='$CXXCPP $CPPFLAGS'
19350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19353
19354 CC="$lt_save_CC"
19355
19356 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19357 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19358 (test "X$CXX" != "Xg++"))) ; then
19359 ac_ext=cpp
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19365 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19366 if test -z "$CXXCPP"; then
19367 if ${ac_cv_prog_CXXCPP+:} false; then :
19368 $as_echo_n "(cached) " >&6
19369 else
19370 # Double quotes because CXXCPP needs to be expanded
19371 for CXXCPP in "$CXX -E" "/lib/cpp"
19372 do
19373 ac_preproc_ok=false
19374 for ac_cxx_preproc_warn_flag in '' yes
19375 do
19376 # Use a header file that comes with gcc, so configuring glibc
19377 # with a fresh cross-compiler works.
19378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19379 # <limits.h> exists even on freestanding compilers.
19380 # On the NeXT, cc -E runs the code through the compiler's parser,
19381 # not just through cpp. "Syntax error" is here to catch this case.
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19384 #ifdef __STDC__
19385 # include <limits.h>
19386 #else
19387 # include <assert.h>
19388 #endif
19389 Syntax error
19390 _ACEOF
19391 if ac_fn_cxx_try_cpp "$LINENO"; then :
19392
19393 else
19394 # Broken: fails on valid input.
19395 continue
19396 fi
19397 rm -f conftest.err conftest.i conftest.$ac_ext
19398
19399 # OK, works on sane cases. Now check whether nonexistent headers
19400 # can be detected and how.
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 #include <ac_nonexistent.h>
19404 _ACEOF
19405 if ac_fn_cxx_try_cpp "$LINENO"; then :
19406 # Broken: success on invalid input.
19407 continue
19408 else
19409 # Passes both tests.
19410 ac_preproc_ok=:
19411 break
19412 fi
19413 rm -f conftest.err conftest.i conftest.$ac_ext
19414
19415 done
19416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19417 rm -f conftest.i conftest.err conftest.$ac_ext
19418 if $ac_preproc_ok; then :
19419 break
19420 fi
19421
19422 done
19423 ac_cv_prog_CXXCPP=$CXXCPP
19424
19425 fi
19426 CXXCPP=$ac_cv_prog_CXXCPP
19427 else
19428 ac_cv_prog_CXXCPP=$CXXCPP
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19431 $as_echo "$CXXCPP" >&6; }
19432 ac_preproc_ok=false
19433 for ac_cxx_preproc_warn_flag in '' yes
19434 do
19435 # Use a header file that comes with gcc, so configuring glibc
19436 # with a fresh cross-compiler works.
19437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19438 # <limits.h> exists even on freestanding compilers.
19439 # On the NeXT, cc -E runs the code through the compiler's parser,
19440 # not just through cpp. "Syntax error" is here to catch this case.
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443 #ifdef __STDC__
19444 # include <limits.h>
19445 #else
19446 # include <assert.h>
19447 #endif
19448 Syntax error
19449 _ACEOF
19450 if ac_fn_cxx_try_cpp "$LINENO"; then :
19451
19452 else
19453 # Broken: fails on valid input.
19454 continue
19455 fi
19456 rm -f conftest.err conftest.i conftest.$ac_ext
19457
19458 # OK, works on sane cases. Now check whether nonexistent headers
19459 # can be detected and how.
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 #include <ac_nonexistent.h>
19463 _ACEOF
19464 if ac_fn_cxx_try_cpp "$LINENO"; then :
19465 # Broken: success on invalid input.
19466 continue
19467 else
19468 # Passes both tests.
19469 ac_preproc_ok=:
19470 break
19471 fi
19472 rm -f conftest.err conftest.i conftest.$ac_ext
19473
19474 done
19475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19476 rm -f conftest.i conftest.err conftest.$ac_ext
19477 if $ac_preproc_ok; then :
19478
19479 else
19480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19482 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19483 See \`config.log' for more details" "$LINENO" 5; }
19484 fi
19485
19486 ac_ext=cpp
19487 ac_cpp='$CXXCPP $CPPFLAGS'
19488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19491
19492 else
19493 _lt_caught_CXX_error=yes
19494 fi
19495
19496 ac_ext=cpp
19497 ac_cpp='$CXXCPP $CPPFLAGS'
19498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19501
19502 archive_cmds_need_lc_CXX=no
19503 allow_undefined_flag_CXX=
19504 always_export_symbols_CXX=no
19505 archive_expsym_cmds_CXX=
19506 compiler_needs_object_CXX=no
19507 export_dynamic_flag_spec_CXX=
19508 hardcode_direct_CXX=no
19509 hardcode_direct_absolute_CXX=no
19510 hardcode_libdir_flag_spec_CXX=
19511 hardcode_libdir_flag_spec_ld_CXX=
19512 hardcode_libdir_separator_CXX=
19513 hardcode_minus_L_CXX=no
19514 hardcode_shlibpath_var_CXX=unsupported
19515 hardcode_automatic_CXX=no
19516 inherit_rpath_CXX=no
19517 module_cmds_CXX=
19518 module_expsym_cmds_CXX=
19519 link_all_deplibs_CXX=unknown
19520 old_archive_cmds_CXX=$old_archive_cmds
19521 reload_flag_CXX=$reload_flag
19522 reload_cmds_CXX=$reload_cmds
19523 no_undefined_flag_CXX=
19524 whole_archive_flag_spec_CXX=
19525 enable_shared_with_static_runtimes_CXX=no
19526
19527 # Source file extension for C++ test sources.
19528 ac_ext=cpp
19529
19530 # Object file extension for compiled C++ test sources.
19531 objext=o
19532 objext_CXX=$objext
19533
19534 # No sense in running all these tests if we already determined that
19535 # the CXX compiler isn't working. Some variables (like enable_shared)
19536 # are currently assumed to apply to all compilers on this platform,
19537 # and will be corrupted by setting them based on a non-working compiler.
19538 if test "$_lt_caught_CXX_error" != yes; then
19539 # Code to be used in simple compile tests
19540 lt_simple_compile_test_code="int some_variable = 0;"
19541
19542 # Code to be used in simple link tests
19543 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19544
19545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19546
19547
19548
19549
19550
19551
19552 # If no C compiler was specified, use CC.
19553 LTCC=${LTCC-"$CC"}
19554
19555 # If no C compiler flags were specified, use CFLAGS.
19556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19557
19558 # Allow CC to be a program name with arguments.
19559 compiler=$CC
19560
19561
19562 # save warnings/boilerplate of simple test code
19563 ac_outfile=conftest.$ac_objext
19564 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19565 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19566 _lt_compiler_boilerplate=`cat conftest.err`
19567 $RM conftest*
19568
19569 ac_outfile=conftest.$ac_objext
19570 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19571 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_linker_boilerplate=`cat conftest.err`
19573 $RM -r conftest*
19574
19575
19576 # Allow CC to be a program name with arguments.
19577 lt_save_CC=$CC
19578 lt_save_LD=$LD
19579 lt_save_GCC=$GCC
19580 GCC=$GXX
19581 lt_save_with_gnu_ld=$with_gnu_ld
19582 lt_save_path_LD=$lt_cv_path_LD
19583 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19584 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19585 else
19586 $as_unset lt_cv_prog_gnu_ld
19587 fi
19588 if test -n "${lt_cv_path_LDCXX+set}"; then
19589 lt_cv_path_LD=$lt_cv_path_LDCXX
19590 else
19591 $as_unset lt_cv_path_LD
19592 fi
19593 test -z "${LDCXX+set}" || LD=$LDCXX
19594 CC=${CXX-"c++"}
19595 compiler=$CC
19596 compiler_CXX=$CC
19597 for cc_temp in $compiler""; do
19598 case $cc_temp in
19599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19601 \-*) ;;
19602 *) break;;
19603 esac
19604 done
19605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19606
19607
19608 if test -n "$compiler"; then
19609 # We don't want -fno-exception when compiling C++ code, so set the
19610 # no_builtin_flag separately
19611 if test "$GXX" = yes; then
19612 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19613 else
19614 lt_prog_compiler_no_builtin_flag_CXX=
19615 fi
19616
19617 if test "$GXX" = yes; then
19618 # Set up default GNU C++ configuration
19619
19620
19621
19622 # Check whether --with-gnu-ld was given.
19623 if test "${with_gnu_ld+set}" = set; then :
19624 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19625 else
19626 with_gnu_ld=no
19627 fi
19628
19629 ac_prog=ld
19630 if test "$GCC" = yes; then
19631 # Check if gcc -print-prog-name=ld gives a path.
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19633 $as_echo_n "checking for ld used by $CC... " >&6; }
19634 case $host in
19635 *-*-mingw*)
19636 # gcc leaves a trailing carriage return which upsets mingw
19637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19638 *)
19639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19640 esac
19641 case $ac_prog in
19642 # Accept absolute paths.
19643 [\\/]* | ?:[\\/]*)
19644 re_direlt='/[^/][^/]*/\.\./'
19645 # Canonicalize the pathname of ld
19646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19649 done
19650 test -z "$LD" && LD="$ac_prog"
19651 ;;
19652 "")
19653 # If it fails, then pretend we aren't using GCC.
19654 ac_prog=ld
19655 ;;
19656 *)
19657 # If it is relative, then search for the first ld in PATH.
19658 with_gnu_ld=unknown
19659 ;;
19660 esac
19661 elif test "$with_gnu_ld" = yes; then
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19663 $as_echo_n "checking for GNU ld... " >&6; }
19664 else
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19666 $as_echo_n "checking for non-GNU ld... " >&6; }
19667 fi
19668 if ${lt_cv_path_LD+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 if test -z "$LD"; then
19672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19673 for ac_dir in $PATH; do
19674 IFS="$lt_save_ifs"
19675 test -z "$ac_dir" && ac_dir=.
19676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19677 lt_cv_path_LD="$ac_dir/$ac_prog"
19678 # Check to see if the program is GNU ld. I'd rather use --version,
19679 # but apparently some variants of GNU ld only accept -v.
19680 # Break only if it was the GNU/non-GNU ld that we prefer.
19681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19682 *GNU* | *'with BFD'*)
19683 test "$with_gnu_ld" != no && break
19684 ;;
19685 *)
19686 test "$with_gnu_ld" != yes && break
19687 ;;
19688 esac
19689 fi
19690 done
19691 IFS="$lt_save_ifs"
19692 else
19693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19694 fi
19695 fi
19696
19697 LD="$lt_cv_path_LD"
19698 if test -n "$LD"; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19700 $as_echo "$LD" >&6; }
19701 else
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703 $as_echo "no" >&6; }
19704 fi
19705 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19708 if ${lt_cv_prog_gnu_ld+:} false; then :
19709 $as_echo_n "(cached) " >&6
19710 else
19711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19712 case `$LD -v 2>&1 </dev/null` in
19713 *GNU* | *'with BFD'*)
19714 lt_cv_prog_gnu_ld=yes
19715 ;;
19716 *)
19717 lt_cv_prog_gnu_ld=no
19718 ;;
19719 esac
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19723 with_gnu_ld=$lt_cv_prog_gnu_ld
19724
19725
19726
19727
19728
19729
19730
19731 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19732 # archiving commands below assume that GNU ld is being used.
19733 if test "$with_gnu_ld" = yes; then
19734 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19736
19737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19739
19740 # If archive_cmds runs LD, not CC, wlarc should be empty
19741 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19742 # investigate it a little bit more. (MM)
19743 wlarc='${wl}'
19744
19745 # ancient GNU ld didn't support --whole-archive et. al.
19746 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19747 $GREP 'no-whole-archive' > /dev/null; then
19748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19749 else
19750 whole_archive_flag_spec_CXX=
19751 fi
19752 else
19753 with_gnu_ld=no
19754 wlarc=
19755
19756 # A generic and very simple default shared library creation
19757 # command for GNU C++ for the case where it uses the native
19758 # linker, instead of GNU ld. If possible, this setting should
19759 # overridden to take advantage of the native linker features on
19760 # the platform it is being used on.
19761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19762 fi
19763
19764 # Commands to make compiler produce verbose output that lists
19765 # what "hidden" libraries, object files and flags are used when
19766 # linking a shared library.
19767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19768
19769 else
19770 GXX=no
19771 with_gnu_ld=no
19772 wlarc=
19773 fi
19774
19775 # PORTME: fill in a description of your system's C++ link characteristics
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19778 ld_shlibs_CXX=yes
19779 case $host_os in
19780 aix3*)
19781 # FIXME: insert proper C++ library support
19782 ld_shlibs_CXX=no
19783 ;;
19784 aix[4-9]*)
19785 if test "$host_cpu" = ia64; then
19786 # On IA64, the linker does run time linking by default, so we don't
19787 # have to do anything special.
19788 aix_use_runtimelinking=no
19789 exp_sym_flag='-Bexport'
19790 no_entry_flag=""
19791 else
19792 aix_use_runtimelinking=no
19793
19794 # Test if we are trying to use run time linking or normal
19795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19796 # need to do runtime linking.
19797 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19798 for ld_flag in $LDFLAGS; do
19799 case $ld_flag in
19800 *-brtl*)
19801 aix_use_runtimelinking=yes
19802 break
19803 ;;
19804 esac
19805 done
19806 ;;
19807 esac
19808
19809 exp_sym_flag='-bexport'
19810 no_entry_flag='-bnoentry'
19811 fi
19812
19813 # When large executables or shared objects are built, AIX ld can
19814 # have problems creating the table of contents. If linking a library
19815 # or program results in "error TOC overflow" add -mminimal-toc to
19816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19818
19819 archive_cmds_CXX=''
19820 hardcode_direct_CXX=yes
19821 hardcode_direct_absolute_CXX=yes
19822 hardcode_libdir_separator_CXX=':'
19823 link_all_deplibs_CXX=yes
19824 file_list_spec_CXX='${wl}-f,'
19825
19826 if test "$GXX" = yes; then
19827 case $host_os in aix4.[012]|aix4.[012].*)
19828 # We only want to do this on AIX 4.2 and lower, the check
19829 # below for broken collect2 doesn't work under 4.3+
19830 collect2name=`${CC} -print-prog-name=collect2`
19831 if test -f "$collect2name" &&
19832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19833 then
19834 # We have reworked collect2
19835 :
19836 else
19837 # We have old collect2
19838 hardcode_direct_CXX=unsupported
19839 # It fails to find uninstalled libraries when the uninstalled
19840 # path is not listed in the libpath. Setting hardcode_minus_L
19841 # to unsupported forces relinking
19842 hardcode_minus_L_CXX=yes
19843 hardcode_libdir_flag_spec_CXX='-L$libdir'
19844 hardcode_libdir_separator_CXX=
19845 fi
19846 esac
19847 shared_flag='-shared'
19848 if test "$aix_use_runtimelinking" = yes; then
19849 shared_flag="$shared_flag "'${wl}-G'
19850 fi
19851 else
19852 # not using gcc
19853 if test "$host_cpu" = ia64; then
19854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19855 # chokes on -Wl,-G. The following line is correct:
19856 shared_flag='-G'
19857 else
19858 if test "$aix_use_runtimelinking" = yes; then
19859 shared_flag='${wl}-G'
19860 else
19861 shared_flag='${wl}-bM:SRE'
19862 fi
19863 fi
19864 fi
19865
19866 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19867 # It seems that -bexpall does not export symbols beginning with
19868 # underscore (_), so it is better to generate a list of symbols to
19869 # export.
19870 always_export_symbols_CXX=yes
19871 if test "$aix_use_runtimelinking" = yes; then
19872 # Warning - without using the other runtime loading flags (-brtl),
19873 # -berok will link without error, but may produce a broken library.
19874 allow_undefined_flag_CXX='-berok'
19875 # Determine the default libpath from the value encoded in an empty
19876 # executable.
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879
19880 int
19881 main ()
19882 {
19883
19884 ;
19885 return 0;
19886 }
19887 _ACEOF
19888 if ac_fn_cxx_try_link "$LINENO"; then :
19889
19890 lt_aix_libpath_sed='
19891 /Import File Strings/,/^$/ {
19892 /^0/ {
19893 s/^0 *\(.*\)$/\1/
19894 p
19895 }
19896 }'
19897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19898 # Check for a 64-bit object if we didn't find anything.
19899 if test -z "$aix_libpath"; then
19900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19901 fi
19902 fi
19903 rm -f core conftest.err conftest.$ac_objext \
19904 conftest$ac_exeext conftest.$ac_ext
19905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19906
19907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19908
19909 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"
19910 else
19911 if test "$host_cpu" = ia64; then
19912 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19913 allow_undefined_flag_CXX="-z nodefs"
19914 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"
19915 else
19916 # Determine the default libpath from the value encoded in an
19917 # empty executable.
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920
19921 int
19922 main ()
19923 {
19924
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 if ac_fn_cxx_try_link "$LINENO"; then :
19930
19931 lt_aix_libpath_sed='
19932 /Import File Strings/,/^$/ {
19933 /^0/ {
19934 s/^0 *\(.*\)$/\1/
19935 p
19936 }
19937 }'
19938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19939 # Check for a 64-bit object if we didn't find anything.
19940 if test -z "$aix_libpath"; then
19941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19942 fi
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19947
19948 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19949 # Warning - without using the other run time loading flags,
19950 # -berok will link without error, but may produce a broken library.
19951 no_undefined_flag_CXX=' ${wl}-bernotok'
19952 allow_undefined_flag_CXX=' ${wl}-berok'
19953 if test "$with_gnu_ld" = yes; then
19954 # We only use this code for GNU lds that support --whole-archive.
19955 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19956 else
19957 # Exported symbols can be pulled into shared objects from archives
19958 whole_archive_flag_spec_CXX='$convenience'
19959 fi
19960 archive_cmds_need_lc_CXX=yes
19961 # This is similar to how AIX traditionally builds its shared
19962 # libraries.
19963 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'
19964 fi
19965 fi
19966 ;;
19967
19968 beos*)
19969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19970 allow_undefined_flag_CXX=unsupported
19971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19972 # support --undefined. This deserves some investigation. FIXME
19973 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19974 else
19975 ld_shlibs_CXX=no
19976 fi
19977 ;;
19978
19979 chorus*)
19980 case $cc_basename in
19981 *)
19982 # FIXME: insert proper C++ library support
19983 ld_shlibs_CXX=no
19984 ;;
19985 esac
19986 ;;
19987
19988 cygwin* | mingw* | pw32* | cegcc*)
19989 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19990 # as there is no search path for DLLs.
19991 hardcode_libdir_flag_spec_CXX='-L$libdir'
19992 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19993 allow_undefined_flag_CXX=unsupported
19994 always_export_symbols_CXX=no
19995 enable_shared_with_static_runtimes_CXX=yes
19996
19997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19998 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'
19999 # If the export-symbols file already is a .def file (1st line
20000 # is EXPORTS), use it as is; otherwise, prepend...
20001 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20002 cp $export_symbols $output_objdir/$soname.def;
20003 else
20004 echo EXPORTS > $output_objdir/$soname.def;
20005 cat $export_symbols >> $output_objdir/$soname.def;
20006 fi~
20007 $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'
20008 else
20009 ld_shlibs_CXX=no
20010 fi
20011 ;;
20012 darwin* | rhapsody*)
20013
20014
20015 archive_cmds_need_lc_CXX=no
20016 hardcode_direct_CXX=no
20017 hardcode_automatic_CXX=yes
20018 hardcode_shlibpath_var_CXX=unsupported
20019 if test "$lt_cv_ld_force_load" = "yes"; then
20020 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\"`'
20021 else
20022 whole_archive_flag_spec_CXX=''
20023 fi
20024 link_all_deplibs_CXX=yes
20025 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20026 case $cc_basename in
20027 ifort*) _lt_dar_can_shared=yes ;;
20028 *) _lt_dar_can_shared=$GCC ;;
20029 esac
20030 if test "$_lt_dar_can_shared" = "yes"; then
20031 output_verbose_link_cmd=func_echo_all
20032 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}"
20033 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20034 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}"
20035 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}"
20036 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20037 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}"
20038 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}"
20039 fi
20040
20041 else
20042 ld_shlibs_CXX=no
20043 fi
20044
20045 ;;
20046
20047 dgux*)
20048 case $cc_basename in
20049 ec++*)
20050 # FIXME: insert proper C++ library support
20051 ld_shlibs_CXX=no
20052 ;;
20053 ghcx*)
20054 # Green Hills C++ Compiler
20055 # FIXME: insert proper C++ library support
20056 ld_shlibs_CXX=no
20057 ;;
20058 *)
20059 # FIXME: insert proper C++ library support
20060 ld_shlibs_CXX=no
20061 ;;
20062 esac
20063 ;;
20064
20065 freebsd2.*)
20066 # C++ shared libraries reported to be fairly broken before
20067 # switch to ELF
20068 ld_shlibs_CXX=no
20069 ;;
20070
20071 freebsd-elf*)
20072 archive_cmds_need_lc_CXX=no
20073 ;;
20074
20075 freebsd* | dragonfly*)
20076 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20077 # conventions
20078 ld_shlibs_CXX=yes
20079 ;;
20080
20081 gnu*)
20082 ;;
20083
20084 haiku*)
20085 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20086 link_all_deplibs_CXX=yes
20087 ;;
20088
20089 hpux9*)
20090 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20091 hardcode_libdir_separator_CXX=:
20092 export_dynamic_flag_spec_CXX='${wl}-E'
20093 hardcode_direct_CXX=yes
20094 hardcode_minus_L_CXX=yes # Not in the search PATH,
20095 # but as the default
20096 # location of the library.
20097
20098 case $cc_basename in
20099 CC*)
20100 # FIXME: insert proper C++ library support
20101 ld_shlibs_CXX=no
20102 ;;
20103 aCC*)
20104 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'
20105 # Commands to make compiler produce verbose output that lists
20106 # what "hidden" libraries, object files and flags are used when
20107 # linking a shared library.
20108 #
20109 # There doesn't appear to be a way to prevent this compiler from
20110 # explicitly linking system object files so we need to strip them
20111 # from the output so that they don't get included in the library
20112 # dependencies.
20113 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"'
20114 ;;
20115 *)
20116 if test "$GXX" = yes; then
20117 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'
20118 else
20119 # FIXME: insert proper C++ library support
20120 ld_shlibs_CXX=no
20121 fi
20122 ;;
20123 esac
20124 ;;
20125
20126 hpux10*|hpux11*)
20127 if test $with_gnu_ld = no; then
20128 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20129 hardcode_libdir_separator_CXX=:
20130
20131 case $host_cpu in
20132 hppa*64*|ia64*)
20133 ;;
20134 *)
20135 export_dynamic_flag_spec_CXX='${wl}-E'
20136 ;;
20137 esac
20138 fi
20139 case $host_cpu in
20140 hppa*64*|ia64*)
20141 hardcode_direct_CXX=no
20142 hardcode_shlibpath_var_CXX=no
20143 ;;
20144 *)
20145 hardcode_direct_CXX=yes
20146 hardcode_direct_absolute_CXX=yes
20147 hardcode_minus_L_CXX=yes # Not in the search PATH,
20148 # but as the default
20149 # location of the library.
20150 ;;
20151 esac
20152
20153 case $cc_basename in
20154 CC*)
20155 # FIXME: insert proper C++ library support
20156 ld_shlibs_CXX=no
20157 ;;
20158 aCC*)
20159 case $host_cpu in
20160 hppa*64*)
20161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20162 ;;
20163 ia64*)
20164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20165 ;;
20166 *)
20167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20168 ;;
20169 esac
20170 # Commands to make compiler produce verbose output that lists
20171 # what "hidden" libraries, object files and flags are used when
20172 # linking a shared library.
20173 #
20174 # There doesn't appear to be a way to prevent this compiler from
20175 # explicitly linking system object files so we need to strip them
20176 # from the output so that they don't get included in the library
20177 # dependencies.
20178 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"'
20179 ;;
20180 *)
20181 if test "$GXX" = yes; then
20182 if test $with_gnu_ld = no; then
20183 case $host_cpu in
20184 hppa*64*)
20185 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20186 ;;
20187 ia64*)
20188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20189 ;;
20190 *)
20191 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'
20192 ;;
20193 esac
20194 fi
20195 else
20196 # FIXME: insert proper C++ library support
20197 ld_shlibs_CXX=no
20198 fi
20199 ;;
20200 esac
20201 ;;
20202
20203 interix[3-9]*)
20204 hardcode_direct_CXX=no
20205 hardcode_shlibpath_var_CXX=no
20206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20207 export_dynamic_flag_spec_CXX='${wl}-E'
20208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20209 # Instead, shared libraries are loaded at an image base (0x10000000 by
20210 # default) and relocated if they conflict, which is a slow very memory
20211 # consuming and fragmenting process. To avoid this, we pick a random,
20212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20214 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'
20215 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'
20216 ;;
20217 irix5* | irix6*)
20218 case $cc_basename in
20219 CC*)
20220 # SGI C++
20221 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'
20222
20223 # Archives containing C++ object files must be created using
20224 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20225 # necessary to make sure instantiated templates are included
20226 # in the archive.
20227 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20228 ;;
20229 *)
20230 if test "$GXX" = yes; then
20231 if test "$with_gnu_ld" = no; then
20232 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'
20233 else
20234 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'
20235 fi
20236 fi
20237 link_all_deplibs_CXX=yes
20238 ;;
20239 esac
20240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20241 hardcode_libdir_separator_CXX=:
20242 inherit_rpath_CXX=yes
20243 ;;
20244
20245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20246 case $cc_basename in
20247 KCC*)
20248 # Kuck and Associates, Inc. (KAI) C++ Compiler
20249
20250 # KCC will only create a shared library if the output file
20251 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20252 # to its proper name (with version) after linking.
20253 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'
20254 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'
20255 # Commands to make compiler produce verbose output that lists
20256 # what "hidden" libraries, object files and flags are used when
20257 # linking a shared library.
20258 #
20259 # There doesn't appear to be a way to prevent this compiler from
20260 # explicitly linking system object files so we need to strip them
20261 # from the output so that they don't get included in the library
20262 # dependencies.
20263 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"'
20264
20265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20267
20268 # Archives containing C++ object files must be created using
20269 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20270 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20271 ;;
20272 icpc* | ecpc* )
20273 # Intel C++
20274 with_gnu_ld=yes
20275 # version 8.0 and above of icpc choke on multiply defined symbols
20276 # if we add $predep_objects and $postdep_objects, however 7.1 and
20277 # earlier do not add the objects themselves.
20278 case `$CC -V 2>&1` in
20279 *"Version 7."*)
20280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20281 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'
20282 ;;
20283 *) # Version 8.0 or newer
20284 tmp_idyn=
20285 case $host_cpu in
20286 ia64*) tmp_idyn=' -i_dynamic';;
20287 esac
20288 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20289 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'
20290 ;;
20291 esac
20292 archive_cmds_need_lc_CXX=no
20293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20296 ;;
20297 pgCC* | pgcpp*)
20298 # Portland Group C++ compiler
20299 case `$CC -V` in
20300 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20301 prelink_cmds_CXX='tpldir=Template.dir~
20302 rm -rf $tpldir~
20303 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20304 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20305 old_archive_cmds_CXX='tpldir=Template.dir~
20306 rm -rf $tpldir~
20307 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20308 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20309 $RANLIB $oldlib'
20310 archive_cmds_CXX='tpldir=Template.dir~
20311 rm -rf $tpldir~
20312 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20313 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20314 archive_expsym_cmds_CXX='tpldir=Template.dir~
20315 rm -rf $tpldir~
20316 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20317 $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'
20318 ;;
20319 *) # Version 6 and above use weak symbols
20320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20321 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'
20322 ;;
20323 esac
20324
20325 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20327 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'
20328 ;;
20329 cxx*)
20330 # Compaq C++
20331 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20332 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'
20333
20334 runpath_var=LD_RUN_PATH
20335 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20336 hardcode_libdir_separator_CXX=:
20337
20338 # Commands to make compiler produce verbose output that lists
20339 # what "hidden" libraries, object files and flags are used when
20340 # linking a shared library.
20341 #
20342 # There doesn't appear to be a way to prevent this compiler from
20343 # explicitly linking system object files so we need to strip them
20344 # from the output so that they don't get included in the library
20345 # dependencies.
20346 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'
20347 ;;
20348 xl* | mpixl* | bgxl*)
20349 # IBM XL 8.0 on PPC, with GNU ld
20350 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20352 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20353 if test "x$supports_anon_versioning" = xyes; then
20354 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20356 echo "local: *; };" >> $output_objdir/$libname.ver~
20357 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20358 fi
20359 ;;
20360 *)
20361 case `$CC -V 2>&1 | sed 5q` in
20362 *Sun\ C*)
20363 # Sun C++ 5.9
20364 no_undefined_flag_CXX=' -zdefs'
20365 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20366 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'
20367 hardcode_libdir_flag_spec_CXX='-R$libdir'
20368 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'
20369 compiler_needs_object_CXX=yes
20370
20371 # Not sure whether something based on
20372 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20373 # would be better.
20374 output_verbose_link_cmd='func_echo_all'
20375
20376 # Archives containing C++ object files must be created using
20377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20378 # necessary to make sure instantiated templates are included
20379 # in the archive.
20380 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20381 ;;
20382 esac
20383 ;;
20384 esac
20385 ;;
20386
20387 lynxos*)
20388 # FIXME: insert proper C++ library support
20389 ld_shlibs_CXX=no
20390 ;;
20391
20392 m88k*)
20393 # FIXME: insert proper C++ library support
20394 ld_shlibs_CXX=no
20395 ;;
20396
20397 mvs*)
20398 case $cc_basename in
20399 cxx*)
20400 # FIXME: insert proper C++ library support
20401 ld_shlibs_CXX=no
20402 ;;
20403 *)
20404 # FIXME: insert proper C++ library support
20405 ld_shlibs_CXX=no
20406 ;;
20407 esac
20408 ;;
20409
20410 netbsd*)
20411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20412 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20413 wlarc=
20414 hardcode_libdir_flag_spec_CXX='-R$libdir'
20415 hardcode_direct_CXX=yes
20416 hardcode_shlibpath_var_CXX=no
20417 fi
20418 # Workaround some broken pre-1.5 toolchains
20419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20420 ;;
20421
20422 *nto* | *qnx*)
20423 ld_shlibs_CXX=yes
20424 ;;
20425
20426 openbsd2*)
20427 # C++ shared libraries are fairly broken
20428 ld_shlibs_CXX=no
20429 ;;
20430
20431 openbsd*)
20432 if test -f /usr/libexec/ld.so; then
20433 hardcode_direct_CXX=yes
20434 hardcode_shlibpath_var_CXX=no
20435 hardcode_direct_absolute_CXX=yes
20436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20439 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20440 export_dynamic_flag_spec_CXX='${wl}-E'
20441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20442 fi
20443 output_verbose_link_cmd=func_echo_all
20444 else
20445 ld_shlibs_CXX=no
20446 fi
20447 ;;
20448
20449 osf3* | osf4* | osf5*)
20450 case $cc_basename in
20451 KCC*)
20452 # Kuck and Associates, Inc. (KAI) C++ Compiler
20453
20454 # KCC will only create a shared library if the output file
20455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20456 # to its proper name (with version) after linking.
20457 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'
20458
20459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20460 hardcode_libdir_separator_CXX=:
20461
20462 # Archives containing C++ object files must be created using
20463 # the KAI C++ compiler.
20464 case $host in
20465 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20466 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20467 esac
20468 ;;
20469 RCC*)
20470 # Rational C++ 2.4.1
20471 # FIXME: insert proper C++ library support
20472 ld_shlibs_CXX=no
20473 ;;
20474 cxx*)
20475 case $host in
20476 osf3*)
20477 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20478 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'
20479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20480 ;;
20481 *)
20482 allow_undefined_flag_CXX=' -expect_unresolved \*'
20483 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'
20484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20485 echo "-hidden">> $lib.exp~
20486 $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~
20487 $RM $lib.exp'
20488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20489 ;;
20490 esac
20491
20492 hardcode_libdir_separator_CXX=:
20493
20494 # Commands to make compiler produce verbose output that lists
20495 # what "hidden" libraries, object files and flags are used when
20496 # linking a shared library.
20497 #
20498 # There doesn't appear to be a way to prevent this compiler from
20499 # explicitly linking system object files so we need to strip them
20500 # from the output so that they don't get included in the library
20501 # dependencies.
20502 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"'
20503 ;;
20504 *)
20505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20507 case $host in
20508 osf3*)
20509 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'
20510 ;;
20511 *)
20512 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'
20513 ;;
20514 esac
20515
20516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20517 hardcode_libdir_separator_CXX=:
20518
20519 # Commands to make compiler produce verbose output that lists
20520 # what "hidden" libraries, object files and flags are used when
20521 # linking a shared library.
20522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20523
20524 else
20525 # FIXME: insert proper C++ library support
20526 ld_shlibs_CXX=no
20527 fi
20528 ;;
20529 esac
20530 ;;
20531
20532 psos*)
20533 # FIXME: insert proper C++ library support
20534 ld_shlibs_CXX=no
20535 ;;
20536
20537 sunos4*)
20538 case $cc_basename in
20539 CC*)
20540 # Sun C++ 4.x
20541 # FIXME: insert proper C++ library support
20542 ld_shlibs_CXX=no
20543 ;;
20544 lcc*)
20545 # Lucid
20546 # FIXME: insert proper C++ library support
20547 ld_shlibs_CXX=no
20548 ;;
20549 *)
20550 # FIXME: insert proper C++ library support
20551 ld_shlibs_CXX=no
20552 ;;
20553 esac
20554 ;;
20555
20556 solaris*)
20557 case $cc_basename in
20558 CC*)
20559 # Sun C++ 4.2, 5.x and Centerline C++
20560 archive_cmds_need_lc_CXX=yes
20561 no_undefined_flag_CXX=' -zdefs'
20562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20563 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20564 $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'
20565
20566 hardcode_libdir_flag_spec_CXX='-R$libdir'
20567 hardcode_shlibpath_var_CXX=no
20568 case $host_os in
20569 solaris2.[0-5] | solaris2.[0-5].*) ;;
20570 *)
20571 # The compiler driver will combine and reorder linker options,
20572 # but understands `-z linker_flag'.
20573 # Supported since Solaris 2.6 (maybe 2.5.1?)
20574 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20575 ;;
20576 esac
20577 link_all_deplibs_CXX=yes
20578
20579 output_verbose_link_cmd='func_echo_all'
20580
20581 # Archives containing C++ object files must be created using
20582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20583 # necessary to make sure instantiated templates are included
20584 # in the archive.
20585 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20586 ;;
20587 gcx*)
20588 # Green Hills C++ Compiler
20589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20590
20591 # The C++ compiler must be used to create the archive.
20592 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20593 ;;
20594 *)
20595 # GNU C++ compiler with Solaris linker
20596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20597 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20598 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20599 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20600 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20601 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20602
20603 # Commands to make compiler produce verbose output that lists
20604 # what "hidden" libraries, object files and flags are used when
20605 # linking a shared library.
20606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20607 else
20608 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20609 # platform.
20610 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20611 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20612 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20613
20614 # Commands to make compiler produce verbose output that lists
20615 # what "hidden" libraries, object files and flags are used when
20616 # linking a shared library.
20617 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20618 fi
20619
20620 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20621 case $host_os in
20622 solaris2.[0-5] | solaris2.[0-5].*) ;;
20623 *)
20624 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20625 ;;
20626 esac
20627 fi
20628 ;;
20629 esac
20630 ;;
20631
20632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20633 no_undefined_flag_CXX='${wl}-z,text'
20634 archive_cmds_need_lc_CXX=no
20635 hardcode_shlibpath_var_CXX=no
20636 runpath_var='LD_RUN_PATH'
20637
20638 case $cc_basename in
20639 CC*)
20640 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20641 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20642 ;;
20643 *)
20644 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20645 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20646 ;;
20647 esac
20648 ;;
20649
20650 sysv5* | sco3.2v5* | sco5v6*)
20651 # Note: We can NOT use -z defs as we might desire, because we do not
20652 # link with -lc, and that would cause any symbols used from libc to
20653 # always be unresolved, which means just about no library would
20654 # ever link correctly. If we're not using GNU ld we use -z text
20655 # though, which does catch some bad symbols but isn't as heavy-handed
20656 # as -z defs.
20657 no_undefined_flag_CXX='${wl}-z,text'
20658 allow_undefined_flag_CXX='${wl}-z,nodefs'
20659 archive_cmds_need_lc_CXX=no
20660 hardcode_shlibpath_var_CXX=no
20661 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20662 hardcode_libdir_separator_CXX=':'
20663 link_all_deplibs_CXX=yes
20664 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20665 runpath_var='LD_RUN_PATH'
20666
20667 case $cc_basename in
20668 CC*)
20669 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20670 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20671 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20672 '"$old_archive_cmds_CXX"
20673 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20674 '"$reload_cmds_CXX"
20675 ;;
20676 *)
20677 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20678 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20679 ;;
20680 esac
20681 ;;
20682
20683 tandem*)
20684 case $cc_basename in
20685 NCC*)
20686 # NonStop-UX NCC 3.20
20687 # FIXME: insert proper C++ library support
20688 ld_shlibs_CXX=no
20689 ;;
20690 *)
20691 # FIXME: insert proper C++ library support
20692 ld_shlibs_CXX=no
20693 ;;
20694 esac
20695 ;;
20696
20697 vxworks*)
20698 # FIXME: insert proper C++ library support
20699 ld_shlibs_CXX=no
20700 ;;
20701
20702 *)
20703 # FIXME: insert proper C++ library support
20704 ld_shlibs_CXX=no
20705 ;;
20706 esac
20707
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20709 $as_echo "$ld_shlibs_CXX" >&6; }
20710 test "$ld_shlibs_CXX" = no && can_build_shared=no
20711
20712 GCC_CXX="$GXX"
20713 LD_CXX="$LD"
20714
20715 ## CAVEAT EMPTOR:
20716 ## There is no encapsulation within the following macros, do not change
20717 ## the running order or otherwise move them around unless you know exactly
20718 ## what you are doing...
20719 # Dependencies to place before and after the object being linked:
20720 predep_objects_CXX=
20721 postdep_objects_CXX=
20722 predeps_CXX=
20723 postdeps_CXX=
20724 compiler_lib_search_path_CXX=
20725
20726 cat > conftest.$ac_ext <<_LT_EOF
20727 class Foo
20728 {
20729 public:
20730 Foo (void) { a = 0; }
20731 private:
20732 int a;
20733 };
20734 _LT_EOF
20735
20736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20737 (eval $ac_compile) 2>&5
20738 ac_status=$?
20739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20740 test $ac_status = 0; }; then
20741 # Parse the compiler output and extract the necessary
20742 # objects, libraries and library flags.
20743
20744 # Sentinel used to keep track of whether or not we are before
20745 # the conftest object file.
20746 pre_test_object_deps_done=no
20747
20748 for p in `eval "$output_verbose_link_cmd"`; do
20749 case $p in
20750
20751 -L* | -R* | -l*)
20752 # Some compilers place space between "-{L,R}" and the path.
20753 # Remove the space.
20754 if test $p = "-L" ||
20755 test $p = "-R"; then
20756 prev=$p
20757 continue
20758 else
20759 prev=
20760 fi
20761
20762 if test "$pre_test_object_deps_done" = no; then
20763 case $p in
20764 -L* | -R*)
20765 # Internal compiler library paths should come after those
20766 # provided the user. The postdeps already come after the
20767 # user supplied libs so there is no need to process them.
20768 if test -z "$compiler_lib_search_path_CXX"; then
20769 compiler_lib_search_path_CXX="${prev}${p}"
20770 else
20771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20772 fi
20773 ;;
20774 # The "-l" case would never come before the object being
20775 # linked, so don't bother handling this case.
20776 esac
20777 else
20778 if test -z "$postdeps_CXX"; then
20779 postdeps_CXX="${prev}${p}"
20780 else
20781 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20782 fi
20783 fi
20784 ;;
20785
20786 *.$objext)
20787 # This assumes that the test object file only shows up
20788 # once in the compiler output.
20789 if test "$p" = "conftest.$objext"; then
20790 pre_test_object_deps_done=yes
20791 continue
20792 fi
20793
20794 if test "$pre_test_object_deps_done" = no; then
20795 if test -z "$predep_objects_CXX"; then
20796 predep_objects_CXX="$p"
20797 else
20798 predep_objects_CXX="$predep_objects_CXX $p"
20799 fi
20800 else
20801 if test -z "$postdep_objects_CXX"; then
20802 postdep_objects_CXX="$p"
20803 else
20804 postdep_objects_CXX="$postdep_objects_CXX $p"
20805 fi
20806 fi
20807 ;;
20808
20809 *) ;; # Ignore the rest.
20810
20811 esac
20812 done
20813
20814 # Clean up.
20815 rm -f a.out a.exe
20816 else
20817 echo "libtool.m4: error: problem compiling CXX test program"
20818 fi
20819
20820 $RM -f confest.$objext
20821
20822 # PORTME: override above test on systems where it is broken
20823 case $host_os in
20824 interix[3-9]*)
20825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20826 # hack all around it, let's just trust "g++" to DTRT.
20827 predep_objects_CXX=
20828 postdep_objects_CXX=
20829 postdeps_CXX=
20830 ;;
20831
20832 linux*)
20833 case `$CC -V 2>&1 | sed 5q` in
20834 *Sun\ C*)
20835 # Sun C++ 5.9
20836
20837 # The more standards-conforming stlport4 library is
20838 # incompatible with the Cstd library. Avoid specifying
20839 # it if it's in CXXFLAGS. Ignore libCrun as
20840 # -library=stlport4 depends on it.
20841 case " $CXX $CXXFLAGS " in
20842 *" -library=stlport4 "*)
20843 solaris_use_stlport4=yes
20844 ;;
20845 esac
20846
20847 if test "$solaris_use_stlport4" != yes; then
20848 postdeps_CXX='-library=Cstd -library=Crun'
20849 fi
20850 ;;
20851 esac
20852 ;;
20853
20854 solaris*)
20855 case $cc_basename in
20856 CC*)
20857 # The more standards-conforming stlport4 library is
20858 # incompatible with the Cstd library. Avoid specifying
20859 # it if it's in CXXFLAGS. Ignore libCrun as
20860 # -library=stlport4 depends on it.
20861 case " $CXX $CXXFLAGS " in
20862 *" -library=stlport4 "*)
20863 solaris_use_stlport4=yes
20864 ;;
20865 esac
20866
20867 # Adding this requires a known-good setup of shared libraries for
20868 # Sun compiler versions before 5.6, else PIC objects from an old
20869 # archive will be linked into the output, leading to subtle bugs.
20870 if test "$solaris_use_stlport4" != yes; then
20871 postdeps_CXX='-library=Cstd -library=Crun'
20872 fi
20873 ;;
20874 esac
20875 ;;
20876 esac
20877
20878
20879 case " $postdeps_CXX " in
20880 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20881 esac
20882 compiler_lib_search_dirs_CXX=
20883 if test -n "${compiler_lib_search_path_CXX}"; then
20884 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20885 fi
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917 lt_prog_compiler_wl_CXX=
20918 lt_prog_compiler_pic_CXX=
20919 lt_prog_compiler_static_CXX=
20920
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20922 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20923
20924 # C++ specific cases for pic, static, wl, etc.
20925 if test "$GXX" = yes; then
20926 lt_prog_compiler_wl_CXX='-Wl,'
20927 lt_prog_compiler_static_CXX='-static'
20928
20929 case $host_os in
20930 aix*)
20931 # All AIX code is PIC.
20932 if test "$host_cpu" = ia64; then
20933 # AIX 5 now supports IA64 processor
20934 lt_prog_compiler_static_CXX='-Bstatic'
20935 fi
20936 lt_prog_compiler_pic_CXX='-fPIC'
20937 ;;
20938
20939 amigaos*)
20940 case $host_cpu in
20941 powerpc)
20942 # see comment about AmigaOS4 .so support
20943 lt_prog_compiler_pic_CXX='-fPIC'
20944 ;;
20945 m68k)
20946 # FIXME: we need at least 68020 code to build shared libraries, but
20947 # adding the `-m68020' flag to GCC prevents building anything better,
20948 # like `-m68040'.
20949 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20950 ;;
20951 esac
20952 ;;
20953
20954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20955 # PIC is the default for these OSes.
20956 ;;
20957 mingw* | cygwin* | os2* | pw32* | cegcc*)
20958 # This hack is so that the source file can tell whether it is being
20959 # built for inclusion in a dll (and should export symbols for example).
20960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20961 # (--disable-auto-import) libraries
20962 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20963 ;;
20964 darwin* | rhapsody*)
20965 # PIC is the default on this platform
20966 # Common symbols not allowed in MH_DYLIB files
20967 lt_prog_compiler_pic_CXX='-fno-common'
20968 ;;
20969 *djgpp*)
20970 # DJGPP does not support shared libraries at all
20971 lt_prog_compiler_pic_CXX=
20972 ;;
20973 haiku*)
20974 # PIC is the default for Haiku.
20975 # The "-static" flag exists, but is broken.
20976 lt_prog_compiler_static_CXX=
20977 ;;
20978 interix[3-9]*)
20979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20980 # Instead, we relocate shared libraries at runtime.
20981 ;;
20982 sysv4*MP*)
20983 if test -d /usr/nec; then
20984 lt_prog_compiler_pic_CXX=-Kconform_pic
20985 fi
20986 ;;
20987 hpux*)
20988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20990 # sets the default TLS model and affects inlining.
20991 case $host_cpu in
20992 hppa*64*)
20993 ;;
20994 *)
20995 lt_prog_compiler_pic_CXX='-fPIC'
20996 ;;
20997 esac
20998 ;;
20999 *qnx* | *nto*)
21000 # QNX uses GNU C++, but need to define -shared option too, otherwise
21001 # it will coredump.
21002 lt_prog_compiler_pic_CXX='-fPIC -shared'
21003 ;;
21004 *)
21005 lt_prog_compiler_pic_CXX='-fPIC'
21006 ;;
21007 esac
21008 else
21009 case $host_os in
21010 aix[4-9]*)
21011 # All AIX code is PIC.
21012 if test "$host_cpu" = ia64; then
21013 # AIX 5 now supports IA64 processor
21014 lt_prog_compiler_static_CXX='-Bstatic'
21015 else
21016 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21017 fi
21018 ;;
21019 chorus*)
21020 case $cc_basename in
21021 cxch68*)
21022 # Green Hills C++ Compiler
21023 # _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"
21024 ;;
21025 esac
21026 ;;
21027 dgux*)
21028 case $cc_basename in
21029 ec++*)
21030 lt_prog_compiler_pic_CXX='-KPIC'
21031 ;;
21032 ghcx*)
21033 # Green Hills C++ Compiler
21034 lt_prog_compiler_pic_CXX='-pic'
21035 ;;
21036 *)
21037 ;;
21038 esac
21039 ;;
21040 freebsd* | dragonfly*)
21041 # FreeBSD uses GNU C++
21042 ;;
21043 hpux9* | hpux10* | hpux11*)
21044 case $cc_basename in
21045 CC*)
21046 lt_prog_compiler_wl_CXX='-Wl,'
21047 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21048 if test "$host_cpu" != ia64; then
21049 lt_prog_compiler_pic_CXX='+Z'
21050 fi
21051 ;;
21052 aCC*)
21053 lt_prog_compiler_wl_CXX='-Wl,'
21054 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21055 case $host_cpu in
21056 hppa*64*|ia64*)
21057 # +Z the default
21058 ;;
21059 *)
21060 lt_prog_compiler_pic_CXX='+Z'
21061 ;;
21062 esac
21063 ;;
21064 *)
21065 ;;
21066 esac
21067 ;;
21068 interix*)
21069 # This is c89, which is MS Visual C++ (no shared libs)
21070 # Anyone wants to do a port?
21071 ;;
21072 irix5* | irix6* | nonstopux*)
21073 case $cc_basename in
21074 CC*)
21075 lt_prog_compiler_wl_CXX='-Wl,'
21076 lt_prog_compiler_static_CXX='-non_shared'
21077 # CC pic flag -KPIC is the default.
21078 ;;
21079 *)
21080 ;;
21081 esac
21082 ;;
21083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21084 case $cc_basename in
21085 KCC*)
21086 # KAI C++ Compiler
21087 lt_prog_compiler_wl_CXX='--backend -Wl,'
21088 lt_prog_compiler_pic_CXX='-fPIC'
21089 ;;
21090 ecpc* )
21091 # old Intel C++ for x86_64 which still supported -KPIC.
21092 lt_prog_compiler_wl_CXX='-Wl,'
21093 lt_prog_compiler_pic_CXX='-KPIC'
21094 lt_prog_compiler_static_CXX='-static'
21095 ;;
21096 icpc* )
21097 # Intel C++, used to be incompatible with GCC.
21098 # ICC 10 doesn't accept -KPIC any more.
21099 lt_prog_compiler_wl_CXX='-Wl,'
21100 lt_prog_compiler_pic_CXX='-fPIC'
21101 lt_prog_compiler_static_CXX='-static'
21102 ;;
21103 pgCC* | pgcpp*)
21104 # Portland Group C++ compiler
21105 lt_prog_compiler_wl_CXX='-Wl,'
21106 lt_prog_compiler_pic_CXX='-fpic'
21107 lt_prog_compiler_static_CXX='-Bstatic'
21108 ;;
21109 cxx*)
21110 # Compaq C++
21111 # Make sure the PIC flag is empty. It appears that all Alpha
21112 # Linux and Compaq Tru64 Unix objects are PIC.
21113 lt_prog_compiler_pic_CXX=
21114 lt_prog_compiler_static_CXX='-non_shared'
21115 ;;
21116 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21117 # IBM XL 8.0, 9.0 on PPC and BlueGene
21118 lt_prog_compiler_wl_CXX='-Wl,'
21119 lt_prog_compiler_pic_CXX='-qpic'
21120 lt_prog_compiler_static_CXX='-qstaticlink'
21121 ;;
21122 *)
21123 case `$CC -V 2>&1 | sed 5q` in
21124 *Sun\ C*)
21125 # Sun C++ 5.9
21126 lt_prog_compiler_pic_CXX='-KPIC'
21127 lt_prog_compiler_static_CXX='-Bstatic'
21128 lt_prog_compiler_wl_CXX='-Qoption ld '
21129 ;;
21130 esac
21131 ;;
21132 esac
21133 ;;
21134 lynxos*)
21135 ;;
21136 m88k*)
21137 ;;
21138 mvs*)
21139 case $cc_basename in
21140 cxx*)
21141 lt_prog_compiler_pic_CXX='-W c,exportall'
21142 ;;
21143 *)
21144 ;;
21145 esac
21146 ;;
21147 netbsd*)
21148 ;;
21149 *qnx* | *nto*)
21150 # QNX uses GNU C++, but need to define -shared option too, otherwise
21151 # it will coredump.
21152 lt_prog_compiler_pic_CXX='-fPIC -shared'
21153 ;;
21154 osf3* | osf4* | osf5*)
21155 case $cc_basename in
21156 KCC*)
21157 lt_prog_compiler_wl_CXX='--backend -Wl,'
21158 ;;
21159 RCC*)
21160 # Rational C++ 2.4.1
21161 lt_prog_compiler_pic_CXX='-pic'
21162 ;;
21163 cxx*)
21164 # Digital/Compaq C++
21165 lt_prog_compiler_wl_CXX='-Wl,'
21166 # Make sure the PIC flag is empty. It appears that all Alpha
21167 # Linux and Compaq Tru64 Unix objects are PIC.
21168 lt_prog_compiler_pic_CXX=
21169 lt_prog_compiler_static_CXX='-non_shared'
21170 ;;
21171 *)
21172 ;;
21173 esac
21174 ;;
21175 psos*)
21176 ;;
21177 solaris*)
21178 case $cc_basename in
21179 CC*)
21180 # Sun C++ 4.2, 5.x and Centerline C++
21181 lt_prog_compiler_pic_CXX='-KPIC'
21182 lt_prog_compiler_static_CXX='-Bstatic'
21183 lt_prog_compiler_wl_CXX='-Qoption ld '
21184 ;;
21185 gcx*)
21186 # Green Hills C++ Compiler
21187 lt_prog_compiler_pic_CXX='-PIC'
21188 ;;
21189 *)
21190 ;;
21191 esac
21192 ;;
21193 sunos4*)
21194 case $cc_basename in
21195 CC*)
21196 # Sun C++ 4.x
21197 lt_prog_compiler_pic_CXX='-pic'
21198 lt_prog_compiler_static_CXX='-Bstatic'
21199 ;;
21200 lcc*)
21201 # Lucid
21202 lt_prog_compiler_pic_CXX='-pic'
21203 ;;
21204 *)
21205 ;;
21206 esac
21207 ;;
21208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21209 case $cc_basename in
21210 CC*)
21211 lt_prog_compiler_wl_CXX='-Wl,'
21212 lt_prog_compiler_pic_CXX='-KPIC'
21213 lt_prog_compiler_static_CXX='-Bstatic'
21214 ;;
21215 esac
21216 ;;
21217 tandem*)
21218 case $cc_basename in
21219 NCC*)
21220 # NonStop-UX NCC 3.20
21221 lt_prog_compiler_pic_CXX='-KPIC'
21222 ;;
21223 *)
21224 ;;
21225 esac
21226 ;;
21227 vxworks*)
21228 ;;
21229 *)
21230 lt_prog_compiler_can_build_shared_CXX=no
21231 ;;
21232 esac
21233 fi
21234
21235 case $host_os in
21236 # For platforms which do not support PIC, -DPIC is meaningless:
21237 *djgpp*)
21238 lt_prog_compiler_pic_CXX=
21239 ;;
21240 *)
21241 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21242 ;;
21243 esac
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21245 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21246
21247
21248
21249 #
21250 # Check to make sure the PIC flag actually works.
21251 #
21252 if test -n "$lt_prog_compiler_pic_CXX"; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21255 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 lt_cv_prog_compiler_pic_works_CXX=no
21259 ac_outfile=conftest.$ac_objext
21260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21262 # Insert the option either (1) after the last *FLAGS variable, or
21263 # (2) before a word containing "conftest.", or (3) at the end.
21264 # Note that $ac_compile itself does not contain backslashes and begins
21265 # with a dollar sign (not a hyphen), so the echo should work correctly.
21266 # The option is referenced via a variable to avoid confusing sed.
21267 lt_compile=`echo "$ac_compile" | $SED \
21268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270 -e 's:$: $lt_compiler_flag:'`
21271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21272 (eval "$lt_compile" 2>conftest.err)
21273 ac_status=$?
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 if (exit $ac_status) && test -s "$ac_outfile"; then
21277 # The compiler can only warn and ignore the option if not recognized
21278 # So say no if there are warnings other than the usual output.
21279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21282 lt_cv_prog_compiler_pic_works_CXX=yes
21283 fi
21284 fi
21285 $RM conftest*
21286
21287 fi
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21290
21291 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21292 case $lt_prog_compiler_pic_CXX in
21293 "" | " "*) ;;
21294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21295 esac
21296 else
21297 lt_prog_compiler_pic_CXX=
21298 lt_prog_compiler_can_build_shared_CXX=no
21299 fi
21300
21301 fi
21302
21303
21304
21305 #
21306 # Check to make sure the static flag actually works.
21307 #
21308 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21310 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21311 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21314 lt_cv_prog_compiler_static_works_CXX=no
21315 save_LDFLAGS="$LDFLAGS"
21316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21319 # The linker can only warn and ignore the option if not recognized
21320 # So say no if there are warnings
21321 if test -s conftest.err; then
21322 # Append any errors to the config.log.
21323 cat conftest.err 1>&5
21324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21326 if diff conftest.exp conftest.er2 >/dev/null; then
21327 lt_cv_prog_compiler_static_works_CXX=yes
21328 fi
21329 else
21330 lt_cv_prog_compiler_static_works_CXX=yes
21331 fi
21332 fi
21333 $RM -r conftest*
21334 LDFLAGS="$save_LDFLAGS"
21335
21336 fi
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21338 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21339
21340 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21341 :
21342 else
21343 lt_prog_compiler_static_CXX=
21344 fi
21345
21346
21347
21348
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21351 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21352 $as_echo_n "(cached) " >&6
21353 else
21354 lt_cv_prog_compiler_c_o_CXX=no
21355 $RM -r conftest 2>/dev/null
21356 mkdir conftest
21357 cd conftest
21358 mkdir out
21359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21360
21361 lt_compiler_flag="-o out/conftest2.$ac_objext"
21362 # Insert the option either (1) after the last *FLAGS variable, or
21363 # (2) before a word containing "conftest.", or (3) at the end.
21364 # Note that $ac_compile itself does not contain backslashes and begins
21365 # with a dollar sign (not a hyphen), so the echo should work correctly.
21366 lt_compile=`echo "$ac_compile" | $SED \
21367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21369 -e 's:$: $lt_compiler_flag:'`
21370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21371 (eval "$lt_compile" 2>out/conftest.err)
21372 ac_status=$?
21373 cat out/conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21376 then
21377 # The compiler can only warn and ignore the option if not recognized
21378 # So say no if there are warnings
21379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21382 lt_cv_prog_compiler_c_o_CXX=yes
21383 fi
21384 fi
21385 chmod u+w . 2>&5
21386 $RM conftest*
21387 # SGI C++ compiler will create directory out/ii_files/ for
21388 # template instantiation
21389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21390 $RM out/* && rmdir out
21391 cd ..
21392 $RM -r conftest
21393 $RM conftest*
21394
21395 fi
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21397 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21398
21399
21400
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21403 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 lt_cv_prog_compiler_c_o_CXX=no
21407 $RM -r conftest 2>/dev/null
21408 mkdir conftest
21409 cd conftest
21410 mkdir out
21411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21412
21413 lt_compiler_flag="-o out/conftest2.$ac_objext"
21414 # Insert the option either (1) after the last *FLAGS variable, or
21415 # (2) before a word containing "conftest.", or (3) at the end.
21416 # Note that $ac_compile itself does not contain backslashes and begins
21417 # with a dollar sign (not a hyphen), so the echo should work correctly.
21418 lt_compile=`echo "$ac_compile" | $SED \
21419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21421 -e 's:$: $lt_compiler_flag:'`
21422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21423 (eval "$lt_compile" 2>out/conftest.err)
21424 ac_status=$?
21425 cat out/conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21428 then
21429 # The compiler can only warn and ignore the option if not recognized
21430 # So say no if there are warnings
21431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21434 lt_cv_prog_compiler_c_o_CXX=yes
21435 fi
21436 fi
21437 chmod u+w . 2>&5
21438 $RM conftest*
21439 # SGI C++ compiler will create directory out/ii_files/ for
21440 # template instantiation
21441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21442 $RM out/* && rmdir out
21443 cd ..
21444 $RM -r conftest
21445 $RM conftest*
21446
21447 fi
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21449 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21450
21451
21452
21453
21454 hard_links="nottested"
21455 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21456 # do not overwrite the value of need_locks provided by the user
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21458 $as_echo_n "checking if we can lock with hard links... " >&6; }
21459 hard_links=yes
21460 $RM conftest*
21461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21462 touch conftest.a
21463 ln conftest.a conftest.b 2>&5 || hard_links=no
21464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21466 $as_echo "$hard_links" >&6; }
21467 if test "$hard_links" = no; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21469 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21470 need_locks=warn
21471 fi
21472 else
21473 need_locks=no
21474 fi
21475
21476
21477
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21480
21481 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21482 case $host_os in
21483 aix[4-9]*)
21484 # If we're using GNU nm, then we don't want the "-C" option.
21485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21486 # Also, AIX nm treats weak defined symbols like other global defined
21487 # symbols, whereas GNU nm marks them as "W".
21488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21489 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'
21490 else
21491 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'
21492 fi
21493 ;;
21494 pw32*)
21495 export_symbols_cmds_CXX="$ltdll_cmds"
21496 ;;
21497 cygwin* | mingw* | cegcc*)
21498 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'
21499 ;;
21500 *)
21501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21502 ;;
21503 esac
21504 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21505
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21507 $as_echo "$ld_shlibs_CXX" >&6; }
21508 test "$ld_shlibs_CXX" = no && can_build_shared=no
21509
21510 with_gnu_ld_CXX=$with_gnu_ld
21511
21512
21513
21514
21515
21516
21517 #
21518 # Do we need to explicitly link libc?
21519 #
21520 case "x$archive_cmds_need_lc_CXX" in
21521 x|xyes)
21522 # Assume -lc should be added
21523 archive_cmds_need_lc_CXX=yes
21524
21525 if test "$enable_shared" = yes && test "$GCC" = yes; then
21526 case $archive_cmds_CXX in
21527 *'~'*)
21528 # FIXME: we may have to deal with multi-command sequences.
21529 ;;
21530 '$CC '*)
21531 # Test whether the compiler implicitly links with -lc since on some
21532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21533 # to ld, don't add -lc before -lgcc.
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21536 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21537 $as_echo_n "(cached) " >&6
21538 else
21539 $RM conftest*
21540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21541
21542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21543 (eval $ac_compile) 2>&5
21544 ac_status=$?
21545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21546 test $ac_status = 0; } 2>conftest.err; then
21547 soname=conftest
21548 lib=conftest
21549 libobjs=conftest.$ac_objext
21550 deplibs=
21551 wl=$lt_prog_compiler_wl_CXX
21552 pic_flag=$lt_prog_compiler_pic_CXX
21553 compiler_flags=-v
21554 linker_flags=-v
21555 verstring=
21556 output_objdir=.
21557 libname=conftest
21558 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21559 allow_undefined_flag_CXX=
21560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21561 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21562 ac_status=$?
21563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21564 test $ac_status = 0; }
21565 then
21566 lt_cv_archive_cmds_need_lc_CXX=no
21567 else
21568 lt_cv_archive_cmds_need_lc_CXX=yes
21569 fi
21570 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21571 else
21572 cat conftest.err 1>&5
21573 fi
21574 $RM conftest*
21575
21576 fi
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21578 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21579 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21580 ;;
21581 esac
21582 fi
21583 ;;
21584 esac
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21650 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21651
21652 library_names_spec=
21653 libname_spec='lib$name'
21654 soname_spec=
21655 shrext_cmds=".so"
21656 postinstall_cmds=
21657 postuninstall_cmds=
21658 finish_cmds=
21659 finish_eval=
21660 shlibpath_var=
21661 shlibpath_overrides_runpath=unknown
21662 version_type=none
21663 dynamic_linker="$host_os ld.so"
21664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21665 need_lib_prefix=unknown
21666 hardcode_into_libs=no
21667
21668 # when you set need_version to no, make sure it does not cause -set_version
21669 # flags to be left without arguments
21670 need_version=unknown
21671
21672 case $host_os in
21673 aix3*)
21674 version_type=linux
21675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21676 shlibpath_var=LIBPATH
21677
21678 # AIX 3 has no versioning support, so we append a major version to the name.
21679 soname_spec='${libname}${release}${shared_ext}$major'
21680 ;;
21681
21682 aix[4-9]*)
21683 version_type=linux
21684 need_lib_prefix=no
21685 need_version=no
21686 hardcode_into_libs=yes
21687 if test "$host_cpu" = ia64; then
21688 # AIX 5 supports IA64
21689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21690 shlibpath_var=LD_LIBRARY_PATH
21691 else
21692 # With GCC up to 2.95.x, collect2 would create an import file
21693 # for dependence libraries. The import file would start with
21694 # the line `#! .'. This would cause the generated library to
21695 # depend on `.', always an invalid library. This was fixed in
21696 # development snapshots of GCC prior to 3.0.
21697 case $host_os in
21698 aix4 | aix4.[01] | aix4.[01].*)
21699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21700 echo ' yes '
21701 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21702 :
21703 else
21704 can_build_shared=no
21705 fi
21706 ;;
21707 esac
21708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21709 # soname into executable. Probably we can add versioning support to
21710 # collect2, so additional links can be useful in future.
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21713 # instead of lib<name>.a to let people know that these are not
21714 # typical AIX shared libraries.
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21716 else
21717 # We preserve .a as extension for shared libraries through AIX4.2
21718 # and later when we are not doing run time linking.
21719 library_names_spec='${libname}${release}.a $libname.a'
21720 soname_spec='${libname}${release}${shared_ext}$major'
21721 fi
21722 shlibpath_var=LIBPATH
21723 fi
21724 ;;
21725
21726 amigaos*)
21727 case $host_cpu in
21728 powerpc)
21729 # Since July 2007 AmigaOS4 officially supports .so libraries.
21730 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21732 ;;
21733 m68k)
21734 library_names_spec='$libname.ixlibrary $libname.a'
21735 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21736 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'
21737 ;;
21738 esac
21739 ;;
21740
21741 beos*)
21742 library_names_spec='${libname}${shared_ext}'
21743 dynamic_linker="$host_os ld.so"
21744 shlibpath_var=LIBRARY_PATH
21745 ;;
21746
21747 bsdi[45]*)
21748 version_type=linux
21749 need_version=no
21750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21751 soname_spec='${libname}${release}${shared_ext}$major'
21752 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21753 shlibpath_var=LD_LIBRARY_PATH
21754 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21755 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21756 # the default ld.so.conf also contains /usr/contrib/lib and
21757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21758 # libtool to hard-code these into programs
21759 ;;
21760
21761 cygwin* | mingw* | pw32* | cegcc*)
21762 version_type=windows
21763 shrext_cmds=".dll"
21764 need_version=no
21765 need_lib_prefix=no
21766
21767 case $GCC,$host_os in
21768 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21769 library_names_spec='$libname.dll.a'
21770 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21771 postinstall_cmds='base_file=`basename \${file}`~
21772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21773 dldir=$destdir/`dirname \$dlpath`~
21774 test -d \$dldir || mkdir -p \$dldir~
21775 $install_prog $dir/$dlname \$dldir/$dlname~
21776 chmod a+x \$dldir/$dlname~
21777 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21778 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21779 fi'
21780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
21782 $RM \$dlpath'
21783 shlibpath_overrides_runpath=yes
21784
21785 case $host_os in
21786 cygwin*)
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21789
21790 ;;
21791 mingw* | cegcc*)
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794 ;;
21795 pw32*)
21796 # pw32 DLLs use 'pw' prefix rather than 'lib'
21797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21798 ;;
21799 esac
21800 ;;
21801
21802 *)
21803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21804 ;;
21805 esac
21806 dynamic_linker='Win32 ld.exe'
21807 # FIXME: first we should search . and the directory the executable is in
21808 shlibpath_var=PATH
21809 ;;
21810
21811 darwin* | rhapsody*)
21812 dynamic_linker="$host_os dyld"
21813 version_type=darwin
21814 need_lib_prefix=no
21815 need_version=no
21816 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21817 soname_spec='${libname}${release}${major}$shared_ext'
21818 shlibpath_overrides_runpath=yes
21819 shlibpath_var=DYLD_LIBRARY_PATH
21820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21821
21822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21823 ;;
21824
21825 dgux*)
21826 version_type=linux
21827 need_lib_prefix=no
21828 need_version=no
21829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21830 soname_spec='${libname}${release}${shared_ext}$major'
21831 shlibpath_var=LD_LIBRARY_PATH
21832 ;;
21833
21834 freebsd* | dragonfly*)
21835 # DragonFly does not have aout. When/if they implement a new
21836 # versioning mechanism, adjust this.
21837 if test -x /usr/bin/objformat; then
21838 objformat=`/usr/bin/objformat`
21839 else
21840 case $host_os in
21841 freebsd[23].*) objformat=aout ;;
21842 *) objformat=elf ;;
21843 esac
21844 fi
21845 version_type=freebsd-$objformat
21846 case $version_type in
21847 freebsd-elf*)
21848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21849 need_version=no
21850 need_lib_prefix=no
21851 ;;
21852 freebsd-*)
21853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21854 need_version=yes
21855 ;;
21856 esac
21857 shlibpath_var=LD_LIBRARY_PATH
21858 case $host_os in
21859 freebsd2.*)
21860 shlibpath_overrides_runpath=yes
21861 ;;
21862 freebsd3.[01]* | freebsdelf3.[01]*)
21863 shlibpath_overrides_runpath=yes
21864 hardcode_into_libs=yes
21865 ;;
21866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21868 shlibpath_overrides_runpath=no
21869 hardcode_into_libs=yes
21870 ;;
21871 *) # from 4.6 on, and DragonFly
21872 shlibpath_overrides_runpath=yes
21873 hardcode_into_libs=yes
21874 ;;
21875 esac
21876 ;;
21877
21878 gnu*)
21879 version_type=linux
21880 need_lib_prefix=no
21881 need_version=no
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21883 soname_spec='${libname}${release}${shared_ext}$major'
21884 shlibpath_var=LD_LIBRARY_PATH
21885 hardcode_into_libs=yes
21886 ;;
21887
21888 haiku*)
21889 version_type=linux
21890 need_lib_prefix=no
21891 need_version=no
21892 dynamic_linker="$host_os runtime_loader"
21893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21894 soname_spec='${libname}${release}${shared_ext}$major'
21895 shlibpath_var=LIBRARY_PATH
21896 shlibpath_overrides_runpath=yes
21897 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21898 hardcode_into_libs=yes
21899 ;;
21900
21901 hpux9* | hpux10* | hpux11*)
21902 # Give a soname corresponding to the major version so that dld.sl refuses to
21903 # link against other versions.
21904 version_type=sunos
21905 need_lib_prefix=no
21906 need_version=no
21907 case $host_cpu in
21908 ia64*)
21909 shrext_cmds='.so'
21910 hardcode_into_libs=yes
21911 dynamic_linker="$host_os dld.so"
21912 shlibpath_var=LD_LIBRARY_PATH
21913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21915 soname_spec='${libname}${release}${shared_ext}$major'
21916 if test "X$HPUX_IA64_MODE" = X32; then
21917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21918 else
21919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21920 fi
21921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21922 ;;
21923 hppa*64*)
21924 shrext_cmds='.sl'
21925 hardcode_into_libs=yes
21926 dynamic_linker="$host_os dld.sl"
21927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 soname_spec='${libname}${release}${shared_ext}$major'
21931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21933 ;;
21934 *)
21935 shrext_cmds='.sl'
21936 dynamic_linker="$host_os dld.sl"
21937 shlibpath_var=SHLIB_PATH
21938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21940 soname_spec='${libname}${release}${shared_ext}$major'
21941 ;;
21942 esac
21943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21944 postinstall_cmds='chmod 555 $lib'
21945 # or fails outright, so override atomically:
21946 install_override_mode=555
21947 ;;
21948
21949 interix[3-9]*)
21950 version_type=linux
21951 need_lib_prefix=no
21952 need_version=no
21953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21954 soname_spec='${libname}${release}${shared_ext}$major'
21955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath=no
21958 hardcode_into_libs=yes
21959 ;;
21960
21961 irix5* | irix6* | nonstopux*)
21962 case $host_os in
21963 nonstopux*) version_type=nonstopux ;;
21964 *)
21965 if test "$lt_cv_prog_gnu_ld" = yes; then
21966 version_type=linux
21967 else
21968 version_type=irix
21969 fi ;;
21970 esac
21971 need_lib_prefix=no
21972 need_version=no
21973 soname_spec='${libname}${release}${shared_ext}$major'
21974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21975 case $host_os in
21976 irix5* | nonstopux*)
21977 libsuff= shlibsuff=
21978 ;;
21979 *)
21980 case $LD in # libtool.m4 will add one of these switches to LD
21981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21982 libsuff= shlibsuff= libmagic=32-bit;;
21983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21984 libsuff=32 shlibsuff=N32 libmagic=N32;;
21985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21987 *) libsuff= shlibsuff= libmagic=never-match;;
21988 esac
21989 ;;
21990 esac
21991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21992 shlibpath_overrides_runpath=no
21993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21995 hardcode_into_libs=yes
21996 ;;
21997
21998 # No shared lib support for Linux oldld, aout, or coff.
21999 linux*oldld* | linux*aout* | linux*coff*)
22000 dynamic_linker=no
22001 ;;
22002
22003 # This must be Linux ELF.
22004
22005 # uclinux* changes (here and below) have been submitted to the libtool
22006 # project, but have not yet been accepted: they are GCC-local changes
22007 # for the time being. (See
22008 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22009 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
22010 version_type=linux
22011 need_lib_prefix=no
22012 need_version=no
22013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22014 soname_spec='${libname}${release}${shared_ext}$major'
22015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22016 shlibpath_var=LD_LIBRARY_PATH
22017 shlibpath_overrides_runpath=no
22018
22019 # Some binutils ld are patched to set DT_RUNPATH
22020 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023 lt_cv_shlibpath_overrides_runpath=no
22024 save_LDFLAGS=$LDFLAGS
22025 save_libdir=$libdir
22026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030
22031 int
22032 main ()
22033 {
22034
22035 ;
22036 return 0;
22037 }
22038 _ACEOF
22039 if ac_fn_cxx_try_link "$LINENO"; then :
22040 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22041 lt_cv_shlibpath_overrides_runpath=yes
22042 fi
22043 fi
22044 rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22046 LDFLAGS=$save_LDFLAGS
22047 libdir=$save_libdir
22048
22049 fi
22050
22051 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22052
22053 # This implies no fast_install, which is unacceptable.
22054 # Some rework will be needed to allow for fast_install
22055 # before this can be enabled.
22056 hardcode_into_libs=yes
22057
22058 # Append ld.so.conf contents to the search path
22059 if test -f /etc/ld.so.conf; then
22060 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' ' '`
22061 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22062 fi
22063
22064 # We used to test for /lib/ld.so.1 and disable shared libraries on
22065 # powerpc, because MkLinux only supported shared libraries with the
22066 # GNU dynamic linker. Since this was broken with cross compilers,
22067 # most powerpc-linux boxes support dynamic linking these days and
22068 # people can always --disable-shared, the test was removed, and we
22069 # assume the GNU/Linux dynamic linker is in use.
22070 dynamic_linker='GNU/Linux ld.so'
22071 ;;
22072
22073 netbsd*)
22074 version_type=sunos
22075 need_lib_prefix=no
22076 need_version=no
22077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22080 dynamic_linker='NetBSD (a.out) ld.so'
22081 else
22082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22083 soname_spec='${libname}${release}${shared_ext}$major'
22084 dynamic_linker='NetBSD ld.elf_so'
22085 fi
22086 shlibpath_var=LD_LIBRARY_PATH
22087 shlibpath_overrides_runpath=yes
22088 hardcode_into_libs=yes
22089 ;;
22090
22091 newsos6)
22092 version_type=linux
22093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath=yes
22096 ;;
22097
22098 *nto* | *qnx*)
22099 version_type=qnx
22100 need_lib_prefix=no
22101 need_version=no
22102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22103 soname_spec='${libname}${release}${shared_ext}$major'
22104 shlibpath_var=LD_LIBRARY_PATH
22105 shlibpath_overrides_runpath=no
22106 hardcode_into_libs=yes
22107 dynamic_linker='ldqnx.so'
22108 ;;
22109
22110 openbsd*)
22111 version_type=sunos
22112 sys_lib_dlsearch_path_spec="/usr/lib"
22113 need_lib_prefix=no
22114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22115 case $host_os in
22116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22117 *) need_version=no ;;
22118 esac
22119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22121 shlibpath_var=LD_LIBRARY_PATH
22122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22123 case $host_os in
22124 openbsd2.[89] | openbsd2.[89].*)
22125 shlibpath_overrides_runpath=no
22126 ;;
22127 *)
22128 shlibpath_overrides_runpath=yes
22129 ;;
22130 esac
22131 else
22132 shlibpath_overrides_runpath=yes
22133 fi
22134 ;;
22135
22136 os2*)
22137 libname_spec='$name'
22138 shrext_cmds=".dll"
22139 need_lib_prefix=no
22140 library_names_spec='$libname${shared_ext} $libname.a'
22141 dynamic_linker='OS/2 ld.exe'
22142 shlibpath_var=LIBPATH
22143 ;;
22144
22145 osf3* | osf4* | osf5*)
22146 version_type=osf
22147 need_lib_prefix=no
22148 need_version=no
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22151 shlibpath_var=LD_LIBRARY_PATH
22152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22154 ;;
22155
22156 rdos*)
22157 dynamic_linker=no
22158 ;;
22159
22160 solaris*)
22161 version_type=linux
22162 need_lib_prefix=no
22163 need_version=no
22164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22165 soname_spec='${libname}${release}${shared_ext}$major'
22166 shlibpath_var=LD_LIBRARY_PATH
22167 shlibpath_overrides_runpath=yes
22168 hardcode_into_libs=yes
22169 # ldd complains unless libraries are executable
22170 postinstall_cmds='chmod +x $lib'
22171 ;;
22172
22173 sunos4*)
22174 version_type=sunos
22175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22177 shlibpath_var=LD_LIBRARY_PATH
22178 shlibpath_overrides_runpath=yes
22179 if test "$with_gnu_ld" = yes; then
22180 need_lib_prefix=no
22181 fi
22182 need_version=yes
22183 ;;
22184
22185 sysv4 | sysv4.3*)
22186 version_type=linux
22187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22188 soname_spec='${libname}${release}${shared_ext}$major'
22189 shlibpath_var=LD_LIBRARY_PATH
22190 case $host_vendor in
22191 sni)
22192 shlibpath_overrides_runpath=no
22193 need_lib_prefix=no
22194 runpath_var=LD_RUN_PATH
22195 ;;
22196 siemens)
22197 need_lib_prefix=no
22198 ;;
22199 motorola)
22200 need_lib_prefix=no
22201 need_version=no
22202 shlibpath_overrides_runpath=no
22203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22204 ;;
22205 esac
22206 ;;
22207
22208 sysv4*MP*)
22209 if test -d /usr/nec ;then
22210 version_type=linux
22211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22212 soname_spec='$libname${shared_ext}.$major'
22213 shlibpath_var=LD_LIBRARY_PATH
22214 fi
22215 ;;
22216
22217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22218 version_type=freebsd-elf
22219 need_lib_prefix=no
22220 need_version=no
22221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22222 soname_spec='${libname}${release}${shared_ext}$major'
22223 shlibpath_var=LD_LIBRARY_PATH
22224 shlibpath_overrides_runpath=yes
22225 hardcode_into_libs=yes
22226 if test "$with_gnu_ld" = yes; then
22227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22228 else
22229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22230 case $host_os in
22231 sco3.2v5*)
22232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22233 ;;
22234 esac
22235 fi
22236 sys_lib_dlsearch_path_spec='/usr/lib'
22237 ;;
22238
22239 tpf*)
22240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22241 version_type=linux
22242 need_lib_prefix=no
22243 need_version=no
22244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22245 shlibpath_var=LD_LIBRARY_PATH
22246 shlibpath_overrides_runpath=no
22247 hardcode_into_libs=yes
22248 ;;
22249
22250 uts4*)
22251 version_type=linux
22252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22253 soname_spec='${libname}${release}${shared_ext}$major'
22254 shlibpath_var=LD_LIBRARY_PATH
22255 ;;
22256
22257 *)
22258 dynamic_linker=no
22259 ;;
22260 esac
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22262 $as_echo "$dynamic_linker" >&6; }
22263 test "$dynamic_linker" = no && can_build_shared=no
22264
22265 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22266 if test "$GCC" = yes; then
22267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22268 fi
22269
22270 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22272 fi
22273 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22275 fi
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22316 hardcode_action_CXX=
22317 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22318 test -n "$runpath_var_CXX" ||
22319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22320
22321 # We can hardcode non-existent directories.
22322 if test "$hardcode_direct_CXX" != no &&
22323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22324 # have to relink, otherwise we might link with an installed library
22325 # when we should be linking with a yet-to-be-installed one
22326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22327 test "$hardcode_minus_L_CXX" != no; then
22328 # Linking always hardcodes the temporary library directory.
22329 hardcode_action_CXX=relink
22330 else
22331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22332 hardcode_action_CXX=immediate
22333 fi
22334 else
22335 # We cannot hardcode anything, or else we can only hardcode existing
22336 # directories.
22337 hardcode_action_CXX=unsupported
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22340 $as_echo "$hardcode_action_CXX" >&6; }
22341
22342 if test "$hardcode_action_CXX" = relink ||
22343 test "$inherit_rpath_CXX" = yes; then
22344 # Fast installation is not supported
22345 enable_fast_install=no
22346 elif test "$shlibpath_overrides_runpath" = yes ||
22347 test "$enable_shared" = no; then
22348 # Fast installation is not necessary
22349 enable_fast_install=needless
22350 fi
22351
22352
22353
22354
22355
22356
22357
22358 fi # test -n "$compiler"
22359
22360 CC=$lt_save_CC
22361 LDCXX=$LD
22362 LD=$lt_save_LD
22363 GCC=$lt_save_GCC
22364 with_gnu_ld=$lt_save_with_gnu_ld
22365 lt_cv_path_LDCXX=$lt_cv_path_LD
22366 lt_cv_path_LD=$lt_save_path_LD
22367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22369 fi # test "$_lt_caught_CXX_error" != yes
22370
22371 ac_ext=cpp
22372 ac_cpp='$CXXCPP $CPPFLAGS'
22373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392 # Only expand once:
22393
22394
22395
22396
22397
22398 # Identify the assembler which will work hand-in-glove with the newly
22399 # built GCC, so that we can examine its features. This is the assembler
22400 # which will be driven by the driver program.
22401 #
22402 # If build != host, and we aren't building gas in-tree, we identify a
22403 # build->target assembler and hope that it will have the same features
22404 # as the host->target assembler we'll be using.
22405 gcc_cv_gas_major_version=
22406 gcc_cv_gas_minor_version=
22407 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22408
22409 if ${gcc_cv_as+:} false; then :
22410
22411 else
22412
22413 if test -x "$DEFAULT_ASSEMBLER"; then
22414 gcc_cv_as="$DEFAULT_ASSEMBLER"
22415 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22416 && test -f ../gas/Makefile \
22417 && test x$build = x$host; then
22418 gcc_cv_as=../gas/as-new$build_exeext
22419 elif test -x as$build_exeext; then
22420 # Build using assembler in the current directory.
22421 gcc_cv_as=./as$build_exeext
22422 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22423 gcc_cv_as="$AS_FOR_TARGET"
22424 else
22425 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22426 set dummy $AS_FOR_TARGET; ac_word=$2
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22428 $as_echo_n "checking for $ac_word... " >&6; }
22429 if ${ac_cv_path_gcc_cv_as+:} false; then :
22430 $as_echo_n "(cached) " >&6
22431 else
22432 case $gcc_cv_as in
22433 [\\/]* | ?:[\\/]*)
22434 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22435 ;;
22436 *)
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in $PATH
22439 do
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for ac_exec_ext in '' $ac_executable_extensions; do
22443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22444 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22446 break 2
22447 fi
22448 done
22449 done
22450 IFS=$as_save_IFS
22451
22452 ;;
22453 esac
22454 fi
22455 gcc_cv_as=$ac_cv_path_gcc_cv_as
22456 if test -n "$gcc_cv_as"; then
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22458 $as_echo "$gcc_cv_as" >&6; }
22459 else
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22461 $as_echo "no" >&6; }
22462 fi
22463
22464
22465 fi
22466 fi
22467
22468 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22469
22470 case "$ORIGINAL_AS_FOR_TARGET" in
22471 ./as | ./as$build_exeext) ;;
22472 *) ac_config_files="$ac_config_files as:exec-tool.in"
22473 ;;
22474 esac
22475
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22477 $as_echo_n "checking what assembler to use... " >&6; }
22478 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22479 # Single tree build which includes gas. We want to prefer it
22480 # over whatever linker top-level may have detected, since
22481 # we'll use what we're building after installation anyway.
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22483 $as_echo "newly built gas" >&6; }
22484 in_tree_gas=yes
22485 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22486 for f in $gcc_cv_as_bfd_srcdir/configure \
22487 $gcc_cv_as_gas_srcdir/configure \
22488 $gcc_cv_as_gas_srcdir/configure.ac \
22489 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22490 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22491 if test x$gcc_cv_gas_version != x; then
22492 break
22493 fi
22494 done
22495 case $gcc_cv_gas_version in
22496 VERSION=[0-9]*) ;;
22497 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22498 esac
22499 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22500 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22501 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22502 case $gcc_cv_gas_patch_version in
22503 "") gcc_cv_gas_patch_version="0" ;;
22504 esac
22505 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22506 + $gcc_cv_gas_minor_version \) \* 1000 \
22507 + $gcc_cv_gas_patch_version`
22508
22509 in_tree_gas_is_elf=no
22510 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22511 || (grep 'obj_format = multi' ../gas/Makefile \
22512 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22513 then
22514 in_tree_gas_is_elf=yes
22515 fi
22516 else
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22518 $as_echo "$gcc_cv_as" >&6; }
22519 in_tree_gas=no
22520 fi
22521
22522 default_ld=
22523 # Check whether --enable-ld was given.
22524 if test "${enable_ld+set}" = set; then :
22525 enableval=$enable_ld; case "${enableval}" in
22526 no)
22527 default_ld=ld.gold
22528 ;;
22529 esac
22530 fi
22531
22532
22533 install_gold_as_default=no
22534 # Check whether --enable-gold was given.
22535 if test "${enable_gold+set}" = set; then :
22536 enableval=$enable_gold; case "${enableval}" in
22537 default)
22538 install_gold_as_default=yes
22539 ;;
22540 yes)
22541 if test x${default_ld} != x; then
22542 install_gold_as_default=yes
22543 fi
22544 ;;
22545 no)
22546 ;;
22547 *)
22548 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22549 ;;
22550 esac
22551 fi
22552
22553
22554 # Identify the linker which will work hand-in-glove with the newly
22555 # built GCC, so that we can examine its features. This is the linker
22556 # which will be driven by the driver program.
22557 #
22558 # If build != host, and we aren't building gas in-tree, we identify a
22559 # build->target linker and hope that it will have the same features
22560 # as the host->target linker we'll be using.
22561 gcc_cv_gld_major_version=
22562 gcc_cv_gld_minor_version=
22563 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22564 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22565 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22566
22567 if ${gcc_cv_ld+:} false; then :
22568
22569 else
22570
22571 if test -x "$DEFAULT_LINKER"; then
22572 gcc_cv_ld="$DEFAULT_LINKER"
22573 elif test $install_gold_as_default = yes \
22574 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22575 && test -f ../gold/Makefile \
22576 && test x$build = x$host; then
22577 gcc_cv_ld=../gold/ld-new$build_exeext
22578 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22579 && test -f ../ld/Makefile \
22580 && test x$build = x$host; then
22581 gcc_cv_ld=../ld/ld-new$build_exeext
22582 elif test -x collect-ld$build_exeext; then
22583 # Build using linker in the current directory.
22584 gcc_cv_ld=./collect-ld$build_exeext
22585 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22586 gcc_cv_ld="$LD_FOR_TARGET"
22587 else
22588 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22589 set dummy $LD_FOR_TARGET; ac_word=$2
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22591 $as_echo_n "checking for $ac_word... " >&6; }
22592 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22593 $as_echo_n "(cached) " >&6
22594 else
22595 case $gcc_cv_ld in
22596 [\\/]* | ?:[\\/]*)
22597 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22598 ;;
22599 *)
22600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22601 for as_dir in $PATH
22602 do
22603 IFS=$as_save_IFS
22604 test -z "$as_dir" && as_dir=.
22605 for ac_exec_ext in '' $ac_executable_extensions; do
22606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22607 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22609 break 2
22610 fi
22611 done
22612 done
22613 IFS=$as_save_IFS
22614
22615 ;;
22616 esac
22617 fi
22618 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22619 if test -n "$gcc_cv_ld"; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22621 $as_echo "$gcc_cv_ld" >&6; }
22622 else
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22624 $as_echo "no" >&6; }
22625 fi
22626
22627
22628 fi
22629 fi
22630
22631 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22632 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22633 # if the PLUGIN_LD is set ld-new, just have it as ld
22634 # as that is the installed named.
22635 if test x$PLUGIN_LD_SUFFIX = xld-new \
22636 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22637 PLUGIN_LD_SUFFIX=ld
22638 fi
22639
22640 # Check whether --with-plugin-ld was given.
22641 if test "${with_plugin_ld+set}" = set; then :
22642 withval=$with_plugin_ld; if test x"$withval" != x; then
22643 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22644 PLUGIN_LD_SUFFIX="$withval"
22645 fi
22646 fi
22647
22648
22649
22650 cat >>confdefs.h <<_ACEOF
22651 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22652 _ACEOF
22653
22654
22655 # Check to see if we are using gold instead of ld
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22657 $as_echo_n "checking whether we are using gold... " >&6; }
22658 ld_is_gold=no
22659 if test x$gcc_cv_ld != x; then
22660 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22661 | grep "GNU gold" > /dev/null; then
22662 ld_is_gold=yes
22663 fi
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22666 $as_echo "$ld_is_gold" >&6; }
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22669 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22670 # Check to see if default ld is not gold, but gold is
22671 # available and has support for split stack. If gcc was configured
22672 # with gold then no checking is done.
22673 #
22674 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22675
22676 # For platforms other than powerpc64*, enable as appropriate.
22677
22678 gold_non_default=no
22679 ld_gold=`which ${gcc_cv_ld}.gold`
22680 # Make sure this gold has minimal split stack support
22681 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22682 ld_vers=`$ld_gold --version | sed 1q`
22683 gold_vers=`echo $ld_vers | sed -n \
22684 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22685 case $target in
22686 # check that the gold version contains the complete split stack support
22687 # on powerpc64 big and little endian
22688 powerpc64*-*-*)
22689 case "$gold_vers" in
22690 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22691 ;;
22692 *) gold_non_default=no
22693 ;;
22694 esac
22695 ;;
22696 esac
22697 fi
22698 if test $gold_non_default = yes; then
22699
22700 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22701
22702 fi
22703 fi
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22705 $as_echo "$gold_non_default" >&6; }
22706
22707 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22708
22709 case "$ORIGINAL_LD_FOR_TARGET" in
22710 ./collect-ld | ./collect-ld$build_exeext) ;;
22711 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22712 ;;
22713 esac
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22716 $as_echo_n "checking what linker to use... " >&6; }
22717 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22718 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22719 # Single tree build which includes ld. We want to prefer it
22720 # over whatever linker top-level may have detected, since
22721 # we'll use what we're building after installation anyway.
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22723 $as_echo "newly built ld" >&6; }
22724 in_tree_ld=yes
22725 in_tree_ld_is_elf=no
22726 if (grep 'EMUL = .*elf' ../ld/Makefile \
22727 || grep 'EMUL = .*linux' ../ld/Makefile \
22728 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22729 in_tree_ld_is_elf=yes
22730 elif test "$ld_is_gold" = yes; then
22731 in_tree_ld_is_elf=yes
22732 fi
22733 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
22734 do
22735 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22736 if test x$gcc_cv_gld_version != x; then
22737 break
22738 fi
22739 done
22740 case $gcc_cv_gld_version in
22741 VERSION=[0-9]*) ;;
22742 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22743 esac
22744 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22745 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22746 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22747 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22748 else
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22750 $as_echo "$gcc_cv_ld" >&6; }
22751 in_tree_ld=no
22752 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22753 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22754 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22755 fi
22756
22757
22758
22759
22760 # Figure out what nm we will be using.
22761 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22762 if ${gcc_cv_nm+:} false; then :
22763
22764 else
22765
22766 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22767 && test -f ../binutils/Makefile \
22768 && test x$build = x$host; then
22769 gcc_cv_nm=../binutils/nm-new$build_exeext
22770 elif test -x nm$build_exeext; then
22771 gcc_cv_nm=./nm$build_exeext
22772 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22773 gcc_cv_nm="$NM_FOR_TARGET"
22774 else
22775 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22776 set dummy $NM_FOR_TARGET; ac_word=$2
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22778 $as_echo_n "checking for $ac_word... " >&6; }
22779 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 case $gcc_cv_nm in
22783 [\\/]* | ?:[\\/]*)
22784 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22785 ;;
22786 *)
22787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22788 for as_dir in $PATH
22789 do
22790 IFS=$as_save_IFS
22791 test -z "$as_dir" && as_dir=.
22792 for ac_exec_ext in '' $ac_executable_extensions; do
22793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22794 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22796 break 2
22797 fi
22798 done
22799 done
22800 IFS=$as_save_IFS
22801
22802 ;;
22803 esac
22804 fi
22805 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22806 if test -n "$gcc_cv_nm"; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22808 $as_echo "$gcc_cv_nm" >&6; }
22809 else
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22811 $as_echo "no" >&6; }
22812 fi
22813
22814
22815 fi
22816 fi
22817
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22819 $as_echo_n "checking what nm to use... " >&6; }
22820 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22821 # Single tree build which includes binutils.
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22823 $as_echo "newly built nm" >&6; }
22824 in_tree_nm=yes
22825 else
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22827 $as_echo "$gcc_cv_nm" >&6; }
22828 in_tree_nm=no
22829 fi
22830
22831 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22832
22833 case "$ORIGINAL_NM_FOR_TARGET" in
22834 ./nm | ./nm$build_exeext) ;;
22835 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22836 ;;
22837 esac
22838
22839
22840 # Figure out what objdump we will be using.
22841 if ${gcc_cv_objdump+:} false; then :
22842
22843 else
22844
22845 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22846 && test -f ../binutils/Makefile \
22847 && test x$build = x$host; then
22848 # Single tree build which includes binutils.
22849 gcc_cv_objdump=../binutils/objdump$build_exeext
22850 elif test -x objdump$build_exeext; then
22851 gcc_cv_objdump=./objdump$build_exeext
22852 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22853 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22854 else
22855 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22856 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22858 $as_echo_n "checking for $ac_word... " >&6; }
22859 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 case $gcc_cv_objdump in
22863 [\\/]* | ?:[\\/]*)
22864 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22865 ;;
22866 *)
22867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22868 for as_dir in $PATH
22869 do
22870 IFS=$as_save_IFS
22871 test -z "$as_dir" && as_dir=.
22872 for ac_exec_ext in '' $ac_executable_extensions; do
22873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22874 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22876 break 2
22877 fi
22878 done
22879 done
22880 IFS=$as_save_IFS
22881
22882 ;;
22883 esac
22884 fi
22885 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22886 if test -n "$gcc_cv_objdump"; then
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22888 $as_echo "$gcc_cv_objdump" >&6; }
22889 else
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891 $as_echo "no" >&6; }
22892 fi
22893
22894
22895 fi
22896 fi
22897
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22899 $as_echo_n "checking what objdump to use... " >&6; }
22900 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22901 # Single tree build which includes binutils.
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22903 $as_echo "newly built objdump" >&6; }
22904 elif test x$gcc_cv_objdump = x; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22906 $as_echo "not found" >&6; }
22907 else
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22909 $as_echo "$gcc_cv_objdump" >&6; }
22910 fi
22911
22912 # Figure out what readelf we will be using.
22913 if ${gcc_cv_readelf+:} false; then :
22914
22915 else
22916
22917 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22918 && test -f ../binutils/Makefile \
22919 && test x$build = x$host; then
22920 # Single tree build which includes binutils.
22921 gcc_cv_readelf=../binutils/readelf$build_exeext
22922 elif test -x readelf$build_exeext; then
22923 gcc_cv_readelf=./readelf$build_exeext
22924 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22925 gcc_cv_readelf="$READELF_FOR_TARGET"
22926 else
22927 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22928 set dummy $READELF_FOR_TARGET; ac_word=$2
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22930 $as_echo_n "checking for $ac_word... " >&6; }
22931 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22932 $as_echo_n "(cached) " >&6
22933 else
22934 case $gcc_cv_readelf in
22935 [\\/]* | ?:[\\/]*)
22936 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22937 ;;
22938 *)
22939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22940 for as_dir in $PATH
22941 do
22942 IFS=$as_save_IFS
22943 test -z "$as_dir" && as_dir=.
22944 for ac_exec_ext in '' $ac_executable_extensions; do
22945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22946 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22948 break 2
22949 fi
22950 done
22951 done
22952 IFS=$as_save_IFS
22953
22954 ;;
22955 esac
22956 fi
22957 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22958 if test -n "$gcc_cv_readelf"; then
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22960 $as_echo "$gcc_cv_readelf" >&6; }
22961 else
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963 $as_echo "no" >&6; }
22964 fi
22965
22966
22967 fi
22968 fi
22969
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22971 $as_echo_n "checking what readelf to use... " >&6; }
22972 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22973 # Single tree build which includes binutils.
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22975 $as_echo "newly built readelf" >&6; }
22976 elif test x$gcc_cv_readelf = x; then
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22978 $as_echo "not found" >&6; }
22979 else
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22981 $as_echo "$gcc_cv_readelf" >&6; }
22982 fi
22983
22984 # Figure out what otool we will be using.
22985 if ${gcc_cv_otool+:} false; then :
22986
22987 else
22988
22989 if test -x otool$build_exeext; then
22990 gcc_cv_otool=./otool$build_exeext
22991 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22992 gcc_cv_otool="$OTOOL_FOR_TARGET"
22993 else
22994 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22995 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22997 $as_echo_n "checking for $ac_word... " >&6; }
22998 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22999 $as_echo_n "(cached) " >&6
23000 else
23001 case $gcc_cv_otool in
23002 [\\/]* | ?:[\\/]*)
23003 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23004 ;;
23005 *)
23006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23007 for as_dir in $PATH
23008 do
23009 IFS=$as_save_IFS
23010 test -z "$as_dir" && as_dir=.
23011 for ac_exec_ext in '' $ac_executable_extensions; do
23012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23013 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23015 break 2
23016 fi
23017 done
23018 done
23019 IFS=$as_save_IFS
23020
23021 ;;
23022 esac
23023 fi
23024 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23025 if test -n "$gcc_cv_otool"; then
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23027 $as_echo "$gcc_cv_otool" >&6; }
23028 else
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23031 fi
23032
23033
23034 fi
23035 fi
23036
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23038 $as_echo_n "checking what otool to use... " >&6; }
23039 if test x$gcc_cv_otool = x; then
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23041 $as_echo "not found" >&6; }
23042 else
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23044 $as_echo "$gcc_cv_otool" >&6; }
23045 fi
23046
23047 # Figure out what assembler alignment features are present.
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23049 $as_echo_n "checking assembler flags... " >&6; }
23050 if ${gcc_cv_as_flags+:} false; then :
23051 $as_echo_n "(cached) " >&6
23052 else
23053 case "$target" in
23054 i[34567]86-*-linux*)
23055 gcc_cv_as_flags=--32
23056 ;;
23057 x86_64-*-linux-gnux32)
23058 gcc_cv_as_flags=--x32
23059 ;;
23060 x86_64-*-linux*)
23061 gcc_cv_as_flags=--64
23062 ;;
23063 powerpc*-*-darwin*)
23064 gcc_cv_as_flags="-arch ppc"
23065 ;;
23066 *)
23067 gcc_cv_as_flags=" "
23068 ;;
23069 esac
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23072 $as_echo "$gcc_cv_as_flags" >&6; }
23073
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23075 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23076 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078 else
23079 gcc_cv_as_balign_and_p2align=no
23080 if test $in_tree_gas = yes; then
23081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23082 then gcc_cv_as_balign_and_p2align=yes
23083 fi
23084 elif test x$gcc_cv_as != x; then
23085 $as_echo '.balign 4
23086 .p2align 2' > conftest.s
23087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }
23093 then
23094 gcc_cv_as_balign_and_p2align=yes
23095 else
23096 echo "configure: failed program was" >&5
23097 cat conftest.s >&5
23098 fi
23099 rm -f conftest.o conftest.s
23100 fi
23101 fi
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23103 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23104 if test $gcc_cv_as_balign_and_p2align = yes; then
23105
23106 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23107
23108 fi
23109
23110
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23112 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23113 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 gcc_cv_as_max_skip_p2align=no
23117 if test $in_tree_gas = yes; then
23118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23119 then gcc_cv_as_max_skip_p2align=yes
23120 fi
23121 elif test x$gcc_cv_as != x; then
23122 $as_echo '.p2align 4,,7' > conftest.s
23123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128 test $ac_status = 0; }; }
23129 then
23130 gcc_cv_as_max_skip_p2align=yes
23131 else
23132 echo "configure: failed program was" >&5
23133 cat conftest.s >&5
23134 fi
23135 rm -f conftest.o conftest.s
23136 fi
23137 fi
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23139 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23140 if test $gcc_cv_as_max_skip_p2align = yes; then
23141
23142 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23143
23144 fi
23145
23146
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23148 $as_echo_n "checking assembler for .literal16... " >&6; }
23149 if ${gcc_cv_as_literal16+:} false; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 gcc_cv_as_literal16=no
23153 if test $in_tree_gas = yes; then
23154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23155 then gcc_cv_as_literal16=yes
23156 fi
23157 elif test x$gcc_cv_as != x; then
23158 $as_echo '.literal16' > conftest.s
23159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23165 then
23166 gcc_cv_as_literal16=yes
23167 else
23168 echo "configure: failed program was" >&5
23169 cat conftest.s >&5
23170 fi
23171 rm -f conftest.o conftest.s
23172 fi
23173 fi
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23175 $as_echo "$gcc_cv_as_literal16" >&6; }
23176 if test $gcc_cv_as_literal16 = yes; then
23177
23178 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23179
23180 fi
23181
23182
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23184 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23185 if ${gcc_cv_as_subsection_m1+:} false; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 gcc_cv_as_subsection_m1=no
23189 if test $in_tree_gas = yes; then
23190 if test $in_tree_gas_is_elf = yes \
23191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23192 then gcc_cv_as_subsection_m1=yes
23193 fi
23194 elif test x$gcc_cv_as != x; then
23195 $as_echo 'conftest_label1: .word 0
23196 .subsection -1
23197 conftest_label2: .word 0
23198 .previous' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 if test x$gcc_cv_nm != x; then
23207 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23208 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23209 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23210 then :
23211 else gcc_cv_as_subsection_m1=yes
23212 fi
23213 rm -f conftest.nm1 conftest.nm2
23214 fi
23215 else
23216 echo "configure: failed program was" >&5
23217 cat conftest.s >&5
23218 fi
23219 rm -f conftest.o conftest.s
23220 fi
23221 fi
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23223 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23224 if test $gcc_cv_as_subsection_m1 = yes; then
23225
23226 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23227
23228 fi
23229
23230
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23232 $as_echo_n "checking assembler for .weak... " >&6; }
23233 if ${gcc_cv_as_weak+:} false; then :
23234 $as_echo_n "(cached) " >&6
23235 else
23236 gcc_cv_as_weak=no
23237 if test $in_tree_gas = yes; then
23238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23239 then gcc_cv_as_weak=yes
23240 fi
23241 elif test x$gcc_cv_as != x; then
23242 $as_echo ' .weak foobar' > conftest.s
23243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23249 then
23250 gcc_cv_as_weak=yes
23251 else
23252 echo "configure: failed program was" >&5
23253 cat conftest.s >&5
23254 fi
23255 rm -f conftest.o conftest.s
23256 fi
23257 fi
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23259 $as_echo "$gcc_cv_as_weak" >&6; }
23260 if test $gcc_cv_as_weak = yes; then
23261
23262 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23263
23264 fi
23265
23266
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23268 $as_echo_n "checking assembler for .weakref... " >&6; }
23269 if ${gcc_cv_as_weakref+:} false; then :
23270 $as_echo_n "(cached) " >&6
23271 else
23272 gcc_cv_as_weakref=no
23273 if test $in_tree_gas = yes; then
23274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23275 then gcc_cv_as_weakref=yes
23276 fi
23277 elif test x$gcc_cv_as != x; then
23278 $as_echo ' .weakref foobar, barfnot' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 gcc_cv_as_weakref=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23290 fi
23291 rm -f conftest.o conftest.s
23292 fi
23293 fi
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23295 $as_echo "$gcc_cv_as_weakref" >&6; }
23296 if test $gcc_cv_as_weakref = yes; then
23297
23298 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23299
23300 fi
23301
23302
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23304 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23305 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23306 $as_echo_n "(cached) " >&6
23307 else
23308 gcc_cv_as_nsubspa_comdat=no
23309 if test $in_tree_gas = yes; then
23310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23311 then gcc_cv_as_nsubspa_comdat=yes
23312 fi
23313 elif test x$gcc_cv_as != x; then
23314 $as_echo ' .SPACE $TEXT$
23315 .NSUBSPA $CODE$,COMDAT' > conftest.s
23316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }
23322 then
23323 gcc_cv_as_nsubspa_comdat=yes
23324 else
23325 echo "configure: failed program was" >&5
23326 cat conftest.s >&5
23327 fi
23328 rm -f conftest.o conftest.s
23329 fi
23330 fi
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23332 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23333 if test $gcc_cv_as_nsubspa_comdat = yes; then
23334
23335 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23336
23337 fi
23338
23339
23340 # .hidden needs to be supported in both the assembler and the linker,
23341 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23342 # This is irritatingly difficult to feature test for; we have to check the
23343 # date string after the version number. If we've got an in-tree
23344 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23345 # to be safe.
23346 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23347 case "${target}" in
23348 *-*-aix*)
23349 conftest_s=' .globl foobar,hidden'
23350 ;;
23351 *)
23352 conftest_s=' .hidden foobar
23353 foobar:'
23354 ;;
23355 esac
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23357 $as_echo_n "checking assembler for .hidden... " >&6; }
23358 if ${gcc_cv_as_hidden+:} false; then :
23359 $as_echo_n "(cached) " >&6
23360 else
23361 gcc_cv_as_hidden=no
23362 if test $in_tree_gas = yes; then
23363 if test $in_tree_gas_is_elf = yes \
23364 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23365 then gcc_cv_as_hidden=yes
23366 fi
23367 elif test x$gcc_cv_as != x; then
23368 $as_echo "$conftest_s" > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 gcc_cv_as_hidden=yes
23377 else
23378 echo "configure: failed program was" >&5
23379 cat conftest.s >&5
23380 fi
23381 rm -f conftest.o conftest.s
23382 fi
23383 fi
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23385 $as_echo "$gcc_cv_as_hidden" >&6; }
23386
23387
23388 case "${target}" in
23389 *-*-darwin*)
23390 # Darwin as has some visibility support, though with a different syntax.
23391 gcc_cv_as_hidden=yes
23392 ;;
23393 esac
23394
23395 # gnu_indirect_function type is an extension proposed at
23396 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23397 # selection of function implementation
23398 # Check whether --enable-gnu-indirect-function was given.
23399 if test "${enable_gnu_indirect_function+set}" = set; then :
23400 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23401 yes | no) ;;
23402 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23403 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23404 esac
23405 else
23406 enable_gnu_indirect_function="$default_gnu_indirect_function"
23407 fi
23408
23409
23410 case "${target}" in
23411 riscv*-*-linux*)
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23413 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23414 cat > conftest.s <<EOF
23415 .text
23416 .type foo_resolver, @function
23417 foo_resolver:
23418 ret
23419 .size foo_resolver, .-foo_resolver
23420
23421 .globl foo
23422 .type foo, %gnu_indirect_function
23423 .set foo, foo_resolver
23424
23425 .globl bar
23426 .type bar, @function
23427 bar:
23428 call foo
23429 ret
23430 .size bar, .-bar
23431 EOF
23432 if test x$gcc_cv_as != x \
23433 && test x$gcc_cv_ld != x \
23434 && test x$gcc_cv_readelf != x \
23435 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23436 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23437 && $gcc_cv_readelf --relocs --wide conftest \
23438 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23439 enable_gnu_indirect_function=yes
23440 fi
23441 rm -f conftest conftest.o conftest.s
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23443 $as_echo "$enable_gnu_indirect_function" >&6; }
23444 ;;
23445 esac
23446
23447 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23448
23449 cat >>confdefs.h <<_ACEOF
23450 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23451 _ACEOF
23452
23453
23454
23455 if test $in_tree_ld != yes ; then
23456 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23457 if echo "$ld_ver" | grep GNU > /dev/null; then
23458 if test x"$ld_is_gold" = xyes; then
23459 # GNU gold --version looks like this:
23460 #
23461 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23462 #
23463 # We extract the binutils version which is more familiar and specific
23464 # than the gold version.
23465 ld_vers=`echo $ld_ver | sed -n \
23466 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23467 else
23468 # GNU ld --version looks like this:
23469 #
23470 # GNU ld (GNU Binutils) 2.21.51.20110225
23471 ld_vers=`echo $ld_ver | sed -n \
23472 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23473 fi
23474 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'`
23475 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23476 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23477 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23478 else
23479 case "${target}" in
23480 *-*-solaris2*)
23481 # Solaris 2 ld -V output looks like this for a regular version:
23482 #
23483 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23484 #
23485 # but test versions add stuff at the end:
23486 #
23487 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23488 #
23489 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23490 # numbers can be used in ld.so.1 feature checks even if a different
23491 # linker is configured.
23492 ld_ver=`$gcc_cv_ld -V 2>&1`
23493 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23494 ld_vers=`echo $ld_ver | sed -n \
23495 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23496 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23497 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23498 fi
23499 ;;
23500 esac
23501 fi
23502 fi
23503
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23505 $as_echo_n "checking linker for .hidden support... " >&6; }
23506 if ${gcc_cv_ld_hidden+:} false; then :
23507 $as_echo_n "(cached) " >&6
23508 else
23509 if test $in_tree_ld = yes ; then
23510 gcc_cv_ld_hidden=no
23511 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 \
23512 && test $in_tree_ld_is_elf = yes; then
23513 gcc_cv_ld_hidden=yes
23514 fi
23515 else
23516 gcc_cv_ld_hidden=yes
23517 if test x"$ld_is_gold" = xyes; then
23518 :
23519 elif echo "$ld_ver" | grep GNU > /dev/null; then
23520 if test 0"$ld_date" -lt 20020404; then
23521 if test -n "$ld_date"; then
23522 # If there was date string, but was earlier than 2002-04-04, fail
23523 gcc_cv_ld_hidden=no
23524 elif test -z "$ld_vers"; then
23525 # If there was no date string nor ld version number, something is wrong
23526 gcc_cv_ld_hidden=no
23527 else
23528 test -z "$ld_vers_patch" && ld_vers_patch=0
23529 if test "$ld_vers_major" -lt 2; then
23530 gcc_cv_ld_hidden=no
23531 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23532 gcc_cv_ld_hidden="no"
23533 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23534 gcc_cv_ld_hidden=no
23535 fi
23536 fi
23537 fi
23538 else
23539 case "${target}" in
23540 *-*-aix[789]*)
23541 gcc_cv_ld_hidden=yes
23542 ;;
23543 *-*-darwin*)
23544 # Darwin ld has some visibility support.
23545 gcc_cv_ld_hidden=yes
23546 ;;
23547 hppa64*-*-hpux* | ia64*-*-hpux*)
23548 gcc_cv_ld_hidden=yes
23549 ;;
23550 *-*-solaris2*)
23551 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23552 # .symbolic was only added in Solaris 9 12/02.
23553 gcc_cv_ld_hidden=yes
23554 ;;
23555 *)
23556 gcc_cv_ld_hidden=no
23557 ;;
23558 esac
23559 fi
23560 fi
23561 fi
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23563 $as_echo "$gcc_cv_ld_hidden" >&6; }
23564 libgcc_visibility=no
23565
23566
23567 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23568 libgcc_visibility=yes
23569
23570 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23571
23572 fi
23573
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23575 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23576 gcc_cv_ld_ro_rw_mix=unknown
23577 if test $in_tree_ld = yes ; then
23578 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 \
23579 && test $in_tree_ld_is_elf = yes; then
23580 gcc_cv_ld_ro_rw_mix=read-write
23581 fi
23582 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23583 echo '.section myfoosect, "a"' > conftest1.s
23584 echo '.section myfoosect, "aw"' > conftest2.s
23585 echo '.byte 1' >> conftest2.s
23586 echo '.section myfoosect, "a"' > conftest3.s
23587 echo '.byte 0' >> conftest3.s
23588 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23589 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23590 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23591 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23592 conftest2.o conftest3.o > /dev/null 2>&1; then
23593 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23594 | sed -e '/myfoosect/!d' -e N`
23595 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23596 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23597 gcc_cv_ld_ro_rw_mix=read-only
23598 else
23599 gcc_cv_ld_ro_rw_mix=read-write
23600 fi
23601 fi
23602 fi
23603 rm -f conftest.* conftest[123].*
23604 fi
23605 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23606
23607 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23608
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23611 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23612
23613 # Check whether --enable-initfini-array was given.
23614 if test "${enable_initfini_array+set}" = set; then :
23615 enableval=$enable_initfini_array;
23616 else
23617
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23619 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23620 if ${gcc_cv_initfini_array+:} false; then :
23621 $as_echo_n "(cached) " >&6
23622 else
23623 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23624 case "${target}" in
23625 ia64-*)
23626 if test "$cross_compiling" = yes; then :
23627 gcc_cv_initfini_array=no
23628 else
23629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23631
23632 #ifndef __ELF__
23633 #error Not an ELF OS
23634 #endif
23635 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23636 if it can be used. */
23637 static int x = -1;
23638 int main (void) { return x; }
23639 int foo (void) { x = 0; }
23640 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23641
23642 _ACEOF
23643 if ac_fn_cxx_try_run "$LINENO"; then :
23644 gcc_cv_initfini_array=yes
23645 else
23646 gcc_cv_initfini_array=no
23647 fi
23648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23649 conftest.$ac_objext conftest.beam conftest.$ac_ext
23650 fi
23651 ;;
23652 *)
23653 gcc_cv_initfini_array=no
23654 if test $in_tree_ld = yes ; then
23655 if test "$gcc_cv_gld_major_version" -eq 2 \
23656 -a "$gcc_cv_gld_minor_version" -ge 22 \
23657 -o "$gcc_cv_gld_major_version" -gt 2 \
23658 && test $in_tree_ld_is_elf = yes; then
23659 gcc_cv_initfini_array=yes
23660 fi
23661 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23662 case $target:$gas in
23663 *:yes)
23664 sh_flags='"a"'
23665 sh_type='%progbits'
23666 ;;
23667 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23668 sh_flags='"a"'
23669 sh_type='@progbits'
23670 ;;
23671 sparc*-*-solaris2*:no)
23672 sh_flags='#alloc'
23673 sh_type='#progbits'
23674 sh_quote='"'
23675 ;;
23676 esac
23677 case "$target:$gnu_ld" in
23678 *:yes)
23679 cat > conftest.s <<EOF
23680 .section .dtors,$sh_flags,$sh_type
23681 .balign 4
23682 .byte 'A', 'A', 'A', 'A'
23683 .section .ctors,$sh_flags,$sh_type
23684 .balign 4
23685 .byte 'B', 'B', 'B', 'B'
23686 .section .fini_array.65530,$sh_flags,$sh_type
23687 .balign 4
23688 .byte 'C', 'C', 'C', 'C'
23689 .section .init_array.65530,$sh_flags,$sh_type
23690 .balign 4
23691 .byte 'D', 'D', 'D', 'D'
23692 .section .dtors.64528,$sh_flags,$sh_type
23693 .balign 4
23694 .byte 'E', 'E', 'E', 'E'
23695 .section .ctors.64528,$sh_flags,$sh_type
23696 .balign 4
23697 .byte 'F', 'F', 'F', 'F'
23698 .section .fini_array.01005,$sh_flags,$sh_type
23699 .balign 4
23700 .byte 'G', 'G', 'G', 'G'
23701 .section .init_array.01005,$sh_flags,$sh_type
23702 .balign 4
23703 .byte 'H', 'H', 'H', 'H'
23704 .text
23705 .globl _start
23706 _start:
23707 EOF
23708 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23709 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23710 && $gcc_cv_objdump -s -j .init_array conftest \
23711 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23712 && $gcc_cv_objdump -s -j .fini_array conftest \
23713 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23714 gcc_cv_initfini_array=yes
23715 fi
23716 ;;
23717 *-*-solaris2*:no)
23718 # When Solaris ld added constructor priority support, it was
23719 # decided to only handle .init_array.N/.fini_array.N since
23720 # there was no need for backwards compatibility with
23721 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23722 # sections with correct execution order resp. to
23723 # .init_array/.fini_array, while gld merges them into
23724 # .init_array/.fini_array.
23725 cat > conftest.s <<EOF
23726 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23727 .align 4
23728 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23729 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23730 .align 4
23731 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23732 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23733 .align 4
23734 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23735 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23736 .align 4
23737 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23738 .text
23739 .globl _start
23740 _start:
23741 EOF
23742 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23743 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23744 && $gcc_cv_objdump -s -j .init_array conftest \
23745 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23746 && $gcc_cv_objdump -s -j .fini_array conftest \
23747 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23748 gcc_cv_initfini_array=yes
23749 fi
23750 ;;
23751 esac
23752 rm -f conftest conftest.*
23753 fi
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756
23757 #ifndef __ELF__
23758 # error Not an ELF OS
23759 #endif
23760 #include <stdlib.h>
23761 #if defined __GLIBC_PREREQ
23762 # if __GLIBC_PREREQ (2, 4)
23763 # else
23764 # error GLIBC 2.4 required
23765 # endif
23766 #else
23767 # if defined __sun__ && defined __svr4__
23768 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23769 # else
23770 # error The C library not known to support .init_array/.fini_array
23771 # endif
23772 #endif
23773
23774 _ACEOF
23775 if ac_fn_cxx_try_cpp "$LINENO"; then :
23776
23777 else
23778 gcc_cv_initfini_array=no
23779 fi
23780 rm -f conftest.err conftest.i conftest.$ac_ext;;
23781 esac
23782 else
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23784 $as_echo_n "checking cross compile... guessing... " >&6; }
23785 gcc_cv_initfini_array=no
23786 fi
23787 fi
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23789 $as_echo "$gcc_cv_initfini_array" >&6; }
23790 enable_initfini_array=$gcc_cv_initfini_array
23791
23792 fi
23793
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23797 _ACEOF
23798
23799
23800
23801 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23803 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23804 if ${gcc_cv_as_leb128+:} false; then :
23805 $as_echo_n "(cached) " >&6
23806 else
23807 gcc_cv_as_leb128=no
23808 if test $in_tree_gas = yes; then
23809 if test $in_tree_gas_is_elf = yes \
23810 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23811 then gcc_cv_as_leb128=yes
23812 fi
23813 elif test x$gcc_cv_as != x; then
23814 $as_echo ' .data
23815 .uleb128 L2 - L1
23816 L1:
23817 .uleb128 1280
23818 .sleb128 -1010
23819 L2:' > conftest.s
23820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825 test $ac_status = 0; }; }
23826 then
23827 # GAS versions before 2.11 do not support uleb128,
23828 # despite appearing to.
23829 # ??? There exists an elf-specific test that will crash
23830 # the assembler. Perhaps it's better to figure out whether
23831 # arbitrary sections are supported and try the test.
23832 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23833 if echo "$as_ver" | grep GNU > /dev/null; then
23834 as_vers=`echo $as_ver | sed -n \
23835 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23836 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23837 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23838 if test $as_major -eq 2 && test $as_minor -lt 11
23839 then :
23840 else gcc_cv_as_leb128=yes
23841 fi
23842 fi
23843 else
23844 echo "configure: failed program was" >&5
23845 cat conftest.s >&5
23846 fi
23847 rm -f conftest.o conftest.s
23848 fi
23849 fi
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23851 $as_echo "$gcc_cv_as_leb128" >&6; }
23852 if test $gcc_cv_as_leb128 = yes; then
23853
23854 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23855
23856 fi
23857 if test $gcc_cv_as_leb128 != yes; then
23858
23859 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23860
23861 fi
23862
23863 # Determine if an .eh_frame section is read-only.
23864 gcc_fn_eh_frame_ro () {
23865 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23866 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23867 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23868 }
23869
23870 # Check if we have assembler support for unwind directives.
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23872 $as_echo_n "checking assembler for cfi directives... " >&6; }
23873 if ${gcc_cv_as_cfi_directive+:} false; then :
23874 $as_echo_n "(cached) " >&6
23875 else
23876 gcc_cv_as_cfi_directive=no
23877 if test x$gcc_cv_as != x; then
23878 $as_echo ' .text
23879 .cfi_startproc
23880 .cfi_offset 0, 0
23881 .cfi_same_value 1
23882 .cfi_def_cfa 1, 2
23883 .cfi_escape 1, 2, 3, 4, 5
23884 .cfi_endproc' > conftest.s
23885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23890 test $ac_status = 0; }; }
23891 then
23892 case "$target" in
23893 *-*-solaris*)
23894 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23895 # read-only and read-write sections, we need to make sure that the
23896 # assembler used emits read-write .eh_frame sections.
23897 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23898 gcc_cv_as_cfi_directive=yes
23899 elif test "x$gcc_cv_objdump" = x; then
23900 # No objdump, err on the side of caution.
23901 gcc_cv_as_cfi_directive=no
23902 else
23903 if test x$gas = xyes; then
23904 as_32_opt="--32"
23905 as_64_opt="--64"
23906 else
23907 as_32_opt="-m32"
23908 as_64_opt="-m64"
23909 fi
23910 case "$target" in
23911 sparc*-*-solaris2.*)
23912 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23913 if gcc_fn_eh_frame_ro $as_32_opt \
23914 || gcc_fn_eh_frame_ro $as_64_opt; then
23915 gcc_cv_as_cfi_directive=no
23916 else
23917 gcc_cv_as_cfi_directive=yes
23918 fi
23919 ;;
23920 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23921 # On Solaris/x86, make sure that GCC and assembler agree on using
23922 # read-only .eh_frame sections for 64-bit.
23923 if gcc_fn_eh_frame_ro $as_32_opt; then
23924 gcc_cv_as_cfi_directive=no
23925 elif gcc_fn_eh_frame_ro $as_64_opt; then
23926 gcc_cv_as_cfi_directive=yes
23927 else
23928 gcc_cv_as_cfi_directive=no
23929 fi
23930 ;;
23931 esac
23932 fi
23933 ;;
23934 *-*-*)
23935 gcc_cv_as_cfi_directive=yes
23936 ;;
23937 esac
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23941 fi
23942 rm -f conftest.o conftest.s
23943 fi
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23946 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23947
23948
23949 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23951 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23952 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_cfi_advance_working=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo ' .text
23958 .cfi_startproc
23959 .cfi_adjust_cfa_offset 64
23960 .skip 75040, 0
23961 .cfi_adjust_cfa_offset 128
23962 .cfi_endproc' > conftest.s
23963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968 test $ac_status = 0; }; }
23969 then
23970
23971 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23972 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23973 gcc_cv_as_cfi_advance_working=yes
23974 fi
23975
23976 else
23977 echo "configure: failed program was" >&5
23978 cat conftest.s >&5
23979 fi
23980 rm -f conftest.o conftest.s
23981 fi
23982 fi
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23984 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23985
23986
23987 else
23988 # no objdump, err on the side of caution
23989 gcc_cv_as_cfi_advance_working=no
23990 fi
23991
23992
23993 cat >>confdefs.h <<_ACEOF
23994 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23995 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23996 _ACEOF
23997
23998
23999
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24001 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24002 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 gcc_cv_as_cfi_personality_directive=no
24006 if test x$gcc_cv_as != x; then
24007 $as_echo ' .text
24008 .cfi_startproc
24009 .cfi_personality 0, symbol
24010 .cfi_endproc' > conftest.s
24011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016 test $ac_status = 0; }; }
24017 then
24018 gcc_cv_as_cfi_personality_directive=yes
24019 else
24020 echo "configure: failed program was" >&5
24021 cat conftest.s >&5
24022 fi
24023 rm -f conftest.o conftest.s
24024 fi
24025 fi
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24027 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24028
24029
24030
24031 cat >>confdefs.h <<_ACEOF
24032 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24033 _ACEOF
24034
24035
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24037 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24038 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24039 $as_echo_n "(cached) " >&6
24040 else
24041 gcc_cv_as_cfi_sections_directive=no
24042 if test x$gcc_cv_as != x; then
24043 $as_echo ' .text
24044 .cfi_sections .debug_frame, .eh_frame
24045 .cfi_startproc
24046 .cfi_endproc' > conftest.s
24047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052 test $ac_status = 0; }; }
24053 then
24054 case $target_os in
24055 win32 | pe | cygwin* | mingw32*)
24056 # Need to check that we generated the correct relocation for the
24057 # .debug_frame section. This was fixed for binutils 2.21.
24058 gcc_cv_as_cfi_sections_directive=no
24059 if test "x$gcc_cv_objdump" != x; then
24060 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24061 grep secrel > /dev/null; then
24062 gcc_cv_as_cfi_sections_directive=yes
24063 fi
24064 fi
24065 ;;
24066 *)
24067 gcc_cv_as_cfi_sections_directive=yes
24068 ;;
24069 esac
24070 else
24071 echo "configure: failed program was" >&5
24072 cat conftest.s >&5
24073 fi
24074 rm -f conftest.o conftest.s
24075 fi
24076 fi
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24078 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24079
24080
24081
24082
24083 cat >>confdefs.h <<_ACEOF
24084 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24085 _ACEOF
24086
24087
24088 # GAS versions up to and including 2.11.0 may mis-optimize
24089 # .eh_frame data.
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24091 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24092 if ${gcc_cv_as_eh_frame+:} false; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_eh_frame=no
24096 if test $in_tree_gas = yes; then
24097 if test $in_tree_gas_is_elf = yes \
24098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24099 then gcc_cv_as_eh_frame=yes
24100 fi
24101 elif test x$gcc_cv_as != x; then
24102 $as_echo ' .text
24103 .LFB1:
24104 .4byte 0
24105 .L1:
24106 .4byte 0
24107 .LFE1:
24108 .section .eh_frame,"aw",@progbits
24109 __FRAME_BEGIN__:
24110 .4byte .LECIE1-.LSCIE1
24111 .LSCIE1:
24112 .4byte 0x0
24113 .byte 0x1
24114 .ascii "z\0"
24115 .byte 0x1
24116 .byte 0x78
24117 .byte 0x1a
24118 .byte 0x0
24119 .byte 0x4
24120 .4byte 1
24121 .p2align 1
24122 .LECIE1:
24123 .LSFDE1:
24124 .4byte .LEFDE1-.LASFDE1
24125 .LASFDE1:
24126 .4byte .LASFDE1-__FRAME_BEGIN__
24127 .4byte .LFB1
24128 .4byte .LFE1-.LFB1
24129 .byte 0x4
24130 .4byte .LFE1-.LFB1
24131 .byte 0x4
24132 .4byte .L1-.LFB1
24133 .LEFDE1:' > conftest.s
24134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }
24140 then
24141 cat > conftest.lit <<EOF
24142 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24143 0010 01000000 12000000 18000000 00000000 ................
24144 0020 08000000 04080000 0044 .........D
24145 EOF
24146 cat > conftest.big <<EOF
24147 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24148 0010 00000001 00000012 00000018 00000000 ................
24149 0020 00000008 04000000 0844 .........D
24150 EOF
24151 # If the assembler didn't choke, and we can objdump,
24152 # and we got the correct data, then succeed.
24153 # The text in the here-document typically retains its unix-style line
24154 # endings, while the output of objdump will use host line endings.
24155 # Therefore, use diff -b for the comparisons.
24156 if test x$gcc_cv_objdump != x \
24157 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24158 | tail -3 > conftest.got \
24159 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24160 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24161 then
24162 gcc_cv_as_eh_frame=yes
24163 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165 (eval $ac_try) 2>&5
24166 ac_status=$?
24167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; }; then
24169 gcc_cv_as_eh_frame=buggy
24170 else
24171 # Uh oh, what do we do now?
24172 gcc_cv_as_eh_frame=no
24173 fi
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24177 fi
24178 rm -f conftest.o conftest.s
24179 fi
24180 fi
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24182 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24183
24184
24185
24186 if test $gcc_cv_as_eh_frame = buggy; then
24187
24188 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24189
24190 fi
24191
24192 # Test if the assembler supports the section flag 'e' or #exclude for
24193 # specifying an excluded section.
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24195 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24196 if ${gcc_cv_as_section_exclude_e+:} false; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 gcc_cv_as_section_exclude_e=no
24200 if test $in_tree_gas = yes; then
24201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24202 then gcc_cv_as_section_exclude_e=yes
24203 fi
24204 elif test x$gcc_cv_as != x; then
24205 $as_echo '.section foo1,"e"
24206 .byte 0,0,0,0' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24213 then
24214 gcc_cv_as_section_exclude_e=yes
24215 else
24216 echo "configure: failed program was" >&5
24217 cat conftest.s >&5
24218 fi
24219 rm -f conftest.o conftest.s
24220 fi
24221 fi
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24223 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24224
24225
24226 if test $gcc_cv_as_section_exclude_e = no; then
24227 case "${target}" in
24228 # Solaris as uses #exclude instead.
24229 *-*-solaris2*)
24230 case "${target}" in
24231 sparc*-*-solaris2*)
24232 conftest_s='.section "foo1", #exclude'
24233 ;;
24234 i?86-*-solaris2* | x86_64-*-solaris2*)
24235 conftest_s='.section foo1, #exclude'
24236 ;;
24237 esac
24238 ;;
24239 esac
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24241 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24242 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24243 $as_echo_n "(cached) " >&6
24244 else
24245 gcc_cv_as_section_exclude_hash=no
24246 if test x$gcc_cv_as != x; then
24247 $as_echo "$conftest_s
24248 .byte 0,0,0,0" > conftest.s
24249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24254 test $ac_status = 0; }; }
24255 then
24256 gcc_cv_as_section_exclude_hash=yes
24257 else
24258 echo "configure: failed program was" >&5
24259 cat conftest.s >&5
24260 fi
24261 rm -f conftest.o conftest.s
24262 fi
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24265 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24266
24267
24268 fi
24269
24270 cat >>confdefs.h <<_ACEOF
24271 #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`
24272 _ACEOF
24273
24274
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24276 $as_echo_n "checking assembler for section merging support... " >&6; }
24277 if ${gcc_cv_as_shf_merge+:} false; then :
24278 $as_echo_n "(cached) " >&6
24279 else
24280 gcc_cv_as_shf_merge=no
24281 if test $in_tree_gas = yes; then
24282 if test $in_tree_gas_is_elf = yes \
24283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24284 then gcc_cv_as_shf_merge=yes
24285 fi
24286 elif test x$gcc_cv_as != x; then
24287 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24294 then
24295 gcc_cv_as_shf_merge=yes
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24299 fi
24300 rm -f conftest.o conftest.s
24301 fi
24302 fi
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24304 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24305
24306
24307 if test $gcc_cv_as_shf_merge = no; then
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24309 $as_echo_n "checking assembler for section merging support... " >&6; }
24310 if ${gcc_cv_as_shf_merge+:} false; then :
24311 $as_echo_n "(cached) " >&6
24312 else
24313 gcc_cv_as_shf_merge=no
24314 if test $in_tree_gas = yes; then
24315 if test $in_tree_gas_is_elf = yes \
24316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24317 then gcc_cv_as_shf_merge=yes
24318 fi
24319 elif test x$gcc_cv_as != x; then
24320 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24327 then
24328 gcc_cv_as_shf_merge=yes
24329 else
24330 echo "configure: failed program was" >&5
24331 cat conftest.s >&5
24332 fi
24333 rm -f conftest.o conftest.s
24334 fi
24335 fi
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24337 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24338
24339
24340 fi
24341
24342 cat >>confdefs.h <<_ACEOF
24343 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24344 _ACEOF
24345
24346
24347 gcc_cv_ld_aligned_shf_merge=yes
24348 case "$target" in
24349 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24350 # alignment > 1.
24351 sparc*-*-solaris2.11*)
24352 if test x"$gnu_ld" = xno \
24353 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24354 gcc_cv_ld_aligned_shf_merge=no
24355 fi
24356 ;;
24357 esac
24358
24359 cat >>confdefs.h <<_ACEOF
24360 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24361 _ACEOF
24362
24363
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24365 $as_echo_n "checking assembler for stabs directive... " >&6; }
24366 if ${gcc_cv_as_stabs_directive+:} false; then :
24367 $as_echo_n "(cached) " >&6
24368 else
24369 gcc_cv_as_stabs_directive=no
24370 if test x$gcc_cv_as != x; then
24371 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 gcc_cv_as_stabs_directive=yes
24380 else
24381 echo "configure: failed program was" >&5
24382 cat conftest.s >&5
24383 fi
24384 rm -f conftest.o conftest.s
24385 fi
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24388 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24389 if test $gcc_cv_as_stabs_directive = yes; then
24390
24391 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24392
24393 fi
24394
24395
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24397 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24398 if ${gcc_cv_as_comdat_group+:} false; then :
24399 $as_echo_n "(cached) " >&6
24400 else
24401 gcc_cv_as_comdat_group=no
24402 if test $in_tree_gas = yes; then
24403 if test $in_tree_gas_is_elf = yes \
24404 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24405 then gcc_cv_as_comdat_group=yes
24406 fi
24407 elif test x$gcc_cv_as != x; then
24408 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24411 (eval $ac_try) 2>&5
24412 ac_status=$?
24413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24414 test $ac_status = 0; }; }
24415 then
24416 gcc_cv_as_comdat_group=yes
24417 else
24418 echo "configure: failed program was" >&5
24419 cat conftest.s >&5
24420 fi
24421 rm -f conftest.o conftest.s
24422 fi
24423 fi
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24425 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24426
24427
24428 if test $gcc_cv_as_comdat_group = yes; then
24429 gcc_cv_as_comdat_group_percent=no
24430 gcc_cv_as_comdat_group_group=no
24431 else
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24433 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24434 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_as_comdat_group_percent=no
24438 if test $in_tree_gas = yes; then
24439 if test $in_tree_gas_is_elf = yes \
24440 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24441 then gcc_cv_as_comdat_group_percent=yes
24442 fi
24443 elif test x$gcc_cv_as != x; then
24444 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24451 then
24452 gcc_cv_as_comdat_group_percent=yes
24453 else
24454 echo "configure: failed program was" >&5
24455 cat conftest.s >&5
24456 fi
24457 rm -f conftest.o conftest.s
24458 fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24461 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24462
24463
24464 if test $gcc_cv_as_comdat_group_percent = yes; then
24465 gcc_cv_as_comdat_group_group=no
24466 else
24467 case "${target}" in
24468 # Sun as uses a completely different syntax.
24469 *-*-solaris2*)
24470 case "${target}" in
24471 sparc*-*-solaris2*)
24472 conftest_s='
24473 .group foo,".text%foo",#comdat
24474 .section ".text%foo", #alloc,#execinstr,#progbits
24475 .globl foo
24476 foo:
24477 '
24478 ;;
24479 i?86-*-solaris2* | x86_64-*-solaris2*)
24480 conftest_s='
24481 .group foo,.text%foo,#comdat
24482 .section .text%foo, "ax", @progbits
24483 .globl foo
24484 foo:
24485 '
24486 ;;
24487 esac
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24489 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24490 if ${gcc_cv_as_comdat_group_group+:} false; then :
24491 $as_echo_n "(cached) " >&6
24492 else
24493 gcc_cv_as_comdat_group_group=no
24494 if test x$gcc_cv_as != x; then
24495 $as_echo "$conftest_s" > conftest.s
24496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; }
24502 then
24503 gcc_cv_as_comdat_group_group=yes
24504 else
24505 echo "configure: failed program was" >&5
24506 cat conftest.s >&5
24507 fi
24508 rm -f conftest.o conftest.s
24509 fi
24510 fi
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24512 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24513
24514
24515 ;;
24516 esac
24517 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24518 gcc_cv_as_comdat_group_group=no
24519 fi
24520 fi
24521 fi
24522 if test x"$ld_is_gold" = xyes; then
24523 comdat_group=yes
24524 elif test $in_tree_ld = yes ; then
24525 comdat_group=no
24526 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 \
24527 && test $in_tree_ld_is_elf = yes; then
24528 comdat_group=yes
24529 fi
24530 elif echo "$ld_ver" | grep GNU > /dev/null; then
24531 comdat_group=yes
24532 if test 0"$ld_date" -lt 20050308; then
24533 if test -n "$ld_date"; then
24534 # If there was date string, but was earlier than 2005-03-08, fail
24535 comdat_group=no
24536 elif test "$ld_vers_major" -lt 2; then
24537 comdat_group=no
24538 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24539 comdat_group=no
24540 fi
24541 fi
24542 else
24543 case "${target}" in
24544 *-*-solaris2.1[1-9]*)
24545 comdat_group=no
24546 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24547 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24548 # version 1.688.
24549 #
24550 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24551 # least ld version 1.2267.
24552 if test "$ld_vers_major" -gt 1; then
24553 comdat_group=yes
24554 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24555 comdat_group=yes
24556 elif test "$ld_vers_minor" -ge 2267; then
24557 comdat_group=yes
24558 fi
24559 ;;
24560 *)
24561 # Assume linkers other than GNU ld don't support COMDAT group.
24562 comdat_group=no
24563 ;;
24564 esac
24565 fi
24566 # Allow overriding the automatic COMDAT group tests above.
24567 # Check whether --enable-comdat was given.
24568 if test "${enable_comdat+set}" = set; then :
24569 enableval=$enable_comdat; comdat_group="$enable_comdat"
24570 fi
24571
24572 if test $comdat_group = no; then
24573 gcc_cv_as_comdat_group=no
24574 gcc_cv_as_comdat_group_percent=no
24575 gcc_cv_as_comdat_group_group=no
24576 fi
24577
24578 cat >>confdefs.h <<_ACEOF
24579 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24580 || test $gcc_cv_as_comdat_group_percent = yes \
24581 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24582 _ACEOF
24583
24584
24585 # Restrict this test to Solaris/x86: other targets define this statically.
24586 case "${target}" in
24587 i?86-*-solaris2* | x86_64-*-solaris2*)
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24589 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24590 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24591 hidden_linkonce=yes
24592 else
24593 case "${target}" in
24594 # Full support for hidden thunks in linkonce sections only appeared in
24595 # Solaris 11/OpenSolaris.
24596 *-*-solaris2.1[1-9]*)
24597 hidden_linkonce=yes
24598 ;;
24599 *)
24600 hidden_linkonce=no
24601 ;;
24602 esac
24603 fi
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24605 $as_echo "$hidden_linkonce" >&6; }
24606
24607 cat >>confdefs.h <<_ACEOF
24608 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24609 _ACEOF
24610
24611 ;;
24612 esac
24613
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24615 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24616 if ${gcc_cv_as_is_stmt+:} false; then :
24617 $as_echo_n "(cached) " >&6
24618 else
24619 gcc_cv_as_is_stmt=no
24620 if test $in_tree_gas = yes; then
24621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24622 then gcc_cv_as_is_stmt=yes
24623 fi
24624 elif test x$gcc_cv_as != x; then
24625 $as_echo ' .text
24626 .file 1 "conf.c"
24627 .loc 1 1 0 is_stmt 1' > conftest.s
24628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24633 test $ac_status = 0; }; }
24634 then
24635 gcc_cv_as_is_stmt=yes
24636 else
24637 echo "configure: failed program was" >&5
24638 cat conftest.s >&5
24639 fi
24640 rm -f conftest.o conftest.s
24641 fi
24642 fi
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24644 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24645 if test $gcc_cv_as_is_stmt = yes; then
24646
24647 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24648
24649 fi
24650
24651
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24653 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24654 if ${gcc_cv_as_discriminator+:} false; then :
24655 $as_echo_n "(cached) " >&6
24656 else
24657 gcc_cv_as_discriminator=no
24658 if test $in_tree_gas = yes; then
24659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24660 then gcc_cv_as_discriminator=yes
24661 fi
24662 elif test x$gcc_cv_as != x; then
24663 $as_echo ' .text
24664 .file 1 "conf.c"
24665 .loc 1 1 0 discriminator 1' > conftest.s
24666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }
24672 then
24673 gcc_cv_as_discriminator=yes
24674 else
24675 echo "configure: failed program was" >&5
24676 cat conftest.s >&5
24677 fi
24678 rm -f conftest.o conftest.s
24679 fi
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24682 $as_echo "$gcc_cv_as_discriminator" >&6; }
24683 if test $gcc_cv_as_discriminator = yes; then
24684
24685 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24686
24687 fi
24688
24689
24690 # Catch the newlib flag of the same name so we can gate GCC features on it.
24691 # Check whether --enable-newlib-nano-formatted-io was given.
24692 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24693 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24694 yes|no)
24695 ;;
24696 *)
24697 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24698 ;;
24699 esac
24700 fi
24701
24702
24703 # Thread-local storage - the check is heavily parameterized.
24704 conftest_s=
24705 tls_first_major=
24706 tls_first_minor=
24707 tls_as_opt=
24708 case "$target" in
24709 alpha*-*-*)
24710 conftest_s='
24711 .section ".tdata","awT",@progbits
24712 foo: .long 25
24713 .text
24714 ldq $27,__tls_get_addr($29) !literal!1
24715 lda $16,foo($29) !tlsgd!1
24716 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24717 ldq $27,__tls_get_addr($29) !literal!2
24718 lda $16,foo($29) !tlsldm!2
24719 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24720 ldq $1,foo($29) !gotdtprel
24721 ldah $2,foo($29) !dtprelhi
24722 lda $3,foo($2) !dtprello
24723 lda $4,foo($29) !dtprel
24724 ldq $1,foo($29) !gottprel
24725 ldah $2,foo($29) !tprelhi
24726 lda $3,foo($2) !tprello
24727 lda $4,foo($29) !tprel'
24728 tls_first_major=2
24729 tls_first_minor=13
24730 tls_as_opt=--fatal-warnings
24731 ;;
24732 arc*-*-*)
24733 conftest_s='
24734 add_s r0,r0, @foo@tpoff'
24735 tls_first_major=2
24736 tls_first_minor=23
24737 ;;
24738 cris-*-*|crisv32-*-*)
24739 conftest_s='
24740 .section ".tdata","awT",@progbits
24741 x: .long 25
24742 .text
24743 move.d x:IE,$r10
24744 nop'
24745 tls_first_major=2
24746 tls_first_minor=20
24747 tls_as_opt=--fatal-warnings
24748 ;;
24749 frv*-*-*)
24750 conftest_s='
24751 .section ".tdata","awT",@progbits
24752 x: .long 25
24753 .text
24754 call #gettlsoff(x)'
24755 tls_first_major=2
24756 tls_first_minor=14
24757 ;;
24758 hppa*-*-linux*)
24759 conftest_s='
24760 t1: .reg %r20
24761 t2: .reg %r21
24762 gp: .reg %r19
24763 .section ".tdata","awT",@progbits
24764 foo: .long 25
24765 .text
24766 .align 4
24767 addil LT%foo-$tls_gdidx$,gp
24768 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24769 b __tls_get_addr
24770 nop
24771 addil LT%foo-$tls_ldidx$,gp
24772 b __tls_get_addr
24773 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24774 addil LR%foo-$tls_dtpoff$,%ret0
24775 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24776 mfctl %cr27,%t1
24777 addil LT%foo-$tls_ieoff$,gp
24778 ldw RT%foo-$tls_ieoff$(%r1),%t2
24779 add %t1,%t2,%t3
24780 mfctl %cr27,%t1
24781 addil LR%foo-$tls_leoff$,%t1
24782 ldo RR%foo-$tls_leoff$(%r1),%t2'
24783 tls_first_major=2
24784 tls_first_minor=15
24785 tls_as_opt=--fatal-warnings
24786 ;;
24787 arm*-*-*)
24788 conftest_s='
24789 .section ".tdata","awT",%progbits
24790 foo: .long 25
24791 .text
24792 .word foo(gottpoff)
24793 .word foo(tpoff)
24794 .word foo(tlsgd)
24795 .word foo(tlsldm)
24796 .word foo(tlsldo)'
24797 tls_first_major=2
24798 tls_first_minor=17
24799 ;;
24800 i[34567]86-*-* | x86_64-*-*)
24801 case "$target" in
24802 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24803 on_solaris=yes
24804 ;;
24805 *)
24806 on_solaris=no
24807 ;;
24808 esac
24809 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24810 conftest_s='
24811 .section .tdata,"awt",@progbits'
24812 tls_first_major=0
24813 tls_first_minor=0
24814 tls_section_flag=t
24815
24816 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24817
24818 else
24819 conftest_s='
24820 .section ".tdata","awT",@progbits'
24821 tls_first_major=2
24822 tls_first_minor=14
24823 tls_section_flag=T
24824 tls_as_opt="--fatal-warnings"
24825 fi
24826 case "$target" in
24827 i[34567]86-*-*)
24828 if test x$on_solaris = xyes; then
24829 case $gas_flag in
24830 yes) tls_as_opt="$tls_as_opt --32" ;;
24831 esac
24832 fi
24833 conftest_s="$conftest_s
24834 foo: .long 25
24835 .text
24836 movl %gs:0, %eax
24837 leal foo@tlsgd(,%ebx,1), %eax
24838 leal foo@tlsldm(%ebx), %eax
24839 leal foo@dtpoff(%eax), %edx
24840 movl foo@gottpoff(%ebx), %eax
24841 subl foo@gottpoff(%ebx), %eax
24842 addl foo@gotntpoff(%ebx), %eax
24843 movl foo@indntpoff, %eax
24844 movl \$foo@tpoff, %eax
24845 subl \$foo@tpoff, %eax
24846 leal foo@ntpoff(%ecx), %eax"
24847 ;;
24848 x86_64-*-*)
24849 if test x$on_solaris = xyes; then
24850 case $gas_flag in
24851 yes) tls_as_opt="$tls_as_opt --64" ;;
24852 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24853 esac
24854 fi
24855 conftest_s="$conftest_s
24856 foo: .long 25
24857 .text
24858 movq %fs:0, %rax
24859 leaq foo@tlsgd(%rip), %rdi
24860 leaq foo@tlsld(%rip), %rdi
24861 leaq foo@dtpoff(%rax), %rdx
24862 movq foo@gottpoff(%rip), %rax
24863 movq \$foo@tpoff, %rax"
24864 ;;
24865 esac
24866 ;;
24867 ia64-*-*)
24868 conftest_s='
24869 .section ".tdata","awT",@progbits
24870 foo: data8 25
24871 .text
24872 addl r16 = @ltoff(@dtpmod(foo#)), gp
24873 addl r17 = @ltoff(@dtprel(foo#)), gp
24874 addl r18 = @ltoff(@tprel(foo#)), gp
24875 addl r19 = @dtprel(foo#), gp
24876 adds r21 = @dtprel(foo#), r13
24877 movl r23 = @dtprel(foo#)
24878 addl r20 = @tprel(foo#), gp
24879 adds r22 = @tprel(foo#), r13
24880 movl r24 = @tprel(foo#)'
24881 tls_first_major=2
24882 tls_first_minor=13
24883 tls_as_opt=--fatal-warnings
24884 ;;
24885 microblaze*-*-*)
24886 conftest_s='
24887 .section .tdata,"awT",@progbits
24888 x:
24889 .word 2
24890 .text
24891 addik r5,r20,x@TLSGD
24892 addik r5,r20,x@TLSLDM'
24893 tls_first_major=2
24894 tls_first_minor=20
24895 tls_as_opt='--fatal-warnings'
24896 ;;
24897 mips*-*-*)
24898 conftest_s='
24899 .section .tdata,"awT",@progbits
24900 x:
24901 .word 2
24902 .text
24903 addiu $4, $28, %tlsgd(x)
24904 addiu $4, $28, %tlsldm(x)
24905 lui $4, %dtprel_hi(x)
24906 addiu $4, $4, %dtprel_lo(x)
24907 lw $4, %gottprel(x)($28)
24908 lui $4, %tprel_hi(x)
24909 addiu $4, $4, %tprel_lo(x)'
24910 tls_first_major=2
24911 tls_first_minor=16
24912 tls_as_opt='-32 --fatal-warnings'
24913 ;;
24914 m68k-*-*)
24915 conftest_s='
24916 .section .tdata,"awT",@progbits
24917 x:
24918 .word 2
24919 .text
24920 foo:
24921 move.l x@TLSGD(%a5),%a0
24922 move.l x@TLSLDM(%a5),%a0
24923 move.l x@TLSLDO(%a5),%a0
24924 move.l x@TLSIE(%a5),%a0
24925 move.l x@TLSLE(%a5),%a0'
24926 tls_first_major=2
24927 tls_first_minor=19
24928 tls_as_opt='--fatal-warnings'
24929 ;;
24930 nios2-*-*)
24931 conftest_s='
24932 .section ".tdata","awT",@progbits'
24933 tls_first_major=2
24934 tls_first_minor=23
24935 tls_as_opt="--fatal-warnings"
24936 ;;
24937 aarch64*-*-*)
24938 conftest_s='
24939 .section ".tdata","awT",%progbits
24940 foo: .long 25
24941 .text
24942 adrp x0, :tlsgd:x
24943 add x0, x0, #:tlsgd_lo12:x
24944 bl __tls_get_addr
24945 nop'
24946 tls_first_major=2
24947 tls_first_minor=20
24948 tls_as_opt='--fatal-warnings'
24949 ;;
24950 or1k*-*-*)
24951 conftest_s='
24952 .section ".tdata","awT",@progbits
24953 foo: .long 25
24954 .text
24955 l.movhi r3, tpoffha(foo)
24956 l.add r3, r3, r10
24957 l.lwz r4, tpofflo(foo)(r3)'
24958 tls_first_major=2
24959 tls_first_minor=30
24960 tls_as_opt=--fatal-warnings
24961 ;;
24962 powerpc-ibm-aix*)
24963 conftest_s='
24964 .extern __get_tpointer
24965 .toc
24966 LC..1:
24967 .tc a[TC],a[TL]@le
24968 .csect .text[PR]
24969 .tlstest:
24970 lwz 9,LC..1(2)
24971 bla __get_tpointer
24972 lwzx 3,9,3
24973 .globl a
24974 .csect a[TL],4
24975 a:
24976 .space 4'
24977 tls_first_major=0
24978 tls_first_minor=0
24979 ;;
24980 powerpc64*-*-*)
24981 conftest_s='
24982 .section ".tdata","awT",@progbits
24983 .align 3
24984 ld0: .space 8
24985 ld1: .space 8
24986 x1: .space 8
24987 x2: .space 8
24988 x3: .space 8
24989 .text
24990 addi 3,2,ld0@got@tlsgd
24991 bl .__tls_get_addr
24992 nop
24993 addi 3,2,ld1@toc
24994 bl .__tls_get_addr
24995 nop
24996 addi 3,2,x1@got@tlsld
24997 bl .__tls_get_addr
24998 nop
24999 addi 9,3,x1@dtprel
25000 bl .__tls_get_addr
25001 nop
25002 addis 9,3,x2@dtprel@ha
25003 addi 9,9,x2@dtprel@l
25004 bl .__tls_get_addr
25005 nop
25006 ld 9,x3@got@dtprel(2)
25007 add 9,9,3
25008 bl .__tls_get_addr
25009 nop'
25010 tls_first_major=2
25011 tls_first_minor=14
25012 tls_as_opt="-a64 --fatal-warnings"
25013 ;;
25014 powerpc*-*-*)
25015 conftest_s='
25016 .section ".tdata","awT",@progbits
25017 .align 2
25018 ld0: .space 4
25019 ld1: .space 4
25020 x1: .space 4
25021 x2: .space 4
25022 x3: .space 4
25023 .text
25024 addi 3,31,ld0@got@tlsgd
25025 bl __tls_get_addr
25026 addi 3,31,x1@got@tlsld
25027 bl __tls_get_addr
25028 addi 9,3,x1@dtprel
25029 addis 9,3,x2@dtprel@ha
25030 addi 9,9,x2@dtprel@l
25031 lwz 9,x3@got@tprel(31)
25032 add 9,9,x@tls
25033 addi 9,2,x1@tprel
25034 addis 9,2,x2@tprel@ha
25035 addi 9,9,x2@tprel@l'
25036 tls_first_major=2
25037 tls_first_minor=14
25038 tls_as_opt="-a32 --fatal-warnings"
25039 ;;
25040 riscv*-*-*)
25041 conftest_s='
25042 .section .tdata,"awT",@progbits
25043 x: .word 2
25044 .text
25045 la.tls.gd a0,x
25046 call __tls_get_addr'
25047 tls_first_major=2
25048 tls_first_minor=21
25049 tls_as_opt='--fatal-warnings'
25050 ;;
25051 s390-*-*)
25052 conftest_s='
25053 .section ".tdata","awT",@progbits
25054 foo: .long 25
25055 .text
25056 .long foo@TLSGD
25057 .long foo@TLSLDM
25058 .long foo@DTPOFF
25059 .long foo@NTPOFF
25060 .long foo@GOTNTPOFF
25061 .long foo@INDNTPOFF
25062 l %r1,foo@GOTNTPOFF(%r12)
25063 l %r1,0(%r1):tls_load:foo
25064 bas %r14,0(%r1,%r13):tls_gdcall:foo
25065 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25066 tls_first_major=2
25067 tls_first_minor=14
25068 tls_as_opt="-m31 --fatal-warnings"
25069 ;;
25070 s390x-*-*)
25071 conftest_s='
25072 .section ".tdata","awT",@progbits
25073 foo: .long 25
25074 .text
25075 .quad foo@TLSGD
25076 .quad foo@TLSLDM
25077 .quad foo@DTPOFF
25078 .quad foo@NTPOFF
25079 .quad foo@GOTNTPOFF
25080 lg %r1,foo@GOTNTPOFF(%r12)
25081 larl %r1,foo@INDNTPOFF
25082 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25083 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25084 tls_first_major=2
25085 tls_first_minor=14
25086 tls_as_opt="-m64 -Aesame --fatal-warnings"
25087 ;;
25088 sh-*-* | sh[123456789lbe]*-*-*)
25089 conftest_s='
25090 .section ".tdata","awT",@progbits
25091 foo: .long 25
25092 .text
25093 .long foo@TLSGD
25094 .long foo@TLSLDM
25095 .long foo@DTPOFF
25096 .long foo@GOTTPOFF
25097 .long foo@TPOFF'
25098 tls_first_major=2
25099 tls_first_minor=13
25100 tls_as_opt=--fatal-warnings
25101 ;;
25102 sparc*-*-*)
25103 case "$target" in
25104 sparc*-sun-solaris2.*)
25105 on_solaris=yes
25106 ;;
25107 *)
25108 on_solaris=no
25109 ;;
25110 esac
25111 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25112 conftest_s='
25113 .section ".tdata",#alloc,#write,#tls'
25114 tls_first_major=0
25115 tls_first_minor=0
25116 else
25117 conftest_s='
25118 .section ".tdata","awT",@progbits'
25119 tls_first_major=2
25120 tls_first_minor=14
25121 tls_as_opt="-32 --fatal-warnings"
25122 fi
25123 conftest_s="$conftest_s
25124 foo: .long 25
25125 .text
25126 sethi %tgd_hi22(foo), %o0
25127 add %o0, %tgd_lo10(foo), %o1
25128 add %l7, %o1, %o0, %tgd_add(foo)
25129 call __tls_get_addr, %tgd_call(foo)
25130 sethi %tldm_hi22(foo), %l1
25131 add %l1, %tldm_lo10(foo), %l2
25132 add %l7, %l2, %o0, %tldm_add(foo)
25133 call __tls_get_addr, %tldm_call(foo)
25134 sethi %tldo_hix22(foo), %l3
25135 xor %l3, %tldo_lox10(foo), %l4
25136 add %o0, %l4, %l5, %tldo_add(foo)
25137 sethi %tie_hi22(foo), %o3
25138 add %o3, %tie_lo10(foo), %o3
25139 ld [%l7 + %o3], %o2, %tie_ld(foo)
25140 add %g7, %o2, %o4, %tie_add(foo)
25141 sethi %tle_hix22(foo), %l1
25142 xor %l1, %tle_lox10(foo), %o5
25143 ld [%g7 + %o5], %o1"
25144 ;;
25145 tilepro*-*-*)
25146 conftest_s='
25147 .section ".tdata","awT",@progbits
25148 foo: .long 25
25149 .text
25150 addli r0, zero, tls_gd(foo)
25151 auli r0, zero, tls_gd_ha16(foo)
25152 addli r0, r0, tls_gd_lo16(foo)
25153 jal __tls_get_addr
25154 addli r0, zero, tls_ie(foo)
25155 auli r0, r0, tls_ie_ha16(foo)
25156 addli r0, r0, tls_ie_lo16(foo)'
25157 tls_first_major=2
25158 tls_first_minor=22
25159 tls_as_opt="--fatal-warnings"
25160 ;;
25161 tilegx*-*-*)
25162 conftest_s='
25163 .section ".tdata","awT",@progbits
25164 foo: .long 25
25165 .text
25166 shl16insli r0, zero, hw0_last_tls_gd(foo)
25167 shl16insli r0, zero, hw1_last_tls_gd(foo)
25168 shl16insli r0, r0, hw0_tls_gd(foo)
25169 jal __tls_get_addr
25170 shl16insli r0, zero, hw1_last_tls_ie(foo)
25171 shl16insli r0, r0, hw0_tls_ie(foo)'
25172 tls_first_major=2
25173 tls_first_minor=22
25174 tls_as_opt="--fatal-warnings"
25175 ;;
25176 xtensa*-*-*)
25177 conftest_s='
25178 .section ".tdata","awT",@progbits
25179 foo: .long 25
25180 .text
25181 movi a8, foo@TLSFUNC
25182 movi a10, foo@TLSARG
25183 callx8.tls a8, foo@TLSCALL'
25184 tls_first_major=2
25185 tls_first_minor=19
25186 ;;
25187 esac
25188 set_have_as_tls=no
25189 if test "x$enable_tls" = xno ; then
25190 : # TLS explicitly disabled.
25191 elif test "x$enable_tls" = xyes ; then
25192 set_have_as_tls=yes # TLS explicitly enabled.
25193 elif test -z "$tls_first_major"; then
25194 : # If we don't have a check, assume no support.
25195 else
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25197 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25198 if ${gcc_cv_as_tls+:} false; then :
25199 $as_echo_n "(cached) " >&6
25200 else
25201 gcc_cv_as_tls=no
25202 if test $in_tree_gas = yes; then
25203 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25204 then gcc_cv_as_tls=yes
25205 fi
25206 elif test x$gcc_cv_as != x; then
25207 $as_echo "$conftest_s" > conftest.s
25208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25210 (eval $ac_try) 2>&5
25211 ac_status=$?
25212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25213 test $ac_status = 0; }; }
25214 then
25215 gcc_cv_as_tls=yes
25216 else
25217 echo "configure: failed program was" >&5
25218 cat conftest.s >&5
25219 fi
25220 rm -f conftest.o conftest.s
25221 fi
25222 fi
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25224 $as_echo "$gcc_cv_as_tls" >&6; }
25225 if test $gcc_cv_as_tls = yes; then
25226 set_have_as_tls=yes
25227 fi
25228
25229 fi
25230 if test $set_have_as_tls = yes ; then
25231
25232 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25233
25234 fi
25235
25236 # Target-specific assembler checks.
25237
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25239 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25240 gcc_cv_ld_static_dynamic=no
25241 gcc_cv_ld_static_option='-Bstatic'
25242 gcc_cv_ld_dynamic_option='-Bdynamic'
25243 if test $in_tree_ld = yes ; then
25244 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
25245 gcc_cv_ld_static_dynamic=yes
25246 fi
25247 elif test x$gcc_cv_ld != x; then
25248 # Check if linker supports -Bstatic/-Bdynamic option
25249 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25250 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25251 gcc_cv_ld_static_dynamic=yes
25252 else
25253 case "$target" in
25254 # AIX ld uses -b flags
25255 *-*-aix4.[23]* | *-*-aix[5-9]*)
25256 gcc_cv_ld_static_dynamic=yes
25257 gcc_cv_ld_static_option="-bstatic"
25258 gcc_cv_ld_dynamic_option="-bdynamic"
25259 ;;
25260 # HP-UX ld uses -a flags to select between shared and archive.
25261 *-*-hpux*)
25262 if test x"$gnu_ld" = xno; then
25263 gcc_cv_ld_static_dynamic=yes
25264 gcc_cv_ld_static_option="-aarchive_shared"
25265 gcc_cv_ld_dynamic_option="-adefault"
25266 fi
25267 ;;
25268 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25269 *-*-solaris2*)
25270 gcc_cv_ld_static_dynamic=yes
25271 ;;
25272 esac
25273 fi
25274 fi
25275 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25276
25277 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25278
25279
25280 cat >>confdefs.h <<_ACEOF
25281 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25282 _ACEOF
25283
25284
25285 cat >>confdefs.h <<_ACEOF
25286 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25287 _ACEOF
25288
25289 fi
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25291 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25292
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25294 $as_echo_n "checking linker --version-script option... " >&6; }
25295 gcc_cv_ld_version_script=no
25296 ld_version_script_option=''
25297 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25298 gcc_cv_ld_version_script=yes
25299 ld_version_script_option='--version-script'
25300 elif test x$gcc_cv_ld != x; then
25301 case "$target" in
25302 # Solaris 2 ld always supports -M. It also supports a subset of
25303 # --version-script since Solaris 11.4, but requires
25304 # -z gnu-version-script-compat to activate.
25305 *-*-solaris2*)
25306 gcc_cv_ld_version_script=yes
25307 ld_version_script_option='-M'
25308 ;;
25309 esac
25310 fi
25311 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25313 $as_echo "$gcc_cv_ld_version_script" >&6; }
25314
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25317 $as_echo_n "checking linker soname option... " >&6; }
25318 gcc_cv_ld_soname=no
25319 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25320 gcc_cv_ld_soname=yes
25321 ld_soname_option='-soname'
25322 elif test x$gcc_cv_ld != x; then
25323 case "$target" in
25324 *-*-darwin*)
25325 gcc_cv_ld_soname=yes
25326 ld_soname_option='-install_name'
25327 ;;
25328 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25329 # ld compatiblity since some Solaris 10 update.
25330 *-*-solaris2*)
25331 gcc_cv_ld_soname=yes
25332 ld_soname_option='-h'
25333 ;;
25334 esac
25335 fi
25336 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25338 $as_echo "$gcc_cv_ld_soname" >&6; }
25339
25340
25341 if test x"$demangler_in_ld" = xyes; then
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25343 $as_echo_n "checking linker --demangle support... " >&6; }
25344 gcc_cv_ld_demangle=no
25345 if test $in_tree_ld = yes; then
25346 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 \
25347 gcc_cv_ld_demangle=yes
25348 fi
25349 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25350 # Check if the GNU linker supports --demangle option
25351 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25352 gcc_cv_ld_demangle=yes
25353 fi
25354 fi
25355 if test x"$gcc_cv_ld_demangle" = xyes; then
25356
25357 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25358
25359 fi
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25361 $as_echo "$gcc_cv_ld_demangle" >&6; }
25362 fi
25363
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25365 $as_echo_n "checking linker plugin support... " >&6; }
25366 gcc_cv_lto_plugin=0
25367 if test -f liblto_plugin.la; then
25368 save_ld_ver="$ld_ver"
25369 save_ld_vers_major="$ld_vers_major"
25370 save_ld_vers_minor="$ld_vers_minor"
25371 save_ld_is_gold="$ld_is_gold"
25372
25373 ld_is_gold=no
25374
25375 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25376 ld_ver="GNU ld"
25377 # FIXME: ld_is_gold?
25378 ld_vers_major="$gcc_cv_gld_major_version"
25379 ld_vers_minor="$gcc_cv_gld_minor_version"
25380 else
25381 # Determine plugin linker version.
25382 # FIXME: Partial duplicate from above, generalize.
25383 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25384 if echo "$ld_ver" | grep GNU > /dev/null; then
25385 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25386 ld_is_gold=yes
25387 ld_vers=`echo $ld_ver | sed -n \
25388 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25389 else
25390 ld_vers=`echo $ld_ver | sed -n \
25391 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25392 fi
25393 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25394 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25395 fi
25396 fi
25397
25398 # Determine plugin support.
25399 if echo "$ld_ver" | grep GNU > /dev/null; then
25400 # Require GNU ld or gold 2.21+ for plugin support by default.
25401 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25402 gcc_cv_lto_plugin=2
25403 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25404 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25405 gcc_cv_lto_plugin=1
25406 fi
25407 fi
25408
25409 ld_ver="$save_ld_ver"
25410 ld_vers_major="$save_ld_vers_major"
25411 ld_vers_minor="$save_ld_vers_minor"
25412 ld_is_gold="$save_ld_is_gold"
25413 fi
25414
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25417 _ACEOF
25418
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25420 $as_echo "$gcc_cv_lto_plugin" >&6; }
25421
25422 # Target OS-specific assembler checks.
25423
25424 case "$target_os" in
25425 darwin*)
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25427 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25428 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25429 $as_echo_n "(cached) " >&6
25430 else
25431 gcc_cv_as_mmacosx_version_min=no
25432 if test x$gcc_cv_as != x; then
25433 $as_echo '.text' > conftest.s
25434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25440 then
25441 gcc_cv_as_mmacosx_version_min=yes
25442 else
25443 echo "configure: failed program was" >&5
25444 cat conftest.s >&5
25445 fi
25446 rm -f conftest.o conftest.s
25447 fi
25448 fi
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25450 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25451 if test $gcc_cv_as_mmacosx_version_min = yes; then
25452
25453 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25454
25455 fi
25456
25457 ;;
25458 esac
25459
25460 # Target CPU-specific assembler checks.
25461
25462 case "$target" in
25463 aarch64*-*-*)
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25465 $as_echo_n "checking assembler for -mabi option... " >&6; }
25466 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25467 $as_echo_n "(cached) " >&6
25468 else
25469 gcc_cv_as_aarch64_mabi=no
25470 if test x$gcc_cv_as != x; then
25471 $as_echo '.text' > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_aarch64_mabi=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25483 fi
25484 rm -f conftest.o conftest.s
25485 fi
25486 fi
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25488 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25489
25490
25491 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25492
25493 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25494
25495 else
25496 if test x$with_abi = xilp32; then
25497 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25498 Upgrade the Assembler." "$LINENO" 5
25499 fi
25500 if test x"$with_multilib_list" = xdefault; then
25501 TM_MULTILIB_CONFIG=lp64
25502 else
25503 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25504 for aarch64_multilib in ${aarch64_multilibs}; do
25505 case ${aarch64_multilib} in
25506 ilp32)
25507 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25508 Upgrade the Assembler." "$LINENO" 5
25509 ;;
25510 *)
25511 ;;
25512 esac
25513 done
25514 fi
25515 fi
25516 # Check if we have binutils support for relocations types needed by -fpic
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25518 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25519 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25520 $as_echo_n "(cached) " >&6
25521 else
25522 gcc_cv_as_aarch64_picreloc=no
25523 if test x$gcc_cv_as != x; then
25524 $as_echo '
25525 .text
25526 ldr x0, [x2, #:gotpage_lo15:globalsym]
25527 ' > conftest.s
25528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25533 test $ac_status = 0; }; }
25534 then
25535 gcc_cv_as_aarch64_picreloc=yes
25536 else
25537 echo "configure: failed program was" >&5
25538 cat conftest.s >&5
25539 fi
25540 rm -f conftest.o conftest.s
25541 fi
25542 fi
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25544 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25545 if test $gcc_cv_as_aarch64_picreloc = yes; then
25546
25547 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25548
25549 fi
25550
25551 # Enable Branch Target Identification Mechanism and Return Address
25552 # Signing by default.
25553 # Check whether --enable-standard-branch-protection was given.
25554 if test "${enable_standard_branch_protection+set}" = set; then :
25555 enableval=$enable_standard_branch_protection;
25556 case $enableval in
25557 yes)
25558 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25559 ;;
25560 no)
25561 ;;
25562 *)
25563 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25564 Valid choices are 'yes' and 'no'." "$LINENO" 5
25565 ;;
25566 esac
25567
25568 fi
25569
25570 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25571 # Check whether --enable-fix-cortex-a53-835769 was given.
25572 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25573 enableval=$enable_fix_cortex_a53_835769;
25574 case $enableval in
25575 yes)
25576 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25577 ;;
25578 no)
25579 ;;
25580 *)
25581 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25582 Valid choices are 'yes' and 'no'." "$LINENO" 5
25583 ;;
25584
25585 esac
25586
25587 fi
25588
25589 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25590 # Check whether --enable-fix-cortex-a53-843419 was given.
25591 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25592 enableval=$enable_fix_cortex_a53_843419;
25593 case $enableval in
25594 yes)
25595 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25596 ;;
25597 no)
25598 ;;
25599 *)
25600 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25601 Valid choices are 'yes' and 'no'." "$LINENO" 5
25602 ;;
25603
25604 esac
25605
25606 fi
25607
25608 ;;
25609
25610 # All TARGET_ABI_OSF targets.
25611 alpha*-*-linux* | alpha*-*-*bsd*)
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25613 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25614 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_alpha_explicit_relocs=no
25618 if test $in_tree_gas = yes; then
25619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25620 then gcc_cv_as_alpha_explicit_relocs=yes
25621 fi
25622 elif test x$gcc_cv_as != x; then
25623 $as_echo ' .set nomacro
25624 .text
25625 extbl $3, $2, $3 !lituse_bytoff!1
25626 ldq $2, a($29) !literal!1
25627 ldq $4, b($29) !literal!2
25628 ldq_u $3, 0($2) !lituse_base!1
25629 ldq $27, f($29) !literal!5
25630 jsr $26, ($27), f !lituse_jsr!5
25631 ldah $29, 0($26) !gpdisp!3
25632 lda $0, c($29) !gprel
25633 ldah $1, d($29) !gprelhigh
25634 lda $1, d($1) !gprellow
25635 lda $29, 0($29) !gpdisp!3' > conftest.s
25636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638 (eval $ac_try) 2>&5
25639 ac_status=$?
25640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641 test $ac_status = 0; }; }
25642 then
25643 gcc_cv_as_alpha_explicit_relocs=yes
25644 else
25645 echo "configure: failed program was" >&5
25646 cat conftest.s >&5
25647 fi
25648 rm -f conftest.o conftest.s
25649 fi
25650 fi
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25652 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25653 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25654
25655 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25656
25657 fi
25658
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25660 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25661 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25662 $as_echo_n "(cached) " >&6
25663 else
25664 gcc_cv_as_alpha_jsrdirect_relocs=no
25665 if test $in_tree_gas = yes; then
25666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25667 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25668 fi
25669 elif test x$gcc_cv_as != x; then
25670 $as_echo ' .set nomacro
25671 .text
25672 ldq $27, a($29) !literal!1
25673 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25676 (eval $ac_try) 2>&5
25677 ac_status=$?
25678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25679 test $ac_status = 0; }; }
25680 then
25681 gcc_cv_as_alpha_jsrdirect_relocs=yes
25682 else
25683 echo "configure: failed program was" >&5
25684 cat conftest.s >&5
25685 fi
25686 rm -f conftest.o conftest.s
25687 fi
25688 fi
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25690 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25691 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25692
25693 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25694
25695 fi
25696
25697 ;;
25698
25699 avr-*-*)
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25701 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25702 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25703 $as_echo_n "(cached) " >&6
25704 else
25705 gcc_cv_as_avr_mlink_relax=no
25706 if test x$gcc_cv_as != x; then
25707 $as_echo '.text' > conftest.s
25708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25710 (eval $ac_try) 2>&5
25711 ac_status=$?
25712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25713 test $ac_status = 0; }; }
25714 then
25715 gcc_cv_as_avr_mlink_relax=yes
25716 else
25717 echo "configure: failed program was" >&5
25718 cat conftest.s >&5
25719 fi
25720 rm -f conftest.o conftest.s
25721 fi
25722 fi
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25724 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25725 if test $gcc_cv_as_avr_mlink_relax = yes; then
25726
25727 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25728
25729 fi
25730
25731
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25733 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25734 if ${gcc_cv_as_avr_mrmw+:} false; then :
25735 $as_echo_n "(cached) " >&6
25736 else
25737 gcc_cv_as_avr_mrmw=no
25738 if test x$gcc_cv_as != x; then
25739 $as_echo '.text' > conftest.s
25740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; }
25746 then
25747 gcc_cv_as_avr_mrmw=yes
25748 else
25749 echo "configure: failed program was" >&5
25750 cat conftest.s >&5
25751 fi
25752 rm -f conftest.o conftest.s
25753 fi
25754 fi
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25756 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25757 if test $gcc_cv_as_avr_mrmw = yes; then
25758
25759 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25760
25761 fi
25762
25763
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25765 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25766 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25767 $as_echo_n "(cached) " >&6
25768 else
25769 gcc_cv_as_avr_mgccisr=no
25770 if test x$gcc_cv_as != x; then
25771 $as_echo '.text
25772 __gcc_isr 1
25773 __gcc_isr 2
25774 __gcc_isr 0,r24
25775 ' > conftest.s
25776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 then
25783 gcc_cv_as_avr_mgccisr=yes
25784 else
25785 echo "configure: failed program was" >&5
25786 cat conftest.s >&5
25787 fi
25788 rm -f conftest.o conftest.s
25789 fi
25790 fi
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25792 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25793 if test $gcc_cv_as_avr_mgccisr = yes; then
25794
25795 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25796
25797 fi
25798
25799
25800 # Check how default linker description file implements .rodata for
25801 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25802 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25804 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25805 cat > conftest.s <<EOF
25806 .section .rodata,"a",@progbits
25807 .global xxvaryy
25808 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25809 xxvaryy:
25810 .word 1
25811 EOF
25812 rm -f conftest.nm
25813 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25819 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25825 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25831 if test -s conftest.nm
25832 then
25833 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25835 $as_echo "yes" >&6; }
25836
25837 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25838
25839 else
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25841 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25842 echo "$as_me: nm output was" >&5
25843 cat conftest.nm >&5
25844 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25845 { $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
25846 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25847 fi
25848 else
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25850 $as_echo "test failed" >&6; }
25851 echo "$as_me: failed program was" >&5
25852 cat conftest.s >&5
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25854 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25855 fi
25856 rm -f conftest.s conftest.o conftest.elf conftest.nm
25857 ;;
25858
25859 cris-*-*)
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25861 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25862 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25863 $as_echo_n "(cached) " >&6
25864 else
25865 gcc_cv_as_cris_no_mul_bug=no
25866 if test $in_tree_gas = yes; then
25867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25868 then gcc_cv_as_cris_no_mul_bug=yes
25869 fi
25870 elif test x$gcc_cv_as != x; then
25871 $as_echo '.text' > conftest.s
25872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25878 then
25879 gcc_cv_as_cris_no_mul_bug=yes
25880 else
25881 echo "configure: failed program was" >&5
25882 cat conftest.s >&5
25883 fi
25884 rm -f conftest.o conftest.s
25885 fi
25886 fi
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25888 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25889 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25890
25891 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25892
25893 fi
25894
25895 ;;
25896
25897 sparc*-*-*)
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25899 $as_echo_n "checking assembler for -relax option... " >&6; }
25900 if ${gcc_cv_as_sparc_relax+:} false; then :
25901 $as_echo_n "(cached) " >&6
25902 else
25903 gcc_cv_as_sparc_relax=no
25904 if test x$gcc_cv_as != x; then
25905 $as_echo '.text' > conftest.s
25906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25912 then
25913 gcc_cv_as_sparc_relax=yes
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25917 fi
25918 rm -f conftest.o conftest.s
25919 fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25922 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25923 if test $gcc_cv_as_sparc_relax = yes; then
25924
25925 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25926
25927 fi
25928
25929
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25931 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25932 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 gcc_cv_as_sparc_gotdata_op=no
25936 if test x$gcc_cv_as != x; then
25937 $as_echo '.text
25938 .align 4
25939 foo:
25940 nop
25941 bar:
25942 sethi %gdop_hix22(foo), %g1
25943 xor %g1, %gdop_lox10(foo), %g1
25944 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25951 then
25952 if test x$gcc_cv_ld != x \
25953 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25954 if test x$gcc_cv_objdump != x; then
25955 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25956 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25957 gcc_cv_as_sparc_gotdata_op=no
25958 else
25959 gcc_cv_as_sparc_gotdata_op=yes
25960 fi
25961 fi
25962 fi
25963 rm -f conftest
25964 else
25965 echo "configure: failed program was" >&5
25966 cat conftest.s >&5
25967 fi
25968 rm -f conftest.o conftest.s
25969 fi
25970 fi
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25972 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25973 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25974
25975 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25976
25977 fi
25978
25979
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25981 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25982 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25983 $as_echo_n "(cached) " >&6
25984 else
25985 gcc_cv_as_sparc_ua_pcrel=no
25986 if test x$gcc_cv_as != x; then
25987 $as_echo '.text
25988 foo:
25989 nop
25990 .data
25991 .align 4
25992 .byte 0
25993 .uaword %r_disp32(foo)' > conftest.s
25994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; }
26000 then
26001 if test x$gcc_cv_ld != x \
26002 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26003 gcc_cv_as_sparc_ua_pcrel=yes
26004 fi
26005 rm -f conftest
26006 else
26007 echo "configure: failed program was" >&5
26008 cat conftest.s >&5
26009 fi
26010 rm -f conftest.o conftest.s
26011 fi
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26014 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26015 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26016
26017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26018
26019
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26021 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26022 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_sparc_ua_pcrel_hidden=no
26026 if test x$gcc_cv_as != x; then
26027 $as_echo '.data
26028 .align 4
26029 .byte 0x31
26030 .uaword %r_disp32(foo)
26031 .byte 0x32, 0x33, 0x34
26032 .global foo
26033 .hidden foo
26034 foo:
26035 .skip 4' > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26044 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26045 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26046 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26047 if $gcc_cv_objdump -R conftest 2> /dev/null \
26048 | grep 'DISP32' > /dev/null 2>&1; then
26049 :
26050 else
26051 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26052 fi
26053 fi
26054 rm -f conftest
26055 else
26056 echo "configure: failed program was" >&5
26057 cat conftest.s >&5
26058 fi
26059 rm -f conftest.o conftest.s
26060 fi
26061 fi
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26063 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26064 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26065
26066 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26067
26068 fi
26069
26070
26071 fi
26072 # unaligned pcrel relocs
26073
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26075 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26076 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26077 $as_echo_n "(cached) " >&6
26078 else
26079 gcc_cv_as_sparc_offsetable_lo10=no
26080 if test x$gcc_cv_as != x; then
26081 $as_echo '.text
26082 or %g1, %lo(ab) + 12, %g1
26083 or %g1, %lo(ab + 12), %g1' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 if test x$gcc_cv_objdump != x \
26092 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26093 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26094 gcc_cv_as_sparc_offsetable_lo10=yes
26095 fi
26096 else
26097 echo "configure: failed program was" >&5
26098 cat conftest.s >&5
26099 fi
26100 rm -f conftest.o conftest.s
26101 fi
26102 fi
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26104 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26105 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26106
26107 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26108
26109 fi
26110
26111
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26113 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26114 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26115 $as_echo_n "(cached) " >&6
26116 else
26117 gcc_cv_as_sparc_fmaf=no
26118 if test x$gcc_cv_as != x; then
26119 $as_echo '.text
26120 .register %g2, #scratch
26121 .register %g3, #scratch
26122 .align 4
26123 fmaddd %f0, %f2, %f4, %f6
26124 addxccc %g1, %g2, %g3
26125 fsrl32 %f2, %f4, %f8
26126 fnaddd %f10, %f12, %f14' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_sparc_fmaf=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26138 fi
26139 rm -f conftest.o conftest.s
26140 fi
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26143 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26144 if test $gcc_cv_as_sparc_fmaf = yes; then
26145
26146 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26147
26148 fi
26149
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26152 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26153 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26154 $as_echo_n "(cached) " >&6
26155 else
26156 gcc_cv_as_sparc_sparc4=no
26157 if test x$gcc_cv_as != x; then
26158 $as_echo '.text
26159 .register %g2, #scratch
26160 .register %g3, #scratch
26161 .align 4
26162 cxbe %g2, %g3, 1f
26163 1: cwbneg %g2, %g3, 1f
26164 1: sha1
26165 md5
26166 aes_kexpand0 %f4, %f6, %f8
26167 des_round %f38, %f40, %f42, %f44
26168 camellia_f %f54, %f56, %f58, %f60
26169 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; }
26176 then
26177 gcc_cv_as_sparc_sparc4=yes
26178 else
26179 echo "configure: failed program was" >&5
26180 cat conftest.s >&5
26181 fi
26182 rm -f conftest.o conftest.s
26183 fi
26184 fi
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26186 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26187 if test $gcc_cv_as_sparc_sparc4 = yes; then
26188
26189 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26190
26191 fi
26192
26193
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26195 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26196 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26197 $as_echo_n "(cached) " >&6
26198 else
26199 gcc_cv_as_sparc_sparc5=no
26200 if test x$gcc_cv_as != x; then
26201 $as_echo '.text
26202 .register %g2, #scratch
26203 .register %g3, #scratch
26204 .align 4
26205 subxc %g1, %g2, %g3
26206 fpadd8 %f0, %f2, %f4' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_sparc_sparc5=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26218 fi
26219 rm -f conftest.o conftest.s
26220 fi
26221 fi
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26223 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26224 if test $gcc_cv_as_sparc_sparc5 = yes; then
26225
26226 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26227
26228 fi
26229
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26232 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26233 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26234 $as_echo_n "(cached) " >&6
26235 else
26236 gcc_cv_as_sparc_sparc6=no
26237 if test x$gcc_cv_as != x; then
26238 $as_echo '.text
26239 .register %g2, #scratch
26240 .register %g3, #scratch
26241 .align 4
26242 rd %entropy, %g1
26243 fpsll64x %f0, %f2, %f4' > conftest.s
26244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }
26250 then
26251 gcc_cv_as_sparc_sparc6=yes
26252 else
26253 echo "configure: failed program was" >&5
26254 cat conftest.s >&5
26255 fi
26256 rm -f conftest.o conftest.s
26257 fi
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26260 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26261 if test $gcc_cv_as_sparc_sparc6 = yes; then
26262
26263 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26264
26265 fi
26266
26267
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26269 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26270 if ${gcc_cv_as_sparc_leon+:} false; then :
26271 $as_echo_n "(cached) " >&6
26272 else
26273 gcc_cv_as_sparc_leon=no
26274 if test x$gcc_cv_as != x; then
26275 $as_echo '.text
26276 .register %g2, #scratch
26277 .register %g3, #scratch
26278 .align 4
26279 smac %g2, %g3, %g1
26280 umac %g2, %g3, %g1
26281 casa [%g2] 0xb, %g3, %g1' > conftest.s
26282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26288 then
26289 gcc_cv_as_sparc_leon=yes
26290 else
26291 echo "configure: failed program was" >&5
26292 cat conftest.s >&5
26293 fi
26294 rm -f conftest.o conftest.s
26295 fi
26296 fi
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26298 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26299 if test $gcc_cv_as_sparc_leon = yes; then
26300
26301 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26302
26303 fi
26304
26305 ;;
26306
26307 i[34567]86-*-* | x86_64-*-*)
26308 case $target_os in
26309 cygwin*)
26310 # Full C++ conformance when using a shared libstdc++-v3 requires some
26311 # support from the Cygwin DLL, which in more recent versions exports
26312 # wrappers to aid in interposing and redirecting operators new, delete,
26313 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26314 # are configuring for a version of Cygwin that exports the wrappers.
26315 if test x$host = x$target && test x$host_cpu = xi686; then
26316 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26317 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26318 gcc_ac_cygwin_dll_wrappers=yes
26319 else
26320 gcc_ac_cygwin_dll_wrappers=no
26321 fi
26322
26323 else
26324 # Can't check presence of libc functions during cross-compile, so
26325 # we just have to assume we're building for an up-to-date target.
26326 gcc_ac_cygwin_dll_wrappers=yes
26327 fi
26328
26329 cat >>confdefs.h <<_ACEOF
26330 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26331 _ACEOF
26332
26333 esac
26334 case $target_os in
26335 cygwin* | pe | mingw32*)
26336 # Recent binutils allows the three-operand form of ".comm" on PE. This
26337 # definition is used unconditionally to initialise the default state of
26338 # the target option variable that governs usage of the feature.
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26340 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26341 if ${gcc_cv_as_comm_has_align+:} false; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_comm_has_align=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26347 then gcc_cv_as_comm_has_align=yes
26348 fi
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo '.comm foo,1,32' > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_comm_has_align=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26362 fi
26363 rm -f conftest.o conftest.s
26364 fi
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26367 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26368
26369
26370
26371 cat >>confdefs.h <<_ACEOF
26372 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26373 _ACEOF
26374
26375 # Used for DWARF 2 in PE
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26377 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26378 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26379 $as_echo_n "(cached) " >&6
26380 else
26381 gcc_cv_as_ix86_pe_secrel32=no
26382 if test $in_tree_gas = yes; then
26383 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26384 then gcc_cv_as_ix86_pe_secrel32=yes
26385 fi
26386 elif test x$gcc_cv_as != x; then
26387 $as_echo '.text
26388 foo: nop
26389 .data
26390 .secrel32 foo' > conftest.s
26391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26397 then
26398 if test x$gcc_cv_ld != x \
26399 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26400 gcc_cv_as_ix86_pe_secrel32=yes
26401 fi
26402 rm -f conftest
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26406 fi
26407 rm -f conftest.o conftest.s
26408 fi
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26411 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26412 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26413
26414 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26415
26416 fi
26417
26418 # Test if the assembler supports the extended form of the .section
26419 # directive that specifies section alignment. LTO support uses this,
26420 # but normally only after installation, so we warn but don't fail the
26421 # configure if LTO is enabled but the assembler does not support it.
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26423 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26424 if ${gcc_cv_as_section_has_align+:} false; then :
26425 $as_echo_n "(cached) " >&6
26426 else
26427 gcc_cv_as_section_has_align=no
26428 if test $in_tree_gas = yes; then
26429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26430 then gcc_cv_as_section_has_align=yes
26431 fi
26432 elif test x$gcc_cv_as != x; then
26433 $as_echo '.section lto_test,"dr0"' > conftest.s
26434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; }
26440 then
26441 gcc_cv_as_section_has_align=yes
26442 else
26443 echo "configure: failed program was" >&5
26444 cat conftest.s >&5
26445 fi
26446 rm -f conftest.o conftest.s
26447 fi
26448 fi
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26450 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26451
26452
26453 if test x$gcc_cv_as_section_has_align != xyes; then
26454 case ",$enable_languages," in
26455 *,lto,*)
26456 { $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
26457 $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;}
26458 ;;
26459 esac
26460 fi
26461 ;;
26462 esac
26463
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26465 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26466 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26467 $as_echo_n "(cached) " >&6
26468 else
26469 gcc_cv_as_ix86_xbrace_comment=no
26470 if test x$gcc_cv_as != x; then
26471 $as_echo '.text' > conftest.s
26472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26477 test $ac_status = 0; }; }
26478 then
26479 gcc_cv_as_ix86_xbrace_comment=yes
26480 else
26481 echo "configure: failed program was" >&5
26482 cat conftest.s >&5
26483 fi
26484 rm -f conftest.o conftest.s
26485 fi
26486 fi
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26488 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26489 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26490
26491 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26492
26493 fi
26494
26495
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26497 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26498 if ${gcc_cv_as_ix86_filds+:} false; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_as_ix86_filds=no
26502 if test x$gcc_cv_as != x; then
26503 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26509 test $ac_status = 0; }; }
26510 then
26511 gcc_cv_as_ix86_filds=yes
26512 else
26513 echo "configure: failed program was" >&5
26514 cat conftest.s >&5
26515 fi
26516 rm -f conftest.o conftest.s
26517 fi
26518 fi
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26520 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26521 if test $gcc_cv_as_ix86_filds = yes; then
26522
26523 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26524
26525 fi
26526
26527
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26529 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26530 if ${gcc_cv_as_ix86_fildq+:} false; then :
26531 $as_echo_n "(cached) " >&6
26532 else
26533 gcc_cv_as_ix86_fildq=no
26534 if test x$gcc_cv_as != x; then
26535 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541 test $ac_status = 0; }; }
26542 then
26543 gcc_cv_as_ix86_fildq=yes
26544 else
26545 echo "configure: failed program was" >&5
26546 cat conftest.s >&5
26547 fi
26548 rm -f conftest.o conftest.s
26549 fi
26550 fi
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26552 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26553 if test $gcc_cv_as_ix86_fildq = yes; then
26554
26555 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26556
26557 fi
26558
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26561 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26562 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_ix86_cmov_sun_syntax=no
26566 if test x$gcc_cv_as != x; then
26567 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573 test $ac_status = 0; }; }
26574 then
26575 gcc_cv_as_ix86_cmov_sun_syntax=yes
26576 else
26577 echo "configure: failed program was" >&5
26578 cat conftest.s >&5
26579 fi
26580 rm -f conftest.o conftest.s
26581 fi
26582 fi
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26584 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26585 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26586
26587 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26588
26589 fi
26590
26591
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26593 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26594 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26595 $as_echo_n "(cached) " >&6
26596 else
26597 gcc_cv_as_ix86_ffreep=no
26598 if test x$gcc_cv_as != x; then
26599 $as_echo 'ffreep %st(1)' > conftest.s
26600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26605 test $ac_status = 0; }; }
26606 then
26607 gcc_cv_as_ix86_ffreep=yes
26608 else
26609 echo "configure: failed program was" >&5
26610 cat conftest.s >&5
26611 fi
26612 rm -f conftest.o conftest.s
26613 fi
26614 fi
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26616 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26617 if test $gcc_cv_as_ix86_ffreep = yes; then
26618
26619 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26620
26621 fi
26622
26623
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26625 $as_echo_n "checking assembler for .quad directive... " >&6; }
26626 if ${gcc_cv_as_ix86_quad+:} false; then :
26627 $as_echo_n "(cached) " >&6
26628 else
26629 gcc_cv_as_ix86_quad=no
26630 if test x$gcc_cv_as != x; then
26631 $as_echo '.quad 0' > conftest.s
26632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26634 (eval $ac_try) 2>&5
26635 ac_status=$?
26636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26637 test $ac_status = 0; }; }
26638 then
26639 gcc_cv_as_ix86_quad=yes
26640 else
26641 echo "configure: failed program was" >&5
26642 cat conftest.s >&5
26643 fi
26644 rm -f conftest.o conftest.s
26645 fi
26646 fi
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26648 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26649 if test $gcc_cv_as_ix86_quad = yes; then
26650
26651 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26652
26653 fi
26654
26655
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26657 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26658 if ${gcc_cv_as_ix86_sahf+:} false; then :
26659 $as_echo_n "(cached) " >&6
26660 else
26661 gcc_cv_as_ix86_sahf=no
26662 if test x$gcc_cv_as != x; then
26663 $as_echo '.code64
26664 sahf' > conftest.s
26665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26670 test $ac_status = 0; }; }
26671 then
26672 gcc_cv_as_ix86_sahf=yes
26673 else
26674 echo "configure: failed program was" >&5
26675 cat conftest.s >&5
26676 fi
26677 rm -f conftest.o conftest.s
26678 fi
26679 fi
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26681 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26682 if test $gcc_cv_as_ix86_sahf = yes; then
26683
26684 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26685
26686 fi
26687
26688
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26690 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26691 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_ix86_interunit_movq=no
26695 if test x$gcc_cv_as != x; then
26696 $as_echo '.code64
26697 movq %mm0, %rax
26698 movq %rax, %xmm0' > conftest.s
26699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26704 test $ac_status = 0; }; }
26705 then
26706 gcc_cv_as_ix86_interunit_movq=yes
26707 else
26708 echo "configure: failed program was" >&5
26709 cat conftest.s >&5
26710 fi
26711 rm -f conftest.o conftest.s
26712 fi
26713 fi
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26715 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26716
26717
26718
26719 cat >>confdefs.h <<_ACEOF
26720 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26721 _ACEOF
26722
26723
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26725 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26726 if ${gcc_cv_as_ix86_hle+:} false; then :
26727 $as_echo_n "(cached) " >&6
26728 else
26729 gcc_cv_as_ix86_hle=no
26730 if test x$gcc_cv_as != x; then
26731 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26734 (eval $ac_try) 2>&5
26735 ac_status=$?
26736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26737 test $ac_status = 0; }; }
26738 then
26739 gcc_cv_as_ix86_hle=yes
26740 else
26741 echo "configure: failed program was" >&5
26742 cat conftest.s >&5
26743 fi
26744 rm -f conftest.o conftest.s
26745 fi
26746 fi
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26748 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26749 if test $gcc_cv_as_ix86_hle = yes; then
26750
26751 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26752
26753 fi
26754
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26757 $as_echo_n "checking assembler for swap suffix... " >&6; }
26758 if ${gcc_cv_as_ix86_swap+:} false; then :
26759 $as_echo_n "(cached) " >&6
26760 else
26761 gcc_cv_as_ix86_swap=no
26762 if test x$gcc_cv_as != x; then
26763 $as_echo 'movl.s %esp, %ebp' > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_ix86_swap=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26775 fi
26776 rm -f conftest.o conftest.s
26777 fi
26778 fi
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26780 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26781 if test $gcc_cv_as_ix86_swap = yes; then
26782
26783 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26784
26785 fi
26786
26787
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26789 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26790 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26791 $as_echo_n "(cached) " >&6
26792 else
26793 gcc_cv_as_ix86_diff_sect_delta=no
26794 if test x$gcc_cv_as != x; then
26795 $as_echo '.section .rodata
26796 .L1:
26797 .long .L2-.L1
26798 .long .L3-.L1
26799 .text
26800 .L3: nop
26801 .L2: nop' > conftest.s
26802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26807 test $ac_status = 0; }; }
26808 then
26809 gcc_cv_as_ix86_diff_sect_delta=yes
26810 else
26811 echo "configure: failed program was" >&5
26812 cat conftest.s >&5
26813 fi
26814 rm -f conftest.o conftest.s
26815 fi
26816 fi
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26818 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26819 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26820
26821 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26822
26823 fi
26824
26825
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26827 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26828 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26829 $as_echo_n "(cached) " >&6
26830 else
26831 gcc_cv_as_ix86_rep_lock_prefix=no
26832 if test x$gcc_cv_as != x; then
26833 $as_echo 'rep movsl
26834 rep ret
26835 rep nop
26836 rep bsf %ecx, %eax
26837 rep bsr %ecx, %eax
26838 lock addl %edi, (%eax,%esi)
26839 lock orl $0, (%esp)' > conftest.s
26840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26846 then
26847 gcc_cv_as_ix86_rep_lock_prefix=yes
26848 else
26849 echo "configure: failed program was" >&5
26850 cat conftest.s >&5
26851 fi
26852 rm -f conftest.o conftest.s
26853 fi
26854 fi
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26856 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26857 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26858
26859 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26860
26861 fi
26862
26863
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26865 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26866 if ${gcc_cv_as_ix86_ud2+:} false; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_ix86_ud2=no
26870 if test x$gcc_cv_as != x; then
26871 $as_echo 'ud2' > conftest.s
26872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877 test $ac_status = 0; }; }
26878 then
26879 gcc_cv_as_ix86_ud2=yes
26880 else
26881 echo "configure: failed program was" >&5
26882 cat conftest.s >&5
26883 fi
26884 rm -f conftest.o conftest.s
26885 fi
26886 fi
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26888 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26889 if test $gcc_cv_as_ix86_ud2 = yes; then
26890
26891 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26892
26893 fi
26894
26895
26896 # Enforce 32-bit output with gas and gld.
26897 if test x$gas = xyes; then
26898 as_ix86_gas_32_opt="--32"
26899 fi
26900 if echo "$ld_ver" | grep GNU > /dev/null; then
26901 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26902 ld_ix86_gld_32_opt="-melf_i386_sol2"
26903 else
26904 ld_ix86_gld_32_opt="-melf_i386"
26905 fi
26906 fi
26907
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26909 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26910 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_as_ix86_tlsgdplt=no
26914 if test x$gcc_cv_as != x; then
26915 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26918 (eval $ac_try) 2>&5
26919 ac_status=$?
26920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26921 test $ac_status = 0; }; }
26922 then
26923 if test x$gcc_cv_ld != x \
26924 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26925 gcc_cv_as_ix86_tlsgdplt=yes
26926 fi
26927 rm -f conftest
26928 else
26929 echo "configure: failed program was" >&5
26930 cat conftest.s >&5
26931 fi
26932 rm -f conftest.o conftest.s
26933 fi
26934 fi
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26936 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26937 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26938
26939 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26940
26941 fi
26942
26943
26944 conftest_s='
26945 .section .tdata,"aw'$tls_section_flag'",@progbits
26946 tls_ld:
26947 .section .text,"ax",@progbits
26948 call tls_ld@tlsldmplt'
26949
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26951 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26952 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26953 $as_echo_n "(cached) " >&6
26954 else
26955 gcc_cv_as_ix86_tlsldmplt=no
26956 if test x$gcc_cv_as != x; then
26957 $as_echo "$conftest_s" > conftest.s
26958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26960 (eval $ac_try) 2>&5
26961 ac_status=$?
26962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26963 test $ac_status = 0; }; }
26964 then
26965 if test x$gcc_cv_ld != x \
26966 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26967 gcc_cv_as_ix86_tlsldmplt=yes
26968 fi
26969 rm -f conftest
26970 else
26971 echo "configure: failed program was" >&5
26972 cat conftest.s >&5
26973 fi
26974 rm -f conftest.o conftest.s
26975 fi
26976 fi
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26978 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26979
26980
26981
26982 cat >>confdefs.h <<_ACEOF
26983 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26984 _ACEOF
26985
26986
26987 conftest_s='
26988 .section .text,"ax",@progbits
26989 .globl _start
26990 .type _start, @function
26991 _start:
26992 leal value@tlsldm(%ebx), %eax
26993 call ___tls_get_addr@plt
26994
26995 .section .tdata,"aw'$tls_section_flag'",@progbits
26996 .type value, @object
26997 value:'
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26999 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27000 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27001 $as_echo_n "(cached) " >&6
27002 else
27003 gcc_cv_as_ix86_tlsldm=no
27004 if test x$gcc_cv_as != x; then
27005 $as_echo "$conftest_s" > conftest.s
27006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27011 test $ac_status = 0; }; }
27012 then
27013 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27014 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27015 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27016 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27017 gcc_cv_as_ix86_tlsldm=yes
27018 fi
27019 fi
27020 rm -f conftest
27021 else
27022 echo "configure: failed program was" >&5
27023 cat conftest.s >&5
27024 fi
27025 rm -f conftest.o conftest.s
27026 fi
27027 fi
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27029 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27030
27031
27032
27033 cat >>confdefs.h <<_ACEOF
27034 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27035 _ACEOF
27036
27037
27038 conftest_s='
27039 .data
27040 bar:
27041 .byte 1
27042 .text
27043 .global _start
27044 _start:
27045 cmpl $0, bar@GOT
27046 jmp *_start@GOT'
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27048 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27049 if ${gcc_cv_as_ix86_got32x+:} false; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_ix86_got32x=no
27053 if test x$gcc_cv_as != x; then
27054 $as_echo "$conftest_s" > conftest.s
27055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060 test $ac_status = 0; }; }
27061 then
27062 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27063 && test x$gcc_cv_readelf != x \
27064 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27065 | grep R_386_GOT32X > /dev/null 2>&1 \
27066 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27067 if $gcc_cv_objdump -dw conftest 2>&1 \
27068 | grep 0xffffff > /dev/null 2>&1; then
27069 gcc_cv_as_ix86_got32x=no
27070 else
27071 gcc_cv_as_ix86_got32x=yes
27072 fi
27073 fi
27074 rm -f conftest
27075 else
27076 echo "configure: failed program was" >&5
27077 cat conftest.s >&5
27078 fi
27079 rm -f conftest.o conftest.s
27080 fi
27081 fi
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27083 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27084
27085
27086
27087 cat >>confdefs.h <<_ACEOF
27088 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27089 _ACEOF
27090
27091
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27093 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27094 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27095 $as_echo_n "(cached) " >&6
27096 else
27097 gcc_cv_as_ix86_gotoff_in_data=no
27098 if test $in_tree_gas = yes; then
27099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27100 then gcc_cv_as_ix86_gotoff_in_data=yes
27101 fi
27102 elif test x$gcc_cv_as != x; then
27103 $as_echo ' .text
27104 .L0:
27105 nop
27106 .data
27107 .long .L0@GOTOFF' > conftest.s
27108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27113 test $ac_status = 0; }; }
27114 then
27115 gcc_cv_as_ix86_gotoff_in_data=yes
27116 else
27117 echo "configure: failed program was" >&5
27118 cat conftest.s >&5
27119 fi
27120 rm -f conftest.o conftest.s
27121 fi
27122 fi
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27124 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27125
27126
27127
27128 cat >>confdefs.h <<_ACEOF
27129 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27130 _ACEOF
27131
27132
27133 conftest_s='
27134 .section .text,"ax",@progbits
27135 .globl _start
27136 .type _start, @function
27137 _start:
27138 leal ld@tlsldm(%ecx), %eax
27139 call *___tls_get_addr@GOT(%ecx)
27140 leal gd@tlsgd(%ecx), %eax
27141 call *___tls_get_addr@GOT(%ecx)
27142
27143 .section .tdata,"aw'$tls_section_flag'",@progbits
27144 .type ld, @object
27145 ld:
27146 .byte 0
27147 .globl gd
27148 .type gd, @object
27149 gd:
27150 .byte 0'
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27152 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27153 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27154 $as_echo_n "(cached) " >&6
27155 else
27156 gcc_cv_as_ix86_tls_get_addr_via_got=no
27157 if test x$gcc_cv_as != x; then
27158 $as_echo "$conftest_s" > conftest.s
27159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27164 test $ac_status = 0; }; }
27165 then
27166 if test x$gcc_cv_ld != x \
27167 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27168 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27169 fi
27170 rm -f conftest
27171 else
27172 echo "configure: failed program was" >&5
27173 cat conftest.s >&5
27174 fi
27175 rm -f conftest.o conftest.s
27176 fi
27177 fi
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27179 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27180
27181
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #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`
27185 _ACEOF
27186
27187 ;;
27188
27189 ia64*-*-*)
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27191 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27192 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27196 if test $in_tree_gas = yes; then
27197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27198 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27199 fi
27200 elif test x$gcc_cv_as != x; then
27201 $as_echo ' .text
27202 addl r15 = @ltoffx(x#), gp
27203 ;;
27204 ld8.mov r16 = [r15], x#
27205 ' > conftest.s
27206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27211 test $ac_status = 0; }; }
27212 then
27213 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27214 else
27215 echo "configure: failed program was" >&5
27216 cat conftest.s >&5
27217 fi
27218 rm -f conftest.o conftest.s
27219 fi
27220 fi
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27222 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27223 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27224
27225 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27226
27227 fi
27228
27229
27230 ;;
27231
27232 powerpc*-*-*)
27233
27234 case $target in
27235 *-*-darwin*)
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27237 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27238 if ${gcc_cv_as_machine_directive+:} false; then :
27239 $as_echo_n "(cached) " >&6
27240 else
27241 gcc_cv_as_machine_directive=no
27242 if test x$gcc_cv_as != x; then
27243 $as_echo ' .machine ppc7400' > conftest.s
27244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27246 (eval $ac_try) 2>&5
27247 ac_status=$?
27248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27249 test $ac_status = 0; }; }
27250 then
27251 gcc_cv_as_machine_directive=yes
27252 else
27253 echo "configure: failed program was" >&5
27254 cat conftest.s >&5
27255 fi
27256 rm -f conftest.o conftest.s
27257 fi
27258 fi
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27260 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27261
27262
27263 if test x$gcc_cv_as_machine_directive != xyes; then
27264 echo "*** This target requires an assembler supporting \".machine\"" >&2
27265 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27266 test x$build = x$target && exit 1
27267 fi
27268 ;;
27269 esac
27270
27271 case $target in
27272 *-*-aix*) conftest_s=' .machine "pwr5"
27273 .csect .text[PR]
27274 mfcr 3,128';;
27275 *-*-darwin*) conftest_s=' .text
27276 mfcr r3,128';;
27277 *) conftest_s=' .machine power4
27278 .text
27279 mfcr 3,128';;
27280 esac
27281
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27283 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27284 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287 gcc_cv_as_powerpc_mfcrf=no
27288 if test $in_tree_gas = yes; then
27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27290 then gcc_cv_as_powerpc_mfcrf=yes
27291 fi
27292 elif test x$gcc_cv_as != x; then
27293 $as_echo "$conftest_s" > conftest.s
27294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27297 ac_status=$?
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27300 then
27301 gcc_cv_as_powerpc_mfcrf=yes
27302 else
27303 echo "configure: failed program was" >&5
27304 cat conftest.s >&5
27305 fi
27306 rm -f conftest.o conftest.s
27307 fi
27308 fi
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27310 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27311 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27312
27313 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27314
27315 fi
27316
27317
27318 case $target in
27319 *-*-aix*) conftest_s=' .csect .text[PR]
27320 LCF..0:
27321 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27322 *-*-darwin*)
27323 conftest_s=' .text
27324 LCF0:
27325 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27326 *) conftest_s=' .text
27327 .LCF0:
27328 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27329 esac
27330
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27332 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27333 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27334 $as_echo_n "(cached) " >&6
27335 else
27336 gcc_cv_as_powerpc_rel16=no
27337 if test $in_tree_gas = yes; then
27338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27339 then gcc_cv_as_powerpc_rel16=yes
27340 fi
27341 elif test x$gcc_cv_as != x; then
27342 $as_echo "$conftest_s" > conftest.s
27343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27348 test $ac_status = 0; }; }
27349 then
27350 gcc_cv_as_powerpc_rel16=yes
27351 else
27352 echo "configure: failed program was" >&5
27353 cat conftest.s >&5
27354 fi
27355 rm -f conftest.o conftest.s
27356 fi
27357 fi
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27359 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27360 if test $gcc_cv_as_powerpc_rel16 = yes; then
27361
27362 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27363
27364 fi
27365
27366
27367 case $target in
27368 *-*-aix*) conftest_s=' .machine "pwr7"
27369 .csect .text[PR]
27370 lxvd2x 1,2,3';;
27371 *) conftest_s=' .machine power7
27372 .text
27373 lxvd2x 1,2,3';;
27374 esac
27375
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27377 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27378 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27379 $as_echo_n "(cached) " >&6
27380 else
27381 gcc_cv_as_powerpc_vsx=no
27382 if test $in_tree_gas = yes; then
27383 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27384 then gcc_cv_as_powerpc_vsx=yes
27385 fi
27386 elif test x$gcc_cv_as != x; then
27387 $as_echo "$conftest_s" > conftest.s
27388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27393 test $ac_status = 0; }; }
27394 then
27395 gcc_cv_as_powerpc_vsx=yes
27396 else
27397 echo "configure: failed program was" >&5
27398 cat conftest.s >&5
27399 fi
27400 rm -f conftest.o conftest.s
27401 fi
27402 fi
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27404 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27405 if test $gcc_cv_as_powerpc_vsx = yes; then
27406
27407 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27408
27409 fi
27410
27411
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27413 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27414 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27415 $as_echo_n "(cached) " >&6
27416 else
27417 gcc_cv_as_powerpc_gnu_attribute=no
27418 if test $in_tree_gas = yes; then
27419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27420 then gcc_cv_as_powerpc_gnu_attribute=yes
27421 fi
27422 elif test x$gcc_cv_as != x; then
27423 $as_echo '.gnu_attribute 4,1' > conftest.s
27424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27426 (eval $ac_try) 2>&5
27427 ac_status=$?
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; }
27430 then
27431 gcc_cv_as_powerpc_gnu_attribute=yes
27432 else
27433 echo "configure: failed program was" >&5
27434 cat conftest.s >&5
27435 fi
27436 rm -f conftest.o conftest.s
27437 fi
27438 fi
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27440 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27441 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27442
27443 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27444
27445 fi
27446
27447
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27449 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27450 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27451 $as_echo_n "(cached) " >&6
27452 else
27453 gcc_cv_as_powerpc_entry_markers=no
27454 if test $in_tree_gas = yes; then
27455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27456 then gcc_cv_as_powerpc_entry_markers=yes
27457 fi
27458 elif test x$gcc_cv_as != x; then
27459 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27462 (eval $ac_try) 2>&5
27463 ac_status=$?
27464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27465 test $ac_status = 0; }; }
27466 then
27467 gcc_cv_as_powerpc_entry_markers=yes
27468 else
27469 echo "configure: failed program was" >&5
27470 cat conftest.s >&5
27471 fi
27472 rm -f conftest.o conftest.s
27473 fi
27474 fi
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27476 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27477 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27478
27479 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27480
27481 fi
27482
27483
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27485 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27486 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27487 $as_echo_n "(cached) " >&6
27488 else
27489 gcc_cv_as_powerpc_pltseq_markers=no
27490 if test $in_tree_gas = yes; then
27491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27492 then gcc_cv_as_powerpc_pltseq_markers=yes
27493 fi
27494 elif test x$gcc_cv_as != x; then
27495 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27498 (eval $ac_try) 2>&5
27499 ac_status=$?
27500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27501 test $ac_status = 0; }; }
27502 then
27503 gcc_cv_as_powerpc_pltseq_markers=yes
27504 else
27505 echo "configure: failed program was" >&5
27506 cat conftest.s >&5
27507 fi
27508 rm -f conftest.o conftest.s
27509 fi
27510 fi
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27512 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27513 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27514
27515 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27516
27517 fi
27518
27519
27520 case $target in
27521 *-*-aix*)
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27523 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27524 if ${gcc_cv_as_aix_ref+:} false; then :
27525 $as_echo_n "(cached) " >&6
27526 else
27527 gcc_cv_as_aix_ref=no
27528 if test $in_tree_gas = yes; then
27529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27530 then gcc_cv_as_aix_ref=yes
27531 fi
27532 elif test x$gcc_cv_as != x; then
27533 $as_echo ' .csect stuff[rw]
27534 stuff:
27535 .long 1
27536 .extern sym
27537 .ref sym
27538 ' > conftest.s
27539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544 test $ac_status = 0; }; }
27545 then
27546 gcc_cv_as_aix_ref=yes
27547 else
27548 echo "configure: failed program was" >&5
27549 cat conftest.s >&5
27550 fi
27551 rm -f conftest.o conftest.s
27552 fi
27553 fi
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27555 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27556 if test $gcc_cv_as_aix_ref = yes; then
27557
27558 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27559
27560 fi
27561
27562
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27564 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27565 if ${gcc_cv_as_aix_dwloc+:} false; then :
27566 $as_echo_n "(cached) " >&6
27567 else
27568 gcc_cv_as_aix_dwloc=no
27569 if test $in_tree_gas = yes; then
27570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27571 then gcc_cv_as_aix_dwloc=yes
27572 fi
27573 elif test x$gcc_cv_as != x; then
27574 $as_echo ' .dwsect 0xA0000
27575 Lframe..0:
27576 .vbyte 4,Lframe..0
27577 ' > conftest.s
27578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583 test $ac_status = 0; }; }
27584 then
27585 gcc_cv_as_aix_dwloc=yes
27586 else
27587 echo "configure: failed program was" >&5
27588 cat conftest.s >&5
27589 fi
27590 rm -f conftest.o conftest.s
27591 fi
27592 fi
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27594 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27595 if test $gcc_cv_as_aix_dwloc = yes; then
27596
27597 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27598
27599 fi
27600
27601 ;;
27602 esac
27603 ;;
27604
27605 mips*-*-*)
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27607 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27608 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27609 $as_echo_n "(cached) " >&6
27610 else
27611 gcc_cv_as_mips_explicit_relocs=no
27612 if test $in_tree_gas = yes; then
27613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27614 then gcc_cv_as_mips_explicit_relocs=yes
27615 fi
27616 elif test x$gcc_cv_as != x; then
27617 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623 test $ac_status = 0; }; }
27624 then
27625 gcc_cv_as_mips_explicit_relocs=yes
27626 else
27627 echo "configure: failed program was" >&5
27628 cat conftest.s >&5
27629 fi
27630 rm -f conftest.o conftest.s
27631 fi
27632 fi
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27634 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27635 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27636 if test x$target_cpu_default = x
27637 then target_cpu_default=MASK_EXPLICIT_RELOCS
27638 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27639 fi
27640 fi
27641
27642
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27644 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27645 if ${gcc_cv_as_mips_no_shared+:} false; then :
27646 $as_echo_n "(cached) " >&6
27647 else
27648 gcc_cv_as_mips_no_shared=no
27649 if test $in_tree_gas = yes; then
27650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27651 then gcc_cv_as_mips_no_shared=yes
27652 fi
27653 elif test x$gcc_cv_as != x; then
27654 $as_echo 'nop' > conftest.s
27655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27657 (eval $ac_try) 2>&5
27658 ac_status=$?
27659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27660 test $ac_status = 0; }; }
27661 then
27662 gcc_cv_as_mips_no_shared=yes
27663 else
27664 echo "configure: failed program was" >&5
27665 cat conftest.s >&5
27666 fi
27667 rm -f conftest.o conftest.s
27668 fi
27669 fi
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27671 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27672 if test $gcc_cv_as_mips_no_shared = yes; then
27673
27674 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27675
27676 fi
27677
27678
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27680 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27681 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27682 $as_echo_n "(cached) " >&6
27683 else
27684 gcc_cv_as_mips_gnu_attribute=no
27685 if test $in_tree_gas = yes; then
27686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27687 then gcc_cv_as_mips_gnu_attribute=yes
27688 fi
27689 elif test x$gcc_cv_as != x; then
27690 $as_echo '.gnu_attribute 4,1' > conftest.s
27691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; }
27697 then
27698 gcc_cv_as_mips_gnu_attribute=yes
27699 else
27700 echo "configure: failed program was" >&5
27701 cat conftest.s >&5
27702 fi
27703 rm -f conftest.o conftest.s
27704 fi
27705 fi
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27707 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27708 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27709
27710 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27711
27712 fi
27713
27714
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27716 $as_echo_n "checking assembler for .module support... " >&6; }
27717 if ${gcc_cv_as_mips_dot_module+:} false; then :
27718 $as_echo_n "(cached) " >&6
27719 else
27720 gcc_cv_as_mips_dot_module=no
27721 if test x$gcc_cv_as != x; then
27722 $as_echo '.module mips2
27723 .module fp=xx' > conftest.s
27724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27729 test $ac_status = 0; }; }
27730 then
27731 gcc_cv_as_mips_dot_module=yes
27732 else
27733 echo "configure: failed program was" >&5
27734 cat conftest.s >&5
27735 fi
27736 rm -f conftest.o conftest.s
27737 fi
27738 fi
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27740 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27741 if test $gcc_cv_as_mips_dot_module = yes; then
27742
27743 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27744
27745 fi
27746
27747 if test x$gcc_cv_as_mips_dot_module = xno \
27748 && test x$with_fp_32 != x; then
27749 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27750 fi
27751
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27753 $as_echo_n "checking assembler for .micromips support... " >&6; }
27754 if ${gcc_cv_as_micromips_support+:} false; then :
27755 $as_echo_n "(cached) " >&6
27756 else
27757 gcc_cv_as_micromips_support=no
27758 if test x$gcc_cv_as != x; then
27759 $as_echo '.set micromips' > conftest.s
27760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27765 test $ac_status = 0; }; }
27766 then
27767 gcc_cv_as_micromips_support=yes
27768 else
27769 echo "configure: failed program was" >&5
27770 cat conftest.s >&5
27771 fi
27772 rm -f conftest.o conftest.s
27773 fi
27774 fi
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27776 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27777 if test $gcc_cv_as_micromips_support = yes; then
27778
27779 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27780
27781 fi
27782
27783
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27785 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27786 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27787 $as_echo_n "(cached) " >&6
27788 else
27789 gcc_cv_as_mips_dtprelword=no
27790 if test $in_tree_gas = yes; then
27791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27792 then gcc_cv_as_mips_dtprelword=yes
27793 fi
27794 elif test x$gcc_cv_as != x; then
27795 $as_echo '.section .tdata,"awT",@progbits
27796 x:
27797 .word 2
27798 .text
27799 .dtprelword x+0x8000' > conftest.s
27800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27802 (eval $ac_try) 2>&5
27803 ac_status=$?
27804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27805 test $ac_status = 0; }; }
27806 then
27807 gcc_cv_as_mips_dtprelword=yes
27808 else
27809 echo "configure: failed program was" >&5
27810 cat conftest.s >&5
27811 fi
27812 rm -f conftest.o conftest.s
27813 fi
27814 fi
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27816 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27817 if test $gcc_cv_as_mips_dtprelword = yes; then
27818
27819 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27820
27821 fi
27822
27823
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27825 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27826 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828 else
27829 gcc_cv_as_mips_dspr1_mult=no
27830 if test x$gcc_cv_as != x; then
27831 $as_echo ' .set mips32r2
27832 .set nodspr2
27833 .set dsp
27834 madd $ac3,$4,$5
27835 maddu $ac3,$4,$5
27836 msub $ac3,$4,$5
27837 msubu $ac3,$4,$5
27838 mult $ac3,$4,$5
27839 multu $ac3,$4,$5' > conftest.s
27840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27842 (eval $ac_try) 2>&5
27843 ac_status=$?
27844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27845 test $ac_status = 0; }; }
27846 then
27847 gcc_cv_as_mips_dspr1_mult=yes
27848 else
27849 echo "configure: failed program was" >&5
27850 cat conftest.s >&5
27851 fi
27852 rm -f conftest.o conftest.s
27853 fi
27854 fi
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27856 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27857 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27858
27859 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27860
27861 fi
27862
27863
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27865 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27866 gcc_cv_as_ld_jalr_reloc=no
27867 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27868 if test $in_tree_ld = yes ; then
27869 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 \
27870 && test $in_tree_ld_is_elf = yes; then
27871 gcc_cv_as_ld_jalr_reloc=yes
27872 fi
27873 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27874 echo ' .ent x' > conftest.s
27875 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27876 echo ' lw $25,%call16(y)($28)' >> conftest.s
27877 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27878 echo '1: jalr $25' >> conftest.s
27879 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27880 echo '1: jalr $25' >> conftest.s
27881 echo ' .end x' >> conftest.s
27882 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27883 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27884 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27885 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27886 gcc_cv_as_ld_jalr_reloc=yes
27887 fi
27888 fi
27889 rm -f conftest.*
27890 fi
27891 fi
27892 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27893 if test x$target_cpu_default = x; then
27894 target_cpu_default=MASK_RELAX_PIC_CALLS
27895 else
27896 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27897 fi
27898 fi
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27900 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27901
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27903 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27904 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27905 $as_echo_n "(cached) " >&6
27906 else
27907 gcc_cv_ld_mips_personality_relaxation=no
27908 if test $in_tree_ld = yes ; then
27909 if test "$gcc_cv_gld_major_version" -eq 2 \
27910 -a "$gcc_cv_gld_minor_version" -ge 21 \
27911 -o "$gcc_cv_gld_major_version" -gt 2; then
27912 gcc_cv_ld_mips_personality_relaxation=yes
27913 fi
27914 elif test x$gcc_cv_as != x \
27915 -a x$gcc_cv_ld != x \
27916 -a x$gcc_cv_readelf != x ; then
27917 cat > conftest.s <<EOF
27918 .cfi_startproc
27919 .cfi_personality 0x80,indirect_ptr
27920 .ent test
27921 test:
27922 nop
27923 .end test
27924 .cfi_endproc
27925
27926 .section .data,"aw",@progbits
27927 indirect_ptr:
27928 .dc.a personality
27929 EOF
27930 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27931 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27932 if $gcc_cv_readelf -d conftest 2>&1 \
27933 | grep TEXTREL > /dev/null 2>&1; then
27934 :
27935 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27936 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27937 :
27938 else
27939 gcc_cv_ld_mips_personality_relaxation=yes
27940 fi
27941 fi
27942 fi
27943 rm -f conftest.s conftest.o conftest
27944 fi
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27946 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27947 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27948
27949 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27950
27951 fi
27952
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27954 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27955 if ${gcc_cv_as_mips_nan+:} false; then :
27956 $as_echo_n "(cached) " >&6
27957 else
27958 gcc_cv_as_mips_nan=no
27959 if test x$gcc_cv_as != x; then
27960 $as_echo '' > conftest.s
27961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966 test $ac_status = 0; }; }
27967 then
27968 gcc_cv_as_mips_nan=yes
27969 else
27970 echo "configure: failed program was" >&5
27971 cat conftest.s >&5
27972 fi
27973 rm -f conftest.o conftest.s
27974 fi
27975 fi
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27977 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27978 if test $gcc_cv_as_mips_nan = yes; then
27979
27980 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27981
27982 fi
27983
27984 if test x$gcc_cv_as_mips_nan = xno \
27985 && test x$with_nan != x; then
27986 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27987 fi
27988 ;;
27989 msp430-*-*)
27990 # Earlier GAS versions generically support .gnu_attribute, but the
27991 # msp430 assembler will not do anything with it.
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27993 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27994 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27995 $as_echo_n "(cached) " >&6
27996 else
27997 gcc_cv_as_msp430_gnu_attribute=no
27998 if test $in_tree_gas = yes; then
27999 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28000 then gcc_cv_as_msp430_gnu_attribute=yes
28001 fi
28002 elif test x$gcc_cv_as != x; then
28003 $as_echo '.gnu_attribute 4,1' > conftest.s
28004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009 test $ac_status = 0; }; }
28010 then
28011 gcc_cv_as_msp430_gnu_attribute=yes
28012 else
28013 echo "configure: failed program was" >&5
28014 cat conftest.s >&5
28015 fi
28016 rm -f conftest.o conftest.s
28017 fi
28018 fi
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28020 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28021 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28022
28023 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28024
28025 fi
28026
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28028 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28029 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28030 $as_echo_n "(cached) " >&6
28031 else
28032 gcc_cv_as_msp430_mspabi_attribute=no
28033 if test $in_tree_gas = yes; then
28034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28035 then gcc_cv_as_msp430_mspabi_attribute=yes
28036 fi
28037 elif test x$gcc_cv_as != x; then
28038 $as_echo '.mspabi_attribute 4,2' > 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_msp430_mspabi_attribute=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_msp430_mspabi_attribute" >&5
28055 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28056 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28057
28058 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28059
28060 fi
28061
28062 if test x$enable_newlib_nano_formatted_io = xyes; then
28063
28064 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28065
28066 fi
28067 ;;
28068 nios2-*-*)
28069 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28070 # syntax that is documented in the ABI specification.
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28072 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28073 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28074 $as_echo_n "(cached) " >&6
28075 else
28076 gcc_cv_as_nios2_gotoff_relocation=no
28077 if test x$gcc_cv_as != x; then
28078 $as_echo ' .extern foo
28079 .data
28080 .long %gotoff(foo)' > conftest.s
28081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28086 test $ac_status = 0; }; }
28087 then
28088 gcc_cv_as_nios2_gotoff_relocation=yes
28089 else
28090 echo "configure: failed program was" >&5
28091 cat conftest.s >&5
28092 fi
28093 rm -f conftest.o conftest.s
28094 fi
28095 fi
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28097 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28098 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28099
28100 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28101
28102 fi
28103
28104 ;;
28105 riscv*-*-*)
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28107 $as_echo_n "checking assembler for .attribute support... " >&6; }
28108 if ${gcc_cv_as_riscv_attribute+:} false; then :
28109 $as_echo_n "(cached) " >&6
28110 else
28111 gcc_cv_as_riscv_attribute=no
28112 if test $in_tree_gas = yes; then
28113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28114 then gcc_cv_as_riscv_attribute=yes
28115 fi
28116 elif test x$gcc_cv_as != x; then
28117 $as_echo '.attribute stack_align,4' > conftest.s
28118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28123 test $ac_status = 0; }; }
28124 then
28125 gcc_cv_as_riscv_attribute=yes
28126 else
28127 echo "configure: failed program was" >&5
28128 cat conftest.s >&5
28129 fi
28130 rm -f conftest.o conftest.s
28131 fi
28132 fi
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28134 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28135 if test $gcc_cv_as_riscv_attribute = yes; then
28136
28137 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28138
28139 fi
28140
28141 ;;
28142 s390*-*-*)
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28144 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28145 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28146 $as_echo_n "(cached) " >&6
28147 else
28148 gcc_cv_as_s390_gnu_attribute=no
28149 if test $in_tree_gas = yes; then
28150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28151 then gcc_cv_as_s390_gnu_attribute=yes
28152 fi
28153 elif test x$gcc_cv_as != x; then
28154 $as_echo '.gnu_attribute 8,1' > conftest.s
28155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160 test $ac_status = 0; }; }
28161 then
28162 gcc_cv_as_s390_gnu_attribute=yes
28163 else
28164 echo "configure: failed program was" >&5
28165 cat conftest.s >&5
28166 fi
28167 rm -f conftest.o conftest.s
28168 fi
28169 fi
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28171 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28172 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28173
28174 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28175
28176 fi
28177
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28179 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28180 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28181 $as_echo_n "(cached) " >&6
28182 else
28183 gcc_cv_as_s390_machine_machinemode=no
28184 if test $in_tree_gas = yes; then
28185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28186 then gcc_cv_as_s390_machine_machinemode=yes
28187 fi
28188 elif test x$gcc_cv_as != x; then
28189 $as_echo ' .machinemode push
28190 .machinemode pop
28191 .machine push
28192 .machine pop' > conftest.s
28193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28196 ac_status=$?
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28199 then
28200 gcc_cv_as_s390_machine_machinemode=yes
28201 else
28202 echo "configure: failed program was" >&5
28203 cat conftest.s >&5
28204 fi
28205 rm -f conftest.o conftest.s
28206 fi
28207 fi
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28209 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28210 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28211
28212 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28213
28214 fi
28215
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28217 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28218 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28219 $as_echo_n "(cached) " >&6
28220 else
28221 gcc_cv_as_s390_architecture_modifiers=no
28222 if test $in_tree_gas = yes; then
28223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28224 then gcc_cv_as_s390_architecture_modifiers=yes
28225 fi
28226 elif test x$gcc_cv_as != x; then
28227 $as_echo ' .machine z13+vx ' > conftest.s
28228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233 test $ac_status = 0; }; }
28234 then
28235 gcc_cv_as_s390_architecture_modifiers=yes
28236 else
28237 echo "configure: failed program was" >&5
28238 cat conftest.s >&5
28239 fi
28240 rm -f conftest.o conftest.s
28241 fi
28242 fi
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28244 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28245 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28246
28247 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28248
28249 fi
28250
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28252 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28253 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28254 $as_echo_n "(cached) " >&6
28255 else
28256 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28257 if test $in_tree_gas = yes; then
28258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28259 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28260 fi
28261 elif test x$gcc_cv_as != x; then
28262 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28265 (eval $ac_try) 2>&5
28266 ac_status=$?
28267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28268 test $ac_status = 0; }; }
28269 then
28270 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28271 else
28272 echo "configure: failed program was" >&5
28273 cat conftest.s >&5
28274 fi
28275 rm -f conftest.o conftest.s
28276 fi
28277 fi
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28279 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28280 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28281
28282 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28283
28284 fi
28285
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28287 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28288 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28289 $as_echo_n "(cached) " >&6
28290 else
28291 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28292 if test x$gcc_cv_as != x; then
28293 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28299 test $ac_status = 0; }; }
28300 then
28301 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28302 else
28303 echo "configure: failed program was" >&5
28304 cat conftest.s >&5
28305 fi
28306 rm -f conftest.o conftest.s
28307 fi
28308 fi
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28310 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28311 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28312
28313 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28314
28315 fi
28316
28317
28318 ;;
28319 esac
28320
28321 # Mips and HP-UX need the GNU assembler.
28322 # Linux on IA64 might be able to use the Intel assembler.
28323
28324 case "$target" in
28325 mips*-*-* | *-*-hpux* )
28326 if test x$gas_flag = xyes \
28327 || test x"$host" != x"$build" \
28328 || test ! -x "$gcc_cv_as" \
28329 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28330 :
28331 else
28332 echo "*** This configuration requires the GNU assembler" >&2
28333 exit 1
28334 fi
28335 ;;
28336 esac
28337
28338 # ??? Not all targets support dwarf2 debug_line, even within a version
28339 # of gas. Moreover, we need to emit a valid instruction to trigger any
28340 # info to the output file. So, as supported targets are added to gas 2.11,
28341 # add some instruction here to (also) show we expect this might work.
28342 # ??? Once 2.11 is released, probably need to add first known working
28343 # version to the per-target configury.
28344 case "$cpu_type" in
28345 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28346 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28347 | tilegx | tilepro | visium | xstormy16 | xtensa)
28348 insn="nop"
28349 ;;
28350 ia64 | s390)
28351 insn="nop 0"
28352 ;;
28353 mmix)
28354 insn="swym 0"
28355 ;;
28356 esac
28357 if test x"$insn" != x; then
28358 conftest_s="\
28359 .file 1 \"conftest.s\"
28360 .loc 1 3 0
28361 $insn"
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28363 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28364 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28365 $as_echo_n "(cached) " >&6
28366 else
28367 gcc_cv_as_dwarf2_debug_line=no
28368 if test $in_tree_gas = yes; then
28369 if test $in_tree_gas_is_elf = yes \
28370 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28371 then gcc_cv_as_dwarf2_debug_line=yes
28372 fi
28373 elif test x$gcc_cv_as != x; then
28374 $as_echo "$conftest_s" > conftest.s
28375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28380 test $ac_status = 0; }; }
28381 then
28382 if test x$gcc_cv_objdump != x \
28383 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28384 | grep debug_line > /dev/null 2>&1; then
28385 gcc_cv_as_dwarf2_debug_line=yes
28386 elif test x$gcc_cv_otool != x \
28387 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28388 | grep debug_line > /dev/null 2>&1; then
28389 gcc_cv_as_dwarf2_debug_line=yes
28390 fi
28391 else
28392 echo "configure: failed program was" >&5
28393 cat conftest.s >&5
28394 fi
28395 rm -f conftest.o conftest.s
28396 fi
28397 fi
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28399 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28400
28401
28402
28403 # The .debug_line file table must be in the exact order that
28404 # we specified the files, since these indices are also used
28405 # by DW_AT_decl_file. Approximate this test by testing if
28406 # the assembler bitches if the same index is assigned twice.
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28408 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28409 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_dwarf2_file_buggy=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo ' .file 1 "foo.s"
28415 .file 1 "bar.s"' > conftest.s
28416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421 test $ac_status = 0; }; }
28422 then
28423 gcc_cv_as_dwarf2_file_buggy=yes
28424 else
28425 echo "configure: failed program was" >&5
28426 cat conftest.s >&5
28427 fi
28428 rm -f conftest.o conftest.s
28429 fi
28430 fi
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28432 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28433
28434
28435
28436 if test $gcc_cv_as_dwarf2_debug_line = yes \
28437 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28438
28439 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28440
28441
28442 if test $gcc_cv_as_leb128 = yes; then
28443 conftest_s="\
28444 .file 1 \"conftest.s\"
28445 .loc 1 3 0 view .LVU1
28446 $insn
28447 .data
28448 .uleb128 .LVU1
28449 .uleb128 .LVU1
28450 "
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28452 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28453 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28454 $as_echo_n "(cached) " >&6
28455 else
28456 gcc_cv_as_dwarf2_debug_view=no
28457 if test $in_tree_gas = yes; then
28458 if test $in_tree_gas_is_elf = yes \
28459 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28460 then gcc_cv_as_dwarf2_debug_view=yes
28461 fi
28462 elif test x$gcc_cv_as != x; then
28463 $as_echo "$conftest_s" > conftest.s
28464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28466 (eval $ac_try) 2>&5
28467 ac_status=$?
28468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28469 test $ac_status = 0; }; }
28470 then
28471 gcc_cv_as_dwarf2_debug_view=yes
28472 else
28473 echo "configure: failed program was" >&5
28474 cat conftest.s >&5
28475 fi
28476 rm -f conftest.o conftest.s
28477 fi
28478 fi
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28480 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28481 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28482
28483 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28484
28485 fi
28486
28487 fi
28488 fi
28489
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28491 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28492 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28493 $as_echo_n "(cached) " >&6
28494 else
28495 gcc_cv_as_gdwarf2_flag=no
28496 if test $in_tree_gas = yes; then
28497 if test $in_tree_gas_is_elf = yes \
28498 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28499 then gcc_cv_as_gdwarf2_flag=yes
28500 fi
28501 elif test x$gcc_cv_as != x; then
28502 $as_echo "$insn" > conftest.s
28503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28505 (eval $ac_try) 2>&5
28506 ac_status=$?
28507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28508 test $ac_status = 0; }; }
28509 then
28510 gcc_cv_as_gdwarf2_flag=yes
28511 else
28512 echo "configure: failed program was" >&5
28513 cat conftest.s >&5
28514 fi
28515 rm -f conftest.o conftest.s
28516 fi
28517 fi
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28519 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28520 if test $gcc_cv_as_gdwarf2_flag = yes; then
28521
28522 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28523
28524 fi
28525
28526
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
28528 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
28529 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
28530 $as_echo_n "(cached) " >&6
28531 else
28532 gcc_cv_as_gdwarf_5_flag=no
28533 if test $in_tree_gas = yes; then
28534 if test $in_tree_gas_is_elf = yes \
28535 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28536 then gcc_cv_as_gdwarf_5_flag=yes
28537 fi
28538 elif test x$gcc_cv_as != x; then
28539 $as_echo "$insn" > conftest.s
28540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
28541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28545 test $ac_status = 0; }; }
28546 then
28547 gcc_cv_as_gdwarf_5_flag=yes
28548 else
28549 echo "configure: failed program was" >&5
28550 cat conftest.s >&5
28551 fi
28552 rm -f conftest.o conftest.s
28553 fi
28554 fi
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
28556 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
28557 if test $gcc_cv_as_gdwarf_5_flag = yes; then
28558
28559 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
28560
28561 fi
28562
28563
28564 dwarf4_debug_info_size=0x46
28565 dwarf4_high_pc_form=7
28566 dwarf4_debug_aranges_size=0x2c
28567 dwarf4_line_sz=9
28568 for dwarf4_addr_size in 8 4; do
28569 conftest_s="\
28570 .file \"a.c\"
28571 .text
28572 .Ltext0:
28573 .p2align 4
28574 .globl foo
28575 .type foo, %function
28576 foo:
28577 .LFB0:
28578 .LM1:
28579 $insn
28580 .LM2:
28581 .LFE0:
28582 .size foo, .-foo
28583 .Letext0:
28584 .section .debug_info,\"\",%progbits
28585 .Ldebug_info0:
28586 .4byte $dwarf4_debug_info_size
28587 .2byte 0x4
28588 .4byte .Ldebug_abbrev0
28589 .byte 0x$dwarf4_addr_size
28590 .byte 0x1
28591 .ascii \"GNU C17\\0\"
28592 .byte 0xc
28593 .ascii \"a.c\\0\"
28594 .ascii \"/\\0\"
28595 .${dwarf4_addr_size}byte .Ltext0
28596 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28597 .4byte .Ldebug_line0
28598 .byte 0x2
28599 .ascii \"foo\\0\"
28600 .byte 0x1
28601 .byte 0x2
28602 .byte 0x1
28603 .${dwarf4_addr_size}byte .LFB0
28604 .${dwarf4_addr_size}byte .LFE0-.LFB0
28605 .byte 0x1
28606 .byte 0x9c
28607 .byte 0
28608 .section .debug_abbrev,\"\",%progbits
28609 .Ldebug_abbrev0:
28610 .byte 0x1
28611 .byte 0x11
28612 .byte 0x1
28613 .byte 0x25
28614 .byte 0x8
28615 .byte 0x13
28616 .byte 0xb
28617 .byte 0x3
28618 .byte 0x8
28619 .byte 0x1b
28620 .byte 0x8
28621 .byte 0x11
28622 .byte 0x1
28623 .byte 0x12
28624 .byte 0x$dwarf4_high_pc_form
28625 .byte 0x10
28626 .byte 0x17
28627 .byte 0
28628 .byte 0
28629 .byte 0x2
28630 .byte 0x2e
28631 .byte 0
28632 .byte 0x3f
28633 .byte 0x19
28634 .byte 0x3
28635 .byte 0x8
28636 .byte 0x3a
28637 .byte 0xb
28638 .byte 0x3b
28639 .byte 0xb
28640 .byte 0x39
28641 .byte 0xb
28642 .byte 0x11
28643 .byte 0x1
28644 .byte 0x12
28645 .byte 0x$dwarf4_high_pc_form
28646 .byte 0x40
28647 .byte 0x18
28648 .byte 0
28649 .byte 0
28650 .byte 0
28651 .section .debug_aranges,\"\",%progbits
28652 .4byte $dwarf4_debug_aranges_size
28653 .2byte 0x2
28654 .4byte .Ldebug_info0
28655 .byte 0x8
28656 .byte 0
28657 .2byte 0
28658 .2byte 0
28659 .${dwarf4_addr_size}byte .Ltext0
28660 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28661 .${dwarf4_addr_size}byte 0
28662 .${dwarf4_addr_size}byte 0
28663 .section .debug_line,\"\",%progbits
28664 .Ldebug_line0:
28665 .4byte .LELT0-.LSLT0
28666 .LSLT0:
28667 .2byte 0x4
28668 .4byte .LELTP0-.LASLTP0
28669 .LASLTP0:
28670 .byte 0x1
28671 .byte 0x1
28672 .byte 0x1
28673 .byte 0xf6
28674 .byte 0xf2
28675 .byte 0xd
28676 .byte 0
28677 .byte 0x1
28678 .byte 0x1
28679 .byte 0x1
28680 .byte 0x1
28681 .byte 0
28682 .byte 0
28683 .byte 0
28684 .byte 0x1
28685 .byte 0
28686 .byte 0
28687 .byte 0x1
28688 .byte 0
28689 .ascii \"a.c\\0\"
28690 .byte 0
28691 .byte 0
28692 .byte 0
28693 .byte 0
28694 .LELTP0:
28695 .byte 0
28696 .byte 0x$dwarf4_line_sz
28697 .byte 0x2
28698 .${dwarf4_addr_size}byte .LM1
28699 .byte 0x18
28700 .byte 0x5
28701 .byte 0x1
28702 .byte 0
28703 .byte 0x$dwarf4_line_sz
28704 .byte 0x2
28705 .${dwarf4_addr_size}byte .LM2
28706 .byte 0x1
28707 .byte 0x5
28708 .byte 0x1
28709 .byte 0
28710 .byte 0x$dwarf4_line_sz
28711 .byte 0x2
28712 .${dwarf4_addr_size}byte .Letext0
28713 .byte 0
28714 .byte 0x1
28715 .byte 0x1
28716 .LELT0:
28717 .section .debug_str,\"\",%progbits
28718 .ident \"GCC\"
28719 "
28720 dwarf4_success=no
28721 if test $dwarf4_addr_size = 4; then
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
28723 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
28724 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
28725 $as_echo_n "(cached) " >&6
28726 else
28727 gcc_cv_as_debug_line_32_flag=no
28728 if test $in_tree_gas = yes; then
28729 if test $in_tree_gas_is_elf = yes \
28730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28731 then gcc_cv_as_debug_line_32_flag=yes
28732 fi
28733 elif test x$gcc_cv_as != x; then
28734 $as_echo "$conftest_s" > conftest.s
28735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28737 (eval $ac_try) 2>&5
28738 ac_status=$?
28739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28740 test $ac_status = 0; }; }
28741 then
28742 gcc_cv_as_debug_line_32_flag=yes
28743 else
28744 echo "configure: failed program was" >&5
28745 cat conftest.s >&5
28746 fi
28747 rm -f conftest.o conftest.s
28748 fi
28749 fi
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
28751 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
28752 if test $gcc_cv_as_debug_line_32_flag = yes; then
28753 dwarf4_success=yes
28754 fi
28755
28756 else
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
28758 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
28759 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761 else
28762 gcc_cv_as_debug_line_64_flag=no
28763 if test $in_tree_gas = yes; then
28764 if test $in_tree_gas_is_elf = yes \
28765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28766 then gcc_cv_as_debug_line_64_flag=yes
28767 fi
28768 elif test x$gcc_cv_as != x; then
28769 $as_echo "$conftest_s" > conftest.s
28770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775 test $ac_status = 0; }; }
28776 then
28777 gcc_cv_as_debug_line_64_flag=yes
28778 else
28779 echo "configure: failed program was" >&5
28780 cat conftest.s >&5
28781 fi
28782 rm -f conftest.o conftest.s
28783 fi
28784 fi
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
28786 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
28787 if test $gcc_cv_as_debug_line_64_flag = yes; then
28788 dwarf4_success=yes
28789 fi
28790
28791 fi
28792 if test $dwarf4_success = yes; then
28793 dwarf4_success=no
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
28795 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
28796 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
28797 $as_echo_n "(cached) " >&6
28798 else
28799 gcc_cv_as_dwarf_4_debug_line_flag=no
28800 if test $in_tree_gas = yes; then
28801 if test $in_tree_gas_is_elf = yes \
28802 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28803 then gcc_cv_as_dwarf_4_debug_line_flag=yes
28804 fi
28805 elif test x$gcc_cv_as != x; then
28806 $as_echo "$conftest_s" > conftest.s
28807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28812 test $ac_status = 0; }; }
28813 then
28814 gcc_cv_as_dwarf_4_debug_line_flag=yes
28815 else
28816 echo "configure: failed program was" >&5
28817 cat conftest.s >&5
28818 fi
28819 rm -f conftest.o conftest.s
28820 fi
28821 fi
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
28823 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
28824 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
28825 dwarf4_success=yes
28826 fi
28827
28828 break
28829 fi
28830 dwarf4_debug_info_size=0x36
28831 dwarf4_high_pc_form=6
28832 dwarf4_debug_aranges_size=0x1c
28833 dwarf4_line_sz=5
28834 done
28835
28836 if test $dwarf4_success = yes; then
28837 conftest_s="\
28838 .file \"foo.c\"
28839 .text
28840 bar:
28841 #APP
28842 # 82 \"xxx.h\" 1
28843 $insn
28844 # 0 \"\" 2
28845 #NO_APP
28846 $insn
28847 foo:
28848 .file 1 \"foo.c\"
28849 $insn
28850 .file 2 \"foo.h\"
28851 ret
28852 "
28853 dwarf4_success=no
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
28855 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
28856 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
28857 $as_echo_n "(cached) " >&6
28858 else
28859 gcc_cv_as_dwarf_4_app_flag=no
28860 if test x$gcc_cv_as != x; then
28861 $as_echo "$conftest_s" > conftest.s
28862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867 test $ac_status = 0; }; }
28868 then
28869 gcc_cv_as_dwarf_4_app_flag=yes
28870 else
28871 echo "configure: failed program was" >&5
28872 cat conftest.s >&5
28873 fi
28874 rm -f conftest.o conftest.s
28875 fi
28876 fi
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
28878 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
28879 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
28880 dwarf4_success=yes
28881 fi
28882
28883 fi
28884
28885 if test $dwarf4_success = yes; then
28886 conftest_s="\
28887 .text
28888 .globl foo
28889 .type foo, %function
28890 foo:
28891 $insn
28892 .size foo, .-foo
28893 .file 1 \"foo.c\"
28894 "
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
28896 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
28897 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
28898 $as_echo_n "(cached) " >&6
28899 else
28900 gcc_cv_as_working_gdwarf_n_flag=no
28901 if test x$gcc_cv_as != x; then
28902 $as_echo "$conftest_s" > conftest.s
28903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28908 test $ac_status = 0; }; }
28909 then
28910 if test x$gcc_cv_readelf != x \
28911 && $gcc_cv_readelf -w conftest.o 2>&1 \
28912 | grep conftest.s > /dev/null 2>&1; then
28913 gcc_cv_as_working_gdwarf_n_flag=no
28914 else
28915 gcc_cv_as_working_gdwarf_n_flag=yes
28916 fi
28917 else
28918 echo "configure: failed program was" >&5
28919 cat conftest.s >&5
28920 fi
28921 rm -f conftest.o conftest.s
28922 fi
28923 fi
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
28925 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
28926
28927
28928 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
28929
28930 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
28931
28932 fi
28933 fi
28934
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28936 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28937 if ${gcc_cv_as_gstabs_flag+:} false; then :
28938 $as_echo_n "(cached) " >&6
28939 else
28940 gcc_cv_as_gstabs_flag=no
28941 if test $in_tree_gas = yes; then
28942 if test $in_tree_gas_is_elf = yes \
28943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28944 then gcc_cv_as_gstabs_flag=yes
28945 fi
28946 elif test x$gcc_cv_as != x; then
28947 $as_echo "$insn" > conftest.s
28948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28950 (eval $ac_try) 2>&5
28951 ac_status=$?
28952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28953 test $ac_status = 0; }; }
28954 then
28955 gcc_cv_as_gstabs_flag=yes
28956 else
28957 echo "configure: failed program was" >&5
28958 cat conftest.s >&5
28959 fi
28960 rm -f conftest.o conftest.s
28961 fi
28962 fi
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28964 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28965 if test $gcc_cv_as_gstabs_flag = yes; then
28966
28967 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28968
28969 fi
28970
28971
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28973 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28974 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28975 $as_echo_n "(cached) " >&6
28976 else
28977 gcc_cv_as_debug_prefix_map_flag=no
28978 if test $in_tree_gas = yes; then
28979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28980 then gcc_cv_as_debug_prefix_map_flag=yes
28981 fi
28982 elif test x$gcc_cv_as != x; then
28983 $as_echo "$insn" > conftest.s
28984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28986 (eval $ac_try) 2>&5
28987 ac_status=$?
28988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28989 test $ac_status = 0; }; }
28990 then
28991 gcc_cv_as_debug_prefix_map_flag=yes
28992 else
28993 echo "configure: failed program was" >&5
28994 cat conftest.s >&5
28995 fi
28996 rm -f conftest.o conftest.s
28997 fi
28998 fi
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29000 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29001 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29002
29003 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29004
29005 fi
29006
29007 fi
29008
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29010 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29011 if ${gcc_cv_as_compress_debug+:} false; then :
29012 $as_echo_n "(cached) " >&6
29013 else
29014 gcc_cv_as_compress_debug=no
29015 if test x$gcc_cv_as != x; then
29016 $as_echo '' > conftest.s
29017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29022 test $ac_status = 0; }; }
29023 then
29024 # gas compiled without zlib cannot compress debug sections and warns
29025 # about it, but still exits successfully. So check for this, too.
29026 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29027 then
29028 gcc_cv_as_compress_debug=0
29029 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29030 # defaulting to the ELF gABI format.
29031 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29032 then
29033 gcc_cv_as_compress_debug=2
29034 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29035 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29036 # Before binutils 2.26, gas only supported --compress-debug-options and
29037 # emitted the traditional GNU format.
29038 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29039 then
29040 gcc_cv_as_compress_debug=1
29041 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29042 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29043 else
29044 gcc_cv_as_compress_debug=0
29045 fi
29046 else
29047 echo "configure: failed program was" >&5
29048 cat conftest.s >&5
29049 fi
29050 rm -f conftest.o conftest.s
29051 fi
29052 fi
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29054 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29055
29056
29057
29058 cat >>confdefs.h <<_ACEOF
29059 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29060 _ACEOF
29061
29062
29063 cat >>confdefs.h <<_ACEOF
29064 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29065 _ACEOF
29066
29067
29068 cat >>confdefs.h <<_ACEOF
29069 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29070 _ACEOF
29071
29072
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29074 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29075 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29076 $as_echo_n "(cached) " >&6
29077 else
29078 gcc_cv_as_lcomm_with_alignment=no
29079 if test x$gcc_cv_as != x; then
29080 $as_echo '.lcomm bar,4,16' > conftest.s
29081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29083 (eval $ac_try) 2>&5
29084 ac_status=$?
29085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29086 test $ac_status = 0; }; }
29087 then
29088 gcc_cv_as_lcomm_with_alignment=yes
29089 else
29090 echo "configure: failed program was" >&5
29091 cat conftest.s >&5
29092 fi
29093 rm -f conftest.o conftest.s
29094 fi
29095 fi
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29097 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29098 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29099
29100 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29101
29102 fi
29103
29104
29105 if test x$with_sysroot = x && test x$host = x$target \
29106 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29107 && test "$prefix" != "NONE"; then
29108
29109 cat >>confdefs.h <<_ACEOF
29110 #define PREFIX_INCLUDE_DIR "$prefix/include"
29111 _ACEOF
29112
29113 fi
29114
29115 # Determine the version of glibc, if any, used on the target.
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29117 $as_echo_n "checking for target glibc version... " >&6; }
29118
29119 # Check whether --with-glibc-version was given.
29120 if test "${with_glibc_version+set}" = set; then :
29121 withval=$with_glibc_version;
29122 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29123 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29124 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29125 else
29126 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29127 fi
29128 else
29129
29130 glibc_version_major=0
29131 glibc_version_minor=0
29132 if test -f $target_header_dir/features.h \
29133 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29134 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29135 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29136 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29137 fi
29138 fi
29139
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29141 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29142
29143 cat >>confdefs.h <<_ACEOF
29144 #define TARGET_GLIBC_MAJOR $glibc_version_major
29145 _ACEOF
29146
29147
29148 cat >>confdefs.h <<_ACEOF
29149 #define TARGET_GLIBC_MINOR $glibc_version_minor
29150 _ACEOF
29151
29152
29153 # Check whether --enable-gnu-unique-object was given.
29154 if test "${enable_gnu_unique_object+set}" = set; then :
29155 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29156 yes | no) ;;
29157 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29158 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29159 esac
29160 else
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29162 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29163 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29164 $as_echo_n "(cached) " >&6
29165 else
29166 gcc_cv_as_gnu_unique_object=no
29167 if test $in_tree_gas = yes; then
29168 if test $in_tree_gas_is_elf = yes \
29169 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29170 then gcc_cv_as_gnu_unique_object=yes
29171 fi
29172 elif test x$gcc_cv_as != x; then
29173 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29179 test $ac_status = 0; }; }
29180 then
29181 gcc_cv_as_gnu_unique_object=yes
29182 else
29183 echo "configure: failed program was" >&5
29184 cat conftest.s >&5
29185 fi
29186 rm -f conftest.o conftest.s
29187 fi
29188 fi
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29190 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29191 if test $gcc_cv_as_gnu_unique_object = yes; then
29192 # We need to unquote above to to use the definition from config.gcc.
29193 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29194
29195 if test $glibc_version_major -gt 2 \
29196 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29197 enable_gnu_unique_object=yes
29198 fi
29199
29200 fi
29201
29202 fi
29203
29204 if test x$enable_gnu_unique_object = xyes; then
29205
29206 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29207
29208 fi
29209
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29211 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29212 if ${gcc_cv_as_line_zero+:} false; then :
29213 $as_echo_n "(cached) " >&6
29214 else
29215 gcc_cv_as_line_zero=no
29216 if test $in_tree_gas = yes; then
29217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29218 then gcc_cv_as_line_zero=yes
29219 fi
29220 elif test "x$gcc_cv_as" != x; then
29221 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29222 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29227 test $ac_status = 0; }; } &&
29228 test "x`cat conftest.out`" = x
29229 then
29230 gcc_cv_as_line_zero=yes
29231 else
29232 echo "configure: failed program was" >&5
29233 cat conftest.s >&5
29234 echo "configure: error output was" >&5
29235 cat conftest.out >&5
29236 fi
29237 rm -f conftest.o conftest.s conftest.out
29238 fi
29239 fi
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29241 $as_echo "$gcc_cv_as_line_zero" >&6; }
29242 if test "x$gcc_cv_as_line_zero" = xyes; then
29243
29244 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29245
29246 fi
29247
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29249 $as_echo_n "checking support for thin archives... " >&6; }
29250 thin_archive_support=no
29251 echo 'int main (void) { return 0; }' > conftest.c
29252 if ($AR --version | sed 1q | grep "GNU ar" \
29253 && $CC $CFLAGS -c conftest.c \
29254 && $AR rcT conftest.a conftest.o \
29255 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29256 thin_archive_support=yes
29257 fi
29258 rm -f conftest.c conftest.o conftest.a conftest
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29260 $as_echo "$thin_archive_support" >&6; }
29261
29262
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29264 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29265 gcc_cv_ld_eh_frame_hdr=no
29266 if test $in_tree_ld = yes ; then
29267 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 \
29268 && test $in_tree_ld_is_elf = yes; then
29269 gcc_cv_ld_eh_frame_hdr=yes
29270 fi
29271 elif test x$gcc_cv_ld != x; then
29272 if echo "$ld_ver" | grep GNU > /dev/null; then
29273 # Check if linker supports --eh-frame-hdr option
29274 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29275 gcc_cv_ld_eh_frame_hdr=yes
29276 fi
29277 else
29278 case "$target" in
29279 *-*-solaris2*)
29280 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29281 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29282 gcc_cv_ld_eh_frame_hdr=yes
29283 fi
29284 ;;
29285 esac
29286 fi
29287 fi
29288
29289 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29290
29291 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29292
29293 fi
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29295 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29296
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29298 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29299 gcc_cv_ld_eh_frame_ciev3=no
29300 if test $in_tree_ld = yes ; then
29301 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 \
29302 && test $in_tree_ld_is_elf = yes; then
29303 gcc_cv_ld_eh_frame_ciev3=yes
29304 fi
29305 elif test x$gcc_cv_ld != x; then
29306 if echo "$ld_ver" | grep GNU > /dev/null; then
29307 gcc_cv_ld_eh_frame_ciev3=yes
29308 if test 0"$ld_date" -lt 20040513; then
29309 if test -n "$ld_date"; then
29310 # If there was date string, but was earlier than 2004-05-13, fail
29311 gcc_cv_ld_eh_frame_ciev3=no
29312 elif test "$ld_vers_major" -lt 2; then
29313 gcc_cv_ld_eh_frame_ciev3=no
29314 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29315 gcc_cv_ld_eh_frame_ciev3=no
29316 fi
29317 fi
29318 else
29319 case "$target" in
29320 *-*-solaris2*)
29321 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29322 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29323 gcc_cv_ld_eh_frame_ciev3=yes
29324 fi
29325 ;;
29326 esac
29327 fi
29328 fi
29329
29330 cat >>confdefs.h <<_ACEOF
29331 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29332 _ACEOF
29333
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29335 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29336
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29338 $as_echo_n "checking linker position independent executable support... " >&6; }
29339 gcc_cv_ld_pie=no
29340 if test $in_tree_ld = yes ; then
29341 case "$target" in
29342 # Full PIE support on Solaris was only introduced in gld 2.26.
29343 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
29344 *) gcc_gld_pie_min_version=15 ;;
29345 esac
29346 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 \
29347 && test $in_tree_ld_is_elf = yes; then
29348 gcc_cv_ld_pie=yes
29349 fi
29350 elif test x$gcc_cv_ld != x; then
29351 # Check if linker supports -pie option
29352 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29353 gcc_cv_ld_pie=yes
29354 case "$target" in
29355 *-*-solaris2*)
29356 if echo "$ld_ver" | grep GNU > /dev/null \
29357 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29358 gcc_cv_ld_pie=no
29359 fi
29360 ;;
29361 esac
29362 else
29363 case "$target" in
29364 *-*-solaris2.1[1-9]*)
29365 # Solaris 11.3 added PIE support.
29366 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29367 gcc_cv_ld_pie=yes
29368 fi
29369 ;;
29370 esac
29371 fi
29372 fi
29373 if test x"$gcc_cv_ld_pie" = xyes; then
29374
29375 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29376
29377 fi
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29379 $as_echo "$gcc_cv_ld_pie" >&6; }
29380
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29382 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29383 gcc_cv_ld_pie_copyreloc=no
29384 if test $gcc_cv_ld_pie = yes ; then
29385 if test $in_tree_ld = yes ; then
29386 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
29387 gcc_cv_ld_pie_copyreloc=yes
29388 fi
29389 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29390 # Check if linker supports -pie option with copy reloc
29391 case "$target" in
29392 i?86-*-linux* | x86_64-*-linux*)
29393 cat > conftest1.s <<EOF
29394 .globl a_glob
29395 .data
29396 .type a_glob, @object
29397 .size a_glob, 4
29398 a_glob:
29399 .long 2
29400 EOF
29401 cat > conftest2.s <<EOF
29402 .text
29403 .globl main
29404 .type main, @function
29405 main:
29406 movl %eax, a_glob(%rip)
29407 .size main, .-main
29408 .globl ptr
29409 .section .data.rel,"aw",@progbits
29410 .type ptr, @object
29411 ptr:
29412 .quad a_glob
29413 EOF
29414 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29415 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29416 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29417 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29418 gcc_cv_ld_pie_copyreloc=yes
29419 fi
29420 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29421 ;;
29422 esac
29423 fi
29424 fi
29425
29426 cat >>confdefs.h <<_ACEOF
29427 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29428 _ACEOF
29429
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29431 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29432
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29434 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29435 gcc_cv_ld_eh_gc_sections=no
29436 if test $in_tree_ld = yes ; then
29437 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 \
29438 && test $in_tree_ld_is_elf = yes; then
29439 gcc_cv_ld_eh_gc_sections=yes
29440 fi
29441 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29442 cat > conftest.s <<EOF
29443 .section .text
29444 .globl _start
29445 .type _start, @function
29446 _start:
29447 .long foo
29448 .size _start, .-_start
29449 .section .text.foo,"ax",@progbits
29450 .type foo, @function
29451 foo:
29452 .long 0
29453 .size foo, .-foo
29454 .section .gcc_except_table.foo,"a",@progbits
29455 .L0:
29456 .long 0
29457 .section .eh_frame,"a",@progbits
29458 .long .L0
29459 EOF
29460 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29461 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29462 | grep "gc-sections option ignored" > /dev/null; then
29463 gcc_cv_ld_eh_gc_sections=no
29464 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29465 | grep gcc_except_table > /dev/null; then
29466 gcc_cv_ld_eh_gc_sections=yes
29467 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29468 if test x$gcc_cv_as_comdat_group != xyes; then
29469 gcc_cv_ld_eh_gc_sections=no
29470 cat > conftest.s <<EOF
29471 .section .text
29472 .globl _start
29473 .type _start, @function
29474 _start:
29475 .long foo
29476 .size _start, .-_start
29477 .section .gnu.linkonce.t.foo,"ax",@progbits
29478 .type foo, @function
29479 foo:
29480 .long 0
29481 .size foo, .-foo
29482 .section .gcc_except_table.foo,"a",@progbits
29483 .L0:
29484 .long 0
29485 .section .eh_frame,"a",@progbits
29486 .long .L0
29487 EOF
29488 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29489 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29490 | grep "gc-sections option ignored" > /dev/null; then
29491 gcc_cv_ld_eh_gc_sections=no
29492 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29493 | grep gcc_except_table > /dev/null; then
29494 gcc_cv_ld_eh_gc_sections=yes
29495 fi
29496 fi
29497 fi
29498 fi
29499 fi
29500 rm -f conftest.s conftest.o conftest
29501 fi
29502 case "$target" in
29503 hppa*-*-linux*)
29504 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29505 gcc_cv_ld_eh_gc_sections=no
29506 ;;
29507 esac
29508 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29509
29510 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29511
29512 fi
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29514 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29515
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29517 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29518 gcc_cv_ld_eh_gc_sections_bug=no
29519 if test $in_tree_ld = yes ; then
29520 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 \
29521 && test $in_tree_ld_is_elf = yes; then
29522 gcc_cv_ld_eh_gc_sections_bug=yes
29523 fi
29524 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
29525 gcc_cv_ld_eh_gc_sections_bug=yes
29526 cat > conftest.s <<EOF
29527 .section .text
29528 .globl _start
29529 .type _start, @function
29530 _start:
29531 .long foo
29532 .size _start, .-_start
29533 .section .text.startup.foo,"ax",@progbits
29534 .type foo, @function
29535 foo:
29536 .long 0
29537 .size foo, .-foo
29538 .section .gcc_except_table.foo,"a",@progbits
29539 .L0:
29540 .long 0
29541 .section .eh_frame,"a",@progbits
29542 .long .L0
29543 EOF
29544 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29545 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29546 | grep "gc-sections option ignored" > /dev/null; then
29547 :
29548 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29549 | grep gcc_except_table > /dev/null; then
29550 gcc_cv_ld_eh_gc_sections_bug=no
29551 fi
29552 fi
29553 rm -f conftest.s conftest.o conftest
29554 fi
29555 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29556
29557 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29558
29559 fi
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29561 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29562
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29564 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29565 # gold/gld support compressed debug sections since binutils 2.19/2.21
29566 # In binutils 2.26, gld gained support for the ELF gABI format.
29567 if test $in_tree_ld = yes ; then
29568 gcc_cv_ld_compress_debug=0
29569 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
29570 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29571 gcc_cv_ld_compress_debug=2
29572 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29573 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
29574 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29575 gcc_cv_ld_compress_debug=3
29576 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29577 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
29578 && test $in_tree_ld_is_elf = yes; then
29579 gcc_cv_ld_compress_debug=1
29580 fi
29581 elif echo "$ld_ver" | grep GNU > /dev/null; then
29582 if test "$ld_vers_major" -lt 2 \
29583 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29584 gcc_cv_ld_compress_debug=0
29585 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29586 gcc_cv_ld_compress_debug=1
29587 else
29588 gcc_cv_ld_compress_debug=3
29589 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29590 fi
29591 if test $ld_is_gold = yes; then
29592 gcc_cv_ld_compress_debug=2
29593 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29594 fi
29595 else
29596 case "${target}" in
29597 *-*-solaris2*)
29598 # Introduced in Solaris 11.2.
29599 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29600 gcc_cv_ld_compress_debug=3
29601 gcc_cv_ld_compress_debug_option="-z compress-sections"
29602 else
29603 gcc_cv_ld_compress_debug=0
29604 fi
29605 ;;
29606 *)
29607 # Assume linkers other than GNU ld don't support compessed debug
29608 # sections.
29609 gcc_cv_ld_compress_debug=0
29610 ;;
29611 esac
29612 fi
29613
29614 cat >>confdefs.h <<_ACEOF
29615 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29616 _ACEOF
29617
29618
29619 cat >>confdefs.h <<_ACEOF
29620 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29621 _ACEOF
29622
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29624 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29625
29626 if test x"$ld64_flag" = x"yes"; then
29627
29628 # Set defaults for possibly untestable items.
29629 gcc_cv_ld64_export_dynamic=0
29630
29631 if test "$build" = "$host"; then
29632 darwin_try_test=1
29633 else
29634 darwin_try_test=0
29635 fi
29636
29637 # On Darwin, because of FAT library support, it is often possible to execute
29638 # exes from compatible archs even when the host differs from the build system.
29639 case "$build","$host" in
29640 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29641 darwin_try_test=1;;
29642 *) ;;
29643 esac
29644
29645 # If the configurer specified a minimum ld64 version to be supported, then use
29646 # that to determine feature support.
29647 if test x"${gcc_cv_ld64_version}" != x; then
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29649 $as_echo_n "checking ld64 specified version... " >&6; }
29650 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29652 $as_echo "$gcc_cv_ld64_major" >&6; }
29653 if test "$gcc_cv_ld64_major" -ge 236; then
29654 gcc_cv_ld64_export_dynamic=1
29655 fi
29656 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29657 # If the version was not specified, try to find it.
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29659 $as_echo_n "checking linker version... " >&6; }
29660 if test x"${gcc_cv_ld64_version}" = x; then
29661 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29662 fi
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29664 $as_echo "$gcc_cv_ld64_version" >&6; }
29665
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29667 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29668 gcc_cv_ld64_export_dynamic=1
29669 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29670 gcc_cv_ld64_export_dynamic=0
29671 fi
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29673 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29674 fi
29675
29676 if test x"${gcc_cv_ld64_version}" != x; then
29677
29678 cat >>confdefs.h <<_ACEOF
29679 #define LD64_VERSION "${gcc_cv_ld64_version}"
29680 _ACEOF
29681
29682 fi
29683
29684
29685 cat >>confdefs.h <<_ACEOF
29686 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29687 _ACEOF
29688
29689 fi
29690
29691 # --------
29692 # UNSORTED
29693 # --------
29694
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29696 $as_echo_n "checking linker --as-needed support... " >&6; }
29697 if ${gcc_cv_ld_as_needed+:} false; then :
29698 $as_echo_n "(cached) " >&6
29699 else
29700 gcc_cv_ld_as_needed=no
29701 gcc_cv_ld_as_needed_option='--as-needed'
29702 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29703 if test $in_tree_ld = yes ; then
29704 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 \
29705 && test $in_tree_ld_is_elf = yes; then
29706 gcc_cv_ld_as_needed=yes
29707 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29708 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29709 gcc_cv_ld_no_as_needed_option='--pop-state'
29710 fi
29711 fi
29712 elif test x$gcc_cv_ld != x; then
29713 # Check if linker supports --as-needed and --no-as-needed options
29714 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29715 gcc_cv_ld_as_needed=yes
29716 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29717 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29718 && echo "$ld_ver" | grep GNU > /dev/null \
29719 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29720 # Use these options only when both ld.bfd and ld.gold support
29721 # --push-state/--pop-state, which unfortunately wasn't added
29722 # at the same time.
29723 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29724 gcc_cv_ld_no_as_needed_option='--pop-state'
29725 fi
29726 fi
29727 case "$target:$gnu_ld" in
29728 *-*-solaris2*:no)
29729 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29730 # forms.
29731 gcc_cv_ld_as_needed=yes
29732 gcc_cv_ld_as_needed_option="-z ignore"
29733 gcc_cv_ld_no_as_needed_option="-z record"
29734 ;;
29735 esac
29736 fi
29737 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29738 # dl_iterate_phdr, i.e. since Solaris 11.
29739 case "$target" in
29740 *-*-solaris2.1[1-9]*)
29741 case "$target" in
29742 i?86-*-* | x86_64-*-*)
29743 if echo "$ld_ver" | grep GNU > /dev/null; then
29744 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29745 gcc_cv_ld_as_needed=no
29746 fi
29747 ;;
29748 esac
29749 ;;
29750 *-*-solaris2*)
29751 gcc_cv_ld_as_needed=no
29752 ;;
29753 esac
29754
29755 fi
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29757 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29758 if test x"$gcc_cv_ld_as_needed" = xyes; then
29759
29760 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29761
29762
29763 cat >>confdefs.h <<_ACEOF
29764 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29765 _ACEOF
29766
29767
29768 cat >>confdefs.h <<_ACEOF
29769 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29770 _ACEOF
29771
29772 fi
29773
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29775 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29776 saved_LDFLAGS="$LDFLAGS"
29777 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29778 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29780 /* end confdefs.h. */
29781 int main(void) {return 0;}
29782 _ACEOF
29783 if ac_fn_cxx_try_link "$LINENO"; then :
29784 gcc_cv_ld_clearcap=yes; break
29785 else
29786 gcc_cv_ld_clearcap=no
29787 fi
29788 rm -f core conftest.err conftest.$ac_objext \
29789 conftest$ac_exeext conftest.$ac_ext
29790 done
29791 LDFLAGS="$saved_LDFLAGS"
29792 if test "x$gcc_cv_ld_clearcap" = xyes; then
29793
29794 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29795
29796 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29797
29798 fi
29799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29800 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29801
29802 case "$target" in
29803 powerpc*-*-*)
29804 case "$target" in
29805 *le-*-linux*)
29806 emul_name="-melf32lppc"
29807 ;;
29808 *)
29809 emul_name="-melf32ppc"
29810 ;;
29811 esac
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29813 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29814 if ${gcc_cv_ld_ppc_attr+:} false; then :
29815 $as_echo_n "(cached) " >&6
29816 else
29817 gcc_cv_ld_ppc_attr=no
29818 if test x"$ld_is_gold" = xyes; then
29819 gcc_cv_ld_ppc_attr=yes
29820 elif test $in_tree_ld = yes ; then
29821 if test "$gcc_cv_gld_major_version" -eq 2 \
29822 -a "$gcc_cv_gld_minor_version" -ge 28 \
29823 -o "$gcc_cv_gld_major_version" -gt 2; then
29824 gcc_cv_ld_ppc_attr=yes
29825 fi
29826 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29827 # check that merging the long double .gnu_attribute doesn't warn
29828 cat > conftest1.s <<EOF
29829 .gnu_attribute 4,1
29830 EOF
29831 cat > conftest2.s <<EOF
29832 .gnu_attribute 4,9
29833 EOF
29834 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29835 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29836 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29837 && test ! -s conftest.err; then
29838 gcc_cv_ld_ppc_attr=yes
29839 fi
29840 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29841 fi
29842
29843 fi
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29845 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29846 if test x$gcc_cv_ld_ppc_attr = xyes; then
29847
29848 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29849
29850 fi
29851 ;;
29852 esac
29853
29854 case "$target:$tm_file" in
29855 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29856 case "$target" in
29857 *le-*-linux*)
29858 emul_name="-melf64lppc"
29859 ;;
29860 *-*-linux*)
29861 emul_name="-melf64ppc"
29862 ;;
29863 *-*-freebsd*)
29864 emul_name="-melf64ppc_fbsd"
29865 ;;
29866 esac
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29868 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29869 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29870 $as_echo_n "(cached) " >&6
29871 else
29872 gcc_cv_ld_no_dot_syms=no
29873 if test x"$ld_is_gold" = xyes; then
29874 gcc_cv_ld_no_dot_syms=yes
29875 elif test $in_tree_ld = yes ; then
29876 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
29877 gcc_cv_ld_no_dot_syms=yes
29878 fi
29879 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29880 cat > conftest1.s <<EOF
29881 .text
29882 bl .foo
29883 EOF
29884 cat > conftest2.s <<EOF
29885 .section ".opd","aw"
29886 .align 3
29887 .globl foo
29888 .type foo,@function
29889 foo:
29890 .quad .LEfoo,.TOC.@tocbase,0
29891 .text
29892 .LEfoo:
29893 blr
29894 .size foo,.-.LEfoo
29895 EOF
29896 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29897 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29898 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29899 gcc_cv_ld_no_dot_syms=yes
29900 fi
29901 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29902 fi
29903
29904 fi
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29906 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29907 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29908
29909 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29910
29911 fi
29912
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29914 $as_echo_n "checking linker large toc support... " >&6; }
29915 if ${gcc_cv_ld_large_toc+:} false; then :
29916 $as_echo_n "(cached) " >&6
29917 else
29918 gcc_cv_ld_large_toc=no
29919 if test x"$ld_is_gold" = xyes; then
29920 gcc_cv_ld_large_toc=yes
29921 elif test $in_tree_ld = yes ; then
29922 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
29923 gcc_cv_ld_large_toc=yes
29924 fi
29925 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29926 cat > conftest.s <<EOF
29927 .section ".tbss","awT",@nobits
29928 .align 3
29929 ie0: .space 8
29930 .global _start
29931 .text
29932 _start:
29933 addis 9,13,ie0@got@tprel@ha
29934 ld 9,ie0@got@tprel@l(9)
29935 EOF
29936 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29937 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29938 gcc_cv_ld_large_toc=yes
29939 fi
29940 rm -f conftest conftest.o conftest.s
29941 fi
29942
29943 fi
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29945 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29946 if test x"$gcc_cv_ld_large_toc" = xyes; then
29947
29948 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29949
29950 fi
29951
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29953 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29954 if ${gcc_cv_ld_toc_align+:} false; then :
29955 $as_echo_n "(cached) " >&6
29956 else
29957 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29958 cat > conftest.s <<EOF
29959 .global _start
29960 .text
29961 _start:
29962 addis 9,2,x@got@ha
29963 .section .data.rel.ro,"aw",@progbits
29964 .p2align 16
29965 .space 32768
29966 x: .quad .TOC.
29967 EOF
29968 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29969 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29970 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)) }'`
29971 fi
29972 rm -f conftest conftest.o conftest.s
29973 fi
29974
29975 fi
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29977 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29978 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29979
29980 cat >>confdefs.h <<_ACEOF
29981 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29982 _ACEOF
29983
29984 fi
29985 ;;
29986 esac
29987
29988 case "$target" in
29989 *-*-aix*)
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29991 $as_echo_n "checking linker large toc support... " >&6; }
29992 if ${gcc_cv_ld_large_toc+:} false; then :
29993 $as_echo_n "(cached) " >&6
29994 else
29995 gcc_cv_ld_large_toc=no
29996 if test x$gcc_cv_as != x ; then
29997 cat > conftest.s <<EOF
29998 .toc
29999 LC..1:
30000 .tc a[TC],a[RW]
30001 .extern a[RW]
30002 .csect .text[PR]
30003 .largetoctest:
30004 addis 9,LC..1@u(2)
30005 ld 3,LC..1@l(9)
30006 EOF
30007 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30008 gcc_cv_ld_large_toc=yes
30009 fi
30010 rm -f conftest conftest.o conftest.s
30011 fi
30012
30013 fi
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30015 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30016 if test x"$gcc_cv_ld_large_toc" = xyes; then
30017
30018 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30019
30020 fi
30021 ;;
30022 esac
30023
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30025 $as_echo_n "checking linker --build-id support... " >&6; }
30026 if ${gcc_cv_ld_buildid+:} false; then :
30027 $as_echo_n "(cached) " >&6
30028 else
30029 gcc_cv_ld_buildid=no
30030 if test $in_tree_ld = yes ; then
30031 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30032 "$gcc_cv_gld_minor_version" -ge 18 -o \
30033 "$gcc_cv_gld_major_version" -gt 2 \
30034 && test $in_tree_ld_is_elf = yes; then
30035 gcc_cv_ld_buildid=yes
30036 fi
30037 elif test x$gcc_cv_ld != x; then
30038 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30039 gcc_cv_ld_buildid=yes
30040 fi
30041 fi
30042 fi
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30044 $as_echo "$gcc_cv_ld_buildid" >&6; }
30045 if test x"$gcc_cv_ld_buildid" = xyes; then
30046
30047 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30048
30049 fi
30050
30051 # Check whether --enable-linker-build-id was given.
30052 if test "${enable_linker_build_id+set}" = set; then :
30053 enableval=$enable_linker_build_id;
30054 else
30055 enable_linker_build_id=no
30056 fi
30057
30058
30059 if test x"$enable_linker_build_id" = xyes; then
30060 if test x"$gcc_cv_ld_buildid" = xyes; then
30061
30062 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30063
30064 else
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30066 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30067 fi
30068 fi
30069
30070 # In binutils 2.21, GNU ld gained support for new emulations fully
30071 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30073 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30074 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30075 $as_echo_n "(cached) " >&6
30076 else
30077 gcc_cv_ld_sol2_emulation=no
30078 if test $in_tree_ld = yes ; then
30079 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30080 "$gcc_cv_gld_minor_version" -ge 21 -o \
30081 "$gcc_cv_gld_major_version" -gt 2 \
30082 && test $in_tree_ld_is_elf = yes; then
30083 gcc_cv_ld_sol2_emulation=yes
30084 fi
30085 elif test x$gcc_cv_ld != x; then
30086 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30087 grep _sol2 > /dev/null; then
30088 gcc_cv_ld_sol2_emulation=yes
30089 fi
30090 fi
30091 fi
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30093 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30094 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30095
30096 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30097
30098 fi
30099
30100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30101 $as_echo_n "checking linker --sysroot support... " >&6; }
30102 if ${gcc_cv_ld_sysroot+:} false; then :
30103 $as_echo_n "(cached) " >&6
30104 else
30105 gcc_cv_ld_sysroot=no
30106 if test $in_tree_ld = yes ; then
30107 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
30108 gcc_cv_ld_sysroot=yes
30109 fi
30110 elif test x$gcc_cv_ld != x; then
30111 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30112 gcc_cv_ld_sysroot=yes
30113 fi
30114 fi
30115 fi
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30117 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30118 if test x"$gcc_cv_ld_sysroot" = xyes; then
30119
30120 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30121
30122 fi
30123
30124 case $target in
30125 *-*-solaris2*)
30126 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30128 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30129 if ${gcc_cv_solaris_crts+:} false; then :
30130 $as_echo_n "(cached) " >&6
30131 else
30132 gcc_cv_solaris_crts=no
30133 if test x$host != x$target; then
30134 if test "x$with_sysroot" = xyes; then
30135 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30136 else
30137 target_sysroot="${with_sysroot}"
30138 fi
30139 fi
30140 target_libdir="$target_sysroot/usr/lib"
30141 # At the time they were added, gcrt1.o became a symlink for backwards
30142 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30143 case $target in
30144 i?86-*-solaris2* | x86_64-*-solaris2*)
30145 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30146 ;;
30147 sparc*-*-solaris2*)
30148 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30149 ;;
30150 esac
30151 fi
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30153 $as_echo "$gcc_cv_solaris_crts" >&6; }
30154 ;;
30155 esac
30156 if test x$gcc_cv_solaris_crts = xyes; then
30157
30158 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30159
30160 fi
30161
30162 # Check whether --enable-libssp was given.
30163 if test "${enable_libssp+set}" = set; then :
30164 enableval=$enable_libssp; case "${enableval}" in
30165 yes|no)
30166 ;;
30167 *)
30168 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30169 ;;
30170 esac
30171 fi
30172
30173
30174 # Test for stack protector support in target C library.
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30176 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30177 if ${gcc_cv_libc_provides_ssp+:} false; then :
30178 $as_echo_n "(cached) " >&6
30179 else
30180 gcc_cv_libc_provides_ssp=no
30181 if test "x$enable_libssp" = "xno"; then
30182 gcc_cv_libc_provides_ssp=yes
30183 elif test "x$enable_libssp" = "xyes"; then
30184 gcc_cv_libc_provides_ssp=no
30185 else
30186 case "$target" in
30187 *-*-musl*)
30188 # All versions of musl provide stack protector
30189 gcc_cv_libc_provides_ssp=yes;;
30190 *-*-linux* | *-*-kfreebsd*-gnu)
30191 # glibc 2.4 and later provides __stack_chk_fail and
30192 # either __stack_chk_guard, or TLS access to stack guard canary.
30193
30194 if test $glibc_version_major -gt 2 \
30195 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30196 gcc_cv_libc_provides_ssp=yes
30197 else
30198
30199 if test -f $target_header_dir/features.h \
30200 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30201 $target_header_dir/features.h > /dev/null; then
30202 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30203 $target_header_dir/features.h > /dev/null && \
30204 test -f $target_header_dir/bits/uClibc_config.h && \
30205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30206 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30207 gcc_cv_libc_provides_ssp=yes
30208 fi
30209 # all versions of Bionic support stack protector
30210 elif test -f $target_header_dir/sys/cdefs.h \
30211 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30212 $target_header_dir/sys/cdefs.h > /dev/null; then
30213 gcc_cv_libc_provides_ssp=yes
30214 fi
30215 fi
30216 ;;
30217 *-*-gnu*)
30218 # Avoid complicated tests (see
30219 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30220 # simply assert that glibc does provide this, which is true for all
30221 # realistically usable GNU/Hurd configurations.
30222 # All supported versions of musl provide it as well
30223 gcc_cv_libc_provides_ssp=yes;;
30224 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
30225 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30226 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30227 gcc_cv_libc_provides_ssp=yes
30228 else
30229 echo "no __stack_chk_fail on this target"
30230 fi
30231
30232 ;;
30233 *) gcc_cv_libc_provides_ssp=no ;;
30234 esac
30235 fi
30236 fi
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30238 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30239
30240 if test x$gcc_cv_libc_provides_ssp = xyes; then
30241
30242 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30243
30244 fi
30245
30246 # Check whether --enable-default-ssp was given.
30247 # Check whether --enable-default-ssp was given.
30248 if test "${enable_default_ssp+set}" = set; then :
30249 enableval=$enable_default_ssp;
30250 if test x$gcc_cv_libc_provides_ssp = xyes; then
30251 case "$target" in
30252 ia64*-*-*) enable_default_ssp=no ;;
30253 *) enable_default_ssp=$enableval ;;
30254 esac
30255 else
30256 enable_default_ssp=no
30257 fi
30258 else
30259 enable_default_ssp=no
30260 fi
30261
30262 if test x$enable_default_ssp = xyes ; then
30263
30264 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30265
30266 fi
30267
30268
30269 # Test for <sys/sdt.h> on the target.
30270
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30272 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30273 have_sys_sdt_h=no
30274 if test -f $target_header_dir/sys/sdt.h; then
30275 have_sys_sdt_h=yes
30276
30277 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30278
30279 fi
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30281 $as_echo "$have_sys_sdt_h" >&6; }
30282
30283 # Check if TFmode long double should be used by default or not.
30284 # Some glibc targets used DFmode long double, but with glibc 2.4
30285 # and later they can use TFmode.
30286 case "$target" in
30287 powerpc*-*-linux* | \
30288 sparc*-*-linux* | \
30289 s390*-*-linux* | \
30290 alpha*-*-linux*)
30291
30292 # Check whether --with-long-double-128 was given.
30293 if test "${with_long_double_128+set}" = set; then :
30294 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30295 else
30296
30297 case "$target" in
30298 s390*-*-linux-musl*)
30299 gcc_cv_target_ldbl128=yes
30300 ;;
30301 powerpc*-*-linux-musl*)
30302 gcc_cv_target_ldbl128=no
30303 ;;
30304 *)
30305
30306 if test $glibc_version_major -gt 2 \
30307 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30308 gcc_cv_target_ldbl128=yes
30309 else
30310
30311 gcc_cv_target_ldbl128=no
30312 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30313 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30314 && gcc_cv_target_ldbl128=yes
30315
30316 fi
30317
30318 ;;
30319 esac
30320
30321 fi
30322
30323 ;;
30324 esac
30325 if test x$gcc_cv_target_ldbl128 = xyes; then
30326
30327 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30328
30329 fi
30330
30331 # Check if TFmode long double target should use the IBM extended double or IEEE
30332 # 128-bit floating point formats if long doubles are 128-bits long. The long
30333 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30334 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30335 # libgcc.
30336
30337 # Check whether --with-long-double-format was given.
30338 if test "${with_long_double_format+set}" = set; then :
30339 withval=$with_long_double_format;
30340 case "$target:$with_long_double_format" in
30341 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30342 :
30343 ;;
30344 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30345 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30346 case "$with_cpu" in
30347 power7 | power8 | power9 | power1*)
30348 :
30349 ;;
30350 *)
30351 as_fn_error $? "Configuration option --with-long-double-format is only \
30352 supported if the default cpu is power7 or newer" "$LINENO" 5
30353 with_long_double_format=""
30354 ;;
30355 esac
30356 ;;
30357 powerpc64*-*-linux*:*)
30358 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30359 with_long_double_format=""
30360 ;;
30361 *)
30362 as_fn_error $? "Configure option --with-long-double-format is only supported \
30363 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30364 with_long_double_format=""
30365 ;;
30366 esac
30367 fi
30368
30369
30370 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30371 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30372 gcc_cv_libc_provides_hwcap_in_tcb=no
30373 case "$target" in
30374 powerpc*-*-linux*)
30375
30376 if test $glibc_version_major -gt 2 \
30377 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30378 gcc_cv_libc_provides_hwcap_in_tcb=yes
30379 fi
30380 ;;
30381 esac
30382 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
30383
30384 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30385
30386 fi
30387
30388 # Check if the target LIBC handles PT_GNU_STACK.
30389 gcc_cv_libc_gnustack=unknown
30390 case "$target" in
30391 mips*-*-linux*)
30392
30393 if test $glibc_version_major -gt 2 \
30394 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30395 gcc_cv_libc_gnustack=yes
30396 fi
30397 ;;
30398 esac
30399 if test x$gcc_cv_libc_gnustack = xyes; then
30400
30401 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30402
30403 fi
30404
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30406 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30407 gcc_cv_target_dl_iterate_phdr=unknown
30408 case "$target" in
30409 *-*-solaris2*)
30410 # <link.h> needs both a dl_iterate_phdr declaration and support for
30411 # compilation with largefile support.
30412 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
30413 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
30414 gcc_cv_target_dl_iterate_phdr=yes
30415 else
30416 gcc_cv_target_dl_iterate_phdr=no
30417 fi
30418 ;;
30419 *-*-dragonfly* | *-*-freebsd*)
30420 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
30421 gcc_cv_target_dl_iterate_phdr=yes
30422 else
30423 gcc_cv_target_dl_iterate_phdr=no
30424 fi
30425 ;;
30426 *-linux-musl*)
30427 gcc_cv_target_dl_iterate_phdr=yes
30428 ;;
30429 esac
30430
30431 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
30432
30433 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30434
30435 fi
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30437 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30438
30439 # We no longer support different GC mechanisms. Emit an error if
30440 # the user configures with --with-gc.
30441
30442 # Check whether --with-gc was given.
30443 if test "${with_gc+set}" = set; then :
30444 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30445 fi
30446
30447
30448 # Libraries to use on the host. This will normally be set by the top
30449 # level Makefile. Here we simply capture the value for our Makefile.
30450 if test -z "${HOST_LIBS+set}"; then
30451 HOST_LIBS=
30452 fi
30453
30454
30455 # Use the system's zlib library.
30456
30457 # Use the system's zlib library.
30458 zlibdir="-L\$(top_builddir)/../zlib"
30459 zlibinc="-I\$(top_srcdir)/../zlib"
30460
30461 # Check whether --with-system-zlib was given.
30462 if test "${with_system_zlib+set}" = set; then :
30463 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30464 zlibdir=
30465 zlibinc=
30466 fi
30467
30468 fi
30469
30470
30471
30472
30473
30474
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30476 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30477 # Check whether --enable-maintainer-mode was given.
30478 if test "${enable_maintainer_mode+set}" = set; then :
30479 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30480 else
30481 maintainer_mode=no
30482 fi
30483
30484
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30486 $as_echo "$maintainer_mode" >&6; }
30487
30488 if test "$maintainer_mode" = "yes"; then
30489 MAINT=''
30490 else
30491 MAINT='#'
30492 fi
30493
30494
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30496 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30497 # Check whether --enable-link-mutex was given.
30498 if test "${enable_link_mutex+set}" = set; then :
30499 enableval=$enable_link_mutex; do_link_mutex=$enableval
30500 else
30501 do_link_mutex=no
30502 fi
30503
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30505 $as_echo "$do_link_mutex" >&6; }
30506
30507 if test "$do_link_mutex" = "yes"; then
30508 DO_LINK_MUTEX=true
30509 else
30510 DO_LINK_MUTEX=false
30511 fi
30512
30513
30514 # --------------
30515 # Language hooks
30516 # --------------
30517
30518 # Make empty files to contain the specs and options for each language.
30519 # Then add #include lines to for a compiler that has specs and/or options.
30520
30521 subdirs=
30522 lang_opt_files=
30523 lang_specs_files=
30524 lang_tree_files=
30525 # These (without "all_") are set in each config-lang.in.
30526 # `language' must be a single word so is spelled singularly.
30527 all_languages=
30528 all_compilers=
30529 all_outputs='Makefile'
30530 # List of language configure and makefile fragments.
30531 all_lang_configurefrags=
30532 all_lang_makefrags=
30533 # Additional files for gengtype
30534 all_gtfiles="$target_gtfiles"
30535
30536 # These are the languages that are set in --enable-languages,
30537 # and are available in the GCC tree.
30538 all_selected_languages=
30539
30540 # Add the language fragments.
30541 # Languages are added via two mechanisms. Some information must be
30542 # recorded in makefile variables, these are defined in config-lang.in.
30543 # We accumulate them and plug them into the main Makefile.
30544 # The other mechanism is a set of hooks for each of the main targets
30545 # like `clean', `install', etc.
30546
30547 language_hooks="Make-hooks"
30548
30549 for lang in ${srcdir}/*/config-lang.in
30550 do
30551 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30552
30553 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30554 if test "x$lang_alias" = x
30555 then
30556 echo "$lang doesn't set \$language." 1>&2
30557 exit 1
30558 fi
30559 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30560 subdirs="$subdirs $subdir"
30561
30562 # $gcc_subdir is where the gcc integration files are to be found
30563 # for a language, both for internal compiler purposes (compiler
30564 # sources implementing front-end to GCC tree converters), and for
30565 # build infrastructure purposes (Make-lang.in, etc.)
30566 #
30567 # This will be <subdir> (relative to $srcdir) if a line like
30568 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30569 # is found in <langdir>/config-lang.in, and will remain <langdir>
30570 # otherwise.
30571 #
30572 # Except for the language alias (fetched above), the regular
30573 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30574 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30575 # only this and the language alias.
30576
30577 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30578 if [ "$gcc_subdir" = "" ]; then
30579 gcc_subdir="$subdir"
30580 fi
30581
30582 case ",$enable_languages," in
30583 *,$lang_alias,*)
30584 all_selected_languages="$all_selected_languages $lang_alias"
30585 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30586 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30587 fi
30588 ;;
30589 esac
30590
30591 language=
30592 boot_language=
30593 compilers=
30594 outputs=
30595 gtfiles=
30596 subdir_requires=
30597 . ${srcdir}/$gcc_subdir/config-lang.in
30598 if test "x$language" = x
30599 then
30600 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30601 exit 1
30602 fi
30603
30604 ok=:
30605 case ",$enable_languages," in
30606 *,$lang_alias,*) ;;
30607 *)
30608 for i in $subdir_requires; do
30609 test -f "${srcdir}/$i/config-lang.in" && continue
30610 ok=false
30611 break
30612 done
30613 ;;
30614 esac
30615 $ok || continue
30616
30617 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30618 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30619 if test -f $srcdir/$gcc_subdir/lang.opt; then
30620 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30621 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30622 fi
30623 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30624 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30625 fi
30626 all_languages="$all_languages $language"
30627 all_compilers="$all_compilers $compilers"
30628 all_outputs="$all_outputs $outputs"
30629 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30630 case ",$enable_languages," in
30631 *,lto,*)
30632
30633 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30634
30635 enable_lto=yes
30636
30637 ;;
30638 *) ;;
30639 esac
30640 done
30641
30642 check_languages=
30643 for language in $all_selected_languages
30644 do
30645 check_languages="$check_languages check-$language"
30646 done
30647
30648 selftest_languages=
30649 for language in $all_selected_languages
30650 do
30651 selftest_languages="$selftest_languages selftest-$language"
30652 done
30653
30654 # We link each language in with a set of hooks, reached indirectly via
30655 # lang.${target}. Only do so for selected languages.
30656
30657 rm -f Make-hooks
30658 touch Make-hooks
30659 target_list="all.cross start.encap rest.encap tags \
30660 install-common install-man install-info install-pdf install-html dvi \
30661 pdf html uninstall info man srcextra srcman srcinfo \
30662 mostlyclean clean distclean maintainer-clean install-plugin"
30663
30664 for t in $target_list
30665 do
30666 x=
30667 for lang in $all_selected_languages
30668 do
30669 x="$x $lang.$t"
30670 done
30671 echo "lang.$t: $x" >> Make-hooks
30672 done
30673
30674 # --------
30675 # Option include files
30676 # --------
30677
30678 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30679 option_includes="option-includes.mk"
30680
30681
30682 # --------
30683 # UNSORTED
30684 # --------
30685
30686 # Create .gdbinit.
30687
30688 echo "dir ." > .gdbinit
30689 echo "dir ${srcdir}" >> .gdbinit
30690 if test x$gdb_needs_out_file_path = xyes
30691 then
30692 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30693 fi
30694 if test "x$subdirs" != x; then
30695 for s in $subdirs
30696 do
30697 echo "dir ${srcdir}/$s" >> .gdbinit
30698 done
30699 fi
30700 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30701 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30702
30703 # Put a breakpoint on __asan_report_error to help with debugging buffer
30704 # overflow.
30705 case "$CFLAGS" in
30706 *-fsanitize=address*)
30707 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30708 ;;
30709 esac
30710
30711 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30712
30713
30714
30715 # Find a directory in which to install a shared libgcc.
30716
30717 # Check whether --enable-version-specific-runtime-libs was given.
30718 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30719 enableval=$enable_version_specific_runtime_libs;
30720 fi
30721
30722
30723 # Substitute configuration variables
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791 # Echo link setup.
30792 if test x${build} = x${host} ; then
30793 if test x${host} = x${target} ; then
30794 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30795 else
30796 echo "Links are now set up to build a cross-compiler" 1>&2
30797 echo " from ${host} to ${target}." 1>&2
30798 fi
30799 else
30800 if test x${host} = x${target} ; then
30801 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30802 echo " for ${target}." 1>&2
30803 else
30804 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30805 echo " from ${host} to ${target}." 1>&2
30806 fi
30807 fi
30808
30809
30810
30811
30812
30813
30814 if test "x${ISLLIBS}" != "x" ; then
30815
30816 $as_echo "#define HAVE_isl 1" >>confdefs.h
30817
30818 fi
30819
30820 # Check for plugin support
30821 # Check whether --enable-plugin was given.
30822 if test "${enable_plugin+set}" = set; then :
30823 enableval=$enable_plugin; enable_plugin=$enableval
30824 else
30825 enable_plugin=yes; default_plugin=yes
30826 fi
30827
30828
30829 pluginlibs=
30830 plugin_check=yes
30831
30832 case "${host}" in
30833 *-*-mingw*)
30834 # Since plugin support under MinGW is not as straightforward as on
30835 # other platforms (e.g., we have to link import library, etc), we
30836 # only enable it if explicitly requested.
30837 if test x"$default_plugin" = x"yes"; then
30838 enable_plugin=no
30839 elif test x"$enable_plugin" = x"yes"; then
30840 # Use make's target variable to derive import library name.
30841 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30842 plugin_check=no
30843 fi
30844 ;;
30845 *-*-darwin*)
30846 if test x$build = x$host; then
30847 export_sym_check="nm${exeext} -g"
30848 elif test x$host = x$target; then
30849 export_sym_check="$gcc_cv_nm -g"
30850 else
30851 export_sym_check=
30852 fi
30853 ;;
30854 *)
30855 if test x$build = x$host; then
30856 export_sym_check="objdump${exeext} -T"
30857 elif test x$host = x$target; then
30858 export_sym_check="$gcc_cv_objdump -T"
30859 else
30860 export_sym_check=
30861 fi
30862 ;;
30863 esac
30864
30865 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30866
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30868 $as_echo_n "checking for exported symbols... " >&6; }
30869 if test "x$export_sym_check" != x; then
30870 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30871 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30872 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30873 : # No need to use a flag
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30875 $as_echo "yes" >&6; }
30876 else
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30878 $as_echo "yes" >&6; }
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30880 $as_echo_n "checking for -rdynamic... " >&6; }
30881 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30882 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30883 plugin_rdynamic=yes
30884 pluginlibs="-rdynamic"
30885 else
30886 plugin_rdynamic=no
30887 enable_plugin=no
30888 fi
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30890 $as_echo "$plugin_rdynamic" >&6; }
30891 fi
30892 else
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30894 $as_echo "unable to check" >&6; }
30895 fi
30896
30897 # Check -ldl
30898 saved_LIBS="$LIBS"
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30900 $as_echo_n "checking for library containing dlopen... " >&6; }
30901 if ${ac_cv_search_dlopen+:} false; then :
30902 $as_echo_n "(cached) " >&6
30903 else
30904 ac_func_search_save_LIBS=$LIBS
30905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30906 /* end confdefs.h. */
30907
30908 /* Override any GCC internal prototype to avoid an error.
30909 Use char because int might match the return type of a GCC
30910 builtin and then its argument prototype would still apply. */
30911 #ifdef __cplusplus
30912 extern "C"
30913 #endif
30914 char dlopen ();
30915 int
30916 main ()
30917 {
30918 return dlopen ();
30919 ;
30920 return 0;
30921 }
30922 _ACEOF
30923 for ac_lib in '' dl; do
30924 if test -z "$ac_lib"; then
30925 ac_res="none required"
30926 else
30927 ac_res=-l$ac_lib
30928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30929 fi
30930 if ac_fn_cxx_try_link "$LINENO"; then :
30931 ac_cv_search_dlopen=$ac_res
30932 fi
30933 rm -f core conftest.err conftest.$ac_objext \
30934 conftest$ac_exeext
30935 if ${ac_cv_search_dlopen+:} false; then :
30936 break
30937 fi
30938 done
30939 if ${ac_cv_search_dlopen+:} false; then :
30940
30941 else
30942 ac_cv_search_dlopen=no
30943 fi
30944 rm conftest.$ac_ext
30945 LIBS=$ac_func_search_save_LIBS
30946 fi
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30948 $as_echo "$ac_cv_search_dlopen" >&6; }
30949 ac_res=$ac_cv_search_dlopen
30950 if test "$ac_res" != no; then :
30951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30952
30953 fi
30954
30955 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30956 pluginlibs="$pluginlibs -ldl"
30957 fi
30958 LIBS="$saved_LIBS"
30959
30960 # Check that we can build shared objects with -fPIC -shared
30961 saved_LDFLAGS="$LDFLAGS"
30962 saved_CFLAGS="$CFLAGS"
30963 case "${host}" in
30964 *-*-darwin*)
30965 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30966 CFLAGS="$CFLAGS -fPIC"
30967 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30968 ;;
30969 *)
30970 CFLAGS="$CFLAGS -fPIC"
30971 LDFLAGS="$LDFLAGS -fPIC -shared"
30972 ;;
30973 esac
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30975 $as_echo_n "checking for -fPIC -shared... " >&6; }
30976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30977 /* end confdefs.h. */
30978 extern int X;
30979 int
30980 main ()
30981 {
30982 return X == 0;
30983 ;
30984 return 0;
30985 }
30986 _ACEOF
30987 if ac_fn_cxx_try_link "$LINENO"; then :
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989 $as_echo "yes" >&6; }; have_pic_shared=yes
30990 else
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30992 $as_echo "no" >&6; }; have_pic_shared=no
30993 fi
30994 rm -f core conftest.err conftest.$ac_objext \
30995 conftest$ac_exeext conftest.$ac_ext
30996 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30997 pluginlibs=
30998 enable_plugin=no
30999 fi
31000 LDFLAGS="$saved_LDFLAGS"
31001 CFLAGS="$saved_CFLAGS"
31002
31003 # If plugin support had been requested but not available, fail.
31004 if test x"$enable_plugin" = x"no" ; then
31005 if test x"$default_plugin" != x"yes"; then
31006 as_fn_error $? "
31007 Building GCC with plugin support requires a host that supports
31008 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31009 fi
31010 fi
31011 fi
31012
31013
31014
31015 if test x"$enable_plugin" = x"yes"; then
31016
31017 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31018
31019 fi
31020
31021
31022 # Enable --enable-host-shared
31023 # Check whether --enable-host-shared was given.
31024 if test "${enable_host_shared+set}" = set; then :
31025 enableval=$enable_host_shared; PICFLAG=-fPIC
31026 else
31027 PICFLAG=
31028 fi
31029
31030
31031
31032
31033
31034 # Check whether --enable-libquadmath-support was given.
31035 if test "${enable_libquadmath_support+set}" = set; then :
31036 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31037 else
31038 ENABLE_LIBQUADMATH_SUPPORT=yes
31039 fi
31040
31041 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31042
31043 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31044
31045 fi
31046
31047
31048 # Specify what hash style to use by default.
31049
31050 # Check whether --with-linker-hash-style was given.
31051 if test "${with_linker_hash_style+set}" = set; then :
31052 withval=$with_linker_hash_style; case x"$withval" in
31053 xsysv)
31054 LINKER_HASH_STYLE=sysv
31055 ;;
31056 xgnu)
31057 LINKER_HASH_STYLE=gnu
31058 ;;
31059 xboth)
31060 LINKER_HASH_STYLE=both
31061 ;;
31062 *)
31063 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31064 ;;
31065 esac
31066 else
31067 LINKER_HASH_STYLE=''
31068 fi
31069
31070 if test x"${LINKER_HASH_STYLE}" != x; then
31071
31072 cat >>confdefs.h <<_ACEOF
31073 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31074 _ACEOF
31075
31076 fi
31077
31078 # Specify what should be the default of -fdiagnostics-color option.
31079
31080 # Check whether --with-diagnostics-color was given.
31081 if test "${with_diagnostics_color+set}" = set; then :
31082 withval=$with_diagnostics_color; case x"$withval" in
31083 xnever)
31084 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31085 ;;
31086 xauto)
31087 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31088 ;;
31089 xauto-if-env)
31090 DIAGNOSTICS_COLOR_DEFAULT=-1
31091 ;;
31092 xalways)
31093 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31094 ;;
31095 *)
31096 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31097 ;;
31098 esac
31099 else
31100 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31101 fi
31102
31103
31104 cat >>confdefs.h <<_ACEOF
31105 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31106 _ACEOF
31107
31108
31109 # Specify what should be the default of -fdiagnostics-urls option.
31110
31111 # Check whether --with-diagnostics-urls was given.
31112 if test "${with_diagnostics_urls+set}" = set; then :
31113 withval=$with_diagnostics_urls; case x"$withval" in
31114 xnever)
31115 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31116 ;;
31117 xauto)
31118 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31119 ;;
31120 xauto-if-env)
31121 DIAGNOSTICS_URLS_DEFAULT=-1
31122 ;;
31123 xalways)
31124 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31125 ;;
31126 *)
31127 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31128 ;;
31129 esac
31130 else
31131 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31132 fi
31133
31134
31135 cat >>confdefs.h <<_ACEOF
31136 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31137 _ACEOF
31138
31139
31140 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31141 # of jit/jit-playback.c.
31142 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31143 echo "gcc_driver_version: ${gcc_driver_version}"
31144 cat > gcc-driver-name.h <<EOF
31145 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31146 EOF
31147
31148 # Check whether --enable-default-pie was given.
31149 # Check whether --enable-default-pie was given.
31150 if test "${enable_default_pie+set}" = set; then :
31151 enableval=$enable_default_pie; enable_default_pie=$enableval
31152 else
31153 enable_default_pie=no
31154 fi
31155
31156 if test x$enable_default_pie = xyes ; then
31157
31158 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31159
31160 fi
31161
31162
31163 # Check if -fno-PIE works.
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31165 $as_echo_n "checking for -fno-PIE option... " >&6; }
31166 if ${gcc_cv_c_no_fpie+:} false; then :
31167 $as_echo_n "(cached) " >&6
31168 else
31169 saved_CXXFLAGS="$CXXFLAGS"
31170 CXXFLAGS="$CXXFLAGS -fno-PIE"
31171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31172 /* end confdefs.h. */
31173 int main(void) {return 0;}
31174 _ACEOF
31175 if ac_fn_cxx_try_compile "$LINENO"; then :
31176 gcc_cv_c_no_fpie=yes
31177 else
31178 gcc_cv_c_no_fpie=no
31179 fi
31180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31181 CXXFLAGS="$saved_CXXFLAGS"
31182 fi
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31184 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31185 if test "$gcc_cv_c_no_fpie" = "yes"; then
31186 NO_PIE_CFLAGS="-fno-PIE"
31187 fi
31188
31189
31190 # Check if -no-pie works.
31191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31192 $as_echo_n "checking for -no-pie option... " >&6; }
31193 if ${gcc_cv_no_pie+:} false; then :
31194 $as_echo_n "(cached) " >&6
31195 else
31196 saved_LDFLAGS="$LDFLAGS"
31197 LDFLAGS="$LDFLAGS -no-pie"
31198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31199 /* end confdefs.h. */
31200 int main(void) {return 0;}
31201 _ACEOF
31202 if ac_fn_cxx_try_link "$LINENO"; then :
31203 gcc_cv_no_pie=yes
31204 else
31205 gcc_cv_no_pie=no
31206 fi
31207 rm -f core conftest.err conftest.$ac_objext \
31208 conftest$ac_exeext conftest.$ac_ext
31209 LDFLAGS="$saved_LDFLAGS"
31210 fi
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31212 $as_echo "$gcc_cv_no_pie" >&6; }
31213 if test "$gcc_cv_no_pie" = "yes"; then
31214 NO_PIE_FLAG="-no-pie"
31215 fi
31216
31217
31218 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31219 # Check whether --enable-cet was given.
31220 if test "${enable_cet+set}" = set; then :
31221 enableval=$enable_cet;
31222 case "$enableval" in
31223 yes|no|auto) ;;
31224 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31225 esac
31226
31227 else
31228 enable_cet=auto
31229 fi
31230
31231
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31233 $as_echo_n "checking for CET support... " >&6; }
31234
31235 case "$host" in
31236 i[34567]86-*-linux* | x86_64-*-linux*)
31237 may_have_cet=yes
31238 cet_save_CFLAGS="$CFLAGS"
31239 CFLAGS="$CFLAGS -fcf-protection"
31240 case "$enable_cet" in
31241 auto)
31242 # Check if target supports multi-byte NOPs
31243 # and if compiler and assembler support CET.
31244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31245 /* end confdefs.h. */
31246
31247 int
31248 main ()
31249 {
31250
31251 #if !defined(__SSE2__)
31252 #error target does not support multi-byte NOPs
31253 #else
31254 asm ("setssbsy");
31255 #endif
31256
31257 ;
31258 return 0;
31259 }
31260 _ACEOF
31261 if ac_fn_cxx_try_compile "$LINENO"; then :
31262 enable_cet=yes
31263 else
31264 enable_cet=no
31265 fi
31266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267 ;;
31268 yes)
31269 # Check if compiler and assembler support CET.
31270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31271 /* end confdefs.h. */
31272
31273 int
31274 main ()
31275 {
31276 asm ("setssbsy");
31277 ;
31278 return 0;
31279 }
31280 _ACEOF
31281 if ac_fn_cxx_try_compile "$LINENO"; then :
31282 support_cet=yes
31283 else
31284 support_cet=no
31285 fi
31286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31287 if test $support_cet = "no"; then
31288 if test x$enable_bootstrap != xno \
31289 && test -z "${with_build_subdir}" \
31290 && (test ! -f ../stage_current \
31291 || test `cat ../stage_current` != "stage1"); then
31292 # Require CET support only for the final GCC build.
31293 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31294 else
31295 # Don't enable CET without CET support for non-bootstrap
31296 # build, in stage1 nor for build support.
31297 enable_cet=no
31298 fi
31299 fi
31300 ;;
31301 esac
31302 CFLAGS="$cet_save_CFLAGS"
31303 ;;
31304 *)
31305 may_have_cet=no
31306 enable_cet=no
31307 ;;
31308 esac
31309
31310 cet_save_CFLAGS="$CFLAGS"
31311 CFLAGS="$CFLAGS -fcf-protection=none"
31312 cet_save_LDFLAGS="$LDFLAGS"
31313 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31314 if test x$may_have_cet = xyes; then
31315 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31317 /* end confdefs.h. */
31318
31319 int
31320 main ()
31321 {
31322 return 0;
31323 ;
31324 return 0;
31325 }
31326 _ACEOF
31327 if ac_fn_cxx_try_link "$LINENO"; then :
31328 may_have_cet=yes
31329 else
31330 may_have_cet=no
31331 fi
31332 rm -f core conftest.err conftest.$ac_objext \
31333 conftest$ac_exeext conftest.$ac_ext
31334 fi
31335
31336 if test x$may_have_cet = xyes; then
31337 if test x$cross_compiling = xno; then
31338 if test "$cross_compiling" = yes; then :
31339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31341 as_fn_error $? "cannot run test program while cross compiling
31342 See \`config.log' for more details" "$LINENO" 5; }
31343 else
31344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31345 /* end confdefs.h. */
31346
31347 static void
31348 foo (void)
31349 {
31350 }
31351
31352 static void
31353 __attribute__ ((noinline, noclone))
31354 xxx (void (*f) (void))
31355 {
31356 f ();
31357 }
31358
31359 static void
31360 __attribute__ ((noinline, noclone))
31361 bar (void)
31362 {
31363 xxx (foo);
31364 }
31365
31366 int
31367 main ()
31368 {
31369 bar ();
31370 return 0;
31371 }
31372
31373 _ACEOF
31374 if ac_fn_cxx_try_run "$LINENO"; then :
31375 have_cet=no
31376 else
31377 have_cet=yes
31378 fi
31379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31380 conftest.$ac_objext conftest.beam conftest.$ac_ext
31381 fi
31382
31383 if test x$enable_cet = xno -a x$have_cet = xyes; then
31384 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31385 fi
31386 fi
31387 else
31388 # Enable CET in cross compiler if possible so that it will run on both
31389 # CET and non-CET hosts.
31390 have_cet=yes
31391 fi
31392 if test x$enable_cet = xyes; then
31393 CET_HOST_FLAGS="-fcf-protection"
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31395 $as_echo "yes" >&6; }
31396 else
31397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31398 $as_echo "no" >&6; }
31399 fi
31400 CFLAGS="$cet_save_CFLAGS"
31401 LDFLAGS="$cet_save_LDFLAGS"
31402
31403 case x$enable_languages in
31404 *jit*)
31405 ;;
31406 *)
31407 CET_HOST_FLAGS=
31408 ;;
31409 esac
31410
31411
31412 # Check linker supports '-z bndplt'
31413 ld_bndplt_support=no
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31415 $as_echo_n "checking linker -z bndplt option... " >&6; }
31416 if test x"$ld_is_gold" = xno; then
31417 if test $in_tree_ld = yes ; then
31418 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
31419 ld_bndplt_support=yes
31420 fi
31421 elif test x$gcc_cv_ld != x; then
31422 # Check if linker supports -a bndplt option
31423 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
31424 ld_bndplt_support=yes
31425 fi
31426 fi
31427 fi
31428 if test x"$ld_bndplt_support" = xyes; then
31429
31430 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31431
31432 fi
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31434 $as_echo "$ld_bndplt_support" >&6; }
31435
31436 # Check linker supports '--push-state'/'--pop-state'
31437 ld_pushpopstate_support=no
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31439 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31440 if test x"$ld_is_gold" = xno; then
31441 if test $in_tree_ld = yes ; then
31442 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
31443 ld_pushpopstate_support=yes
31444 fi
31445 elif test x$gcc_cv_ld != x; then
31446 # Check if linker supports --push-state/--pop-state options
31447 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
31448 ld_pushpopstate_support=yes
31449 fi
31450 fi
31451 fi
31452 if test x"$ld_pushpopstate_support" = xyes; then
31453
31454 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31455
31456 fi
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31458 $as_echo "$ld_pushpopstate_support" >&6; }
31459
31460 # Configure the subdirectories
31461 # AC_CONFIG_SUBDIRS($subdirs)
31462
31463 # Create the Makefile
31464 # and configure language subdirectories
31465 ac_config_files="$ac_config_files $all_outputs"
31466
31467
31468 ac_config_commands="$ac_config_commands default"
31469
31470 cat >confcache <<\_ACEOF
31471 # This file is a shell script that caches the results of configure
31472 # tests run on this system so they can be shared between configure
31473 # scripts and configure runs, see configure's option --config-cache.
31474 # It is not useful on other systems. If it contains results you don't
31475 # want to keep, you may remove or edit it.
31476 #
31477 # config.status only pays attention to the cache file if you give it
31478 # the --recheck option to rerun configure.
31479 #
31480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31482 # following values.
31483
31484 _ACEOF
31485
31486 # The following way of writing the cache mishandles newlines in values,
31487 # but we know of no workaround that is simple, portable, and efficient.
31488 # So, we kill variables containing newlines.
31489 # Ultrix sh set writes to stderr and can't be redirected directly,
31490 # and sets the high bit in the cache file unless we assign to the vars.
31491 (
31492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31493 eval ac_val=\$$ac_var
31494 case $ac_val in #(
31495 *${as_nl}*)
31496 case $ac_var in #(
31497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31499 esac
31500 case $ac_var in #(
31501 _ | IFS | as_nl) ;; #(
31502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31503 *) { eval $ac_var=; unset $ac_var;} ;;
31504 esac ;;
31505 esac
31506 done
31507
31508 (set) 2>&1 |
31509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31510 *${as_nl}ac_space=\ *)
31511 # `set' does not quote correctly, so add quotes: double-quote
31512 # substitution turns \\\\ into \\, and sed turns \\ into \.
31513 sed -n \
31514 "s/'/'\\\\''/g;
31515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31516 ;; #(
31517 *)
31518 # `set' quotes correctly as required by POSIX, so do not add quotes.
31519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31520 ;;
31521 esac |
31522 sort
31523 ) |
31524 sed '
31525 /^ac_cv_env_/b end
31526 t clear
31527 :clear
31528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31529 t end
31530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31531 :end' >>confcache
31532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31533 if test -w "$cache_file"; then
31534 if test "x$cache_file" != "x/dev/null"; then
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31536 $as_echo "$as_me: updating cache $cache_file" >&6;}
31537 if test ! -f "$cache_file" || test -h "$cache_file"; then
31538 cat confcache >"$cache_file"
31539 else
31540 case $cache_file in #(
31541 */* | ?:*)
31542 mv -f confcache "$cache_file"$$ &&
31543 mv -f "$cache_file"$$ "$cache_file" ;; #(
31544 *)
31545 mv -f confcache "$cache_file" ;;
31546 esac
31547 fi
31548 fi
31549 else
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31552 fi
31553 fi
31554 rm -f confcache
31555
31556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31557 # Let make expand exec_prefix.
31558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31559
31560 DEFS=-DHAVE_CONFIG_H
31561
31562 ac_libobjs=
31563 ac_ltlibobjs=
31564 U=
31565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31566 # 1. Remove the extension, and $U if already installed.
31567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31570 # will be set to the directory where LIBOBJS objects are built.
31571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31573 done
31574 LIBOBJS=$ac_libobjs
31575
31576 LTLIBOBJS=$ac_ltlibobjs
31577
31578
31579
31580
31581 : "${CONFIG_STATUS=./config.status}"
31582 ac_write_fail=0
31583 ac_clean_files_save=$ac_clean_files
31584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31587 as_write_fail=0
31588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31589 #! $SHELL
31590 # Generated by $as_me.
31591 # Run this file to recreate the current configuration.
31592 # Compiler output produced by configure, useful for debugging
31593 # configure, is in config.log if it exists.
31594
31595 debug=false
31596 ac_cs_recheck=false
31597 ac_cs_silent=false
31598
31599 SHELL=\${CONFIG_SHELL-$SHELL}
31600 export SHELL
31601 _ASEOF
31602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31603 ## -------------------- ##
31604 ## M4sh Initialization. ##
31605 ## -------------------- ##
31606
31607 # Be more Bourne compatible
31608 DUALCASE=1; export DUALCASE # for MKS sh
31609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31610 emulate sh
31611 NULLCMD=:
31612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31613 # is contrary to our usage. Disable this feature.
31614 alias -g '${1+"$@"}'='"$@"'
31615 setopt NO_GLOB_SUBST
31616 else
31617 case `(set -o) 2>/dev/null` in #(
31618 *posix*) :
31619 set -o posix ;; #(
31620 *) :
31621 ;;
31622 esac
31623 fi
31624
31625
31626 as_nl='
31627 '
31628 export as_nl
31629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31633 # Prefer a ksh shell builtin over an external printf program on Solaris,
31634 # but without wasting forks for bash or zsh.
31635 if test -z "$BASH_VERSION$ZSH_VERSION" \
31636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31637 as_echo='print -r --'
31638 as_echo_n='print -rn --'
31639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31640 as_echo='printf %s\n'
31641 as_echo_n='printf %s'
31642 else
31643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31645 as_echo_n='/usr/ucb/echo -n'
31646 else
31647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31648 as_echo_n_body='eval
31649 arg=$1;
31650 case $arg in #(
31651 *"$as_nl"*)
31652 expr "X$arg" : "X\\(.*\\)$as_nl";
31653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31654 esac;
31655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31656 '
31657 export as_echo_n_body
31658 as_echo_n='sh -c $as_echo_n_body as_echo'
31659 fi
31660 export as_echo_body
31661 as_echo='sh -c $as_echo_body as_echo'
31662 fi
31663
31664 # The user is always right.
31665 if test "${PATH_SEPARATOR+set}" != set; then
31666 PATH_SEPARATOR=:
31667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31669 PATH_SEPARATOR=';'
31670 }
31671 fi
31672
31673
31674 # IFS
31675 # We need space, tab and new line, in precisely that order. Quoting is
31676 # there to prevent editors from complaining about space-tab.
31677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31678 # splitting by setting IFS to empty value.)
31679 IFS=" "" $as_nl"
31680
31681 # Find who we are. Look in the path if we contain no directory separator.
31682 as_myself=
31683 case $0 in #((
31684 *[\\/]* ) as_myself=$0 ;;
31685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31686 for as_dir in $PATH
31687 do
31688 IFS=$as_save_IFS
31689 test -z "$as_dir" && as_dir=.
31690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31691 done
31692 IFS=$as_save_IFS
31693
31694 ;;
31695 esac
31696 # We did not find ourselves, most probably we were run as `sh COMMAND'
31697 # in which case we are not to be found in the path.
31698 if test "x$as_myself" = x; then
31699 as_myself=$0
31700 fi
31701 if test ! -f "$as_myself"; then
31702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31703 exit 1
31704 fi
31705
31706 # Unset variables that we do not need and which cause bugs (e.g. in
31707 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31708 # suppresses any "Segmentation fault" message there. '((' could
31709 # trigger a bug in pdksh 5.2.14.
31710 for as_var in BASH_ENV ENV MAIL MAILPATH
31711 do eval test x\${$as_var+set} = xset \
31712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31713 done
31714 PS1='$ '
31715 PS2='> '
31716 PS4='+ '
31717
31718 # NLS nuisances.
31719 LC_ALL=C
31720 export LC_ALL
31721 LANGUAGE=C
31722 export LANGUAGE
31723
31724 # CDPATH.
31725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31726
31727
31728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31729 # ----------------------------------------
31730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31732 # script with STATUS, using 1 if that was 0.
31733 as_fn_error ()
31734 {
31735 as_status=$1; test $as_status -eq 0 && as_status=1
31736 if test "$4"; then
31737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31739 fi
31740 $as_echo "$as_me: error: $2" >&2
31741 as_fn_exit $as_status
31742 } # as_fn_error
31743
31744
31745 # as_fn_set_status STATUS
31746 # -----------------------
31747 # Set $? to STATUS, without forking.
31748 as_fn_set_status ()
31749 {
31750 return $1
31751 } # as_fn_set_status
31752
31753 # as_fn_exit STATUS
31754 # -----------------
31755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31756 as_fn_exit ()
31757 {
31758 set +e
31759 as_fn_set_status $1
31760 exit $1
31761 } # as_fn_exit
31762
31763 # as_fn_unset VAR
31764 # ---------------
31765 # Portably unset VAR.
31766 as_fn_unset ()
31767 {
31768 { eval $1=; unset $1;}
31769 }
31770 as_unset=as_fn_unset
31771 # as_fn_append VAR VALUE
31772 # ----------------------
31773 # Append the text in VALUE to the end of the definition contained in VAR. Take
31774 # advantage of any shell optimizations that allow amortized linear growth over
31775 # repeated appends, instead of the typical quadratic growth present in naive
31776 # implementations.
31777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31778 eval 'as_fn_append ()
31779 {
31780 eval $1+=\$2
31781 }'
31782 else
31783 as_fn_append ()
31784 {
31785 eval $1=\$$1\$2
31786 }
31787 fi # as_fn_append
31788
31789 # as_fn_arith ARG...
31790 # ------------------
31791 # Perform arithmetic evaluation on the ARGs, and store the result in the
31792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31793 # must be portable across $(()) and expr.
31794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31795 eval 'as_fn_arith ()
31796 {
31797 as_val=$(( $* ))
31798 }'
31799 else
31800 as_fn_arith ()
31801 {
31802 as_val=`expr "$@" || test $? -eq 1`
31803 }
31804 fi # as_fn_arith
31805
31806
31807 if expr a : '\(a\)' >/dev/null 2>&1 &&
31808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31809 as_expr=expr
31810 else
31811 as_expr=false
31812 fi
31813
31814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31815 as_basename=basename
31816 else
31817 as_basename=false
31818 fi
31819
31820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31821 as_dirname=dirname
31822 else
31823 as_dirname=false
31824 fi
31825
31826 as_me=`$as_basename -- "$0" ||
31827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31828 X"$0" : 'X\(//\)$' \| \
31829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31830 $as_echo X/"$0" |
31831 sed '/^.*\/\([^/][^/]*\)\/*$/{
31832 s//\1/
31833 q
31834 }
31835 /^X\/\(\/\/\)$/{
31836 s//\1/
31837 q
31838 }
31839 /^X\/\(\/\).*/{
31840 s//\1/
31841 q
31842 }
31843 s/.*/./; q'`
31844
31845 # Avoid depending upon Character Ranges.
31846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31849 as_cr_digits='0123456789'
31850 as_cr_alnum=$as_cr_Letters$as_cr_digits
31851
31852 ECHO_C= ECHO_N= ECHO_T=
31853 case `echo -n x` in #(((((
31854 -n*)
31855 case `echo 'xy\c'` in
31856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31857 xy) ECHO_C='\c';;
31858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31859 ECHO_T=' ';;
31860 esac;;
31861 *)
31862 ECHO_N='-n';;
31863 esac
31864
31865 rm -f conf$$ conf$$.exe conf$$.file
31866 if test -d conf$$.dir; then
31867 rm -f conf$$.dir/conf$$.file
31868 else
31869 rm -f conf$$.dir
31870 mkdir conf$$.dir 2>/dev/null
31871 fi
31872 if (echo >conf$$.file) 2>/dev/null; then
31873 if ln -s conf$$.file conf$$ 2>/dev/null; then
31874 as_ln_s='ln -s'
31875 # ... but there are two gotchas:
31876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31878 # In both cases, we have to default to `cp -pR'.
31879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31880 as_ln_s='cp -pR'
31881 elif ln conf$$.file conf$$ 2>/dev/null; then
31882 as_ln_s=ln
31883 else
31884 as_ln_s='cp -pR'
31885 fi
31886 else
31887 as_ln_s='cp -pR'
31888 fi
31889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31890 rmdir conf$$.dir 2>/dev/null
31891
31892
31893 # as_fn_mkdir_p
31894 # -------------
31895 # Create "$as_dir" as a directory, including parents if necessary.
31896 as_fn_mkdir_p ()
31897 {
31898
31899 case $as_dir in #(
31900 -*) as_dir=./$as_dir;;
31901 esac
31902 test -d "$as_dir" || eval $as_mkdir_p || {
31903 as_dirs=
31904 while :; do
31905 case $as_dir in #(
31906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31907 *) as_qdir=$as_dir;;
31908 esac
31909 as_dirs="'$as_qdir' $as_dirs"
31910 as_dir=`$as_dirname -- "$as_dir" ||
31911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31912 X"$as_dir" : 'X\(//\)[^/]' \| \
31913 X"$as_dir" : 'X\(//\)$' \| \
31914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31915 $as_echo X"$as_dir" |
31916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31917 s//\1/
31918 q
31919 }
31920 /^X\(\/\/\)[^/].*/{
31921 s//\1/
31922 q
31923 }
31924 /^X\(\/\/\)$/{
31925 s//\1/
31926 q
31927 }
31928 /^X\(\/\).*/{
31929 s//\1/
31930 q
31931 }
31932 s/.*/./; q'`
31933 test -d "$as_dir" && break
31934 done
31935 test -z "$as_dirs" || eval "mkdir $as_dirs"
31936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31937
31938
31939 } # as_fn_mkdir_p
31940 if mkdir -p . 2>/dev/null; then
31941 as_mkdir_p='mkdir -p "$as_dir"'
31942 else
31943 test -d ./-p && rmdir ./-p
31944 as_mkdir_p=false
31945 fi
31946
31947
31948 # as_fn_executable_p FILE
31949 # -----------------------
31950 # Test if FILE is an executable regular file.
31951 as_fn_executable_p ()
31952 {
31953 test -f "$1" && test -x "$1"
31954 } # as_fn_executable_p
31955 as_test_x='test -x'
31956 as_executable_p=as_fn_executable_p
31957
31958 # Sed expression to map a string onto a valid CPP name.
31959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31960
31961 # Sed expression to map a string onto a valid variable name.
31962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31963
31964
31965 exec 6>&1
31966 ## ----------------------------------- ##
31967 ## Main body of $CONFIG_STATUS script. ##
31968 ## ----------------------------------- ##
31969 _ASEOF
31970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31971
31972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31973 # Save the log message, to keep $0 and so on meaningful, and to
31974 # report actual input values of CONFIG_FILES etc. instead of their
31975 # values after options handling.
31976 ac_log="
31977 This file was extended by $as_me, which was
31978 generated by GNU Autoconf 2.69. Invocation command line was
31979
31980 CONFIG_FILES = $CONFIG_FILES
31981 CONFIG_HEADERS = $CONFIG_HEADERS
31982 CONFIG_LINKS = $CONFIG_LINKS
31983 CONFIG_COMMANDS = $CONFIG_COMMANDS
31984 $ $0 $@
31985
31986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31987 "
31988
31989 _ACEOF
31990
31991 case $ac_config_files in *"
31992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31993 esac
31994
31995 case $ac_config_headers in *"
31996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31997 esac
31998
31999
32000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32001 # Files that config.status was made for.
32002 config_files="$ac_config_files"
32003 config_headers="$ac_config_headers"
32004 config_links="$ac_config_links"
32005 config_commands="$ac_config_commands"
32006
32007 _ACEOF
32008
32009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32010 ac_cs_usage="\
32011 \`$as_me' instantiates files and other configuration actions
32012 from templates according to the current configuration. Unless the files
32013 and actions are specified as TAGs, all are instantiated by default.
32014
32015 Usage: $0 [OPTION]... [TAG]...
32016
32017 -h, --help print this help, then exit
32018 -V, --version print version number and configuration settings, then exit
32019 --config print configuration, then exit
32020 -q, --quiet, --silent
32021 do not print progress messages
32022 -d, --debug don't remove temporary files
32023 --recheck update $as_me by reconfiguring in the same conditions
32024 --file=FILE[:TEMPLATE]
32025 instantiate the configuration file FILE
32026 --header=FILE[:TEMPLATE]
32027 instantiate the configuration header FILE
32028
32029 Configuration files:
32030 $config_files
32031
32032 Configuration headers:
32033 $config_headers
32034
32035 Configuration links:
32036 $config_links
32037
32038 Configuration commands:
32039 $config_commands
32040
32041 Report bugs to the package provider."
32042
32043 _ACEOF
32044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32045 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32046 ac_cs_version="\\
32047 config.status
32048 configured by $0, generated by GNU Autoconf 2.69,
32049 with options \\"\$ac_cs_config\\"
32050
32051 Copyright (C) 2012 Free Software Foundation, Inc.
32052 This config.status script is free software; the Free Software Foundation
32053 gives unlimited permission to copy, distribute and modify it."
32054
32055 ac_pwd='$ac_pwd'
32056 srcdir='$srcdir'
32057 AWK='$AWK'
32058 test -n "\$AWK" || AWK=awk
32059 _ACEOF
32060
32061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32062 # The default lists apply if the user does not specify any file.
32063 ac_need_defaults=:
32064 while test $# != 0
32065 do
32066 case $1 in
32067 --*=?*)
32068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32070 ac_shift=:
32071 ;;
32072 --*=)
32073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32074 ac_optarg=
32075 ac_shift=:
32076 ;;
32077 *)
32078 ac_option=$1
32079 ac_optarg=$2
32080 ac_shift=shift
32081 ;;
32082 esac
32083
32084 case $ac_option in
32085 # Handling of the options.
32086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32087 ac_cs_recheck=: ;;
32088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32089 $as_echo "$ac_cs_version"; exit ;;
32090 --config | --confi | --conf | --con | --co | --c )
32091 $as_echo "$ac_cs_config"; exit ;;
32092 --debug | --debu | --deb | --de | --d | -d )
32093 debug=: ;;
32094 --file | --fil | --fi | --f )
32095 $ac_shift
32096 case $ac_optarg in
32097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32098 '') as_fn_error $? "missing file argument" ;;
32099 esac
32100 as_fn_append CONFIG_FILES " '$ac_optarg'"
32101 ac_need_defaults=false;;
32102 --header | --heade | --head | --hea )
32103 $ac_shift
32104 case $ac_optarg in
32105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32106 esac
32107 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32108 ac_need_defaults=false;;
32109 --he | --h)
32110 # Conflict between --help and --header
32111 as_fn_error $? "ambiguous option: \`$1'
32112 Try \`$0 --help' for more information.";;
32113 --help | --hel | -h )
32114 $as_echo "$ac_cs_usage"; exit ;;
32115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32116 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32117 ac_cs_silent=: ;;
32118
32119 # This is an error.
32120 -*) as_fn_error $? "unrecognized option: \`$1'
32121 Try \`$0 --help' for more information." ;;
32122
32123 *) as_fn_append ac_config_targets " $1"
32124 ac_need_defaults=false ;;
32125
32126 esac
32127 shift
32128 done
32129
32130 ac_configure_extra_args=
32131
32132 if $ac_cs_silent; then
32133 exec 6>/dev/null
32134 ac_configure_extra_args="$ac_configure_extra_args --silent"
32135 fi
32136
32137 _ACEOF
32138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32139 if \$ac_cs_recheck; then
32140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32141 shift
32142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32143 CONFIG_SHELL='$SHELL'
32144 export CONFIG_SHELL
32145 exec "\$@"
32146 fi
32147
32148 _ACEOF
32149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32150 exec 5>>config.log
32151 {
32152 echo
32153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32154 ## Running $as_me. ##
32155 _ASBOX
32156 $as_echo "$ac_log"
32157 } >&5
32158
32159 _ACEOF
32160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32161 #
32162 # INIT-COMMANDS
32163 #
32164 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32165 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32166 subdirs='$subdirs'
32167
32168 _ACEOF
32169
32170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32171
32172 # Handling of arguments.
32173 for ac_config_target in $ac_config_targets
32174 do
32175 case $ac_config_target in
32176 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32177 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32178 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
32179 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
32180 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32181 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
32182 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32183 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
32184 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32185
32186 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32187 esac
32188 done
32189
32190
32191 # If the user did not use the arguments to specify the items to instantiate,
32192 # then the envvar interface is used. Set only those that are not.
32193 # We use the long form for the default assignment because of an extremely
32194 # bizarre bug on SunOS 4.1.3.
32195 if $ac_need_defaults; then
32196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32198 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32200 fi
32201
32202 # Have a temporary directory for convenience. Make it in the build tree
32203 # simply because there is no reason against having it here, and in addition,
32204 # creating and moving files from /tmp can sometimes cause problems.
32205 # Hook for its removal unless debugging.
32206 # Note that there is a small window in which the directory will not be cleaned:
32207 # after its creation but before its name has been assigned to `$tmp'.
32208 $debug ||
32209 {
32210 tmp= ac_tmp=
32211 trap 'exit_status=$?
32212 : "${ac_tmp:=$tmp}"
32213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32214 ' 0
32215 trap 'as_fn_exit 1' 1 2 13 15
32216 }
32217 # Create a (secure) tmp directory for tmp files.
32218
32219 {
32220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32221 test -d "$tmp"
32222 } ||
32223 {
32224 tmp=./conf$$-$RANDOM
32225 (umask 077 && mkdir "$tmp")
32226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32227 ac_tmp=$tmp
32228
32229 # Set up the scripts for CONFIG_FILES section.
32230 # No need to generate them if there are no CONFIG_FILES.
32231 # This happens for instance with `./config.status config.h'.
32232 if test -n "$CONFIG_FILES"; then
32233
32234 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32235 ac_cs_awk_getline=:
32236 ac_cs_awk_pipe_init=
32237 ac_cs_awk_read_file='
32238 while ((getline aline < (F[key])) > 0)
32239 print(aline)
32240 close(F[key])'
32241 ac_cs_awk_pipe_fini=
32242 else
32243 ac_cs_awk_getline=false
32244 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32245 ac_cs_awk_read_file='
32246 print "|#_!!_#|"
32247 print "cat " F[key] " &&"
32248 '$ac_cs_awk_pipe_init
32249 # The final `:' finishes the AND list.
32250 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32251 fi
32252 ac_cr=`echo X | tr X '\015'`
32253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32254 # But we know of no other shell where ac_cr would be empty at this
32255 # point, so we can use a bashism as a fallback.
32256 if test "x$ac_cr" = x; then
32257 eval ac_cr=\$\'\\r\'
32258 fi
32259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32261 ac_cs_awk_cr='\\r'
32262 else
32263 ac_cs_awk_cr=$ac_cr
32264 fi
32265
32266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32267 _ACEOF
32268
32269 # Create commands to substitute file output variables.
32270 {
32271 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32272 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32273 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32274 echo "_ACAWK" &&
32275 echo "_ACEOF"
32276 } >conf$$files.sh &&
32277 . ./conf$$files.sh ||
32278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32279 rm -f conf$$files.sh
32280
32281 {
32282 echo "cat >conf$$subs.awk <<_ACEOF" &&
32283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32284 echo "_ACEOF"
32285 } >conf$$subs.sh ||
32286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32287 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32288 ac_delim='%!_!# '
32289 for ac_last_try in false false false false false :; do
32290 . ./conf$$subs.sh ||
32291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32292
32293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32294 if test $ac_delim_n = $ac_delim_num; then
32295 break
32296 elif $ac_last_try; then
32297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32298 else
32299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32300 fi
32301 done
32302 rm -f conf$$subs.sh
32303
32304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32305 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32306 _ACEOF
32307 sed -n '
32308 h
32309 s/^/S["/; s/!.*/"]=/
32310 p
32311 g
32312 s/^[^!]*!//
32313 :repl
32314 t repl
32315 s/'"$ac_delim"'$//
32316 t delim
32317 :nl
32318 h
32319 s/\(.\{148\}\)..*/\1/
32320 t more1
32321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32322 p
32323 n
32324 b repl
32325 :more1
32326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32327 p
32328 g
32329 s/.\{148\}//
32330 t nl
32331 :delim
32332 h
32333 s/\(.\{148\}\)..*/\1/
32334 t more2
32335 s/["\\]/\\&/g; s/^/"/; s/$/"/
32336 p
32337 b
32338 :more2
32339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32340 p
32341 g
32342 s/.\{148\}//
32343 t delim
32344 ' <conf$$subs.awk | sed '
32345 /^[^""]/{
32346 N
32347 s/\n//
32348 }
32349 ' >>$CONFIG_STATUS || ac_write_fail=1
32350 rm -f conf$$subs.awk
32351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32352 _ACAWK
32353 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32354 for (key in S) S_is_set[key] = 1
32355 FS = "\a"
32356 \$ac_cs_awk_pipe_init
32357 }
32358 {
32359 line = $ 0
32360 nfields = split(line, field, "@")
32361 substed = 0
32362 len = length(field[1])
32363 for (i = 2; i < nfields; i++) {
32364 key = field[i]
32365 keylen = length(key)
32366 if (S_is_set[key]) {
32367 value = S[key]
32368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32369 len += length(value) + length(field[++i])
32370 substed = 1
32371 } else
32372 len += 1 + keylen
32373 }
32374 if (nfields == 3 && !substed) {
32375 key = field[2]
32376 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32377 \$ac_cs_awk_read_file
32378 next
32379 }
32380 }
32381 print line
32382 }
32383 \$ac_cs_awk_pipe_fini
32384 _ACAWK
32385 _ACEOF
32386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32389 else
32390 cat
32391 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32393 _ACEOF
32394
32395 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32396 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32397 # trailing colons and then remove the whole line if VPATH becomes empty
32398 # (actually we leave an empty line to preserve line numbers).
32399 if test "x$srcdir" = x.; then
32400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32401 h
32402 s///
32403 s/^/:/
32404 s/[ ]*$/:/
32405 s/:\$(srcdir):/:/g
32406 s/:\${srcdir}:/:/g
32407 s/:@srcdir@:/:/g
32408 s/^:*//
32409 s/:*$//
32410 x
32411 s/\(=[ ]*\).*/\1/
32412 G
32413 s/\n//
32414 s/^[^=]*=[ ]*$//
32415 }'
32416 fi
32417
32418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32419 fi # test -n "$CONFIG_FILES"
32420
32421 # Set up the scripts for CONFIG_HEADERS section.
32422 # No need to generate them if there are no CONFIG_HEADERS.
32423 # This happens for instance with `./config.status Makefile'.
32424 if test -n "$CONFIG_HEADERS"; then
32425 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32426 BEGIN {
32427 _ACEOF
32428
32429 # Transform confdefs.h into an awk script `defines.awk', embedded as
32430 # here-document in config.status, that substitutes the proper values into
32431 # config.h.in to produce config.h.
32432
32433 # Create a delimiter string that does not exist in confdefs.h, to ease
32434 # handling of long lines.
32435 ac_delim='%!_!# '
32436 for ac_last_try in false false :; do
32437 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32438 if test -z "$ac_tt"; then
32439 break
32440 elif $ac_last_try; then
32441 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32442 else
32443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32444 fi
32445 done
32446
32447 # For the awk script, D is an array of macro values keyed by name,
32448 # likewise P contains macro parameters if any. Preserve backslash
32449 # newline sequences.
32450
32451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32452 sed -n '
32453 s/.\{148\}/&'"$ac_delim"'/g
32454 t rset
32455 :rset
32456 s/^[ ]*#[ ]*define[ ][ ]*/ /
32457 t def
32458 d
32459 :def
32460 s/\\$//
32461 t bsnl
32462 s/["\\]/\\&/g
32463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32464 D["\1"]=" \3"/p
32465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32466 d
32467 :bsnl
32468 s/["\\]/\\&/g
32469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32470 D["\1"]=" \3\\\\\\n"\\/p
32471 t cont
32472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32473 t cont
32474 d
32475 :cont
32476 n
32477 s/.\{148\}/&'"$ac_delim"'/g
32478 t clear
32479 :clear
32480 s/\\$//
32481 t bsnlc
32482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32483 d
32484 :bsnlc
32485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32486 b cont
32487 ' <confdefs.h | sed '
32488 s/'"$ac_delim"'/"\\\
32489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32490
32491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32492 for (key in D) D_is_set[key] = 1
32493 FS = "\a"
32494 }
32495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32496 line = \$ 0
32497 split(line, arg, " ")
32498 if (arg[1] == "#") {
32499 defundef = arg[2]
32500 mac1 = arg[3]
32501 } else {
32502 defundef = substr(arg[1], 2)
32503 mac1 = arg[2]
32504 }
32505 split(mac1, mac2, "(") #)
32506 macro = mac2[1]
32507 prefix = substr(line, 1, index(line, defundef) - 1)
32508 if (D_is_set[macro]) {
32509 # Preserve the white space surrounding the "#".
32510 print prefix "define", macro P[macro] D[macro]
32511 next
32512 } else {
32513 # Replace #undef with comments. This is necessary, for example,
32514 # in the case of _POSIX_SOURCE, which is predefined and required
32515 # on some systems where configure will not decide to define it.
32516 if (defundef == "undef") {
32517 print "/*", prefix defundef, macro, "*/"
32518 next
32519 }
32520 }
32521 }
32522 { print }
32523 _ACAWK
32524 _ACEOF
32525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32526 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32527 fi # test -n "$CONFIG_HEADERS"
32528
32529
32530 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32531 shift
32532 for ac_tag
32533 do
32534 case $ac_tag in
32535 :[FHLC]) ac_mode=$ac_tag; continue;;
32536 esac
32537 case $ac_mode$ac_tag in
32538 :[FHL]*:*);;
32539 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32540 :[FH]-) ac_tag=-:-;;
32541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32542 esac
32543 ac_save_IFS=$IFS
32544 IFS=:
32545 set x $ac_tag
32546 IFS=$ac_save_IFS
32547 shift
32548 ac_file=$1
32549 shift
32550
32551 case $ac_mode in
32552 :L) ac_source=$1;;
32553 :[FH])
32554 ac_file_inputs=
32555 for ac_f
32556 do
32557 case $ac_f in
32558 -) ac_f="$ac_tmp/stdin";;
32559 *) # Look for the file first in the build tree, then in the source tree
32560 # (if the path is not absolute). The absolute path cannot be DOS-style,
32561 # because $ac_f cannot contain `:'.
32562 test -f "$ac_f" ||
32563 case $ac_f in
32564 [\\/$]*) false;;
32565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32566 esac ||
32567 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32568 esac
32569 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32570 as_fn_append ac_file_inputs " '$ac_f'"
32571 done
32572
32573 # Let's still pretend it is `configure' which instantiates (i.e., don't
32574 # use $as_me), people would be surprised to read:
32575 # /* config.h. Generated by config.status. */
32576 configure_input='Generated from '`
32577 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32578 `' by configure.'
32579 if test x"$ac_file" != x-; then
32580 configure_input="$ac_file. $configure_input"
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32582 $as_echo "$as_me: creating $ac_file" >&6;}
32583 fi
32584 # Neutralize special characters interpreted by sed in replacement strings.
32585 case $configure_input in #(
32586 *\&* | *\|* | *\\* )
32587 ac_sed_conf_input=`$as_echo "$configure_input" |
32588 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32589 *) ac_sed_conf_input=$configure_input;;
32590 esac
32591
32592 case $ac_tag in
32593 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32595 esac
32596 ;;
32597 esac
32598
32599 ac_dir=`$as_dirname -- "$ac_file" ||
32600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32601 X"$ac_file" : 'X\(//\)[^/]' \| \
32602 X"$ac_file" : 'X\(//\)$' \| \
32603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32604 $as_echo X"$ac_file" |
32605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32606 s//\1/
32607 q
32608 }
32609 /^X\(\/\/\)[^/].*/{
32610 s//\1/
32611 q
32612 }
32613 /^X\(\/\/\)$/{
32614 s//\1/
32615 q
32616 }
32617 /^X\(\/\).*/{
32618 s//\1/
32619 q
32620 }
32621 s/.*/./; q'`
32622 as_dir="$ac_dir"; as_fn_mkdir_p
32623 ac_builddir=.
32624
32625 case "$ac_dir" in
32626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32627 *)
32628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32629 # A ".." for each directory in $ac_dir_suffix.
32630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32631 case $ac_top_builddir_sub in
32632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32634 esac ;;
32635 esac
32636 ac_abs_top_builddir=$ac_pwd
32637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32638 # for backward compatibility:
32639 ac_top_builddir=$ac_top_build_prefix
32640
32641 case $srcdir in
32642 .) # We are building in place.
32643 ac_srcdir=.
32644 ac_top_srcdir=$ac_top_builddir_sub
32645 ac_abs_top_srcdir=$ac_pwd ;;
32646 [\\/]* | ?:[\\/]* ) # Absolute name.
32647 ac_srcdir=$srcdir$ac_dir_suffix;
32648 ac_top_srcdir=$srcdir
32649 ac_abs_top_srcdir=$srcdir ;;
32650 *) # Relative name.
32651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32652 ac_top_srcdir=$ac_top_build_prefix$srcdir
32653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32654 esac
32655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32656
32657
32658 case $ac_mode in
32659 :F)
32660 #
32661 # CONFIG_FILE
32662 #
32663
32664 _ACEOF
32665
32666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32667 # If the template does not know about datarootdir, expand it.
32668 # FIXME: This hack should be removed a few years after 2.60.
32669 ac_datarootdir_hack=; ac_datarootdir_seen=
32670 ac_sed_dataroot='
32671 /datarootdir/ {
32672 p
32673 q
32674 }
32675 /@datadir@/p
32676 /@docdir@/p
32677 /@infodir@/p
32678 /@localedir@/p
32679 /@mandir@/p'
32680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32681 *datarootdir*) ac_datarootdir_seen=yes;;
32682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32685 _ACEOF
32686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32687 ac_datarootdir_hack='
32688 s&@datadir@&$datadir&g
32689 s&@docdir@&$docdir&g
32690 s&@infodir@&$infodir&g
32691 s&@localedir@&$localedir&g
32692 s&@mandir@&$mandir&g
32693 s&\\\${datarootdir}&$datarootdir&g' ;;
32694 esac
32695 _ACEOF
32696
32697 # Neutralize VPATH when `$srcdir' = `.'.
32698 # Shell code in configure.ac might set extrasub.
32699 # FIXME: do we really want to maintain this feature?
32700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32701 ac_sed_extra="$ac_vpsub
32702 $extrasub
32703 _ACEOF
32704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32705 :t
32706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32707 s|@configure_input@|$ac_sed_conf_input|;t t
32708 s&@top_builddir@&$ac_top_builddir_sub&;t t
32709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32710 s&@srcdir@&$ac_srcdir&;t t
32711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32712 s&@top_srcdir@&$ac_top_srcdir&;t t
32713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32714 s&@builddir@&$ac_builddir&;t t
32715 s&@abs_builddir@&$ac_abs_builddir&;t t
32716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32717 $ac_datarootdir_hack
32718 "
32719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32720 if $ac_cs_awk_getline; then
32721 $AWK -f "$ac_tmp/subs.awk"
32722 else
32723 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32724 fi \
32725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32726
32727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32732 which seems to be undefined. Please make sure it is defined" >&5
32733 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32734 which seems to be undefined. Please make sure it is defined" >&2;}
32735
32736 rm -f "$ac_tmp/stdin"
32737 case $ac_file in
32738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32740 esac \
32741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32742 ;;
32743 :H)
32744 #
32745 # CONFIG_HEADER
32746 #
32747 if test x"$ac_file" != x-; then
32748 {
32749 $as_echo "/* $configure_input */" \
32750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32751 } >"$ac_tmp/config.h" \
32752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32755 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32756 else
32757 rm -f "$ac_file"
32758 mv "$ac_tmp/config.h" "$ac_file" \
32759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32760 fi
32761 else
32762 $as_echo "/* $configure_input */" \
32763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32764 || as_fn_error $? "could not create -" "$LINENO" 5
32765 fi
32766 ;;
32767 :L)
32768 #
32769 # CONFIG_LINK
32770 #
32771
32772 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32773 :
32774 else
32775 # Prefer the file from the source tree if names are identical.
32776 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32777 ac_source=$srcdir/$ac_source
32778 fi
32779
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32781 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32782
32783 if test ! -r "$ac_source"; then
32784 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32785 fi
32786 rm -f "$ac_file"
32787
32788 # Try a relative symlink, then a hard link, then a copy.
32789 case $ac_source in
32790 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32791 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32792 esac
32793 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32794 ln "$ac_source" "$ac_file" 2>/dev/null ||
32795 cp -p "$ac_source" "$ac_file" ||
32796 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32797 fi
32798 ;;
32799 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32800 $as_echo "$as_me: executing $ac_file commands" >&6;}
32801 ;;
32802 esac
32803
32804
32805 case $ac_file$ac_mode in
32806 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32807 "gccdepdir":C)
32808 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32809 for lang in $subdirs c-family common analyzer
32810 do
32811 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32812 done ;;
32813 "as":F) chmod +x as ;;
32814 "collect-ld":F) chmod +x collect-ld ;;
32815 "nm":F) chmod +x nm ;;
32816 "default":C)
32817 case ${CONFIG_HEADERS} in
32818 *auto-host.h:config.in*)
32819 echo > cstamp-h ;;
32820 esac
32821 # Make sure all the subdirs exist.
32822 for d in $subdirs doc build common c-family
32823 do
32824 test -d $d || mkdir $d
32825 done
32826 ;;
32827
32828 esac
32829 done # for ac_tag
32830
32831
32832 as_fn_exit 0
32833 _ACEOF
32834 ac_clean_files=$ac_clean_files_save
32835
32836 test $ac_write_fail = 0 ||
32837 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32838
32839
32840 # configure is writing to config.log, and then calls config.status.
32841 # config.status does its own redirection, appending to config.log.
32842 # Unfortunately, on DOS this fails, as config.log is still kept open
32843 # by configure, so config.status won't be able to write to it; its
32844 # output is simply discarded. So we exec the FD to /dev/null,
32845 # effectively closing config.log, so it can be properly (re)opened and
32846 # appended to by config.status. When coming back to configure, we
32847 # need to make the FD available again.
32848 if test "$no_create" != yes; then
32849 ac_cs_success=:
32850 ac_config_status_args=
32851 test "$silent" = yes &&
32852 ac_config_status_args="$ac_config_status_args --quiet"
32853 exec 5>/dev/null
32854 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32855 exec 5>>config.log
32856 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32857 # would make configure fail if this is the last instruction.
32858 $ac_cs_success || as_fn_exit 1
32859 fi
32860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32863 fi
32864
32865