]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Add gcc/config/gcn/t-omp-device for OpenMP declare variant kind/arch/isa
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.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 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
762 ALL
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 HAVE_AUTO_BUILD
778 extra_opt_files
779 extra_modes_file
780 NATIVE_SYSTEM_HEADER_DIR
781 objext
782 manext
783 LIBICONV_DEP
784 LTLIBICONV
785 LIBICONV
786 ZSTD_LIB
787 ZSTD_INCLUDE
788 DL_LIB
789 LDEXP_LIB
790 EXTRA_GCC_LIBS
791 GNAT_LIBEXC
792 COLLECT2_LIBS
793 CXXDEPMODE
794 DEPDIR
795 am__leading_dot
796 doc_build_sys
797 AR
798 NM
799 BISON
800 FLEX
801 GENERATED_MANPAGES
802 BUILD_INFO
803 MAKEINFO
804 have_mktemp_command
805 make_compare_target
806 INSTALL_DATA
807 INSTALL_PROGRAM
808 INSTALL
809 ranlib_flags
810 RANLIB
811 LN
812 LN_S
813 AWK
814 SET_MAKE
815 omp_device_property_deps
816 omp_device_properties
817 accel_dir_suffix
818 real_target_noncanonical
819 enable_as_accelerator
820 gnat_install_lib
821 DOCUMENTATION_ROOT_URL
822 REPORT_BUGS_TEXI
823 REPORT_BUGS_TO
824 PKGVERSION
825 CONFIGURE_SPECS
826 enable_gcov
827 enable_shared
828 enable_fixed_point
829 enable_decimal_float
830 with_float
831 with_cpu
832 enable_multiarch
833 enable_multilib
834 coverage_flags
835 valgrind_command
836 valgrind_path_defines
837 valgrind_path
838 TREECHECKING
839 nocommon_flag
840 noexception_flags
841 warn_cxxflags
842 warn_cflags
843 c_strict_warn
844 strict_warn
845 c_loose_warn
846 loose_warn
847 aliasing_flags
848 CPP
849 EGREP
850 GREP
851 CXXCPP
852 PICFLAG_FOR_TARGET
853 GNATMAKE
854 GNATBIND
855 ac_ct_CXX
856 CXXFLAGS
857 CXX
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 GENINSRC
866 CROSS_SYSTEM_HEADER_DIR
867 TARGET_SYSTEM_ROOT_DEFINE
868 TARGET_SYSTEM_ROOT
869 SYSROOT_CFLAGS_FOR_TARGET
870 target_subdir
871 host_subdir
872 build_subdir
873 build_libsubdir
874 target_noncanonical
875 host_noncanonical
876 target_os
877 target_vendor
878 target_cpu
879 target
880 host_os
881 host_vendor
882 host_cpu
883 host
884 build_os
885 build_vendor
886 build_cpu
887 build
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_URL
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files='option_includes
927 language_hooks'
928 ac_user_opts='
929 enable_option_checking
930 with_build_libsubdir
931 with_local_prefix
932 with_native_system_header_dir
933 with_build_sysroot
934 with_sysroot
935 with_gxx_include_dir
936 with_cpp_install_dir
937 enable_generated_files_in_srcdir
938 with_gnu_ld
939 with_ld
940 with_demangler_in_ld
941 with_gnu_as
942 with_as
943 enable_largefile
944 enable_build_format_warnings
945 enable_werror_always
946 enable_checking
947 enable_coverage
948 enable_gather_detailed_mem_stats
949 enable_valgrind_annotations
950 with_stabs
951 enable_multilib
952 enable_multiarch
953 with_stack_clash_protection_guard_size
954 enable___cxa_atexit
955 enable_decimal_float
956 enable_fixed_point
957 enable_threads
958 enable_tls
959 enable_vtable_verify
960 enable_objc_gc
961 with_dwarf2
962 enable_shared
963 enable_gcov
964 with_specs
965 with_pkgversion
966 with_bugurl
967 with_documentation_root_url
968 enable_languages
969 with_multilib_list
970 with_zstd
971 with_zstd_include
972 with_zstd_lib
973 enable_rpath
974 with_libiconv_prefix
975 enable_sjlj_exceptions
976 with_gcc_major_version_only
977 enable_secureplt
978 enable_mingw_wildcard
979 enable_large_address_aware
980 enable_leading_mingw64_underscores
981 enable_cld
982 enable_frame_pointer
983 enable_win32_registry
984 enable_static
985 with_pic
986 enable_fast_install
987 enable_libtool_lock
988 enable_ld
989 enable_gold
990 with_plugin_ld
991 enable_gnu_indirect_function
992 enable_initfini_array
993 enable_comdat
994 enable_newlib_nano_formatted_io
995 enable_standard_branch_protection
996 enable_fix_cortex_a53_835769
997 enable_fix_cortex_a53_843419
998 with_glibc_version
999 enable_gnu_unique_object
1000 enable_linker_build_id
1001 enable_libssp
1002 enable_default_ssp
1003 with_long_double_128
1004 with_long_double_format
1005 with_gc
1006 with_system_zlib
1007 enable_maintainer_mode
1008 enable_link_mutex
1009 enable_version_specific_runtime_libs
1010 enable_plugin
1011 enable_host_shared
1012 enable_libquadmath_support
1013 with_linker_hash_style
1014 with_diagnostics_color
1015 enable_default_pie
1016 '
1017 ac_precious_vars='build_alias
1018 host_alias
1019 target_alias
1020 CC
1021 CFLAGS
1022 LDFLAGS
1023 LIBS
1024 CPPFLAGS
1025 CXX
1026 CXXFLAGS
1027 CCC
1028 CXXCPP
1029 CPP
1030 GMPLIBS
1031 GMPINC
1032 ISLLIBS
1033 ISLINC'
1034
1035
1036 # Initialize some variables set by options.
1037 ac_init_help=
1038 ac_init_version=false
1039 ac_unrecognized_opts=
1040 ac_unrecognized_sep=
1041 # The variables have the same names as the options, with
1042 # dashes changed to underlines.
1043 cache_file=/dev/null
1044 exec_prefix=NONE
1045 no_create=
1046 no_recursion=
1047 prefix=NONE
1048 program_prefix=NONE
1049 program_suffix=NONE
1050 program_transform_name=s,x,x,
1051 silent=
1052 site=
1053 srcdir=
1054 verbose=
1055 x_includes=NONE
1056 x_libraries=NONE
1057
1058 # Installation directory options.
1059 # These are left unexpanded so users can "make install exec_prefix=/foo"
1060 # and all the variables that are supposed to be based on exec_prefix
1061 # by default will actually change.
1062 # Use braces instead of parens because sh, perl, etc. also accept them.
1063 # (The list follows the same order as the GNU Coding Standards.)
1064 bindir='${exec_prefix}/bin'
1065 sbindir='${exec_prefix}/sbin'
1066 libexecdir='${exec_prefix}/libexec'
1067 datarootdir='${prefix}/share'
1068 datadir='${datarootdir}'
1069 sysconfdir='${prefix}/etc'
1070 sharedstatedir='${prefix}/com'
1071 localstatedir='${prefix}/var'
1072 includedir='${prefix}/include'
1073 oldincludedir='/usr/include'
1074 docdir='${datarootdir}/doc/${PACKAGE}'
1075 infodir='${datarootdir}/info'
1076 htmldir='${docdir}'
1077 dvidir='${docdir}'
1078 pdfdir='${docdir}'
1079 psdir='${docdir}'
1080 libdir='${exec_prefix}/lib'
1081 localedir='${datarootdir}/locale'
1082 mandir='${datarootdir}/man'
1083
1084 ac_prev=
1085 ac_dashdash=
1086 for ac_option
1087 do
1088 # If the previous option needs an argument, assign it.
1089 if test -n "$ac_prev"; then
1090 eval $ac_prev=\$ac_option
1091 ac_prev=
1092 continue
1093 fi
1094
1095 case $ac_option in
1096 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1097 *=) ac_optarg= ;;
1098 *) ac_optarg=yes ;;
1099 esac
1100
1101 # Accept the important Cygnus configure options, so we can diagnose typos.
1102
1103 case $ac_dashdash$ac_option in
1104 --)
1105 ac_dashdash=yes ;;
1106
1107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1108 ac_prev=bindir ;;
1109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110 bindir=$ac_optarg ;;
1111
1112 -build | --build | --buil | --bui | --bu)
1113 ac_prev=build_alias ;;
1114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115 build_alias=$ac_optarg ;;
1116
1117 -cache-file | --cache-file | --cache-fil | --cache-fi \
1118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119 ac_prev=cache_file ;;
1120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122 cache_file=$ac_optarg ;;
1123
1124 --config-cache | -C)
1125 cache_file=config.cache ;;
1126
1127 -datadir | --datadir | --datadi | --datad)
1128 ac_prev=datadir ;;
1129 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130 datadir=$ac_optarg ;;
1131
1132 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133 | --dataroo | --dataro | --datar)
1134 ac_prev=datarootdir ;;
1135 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137 datarootdir=$ac_optarg ;;
1138
1139 -disable-* | --disable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid feature name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval enable_$ac_useropt=no ;;
1154
1155 -docdir | --docdir | --docdi | --doc | --do)
1156 ac_prev=docdir ;;
1157 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1158 docdir=$ac_optarg ;;
1159
1160 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1161 ac_prev=dvidir ;;
1162 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1163 dvidir=$ac_optarg ;;
1164
1165 -enable-* | --enable-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid feature name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "enable_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval enable_$ac_useropt=\$ac_optarg ;;
1180
1181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183 | --exec | --exe | --ex)
1184 ac_prev=exec_prefix ;;
1185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187 | --exec=* | --exe=* | --ex=*)
1188 exec_prefix=$ac_optarg ;;
1189
1190 -gas | --gas | --ga | --g)
1191 # Obsolete; use --with-gas.
1192 with_gas=yes ;;
1193
1194 -help | --help | --hel | --he | -h)
1195 ac_init_help=long ;;
1196 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197 ac_init_help=recursive ;;
1198 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199 ac_init_help=short ;;
1200
1201 -host | --host | --hos | --ho)
1202 ac_prev=host_alias ;;
1203 -host=* | --host=* | --hos=* | --ho=*)
1204 host_alias=$ac_optarg ;;
1205
1206 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207 ac_prev=htmldir ;;
1208 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209 | --ht=*)
1210 htmldir=$ac_optarg ;;
1211
1212 -includedir | --includedir | --includedi | --included | --include \
1213 | --includ | --inclu | --incl | --inc)
1214 ac_prev=includedir ;;
1215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216 | --includ=* | --inclu=* | --incl=* | --inc=*)
1217 includedir=$ac_optarg ;;
1218
1219 -infodir | --infodir | --infodi | --infod | --info | --inf)
1220 ac_prev=infodir ;;
1221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222 infodir=$ac_optarg ;;
1223
1224 -libdir | --libdir | --libdi | --libd)
1225 ac_prev=libdir ;;
1226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227 libdir=$ac_optarg ;;
1228
1229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230 | --libexe | --libex | --libe)
1231 ac_prev=libexecdir ;;
1232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233 | --libexe=* | --libex=* | --libe=*)
1234 libexecdir=$ac_optarg ;;
1235
1236 -localedir | --localedir | --localedi | --localed | --locale)
1237 ac_prev=localedir ;;
1238 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239 localedir=$ac_optarg ;;
1240
1241 -localstatedir | --localstatedir | --localstatedi | --localstated \
1242 | --localstate | --localstat | --localsta | --localst | --locals)
1243 ac_prev=localstatedir ;;
1244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246 localstatedir=$ac_optarg ;;
1247
1248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249 ac_prev=mandir ;;
1250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251 mandir=$ac_optarg ;;
1252
1253 -nfp | --nfp | --nf)
1254 # Obsolete; use --without-fp.
1255 with_fp=no ;;
1256
1257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258 | --no-cr | --no-c | -n)
1259 no_create=yes ;;
1260
1261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263 no_recursion=yes ;;
1264
1265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267 | --oldin | --oldi | --old | --ol | --o)
1268 ac_prev=oldincludedir ;;
1269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272 oldincludedir=$ac_optarg ;;
1273
1274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275 ac_prev=prefix ;;
1276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277 prefix=$ac_optarg ;;
1278
1279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280 | --program-pre | --program-pr | --program-p)
1281 ac_prev=program_prefix ;;
1282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284 program_prefix=$ac_optarg ;;
1285
1286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287 | --program-suf | --program-su | --program-s)
1288 ac_prev=program_suffix ;;
1289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291 program_suffix=$ac_optarg ;;
1292
1293 -program-transform-name | --program-transform-name \
1294 | --program-transform-nam | --program-transform-na \
1295 | --program-transform-n | --program-transform- \
1296 | --program-transform | --program-transfor \
1297 | --program-transfo | --program-transf \
1298 | --program-trans | --program-tran \
1299 | --progr-tra | --program-tr | --program-t)
1300 ac_prev=program_transform_name ;;
1301 -program-transform-name=* | --program-transform-name=* \
1302 | --program-transform-nam=* | --program-transform-na=* \
1303 | --program-transform-n=* | --program-transform-=* \
1304 | --program-transform=* | --program-transfor=* \
1305 | --program-transfo=* | --program-transf=* \
1306 | --program-trans=* | --program-tran=* \
1307 | --progr-tra=* | --program-tr=* | --program-t=*)
1308 program_transform_name=$ac_optarg ;;
1309
1310 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311 ac_prev=pdfdir ;;
1312 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313 pdfdir=$ac_optarg ;;
1314
1315 -psdir | --psdir | --psdi | --psd | --ps)
1316 ac_prev=psdir ;;
1317 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318 psdir=$ac_optarg ;;
1319
1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321 | -silent | --silent | --silen | --sile | --sil)
1322 silent=yes ;;
1323
1324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1325 ac_prev=sbindir ;;
1326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1327 | --sbi=* | --sb=*)
1328 sbindir=$ac_optarg ;;
1329
1330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1332 | --sharedst | --shareds | --shared | --share | --shar \
1333 | --sha | --sh)
1334 ac_prev=sharedstatedir ;;
1335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1338 | --sha=* | --sh=*)
1339 sharedstatedir=$ac_optarg ;;
1340
1341 -site | --site | --sit)
1342 ac_prev=site ;;
1343 -site=* | --site=* | --sit=*)
1344 site=$ac_optarg ;;
1345
1346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1347 ac_prev=srcdir ;;
1348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1349 srcdir=$ac_optarg ;;
1350
1351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1352 | --syscon | --sysco | --sysc | --sys | --sy)
1353 ac_prev=sysconfdir ;;
1354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1356 sysconfdir=$ac_optarg ;;
1357
1358 -target | --target | --targe | --targ | --tar | --ta | --t)
1359 ac_prev=target_alias ;;
1360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1361 target_alias=$ac_optarg ;;
1362
1363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1364 verbose=yes ;;
1365
1366 -version | --version | --versio | --versi | --vers | -V)
1367 ac_init_version=: ;;
1368
1369 -with-* | --with-*)
1370 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373 as_fn_error $? "invalid package name: $ac_useropt"
1374 ac_useropt_orig=$ac_useropt
1375 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376 case $ac_user_opts in
1377 *"
1378 "with_$ac_useropt"
1379 "*) ;;
1380 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1381 ac_unrecognized_sep=', ';;
1382 esac
1383 eval with_$ac_useropt=\$ac_optarg ;;
1384
1385 -without-* | --without-*)
1386 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1389 as_fn_error $? "invalid package name: $ac_useropt"
1390 ac_useropt_orig=$ac_useropt
1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1393 *"
1394 "with_$ac_useropt"
1395 "*) ;;
1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1397 ac_unrecognized_sep=', ';;
1398 esac
1399 eval with_$ac_useropt=no ;;
1400
1401 --x)
1402 # Obsolete; use --with-x.
1403 with_x=yes ;;
1404
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1411
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1418
1419 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1420 Try \`$0 --help' for more information"
1421 ;;
1422
1423 *=*)
1424 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1425 # Reject names that are not valid shell variable names.
1426 case $ac_envvar in #(
1427 '' | [0-9]* | *[!_$as_cr_alnum]* )
1428 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1429 esac
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1432
1433 *)
1434 # FIXME: should be removed in autoconf 3.0.
1435 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1439 ;;
1440
1441 esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 as_fn_error $? "missing argument to $ac_option"
1447 fi
1448
1449 if test -n "$ac_unrecognized_opts"; then
1450 case $enable_option_checking in
1451 no) ;;
1452 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1453 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1454 esac
1455 fi
1456
1457 # Check all directory arguments for consistency.
1458 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1459 datadir sysconfdir sharedstatedir localstatedir includedir \
1460 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1461 libdir localedir mandir
1462 do
1463 eval ac_val=\$$ac_var
1464 # Remove trailing slashes.
1465 case $ac_val in
1466 */ )
1467 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1468 eval $ac_var=\$ac_val;;
1469 esac
1470 # Be sure to have absolute directory names.
1471 case $ac_val in
1472 [\\/$]* | ?:[\\/]* ) continue;;
1473 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1474 esac
1475 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1476 done
1477
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1481 build=$build_alias
1482 host=$host_alias
1483 target=$target_alias
1484
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x; then
1487 if test "x$build_alias" = x; then
1488 cross_compiling=maybe
1489 elif test "x$build_alias" != "x$host_alias"; then
1490 cross_compiling=yes
1491 fi
1492 fi
1493
1494 ac_tool_prefix=
1495 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1496
1497 test "$silent" = yes && exec 6>/dev/null
1498
1499
1500 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1501 ac_ls_di=`ls -di .` &&
1502 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1503 as_fn_error $? "working directory cannot be determined"
1504 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1505 as_fn_error $? "pwd does not report name of working directory"
1506
1507
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510 ac_srcdir_defaulted=yes
1511 # Try the directory containing this script, then the parent directory.
1512 ac_confdir=`$as_dirname -- "$as_myself" ||
1513 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514 X"$as_myself" : 'X\(//\)[^/]' \| \
1515 X"$as_myself" : 'X\(//\)$' \| \
1516 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1517 $as_echo X"$as_myself" |
1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519 s//\1/
1520 q
1521 }
1522 /^X\(\/\/\)[^/].*/{
1523 s//\1/
1524 q
1525 }
1526 /^X\(\/\/\)$/{
1527 s//\1/
1528 q
1529 }
1530 /^X\(\/\).*/{
1531 s//\1/
1532 q
1533 }
1534 s/.*/./; q'`
1535 srcdir=$ac_confdir
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537 srcdir=..
1538 fi
1539 else
1540 ac_srcdir_defaulted=no
1541 fi
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1544 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1545 fi
1546 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1547 ac_abs_confdir=`(
1548 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1549 pwd)`
1550 # When building in place, set srcdir=.
1551 if test "$ac_abs_confdir" = "$ac_pwd"; then
1552 srcdir=.
1553 fi
1554 # Remove unnecessary trailing slashes from srcdir.
1555 # Double slashes in file names in object file debugging info
1556 # mess up M-x gdb in Emacs.
1557 case $srcdir in
1558 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1559 esac
1560 for ac_var in $ac_precious_vars; do
1561 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1562 eval ac_env_${ac_var}_value=\$${ac_var}
1563 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1565 done
1566
1567 #
1568 # Report the --help message.
1569 #
1570 if test "$ac_init_help" = "long"; then
1571 # Omit some internal or obsolete options to make the list less imposing.
1572 # This message is too long to be a string in the A/UX 3.1 sh.
1573 cat <<_ACEOF
1574 \`configure' configures this package to adapt to many kinds of systems.
1575
1576 Usage: $0 [OPTION]... [VAR=VALUE]...
1577
1578 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1579 VAR=VALUE. See below for descriptions of some of the useful variables.
1580
1581 Defaults for the options are specified in brackets.
1582
1583 Configuration:
1584 -h, --help display this help and exit
1585 --help=short display options specific to this package
1586 --help=recursive display the short help of all the included packages
1587 -V, --version display version information and exit
1588 -q, --quiet, --silent do not print \`checking ...' messages
1589 --cache-file=FILE cache test results in FILE [disabled]
1590 -C, --config-cache alias for \`--cache-file=config.cache'
1591 -n, --no-create do not create output files
1592 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1593
1594 Installation directories:
1595 --prefix=PREFIX install architecture-independent files in PREFIX
1596 [$ac_default_prefix]
1597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1598 [PREFIX]
1599
1600 By default, \`make install' will install all the files in
1601 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1602 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1603 for instance \`--prefix=\$HOME'.
1604
1605 For better control, use the options below.
1606
1607 Fine tuning of the installation directories:
1608 --bindir=DIR user executables [EPREFIX/bin]
1609 --sbindir=DIR system admin executables [EPREFIX/sbin]
1610 --libexecdir=DIR program executables [EPREFIX/libexec]
1611 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1612 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1613 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1614 --libdir=DIR object code libraries [EPREFIX/lib]
1615 --includedir=DIR C header files [PREFIX/include]
1616 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1617 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1619 --infodir=DIR info documentation [DATAROOTDIR/info]
1620 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1621 --mandir=DIR man documentation [DATAROOTDIR/man]
1622 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1623 --htmldir=DIR html documentation [DOCDIR]
1624 --dvidir=DIR dvi documentation [DOCDIR]
1625 --pdfdir=DIR pdf documentation [DOCDIR]
1626 --psdir=DIR ps documentation [DOCDIR]
1627 _ACEOF
1628
1629 cat <<\_ACEOF
1630
1631 Program names:
1632 --program-prefix=PREFIX prepend PREFIX to installed program names
1633 --program-suffix=SUFFIX append SUFFIX to installed program names
1634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1635
1636 System types:
1637 --build=BUILD configure for building on BUILD [guessed]
1638 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1639 --target=TARGET configure for building compilers for TARGET [HOST]
1640 _ACEOF
1641 fi
1642
1643 if test -n "$ac_init_help"; then
1644
1645 cat <<\_ACEOF
1646
1647 Optional Features:
1648 --disable-option-checking ignore unrecognized --enable/--with options
1649 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1650 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1651 --enable-generated-files-in-srcdir
1652 put copies of generated files in source dir intended
1653 for creating source tarballs for users without
1654 texinfo bison or flex
1655 --disable-largefile omit support for large files
1656 --disable-build-format-warnings
1657 don't use -Wformat while building GCC
1658 --enable-werror-always enable -Werror despite compiler version
1659 --enable-checking[=LIST]
1660 enable expensive run-time checks. With LIST, enable
1661 only specific categories of checks. Categories are:
1662 yes,no,all,none,release. Flags are:
1663 assert,df,extra,fold,gc,gcac,gimple,misc,
1664 rtlflag,rtl,runtime,tree,valgrind,types
1665 --enable-coverage[=LEVEL]
1666 enable compiler's code coverage collection. Use to
1667 measure compiler performance and locate unused parts
1668 of the compiler. With LEVEL, specify optimization.
1669 Values are opt, noopt, default is noopt
1670 --enable-gather-detailed-mem-stats
1671 enable detailed memory allocation stats gathering
1672 --enable-valgrind-annotations
1673 enable valgrind runtime interaction
1674 --enable-multilib enable library support for multiple ABIs
1675 --enable-multiarch enable support for multiarch paths
1676 --enable-__cxa_atexit enable __cxa_atexit for C++
1677 --enable-decimal-float={no,yes,bid,dpd}
1678 enable decimal float extension to C. Selecting 'bid'
1679 or 'dpd' choses which decimal floating point format
1680 to use
1681 --enable-fixed-point enable fixed-point arithmetic extension to C
1682 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1683 package
1684 --enable-tls enable or disable generation of tls code overriding
1685 the assembler check for tls support
1686 --enable-vtable-verify enable vtable verification feature
1687 --enable-objc-gc enable the use of Boehm's garbage collector with the
1688 GNU Objective-C runtime
1689 --disable-shared don't provide a shared libgcc
1690 --disable-gcov don't provide libgcov and related host tools
1691 --enable-languages=LIST specify which front-ends to build
1692 --disable-rpath do not hardcode runtime library paths
1693 --enable-sjlj-exceptions
1694 arrange to use setjmp/longjmp exception handling
1695 --enable-secureplt enable -msecure-plt by default for PowerPC
1696 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1697 Default to platform configuration
1698 --enable-large-address-aware
1699 Link mingw executables with --large-address-aware
1700 --enable-leading-mingw64-underscores
1701 enable leading underscores on 64 bit mingw targets
1702 --enable-cld enable -mcld by default for 32bit x86
1703 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1704 --disable-win32-registry
1705 disable lookup of installation paths in the Registry
1706 on Windows hosts
1707 --enable-win32-registry enable registry lookup (default)
1708 --enable-win32-registry=KEY
1709 use KEY instead of GCC version as the last portion
1710 of the registry key
1711 --enable-shared[=PKGS] build shared libraries [default=yes]
1712 --enable-static[=PKGS] build static libraries [default=yes]
1713 --enable-fast-install[=PKGS]
1714 optimize for fast installation [default=yes]
1715 --disable-libtool-lock avoid locking (might break parallel builds)
1716 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1717 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1718 --enable-gnu-indirect-function
1719 enable the use of the @gnu_indirect_function to
1720 glibc systems
1721 --enable-initfini-array use .init_array/.fini_array sections
1722 --enable-comdat enable COMDAT group support
1723 --enable-newlib-nano-formatted-io
1724 Use nano version formatted IO
1725
1726 --enable-standard-branch-protection
1727 enable Branch Target Identification Mechanism and
1728 Return Address Signing by default for AArch64
1729 --disable-standard-branch-protection
1730 disable Branch Target Identification Mechanism and
1731 Return Address Signing by default for AArch64
1732
1733
1734 --enable-fix-cortex-a53-835769
1735 enable workaround for AArch64 Cortex-A53 erratum
1736 835769 by default
1737 --disable-fix-cortex-a53-835769
1738 disable workaround for AArch64 Cortex-A53 erratum
1739 835769 by default
1740
1741
1742 --enable-fix-cortex-a53-843419
1743 enable workaround for AArch64 Cortex-A53 erratum
1744 843419 by default
1745 --disable-fix-cortex-a53-843419
1746 disable workaround for AArch64 Cortex-A53 erratum
1747 843419 by default
1748
1749 --enable-gnu-unique-object
1750 enable the use of the @gnu_unique_object ELF
1751 extension on glibc systems
1752 --enable-linker-build-id
1753 compiler will always pass --build-id to linker
1754 --enable-libssp enable linking against libssp
1755 --enable-default-ssp enable Stack Smashing Protection as default
1756 --enable-maintainer-mode
1757 enable make rules and dependencies not useful (and
1758 sometimes confusing) to the casual installer
1759 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1760 thrashing on the build machine
1761 --enable-version-specific-runtime-libs
1762 specify that runtime libraries should be installed
1763 in a compiler-specific directory
1764 --enable-plugin enable plugin support
1765 --enable-host-shared build host code as shared libraries
1766 --disable-libquadmath-support
1767 disable libquadmath support for Fortran
1768 --enable-default-pie enable Position Independent Executable as default
1769
1770 Optional Packages:
1771 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1772 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1773 --with-build-libsubdir=DIR Directory where to find libraries for build system
1774 --with-local-prefix=DIR specifies directory to put local include
1775 --with-native-system-header-dir=dir
1776 use dir as the directory to look for standard
1777 system header files in. Defaults to /usr/include.
1778 --with-build-sysroot=sysroot
1779 use sysroot as the system root during the build
1780 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1781 --with-gxx-include-dir=DIR
1782 specifies directory to put g++ header files
1783 --with-cpp-install-dir=DIR
1784 install the user visible C preprocessor in DIR
1785 (relative to PREFIX) as well as PREFIX/bin
1786 --with-gnu-ld arrange to work with GNU ld
1787 --with-ld arrange to use the specified ld (full pathname)
1788 --with-demangler-in-ld try to use demangler in GNU ld
1789 --with-gnu-as arrange to work with GNU as
1790 --with-as arrange to use the specified as (full pathname)
1791 --with-stabs arrange to use stabs instead of host debug format
1792 --with-stack-clash-protection-guard-size=size
1793 Set the default stack clash protection guard size
1794 for specific targets as a power of two in bytes.
1795 --with-dwarf2 force the default debug format to be DWARF 2
1796 --with-specs=SPECS add SPECS to driver command-line processing
1797 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1798 --with-bugurl=URL Direct users to URL to report a bug
1799 --with-documentation-root-url=URL
1800 Root for documentation URLs
1801 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1802 --with-zstd=PATH specify prefix directory for installed zstd library.
1803 Equivalent to --with-zstd-include=PATH/include plus
1804 --with-zstd-lib=PATH/lib
1805 --with-zstd-include=PATH
1806 specify directory for installed zstd include files
1807 --with-zstd-lib=PATH specify directory for the installed zstd library
1808 --with-gnu-ld assume the C compiler uses GNU ld default=no
1809 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1810 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1811 --with-gcc-major-version-only
1812 use only GCC major number in filesystem paths
1813 --with-pic try to use only PIC/non-PIC objects [default=use
1814 both]
1815 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1816 --with-plugin-ld=[ARG] specify the plugin linker
1817 --with-glibc-version=M.N
1818 assume GCC used with glibc version M.N or later
1819 --with-long-double-128 use 128-bit long double by default
1820 --with-long-double-format={ieee,ibm}
1821 Specify whether PowerPC long double uses IEEE or IBM format
1822
1823 --with-gc={page,zone} this option is not supported anymore. It used to
1824 choose the garbage collection mechanism to use with
1825 the compiler
1826 --with-system-zlib use installed libz
1827 --with-linker-hash-style={sysv,gnu,both}
1828 specify the linker hash style
1829 --with-diagnostics-color={never,auto,auto-if-env,always}
1830 specify the default of -fdiagnostics-color option
1831 auto-if-env stands for -fdiagnostics-color=auto if
1832 GCC_COLOR environment variable is present and
1833 -fdiagnostics-color=never otherwise
1834
1835 Some influential environment variables:
1836 CC C compiler command
1837 CFLAGS C compiler flags
1838 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1839 nonstandard directory <lib dir>
1840 LIBS libraries to pass to the linker, e.g. -l<library>
1841 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1842 you have headers in a nonstandard directory <include dir>
1843 CXX C++ compiler command
1844 CXXFLAGS C++ compiler flags
1845 CXXCPP C++ preprocessor
1846 CPP C preprocessor
1847 GMPLIBS How to link GMP
1848 GMPINC How to find GMP include files
1849 ISLLIBS How to link isl
1850 ISLINC How to find isl include files
1851
1852 Use these variables to override the choices made by `configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1854
1855 Report bugs to the package provider.
1856 _ACEOF
1857 ac_status=$?
1858 fi
1859
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1865 continue
1866 ac_builddir=.
1867
1868 case "$ac_dir" in
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1870 *)
1871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1877 esac ;;
1878 esac
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1883
1884 case $srcdir in
1885 .) # We are building in place.
1886 ac_srcdir=.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1893 *) # Relative name.
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1897 esac
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1899
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1903 echo &&
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1906 echo &&
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1908 else
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1910 fi || ac_status=$?
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1912 done
1913 fi
1914
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1917 cat <<\_ACEOF
1918 configure
1919 generated by GNU Autoconf 2.69
1920
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1924 _ACEOF
1925 exit
1926 fi
1927
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1931
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.$ac_objext; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964 fi
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968 } # ac_fn_c_try_compile
1969
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1990 fi
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_retval=1
2002 fi
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2005
2006 } # ac_fn_cxx_try_compile
2007
2008 # ac_fn_cxx_try_cpp LINENO
2009 # ------------------------
2010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_cpp ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_cpp conftest.$ac_ext"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2027 fi
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } > conftest.i && {
2030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 ac_retval=1
2039 fi
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_cxx_try_cpp
2044
2045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # ---------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2049 # accordingly.
2050 ac_fn_cxx_check_header_mongrel ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if eval \${$3+:} false; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 else
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_cxx_try_compile "$LINENO"; then :
2072 ac_header_compiler=yes
2073 else
2074 ac_header_compiler=no
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2079
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_cxx_try_cpp "$LINENO"; then :
2088 ac_header_preproc=yes
2089 else
2090 ac_header_preproc=no
2091 fi
2092 rm -f conftest.err conftest.i conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2095
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2098 yes:no: )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104 no:yes:* )
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 ;;
2116 esac
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=\$ac_header_compiler"
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129
2130 } # ac_fn_cxx_check_header_mongrel
2131
2132 # ac_fn_cxx_try_run LINENO
2133 # ------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2135 # that executables *can* be run.
2136 ac_fn_cxx_try_run ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2150 { { case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_try") 2>&5
2157 ac_status=$?
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; }; }; then :
2160 ac_retval=0
2161 else
2162 $as_echo "$as_me: program exited with status $ac_status" >&5
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_retval=$ac_status
2167 fi
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status $ac_retval
2171
2172 } # ac_fn_cxx_try_run
2173
2174 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2175 # ---------------------------------------------------------
2176 # Tests whether HEADER exists and can be compiled using the include files in
2177 # INCLUDES, setting the cache variable VAR accordingly.
2178 ac_fn_cxx_check_header_compile ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $4
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_cxx_try_compile "$LINENO"; then :
2192 eval "$3=yes"
2193 else
2194 eval "$3=no"
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203 } # ac_fn_cxx_check_header_compile
2204
2205 # ac_fn_c_try_cpp LINENO
2206 # ----------------------
2207 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_c_try_cpp ()
2209 {
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 if { { ac_try="$ac_cpp conftest.$ac_ext"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2219 ac_status=$?
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2224 fi
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } > conftest.i && {
2227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2228 test ! -s conftest.err
2229 }; then :
2230 ac_retval=0
2231 else
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 ac_retval=1
2236 fi
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2239
2240 } # ac_fn_c_try_cpp
2241
2242 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2243 # ----------------------------------------------
2244 # Tries to find the compile-time value of EXPR in a program that includes
2245 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2246 # computed
2247 ac_fn_cxx_compute_int ()
2248 {
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) >= 0)];
2259 test_array [0] = 0;
2260 return test_array [0];
2261
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_cxx_try_compile "$LINENO"; then :
2267 ac_lo=0 ac_mid=0
2268 while :; do
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 test_array [0] = 0;
2277 return test_array [0];
2278
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2284 ac_hi=$ac_mid; break
2285 else
2286 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2287 if test $ac_lo -le $ac_mid; then
2288 ac_lo= ac_hi=
2289 break
2290 fi
2291 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 done
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $4
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($2) < 0)];
2303 test_array [0] = 0;
2304 return test_array [0];
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 ac_hi=-1 ac_mid=-1
2312 while :; do
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $4
2316 int
2317 main ()
2318 {
2319 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2320 test_array [0] = 0;
2321 return test_array [0];
2322
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 ac_lo=$ac_mid; break
2329 else
2330 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331 if test $ac_mid -le $ac_hi; then
2332 ac_lo= ac_hi=
2333 break
2334 fi
2335 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2336 fi
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 else
2340 ac_lo= ac_hi=
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2350 $4
2351 int
2352 main ()
2353 {
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 test_array [0] = 0;
2356 return test_array [0];
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2363 ac_hi=$ac_mid
2364 else
2365 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 case $ac_lo in #((
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2371 '') ac_retval=1 ;;
2372 esac
2373 else
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2376 $4
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2379 #include <stdio.h>
2380 #include <stdlib.h>
2381 int
2382 main ()
2383 {
2384
2385 FILE *f = fopen ("conftest.val", "w");
2386 if (! f)
2387 return 1;
2388 if (($2) < 0)
2389 {
2390 long int i = longval ();
2391 if (i != ($2))
2392 return 1;
2393 fprintf (f, "%ld", i);
2394 }
2395 else
2396 {
2397 unsigned long int i = ulongval ();
2398 if (i != ($2))
2399 return 1;
2400 fprintf (f, "%lu", i);
2401 }
2402 /* Do not output a trailing newline, as this causes \r\n confusion
2403 on some platforms. */
2404 return ferror (f) || fclose (f) != 0;
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_cxx_try_run "$LINENO"; then :
2411 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2412 else
2413 ac_retval=1
2414 fi
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416 conftest.$ac_objext conftest.beam conftest.$ac_ext
2417 rm -f conftest.val
2418
2419 fi
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 as_fn_set_status $ac_retval
2422
2423 } # ac_fn_cxx_compute_int
2424
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type ()
2430 {
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if eval \${$3+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 eval "$3=no"
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2440 $4
2441 int
2442 main ()
2443 {
2444 if (sizeof ($2))
2445 return 0;
2446 ;
2447 return 0;
2448 }
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453 $4
2454 int
2455 main ()
2456 {
2457 if (sizeof (($2)))
2458 return 0;
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2464
2465 else
2466 eval "$3=yes"
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 fi
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476
2477 } # ac_fn_cxx_check_type
2478
2479 # ac_fn_c_find_intX_t LINENO BITS VAR
2480 # -----------------------------------
2481 # Finds a signed integer type with width BITS, setting cache variable VAR
2482 # accordingly.
2483 ac_fn_c_find_intX_t ()
2484 {
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2487 $as_echo_n "checking for int$2_t... " >&6; }
2488 if eval \${$3+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 eval "$3=no"
2492 # Order is important - never check a type that is potentially smaller
2493 # than half of the expected target width.
2494 for ac_type in int$2_t 'int' 'long int' \
2495 'long long int' 'short int' 'signed char'; do
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $ac_includes_default
2499 enum { N = $2 / 2 - 1 };
2500 int
2501 main ()
2502 {
2503 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2504 test_array [0] = 0;
2505 return test_array [0];
2506
2507 ;
2508 return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $ac_includes_default
2515 enum { N = $2 / 2 - 1 };
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2520 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2521 test_array [0] = 0;
2522 return test_array [0];
2523
2524 ;
2525 return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2529
2530 else
2531 case $ac_type in #(
2532 int$2_t) :
2533 eval "$3=yes" ;; #(
2534 *) :
2535 eval "$3=\$ac_type" ;;
2536 esac
2537 fi
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if eval test \"x\$"$3"\" = x"no"; then :
2542
2543 else
2544 break
2545 fi
2546 done
2547 fi
2548 eval ac_res=\$$3
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552
2553 } # ac_fn_c_find_intX_t
2554
2555 # ac_fn_cxx_try_link LINENO
2556 # -------------------------
2557 # Try to link conftest.$ac_ext, and return whether this succeeded.
2558 ac_fn_cxx_try_link ()
2559 {
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2575 fi
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 test -x conftest$ac_exeext
2583 }; then :
2584 ac_retval=0
2585 else
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_retval=1
2590 fi
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 as_fn_set_status $ac_retval
2598
2599 } # ac_fn_cxx_try_link
2600
2601 # ac_fn_c_find_uintX_t LINENO BITS VAR
2602 # ------------------------------------
2603 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2604 # accordingly.
2605 ac_fn_c_find_uintX_t ()
2606 {
2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2609 $as_echo_n "checking for uint$2_t... " >&6; }
2610 if eval \${$3+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 eval "$3=no"
2614 # Order is important - never check a type that is potentially smaller
2615 # than half of the expected target width.
2616 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2617 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 $ac_includes_default
2621 int
2622 main ()
2623 {
2624 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2625 test_array [0] = 0;
2626 return test_array [0];
2627
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_cxx_try_compile "$LINENO"; then :
2633 case $ac_type in #(
2634 uint$2_t) :
2635 eval "$3=yes" ;; #(
2636 *) :
2637 eval "$3=\$ac_type" ;;
2638 esac
2639 fi
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 if eval test \"x\$"$3"\" = x"no"; then :
2642
2643 else
2644 break
2645 fi
2646 done
2647 fi
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652
2653 } # ac_fn_c_find_uintX_t
2654
2655 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2656 # ------------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_cxx_check_header_preproc ()
2659 {
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \${$3+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2668 #include <$2>
2669 _ACEOF
2670 if ac_fn_cxx_try_cpp "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2674 fi
2675 rm -f conftest.err conftest.i conftest.$ac_ext
2676 fi
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2681
2682 } # ac_fn_cxx_check_header_preproc
2683
2684 # ac_fn_cxx_check_func LINENO FUNC VAR
2685 # ------------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_cxx_check_func ()
2688 {
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if eval \${$3+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2700
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2705
2706 #ifdef __STDC__
2707 # include <limits.h>
2708 #else
2709 # include <assert.h>
2710 #endif
2711
2712 #undef $2
2713
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2717 #ifdef __cplusplus
2718 extern "C"
2719 #endif
2720 char $2 ();
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2725 choke me
2726 #endif
2727
2728 int
2729 main ()
2730 {
2731 return $2 ();
2732 ;
2733 return 0;
2734 }
2735 _ACEOF
2736 if ac_fn_cxx_try_link "$LINENO"; then :
2737 eval "$3=yes"
2738 else
2739 eval "$3=no"
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext \
2742 conftest$ac_exeext conftest.$ac_ext
2743 fi
2744 eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748
2749 } # ac_fn_cxx_check_func
2750
2751 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2752 # -----------------------------------------------
2753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2754 # accordingly.
2755 ac_fn_cxx_check_decl ()
2756 {
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 as_decl_name=`echo $2|sed 's/ *(.*//'`
2759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2762 if eval \${$3+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2767 $4
2768 int
2769 main ()
2770 {
2771 #ifndef $as_decl_name
2772 #ifdef __cplusplus
2773 (void) $as_decl_use;
2774 #else
2775 (void) $as_decl_name;
2776 #endif
2777 #endif
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_cxx_try_compile "$LINENO"; then :
2784 eval "$3=yes"
2785 else
2786 eval "$3=no"
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794
2795 } # ac_fn_cxx_check_decl
2796
2797 # ac_fn_c_try_link LINENO
2798 # -----------------------
2799 # Try to link conftest.$ac_ext, and return whether this succeeded.
2800 ac_fn_c_try_link ()
2801 {
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 rm -f conftest.$ac_objext conftest$ac_exeext
2804 if { { ac_try="$ac_link"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>conftest.err
2812 ac_status=$?
2813 if test -s conftest.err; then
2814 grep -v '^ *+' conftest.err >conftest.er1
2815 cat conftest.er1 >&5
2816 mv -f conftest.er1 conftest.err
2817 fi
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; } && {
2820 test -z "$ac_c_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest$ac_exeext && {
2823 test "$cross_compiling" = yes ||
2824 test -x conftest$ac_exeext
2825 }; then :
2826 ac_retval=0
2827 else
2828 $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 ac_retval=1
2832 fi
2833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2835 # interfere with the next link command; also delete a directory that is
2836 # left behind by Apple's compiler. We do this before executing the actions.
2837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839 as_fn_set_status $ac_retval
2840
2841 } # ac_fn_c_try_link
2842
2843 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2844 # ----------------------------------------------
2845 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2846 ac_fn_c_check_header_preproc ()
2847 {
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2850 $as_echo_n "checking for $2... " >&6; }
2851 if eval \${$3+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856 #include <$2>
2857 _ACEOF
2858 if ac_fn_c_try_cpp "$LINENO"; then :
2859 eval "$3=yes"
2860 else
2861 eval "$3=no"
2862 fi
2863 rm -f conftest.err conftest.i conftest.$ac_ext
2864 fi
2865 eval ac_res=\$$3
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2869
2870 } # ac_fn_c_check_header_preproc
2871
2872 # ac_fn_c_check_func LINENO FUNC VAR
2873 # ----------------------------------
2874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2875 ac_fn_c_check_func ()
2876 {
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2879 $as_echo_n "checking for $2... " >&6; }
2880 if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2887 #define $2 innocuous_$2
2888
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $2 (); below.
2891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 <limits.h> exists even on freestanding compilers. */
2893
2894 #ifdef __STDC__
2895 # include <limits.h>
2896 #else
2897 # include <assert.h>
2898 #endif
2899
2900 #undef $2
2901
2902 /* Override any GCC internal prototype to avoid an error.
2903 Use char because int might match the return type of a GCC
2904 builtin and then its argument prototype would still apply. */
2905 #ifdef __cplusplus
2906 extern "C"
2907 #endif
2908 char $2 ();
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined __stub_$2 || defined __stub___$2
2913 choke me
2914 #endif
2915
2916 int
2917 main ()
2918 {
2919 return $2 ();
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 if ac_fn_c_try_link "$LINENO"; then :
2925 eval "$3=yes"
2926 else
2927 eval "$3=no"
2928 fi
2929 rm -f core conftest.err conftest.$ac_objext \
2930 conftest$ac_exeext conftest.$ac_ext
2931 fi
2932 eval ac_res=\$$3
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2934 $as_echo "$ac_res" >&6; }
2935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2936
2937 } # ac_fn_c_check_func
2938 cat >config.log <<_ACEOF
2939 This file contains any messages produced by compilers while
2940 running configure, to aid debugging if configure makes a mistake.
2941
2942 It was created by $as_me, which was
2943 generated by GNU Autoconf 2.69. Invocation command line was
2944
2945 $ $0 $@
2946
2947 _ACEOF
2948 exec 5>>config.log
2949 {
2950 cat <<_ASUNAME
2951 ## --------- ##
2952 ## Platform. ##
2953 ## --------- ##
2954
2955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2960
2961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2963
2964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2971
2972 _ASUNAME
2973
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 $as_echo "PATH: $as_dir"
2980 done
2981 IFS=$as_save_IFS
2982
2983 } >&5
2984
2985 cat >&5 <<_ACEOF
2986
2987
2988 ## ----------- ##
2989 ## Core tests. ##
2990 ## ----------- ##
2991
2992 _ACEOF
2993
2994
2995 # Keep a trace of the command line.
2996 # Strip out --no-create and --no-recursion so they do not pile up.
2997 # Strip out --silent because we don't want to record it for future runs.
2998 # Also quote any args containing shell meta-characters.
2999 # Make two passes to allow for proper duplicate-argument suppression.
3000 ac_configure_args=
3001 ac_configure_args0=
3002 ac_configure_args1=
3003 ac_must_keep_next=false
3004 for ac_pass in 1 2
3005 do
3006 for ac_arg
3007 do
3008 case $ac_arg in
3009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3011 | -silent | --silent | --silen | --sile | --sil)
3012 continue ;;
3013 *\'*)
3014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3015 esac
3016 case $ac_pass in
3017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3018 2)
3019 as_fn_append ac_configure_args1 " '$ac_arg'"
3020 if test $ac_must_keep_next = true; then
3021 ac_must_keep_next=false # Got value, back to normal.
3022 else
3023 case $ac_arg in
3024 *=* | --config-cache | -C | -disable-* | --disable-* \
3025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3027 | -with-* | --with-* | -without-* | --without-* | --x)
3028 case "$ac_configure_args0 " in
3029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3030 esac
3031 ;;
3032 -* ) ac_must_keep_next=true ;;
3033 esac
3034 fi
3035 as_fn_append ac_configure_args " '$ac_arg'"
3036 ;;
3037 esac
3038 done
3039 done
3040 { ac_configure_args0=; unset ac_configure_args0;}
3041 { ac_configure_args1=; unset ac_configure_args1;}
3042
3043 # When interrupted or exit'd, cleanup temporary files, and complete
3044 # config.log. We remove comments because anyway the quotes in there
3045 # would cause problems or look ugly.
3046 # WARNING: Use '\'' to represent an apostrophe within the trap.
3047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3048 trap 'exit_status=$?
3049 # Save into config.log some information that might help in debugging.
3050 {
3051 echo
3052
3053 $as_echo "## ---------------- ##
3054 ## Cache variables. ##
3055 ## ---------------- ##"
3056 echo
3057 # The following way of writing the cache mishandles newlines in values,
3058 (
3059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3060 eval ac_val=\$$ac_var
3061 case $ac_val in #(
3062 *${as_nl}*)
3063 case $ac_var in #(
3064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3066 esac
3067 case $ac_var in #(
3068 _ | IFS | as_nl) ;; #(
3069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3070 *) { eval $ac_var=; unset $ac_var;} ;;
3071 esac ;;
3072 esac
3073 done
3074 (set) 2>&1 |
3075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3076 *${as_nl}ac_space=\ *)
3077 sed -n \
3078 "s/'\''/'\''\\\\'\'''\''/g;
3079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3080 ;; #(
3081 *)
3082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3083 ;;
3084 esac |
3085 sort
3086 )
3087 echo
3088
3089 $as_echo "## ----------------- ##
3090 ## Output variables. ##
3091 ## ----------------- ##"
3092 echo
3093 for ac_var in $ac_subst_vars
3094 do
3095 eval ac_val=\$$ac_var
3096 case $ac_val in
3097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 esac
3099 $as_echo "$ac_var='\''$ac_val'\''"
3100 done | sort
3101 echo
3102
3103 if test -n "$ac_subst_files"; then
3104 $as_echo "## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##"
3107 echo
3108 for ac_var in $ac_subst_files
3109 do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113 esac
3114 $as_echo "$ac_var='\''$ac_val'\''"
3115 done | sort
3116 echo
3117 fi
3118
3119 if test -s confdefs.h; then
3120 $as_echo "## ----------- ##
3121 ## confdefs.h. ##
3122 ## ----------- ##"
3123 echo
3124 cat confdefs.h
3125 echo
3126 fi
3127 test "$ac_signal" != 0 &&
3128 $as_echo "$as_me: caught signal $ac_signal"
3129 $as_echo "$as_me: exit $exit_status"
3130 } >&5
3131 rm -f core *.core core.conftest.* &&
3132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3133 exit $exit_status
3134 ' 0
3135 for ac_signal in 1 2 13 15; do
3136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3137 done
3138 ac_signal=0
3139
3140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3141 rm -f -r conftest* confdefs.h
3142
3143 $as_echo "/* confdefs.h */" > confdefs.h
3144
3145 # Predefined preprocessor variables.
3146
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_NAME "$PACKAGE_NAME"
3149 _ACEOF
3150
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3153 _ACEOF
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3157 _ACEOF
3158
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_STRING "$PACKAGE_STRING"
3161 _ACEOF
3162
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3165 _ACEOF
3166
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_URL "$PACKAGE_URL"
3169 _ACEOF
3170
3171
3172 # Let the site file select an alternate cache file if it wants to.
3173 # Prefer an explicitly selected file to automatically selected ones.
3174 ac_site_file1=NONE
3175 ac_site_file2=NONE
3176 if test -n "$CONFIG_SITE"; then
3177 # We do not want a PATH search for config.site.
3178 case $CONFIG_SITE in #((
3179 -*) ac_site_file1=./$CONFIG_SITE;;
3180 */*) ac_site_file1=$CONFIG_SITE;;
3181 *) ac_site_file1=./$CONFIG_SITE;;
3182 esac
3183 elif test "x$prefix" != xNONE; then
3184 ac_site_file1=$prefix/share/config.site
3185 ac_site_file2=$prefix/etc/config.site
3186 else
3187 ac_site_file1=$ac_default_prefix/share/config.site
3188 ac_site_file2=$ac_default_prefix/etc/config.site
3189 fi
3190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3191 do
3192 test "x$ac_site_file" = xNONE && continue
3193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3196 sed 's/^/| /' "$ac_site_file" >&5
3197 . "$ac_site_file" \
3198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "failed to load site script $ac_site_file
3201 See \`config.log' for more details" "$LINENO" 5; }
3202 fi
3203 done
3204
3205 if test -r "$cache_file"; then
3206 # Some versions of bash will fail to source /dev/null (special files
3207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3210 $as_echo "$as_me: loading cache $cache_file" >&6;}
3211 case $cache_file in
3212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3213 *) . "./$cache_file";;
3214 esac
3215 fi
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3218 $as_echo "$as_me: creating cache $cache_file" >&6;}
3219 >$cache_file
3220 fi
3221
3222 # Check that the precious variables saved in the cache have kept the same
3223 # value.
3224 ac_cache_corrupted=false
3225 for ac_var in $ac_precious_vars; do
3226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3227 eval ac_new_set=\$ac_env_${ac_var}_set
3228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3229 eval ac_new_val=\$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3231 set,)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3235 ,set)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3239 ,);;
3240 *)
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w=`echo x $ac_old_val`
3244 ac_new_val_w=`echo x $ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3248 ac_cache_corrupted=:
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\$ac_old_val
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3258 fi;;
3259 esac
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3262 case $ac_new_val in
3263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3264 *) ac_arg=$ac_var=$ac_new_val ;;
3265 esac
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 esac
3270 fi
3271 done
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3278 fi
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3282
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290
3291
3292
3293
3294 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3295
3296
3297 gcc_version=`cat $srcdir/BASE-VER`
3298
3299 # Determine the host, build, and target systems
3300 ac_aux_dir=
3301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3303 ac_aux_dir=$ac_dir
3304 ac_install_sh="$ac_aux_dir/install-sh -c"
3305 break
3306 elif test -f "$ac_dir/install.sh"; then
3307 ac_aux_dir=$ac_dir
3308 ac_install_sh="$ac_aux_dir/install.sh -c"
3309 break
3310 elif test -f "$ac_dir/shtool"; then
3311 ac_aux_dir=$ac_dir
3312 ac_install_sh="$ac_aux_dir/shtool install -c"
3313 break
3314 fi
3315 done
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3318 fi
3319
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3327
3328
3329 # Make sure we can run config.sub.
3330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3334 $as_echo_n "checking build system type... " >&6; }
3335 if ${ac_cv_build+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 ac_build_alias=$build_alias
3339 test "x$ac_build_alias" = x &&
3340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3341 test "x$ac_build_alias" = x &&
3342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3345
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3348 $as_echo "$ac_cv_build" >&6; }
3349 case $ac_cv_build in
3350 *-*-*) ;;
3351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3352 esac
3353 build=$ac_cv_build
3354 ac_save_IFS=$IFS; IFS='-'
3355 set x $ac_cv_build
3356 shift
3357 build_cpu=$1
3358 build_vendor=$2
3359 shift; shift
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3362 build_os=$*
3363 IFS=$ac_save_IFS
3364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3365
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3368 $as_echo_n "checking host system type... " >&6; }
3369 if ${ac_cv_host+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test "x$host_alias" = x; then
3373 ac_cv_host=$ac_cv_build
3374 else
3375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3377 fi
3378
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3381 $as_echo "$ac_cv_host" >&6; }
3382 case $ac_cv_host in
3383 *-*-*) ;;
3384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3385 esac
3386 host=$ac_cv_host
3387 ac_save_IFS=$IFS; IFS='-'
3388 set x $ac_cv_host
3389 shift
3390 host_cpu=$1
3391 host_vendor=$2
3392 shift; shift
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3395 host_os=$*
3396 IFS=$ac_save_IFS
3397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3398
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3401 $as_echo_n "checking target system type... " >&6; }
3402 if ${ac_cv_target+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test "x$target_alias" = x; then
3406 ac_cv_target=$ac_cv_host
3407 else
3408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3410 fi
3411
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3414 $as_echo "$ac_cv_target" >&6; }
3415 case $ac_cv_target in
3416 *-*-*) ;;
3417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3418 esac
3419 target=$ac_cv_target
3420 ac_save_IFS=$IFS; IFS='-'
3421 set x $ac_cv_target
3422 shift
3423 target_cpu=$1
3424 target_vendor=$2
3425 shift; shift
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3428 target_os=$*
3429 IFS=$ac_save_IFS
3430 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3431
3432
3433 # The aliases save the names the user supplied, while $host etc.
3434 # will get canonicalized.
3435 test -n "$target_alias" &&
3436 test "$program_prefix$program_suffix$program_transform_name" = \
3437 NONENONEs,x,x, &&
3438 program_prefix=${target_alias}-
3439
3440 # Determine the noncanonical host name, for Ada.
3441 case ${build_alias} in
3442 "") build_noncanonical=${build} ;;
3443 *) build_noncanonical=${build_alias} ;;
3444 esac
3445
3446 case ${host_alias} in
3447 "") host_noncanonical=${build_noncanonical} ;;
3448 *) host_noncanonical=${host_alias} ;;
3449 esac
3450
3451
3452
3453
3454 # Determine the noncanonical target name, for directory use.
3455 case ${target_alias} in
3456 "") target_noncanonical=${host_noncanonical} ;;
3457 *) target_noncanonical=${target_alias} ;;
3458 esac
3459
3460
3461
3462
3463 # Used for constructing correct paths for offload compilers.
3464 real_target_noncanonical=${target_noncanonical}
3465 accel_dir_suffix=
3466
3467 # Determine the target- and build-specific subdirectories
3468
3469 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3470 # have matching libraries, they should use host libraries: Makefile.tpl
3471 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3472 # However, they still use the build modules, because the corresponding
3473 # host modules (e.g. bison) are only built for the host when bootstrap
3474 # finishes. So:
3475 # - build_subdir is where we find build modules, and never changes.
3476 # - build_libsubdir is where we find build libraries, and can be overridden.
3477
3478 # Prefix 'build-' so this never conflicts with target_subdir.
3479 build_subdir="build-${build_noncanonical}"
3480
3481 # Check whether --with-build-libsubdir was given.
3482 if test "${with_build_libsubdir+set}" = set; then :
3483 withval=$with_build_libsubdir; build_libsubdir="$withval"
3484 else
3485 build_libsubdir="$build_subdir"
3486 fi
3487
3488 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3489 if ( test $srcdir = . && test -d gcc ) \
3490 || test -d $srcdir/../host-${host_noncanonical}; then
3491 host_subdir="host-${host_noncanonical}"
3492 else
3493 host_subdir=.
3494 fi
3495 # No prefix.
3496 target_subdir=${target_noncanonical}
3497
3498
3499 # Set program_transform_name
3500 test "$program_prefix" != NONE &&
3501 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3502 # Use a double $ so make ignores it.
3503 test "$program_suffix" != NONE &&
3504 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3505 # Double any \ or $.
3506 # By default was `s,x,x', remove it if useless.
3507 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3508 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3509
3510
3511 # Check for bogus environment variables.
3512 # Test if LIBRARY_PATH contains the notation for the current directory
3513 # since this would lead to problems installing/building glibc.
3514 # LIBRARY_PATH contains the current directory if one of the following
3515 # is true:
3516 # - one of the terminals (":" and ";") is the first or last sign
3517 # - two terminals occur directly after each other
3518 # - the path contains an element with a dot in it
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3520 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3521 case ${LIBRARY_PATH} in
3522 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3523 library_path_setting="contains current directory"
3524 ;;
3525 *)
3526 library_path_setting="ok"
3527 ;;
3528 esac
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3530 $as_echo "$library_path_setting" >&6; }
3531 if test "$library_path_setting" != "ok"; then
3532 as_fn_error $? "
3533 *** LIBRARY_PATH shouldn't contain the current directory when
3534 *** building gcc. Please change the environment variable
3535 *** and run configure again." "$LINENO" 5
3536 fi
3537
3538 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3539 # since this would lead to problems installing/building glibc.
3540 # GCC_EXEC_PREFIX contains the current directory if one of the following
3541 # is true:
3542 # - one of the terminals (":" and ";") is the first or last sign
3543 # - two terminals occur directly after each other
3544 # - the path contains an element with a dot in it
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3546 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3547 case ${GCC_EXEC_PREFIX} in
3548 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3549 gcc_exec_prefix_setting="contains current directory"
3550 ;;
3551 *)
3552 gcc_exec_prefix_setting="ok"
3553 ;;
3554 esac
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3556 $as_echo "$gcc_exec_prefix_setting" >&6; }
3557 if test "$gcc_exec_prefix_setting" != "ok"; then
3558 as_fn_error $? "
3559 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3560 *** building gcc. Please change the environment variable
3561 *** and run configure again." "$LINENO" 5
3562 fi
3563
3564 # -----------
3565 # Directories
3566 # -----------
3567
3568 # Specify the local prefix
3569 local_prefix=
3570
3571 # Check whether --with-local-prefix was given.
3572 if test "${with_local_prefix+set}" = set; then :
3573 withval=$with_local_prefix; case "${withval}" in
3574 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3575 no) ;;
3576 *) local_prefix=$with_local_prefix ;;
3577 esac
3578 fi
3579
3580
3581 # Default local prefix if it is empty
3582 if test x$local_prefix = x; then
3583 local_prefix=/usr/local
3584 fi
3585
3586
3587 # Check whether --with-native-system-header-dir was given.
3588 if test "${with_native_system_header_dir+set}" = set; then :
3589 withval=$with_native_system_header_dir;
3590 case ${with_native_system_header_dir} in
3591 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3592 /* | [A-Za-z]:[\\/]*) ;;
3593 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3594 esac
3595 configured_native_system_header_dir="${withval}"
3596
3597 else
3598 configured_native_system_header_dir=
3599 fi
3600
3601
3602
3603 # Check whether --with-build-sysroot was given.
3604 if test "${with_build_sysroot+set}" = set; then :
3605 withval=$with_build_sysroot; if test x"$withval" != x ; then
3606 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3607 fi
3608 else
3609 SYSROOT_CFLAGS_FOR_TARGET=
3610 fi
3611
3612
3613
3614 if test "x$prefix" = xNONE; then
3615 test_prefix=/usr/local
3616 else
3617 test_prefix=$prefix
3618 fi
3619 if test "x$exec_prefix" = xNONE; then
3620 test_exec_prefix=$test_prefix
3621 else
3622 test_exec_prefix=$exec_prefix
3623 fi
3624
3625
3626 # Check whether --with-sysroot was given.
3627 if test "${with_sysroot+set}" = set; then :
3628 withval=$with_sysroot;
3629 case ${with_sysroot} in
3630 /) ;;
3631 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3632 esac
3633 case ${with_sysroot} in
3634 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3635 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3636 esac
3637
3638 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3639 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3640
3641 case ${TARGET_SYSTEM_ROOT} in
3642 "${test_prefix}"|"${test_prefix}/"*|\
3643 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3644 '${prefix}'|'${prefix}/'*|\
3645 '${exec_prefix}'|'${exec_prefix}/'*)
3646 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3647 TARGET_SYSTEM_ROOT_DEFINE="$t"
3648 ;;
3649 esac
3650
3651 else
3652
3653 TARGET_SYSTEM_ROOT=
3654 TARGET_SYSTEM_ROOT_DEFINE=
3655 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3656
3657 fi
3658
3659
3660
3661
3662
3663 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3664 # passed in by the toplevel make and thus we'd get different behavior
3665 # depending on where we built the sources.
3666 gcc_gxx_include_dir=
3667 # Specify the g++ header file directory
3668
3669 # Check whether --with-gxx-include-dir was given.
3670 if test "${with_gxx_include_dir+set}" = set; then :
3671 withval=$with_gxx_include_dir; case "${withval}" in
3672 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3673 no) ;;
3674 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3675 esac
3676 fi
3677
3678
3679 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3680 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3681 # relative to the sysroot.
3682 gcc_gxx_include_dir_add_sysroot=0
3683
3684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3685 if test x${gcc_gxx_include_dir} = x; then
3686 if test x${enable_version_specific_runtime_libs} = xyes; then
3687 gcc_gxx_include_dir='${libsubdir}/include/c++'
3688 else
3689 libstdcxx_incdir='include/c++/$(version)'
3690 if test x$host != x$target; then
3691 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3692 fi
3693 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3694 fi
3695 elif test "${with_sysroot+set}" = set; then
3696 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3697 if test "${gcc_gxx_without_sysroot}"; then
3698 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3699 gcc_gxx_include_dir_add_sysroot=1
3700 fi
3701 fi
3702
3703
3704 # Check whether --with-cpp_install_dir was given.
3705 if test "${with_cpp_install_dir+set}" = set; then :
3706 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3707 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3708 elif test x$withval != xno; then
3709 cpp_install_dir=$withval
3710 fi
3711 fi
3712
3713
3714 # We would like to our source tree to be readonly. However when releases or
3715 # pre-releases are generated, the flex/bison generated files as well as the
3716 # various formats of manuals need to be included along with the rest of the
3717 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3718 # just that.
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3721 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3722 # Check whether --enable-generated-files-in-srcdir was given.
3723 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3724 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3725 else
3726 generated_files_in_srcdir=no
3727 fi
3728
3729
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3731 $as_echo "$generated_files_in_srcdir" >&6; }
3732
3733 if test "$generated_files_in_srcdir" = "yes"; then
3734 GENINSRC=''
3735 else
3736 GENINSRC='#'
3737 fi
3738
3739
3740 # -------------------
3741 # Find default linker
3742 # -------------------
3743
3744 # With GNU ld
3745
3746 # Check whether --with-gnu-ld was given.
3747 if test "${with_gnu_ld+set}" = set; then :
3748 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3749 else
3750 gnu_ld_flag=no
3751 fi
3752
3753
3754 case $target in
3755 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3756 *) ld64_flag=no;;
3757 esac
3758
3759 # With pre-defined ld
3760
3761 # Check whether --with-ld was given.
3762 if test "${with_ld+set}" = set; then :
3763 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3764 fi
3765
3766 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3767 if test ! -x "$DEFAULT_LINKER"; then
3768 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3769 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3770 gnu_ld_flag=yes
3771 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3772 ld64_flag=yes
3773 fi
3774
3775 cat >>confdefs.h <<_ACEOF
3776 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3777 _ACEOF
3778
3779 fi
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3782 $as_echo_n "checking whether a default linker was specified... " >&6; }
3783 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3784 if test x"$gnu_ld_flag" = x"no"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3786 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3789 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3790 fi
3791 else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796 # With demangler in GNU ld
3797
3798 # Check whether --with-demangler-in-ld was given.
3799 if test "${with_demangler_in_ld+set}" = set; then :
3800 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3801 else
3802 demangler_in_ld=yes
3803 fi
3804
3805
3806 # ----------------------
3807 # Find default assembler
3808 # ----------------------
3809
3810 # With GNU as
3811
3812 # Check whether --with-gnu-as was given.
3813 if test "${with_gnu_as+set}" = set; then :
3814 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3815 else
3816 gas_flag=no
3817 fi
3818
3819
3820
3821 # Check whether --with-as was given.
3822 if test "${with_as+set}" = set; then :
3823 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3824 fi
3825
3826 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3827 if test ! -x "$DEFAULT_ASSEMBLER"; then
3828 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3829 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3830 gas_flag=yes
3831 fi
3832
3833 cat >>confdefs.h <<_ACEOF
3834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3835 _ACEOF
3836
3837 fi
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3840 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3841 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3842 if test x"$gas_flag" = x"no"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3844 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3845 else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3847 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3848 fi
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854 # ---------------
3855 # Find C compiler
3856 # ---------------
3857
3858 # If a non-executable a.out is present (e.g. created by GNU as above even if
3859 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3860 # file, even when creating an executable, so an execution test fails.
3861 # Remove possible default executable files to avoid this.
3862 #
3863 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3864 # Autoconf includes it.
3865 rm -f a.out a.exe b.out
3866
3867 # Find the native compiler
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_prog_CC+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$CC"; then
3882 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911 fi
3912 if test -z "$ac_cv_prog_CC"; then
3913 ac_ct_CC=$CC
3914 # Extract the first word of "gcc", so it can be a program name with args.
3915 set dummy gcc; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$ac_ct_CC"; then
3922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC="gcc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 $as_echo "$ac_ct_CC" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 fi
3949
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3960 fi
3961 else
3962 CC="$ac_cv_prog_CC"
3963 fi
3964
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}cc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_CC="${ac_tool_prefix}cc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988 done
3989 done
3990 IFS=$as_save_IFS
3991
3992 fi
3993 fi
3994 CC=$ac_cv_prog_CC
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002
4003
4004 fi
4005 fi
4006 if test -z "$CC"; then
4007 # Extract the first word of "cc", so it can be a program name with args.
4008 set dummy cc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 ac_prog_rejected=no
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4026 ac_prog_rejected=yes
4027 continue
4028 fi
4029 ac_cv_prog_CC="cc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 if test $ac_prog_rejected = yes; then
4038 # We found a bogon in the path, so make sure we never use it.
4039 set dummy $ac_cv_prog_CC
4040 shift
4041 if test $# != 0; then
4042 # We chose a different compiler from the bogus one.
4043 # However, it has the same basename, so the bogon will be chosen
4044 # first if we set CC to just the basename; use the full file name.
4045 shift
4046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4047 fi
4048 fi
4049 fi
4050 fi
4051 CC=$ac_cv_prog_CC
4052 if test -n "$CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4054 $as_echo "$CC" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 fi
4059
4060
4061 fi
4062 if test -z "$CC"; then
4063 if test -n "$ac_tool_prefix"; then
4064 for ac_prog in cl.exe
4065 do
4066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_CC+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$CC"; then
4074 ac_cv_prog_CC="$CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 CC=$ac_cv_prog_CC
4094 if test -n "$CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4096 $as_echo "$CC" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102
4103 test -n "$CC" && break
4104 done
4105 fi
4106 if test -z "$CC"; then
4107 ac_ct_CC=$CC
4108 for ac_prog in cl.exe
4109 do
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC="$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147 test -n "$ac_ct_CC" && break
4148 done
4149
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4160 fi
4161 fi
4162
4163 fi
4164
4165
4166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "no acceptable C compiler found in \$PATH
4169 See \`config.log' for more details" "$LINENO" 5; }
4170
4171 # Provide some information about the compiler.
4172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4173 set X $ac_compile
4174 ac_compiler=$2
4175 for ac_option in --version -v -V -qversion; do
4176 { { ac_try="$ac_compiler $ac_option >&5"
4177 case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4184 ac_status=$?
4185 if test -s conftest.err; then
4186 sed '10a\
4187 ... rest of stderr output deleted ...
4188 10q' conftest.err >conftest.er1
4189 cat conftest.er1 >&5
4190 fi
4191 rm -f conftest.er1 conftest.err
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }
4194 done
4195
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main ()
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 ac_clean_files_save=$ac_clean_files
4208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4209 # Try to create an executable without -o first, disregard a.out.
4210 # It will help us diagnose broken compilers, and finding out an intuition
4211 # of exeext.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4213 $as_echo_n "checking whether the C compiler works... " >&6; }
4214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4215
4216 # The possible output files:
4217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4218
4219 ac_rmfiles=
4220 for ac_file in $ac_files
4221 do
4222 case $ac_file in
4223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4225 esac
4226 done
4227 rm -f $ac_rmfiles
4228
4229 if { { ac_try="$ac_link_default"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link_default") 2>&5
4237 ac_status=$?
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then :
4240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4242 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4243 # so that the user can short-circuit this test for compilers unknown to
4244 # Autoconf.
4245 for ac_file in $ac_files ''
4246 do
4247 test -f "$ac_file" || continue
4248 case $ac_file in
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4250 ;;
4251 [ab].out )
4252 # We found the default executable, but exeext='' is most
4253 # certainly right.
4254 break;;
4255 *.* )
4256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4257 then :; else
4258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4259 fi
4260 # We set ac_cv_exeext here because the later test for it is not
4261 # safe: cross compilers may not add the suffix if given an `-o'
4262 # argument, so we may need to know it at that point already.
4263 # Even if this section looks crufty: it has the advantage of
4264 # actually working.
4265 break;;
4266 * )
4267 break;;
4268 esac
4269 done
4270 test "$ac_cv_exeext" = no && ac_cv_exeext=
4271
4272 else
4273 ac_file=''
4274 fi
4275 if test -z "$ac_file"; then :
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 $as_echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4283 as_fn_error 77 "C compiler cannot create executables
4284 See \`config.log' for more details" "$LINENO" 5; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4287 $as_echo "yes" >&6; }
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4290 $as_echo_n "checking for C compiler default output file name... " >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4292 $as_echo "$ac_file" >&6; }
4293 ac_exeext=$ac_cv_exeext
4294
4295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4296 ac_clean_files=$ac_clean_files_save
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4298 $as_echo_n "checking for suffix of executables... " >&6; }
4299 if { { ac_try="$ac_link"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_link") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; then :
4310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4312 # work properly (i.e., refer to `conftest.exe'), while it won't with
4313 # `rm'.
4314 for ac_file in conftest.exe conftest conftest.*; do
4315 test -f "$ac_file" || continue
4316 case $ac_file in
4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4319 break;;
4320 * ) break;;
4321 esac
4322 done
4323 else
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4327 See \`config.log' for more details" "$LINENO" 5; }
4328 fi
4329 rm -f conftest conftest$ac_cv_exeext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4331 $as_echo "$ac_cv_exeext" >&6; }
4332
4333 rm -f conftest.$ac_ext
4334 EXEEXT=$ac_cv_exeext
4335 ac_exeext=$EXEEXT
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <stdio.h>
4339 int
4340 main ()
4341 {
4342 FILE *f = fopen ("conftest.out", "w");
4343 return ferror (f) || fclose (f) != 0;
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 ac_clean_files="$ac_clean_files conftest.out"
4350 # Check that the compiler produces executables we can run. If not, either
4351 # the compiler is broken, or we cross compile.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4353 $as_echo_n "checking whether we are cross compiling... " >&6; }
4354 if test "$cross_compiling" != yes; then
4355 { { ac_try="$ac_link"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_link") 2>&5
4363 ac_status=$?
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4366 if { ac_try='./conftest$ac_cv_exeext'
4367 { { case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_try") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; }; then
4377 cross_compiling=no
4378 else
4379 if test "$cross_compiling" = maybe; then
4380 cross_compiling=yes
4381 else
4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384 as_fn_error $? "cannot run C compiled programs.
4385 If you meant to cross compile, use \`--host'.
4386 See \`config.log' for more details" "$LINENO" 5; }
4387 fi
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4391 $as_echo "$cross_compiling" >&6; }
4392
4393 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4394 ac_clean_files=$ac_clean_files_save
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4396 $as_echo_n "checking for suffix of object files... " >&6; }
4397 if ${ac_cv_objext+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402
4403 int
4404 main ()
4405 {
4406
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.o conftest.obj
4412 if { { ac_try="$ac_compile"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compile") 2>&5
4420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; then :
4423 for ac_file in conftest.o conftest.obj conftest.*; do
4424 test -f "$ac_file" || continue;
4425 case $ac_file in
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4428 break;;
4429 esac
4430 done
4431 else
4432 $as_echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error $? "cannot compute suffix of object files: cannot compile
4438 See \`config.log' for more details" "$LINENO" 5; }
4439 fi
4440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4443 $as_echo "$ac_cv_objext" >&6; }
4444 OBJEXT=$ac_cv_objext
4445 ac_objext=$OBJEXT
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4448 if ${ac_cv_c_compiler_gnu+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 int
4455 main ()
4456 {
4457 #ifndef __GNUC__
4458 choke me
4459 #endif
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_compiler_gnu=yes
4467 else
4468 ac_compiler_gnu=no
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4472
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4476 if test $ac_compiler_gnu = yes; then
4477 GCC=yes
4478 else
4479 GCC=
4480 fi
4481 ac_test_CFLAGS=${CFLAGS+set}
4482 ac_save_CFLAGS=$CFLAGS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4485 if ${ac_cv_prog_cc_g+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 ac_save_c_werror_flag=$ac_c_werror_flag
4489 ac_c_werror_flag=yes
4490 ac_cv_prog_cc_g=no
4491 CFLAGS="-g"
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494
4495 int
4496 main ()
4497 {
4498
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_prog_cc_g=yes
4505 else
4506 CFLAGS=""
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519
4520 else
4521 ac_c_werror_flag=$ac_save_c_werror_flag
4522 CFLAGS="-g"
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_c_try_compile "$LINENO"; then :
4535 ac_cv_prog_cc_g=yes
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_c_werror_flag=$ac_save_c_werror_flag
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4545 $as_echo "$ac_cv_prog_cc_g" >&6; }
4546 if test "$ac_test_CFLAGS" = set; then
4547 CFLAGS=$ac_save_CFLAGS
4548 elif test $ac_cv_prog_cc_g = yes; then
4549 if test "$GCC" = yes; then
4550 CFLAGS="-g -O2"
4551 else
4552 CFLAGS="-g"
4553 fi
4554 else
4555 if test "$GCC" = yes; then
4556 CFLAGS="-O2"
4557 else
4558 CFLAGS=
4559 fi
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4563 if ${ac_cv_prog_cc_c89+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 ac_cv_prog_cc_c89=no
4567 ac_save_CC=$CC
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <stdarg.h>
4571 #include <stdio.h>
4572 struct stat;
4573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4574 struct buf { int x; };
4575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4576 static char *e (p, i)
4577 char **p;
4578 int i;
4579 {
4580 return p[i];
4581 }
4582 static char *f (char * (*g) (char **, int), char **p, ...)
4583 {
4584 char *s;
4585 va_list v;
4586 va_start (v,p);
4587 s = g (p, va_arg (v,int));
4588 va_end (v);
4589 return s;
4590 }
4591
4592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4593 function prototypes and stuff, but not '\xHH' hex character constants.
4594 These don't provoke an error unfortunately, instead are silently treated
4595 as 'x'. The following induces an error, until -std is added to get
4596 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4597 array size at least. It's necessary to write '\x00'==0 to get something
4598 that's true only with -std. */
4599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4600
4601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4602 inside strings and character constants. */
4603 #define FOO(x) 'x'
4604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4605
4606 int test (int i, double x);
4607 struct s1 {int (*f) (int a);};
4608 struct s2 {int (*f) (double a);};
4609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4610 int argc;
4611 char **argv;
4612 int
4613 main ()
4614 {
4615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4621 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4622 do
4623 CC="$ac_save_CC $ac_arg"
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625 ac_cv_prog_cc_c89=$ac_arg
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext
4628 test "x$ac_cv_prog_cc_c89" != "xno" && break
4629 done
4630 rm -f conftest.$ac_ext
4631 CC=$ac_save_CC
4632
4633 fi
4634 # AC_CACHE_VAL
4635 case "x$ac_cv_prog_cc_c89" in
4636 x)
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4638 $as_echo "none needed" >&6; } ;;
4639 xno)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4641 $as_echo "unsupported" >&6; } ;;
4642 *)
4643 CC="$CC $ac_cv_prog_cc_c89"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4646 esac
4647 if test "x$ac_cv_prog_cc_c89" != xno; then :
4648
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657 ac_ext=cpp
4658 ac_cpp='$CXXCPP $CPPFLAGS'
4659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4662 if test -z "$CXX"; then
4663 if test -n "$CCC"; then
4664 CXX=$CCC
4665 else
4666 if test -n "$ac_tool_prefix"; then
4667 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4668 do
4669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if ${ac_cv_prog_CXX+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$CXX"; then
4677 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4689 fi
4690 done
4691 done
4692 IFS=$as_save_IFS
4693
4694 fi
4695 fi
4696 CXX=$ac_cv_prog_CXX
4697 if test -n "$CXX"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4699 $as_echo "$CXX" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706 test -n "$CXX" && break
4707 done
4708 fi
4709 if test -z "$CXX"; then
4710 ac_ct_CXX=$CXX
4711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4712 do
4713 # Extract the first word of "$ac_prog", so it can be a program name with args.
4714 set dummy $ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$ac_ct_CXX"; then
4721 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_ac_ct_CXX="$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4741 if test -n "$ac_ct_CXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4743 $as_echo "$ac_ct_CXX" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 test -n "$ac_ct_CXX" && break
4751 done
4752
4753 if test "x$ac_ct_CXX" = x; then
4754 CXX="g++"
4755 else
4756 case $cross_compiling:$ac_tool_warned in
4757 yes:)
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4761 esac
4762 CXX=$ac_ct_CXX
4763 fi
4764 fi
4765
4766 fi
4767 fi
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4770 set X $ac_compile
4771 ac_compiler=$2
4772 for ac_option in --version -v -V -qversion; do
4773 { { ac_try="$ac_compiler $ac_option >&5"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 $as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4781 ac_status=$?
4782 if test -s conftest.err; then
4783 sed '10a\
4784 ... rest of stderr output deleted ...
4785 10q' conftest.err >conftest.er1
4786 cat conftest.er1 >&5
4787 fi
4788 rm -f conftest.er1 conftest.err
4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }
4791 done
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4794 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4795 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800
4801 int
4802 main ()
4803 {
4804 #ifndef __GNUC__
4805 choke me
4806 #endif
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_cxx_try_compile "$LINENO"; then :
4813 ac_compiler_gnu=yes
4814 else
4815 ac_compiler_gnu=no
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4819
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4822 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4823 if test $ac_compiler_gnu = yes; then
4824 GXX=yes
4825 else
4826 GXX=
4827 fi
4828 ac_test_CXXFLAGS=${CXXFLAGS+set}
4829 ac_save_CXXFLAGS=$CXXFLAGS
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4831 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4832 if ${ac_cv_prog_cxx_g+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4836 ac_cxx_werror_flag=yes
4837 ac_cv_prog_cxx_g=no
4838 CXXFLAGS="-g"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841
4842 int
4843 main ()
4844 {
4845
4846 ;
4847 return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_cxx_try_compile "$LINENO"; then :
4851 ac_cv_prog_cxx_g=yes
4852 else
4853 CXXFLAGS=""
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856
4857 int
4858 main ()
4859 {
4860
4861 ;
4862 return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_cxx_try_compile "$LINENO"; then :
4866
4867 else
4868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4869 CXXFLAGS="-g"
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 int
4874 main ()
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_cxx_try_compile "$LINENO"; then :
4882 ac_cv_prog_cxx_g=yes
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4892 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4893 if test "$ac_test_CXXFLAGS" = set; then
4894 CXXFLAGS=$ac_save_CXXFLAGS
4895 elif test $ac_cv_prog_cxx_g = yes; then
4896 if test "$GXX" = yes; then
4897 CXXFLAGS="-g -O2"
4898 else
4899 CXXFLAGS="-g"
4900 fi
4901 else
4902 if test "$GXX" = yes; then
4903 CXXFLAGS="-O2"
4904 else
4905 CXXFLAGS=
4906 fi
4907 fi
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914
4915
4916
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_GNATBIND+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$GNATBIND"; then
4926 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 GNATBIND=$ac_cv_prog_GNATBIND
4946 if test -n "$GNATBIND"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4948 $as_echo "$GNATBIND" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 fi
4956 if test -z "$ac_cv_prog_GNATBIND"; then
4957 ac_ct_GNATBIND=$GNATBIND
4958 # Extract the first word of "gnatbind", so it can be a program name with args.
4959 set dummy gnatbind; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_GNATBIND"; then
4966 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4986 if test -n "$ac_ct_GNATBIND"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4988 $as_echo "$ac_ct_GNATBIND" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994 if test "x$ac_ct_GNATBIND" = x; then
4995 GNATBIND="no"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 GNATBIND=$ac_ct_GNATBIND
5004 fi
5005 else
5006 GNATBIND="$ac_cv_prog_GNATBIND"
5007 fi
5008
5009 if test -n "$ac_tool_prefix"; then
5010 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5011 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_GNATMAKE+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$GNATMAKE"; then
5018 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 GNATMAKE=$ac_cv_prog_GNATMAKE
5038 if test -n "$GNATMAKE"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5040 $as_echo "$GNATMAKE" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 fi
5048 if test -z "$ac_cv_prog_GNATMAKE"; then
5049 ac_ct_GNATMAKE=$GNATMAKE
5050 # Extract the first word of "gnatmake", so it can be a program name with args.
5051 set dummy gnatmake; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$ac_ct_GNATMAKE"; then
5058 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5078 if test -n "$ac_ct_GNATMAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5080 $as_echo "$ac_ct_GNATMAKE" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086 if test "x$ac_ct_GNATMAKE" = x; then
5087 GNATMAKE="no"
5088 else
5089 case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 GNATMAKE=$ac_ct_GNATMAKE
5096 fi
5097 else
5098 GNATMAKE="$ac_cv_prog_GNATMAKE"
5099 fi
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5102 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5103 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 cat >conftest.adb <<EOF
5107 procedure conftest is begin null; end conftest;
5108 EOF
5109 acx_cv_cc_gcc_supports_ada=no
5110 # There is a bug in old released versions of GCC which causes the
5111 # driver to exit successfully when the appropriate language module
5112 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5113 # Therefore we must check for the error message as well as an
5114 # unsuccessful exit.
5115 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5116 # given a .adb file, but produce no object file. So we must check
5117 # if an object file was really produced to guard against this.
5118 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5119 if test x"$errors" = x && test -f conftest.$ac_objext; then
5120 acx_cv_cc_gcc_supports_ada=yes
5121 fi
5122 rm -f conftest.*
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5125 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5126
5127 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5128 have_gnat=yes
5129 else
5130 have_gnat=no
5131 fi
5132
5133
5134 # Do configure tests with the C++ compiler, since that's what we build with.
5135 ac_ext=cpp
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5141
5142 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5143 # optimizations to be activated explicitly by the toplevel.
5144 case "$CC" in
5145 */prev-gcc/xgcc*) ;;
5146 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5147 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5148 esac
5149
5150
5151
5152 # Determine PICFLAG for target gnatlib.
5153
5154
5155
5156
5157 case "${target}" in
5158 # PIC is the default on some targets or must not be used.
5159 *-*-darwin*)
5160 # For darwin, common symbols are not allowed in MH_DYLIB files
5161 case "${CFLAGS}" in
5162 # If we are using a compiler supporting mdynamic-no-pic
5163 # and the option has been tested as safe to add, then cancel
5164 # it here, since the code generated is incompatible with shared
5165 # libs.
5166 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5167 *) PICFLAG_FOR_TARGET=-fno-common ;;
5168 esac
5169 ;;
5170 alpha*-dec-osf5*)
5171 # PIC is the default.
5172 ;;
5173 hppa*64*-*-hpux*)
5174 # PIC is the default for 64-bit PA HP-UX.
5175 ;;
5176 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5177 ;;
5178 i[34567]86-*-mingw* | x86_64-*-mingw*)
5179 ;;
5180 i[34567]86-*-interix[3-9]*)
5181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5182 # Instead, we relocate shared libraries at runtime.
5183 ;;
5184 i[34567]86-*-nto-qnx*)
5185 # QNX uses GNU C++, but need to define -shared option too, otherwise
5186 # it will coredump.
5187 PICFLAG_FOR_TARGET='-fPIC -shared'
5188 ;;
5189 i[34567]86-pc-msdosdjgpp*)
5190 # DJGPP does not support shared libraries at all.
5191 ;;
5192 ia64*-*-hpux*)
5193 # On IA64 HP-UX, PIC is the default but the pic flag
5194 # sets the default TLS model and affects inlining.
5195 PICFLAG_FOR_TARGET=-fPIC
5196 ;;
5197 mips-sgi-irix6*)
5198 # PIC is the default.
5199 ;;
5200 rs6000-ibm-aix* | powerpc-ibm-aix*)
5201 # All AIX code is PIC.
5202 ;;
5203
5204 # Some targets support both -fPIC and -fpic, but prefer the latter.
5205 # FIXME: Why?
5206 i[34567]86-*-* | x86_64-*-*)
5207 PICFLAG_FOR_TARGET=-fpic
5208 ;;
5209 # FIXME: Override -fPIC default in libgcc only?
5210 sh-*-linux* | sh[2346lbe]*-*-linux*)
5211 PICFLAG_FOR_TARGET=-fpic
5212 ;;
5213 # FIXME: Simplify to sh*-*-netbsd*?
5214 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5215 sh64-*-netbsd* | sh64l*-*-netbsd*)
5216 PICFLAG_FOR_TARGET=-fpic
5217 ;;
5218 # Default to -fPIC unless specified otherwise.
5219 *)
5220 PICFLAG_FOR_TARGET=-fPIC
5221 ;;
5222 esac
5223
5224 # If the user explicitly uses -fpic/-fPIC, keep that.
5225 case "${CFLAGS_FOR_TARGET}" in
5226 *-fpic*)
5227 PICFLAG_FOR_TARGET=-fpic
5228 ;;
5229 *-fPIC*)
5230 PICFLAG_FOR_TARGET=-fPIC
5231 ;;
5232 esac
5233
5234
5235
5236 # -------------------------
5237 # Check C compiler features
5238 # -------------------------
5239
5240
5241 ac_ext=cpp
5242 ac_cpp='$CXXCPP $CPPFLAGS'
5243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5247 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5248 if test -z "$CXXCPP"; then
5249 if ${ac_cv_prog_CXXCPP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 # Double quotes because CXXCPP needs to be expanded
5253 for CXXCPP in "$CXX -E" "/lib/cpp"
5254 do
5255 ac_preproc_ok=false
5256 for ac_cxx_preproc_warn_flag in '' yes
5257 do
5258 # Use a header file that comes with gcc, so configuring glibc
5259 # with a fresh cross-compiler works.
5260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5261 # <limits.h> exists even on freestanding compilers.
5262 # On the NeXT, cc -E runs the code through the compiler's parser,
5263 # not just through cpp. "Syntax error" is here to catch this case.
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #ifdef __STDC__
5267 # include <limits.h>
5268 #else
5269 # include <assert.h>
5270 #endif
5271 Syntax error
5272 _ACEOF
5273 if ac_fn_cxx_try_cpp "$LINENO"; then :
5274
5275 else
5276 # Broken: fails on valid input.
5277 continue
5278 fi
5279 rm -f conftest.err conftest.i conftest.$ac_ext
5280
5281 # OK, works on sane cases. Now check whether nonexistent headers
5282 # can be detected and how.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if ac_fn_cxx_try_cpp "$LINENO"; then :
5288 # Broken: success on invalid input.
5289 continue
5290 else
5291 # Passes both tests.
5292 ac_preproc_ok=:
5293 break
5294 fi
5295 rm -f conftest.err conftest.i conftest.$ac_ext
5296
5297 done
5298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299 rm -f conftest.i conftest.err conftest.$ac_ext
5300 if $ac_preproc_ok; then :
5301 break
5302 fi
5303
5304 done
5305 ac_cv_prog_CXXCPP=$CXXCPP
5306
5307 fi
5308 CXXCPP=$ac_cv_prog_CXXCPP
5309 else
5310 ac_cv_prog_CXXCPP=$CXXCPP
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5313 $as_echo "$CXXCPP" >&6; }
5314 ac_preproc_ok=false
5315 for ac_cxx_preproc_warn_flag in '' yes
5316 do
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if ac_fn_cxx_try_cpp "$LINENO"; then :
5333
5334 else
5335 # Broken: fails on valid input.
5336 continue
5337 fi
5338 rm -f conftest.err conftest.i conftest.$ac_ext
5339
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5345 _ACEOF
5346 if ac_fn_cxx_try_cpp "$LINENO"; then :
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5353 fi
5354 rm -f conftest.err conftest.i conftest.$ac_ext
5355
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.i conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then :
5360
5361 else
5362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5364 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5365 See \`config.log' for more details" "$LINENO" 5; }
5366 fi
5367
5368 ac_ext=cpp
5369 ac_cpp='$CXXCPP $CPPFLAGS'
5370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5377 if ${ac_cv_path_GREP+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -z "$GREP"; then
5381 ac_path_GREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in grep ggrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_GREP" || continue
5392 # Check for GNU ac_path_GREP and select it if it is found.
5393 # Check for GNU $ac_path_GREP
5394 case `"$ac_path_GREP" --version 2>&1` in
5395 *GNU*)
5396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5397 *)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'GREP' >> "conftest.nl"
5406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_GREP="$ac_path_GREP"
5412 ac_path_GREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420 $ac_path_GREP_found && break 3
5421 done
5422 done
5423 done
5424 IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_GREP"; then
5426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 fi
5428 else
5429 ac_cv_path_GREP=$GREP
5430 fi
5431
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5434 $as_echo "$ac_cv_path_GREP" >&6; }
5435 GREP="$ac_cv_path_GREP"
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5439 $as_echo_n "checking for egrep... " >&6; }
5440 if ${ac_cv_path_EGREP+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5444 then ac_cv_path_EGREP="$GREP -E"
5445 else
5446 if test -z "$EGREP"; then
5447 ac_path_EGREP_found=false
5448 # Loop through the user's path and test for each of PROGNAME-LIST
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_prog in egrep; do
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5457 as_fn_executable_p "$ac_path_EGREP" || continue
5458 # Check for GNU ac_path_EGREP and select it if it is found.
5459 # Check for GNU $ac_path_EGREP
5460 case `"$ac_path_EGREP" --version 2>&1` in
5461 *GNU*)
5462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5463 *)
5464 ac_count=0
5465 $as_echo_n 0123456789 >"conftest.in"
5466 while :
5467 do
5468 cat "conftest.in" "conftest.in" >"conftest.tmp"
5469 mv "conftest.tmp" "conftest.in"
5470 cp "conftest.in" "conftest.nl"
5471 $as_echo 'EGREP' >> "conftest.nl"
5472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5474 as_fn_arith $ac_count + 1 && ac_count=$as_val
5475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5476 # Best one so far, save it but keep looking for a better one
5477 ac_cv_path_EGREP="$ac_path_EGREP"
5478 ac_path_EGREP_max=$ac_count
5479 fi
5480 # 10*(2^10) chars as input seems more than enough
5481 test $ac_count -gt 10 && break
5482 done
5483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5484 esac
5485
5486 $ac_path_EGREP_found && break 3
5487 done
5488 done
5489 done
5490 IFS=$as_save_IFS
5491 if test -z "$ac_cv_path_EGREP"; then
5492 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5493 fi
5494 else
5495 ac_cv_path_EGREP=$EGREP
5496 fi
5497
5498 fi
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5501 $as_echo "$ac_cv_path_EGREP" >&6; }
5502 EGREP="$ac_cv_path_EGREP"
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5506 $as_echo_n "checking for ANSI C header files... " >&6; }
5507 if ${ac_cv_header_stdc+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include <stdlib.h>
5513 #include <stdarg.h>
5514 #include <string.h>
5515 #include <float.h>
5516
5517 int
5518 main ()
5519 {
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 if ac_fn_cxx_try_compile "$LINENO"; then :
5526 ac_cv_header_stdc=yes
5527 else
5528 ac_cv_header_stdc=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531
5532 if test $ac_cv_header_stdc = yes; then
5533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <string.h>
5537
5538 _ACEOF
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 $EGREP "memchr" >/dev/null 2>&1; then :
5541
5542 else
5543 ac_cv_header_stdc=no
5544 fi
5545 rm -f conftest*
5546
5547 fi
5548
5549 if test $ac_cv_header_stdc = yes; then
5550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <stdlib.h>
5554
5555 _ACEOF
5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5557 $EGREP "free" >/dev/null 2>&1; then :
5558
5559 else
5560 ac_cv_header_stdc=no
5561 fi
5562 rm -f conftest*
5563
5564 fi
5565
5566 if test $ac_cv_header_stdc = yes; then
5567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5568 if test "$cross_compiling" = yes; then :
5569 :
5570 else
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <ctype.h>
5574 #include <stdlib.h>
5575 #if ((' ' & 0x0FF) == 0x020)
5576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5578 #else
5579 # define ISLOWER(c) \
5580 (('a' <= (c) && (c) <= 'i') \
5581 || ('j' <= (c) && (c) <= 'r') \
5582 || ('s' <= (c) && (c) <= 'z'))
5583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5584 #endif
5585
5586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 int
5588 main ()
5589 {
5590 int i;
5591 for (i = 0; i < 256; i++)
5592 if (XOR (islower (i), ISLOWER (i))
5593 || toupper (i) != TOUPPER (i))
5594 return 2;
5595 return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_cxx_try_run "$LINENO"; then :
5599
5600 else
5601 ac_cv_header_stdc=no
5602 fi
5603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5604 conftest.$ac_objext conftest.beam conftest.$ac_ext
5605 fi
5606
5607 fi
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5610 $as_echo "$ac_cv_header_stdc" >&6; }
5611 if test $ac_cv_header_stdc = yes; then
5612
5613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5614
5615 fi
5616
5617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5619 inttypes.h stdint.h unistd.h
5620 do :
5621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5623 "
5624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5625 cat >>confdefs.h <<_ACEOF
5626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5627 _ACEOF
5628
5629 fi
5630
5631 done
5632
5633
5634
5635 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5636 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5637 MINIX=yes
5638 else
5639 MINIX=
5640 fi
5641
5642
5643 if test "$MINIX" = yes; then
5644
5645 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5646
5647
5648 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5649
5650
5651 $as_echo "#define _MINIX 1" >>confdefs.h
5652
5653 fi
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5657 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5658 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663
5664 # define __EXTENSIONS__ 1
5665 $ac_includes_default
5666 int
5667 main ()
5668 {
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_cxx_try_compile "$LINENO"; then :
5675 ac_cv_safe_to_define___extensions__=yes
5676 else
5677 ac_cv_safe_to_define___extensions__=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5682 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5683 test $ac_cv_safe_to_define___extensions__ = yes &&
5684 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5685
5686 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5687
5688 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5689
5690 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5691
5692 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5693
5694
5695 ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5701 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5702 # On Suns, sometimes $CPP names a directory.
5703 if test -n "$CPP" && test -d "$CPP"; then
5704 CPP=
5705 fi
5706 if test -z "$CPP"; then
5707 if ${ac_cv_prog_CPP+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 # Double quotes because CPP needs to be expanded
5711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5712 do
5713 ac_preproc_ok=false
5714 for ac_c_preproc_warn_flag in '' yes
5715 do
5716 # Use a header file that comes with gcc, so configuring glibc
5717 # with a fresh cross-compiler works.
5718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5719 # <limits.h> exists even on freestanding compilers.
5720 # On the NeXT, cc -E runs the code through the compiler's parser,
5721 # not just through cpp. "Syntax error" is here to catch this case.
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #ifdef __STDC__
5725 # include <limits.h>
5726 #else
5727 # include <assert.h>
5728 #endif
5729 Syntax error
5730 _ACEOF
5731 if ac_fn_c_try_cpp "$LINENO"; then :
5732
5733 else
5734 # Broken: fails on valid input.
5735 continue
5736 fi
5737 rm -f conftest.err conftest.i conftest.$ac_ext
5738
5739 # OK, works on sane cases. Now check whether nonexistent headers
5740 # can be detected and how.
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5744 _ACEOF
5745 if ac_fn_c_try_cpp "$LINENO"; then :
5746 # Broken: success on invalid input.
5747 continue
5748 else
5749 # Passes both tests.
5750 ac_preproc_ok=:
5751 break
5752 fi
5753 rm -f conftest.err conftest.i conftest.$ac_ext
5754
5755 done
5756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757 rm -f conftest.i conftest.err conftest.$ac_ext
5758 if $ac_preproc_ok; then :
5759 break
5760 fi
5761
5762 done
5763 ac_cv_prog_CPP=$CPP
5764
5765 fi
5766 CPP=$ac_cv_prog_CPP
5767 else
5768 ac_cv_prog_CPP=$CPP
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5771 $as_echo "$CPP" >&6; }
5772 ac_preproc_ok=false
5773 for ac_c_preproc_warn_flag in '' yes
5774 do
5775 # Use a header file that comes with gcc, so configuring glibc
5776 # with a fresh cross-compiler works.
5777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 # <limits.h> exists even on freestanding compilers.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #ifdef __STDC__
5784 # include <limits.h>
5785 #else
5786 # include <assert.h>
5787 #endif
5788 Syntax error
5789 _ACEOF
5790 if ac_fn_c_try_cpp "$LINENO"; then :
5791
5792 else
5793 # Broken: fails on valid input.
5794 continue
5795 fi
5796 rm -f conftest.err conftest.i conftest.$ac_ext
5797
5798 # OK, works on sane cases. Now check whether nonexistent headers
5799 # can be detected and how.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if ac_fn_c_try_cpp "$LINENO"; then :
5805 # Broken: success on invalid input.
5806 continue
5807 else
5808 # Passes both tests.
5809 ac_preproc_ok=:
5810 break
5811 fi
5812 rm -f conftest.err conftest.i conftest.$ac_ext
5813
5814 done
5815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816 rm -f conftest.i conftest.err conftest.$ac_ext
5817 if $ac_preproc_ok; then :
5818
5819 else
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5823 See \`config.log' for more details" "$LINENO" 5; }
5824 fi
5825
5826 ac_ext=cpp
5827 ac_cpp='$CXXCPP $CPPFLAGS'
5828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5833 $as_echo_n "checking for inline... " >&6; }
5834 if ${ac_cv_c_inline+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 ac_cv_c_inline=no
5838 for ac_kw in inline __inline__ __inline; do
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #ifndef __cplusplus
5842 typedef int foo_t;
5843 static $ac_kw foo_t static_foo () {return 0; }
5844 $ac_kw foo_t foo () {return 0; }
5845 #endif
5846
5847 _ACEOF
5848 if ac_fn_cxx_try_compile "$LINENO"; then :
5849 ac_cv_c_inline=$ac_kw
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 test "$ac_cv_c_inline" != no && break
5853 done
5854
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5857 $as_echo "$ac_cv_c_inline" >&6; }
5858
5859 case $ac_cv_c_inline in
5860 inline | yes) ;;
5861 *)
5862 case $ac_cv_c_inline in
5863 no) ac_val=;;
5864 *) ac_val=$ac_cv_c_inline;;
5865 esac
5866 cat >>confdefs.h <<_ACEOF
5867 #ifndef __cplusplus
5868 #define inline $ac_val
5869 #endif
5870 _ACEOF
5871 ;;
5872 esac
5873
5874
5875 # Check whether --enable-largefile was given.
5876 if test "${enable_largefile+set}" = set; then :
5877 enableval=$enable_largefile;
5878 fi
5879
5880 if test "$enable_largefile" != no; then
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5883 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5884 if ${ac_cv_sys_largefile_CC+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 ac_cv_sys_largefile_CC=no
5888 if test "$GCC" != yes; then
5889 ac_save_CC=$CC
5890 while :; do
5891 # IRIX 6.2 and later do not support large files by default,
5892 # so use the C compiler's -n32 option if that helps.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 /* Check that off_t can represent 2**63 - 1 correctly.
5897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5898 since some C++ compilers masquerading as C compilers
5899 incorrectly reject 9223372036854775807. */
5900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5902 && LARGE_OFF_T % 2147483647 == 1)
5903 ? 1 : -1];
5904 int
5905 main ()
5906 {
5907
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_cxx_try_compile "$LINENO"; then :
5913 break
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext
5916 CC="$CC -n32"
5917 if ac_fn_cxx_try_compile "$LINENO"; then :
5918 ac_cv_sys_largefile_CC=' -n32'; break
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext
5921 break
5922 done
5923 CC=$ac_save_CC
5924 rm -f conftest.$ac_ext
5925 fi
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5928 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5929 if test "$ac_cv_sys_largefile_CC" != no; then
5930 CC=$CC$ac_cv_sys_largefile_CC
5931 fi
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5934 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5935 if ${ac_cv_sys_file_offset_bits+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 while :; do
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5942 /* Check that off_t can represent 2**63 - 1 correctly.
5943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5944 since some C++ compilers masquerading as C compilers
5945 incorrectly reject 9223372036854775807. */
5946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5948 && LARGE_OFF_T % 2147483647 == 1)
5949 ? 1 : -1];
5950 int
5951 main ()
5952 {
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_cxx_try_compile "$LINENO"; then :
5959 ac_cv_sys_file_offset_bits=no; break
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #define _FILE_OFFSET_BITS 64
5965 #include <sys/types.h>
5966 /* Check that off_t can represent 2**63 - 1 correctly.
5967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5968 since some C++ compilers masquerading as C compilers
5969 incorrectly reject 9223372036854775807. */
5970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5972 && LARGE_OFF_T % 2147483647 == 1)
5973 ? 1 : -1];
5974 int
5975 main ()
5976 {
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_cxx_try_compile "$LINENO"; then :
5983 ac_cv_sys_file_offset_bits=64; break
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 ac_cv_sys_file_offset_bits=unknown
5987 break
5988 done
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5991 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5992 case $ac_cv_sys_file_offset_bits in #(
5993 no | unknown) ;;
5994 *)
5995 cat >>confdefs.h <<_ACEOF
5996 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5997 _ACEOF
5998 ;;
5999 esac
6000 rm -rf conftest*
6001 if test $ac_cv_sys_file_offset_bits = unknown; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6003 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6004 if ${ac_cv_sys_large_files+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 while :; do
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 /* Check that off_t can represent 2**63 - 1 correctly.
6012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6013 since some C++ compilers masquerading as C compilers
6014 incorrectly reject 9223372036854775807. */
6015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6017 && LARGE_OFF_T % 2147483647 == 1)
6018 ? 1 : -1];
6019 int
6020 main ()
6021 {
6022
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_cxx_try_compile "$LINENO"; then :
6028 ac_cv_sys_large_files=no; break
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #define _LARGE_FILES 1
6034 #include <sys/types.h>
6035 /* Check that off_t can represent 2**63 - 1 correctly.
6036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6037 since some C++ compilers masquerading as C compilers
6038 incorrectly reject 9223372036854775807. */
6039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6041 && LARGE_OFF_T % 2147483647 == 1)
6042 ? 1 : -1];
6043 int
6044 main ()
6045 {
6046
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 if ac_fn_cxx_try_compile "$LINENO"; then :
6052 ac_cv_sys_large_files=1; break
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_cv_sys_large_files=unknown
6056 break
6057 done
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6060 $as_echo "$ac_cv_sys_large_files" >&6; }
6061 case $ac_cv_sys_large_files in #(
6062 no | unknown) ;;
6063 *)
6064 cat >>confdefs.h <<_ACEOF
6065 #define _LARGE_FILES $ac_cv_sys_large_files
6066 _ACEOF
6067 ;;
6068 esac
6069 rm -rf conftest*
6070 fi
6071
6072
6073 fi
6074
6075
6076 # sizeof(char) is 1 by definition.
6077 # The cast to long int works around a bug in the HP C Compiler
6078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6080 # This bug is HP SR number 8606223364.
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6082 $as_echo_n "checking size of void *... " >&6; }
6083 if ${ac_cv_sizeof_void_p+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6087
6088 else
6089 if test "$ac_cv_type_void_p" = yes; then
6090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6092 as_fn_error 77 "cannot compute sizeof (void *)
6093 See \`config.log' for more details" "$LINENO" 5; }
6094 else
6095 ac_cv_sizeof_void_p=0
6096 fi
6097 fi
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6101 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6102
6103
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6107 _ACEOF
6108
6109
6110 # The cast to long int works around a bug in the HP C Compiler
6111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6113 # This bug is HP SR number 8606223364.
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6115 $as_echo_n "checking size of short... " >&6; }
6116 if ${ac_cv_sizeof_short+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6120
6121 else
6122 if test "$ac_cv_type_short" = yes; then
6123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125 as_fn_error 77 "cannot compute sizeof (short)
6126 See \`config.log' for more details" "$LINENO" 5; }
6127 else
6128 ac_cv_sizeof_short=0
6129 fi
6130 fi
6131
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6134 $as_echo "$ac_cv_sizeof_short" >&6; }
6135
6136
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define SIZEOF_SHORT $ac_cv_sizeof_short
6140 _ACEOF
6141
6142
6143 # The cast to long int works around a bug in the HP C Compiler
6144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6146 # This bug is HP SR number 8606223364.
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6148 $as_echo_n "checking size of int... " >&6; }
6149 if ${ac_cv_sizeof_int+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6153
6154 else
6155 if test "$ac_cv_type_int" = yes; then
6156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6158 as_fn_error 77 "cannot compute sizeof (int)
6159 See \`config.log' for more details" "$LINENO" 5; }
6160 else
6161 ac_cv_sizeof_int=0
6162 fi
6163 fi
6164
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6167 $as_echo "$ac_cv_sizeof_int" >&6; }
6168
6169
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define SIZEOF_INT $ac_cv_sizeof_int
6173 _ACEOF
6174
6175
6176 # The cast to long int works around a bug in the HP C Compiler
6177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6179 # This bug is HP SR number 8606223364.
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6181 $as_echo_n "checking size of long... " >&6; }
6182 if ${ac_cv_sizeof_long+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6186
6187 else
6188 if test "$ac_cv_type_long" = yes; then
6189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6191 as_fn_error 77 "cannot compute sizeof (long)
6192 See \`config.log' for more details" "$LINENO" 5; }
6193 else
6194 ac_cv_sizeof_long=0
6195 fi
6196 fi
6197
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6200 $as_echo "$ac_cv_sizeof_long" >&6; }
6201
6202
6203
6204 cat >>confdefs.h <<_ACEOF
6205 #define SIZEOF_LONG $ac_cv_sizeof_long
6206 _ACEOF
6207
6208
6209 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6210 if test "x$ac_cv_type_long_long" = xyes; then :
6211
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_LONG_LONG 1
6214 _ACEOF
6215
6216 # The cast to long int works around a bug in the HP C Compiler
6217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6219 # This bug is HP SR number 8606223364.
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6221 $as_echo_n "checking size of long long... " >&6; }
6222 if ${ac_cv_sizeof_long_long+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6226
6227 else
6228 if test "$ac_cv_type_long_long" = yes; then
6229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6231 as_fn_error 77 "cannot compute sizeof (long long)
6232 See \`config.log' for more details" "$LINENO" 5; }
6233 else
6234 ac_cv_sizeof_long_long=0
6235 fi
6236 fi
6237
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6240 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6241
6242
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6246 _ACEOF
6247
6248
6249 fi
6250
6251 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6252 case $ac_cv_c_int8_t in #(
6253 no|yes) ;; #(
6254 *)
6255
6256 cat >>confdefs.h <<_ACEOF
6257 #define int8_t $ac_cv_c_int8_t
6258 _ACEOF
6259 ;;
6260 esac
6261
6262 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6263 case $ac_cv_c_int16_t in #(
6264 no|yes) ;; #(
6265 *)
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define int16_t $ac_cv_c_int16_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6274 case $ac_cv_c_int32_t in #(
6275 no|yes) ;; #(
6276 *)
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define int32_t $ac_cv_c_int32_t
6280 _ACEOF
6281 ;;
6282 esac
6283
6284 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6285 case $ac_cv_c_int64_t in #(
6286 no|yes) ;; #(
6287 *)
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define int64_t $ac_cv_c_int64_t
6291 _ACEOF
6292 ;;
6293 esac
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6297 $as_echo_n "checking for unsigned long long int... " >&6; }
6298 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 ac_cv_type_unsigned_long_long_int=yes
6302 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305
6306 /* For now, do not test the preprocessor; as of 2007 there are too many
6307 implementations with broken preprocessors. Perhaps this can
6308 be revisited in 2012. In the meantime, code should not expect
6309 #if to work with literals wider than 32 bits. */
6310 /* Test literals. */
6311 long long int ll = 9223372036854775807ll;
6312 long long int nll = -9223372036854775807LL;
6313 unsigned long long int ull = 18446744073709551615ULL;
6314 /* Test constant expressions. */
6315 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6316 ? 1 : -1)];
6317 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6318 ? 1 : -1)];
6319 int i = 63;
6320 int
6321 main ()
6322 {
6323 /* Test availability of runtime routines for shift and division. */
6324 long long int llmax = 9223372036854775807ll;
6325 unsigned long long int ullmax = 18446744073709551615ull;
6326 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6327 | (llmax / ll) | (llmax % ll)
6328 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6329 | (ullmax / ull) | (ullmax % ull));
6330 ;
6331 return 0;
6332 }
6333
6334 _ACEOF
6335 if ac_fn_cxx_try_link "$LINENO"; then :
6336
6337 else
6338 ac_cv_type_unsigned_long_long_int=no
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6342 fi
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6345 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6346 if test $ac_cv_type_unsigned_long_long_int = yes; then
6347
6348 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6349
6350 fi
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6355 $as_echo_n "checking for long long int... " >&6; }
6356 if ${ac_cv_type_long_long_int+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_cv_type_long_long_int=yes
6360 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6361 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6362 if test $ac_cv_type_long_long_int = yes; then
6363 if test "$cross_compiling" = yes; then :
6364 :
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <limits.h>
6369 #ifndef LLONG_MAX
6370 # define HALF \
6371 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6372 # define LLONG_MAX (HALF - 1 + HALF)
6373 #endif
6374 int
6375 main ()
6376 {
6377 long long int n = 1;
6378 int i;
6379 for (i = 0; ; i++)
6380 {
6381 long long int m = n << i;
6382 if (m >> i != n)
6383 return 1;
6384 if (LLONG_MAX / 2 < m)
6385 break;
6386 }
6387 return 0;
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_cxx_try_run "$LINENO"; then :
6393
6394 else
6395 ac_cv_type_long_long_int=no
6396 fi
6397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398 conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400
6401 fi
6402 fi
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6405 $as_echo "$ac_cv_type_long_long_int" >&6; }
6406 if test $ac_cv_type_long_long_int = yes; then
6407
6408 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6409
6410 fi
6411
6412
6413
6414 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_intmax_t" = xyes; then :
6416
6417 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6418
6419 else
6420 test $ac_cv_type_long_long_int = yes \
6421 && ac_type='long long int' \
6422 || ac_type='long int'
6423
6424 cat >>confdefs.h <<_ACEOF
6425 #define intmax_t $ac_type
6426 _ACEOF
6427
6428 fi
6429
6430
6431
6432 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6433 if test "x$ac_cv_type_intptr_t" = xyes; then :
6434
6435 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6436
6437 else
6438 for ac_type in 'int' 'long int' 'long long int'; do
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442 int
6443 main ()
6444 {
6445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6446 test_array [0] = 0;
6447 return test_array [0];
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_cxx_try_compile "$LINENO"; then :
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define intptr_t $ac_type
6457 _ACEOF
6458
6459 ac_type=
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 test -z "$ac_type" && break
6463 done
6464 fi
6465
6466
6467 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6468 case $ac_cv_c_uint8_t in #(
6469 no|yes) ;; #(
6470 *)
6471
6472 $as_echo "#define _UINT8_T 1" >>confdefs.h
6473
6474
6475 cat >>confdefs.h <<_ACEOF
6476 #define uint8_t $ac_cv_c_uint8_t
6477 _ACEOF
6478 ;;
6479 esac
6480
6481 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6482 case $ac_cv_c_uint16_t in #(
6483 no|yes) ;; #(
6484 *)
6485
6486
6487 cat >>confdefs.h <<_ACEOF
6488 #define uint16_t $ac_cv_c_uint16_t
6489 _ACEOF
6490 ;;
6491 esac
6492
6493 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6494 case $ac_cv_c_uint32_t in #(
6495 no|yes) ;; #(
6496 *)
6497
6498 $as_echo "#define _UINT32_T 1" >>confdefs.h
6499
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define uint32_t $ac_cv_c_uint32_t
6503 _ACEOF
6504 ;;
6505 esac
6506
6507 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6508 case $ac_cv_c_uint64_t in #(
6509 no|yes) ;; #(
6510 *)
6511
6512 $as_echo "#define _UINT64_T 1" >>confdefs.h
6513
6514
6515 cat >>confdefs.h <<_ACEOF
6516 #define uint64_t $ac_cv_c_uint64_t
6517 _ACEOF
6518 ;;
6519 esac
6520
6521
6522
6523 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6524 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6525
6526 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6527
6528 else
6529 test $ac_cv_type_unsigned_long_long_int = yes \
6530 && ac_type='unsigned long long int' \
6531 || ac_type='unsigned long int'
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define uintmax_t $ac_type
6535 _ACEOF
6536
6537 fi
6538
6539
6540
6541 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6542 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6543
6544 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6545
6546 else
6547 for ac_type in 'unsigned int' 'unsigned long int' \
6548 'unsigned long long int'; do
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 int
6553 main ()
6554 {
6555 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6556 test_array [0] = 0;
6557 return test_array [0];
6558
6559 ;
6560 return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_cxx_try_compile "$LINENO"; then :
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define uintptr_t $ac_type
6567 _ACEOF
6568
6569 ac_type=
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 test -z "$ac_type" && break
6573 done
6574 fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6590 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6591 fi
6592
6593 # check what underlying integer type int64_t uses
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6595 $as_echo_n "checking for int64_t underlying type... " >&6; }
6596 if ${ac_cv_int64_t_type+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602
6603 #ifdef HAVE_STDINT_H
6604 #include <stdint.h>
6605 #endif
6606 template <typename T> struct X { };
6607 template <>
6608 struct X<long> { typedef long t; };
6609
6610 int
6611 main ()
6612 {
6613 X<int64_t>::t x;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_cxx_try_compile "$LINENO"; then :
6619 ac_cv_int64_t_type=long
6620 else
6621 ac_cv_int64_t_type="long long"
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6626 $as_echo "$ac_cv_int64_t_type" >&6; }
6627 if test "$ac_cv_int64_t_type" = "long"; then
6628
6629 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6630
6631 else
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634
6635 #ifdef HAVE_STDINT_H
6636 #include <stdint.h>
6637 #endif
6638 template <typename T> struct X { };
6639 template <>
6640 struct X<long long> { typedef long long t; };
6641
6642 int
6643 main ()
6644 {
6645 X<int64_t>::t x;
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_cxx_try_compile "$LINENO"; then :
6651
6652 else
6653 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6659 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6660 if ${ac_cv_std_swap_in_utility+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666
6667 #include <utility>
6668
6669 int
6670 main ()
6671 {
6672 int a, b; std::swap(a,b);
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 if ac_fn_cxx_try_compile "$LINENO"; then :
6678 ac_cv_std_swap_in_utility=yes
6679 else
6680 ac_cv_std_swap_in_utility=no
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6685 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6686 if test $ac_cv_std_swap_in_utility = yes; then
6687
6688 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6689
6690 fi
6691
6692 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6693 # If the host compiler is affected by the bug, and we build with optimization
6694 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6695 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6696 # Since there is no reliable feature check for the presence of this bug,
6697 # we simply use a GCC version number check. (This should never trigger for
6698 # stages 2 or 3 of a native bootstrap.)
6699 aliasing_flags=
6700 if test "$GCC" = yes; then
6701 saved_CXXFLAGS="$CXXFLAGS"
6702
6703 # The following test compilation will succeed if and only if $CXX accepts
6704 # -fno-strict-aliasing *and* is older than GCC 4.3.
6705 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6707 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710
6711 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6712 #error compiler not affected by placement new aliasing bug
6713 #endif
6714
6715 _ACEOF
6716 if ac_fn_cxx_try_compile "$LINENO"; then :
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6718 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724
6725 CXXFLAGS="$saved_CXXFLAGS"
6726 fi
6727
6728
6729
6730
6731 # ---------------------
6732 # Warnings and checking
6733 # ---------------------
6734
6735 # Check $CC warning features (if it's GCC).
6736 # We want to use -pedantic, but we don't want warnings about
6737 # * 'long long'
6738 # * variadic macros
6739 # * overlong strings
6740 # * C++11 narrowing conversions in { }
6741 # So, we only use -pedantic if we can disable those warnings.
6742
6743 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6744 # Check whether --enable-build-format-warnings was given.
6745 if test "${enable_build_format_warnings+set}" = set; then :
6746 enableval=$enable_build_format_warnings;
6747 else
6748 enable_build_format_warnings=yes
6749 fi
6750
6751 if test $enable_build_format_warnings = no; then :
6752 wf_opt=-Wno-format
6753 else
6754 wf_opt=
6755 fi
6756 ac_ext=cpp
6757 ac_cpp='$CXXCPP $CPPFLAGS'
6758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6761
6762 loose_warn=
6763 save_CXXFLAGS="$CXXFLAGS"
6764 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6765 # Do the check with the no- prefix removed since gcc silently
6766 # accepts any -Wno-* option on purpose
6767 case $real_option in
6768 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6769 *) option=$real_option ;;
6770 esac
6771 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6774 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6775 if eval \${$as_acx_Woption+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 CXXFLAGS="$option"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 int
6783 main ()
6784 {
6785
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_cxx_try_compile "$LINENO"; then :
6791 eval "$as_acx_Woption=yes"
6792 else
6793 eval "$as_acx_Woption=no"
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 fi
6798 eval ac_res=\$$as_acx_Woption
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6802 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6803 fi
6804 done
6805 CXXFLAGS="$save_CXXFLAGS"
6806 ac_ext=cpp
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6811
6812
6813
6814 ac_ext=c
6815 ac_cpp='$CPP $CPPFLAGS'
6816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820 c_loose_warn=
6821 save_CFLAGS="$CFLAGS"
6822 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6823 # Do the check with the no- prefix removed since gcc silently
6824 # accepts any -Wno-* option on purpose
6825 case $real_option in
6826 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6827 *) option=$real_option ;;
6828 esac
6829 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6832 $as_echo_n "checking whether $CC supports $option... " >&6; }
6833 if eval \${$as_acx_Woption+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 CFLAGS="$option"
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 int
6841 main ()
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"; then :
6849 eval "$as_acx_Woption=yes"
6850 else
6851 eval "$as_acx_Woption=no"
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854
6855 fi
6856 eval ac_res=\$$as_acx_Woption
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6858 $as_echo "$ac_res" >&6; }
6859 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6860 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6861 fi
6862 done
6863 CFLAGS="$save_CFLAGS"
6864 ac_ext=cpp
6865 ac_cpp='$CXXCPP $CPPFLAGS'
6866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6869
6870
6871 ac_ext=cpp
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876
6877 strict_warn=
6878 save_CXXFLAGS="$CXXFLAGS"
6879 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6880 # Do the check with the no- prefix removed since gcc silently
6881 # accepts any -Wno-* option on purpose
6882 case $real_option in
6883 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6884 *) option=$real_option ;;
6885 esac
6886 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6889 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6890 if eval \${$as_acx_Woption+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 CXXFLAGS="$option"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896
6897 int
6898 main ()
6899 {
6900
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_cxx_try_compile "$LINENO"; then :
6906 eval "$as_acx_Woption=yes"
6907 else
6908 eval "$as_acx_Woption=no"
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911
6912 fi
6913 eval ac_res=\$$as_acx_Woption
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6915 $as_echo "$ac_res" >&6; }
6916 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6917 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6918 fi
6919 done
6920 CXXFLAGS="$save_CXXFLAGS"
6921 ac_ext=cpp
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926
6927
6928 ac_ext=c
6929 ac_cpp='$CPP $CPPFLAGS'
6930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933
6934 c_strict_warn=
6935 save_CFLAGS="$CFLAGS"
6936 for real_option in -Wold-style-definition -Wc++-compat; do
6937 # Do the check with the no- prefix removed since gcc silently
6938 # accepts any -Wno-* option on purpose
6939 case $real_option in
6940 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6941 *) option=$real_option ;;
6942 esac
6943 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6946 $as_echo_n "checking whether $CC supports $option... " >&6; }
6947 if eval \${$as_acx_Woption+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 CFLAGS="$option"
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953
6954 int
6955 main ()
6956 {
6957
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 eval "$as_acx_Woption=yes"
6964 else
6965 eval "$as_acx_Woption=no"
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968
6969 fi
6970 eval ac_res=\$$as_acx_Woption
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6972 $as_echo "$ac_res" >&6; }
6973 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6974 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6975 fi
6976 done
6977 CFLAGS="$save_CFLAGS"
6978 ac_ext=cpp
6979 ac_cpp='$CXXCPP $CPPFLAGS'
6980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6983
6984
6985 ac_ext=cpp
6986 ac_cpp='$CXXCPP $CPPFLAGS'
6987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6990
6991 # Do the check with the no- prefix removed from the warning options
6992 # since gcc silently accepts any -Wno-* option on purpose
6993 if test "$GXX" = yes; then :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6995 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6996 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 save_CXXFLAGS="$CXXFLAGS"
7000 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003
7004 int
7005 main ()
7006 {
7007
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_cxx_try_compile "$LINENO"; then :
7013 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7014 else
7015 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 CXXFLAGS="$save_CXXFLAGS"
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7021 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7022 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7023 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7024 fi
7025
7026 fi
7027 ac_ext=cpp
7028 ac_cpp='$CXXCPP $CPPFLAGS'
7029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032
7033
7034 ac_ext=cpp
7035 ac_cpp='$CXXCPP $CPPFLAGS'
7036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7039
7040 # Check whether --enable-werror-always was given.
7041 if test "${enable_werror_always+set}" = set; then :
7042 enableval=$enable_werror_always;
7043 else
7044 enable_werror_always=no
7045 fi
7046
7047 if test $enable_werror_always = yes; then :
7048 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7049 fi
7050
7051 ac_ext=cpp
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7056
7057
7058
7059 # The above macros do nothing if the compiler is not GCC. However, the
7060 # Makefile has more goo to add other flags, so these variables are used
7061 # to enable warnings only for GCC.
7062 warn_cflags=
7063 warn_cxxflags=
7064 if test "x$GCC" = "xyes"; then
7065 warn_cflags='$(GCC_WARN_CFLAGS)'
7066 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7067 fi
7068
7069
7070
7071 # Disable exceptions and RTTI if building with g++
7072 ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077
7078 noexception_flags=
7079 save_CFLAGS="$CFLAGS"
7080 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7081 # Do the check with the no- prefix removed since gcc silently
7082 # accepts any -Wno-* option on purpose
7083 case $real_option in
7084 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7085 *) option=$real_option ;;
7086 esac
7087 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7088
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7090 $as_echo_n "checking whether $CC supports $option... " >&6; }
7091 if eval \${$as_acx_Woption+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 CFLAGS="$option"
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097
7098 int
7099 main ()
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"; then :
7107 eval "$as_acx_Woption=yes"
7108 else
7109 eval "$as_acx_Woption=no"
7110 fi
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112
7113 fi
7114 eval ac_res=\$$as_acx_Woption
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7116 $as_echo "$ac_res" >&6; }
7117 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7118 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7119 fi
7120 done
7121 CFLAGS="$save_CFLAGS"
7122 ac_ext=cpp
7123 ac_cpp='$CXXCPP $CPPFLAGS'
7124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7127
7128
7129
7130 # Enable expensive internal checks
7131 is_release=
7132 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7133 is_release=yes
7134 fi
7135
7136 # Check whether --enable-checking was given.
7137 if test "${enable_checking+set}" = set; then :
7138 enableval=$enable_checking; ac_checking_flags="${enableval}"
7139 else
7140
7141 # Determine the default checks.
7142 if test x$is_release = x ; then
7143 ac_checking_flags=yes,extra
7144 else
7145 ac_checking_flags=release
7146 fi
7147 fi
7148
7149 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7150 for check in release $ac_checking_flags
7151 do
7152 case $check in
7153 # these set all the flags to specific states
7154 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7155 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7156 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7157 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7158 ac_tree_checking=1 ; ac_valgrind_checking= ;
7159 ac_types_checking=1 ;;
7160 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7161 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7162 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7163 ac_rtlflag_checking= ; ac_runtime_checking= ;
7164 ac_tree_checking= ; ac_valgrind_checking= ;
7165 ac_types_checking= ;;
7166 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7167 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7168 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7169 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7170 ac_tree_checking=1 ; ac_valgrind_checking= ;
7171 ac_types_checking=1 ;;
7172 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7173 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7174 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7175 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7176 ac_tree_checking= ; ac_valgrind_checking= ;
7177 ac_types_checking= ;;
7178 # these enable particular checks
7179 assert) ac_assert_checking=1 ;;
7180 df) ac_df_checking=1 ;;
7181 extra) ac_extra_checking=1 ;;
7182 fold) ac_fold_checking=1 ;;
7183 gc) ac_gc_checking=1 ;;
7184 gcac) ac_gc_always_collect=1 ;;
7185 gimple) ac_gimple_checking=1 ;;
7186 misc) ac_checking=1 ;;
7187 rtl) ac_rtl_checking=1 ;;
7188 rtlflag) ac_rtlflag_checking=1 ;;
7189 runtime) ac_runtime_checking=1 ;;
7190 tree) ac_tree_checking=1 ;;
7191 types) ac_types_checking=1 ;;
7192 valgrind) ac_valgrind_checking=1 ;;
7193 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7194 esac
7195 done
7196 IFS="$ac_save_IFS"
7197
7198 nocommon_flag=""
7199 if test x$ac_checking != x ; then
7200
7201 $as_echo "#define CHECKING_P 1" >>confdefs.h
7202
7203 nocommon_flag=-fno-common
7204 else
7205 $as_echo "#define CHECKING_P 0" >>confdefs.h
7206
7207 fi
7208
7209 if test x$ac_extra_checking != x ; then
7210
7211 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7212
7213 else
7214 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7215
7216 fi
7217 if test x$ac_df_checking != x ; then
7218
7219 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7220
7221 fi
7222 if test x$ac_assert_checking != x ; then
7223
7224 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7225
7226 fi
7227 if test x$ac_gimple_checking != x ; then
7228
7229 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7230
7231 fi
7232
7233 if test x$ac_runtime_checking != x ; then
7234
7235 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_tree_checking != x ; then
7239
7240 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7241
7242 TREECHECKING=yes
7243 fi
7244 if test x$ac_types_checking != x ; then
7245
7246 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7247
7248 fi
7249
7250 if test x$ac_rtl_checking != x ; then
7251
7252 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7253
7254 fi
7255 if test x$ac_rtlflag_checking != x ; then
7256
7257 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7258
7259 fi
7260 if test x$ac_gc_checking != x ; then
7261
7262 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7263
7264 fi
7265 if test x$ac_gc_always_collect != x ; then
7266
7267 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7268
7269 fi
7270 if test x$ac_fold_checking != x ; then
7271
7272 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7273
7274 fi
7275 valgrind_path_defines=
7276 valgrind_command=
7277
7278 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7279 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7280 have_valgrind_h=yes
7281 else
7282 have_valgrind_h=no
7283 fi
7284
7285
7286
7287 # It is certainly possible that there's valgrind but no valgrind.h.
7288 # GCC relies on making annotations so we must have both.
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7290 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 #include <valgrind/memcheck.h>
7294 #ifndef VALGRIND_DISCARD
7295 #error VALGRIND_DISCARD not defined
7296 #endif
7297 _ACEOF
7298 if ac_fn_cxx_try_cpp "$LINENO"; then :
7299 gcc_cv_header_valgrind_memcheck_h=yes
7300 else
7301 gcc_cv_header_valgrind_memcheck_h=no
7302 fi
7303 rm -f conftest.err conftest.i conftest.$ac_ext
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7305 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7307 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 #include <memcheck.h>
7311 #ifndef VALGRIND_DISCARD
7312 #error VALGRIND_DISCARD not defined
7313 #endif
7314 _ACEOF
7315 if ac_fn_cxx_try_cpp "$LINENO"; then :
7316 gcc_cv_header_memcheck_h=yes
7317 else
7318 gcc_cv_header_memcheck_h=no
7319 fi
7320 rm -f conftest.err conftest.i conftest.$ac_ext
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7322 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7323 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7324
7325 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7326
7327 fi
7328 if test $gcc_cv_header_memcheck_h = yes; then
7329
7330 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7331
7332 fi
7333
7334 if test x$ac_valgrind_checking != x ; then
7335
7336 # Prepare PATH_SEPARATOR.
7337 # The user is always right.
7338 if test "${PATH_SEPARATOR+set}" != set; then
7339 echo "#! /bin/sh" >conf$$.sh
7340 echo "exit 0" >>conf$$.sh
7341 chmod +x conf$$.sh
7342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7343 PATH_SEPARATOR=';'
7344 else
7345 PATH_SEPARATOR=:
7346 fi
7347 rm -f conf$$.sh
7348 fi
7349
7350 # Find out how to test for executable files. Don't use a zero-byte file,
7351 # as systems may use methods other than mode bits to determine executability.
7352 cat >conf$$.file <<_ASEOF
7353 #! /bin/sh
7354 exit 0
7355 _ASEOF
7356 chmod +x conf$$.file
7357 if test -x conf$$.file >/dev/null 2>&1; then
7358 ac_executable_p="test -x"
7359 else
7360 ac_executable_p="test -f"
7361 fi
7362 rm -f conf$$.file
7363
7364 # Extract the first word of "valgrind", so it can be a program name with args.
7365 set dummy valgrind; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_path_valgrind_path+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 case "$valgrind_path" in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7377 for ac_dir in $PATH; do
7378 IFS="$ac_save_IFS"
7379 test -z "$ac_dir" && ac_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7382 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7383 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7384 break 2
7385 fi
7386 fi
7387 done
7388 done
7389 IFS="$ac_save_IFS"
7390 ;;
7391 esac
7392 fi
7393 valgrind_path="$ac_cv_path_valgrind_path"
7394 if test -n "$valgrind_path"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7396 $as_echo "$valgrind_path" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402 if test "x$valgrind_path" = "x" \
7403 || (test $have_valgrind_h = no \
7404 && test $gcc_cv_header_memcheck_h = no \
7405 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7406 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7407 fi
7408 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7409 valgrind_command="$valgrind_path -q"
7410
7411 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7412
7413 fi
7414
7415
7416
7417 # Enable code coverage collection
7418 # Check whether --enable-coverage was given.
7419 if test "${enable_coverage+set}" = set; then :
7420 enableval=$enable_coverage; case "${enableval}" in
7421 yes|noopt)
7422 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7423 ;;
7424 opt)
7425 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7426 ;;
7427 no)
7428 # a.k.a. --disable-coverage
7429 coverage_flags=""
7430 ;;
7431 *)
7432 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7433 ;;
7434 esac
7435 else
7436 coverage_flags=""
7437 fi
7438
7439
7440
7441 # Check whether --enable-gather-detailed-mem-stats was given.
7442 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7443 enableval=$enable_gather_detailed_mem_stats;
7444 else
7445 enable_gather_detailed_mem_stats=no
7446 fi
7447
7448 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7449
7450 cat >>confdefs.h <<_ACEOF
7451 #define GATHER_STATISTICS $gather_stats
7452 _ACEOF
7453
7454
7455 # Check whether --enable-valgrind-annotations was given.
7456 if test "${enable_valgrind_annotations+set}" = set; then :
7457 enableval=$enable_valgrind_annotations;
7458 else
7459 enable_valgrind_annotations=no
7460 fi
7461
7462 if test x$enable_valgrind_annotations != xno \
7463 || test x$ac_valgrind_checking != x; then
7464 if (test $have_valgrind_h = no \
7465 && test $gcc_cv_header_memcheck_h = no \
7466 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7467 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7468 fi
7469
7470 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7471
7472 fi
7473
7474 # -------------------------------
7475 # Miscenalleous configure options
7476 # -------------------------------
7477
7478 # With stabs
7479
7480 # Check whether --with-stabs was given.
7481 if test "${with_stabs+set}" = set; then :
7482 withval=$with_stabs; stabs="$with_stabs"
7483 else
7484 stabs=no
7485 fi
7486
7487
7488 # Determine whether or not multilibs are enabled.
7489 # Check whether --enable-multilib was given.
7490 if test "${enable_multilib+set}" = set; then :
7491 enableval=$enable_multilib;
7492 else
7493 enable_multilib=yes
7494 fi
7495
7496
7497
7498 # Determine whether or not multiarch is enabled.
7499 # Check whether --enable-multiarch was given.
7500 if test "${enable_multiarch+set}" = set; then :
7501 enableval=$enable_multiarch; case "${enableval}" in
7502 yes|no|auto) enable_multiarch=$enableval;;
7503 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7504 esac
7505 else
7506 enable_multiarch=auto
7507 fi
7508
7509 if test x${enable_multiarch} = xauto; then
7510 if test x${with_native_system_header_dir} != x; then
7511 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7512 enable_multiarch=no
7513 fi
7514 if test x$host != x$target && test "x$with_sysroot" = x; then
7515 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7516 enable_multiarch=no
7517 fi
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7520 $as_echo_n "checking for multiarch configuration... " >&6; }
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7523 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7524
7525 # needed for setting the multiarch name for soft-float/hard-float ABIs
7526
7527
7528
7529 # default stack clash protection guard size as power of twos in bytes.
7530 # Please keep these in sync with params.def.
7531 stk_clash_min=12
7532 stk_clash_max=30
7533
7534 # Keep the default value when the option is not used to 0, this allows us to
7535 # distinguish between the cases where the user specifially set a value via
7536 # configure and when the normal default value is used.
7537
7538 # Check whether --with-stack-clash-protection-guard-size was given.
7539 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7540 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7541 else
7542 DEFAULT_STK_CLASH_GUARD_SIZE=0
7543 fi
7544
7545 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7546 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7547 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7548 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
7549 fi
7550
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7554 _ACEOF
7555
7556
7557 # Enable __cxa_atexit for C++.
7558 # Check whether --enable-__cxa_atexit was given.
7559 if test "${enable___cxa_atexit+set}" = set; then :
7560 enableval=$enable___cxa_atexit;
7561 fi
7562
7563
7564 # Enable C extension for decimal float if target supports it.
7565
7566 # Check whether --enable-decimal-float was given.
7567 if test "${enable_decimal_float+set}" = set; then :
7568 enableval=$enable_decimal_float;
7569 case $enable_decimal_float in
7570 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7571 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7572 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7573 esac
7574
7575 else
7576
7577 case $target in
7578 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7579 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7580 i?86*-*-mingw* | x86_64*-*-mingw* | \
7581 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7582 enable_decimal_float=yes
7583 ;;
7584 *)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7586 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7587 enable_decimal_float=no
7588 ;;
7589 esac
7590
7591 fi
7592
7593
7594 # x86's use BID format instead of DPD
7595 case x$enable_decimal_float in
7596 xyes)
7597 case $target in
7598 i?86*-*-* | x86_64*-*-*)
7599 enable_decimal_float=bid
7600 ;;
7601 *)
7602 enable_decimal_float=dpd
7603 ;;
7604 esac
7605 default_decimal_float=$enable_decimal_float
7606 ;;
7607 xno)
7608 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7609 # dependency on libdecnumber.
7610 default_decimal_float=dpd
7611 ;;
7612 esac
7613
7614
7615
7616
7617 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define ENABLE_DECIMAL_FLOAT $dfp
7621 _ACEOF
7622
7623
7624 # Use default_decimal_float for dependency.
7625 enable_decimal_float=$default_decimal_float
7626
7627 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define ENABLE_DECIMAL_BID_FORMAT $bid
7631 _ACEOF
7632
7633
7634 # Enable C extension for fixed-point arithmetic.
7635 # Check whether --enable-fixed-point was given.
7636 if test "${enable_fixed_point+set}" = set; then :
7637 enableval=$enable_fixed_point;
7638 else
7639
7640 case $target in
7641 arm*)
7642 enable_fixed_point=yes
7643 ;;
7644
7645 mips*-*-*)
7646 enable_fixed_point=yes
7647 ;;
7648 *)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7650 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7651 enable_fixed_point=no
7652 ;;
7653 esac
7654
7655 fi
7656
7657
7658
7659 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define ENABLE_FIXED_POINT $fixedpoint
7663 _ACEOF
7664
7665
7666 # Enable threads
7667 # Pass with no value to take the default
7668 # Pass with a value to specify a thread package
7669 # Check whether --enable-threads was given.
7670 if test "${enable_threads+set}" = set; then :
7671 enableval=$enable_threads;
7672 else
7673 enable_threads=''
7674 fi
7675
7676
7677 # Check whether --enable-tls was given.
7678 if test "${enable_tls+set}" = set; then :
7679 enableval=$enable_tls;
7680 case $enable_tls in
7681 yes | no) ;;
7682 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7683 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7684 esac
7685
7686 else
7687 enable_tls=''
7688 fi
7689
7690
7691 # Check whether --enable-vtable-verify was given.
7692 if test "${enable_vtable_verify+set}" = set; then :
7693 enableval=$enable_vtable_verify;
7694 else
7695 enable_vtable_verify=no
7696 fi
7697
7698 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7699
7700 cat >>confdefs.h <<_ACEOF
7701 #define ENABLE_VTABLE_VERIFY $vtable_verify
7702 _ACEOF
7703
7704
7705 # Check whether --enable-objc-gc was given.
7706 if test "${enable_objc_gc+set}" = set; then :
7707 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7708 objc_boehm_gc=''
7709 else
7710 objc_boehm_gc=1
7711 fi
7712 else
7713 objc_boehm_gc=''
7714 fi
7715
7716
7717
7718 # Check whether --with-dwarf2 was given.
7719 if test "${with_dwarf2+set}" = set; then :
7720 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7721 else
7722 dwarf2=no
7723 fi
7724
7725
7726 # Check whether --enable-shared was given.
7727 if test "${enable_shared+set}" = set; then :
7728 enableval=$enable_shared;
7729 case $enable_shared in
7730 yes | no) ;;
7731 *)
7732 enable_shared=no
7733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7734 for pkg in $enableval; do
7735 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7736 enable_shared=yes
7737 fi
7738 done
7739 IFS="$ac_save_ifs"
7740 ;;
7741 esac
7742
7743 else
7744 enable_shared=yes
7745 fi
7746
7747
7748
7749 # Check whether --enable-gcov was given.
7750 if test "${enable_gcov+set}" = set; then :
7751 enableval=$enable_gcov;
7752 else
7753 enable_gcov=yes
7754 fi
7755
7756
7757
7758
7759 # Check whether --with-specs was given.
7760 if test "${with_specs+set}" = set; then :
7761 withval=$with_specs; CONFIGURE_SPECS=$withval
7762 else
7763 CONFIGURE_SPECS=
7764
7765 fi
7766
7767
7768
7769
7770
7771 # Check whether --with-pkgversion was given.
7772 if test "${with_pkgversion+set}" = set; then :
7773 withval=$with_pkgversion; case "$withval" in
7774 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7775 no) PKGVERSION= ;;
7776 *) PKGVERSION="($withval) " ;;
7777 esac
7778 else
7779 PKGVERSION="(GCC) "
7780
7781 fi
7782
7783
7784
7785
7786
7787 # Check whether --with-bugurl was given.
7788 if test "${with_bugurl+set}" = set; then :
7789 withval=$with_bugurl; case "$withval" in
7790 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7791 no) BUGURL=
7792 ;;
7793 *) BUGURL="$withval"
7794 ;;
7795 esac
7796 else
7797 BUGURL="https://gcc.gnu.org/bugs/"
7798
7799 fi
7800
7801 case ${BUGURL} in
7802 "")
7803 REPORT_BUGS_TO=
7804 REPORT_BUGS_TEXI=
7805 ;;
7806 *)
7807 REPORT_BUGS_TO="<$BUGURL>"
7808 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7809 ;;
7810 esac;
7811
7812
7813
7814
7815 # Allow overriding the default URL for documentation
7816
7817 # Check whether --with-documentation-root-url was given.
7818 if test "${with_documentation_root_url+set}" = set; then :
7819 withval=$with_documentation_root_url; case "$withval" in
7820 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7821 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7822 *) DOCUMENTATION_ROOT_URL="$withval"
7823 ;;
7824 esac
7825 else
7826 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7827
7828 fi
7829
7830
7831
7832 # Sanity check enable_languages in case someone does not run the toplevel
7833 # configure # script.
7834 # Check whether --enable-languages was given.
7835 if test "${enable_languages+set}" = set; then :
7836 enableval=$enable_languages; case ,${enable_languages}, in
7837 ,,|,yes,)
7838 # go safe -- we cannot be much sure without the toplevel
7839 # configure's
7840 # analysis of which target libs are present and usable
7841 enable_languages=c
7842 ;;
7843 *,all,*)
7844 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7845 ;;
7846 *,c,*)
7847 ;;
7848 *)
7849 enable_languages=c,${enable_languages}
7850 ;;
7851 esac
7852 else
7853 enable_languages=c
7854 fi
7855
7856
7857 # If top-level libada has been disabled, then wire in install-gnatlib
7858 # invocation with `make install', so that one can build and install
7859 # the library manually with `make -C gcc all gnatlib gnattools install'.
7860 if test x"$enable_libada" = xno; then
7861 gnat_install_lib=gnat-install-lib
7862 else
7863 gnat_install_lib=
7864 fi
7865
7866
7867 if test x"$enable_as_accelerator_for" != x; then
7868
7869 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7870
7871 enable_as_accelerator=yes
7872 case "${target}" in
7873 *-intelmicemul-*)
7874 # In this case we expect offload compiler to be built as native, so we
7875 # need to rename the driver to avoid clashes with host's drivers.
7876 program_transform_name="s&^&${target}-&" ;;
7877 esac
7878 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7879 program_transform_name=`echo $program_transform_name | sed $sedscript`
7880 accel_dir_suffix=/accel/${target_noncanonical}
7881 real_target_noncanonical=${enable_as_accelerator_for}
7882 fi
7883
7884
7885
7886
7887 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7888 tgt=`echo $tgt | sed 's/=.*//'`
7889
7890 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7891 enable_hsa=1
7892 else
7893 enable_offloading=1
7894 case "$tgt" in
7895 *-intelmicemul-*)
7896 omp_device_property=omp-device-properties-i386
7897 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7898 ;;
7899 gcn*-*)
7900 omp_device_property=omp-device-properties-gcn
7901 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7902 ;;
7903 nvptx*-*)
7904 omp_device_property=omp-device-properties-nvptx
7905 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7906 ;;
7907 esac
7908 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7909 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7910 fi
7911
7912 if test x"$offload_targets" = x; then
7913 offload_targets=$tgt
7914 else
7915 offload_targets="$offload_targets,$tgt"
7916 fi
7917 done
7918
7919
7920
7921
7922 cat >>confdefs.h <<_ACEOF
7923 #define OFFLOAD_TARGETS "$offload_targets"
7924 _ACEOF
7925
7926 if test x"$enable_offloading" != x; then
7927
7928 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7929
7930 else
7931
7932 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7933
7934 fi
7935
7936 if test x"$enable_hsa" = x1 ; then
7937
7938 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7939
7940 fi
7941
7942
7943 # Check whether --with-multilib-list was given.
7944 if test "${with_multilib_list+set}" = set; then :
7945 withval=$with_multilib_list; :
7946 else
7947 with_multilib_list=default
7948 fi
7949
7950
7951 # -------------------------
7952 # Checks for other programs
7953 # -------------------------
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7957 set x ${MAKE-make}
7958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 cat >conftest.make <<\_ACEOF
7963 SHELL = /bin/sh
7964 all:
7965 @echo '@@@%%%=$(MAKE)=@@@%%%'
7966 _ACEOF
7967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7969 *@@@%%%=?*=@@@%%%*)
7970 eval ac_cv_prog_make_${ac_make}_set=yes;;
7971 *)
7972 eval ac_cv_prog_make_${ac_make}_set=no;;
7973 esac
7974 rm -f conftest.make
7975 fi
7976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7979 SET_MAKE=
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 SET_MAKE="MAKE=${MAKE-make}"
7984 fi
7985
7986
7987 # Find some useful tools
7988 for ac_prog in gawk mawk nawk awk
7989 do
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_prog_AWK+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$AWK"; then
7998 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_AWK="$ac_prog"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi
8016 fi
8017 AWK=$ac_cv_prog_AWK
8018 if test -n "$AWK"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8020 $as_echo "$AWK" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026
8027 test -n "$AWK" && break
8028 done
8029
8030 # We need awk to create options.c and options.h.
8031 # Bail out if it's missing.
8032 case ${AWK} in
8033 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8034 esac
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8037 $as_echo_n "checking whether ln -s works... " >&6; }
8038 if ${gcc_cv_prog_LN_S+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 rm -f conftestdata_t
8042 echo >conftestdata_f
8043 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8044 then
8045 gcc_cv_prog_LN_S="ln -s"
8046 else
8047 if ln conftestdata_f conftestdata_t 2>/dev/null
8048 then
8049 gcc_cv_prog_LN_S=ln
8050 else
8051 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8052 then
8053 gcc_cv_prog_LN_S="cp -p"
8054 else
8055 gcc_cv_prog_LN_S=cp
8056 fi
8057 fi
8058 fi
8059 rm -f conftestdata_f conftestdata_t
8060
8061 fi
8062 LN_S="$gcc_cv_prog_LN_S"
8063 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065 $as_echo "yes" >&6; }
8066 else
8067 if test "$gcc_cv_prog_LN_S" = "ln"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8069 $as_echo "no, using ln" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8072 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8073 fi
8074 fi
8075
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8077 $as_echo_n "checking whether ln works... " >&6; }
8078 if ${acx_cv_prog_LN+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 rm -f conftestdata_t
8082 echo >conftestdata_f
8083 if ln conftestdata_f conftestdata_t 2>/dev/null
8084 then
8085 acx_cv_prog_LN=ln
8086 else
8087 acx_cv_prog_LN=no
8088 fi
8089 rm -f conftestdata_f conftestdata_t
8090
8091 fi
8092 if test $acx_cv_prog_LN = no; then
8093 LN="$LN_S"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8095 $as_echo "no, using $LN" >&6; }
8096 else
8097 LN="$acx_cv_prog_LN"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099 $as_echo "yes" >&6; }
8100 fi
8101
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8104 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_RANLIB+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$RANLIB"; then
8111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8123 fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128 fi
8129 fi
8130 RANLIB=$ac_cv_prog_RANLIB
8131 if test -n "$RANLIB"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8133 $as_echo "$RANLIB" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 fi
8138
8139
8140 fi
8141 if test -z "$ac_cv_prog_RANLIB"; then
8142 ac_ct_RANLIB=$RANLIB
8143 # Extract the first word of "ranlib", so it can be a program name with args.
8144 set dummy ranlib; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 if test -n "$ac_ct_RANLIB"; then
8151 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_ac_ct_RANLIB="ranlib"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 break 2
8163 fi
8164 done
8165 done
8166 IFS=$as_save_IFS
8167
8168 fi
8169 fi
8170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8171 if test -n "$ac_ct_RANLIB"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8173 $as_echo "$ac_ct_RANLIB" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179 if test "x$ac_ct_RANLIB" = x; then
8180 RANLIB=":"
8181 else
8182 case $cross_compiling:$ac_tool_warned in
8183 yes:)
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8186 ac_tool_warned=yes ;;
8187 esac
8188 RANLIB=$ac_ct_RANLIB
8189 fi
8190 else
8191 RANLIB="$ac_cv_prog_RANLIB"
8192 fi
8193
8194 ranlib_flags=""
8195
8196
8197 # Find a good install program. We prefer a C program (faster),
8198 # so one script is as good as another. But avoid the broken or
8199 # incompatible versions:
8200 # SysV /etc/install, /usr/sbin/install
8201 # SunOS /usr/etc/install
8202 # IRIX /sbin/install
8203 # AIX /bin/install
8204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8206 # ./install, which can be erroneously created by make from ./install.sh.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8208 $as_echo_n "checking for a BSD compatible install... " >&6; }
8209 if test -z "$INSTALL"; then
8210 if ${ac_cv_path_install+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8214 for ac_dir in $PATH; do
8215 # Account for people who put trailing slashes in PATH elements.
8216 case "$ac_dir/" in
8217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8218 *)
8219 # OSF1 and SCO ODT 3.0 have their own names for install.
8220 for ac_prog in ginstall scoinst install; do
8221 if test -f $ac_dir/$ac_prog; then
8222 if test $ac_prog = install &&
8223 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8224 # AIX install. It has an incompatible calling convention.
8225 # OSF/1 installbsd also uses dspmsg, but is usable.
8226 :
8227 else
8228 ac_cv_path_install="$ac_dir/$ac_prog -c"
8229 break 2
8230 fi
8231 fi
8232 done
8233 ;;
8234 esac
8235 done
8236 IFS="$ac_save_IFS"
8237
8238 fi
8239 if test "${ac_cv_path_install+set}" = set; then
8240 INSTALL="$ac_cv_path_install"
8241 else
8242 # As a last resort, use the slow shell script. We don't cache a
8243 # path for INSTALL within a source directory, because that will
8244 # break other packages using the cache if that directory is
8245 # removed, or if the path is relative.
8246 INSTALL="$ac_install_sh"
8247 fi
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8250 $as_echo "$INSTALL" >&6; }
8251
8252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8253 # It thinks the first close brace ends the variable substitution.
8254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8255
8256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8257
8258
8259 # See if cmp has --ignore-initial.
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8261 $as_echo_n "checking for cmp's capabilities... " >&6; }
8262 if ${gcc_cv_prog_cmp_skip+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 echo abfoo >t1
8266 echo cdfoo >t2
8267 gcc_cv_prog_cmp_skip=slowcompare
8268 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8269 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8270 :
8271 else
8272 gcc_cv_prog_cmp_skip=gnucompare
8273 fi
8274 fi
8275 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8276 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8277 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8278 :
8279 else
8280 gcc_cv_prog_cmp_skip=fastcompare
8281 fi
8282 fi
8283 fi
8284 rm t1 t2
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8288 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8289 make_compare_target=$gcc_cv_prog_cmp_skip
8290
8291
8292
8293 # See if we have the mktemp command.
8294 # Extract the first word of "mktemp", so it can be a program name with args.
8295 set dummy mktemp; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$have_mktemp_command"; then
8302 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_have_mktemp_command="yes"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8320 fi
8321 fi
8322 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8323 if test -n "$have_mktemp_command"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8325 $as_echo "$have_mktemp_command" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332
8333 # See if makeinfo has been installed and is modern enough
8334 # that we can use it.
8335
8336 # Extract the first word of "makeinfo", so it can be a program name with args.
8337 set dummy makeinfo; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_MAKEINFO+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$MAKEINFO"; then
8344 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_MAKEINFO="makeinfo"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 MAKEINFO=$ac_cv_prog_MAKEINFO
8364 if test -n "$MAKEINFO"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8366 $as_echo "$MAKEINFO" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372
8373 if test -n "$MAKEINFO"; then
8374 # Found it, now check the version.
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8376 $as_echo_n "checking for modern makeinfo... " >&6; }
8377 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8381 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8382
8383 case $ac_prog_version in
8384 '') gcc_cv_prog_makeinfo_modern=no;;
8385 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8386 *) gcc_cv_prog_makeinfo_modern=no;;
8387 esac
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8391 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8392 else
8393 gcc_cv_prog_makeinfo_modern=no
8394 fi
8395 if test $gcc_cv_prog_makeinfo_modern = no; then
8396 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8397 fi
8398
8399 if test $gcc_cv_prog_makeinfo_modern = no; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8401 *** Makeinfo is missing or too old.
8402 *** Info documentation will not be built." >&5
8403 $as_echo "$as_me: WARNING:
8404 *** Makeinfo is missing or too old.
8405 *** Info documentation will not be built." >&2;}
8406 BUILD_INFO=
8407 else
8408 BUILD_INFO=info
8409 fi
8410
8411
8412 # Is pod2man recent enough to regenerate manpages?
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8414 $as_echo_n "checking for recent Pod::Man... " >&6; }
8415 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8417 $as_echo "yes" >&6; }
8418 GENERATED_MANPAGES=generated-manpages
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 GENERATED_MANPAGES=
8423 fi
8424
8425
8426 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8427
8428 # How about lex?
8429 for ac_prog in flex
8430 do
8431 # Extract the first word of "$ac_prog", so it can be a program name with args.
8432 set dummy $ac_prog; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_FLEX+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$FLEX"; then
8439 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_FLEX="$ac_prog"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452 done
8453 done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 FLEX=$ac_cv_prog_FLEX
8459 if test -n "$FLEX"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8461 $as_echo "$FLEX" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468 test -n "$FLEX" && break
8469 done
8470 test -n "$FLEX" || FLEX="$MISSING flex"
8471
8472
8473 # Bison?
8474 for ac_prog in bison
8475 do
8476 # Extract the first word of "$ac_prog", so it can be a program name with args.
8477 set dummy $ac_prog; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_BISON+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$BISON"; then
8484 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_BISON="$ac_prog"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 BISON=$ac_cv_prog_BISON
8504 if test -n "$BISON"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8506 $as_echo "$BISON" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512
8513 test -n "$BISON" && break
8514 done
8515 test -n "$BISON" || BISON="$MISSING bison"
8516
8517
8518 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8519 # check for build == host before using them.
8520
8521 # NM
8522 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8523 && test -d ../binutils ; then
8524 NM='${objdir}/../binutils/nm-new'
8525 else
8526 # Extract the first word of "nm", so it can be a program name with args.
8527 set dummy nm; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_NM+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$NM"; then
8534 ac_cv_prog_NM="$NM" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_NM="nm"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8552 fi
8553 fi
8554 NM=$ac_cv_prog_NM
8555 if test -n "$NM"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8557 $as_echo "$NM" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563
8564 fi
8565
8566 # AR
8567 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8568 && test -d ../binutils ; then
8569 AR='${objdir}/../binutils/ar'
8570 else
8571 # Extract the first word of "ar", so it can be a program name with args.
8572 set dummy ar; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_AR+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 if test -n "$AR"; then
8579 ac_cv_prog_AR="$AR" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_AR="ar"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8597 fi
8598 fi
8599 AR=$ac_cv_prog_AR
8600 if test -n "$AR"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8602 $as_echo "$AR" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607
8608
8609 fi
8610
8611 # The jit documentation looks better if built with sphinx, but can be
8612 # built with texinfo if sphinx is not available.
8613 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8614 # Extract the first word of "sphinx-build", so it can be a program name with args.
8615 set dummy sphinx-build; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_doc_build_sys+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 if test -n "$doc_build_sys"; then
8622 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_doc_build_sys="sphinx"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8640 fi
8641 fi
8642 doc_build_sys=$ac_cv_prog_doc_build_sys
8643 if test -n "$doc_build_sys"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8645 $as_echo "$doc_build_sys" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652
8653 # --------------------
8654 # Checks for C headers
8655 # --------------------
8656
8657 # Need to reject headers which give warnings, so that the -Werror bootstrap
8658 # works later. *sigh* This needs to come before all header checks.
8659
8660 ac_c_preproc_warn_flag=yes
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8663 $as_echo_n "checking for ANSI C header files... " >&6; }
8664 if ${ac_cv_header_stdc+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <stdlib.h>
8670 #include <stdarg.h>
8671 #include <string.h>
8672 #include <float.h>
8673
8674 int
8675 main ()
8676 {
8677
8678 ;
8679 return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_cxx_try_compile "$LINENO"; then :
8683 ac_cv_header_stdc=yes
8684 else
8685 ac_cv_header_stdc=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688
8689 if test $ac_cv_header_stdc = yes; then
8690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #include <string.h>
8694
8695 _ACEOF
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697 $EGREP "memchr" >/dev/null 2>&1; then :
8698
8699 else
8700 ac_cv_header_stdc=no
8701 fi
8702 rm -f conftest*
8703
8704 fi
8705
8706 if test $ac_cv_header_stdc = yes; then
8707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <stdlib.h>
8711
8712 _ACEOF
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "free" >/dev/null 2>&1; then :
8715
8716 else
8717 ac_cv_header_stdc=no
8718 fi
8719 rm -f conftest*
8720
8721 fi
8722
8723 if test $ac_cv_header_stdc = yes; then
8724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8725 if test "$cross_compiling" = yes; then :
8726 :
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <ctype.h>
8731 #include <stdlib.h>
8732 #if ((' ' & 0x0FF) == 0x020)
8733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8735 #else
8736 # define ISLOWER(c) \
8737 (('a' <= (c) && (c) <= 'i') \
8738 || ('j' <= (c) && (c) <= 'r') \
8739 || ('s' <= (c) && (c) <= 'z'))
8740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8741 #endif
8742
8743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8744 int
8745 main ()
8746 {
8747 int i;
8748 for (i = 0; i < 256; i++)
8749 if (XOR (islower (i), ISLOWER (i))
8750 || toupper (i) != TOUPPER (i))
8751 return 2;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_cxx_try_run "$LINENO"; then :
8756
8757 else
8758 ac_cv_header_stdc=no
8759 fi
8760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8761 conftest.$ac_objext conftest.beam conftest.$ac_ext
8762 fi
8763
8764 fi
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8767 $as_echo "$ac_cv_header_stdc" >&6; }
8768 if test $ac_cv_header_stdc = yes; then
8769
8770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8771
8772 fi
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8776 if ${ac_cv_header_time+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <sys/types.h>
8782 #include <sys/time.h>
8783 #include <time.h>
8784
8785 int
8786 main ()
8787 {
8788 if ((struct tm *) 0)
8789 return 0;
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_cxx_try_compile "$LINENO"; then :
8795 ac_cv_header_time=yes
8796 else
8797 ac_cv_header_time=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8802 $as_echo "$ac_cv_header_time" >&6; }
8803 if test $ac_cv_header_time = yes; then
8804
8805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8806
8807 fi
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8810 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8811 if ${gcc_cv_header_string+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <string.h>
8817 #include <strings.h>
8818 int
8819 main ()
8820 {
8821
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 if ac_fn_cxx_try_compile "$LINENO"; then :
8827 gcc_cv_header_string=yes
8828 else
8829 gcc_cv_header_string=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8834 $as_echo "$gcc_cv_header_string" >&6; }
8835 if test $gcc_cv_header_string = yes; then
8836
8837 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8838
8839 fi
8840
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8842 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8843 if ${ac_cv_header_sys_wait_h+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/wait.h>
8850 #ifndef WEXITSTATUS
8851 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8852 #endif
8853 #ifndef WIFEXITED
8854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8855 #endif
8856
8857 int
8858 main ()
8859 {
8860 int s;
8861 wait (&s);
8862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_cxx_try_compile "$LINENO"; then :
8868 ac_cv_header_sys_wait_h=yes
8869 else
8870 ac_cv_header_sys_wait_h=no
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8875 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8876 if test $ac_cv_header_sys_wait_h = yes; then
8877
8878 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8879
8880 fi
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8883 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8884 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <termios.h>
8891 #ifdef TIOCGWINSZ
8892 yes
8893 #endif
8894
8895 _ACEOF
8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8897 $EGREP "yes" >/dev/null 2>&1; then :
8898 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8899 else
8900 ac_cv_sys_tiocgwinsz_in_termios_h=no
8901 fi
8902 rm -f conftest*
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8906 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8907
8908 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8910 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8911 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <sys/ioctl.h>
8918 #ifdef TIOCGWINSZ
8919 yes
8920 #endif
8921
8922 _ACEOF
8923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8924 $EGREP "yes" >/dev/null 2>&1; then :
8925 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8926 else
8927 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8928 fi
8929 rm -f conftest*
8930
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8933 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8934
8935 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8936
8937 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8938
8939 fi
8940 fi
8941
8942 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8943 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8944 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8945 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8946 do :
8947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8952 _ACEOF
8953
8954 fi
8955 done
8956
8957
8958 # Check for thread headers.
8959 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8960 if test "x$ac_cv_header_thread_h" = xyes; then :
8961 have_thread_h=yes
8962 else
8963 have_thread_h=
8964 fi
8965
8966 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8967 if test "x$ac_cv_header_pthread_h" = xyes; then :
8968 have_pthread_h=yes
8969 else
8970 have_pthread_h=
8971 fi
8972
8973
8974 # These tests can't be done till we know if we have limits.h.
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8976 $as_echo_n "checking for CHAR_BIT... " >&6; }
8977 if ${gcc_cv_decl_char_bit+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #ifdef HAVE_LIMITS_H
8983 #include <limits.h>
8984 #endif
8985 #ifdef CHAR_BIT
8986 found
8987 #endif
8988 _ACEOF
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "found" >/dev/null 2>&1; then :
8991 gcc_cv_decl_char_bit=yes
8992 else
8993 gcc_cv_decl_char_bit=no
8994 fi
8995 rm -f conftest*
8996
8997
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9000 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9001 if test $gcc_cv_decl_char_bit = no; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9003 $as_echo_n "checking number of bits in a byte... " >&6; }
9004 if ${gcc_cv_c_nbby+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 i=8
9008 gcc_cv_c_nbby=
9009 while test $i -lt 65; do
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012
9013 int
9014 main ()
9015 {
9016 switch(0) {
9017 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9018 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9019 ; }
9020 ;
9021 return 0;
9022 }
9023 _ACEOF
9024 if ac_fn_cxx_try_compile "$LINENO"; then :
9025 gcc_cv_c_nbby=$i; break
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 i=`expr $i + 1`
9029 done
9030 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9031
9032 fi
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9034 $as_echo "$gcc_cv_c_nbby" >&6; }
9035 if test $gcc_cv_c_nbby = failed; then
9036 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9037 else
9038
9039 cat >>confdefs.h <<_ACEOF
9040 #define CHAR_BIT $gcc_cv_c_nbby
9041 _ACEOF
9042
9043 fi
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9046 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9047 if ${ac_cv_c_bigendian+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 ac_cv_c_bigendian=unknown
9051 # See if we're dealing with a universal compiler.
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #ifndef __APPLE_CC__
9055 not a universal capable compiler
9056 #endif
9057 typedef int dummy;
9058
9059 _ACEOF
9060 if ac_fn_cxx_try_compile "$LINENO"; then :
9061
9062 # Check for potential -arch flags. It is not universal unless
9063 # there are at least two -arch flags with different values.
9064 ac_arch=
9065 ac_prev=
9066 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9067 if test -n "$ac_prev"; then
9068 case $ac_word in
9069 i?86 | x86_64 | ppc | ppc64)
9070 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9071 ac_arch=$ac_word
9072 else
9073 ac_cv_c_bigendian=universal
9074 break
9075 fi
9076 ;;
9077 esac
9078 ac_prev=
9079 elif test "x$ac_word" = "x-arch"; then
9080 ac_prev=arch
9081 fi
9082 done
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 if test $ac_cv_c_bigendian = unknown; then
9086 # See if sys/param.h defines the BYTE_ORDER macro.
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <sys/types.h>
9090 #include <sys/param.h>
9091
9092 int
9093 main ()
9094 {
9095 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9096 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9097 && LITTLE_ENDIAN)
9098 bogus endian macros
9099 #endif
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_cxx_try_compile "$LINENO"; then :
9106 # It does; now see whether it defined to BIG_ENDIAN or not.
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/param.h>
9111
9112 int
9113 main ()
9114 {
9115 #if BYTE_ORDER != BIG_ENDIAN
9116 not big endian
9117 #endif
9118
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_cxx_try_compile "$LINENO"; then :
9124 ac_cv_c_bigendian=yes
9125 else
9126 ac_cv_c_bigendian=no
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 if test $ac_cv_c_bigendian = unknown; then
9133 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 #include <limits.h>
9137
9138 int
9139 main ()
9140 {
9141 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9142 bogus endian macros
9143 #endif
9144
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 if ac_fn_cxx_try_compile "$LINENO"; then :
9150 # It does; now see whether it defined to _BIG_ENDIAN or not.
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 #include <limits.h>
9154
9155 int
9156 main ()
9157 {
9158 #ifndef _BIG_ENDIAN
9159 not big endian
9160 #endif
9161
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_cxx_try_compile "$LINENO"; then :
9167 ac_cv_c_bigendian=yes
9168 else
9169 ac_cv_c_bigendian=no
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 fi
9175 if test $ac_cv_c_bigendian = unknown; then
9176 # Compile a test program.
9177 if test "$cross_compiling" = yes; then :
9178 # Try to guess by grepping values from an object file.
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 short int ascii_mm[] =
9182 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9183 short int ascii_ii[] =
9184 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9185 int use_ascii (int i) {
9186 return ascii_mm[i] + ascii_ii[i];
9187 }
9188 short int ebcdic_ii[] =
9189 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9190 short int ebcdic_mm[] =
9191 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9192 int use_ebcdic (int i) {
9193 return ebcdic_mm[i] + ebcdic_ii[i];
9194 }
9195 extern int foo;
9196
9197 int
9198 main ()
9199 {
9200 return use_ascii (foo) == use_ebcdic (foo);
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 if ac_fn_cxx_try_compile "$LINENO"; then :
9206 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9207 ac_cv_c_bigendian=yes
9208 fi
9209 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9210 if test "$ac_cv_c_bigendian" = unknown; then
9211 ac_cv_c_bigendian=no
9212 else
9213 # finding both strings is unlikely to happen, but who knows?
9214 ac_cv_c_bigendian=unknown
9215 fi
9216 fi
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 int
9224 main ()
9225 {
9226
9227 /* Are we little or big endian? From Harbison&Steele. */
9228 union
9229 {
9230 long int l;
9231 char c[sizeof (long int)];
9232 } u;
9233 u.l = 1;
9234 return u.c[sizeof (long int) - 1] == 1;
9235
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 if ac_fn_cxx_try_run "$LINENO"; then :
9241 ac_cv_c_bigendian=no
9242 else
9243 ac_cv_c_bigendian=yes
9244 fi
9245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9246 conftest.$ac_objext conftest.beam conftest.$ac_ext
9247 fi
9248
9249 fi
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9252 $as_echo "$ac_cv_c_bigendian" >&6; }
9253 case $ac_cv_c_bigendian in #(
9254 yes)
9255 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9256 ;; #(
9257 no)
9258 ;; #(
9259 universal)
9260
9261 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9262
9263 ;; #(
9264 *)
9265 as_fn_error $? "unknown endianness
9266 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9267 esac
9268
9269
9270 # ----------------------
9271 # Checks for C++ headers
9272 # ----------------------
9273
9274 ac_ext=cpp
9275 ac_cpp='$CXXCPP $CPPFLAGS'
9276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9280 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9281 if test -z "$CXXCPP"; then
9282 if ${ac_cv_prog_CXXCPP+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 # Double quotes because CXXCPP needs to be expanded
9286 for CXXCPP in "$CXX -E" "/lib/cpp"
9287 do
9288 ac_preproc_ok=false
9289 for ac_cxx_preproc_warn_flag in '' yes
9290 do
9291 # Use a header file that comes with gcc, so configuring glibc
9292 # with a fresh cross-compiler works.
9293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 # <limits.h> exists even on freestanding compilers.
9295 # On the NeXT, cc -E runs the code through the compiler's parser,
9296 # not just through cpp. "Syntax error" is here to catch this case.
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #ifdef __STDC__
9300 # include <limits.h>
9301 #else
9302 # include <assert.h>
9303 #endif
9304 Syntax error
9305 _ACEOF
9306 if ac_fn_cxx_try_cpp "$LINENO"; then :
9307
9308 else
9309 # Broken: fails on valid input.
9310 continue
9311 fi
9312 rm -f conftest.err conftest.i conftest.$ac_ext
9313
9314 # OK, works on sane cases. Now check whether nonexistent headers
9315 # can be detected and how.
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <ac_nonexistent.h>
9319 _ACEOF
9320 if ac_fn_cxx_try_cpp "$LINENO"; then :
9321 # Broken: success on invalid input.
9322 continue
9323 else
9324 # Passes both tests.
9325 ac_preproc_ok=:
9326 break
9327 fi
9328 rm -f conftest.err conftest.i conftest.$ac_ext
9329
9330 done
9331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9332 rm -f conftest.i conftest.err conftest.$ac_ext
9333 if $ac_preproc_ok; then :
9334 break
9335 fi
9336
9337 done
9338 ac_cv_prog_CXXCPP=$CXXCPP
9339
9340 fi
9341 CXXCPP=$ac_cv_prog_CXXCPP
9342 else
9343 ac_cv_prog_CXXCPP=$CXXCPP
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9346 $as_echo "$CXXCPP" >&6; }
9347 ac_preproc_ok=false
9348 for ac_cxx_preproc_warn_flag in '' yes
9349 do
9350 # Use a header file that comes with gcc, so configuring glibc
9351 # with a fresh cross-compiler works.
9352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 # <limits.h> exists even on freestanding compilers.
9354 # On the NeXT, cc -E runs the code through the compiler's parser,
9355 # not just through cpp. "Syntax error" is here to catch this case.
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #ifdef __STDC__
9359 # include <limits.h>
9360 #else
9361 # include <assert.h>
9362 #endif
9363 Syntax error
9364 _ACEOF
9365 if ac_fn_cxx_try_cpp "$LINENO"; then :
9366
9367 else
9368 # Broken: fails on valid input.
9369 continue
9370 fi
9371 rm -f conftest.err conftest.i conftest.$ac_ext
9372
9373 # OK, works on sane cases. Now check whether nonexistent headers
9374 # can be detected and how.
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 #include <ac_nonexistent.h>
9378 _ACEOF
9379 if ac_fn_cxx_try_cpp "$LINENO"; then :
9380 # Broken: success on invalid input.
9381 continue
9382 else
9383 # Passes both tests.
9384 ac_preproc_ok=:
9385 break
9386 fi
9387 rm -f conftest.err conftest.i conftest.$ac_ext
9388
9389 done
9390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9391 rm -f conftest.i conftest.err conftest.$ac_ext
9392 if $ac_preproc_ok; then :
9393
9394 else
9395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9398 See \`config.log' for more details" >&5
9399 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9400 See \`config.log' for more details" >&2;}; }
9401 fi
9402
9403 ac_ext=cpp
9404 ac_cpp='$CXXCPP $CPPFLAGS'
9405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9408
9409
9410 for ac_header in unordered_map
9411 do :
9412 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9413 if test "x$ac_cv_header_unordered_map" = xyes; then :
9414 cat >>confdefs.h <<_ACEOF
9415 #define HAVE_UNORDERED_MAP 1
9416 _ACEOF
9417
9418 fi
9419 done
9420
9421 for ac_header in tr1/unordered_map
9422 do :
9423 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9424 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9425 cat >>confdefs.h <<_ACEOF
9426 #define HAVE_TR1_UNORDERED_MAP 1
9427 _ACEOF
9428
9429 fi
9430 done
9431
9432 for ac_header in ext/hash_map
9433 do :
9434 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9435 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9436 cat >>confdefs.h <<_ACEOF
9437 #define HAVE_EXT_HASH_MAP 1
9438 _ACEOF
9439
9440 fi
9441 done
9442
9443
9444 # --------
9445 # Dependency checking.
9446 # --------
9447
9448 rm -rf .tst 2>/dev/null
9449 mkdir .tst 2>/dev/null
9450 if test -d .tst; then
9451 am__leading_dot=.
9452 else
9453 am__leading_dot=_
9454 fi
9455 rmdir .tst 2>/dev/null
9456
9457 DEPDIR="${am__leading_dot}deps"
9458
9459 ac_config_commands="$ac_config_commands depdir"
9460
9461
9462 ac_config_commands="$ac_config_commands gccdepdir"
9463
9464
9465 depcc="$CXX" am_compiler_list=
9466
9467 am_depcomp=$ac_aux_dir/depcomp
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9469 $as_echo_n "checking dependency style of $depcc... " >&6; }
9470 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test -f "$am_depcomp"; then
9474 # We make a subdir and do the tests there. Otherwise we can end up
9475 # making bogus files that we don't know about and never remove. For
9476 # instance it was reported that on HP-UX the gcc test will end up
9477 # making a dummy file named `D' -- because `-MD' means `put the output
9478 # in D'.
9479 mkdir conftest.dir
9480 # Copy depcomp to subdir because otherwise we won't find it if we're
9481 # using a relative directory.
9482 cp "$am_depcomp" conftest.dir
9483 cd conftest.dir
9484 # We will build objects and dependencies in a subdirectory because
9485 # it helps to detect inapplicable dependency modes. For instance
9486 # both Tru64's cc and ICC support -MD to output dependencies as a
9487 # side effect of compilation, but ICC will put the dependencies in
9488 # the current directory while Tru64 will put them in the object
9489 # directory.
9490 mkdir sub
9491
9492 am_cv_CXX_dependencies_compiler_type=none
9493 if test "$am_compiler_list" = ""; then
9494 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9495 fi
9496 for depmode in $am_compiler_list; do
9497 if test $depmode = none; then break; fi
9498
9499 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9500 # Setup a source with many dependencies, because some compilers
9501 # like to wrap large dependency lists on column 80 (with \), and
9502 # we should not choose a depcomp mode which is confused by this.
9503 #
9504 # We need to recreate these files for each test, as the compiler may
9505 # overwrite some of them when testing with obscure command lines.
9506 # This happens at least with the AIX C compiler.
9507 : > sub/conftest.c
9508 for i in 1 2 3 4 5 6; do
9509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9511 # Solaris 8's {/usr,}/bin/sh.
9512 touch sub/conftst$i.h
9513 done
9514 echo "include sub/conftest.Po" > confmf
9515
9516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9517 # mode. It turns out that the SunPro C++ compiler does not properly
9518 # handle `-M -o', and we need to detect this.
9519 depcmd="depmode=$depmode \
9520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9523 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9524 if env $depcmd > conftest.err 2>&1 &&
9525 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9526 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9527 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9528 # icc doesn't choke on unknown options, it will just issue warnings
9529 # or remarks (even with -Werror). So we grep stderr for any message
9530 # that says an option was ignored or not supported.
9531 # When given -MP, icc 7.0 and 7.1 complain thusly:
9532 # icc: Command line warning: ignoring option '-M'; no argument required
9533 # The diagnosis changed in icc 8.0:
9534 # icc: Command line remark: option '-MP' not supported
9535 if (grep 'ignoring option' conftest.err ||
9536 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9537 am_cv_CXX_dependencies_compiler_type=$depmode
9538 $as_echo "$as_me:$LINENO: success" >&5
9539 break
9540 fi
9541 fi
9542 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9543 sed -e 's/^/| /' < conftest.err >&5
9544 done
9545
9546 cd ..
9547 rm -rf conftest.dir
9548 else
9549 am_cv_CXX_dependencies_compiler_type=none
9550 fi
9551
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9554 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9555 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9556 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9557 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9558
9559 fi
9560
9561
9562 # --------
9563 # UNSORTED
9564 # --------
9565
9566
9567 # These libraries may be used by collect2.
9568 # We may need a special search path to get them linked.
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9570 $as_echo_n "checking for collect2 libraries... " >&6; }
9571 if ${gcc_cv_collect2_libs+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 save_LIBS="$LIBS"
9575 for libs in '' -lld -lmld \
9576 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9577 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9578 do
9579 LIBS="$libs"
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582
9583 /* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9586 #ifdef __cplusplus
9587 extern "C"
9588 #endif
9589 char ldopen ();
9590 int
9591 main ()
9592 {
9593 return ldopen ();
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_cxx_try_link "$LINENO"; then :
9599 gcc_cv_collect2_libs="$libs"; break
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 done
9604 LIBS="$save_LIBS"
9605 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9608 $as_echo "$gcc_cv_collect2_libs" >&6; }
9609 case $gcc_cv_collect2_libs in
9610 "none required") ;;
9611 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9612 esac
9613
9614
9615 # When building Ada code on Alpha, we need exc_resume which is usually in
9616 # -lexc. So test for it.
9617 save_LIBS="$LIBS"
9618 LIBS=
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9620 $as_echo_n "checking for library containing exc_resume... " >&6; }
9621 if ${ac_cv_search_exc_resume+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 ac_func_search_save_LIBS=$LIBS
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char exc_resume ();
9635 int
9636 main ()
9637 {
9638 return exc_resume ();
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 for ac_lib in '' exc; do
9644 if test -z "$ac_lib"; then
9645 ac_res="none required"
9646 else
9647 ac_res=-l$ac_lib
9648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9649 fi
9650 if ac_fn_cxx_try_link "$LINENO"; then :
9651 ac_cv_search_exc_resume=$ac_res
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext
9655 if ${ac_cv_search_exc_resume+:} false; then :
9656 break
9657 fi
9658 done
9659 if ${ac_cv_search_exc_resume+:} false; then :
9660
9661 else
9662 ac_cv_search_exc_resume=no
9663 fi
9664 rm conftest.$ac_ext
9665 LIBS=$ac_func_search_save_LIBS
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9668 $as_echo "$ac_cv_search_exc_resume" >&6; }
9669 ac_res=$ac_cv_search_exc_resume
9670 if test "$ac_res" != no; then :
9671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9672
9673 fi
9674
9675 GNAT_LIBEXC="$LIBS"
9676 LIBS="$save_LIBS"
9677
9678
9679 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9680 save_LIBS="$LIBS"
9681 LIBS=
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9683 $as_echo_n "checking for library containing kstat_open... " >&6; }
9684 if ${ac_cv_search_kstat_open+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 ac_func_search_save_LIBS=$LIBS
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 char kstat_open ();
9698 int
9699 main ()
9700 {
9701 return kstat_open ();
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 for ac_lib in '' kstat; do
9707 if test -z "$ac_lib"; then
9708 ac_res="none required"
9709 else
9710 ac_res=-l$ac_lib
9711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9712 fi
9713 if ac_fn_cxx_try_link "$LINENO"; then :
9714 ac_cv_search_kstat_open=$ac_res
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext
9718 if ${ac_cv_search_kstat_open+:} false; then :
9719 break
9720 fi
9721 done
9722 if ${ac_cv_search_kstat_open+:} false; then :
9723
9724 else
9725 ac_cv_search_kstat_open=no
9726 fi
9727 rm conftest.$ac_ext
9728 LIBS=$ac_func_search_save_LIBS
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9731 $as_echo "$ac_cv_search_kstat_open" >&6; }
9732 ac_res=$ac_cv_search_kstat_open
9733 if test "$ac_res" != no; then :
9734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9735
9736 fi
9737
9738 EXTRA_GCC_LIBS="$LIBS"
9739 LIBS="$save_LIBS"
9740
9741
9742 # Some systems put ldexp and frexp in libm instead of libc; assume
9743 # they're both in the same place. jcf-dump needs them.
9744 save_LIBS="$LIBS"
9745 LIBS=
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9747 $as_echo_n "checking for library containing ldexp... " >&6; }
9748 if ${ac_cv_search_ldexp+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 ac_func_search_save_LIBS=$LIBS
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754
9755 /* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 char ldexp ();
9762 int
9763 main ()
9764 {
9765 return ldexp ();
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 for ac_lib in '' m; do
9771 if test -z "$ac_lib"; then
9772 ac_res="none required"
9773 else
9774 ac_res=-l$ac_lib
9775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9776 fi
9777 if ac_fn_cxx_try_link "$LINENO"; then :
9778 ac_cv_search_ldexp=$ac_res
9779 fi
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext
9782 if ${ac_cv_search_ldexp+:} false; then :
9783 break
9784 fi
9785 done
9786 if ${ac_cv_search_ldexp+:} false; then :
9787
9788 else
9789 ac_cv_search_ldexp=no
9790 fi
9791 rm conftest.$ac_ext
9792 LIBS=$ac_func_search_save_LIBS
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9795 $as_echo "$ac_cv_search_ldexp" >&6; }
9796 ac_res=$ac_cv_search_ldexp
9797 if test "$ac_res" != no; then :
9798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9799
9800 fi
9801
9802 LDEXP_LIB="$LIBS"
9803 LIBS="$save_LIBS"
9804
9805
9806 # Some systems need dlopen
9807 save_LIBS="$LIBS"
9808 LIBS=
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9810 $as_echo_n "checking for library containing dlopen... " >&6; }
9811 if ${ac_cv_search_dlopen+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 ac_func_search_save_LIBS=$LIBS
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char dlopen ();
9825 int
9826 main ()
9827 {
9828 return dlopen ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 for ac_lib in '' dl; do
9834 if test -z "$ac_lib"; then
9835 ac_res="none required"
9836 else
9837 ac_res=-l$ac_lib
9838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9839 fi
9840 if ac_fn_cxx_try_link "$LINENO"; then :
9841 ac_cv_search_dlopen=$ac_res
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext
9845 if ${ac_cv_search_dlopen+:} false; then :
9846 break
9847 fi
9848 done
9849 if ${ac_cv_search_dlopen+:} false; then :
9850
9851 else
9852 ac_cv_search_dlopen=no
9853 fi
9854 rm conftest.$ac_ext
9855 LIBS=$ac_func_search_save_LIBS
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9858 $as_echo "$ac_cv_search_dlopen" >&6; }
9859 ac_res=$ac_cv_search_dlopen
9860 if test "$ac_res" != no; then :
9861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9862
9863 fi
9864
9865 DL_LIB="$LIBS"
9866 LIBS="$save_LIBS"
9867
9868
9869 # Use <inttypes.h> only if it exists,
9870 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9871 # PRId64
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9873 $as_echo_n "checking for inttypes.h... " >&6; }
9874 if ${gcc_cv_header_inttypes_h+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 #define __STDC_FORMAT_MACROS
9880 #include <sys/types.h>
9881 #include <inttypes.h>
9882 int
9883 main ()
9884 {
9885 intmax_t i = -1;
9886 #ifndef PRId64
9887 choke me
9888 #endif
9889 ;
9890 return 0;
9891 }
9892 _ACEOF
9893 if ac_fn_cxx_try_compile "$LINENO"; then :
9894 gcc_cv_header_inttypes_h=yes
9895 else
9896 gcc_cv_header_inttypes_h=no
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 fi
9900
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9902 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9903 if test $gcc_cv_header_inttypes_h = yes; then
9904
9905 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9906
9907 fi
9908
9909 # Look for the ZSTD package.
9910 ZSTD_INCLUDE=
9911 ZSTD_LIB=
9912
9913
9914 ZSTD_CPPFLAGS=
9915 ZSTD_LDFLAGS=
9916
9917 # Check whether --with-zstd was given.
9918 if test "${with_zstd+set}" = set; then :
9919 withval=$with_zstd;
9920 fi
9921
9922
9923 # Check whether --with-zstd-include was given.
9924 if test "${with_zstd_include+set}" = set; then :
9925 withval=$with_zstd_include;
9926 fi
9927
9928
9929 # Check whether --with-zstd-lib was given.
9930 if test "${with_zstd_lib+set}" = set; then :
9931 withval=$with_zstd_lib;
9932 fi
9933
9934 case "x$with_zstd" in
9935 x) ;;
9936 xno)
9937 ZSTD_INCLUDE=no
9938 ZSTD_LIB=no
9939 ;;
9940 *) ZSTD_INCLUDE=$with_zstd/include
9941 ZSTD_LIB=$with_zstd/lib
9942 ;;
9943 esac
9944 if test "x$with_zstd_include" != x; then
9945 ZSTD_INCLUDE=$with_zstd_include
9946 fi
9947 if test "x$with_zstd_lib" != x; then
9948 ZSTD_LIB=$with_zstd_lib
9949 fi
9950 if test "x$ZSTD_INCLUDE" != x \
9951 && test "x$ZSTD_INCLUDE" != xno; then
9952 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9953 fi
9954 if test "x$ZSTD_LIB" != x \
9955 && test "x$ZSTD_LIB" != xno; then
9956 ZSTD_LDFLAGS=-L$ZSTD_LIB
9957 fi
9958
9959 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9960 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9963 $as_echo_n "checking for zstd.h... " >&6; }
9964 if ${gcc_cv_header_zstd_h+:} false; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 #include <zstd.h>
9970 int
9971 main ()
9972 {
9973
9974 ;
9975 return 0;
9976 }
9977 _ACEOF
9978 if ac_fn_cxx_try_compile "$LINENO"; then :
9979 gcc_cv_header_zstd_h=yes
9980 else
9981 gcc_cv_header_zstd_h=no
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9987 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9988 if test $gcc_cv_header_zstd_h = yes; then
9989
9990 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9991
9992 fi
9993
9994 # LTO can use zstd compression algorithm
9995 save_LIBS="$LIBS"
9996 LIBS=
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9998 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9999 if ${ac_cv_search_ZSTD_compress+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 ac_func_search_save_LIBS=$LIBS
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005
10006 /* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 char ZSTD_compress ();
10013 int
10014 main ()
10015 {
10016 return ZSTD_compress ();
10017 ;
10018 return 0;
10019 }
10020 _ACEOF
10021 for ac_lib in '' zstd; do
10022 if test -z "$ac_lib"; then
10023 ac_res="none required"
10024 else
10025 ac_res=-l$ac_lib
10026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10027 fi
10028 if ac_fn_cxx_try_link "$LINENO"; then :
10029 ac_cv_search_ZSTD_compress=$ac_res
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext
10033 if ${ac_cv_search_ZSTD_compress+:} false; then :
10034 break
10035 fi
10036 done
10037 if ${ac_cv_search_ZSTD_compress+:} false; then :
10038
10039 else
10040 ac_cv_search_ZSTD_compress=no
10041 fi
10042 rm conftest.$ac_ext
10043 LIBS=$ac_func_search_save_LIBS
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10046 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10047 ac_res=$ac_cv_search_ZSTD_compress
10048 if test "$ac_res" != no; then :
10049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10050
10051 fi
10052
10053 ZSTD_LIB="$LIBS"
10054 LIBS="$save_LIBS"
10055
10056
10057
10058
10059 for ac_func in times clock kill getrlimit setrlimit atoq \
10060 popen sysconf strsignal getrusage nl_langinfo \
10061 gettimeofday mbstowcs wcswidth mmap setlocale \
10062 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
10063 do :
10064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10065 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10066 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10067 cat >>confdefs.h <<_ACEOF
10068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069 _ACEOF
10070
10071 fi
10072 done
10073
10074
10075 if test x$ac_cv_func_mbstowcs = xyes; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10077 $as_echo_n "checking whether mbstowcs works... " >&6; }
10078 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 if test "$cross_compiling" = yes; then :
10082 gcc_cv_func_mbstowcs_works=yes
10083 else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <stdlib.h>
10087 int main()
10088 {
10089 mbstowcs(0, "", 0);
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_cxx_try_run "$LINENO"; then :
10094 gcc_cv_func_mbstowcs_works=yes
10095 else
10096 gcc_cv_func_mbstowcs_works=no
10097 fi
10098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10099 conftest.$ac_objext conftest.beam conftest.$ac_ext
10100 fi
10101
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10104 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10105 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10106
10107 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10108
10109 fi
10110 fi
10111
10112 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10113 if test "x$ac_cv_type_ssize_t" = xyes; then :
10114
10115 else
10116
10117 cat >>confdefs.h <<_ACEOF
10118 #define ssize_t int
10119 _ACEOF
10120
10121 fi
10122
10123 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10124 if test "x$ac_cv_type_caddr_t" = xyes; then :
10125
10126 else
10127
10128 cat >>confdefs.h <<_ACEOF
10129 #define caddr_t char *
10130 _ACEOF
10131
10132 fi
10133
10134
10135
10136 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10137 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10138 gcc_header_sys_mman_h=yes
10139 else
10140 gcc_header_sys_mman_h=no
10141 fi
10142
10143 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10144 if test "x$ac_cv_func_mmap" = xyes; then :
10145 gcc_func_mmap=yes
10146 else
10147 gcc_func_mmap=no
10148 fi
10149
10150 if test "$gcc_header_sys_mman_h" != yes \
10151 || test "$gcc_func_mmap" != yes; then
10152 gcc_cv_func_mmap_file=no
10153 gcc_cv_func_mmap_dev_zero=no
10154 gcc_cv_func_mmap_anon=no
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10157 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10158 if ${gcc_cv_func_mmap_file+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 # Add a system to this blacklist if
10162 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10163 # memory area containing the same data that you'd get if you applied
10164 # read() to the same fd. The only system known to have a problem here
10165 # is VMS, where text files have record structure.
10166 case "$host_os" in
10167 *vms* | ultrix*)
10168 gcc_cv_func_mmap_file=no ;;
10169 *)
10170 gcc_cv_func_mmap_file=yes;;
10171 esac
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10174 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10176 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10177 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 # Add a system to this blacklist if it has mmap() but /dev/zero
10181 # does not exist, or if mmapping /dev/zero does not give anonymous
10182 # zeroed pages with both the following properties:
10183 # 1. If you map N consecutive pages in with one call, and then
10184 # unmap any subset of those pages, the pages that were not
10185 # explicitly unmapped remain accessible.
10186 # 2. If you map two adjacent blocks of memory and then unmap them
10187 # both at once, they must both go away.
10188 # Systems known to be in this category are Windows (all variants),
10189 # VMS, and Darwin.
10190 case "$host_os" in
10191 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10192 gcc_cv_func_mmap_dev_zero=no ;;
10193 *)
10194 gcc_cv_func_mmap_dev_zero=yes;;
10195 esac
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10198 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10199
10200 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10202 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10203 if ${gcc_cv_decl_map_anon+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 #include <sys/types.h>
10209 #include <sys/mman.h>
10210 #include <unistd.h>
10211
10212 #ifndef MAP_ANONYMOUS
10213 #define MAP_ANONYMOUS MAP_ANON
10214 #endif
10215
10216 int
10217 main ()
10218 {
10219 int n = MAP_ANONYMOUS;
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_cxx_try_compile "$LINENO"; then :
10225 gcc_cv_decl_map_anon=yes
10226 else
10227 gcc_cv_decl_map_anon=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10232 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10233
10234 if test $gcc_cv_decl_map_anon = no; then
10235 gcc_cv_func_mmap_anon=no
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10238 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10239 if ${gcc_cv_func_mmap_anon+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10243 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10244 # doesn't give anonymous zeroed pages with the same properties listed
10245 # above for use of /dev/zero.
10246 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10247 case "$host_os" in
10248 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10249 gcc_cv_func_mmap_anon=no ;;
10250 *)
10251 gcc_cv_func_mmap_anon=yes;;
10252 esac
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10255 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10256 fi
10257 fi
10258
10259 if test $gcc_cv_func_mmap_file = yes; then
10260
10261 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10262
10263 fi
10264 if test $gcc_cv_func_mmap_dev_zero = yes; then
10265
10266 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10267
10268 fi
10269 if test $gcc_cv_func_mmap_anon = yes; then
10270
10271 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10272
10273 fi
10274
10275
10276 case "${host}" in
10277 *-*-*vms*)
10278 # Under VMS, vfork works very differently than on Unix. The standard test
10279 # won't work, and it isn't easily adaptable. It makes more sense to
10280 # just force it.
10281 ac_cv_func_vfork_works=yes
10282 ;;
10283 esac
10284 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10285 if test "x$ac_cv_type_pid_t" = xyes; then :
10286
10287 else
10288
10289 cat >>confdefs.h <<_ACEOF
10290 #define pid_t int
10291 _ACEOF
10292
10293 fi
10294
10295 for ac_header in vfork.h
10296 do :
10297 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10298 if test "x$ac_cv_header_vfork_h" = xyes; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define HAVE_VFORK_H 1
10301 _ACEOF
10302
10303 fi
10304 done
10305
10306 for ac_func in fork vfork
10307 do :
10308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10311 cat >>confdefs.h <<_ACEOF
10312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10313 _ACEOF
10314
10315 fi
10316 done
10317
10318 if test "x$ac_cv_func_fork" = xyes; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10320 $as_echo_n "checking for working fork... " >&6; }
10321 if ${ac_cv_func_fork_works+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 if test "$cross_compiling" = yes; then :
10325 ac_cv_func_fork_works=cross
10326 else
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 $ac_includes_default
10330 int
10331 main ()
10332 {
10333
10334 /* By Ruediger Kuhlmann. */
10335 return fork () < 0;
10336
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_cxx_try_run "$LINENO"; then :
10342 ac_cv_func_fork_works=yes
10343 else
10344 ac_cv_func_fork_works=no
10345 fi
10346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10347 conftest.$ac_objext conftest.beam conftest.$ac_ext
10348 fi
10349
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10352 $as_echo "$ac_cv_func_fork_works" >&6; }
10353
10354 else
10355 ac_cv_func_fork_works=$ac_cv_func_fork
10356 fi
10357 if test "x$ac_cv_func_fork_works" = xcross; then
10358 case $host in
10359 *-*-amigaos* | *-*-msdosdjgpp*)
10360 # Override, as these systems have only a dummy fork() stub
10361 ac_cv_func_fork_works=no
10362 ;;
10363 *)
10364 ac_cv_func_fork_works=yes
10365 ;;
10366 esac
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10369 fi
10370 ac_cv_func_vfork_works=$ac_cv_func_vfork
10371 if test "x$ac_cv_func_vfork" = xyes; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10373 $as_echo_n "checking for working vfork... " >&6; }
10374 if ${ac_cv_func_vfork_works+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test "$cross_compiling" = yes; then :
10378 ac_cv_func_vfork_works=cross
10379 else
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 /* Thanks to Paul Eggert for this test. */
10383 $ac_includes_default
10384 #include <sys/wait.h>
10385 #ifdef HAVE_VFORK_H
10386 # include <vfork.h>
10387 #endif
10388 /* On some sparc systems, changes by the child to local and incoming
10389 argument registers are propagated back to the parent. The compiler
10390 is told about this with #include <vfork.h>, but some compilers
10391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10392 static variable whose address is put into a register that is
10393 clobbered by the vfork. */
10394 static void
10395 #ifdef __cplusplus
10396 sparc_address_test (int arg)
10397 # else
10398 sparc_address_test (arg) int arg;
10399 #endif
10400 {
10401 static pid_t child;
10402 if (!child) {
10403 child = vfork ();
10404 if (child < 0) {
10405 perror ("vfork");
10406 _exit(2);
10407 }
10408 if (!child) {
10409 arg = getpid();
10410 write(-1, "", 0);
10411 _exit (arg);
10412 }
10413 }
10414 }
10415
10416 int
10417 main ()
10418 {
10419 pid_t parent = getpid ();
10420 pid_t child;
10421
10422 sparc_address_test (0);
10423
10424 child = vfork ();
10425
10426 if (child == 0) {
10427 /* Here is another test for sparc vfork register problems. This
10428 test uses lots of local variables, at least as many local
10429 variables as main has allocated so far including compiler
10430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10432 reuse the register of parent for one of the local variables,
10433 since it will think that parent can't possibly be used any more
10434 in this routine. Assigning to the local variable will thus
10435 munge parent in the parent process. */
10436 pid_t
10437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10439 /* Convince the compiler that p..p7 are live; otherwise, it might
10440 use the same hardware register for all 8 local variables. */
10441 if (p != p1 || p != p2 || p != p3 || p != p4
10442 || p != p5 || p != p6 || p != p7)
10443 _exit(1);
10444
10445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10446 from child file descriptors. If the child closes a descriptor
10447 before it execs or exits, this munges the parent's descriptor
10448 as well. Test for this by closing stdout in the child. */
10449 _exit(close(fileno(stdout)) != 0);
10450 } else {
10451 int status;
10452 struct stat st;
10453
10454 while (wait(&status) != child)
10455 ;
10456 return (
10457 /* Was there some problem with vforking? */
10458 child < 0
10459
10460 /* Did the child fail? (This shouldn't happen.) */
10461 || status
10462
10463 /* Did the vfork/compiler bug occur? */
10464 || parent != getpid()
10465
10466 /* Did the file descriptor bug occur? */
10467 || fstat(fileno(stdout), &st) != 0
10468 );
10469 }
10470 }
10471 _ACEOF
10472 if ac_fn_cxx_try_run "$LINENO"; then :
10473 ac_cv_func_vfork_works=yes
10474 else
10475 ac_cv_func_vfork_works=no
10476 fi
10477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10478 conftest.$ac_objext conftest.beam conftest.$ac_ext
10479 fi
10480
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10483 $as_echo "$ac_cv_func_vfork_works" >&6; }
10484
10485 fi;
10486 if test "x$ac_cv_func_fork_works" = xcross; then
10487 ac_cv_func_vfork_works=$ac_cv_func_vfork
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10490 fi
10491
10492 if test "x$ac_cv_func_vfork_works" = xyes; then
10493
10494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10495
10496 else
10497
10498 $as_echo "#define vfork fork" >>confdefs.h
10499
10500 fi
10501 if test "x$ac_cv_func_fork_works" = xyes; then
10502
10503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10504
10505 fi
10506
10507
10508
10509 if test "X$prefix" = "XNONE"; then
10510 acl_final_prefix="$ac_default_prefix"
10511 else
10512 acl_final_prefix="$prefix"
10513 fi
10514 if test "X$exec_prefix" = "XNONE"; then
10515 acl_final_exec_prefix='${prefix}'
10516 else
10517 acl_final_exec_prefix="$exec_prefix"
10518 fi
10519 acl_save_prefix="$prefix"
10520 prefix="$acl_final_prefix"
10521 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10522 prefix="$acl_save_prefix"
10523
10524
10525 # Check whether --with-gnu-ld was given.
10526 if test "${with_gnu_ld+set}" = set; then :
10527 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10528 else
10529 with_gnu_ld=no
10530 fi
10531
10532 # Prepare PATH_SEPARATOR.
10533 # The user is always right.
10534 if test "${PATH_SEPARATOR+set}" != set; then
10535 echo "#! /bin/sh" >conf$$.sh
10536 echo "exit 0" >>conf$$.sh
10537 chmod +x conf$$.sh
10538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10539 PATH_SEPARATOR=';'
10540 else
10541 PATH_SEPARATOR=:
10542 fi
10543 rm -f conf$$.sh
10544 fi
10545 ac_prog=ld
10546 if test "$GCC" = yes; then
10547 # Check if gcc -print-prog-name=ld gives a path.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10549 $as_echo_n "checking for ld used by GCC... " >&6; }
10550 case $host in
10551 *-*-mingw*)
10552 # gcc leaves a trailing carriage return which upsets mingw
10553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10554 *)
10555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10556 esac
10557 case $ac_prog in
10558 # Accept absolute paths.
10559 [\\/]* | [A-Za-z]:[\\/]*)
10560 re_direlt='/[^/][^/]*/\.\./'
10561 # Canonicalize the path of ld
10562 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10563 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10564 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10565 done
10566 test -z "$LD" && LD="$ac_prog"
10567 ;;
10568 "")
10569 # If it fails, then pretend we aren't using GCC.
10570 ac_prog=ld
10571 ;;
10572 *)
10573 # If it is relative, then search for the first ld in PATH.
10574 with_gnu_ld=unknown
10575 ;;
10576 esac
10577 elif test "$with_gnu_ld" = yes; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10579 $as_echo_n "checking for GNU ld... " >&6; }
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10582 $as_echo_n "checking for non-GNU ld... " >&6; }
10583 fi
10584 if ${acl_cv_path_LD+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -z "$LD"; then
10588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10589 for ac_dir in $PATH; do
10590 test -z "$ac_dir" && ac_dir=.
10591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10592 acl_cv_path_LD="$ac_dir/$ac_prog"
10593 # Check to see if the program is GNU ld. I'd rather use --version,
10594 # but apparently some GNU ld's only accept -v.
10595 # Break only if it was the GNU/non-GNU ld that we prefer.
10596 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10597 test "$with_gnu_ld" != no && break
10598 else
10599 test "$with_gnu_ld" != yes && break
10600 fi
10601 fi
10602 done
10603 IFS="$ac_save_ifs"
10604 else
10605 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10606 fi
10607 fi
10608
10609 LD="$acl_cv_path_LD"
10610 if test -n "$LD"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10612 $as_echo "$LD" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10620 if ${acl_cv_prog_gnu_ld+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10624 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10625 acl_cv_prog_gnu_ld=yes
10626 else
10627 acl_cv_prog_gnu_ld=no
10628 fi
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10631 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10632 with_gnu_ld=$acl_cv_prog_gnu_ld
10633
10634
10635
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10637 $as_echo_n "checking for shared library run path origin... " >&6; }
10638 if ${acl_cv_rpath+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641
10642 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10643 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10644 . ./conftest.sh
10645 rm -f ./conftest.sh
10646 acl_cv_rpath=done
10647
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10650 $as_echo "$acl_cv_rpath" >&6; }
10651 wl="$acl_cv_wl"
10652 libext="$acl_cv_libext"
10653 shlibext="$acl_cv_shlibext"
10654 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10655 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10656 hardcode_direct="$acl_cv_hardcode_direct"
10657 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10658 # Check whether --enable-rpath was given.
10659 if test "${enable_rpath+set}" = set; then :
10660 enableval=$enable_rpath; :
10661 else
10662 enable_rpath=yes
10663 fi
10664
10665
10666
10667
10668
10669
10670
10671
10672 use_additional=yes
10673
10674 acl_save_prefix="$prefix"
10675 prefix="$acl_final_prefix"
10676 acl_save_exec_prefix="$exec_prefix"
10677 exec_prefix="$acl_final_exec_prefix"
10678
10679 eval additional_includedir=\"$includedir\"
10680 eval additional_libdir=\"$libdir\"
10681
10682 exec_prefix="$acl_save_exec_prefix"
10683 prefix="$acl_save_prefix"
10684
10685
10686 # Check whether --with-libiconv-prefix was given.
10687 if test "${with_libiconv_prefix+set}" = set; then :
10688 withval=$with_libiconv_prefix;
10689 if test "X$withval" = "Xno"; then
10690 use_additional=no
10691 else
10692 if test "X$withval" = "X"; then
10693
10694 acl_save_prefix="$prefix"
10695 prefix="$acl_final_prefix"
10696 acl_save_exec_prefix="$exec_prefix"
10697 exec_prefix="$acl_final_exec_prefix"
10698
10699 eval additional_includedir=\"$includedir\"
10700 eval additional_libdir=\"$libdir\"
10701
10702 exec_prefix="$acl_save_exec_prefix"
10703 prefix="$acl_save_prefix"
10704
10705 else
10706 additional_includedir="$withval/include"
10707 additional_libdir="$withval/lib"
10708 fi
10709 fi
10710
10711 fi
10712
10713 LIBICONV=
10714 LTLIBICONV=
10715 INCICONV=
10716 rpathdirs=
10717 ltrpathdirs=
10718 names_already_handled=
10719 names_next_round='iconv '
10720 while test -n "$names_next_round"; do
10721 names_this_round="$names_next_round"
10722 names_next_round=
10723 for name in $names_this_round; do
10724 already_handled=
10725 for n in $names_already_handled; do
10726 if test "$n" = "$name"; then
10727 already_handled=yes
10728 break
10729 fi
10730 done
10731 if test -z "$already_handled"; then
10732 names_already_handled="$names_already_handled $name"
10733 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10734 eval value=\"\$HAVE_LIB$uppername\"
10735 if test -n "$value"; then
10736 if test "$value" = yes; then
10737 eval value=\"\$LIB$uppername\"
10738 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10739 eval value=\"\$LTLIB$uppername\"
10740 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10741 else
10742 :
10743 fi
10744 else
10745 found_dir=
10746 found_la=
10747 found_so=
10748 found_a=
10749 if test $use_additional = yes; then
10750 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10751 found_dir="$additional_libdir"
10752 found_so="$additional_libdir/lib$name.$shlibext"
10753 if test -f "$additional_libdir/lib$name.la"; then
10754 found_la="$additional_libdir/lib$name.la"
10755 fi
10756 else
10757 if test -f "$additional_libdir/lib$name.$libext"; then
10758 found_dir="$additional_libdir"
10759 found_a="$additional_libdir/lib$name.$libext"
10760 if test -f "$additional_libdir/lib$name.la"; then
10761 found_la="$additional_libdir/lib$name.la"
10762 fi
10763 fi
10764 fi
10765 fi
10766 if test "X$found_dir" = "X"; then
10767 for x in $LDFLAGS $LTLIBICONV; do
10768
10769 acl_save_prefix="$prefix"
10770 prefix="$acl_final_prefix"
10771 acl_save_exec_prefix="$exec_prefix"
10772 exec_prefix="$acl_final_exec_prefix"
10773 eval x=\"$x\"
10774 exec_prefix="$acl_save_exec_prefix"
10775 prefix="$acl_save_prefix"
10776
10777 case "$x" in
10778 -L*)
10779 dir=`echo "X$x" | sed -e 's/^X-L//'`
10780 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10781 found_dir="$dir"
10782 found_so="$dir/lib$name.$shlibext"
10783 if test -f "$dir/lib$name.la"; then
10784 found_la="$dir/lib$name.la"
10785 fi
10786 else
10787 if test -f "$dir/lib$name.$libext"; then
10788 found_dir="$dir"
10789 found_a="$dir/lib$name.$libext"
10790 if test -f "$dir/lib$name.la"; then
10791 found_la="$dir/lib$name.la"
10792 fi
10793 fi
10794 fi
10795 ;;
10796 esac
10797 if test "X$found_dir" != "X"; then
10798 break
10799 fi
10800 done
10801 fi
10802 if test "X$found_dir" != "X"; then
10803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10804 if test "X$found_so" != "X"; then
10805 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10807 else
10808 haveit=
10809 for x in $ltrpathdirs; do
10810 if test "X$x" = "X$found_dir"; then
10811 haveit=yes
10812 break
10813 fi
10814 done
10815 if test -z "$haveit"; then
10816 ltrpathdirs="$ltrpathdirs $found_dir"
10817 fi
10818 if test "$hardcode_direct" = yes; then
10819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10820 else
10821 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10823 haveit=
10824 for x in $rpathdirs; do
10825 if test "X$x" = "X$found_dir"; then
10826 haveit=yes
10827 break
10828 fi
10829 done
10830 if test -z "$haveit"; then
10831 rpathdirs="$rpathdirs $found_dir"
10832 fi
10833 else
10834 haveit=
10835 for x in $LDFLAGS $LIBICONV; do
10836
10837 acl_save_prefix="$prefix"
10838 prefix="$acl_final_prefix"
10839 acl_save_exec_prefix="$exec_prefix"
10840 exec_prefix="$acl_final_exec_prefix"
10841 eval x=\"$x\"
10842 exec_prefix="$acl_save_exec_prefix"
10843 prefix="$acl_save_prefix"
10844
10845 if test "X$x" = "X-L$found_dir"; then
10846 haveit=yes
10847 break
10848 fi
10849 done
10850 if test -z "$haveit"; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10852 fi
10853 if test "$hardcode_minus_L" != no; then
10854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10855 else
10856 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10857 fi
10858 fi
10859 fi
10860 fi
10861 else
10862 if test "X$found_a" != "X"; then
10863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10864 else
10865 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10866 fi
10867 fi
10868 additional_includedir=
10869 case "$found_dir" in
10870 */lib | */lib/)
10871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10872 additional_includedir="$basedir/include"
10873 ;;
10874 esac
10875 if test "X$additional_includedir" != "X"; then
10876 if test "X$additional_includedir" != "X/usr/include"; then
10877 haveit=
10878 if test "X$additional_includedir" = "X/usr/local/include"; then
10879 if test -n "$GCC"; then
10880 case $host_os in
10881 linux*) haveit=yes;;
10882 esac
10883 fi
10884 fi
10885 if test -z "$haveit"; then
10886 for x in $CPPFLAGS $INCICONV; do
10887
10888 acl_save_prefix="$prefix"
10889 prefix="$acl_final_prefix"
10890 acl_save_exec_prefix="$exec_prefix"
10891 exec_prefix="$acl_final_exec_prefix"
10892 eval x=\"$x\"
10893 exec_prefix="$acl_save_exec_prefix"
10894 prefix="$acl_save_prefix"
10895
10896 if test "X$x" = "X-I$additional_includedir"; then
10897 haveit=yes
10898 break
10899 fi
10900 done
10901 if test -z "$haveit"; then
10902 if test -d "$additional_includedir"; then
10903 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10904 fi
10905 fi
10906 fi
10907 fi
10908 fi
10909 if test -n "$found_la"; then
10910 save_libdir="$libdir"
10911 case "$found_la" in
10912 */* | *\\*) . "$found_la" ;;
10913 *) . "./$found_la" ;;
10914 esac
10915 libdir="$save_libdir"
10916 for dep in $dependency_libs; do
10917 case "$dep" in
10918 -L*)
10919 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10920 if test "X$additional_libdir" != "X/usr/lib"; then
10921 haveit=
10922 if test "X$additional_libdir" = "X/usr/local/lib"; then
10923 if test -n "$GCC"; then
10924 case $host_os in
10925 linux*) haveit=yes;;
10926 esac
10927 fi
10928 fi
10929 if test -z "$haveit"; then
10930 haveit=
10931 for x in $LDFLAGS $LIBICONV; do
10932
10933 acl_save_prefix="$prefix"
10934 prefix="$acl_final_prefix"
10935 acl_save_exec_prefix="$exec_prefix"
10936 exec_prefix="$acl_final_exec_prefix"
10937 eval x=\"$x\"
10938 exec_prefix="$acl_save_exec_prefix"
10939 prefix="$acl_save_prefix"
10940
10941 if test "X$x" = "X-L$additional_libdir"; then
10942 haveit=yes
10943 break
10944 fi
10945 done
10946 if test -z "$haveit"; then
10947 if test -d "$additional_libdir"; then
10948 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10949 fi
10950 fi
10951 haveit=
10952 for x in $LDFLAGS $LTLIBICONV; do
10953
10954 acl_save_prefix="$prefix"
10955 prefix="$acl_final_prefix"
10956 acl_save_exec_prefix="$exec_prefix"
10957 exec_prefix="$acl_final_exec_prefix"
10958 eval x=\"$x\"
10959 exec_prefix="$acl_save_exec_prefix"
10960 prefix="$acl_save_prefix"
10961
10962 if test "X$x" = "X-L$additional_libdir"; then
10963 haveit=yes
10964 break
10965 fi
10966 done
10967 if test -z "$haveit"; then
10968 if test -d "$additional_libdir"; then
10969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10970 fi
10971 fi
10972 fi
10973 fi
10974 ;;
10975 -R*)
10976 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10977 if test "$enable_rpath" != no; then
10978 haveit=
10979 for x in $rpathdirs; do
10980 if test "X$x" = "X$dir"; then
10981 haveit=yes
10982 break
10983 fi
10984 done
10985 if test -z "$haveit"; then
10986 rpathdirs="$rpathdirs $dir"
10987 fi
10988 haveit=
10989 for x in $ltrpathdirs; do
10990 if test "X$x" = "X$dir"; then
10991 haveit=yes
10992 break
10993 fi
10994 done
10995 if test -z "$haveit"; then
10996 ltrpathdirs="$ltrpathdirs $dir"
10997 fi
10998 fi
10999 ;;
11000 -l*)
11001 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11002 ;;
11003 *.la)
11004 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11005 ;;
11006 *)
11007 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11009 ;;
11010 esac
11011 done
11012 fi
11013 else
11014 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11016 fi
11017 fi
11018 fi
11019 done
11020 done
11021 if test "X$rpathdirs" != "X"; then
11022 if test -n "$hardcode_libdir_separator"; then
11023 alldirs=
11024 for found_dir in $rpathdirs; do
11025 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11026 done
11027 acl_save_libdir="$libdir"
11028 libdir="$alldirs"
11029 eval flag=\"$hardcode_libdir_flag_spec\"
11030 libdir="$acl_save_libdir"
11031 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11032 else
11033 for found_dir in $rpathdirs; do
11034 acl_save_libdir="$libdir"
11035 libdir="$found_dir"
11036 eval flag=\"$hardcode_libdir_flag_spec\"
11037 libdir="$acl_save_libdir"
11038 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11039 done
11040 fi
11041 fi
11042 if test "X$ltrpathdirs" != "X"; then
11043 for found_dir in $ltrpathdirs; do
11044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11045 done
11046 fi
11047
11048
11049
11050
11051
11052
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11055 $as_echo_n "checking for iconv... " >&6; }
11056 if ${am_cv_func_iconv+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059
11060 am_cv_func_iconv="no, consider installing GNU libiconv"
11061 am_cv_lib_iconv=no
11062 am_save_CPPFLAGS="$CPPFLAGS"
11063 CPPFLAGS="$CPPFLAGS $INCICONV"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <stdlib.h>
11067 #include <iconv.h>
11068 int
11069 main ()
11070 {
11071 iconv_t cd = iconv_open("","");
11072 iconv(cd,NULL,NULL,NULL,NULL);
11073 iconv_close(cd);
11074 ;
11075 return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_cxx_try_link "$LINENO"; then :
11079 am_cv_func_iconv=yes
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 CPPFLAGS="$am_save_CPPFLAGS"
11084
11085 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11086 for _libs in .libs _libs; do
11087 am_save_CPPFLAGS="$CPPFLAGS"
11088 am_save_LIBS="$LIBS"
11089 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11090 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #include <stdlib.h>
11094 #include <iconv.h>
11095 int
11096 main ()
11097 {
11098 iconv_t cd = iconv_open("","");
11099 iconv(cd,NULL,NULL,NULL,NULL);
11100 iconv_close(cd);
11101 ;
11102 return 0;
11103 }
11104 _ACEOF
11105 if ac_fn_cxx_try_link "$LINENO"; then :
11106 INCICONV="-I../libiconv/include"
11107 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11108 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11109 am_cv_lib_iconv=yes
11110 am_cv_func_iconv=yes
11111 fi
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
11114 CPPFLAGS="$am_save_CPPFLAGS"
11115 LIBS="$am_save_LIBS"
11116 if test "$am_cv_func_iconv" = "yes"; then
11117 break
11118 fi
11119 done
11120 fi
11121
11122 if test "$am_cv_func_iconv" != yes; then
11123 am_save_CPPFLAGS="$CPPFLAGS"
11124 am_save_LIBS="$LIBS"
11125 CPPFLAGS="$CPPFLAGS $INCICONV"
11126 LIBS="$LIBS $LIBICONV"
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 #include <stdlib.h>
11130 #include <iconv.h>
11131 int
11132 main ()
11133 {
11134 iconv_t cd = iconv_open("","");
11135 iconv(cd,NULL,NULL,NULL,NULL);
11136 iconv_close(cd);
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_cxx_try_link "$LINENO"; then :
11142 am_cv_lib_iconv=yes
11143 am_cv_func_iconv=yes
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 CPPFLAGS="$am_save_CPPFLAGS"
11148 LIBS="$am_save_LIBS"
11149 fi
11150
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11153 $as_echo "$am_cv_func_iconv" >&6; }
11154 if test "$am_cv_func_iconv" = yes; then
11155
11156 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11157
11158 fi
11159 if test "$am_cv_lib_iconv" = yes; then
11160
11161 for element in $INCICONV; do
11162 haveit=
11163 for x in $CPPFLAGS; do
11164
11165 acl_save_prefix="$prefix"
11166 prefix="$acl_final_prefix"
11167 acl_save_exec_prefix="$exec_prefix"
11168 exec_prefix="$acl_final_exec_prefix"
11169 eval x=\"$x\"
11170 exec_prefix="$acl_save_exec_prefix"
11171 prefix="$acl_save_prefix"
11172
11173 if test "X$x" = "X$element"; then
11174 haveit=yes
11175 break
11176 fi
11177 done
11178 if test -z "$haveit"; then
11179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11180 fi
11181 done
11182
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11184 $as_echo_n "checking how to link with libiconv... " >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11186 $as_echo "$LIBICONV" >&6; }
11187 else
11188 LIBICONV=
11189 LTLIBICONV=
11190 fi
11191
11192
11193
11194 if test "$am_cv_func_iconv" = yes; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11196 $as_echo_n "checking for iconv declaration... " >&6; }
11197 if ${am_cv_proto_iconv+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203
11204 #include <stdlib.h>
11205 #include <iconv.h>
11206 extern
11207 #ifdef __cplusplus
11208 "C"
11209 #endif
11210 #if defined(__STDC__) || defined(__cplusplus)
11211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11212 #else
11213 size_t iconv();
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219
11220 ;
11221 return 0;
11222 }
11223 _ACEOF
11224 if ac_fn_cxx_try_compile "$LINENO"; then :
11225 am_cv_proto_iconv_arg1=""
11226 else
11227 am_cv_proto_iconv_arg1="const"
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 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);"
11231 fi
11232
11233 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11235 }$am_cv_proto_iconv" >&5
11236 $as_echo "${ac_t:-
11237 }$am_cv_proto_iconv" >&6; }
11238
11239 cat >>confdefs.h <<_ACEOF
11240 #define ICONV_CONST $am_cv_proto_iconv_arg1
11241 _ACEOF
11242
11243 fi
11244
11245
11246 # Until we have in-tree GNU iconv:
11247 LIBICONV_DEP=
11248 if test -f "$LTLIBICONV"; then
11249 LIBICONV_DEP=$LTLIBICONV
11250 fi
11251
11252
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11255 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11256 if ${am_cv_val_LC_MESSAGES+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <locale.h>
11262 int
11263 main ()
11264 {
11265 return LC_MESSAGES
11266 ;
11267 return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_cxx_try_link "$LINENO"; then :
11271 am_cv_val_LC_MESSAGES=yes
11272 else
11273 am_cv_val_LC_MESSAGES=no
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext \
11276 conftest$ac_exeext conftest.$ac_ext
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11279 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11280 if test $am_cv_val_LC_MESSAGES = yes; then
11281
11282 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11283
11284 fi
11285
11286
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11289 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11290 if ${am_cv_langinfo_codeset+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #include <langinfo.h>
11296 int
11297 main ()
11298 {
11299 char* cs = nl_langinfo(CODESET);
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_cxx_try_link "$LINENO"; then :
11305 am_cv_langinfo_codeset=yes
11306 else
11307 am_cv_langinfo_codeset=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11314 $as_echo "$am_cv_langinfo_codeset" >&6; }
11315 if test $am_cv_langinfo_codeset = yes; then
11316
11317 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11318
11319 fi
11320
11321
11322 # We will need to find libiberty.h and ansidecl.h
11323 saved_CFLAGS="$CFLAGS"
11324 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11325 saved_CXXFLAGS="$CXXFLAGS"
11326 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11327
11328 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11329 # normal autoconf function for these. But force definition of
11330 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11331 # basename handling in libiberty.h.
11332 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11333 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11334 #undef HAVE_DECL_BASENAME
11335 #define HAVE_DECL_BASENAME 1
11336 #include \"ansidecl.h\"
11337 #include \"system.h\"
11338 "
11339 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11340 ac_have_decl=1
11341 else
11342 ac_have_decl=0
11343 fi
11344
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_DECL_BASENAME $ac_have_decl
11347 _ACEOF
11348 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11349 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11350 #undef HAVE_DECL_BASENAME
11351 #define HAVE_DECL_BASENAME 1
11352 #include \"ansidecl.h\"
11353 #include \"system.h\"
11354 "
11355 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11356 ac_have_decl=1
11357 else
11358 ac_have_decl=0
11359 fi
11360
11361 cat >>confdefs.h <<_ACEOF
11362 #define HAVE_DECL_STRSTR $ac_have_decl
11363 _ACEOF
11364
11365
11366 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11367 madvise stpcpy strnlen strsignal strverscmp \
11368 strtol strtoul strtoll strtoull setenv unsetenv \
11369 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11370 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
11371 do
11372 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11374 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11375 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #undef $ac_tr_decl
11381 #define $ac_tr_decl 1
11382
11383 #include "ansidecl.h"
11384 #include "system.h"
11385
11386 int
11387 main ()
11388 {
11389 #ifndef $ac_func
11390 char *(*pfn) = (char *(*)) $ac_func ;
11391 #endif
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_cxx_try_compile "$LINENO"; then :
11397 eval "gcc_cv_have_decl_$ac_func=yes"
11398 else
11399 eval "gcc_cv_have_decl_$ac_func=no"
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 fi
11403
11404 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11406 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11407 #define $ac_tr_decl 1
11408 _ACEOF
11409
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11413 #define $ac_tr_decl 0
11414 _ACEOF
11415
11416 fi
11417
11418 done
11419
11420
11421 for ac_func in getrlimit setrlimit getrusage
11422 do
11423 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11426 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #undef $ac_tr_decl
11432 #define $ac_tr_decl 1
11433
11434 #include "ansidecl.h"
11435 #include "system.h"
11436 #ifdef HAVE_SYS_RESOURCE_H
11437 #include <sys/resource.h>
11438 #endif
11439
11440
11441 int
11442 main ()
11443 {
11444 #ifndef $ac_func
11445 char *(*pfn) = (char *(*)) $ac_func ;
11446 #endif
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_cxx_try_compile "$LINENO"; then :
11452 eval "gcc_cv_have_decl_$ac_func=yes"
11453 else
11454 eval "gcc_cv_have_decl_$ac_func=no"
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 fi
11458
11459 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11462 #define $ac_tr_decl 1
11463 _ACEOF
11464
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11468 #define $ac_tr_decl 0
11469 _ACEOF
11470
11471 fi
11472
11473 done
11474
11475
11476 for ac_func in mallinfo
11477 do
11478 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11480 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11481 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 #undef $ac_tr_decl
11487 #define $ac_tr_decl 1
11488
11489 #include "ansidecl.h"
11490 #include "system.h"
11491 #ifdef HAVE_MALLOC_H
11492 #include <malloc.h>
11493 #endif
11494
11495
11496 int
11497 main ()
11498 {
11499 #ifndef $ac_func
11500 char *(*pfn) = (char *(*)) $ac_func ;
11501 #endif
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 if ac_fn_cxx_try_compile "$LINENO"; then :
11507 eval "gcc_cv_have_decl_$ac_func=yes"
11508 else
11509 eval "gcc_cv_have_decl_$ac_func=no"
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 fi
11513
11514 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11517 #define $ac_tr_decl 1
11518 _ACEOF
11519
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11523 #define $ac_tr_decl 0
11524 _ACEOF
11525
11526 fi
11527
11528 done
11529
11530
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533
11534 #include "ansidecl.h"
11535 #include "system.h"
11536 #ifdef HAVE_SYS_RESOURCE_H
11537 #include <sys/resource.h>
11538 #endif
11539
11540 int
11541 main ()
11542 {
11543 rlim_t l = 0;
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_cxx_try_compile "$LINENO"; then :
11549
11550 else
11551
11552 $as_echo "#define rlim_t long" >>confdefs.h
11553
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556
11557 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11558 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11559 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11560 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11561 for ac_func in ldgetname
11562 do
11563 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11565 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11566 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571 #undef $ac_tr_decl
11572 #define $ac_tr_decl 1
11573
11574 #include "ansidecl.h"
11575 #include "system.h"
11576 #ifdef HAVE_LDFCN_H
11577 #undef FREAD
11578 #undef FWRITE
11579 #include <ldfcn.h>
11580 #endif
11581
11582
11583 int
11584 main ()
11585 {
11586 #ifndef $ac_func
11587 char *(*pfn) = (char *(*)) $ac_func ;
11588 #endif
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_cxx_try_compile "$LINENO"; then :
11594 eval "gcc_cv_have_decl_$ac_func=yes"
11595 else
11596 eval "gcc_cv_have_decl_$ac_func=no"
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 fi
11600
11601 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11604 #define $ac_tr_decl 1
11605 _ACEOF
11606
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11610 #define $ac_tr_decl 0
11611 _ACEOF
11612
11613 fi
11614
11615 done
11616
11617
11618 for ac_func in times
11619 do
11620 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11622 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11623 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #undef $ac_tr_decl
11629 #define $ac_tr_decl 1
11630
11631 #include "ansidecl.h"
11632 #include "system.h"
11633 #ifdef HAVE_SYS_TIMES_H
11634 #include <sys/times.h>
11635 #endif
11636
11637
11638 int
11639 main ()
11640 {
11641 #ifndef $ac_func
11642 char *(*pfn) = (char *(*)) $ac_func ;
11643 #endif
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_cxx_try_compile "$LINENO"; then :
11649 eval "gcc_cv_have_decl_$ac_func=yes"
11650 else
11651 eval "gcc_cv_have_decl_$ac_func=no"
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654 fi
11655
11656 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11659 #define $ac_tr_decl 1
11660 _ACEOF
11661
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11665 #define $ac_tr_decl 0
11666 _ACEOF
11667
11668 fi
11669
11670 done
11671
11672
11673 for ac_func in sigaltstack
11674 do
11675 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11677 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11678 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683 #undef $ac_tr_decl
11684 #define $ac_tr_decl 1
11685
11686 #include "ansidecl.h"
11687 #include "system.h"
11688 #include <signal.h>
11689
11690
11691 int
11692 main ()
11693 {
11694 #ifndef $ac_func
11695 char *(*pfn) = (char *(*)) $ac_func ;
11696 #endif
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_cxx_try_compile "$LINENO"; then :
11702 eval "gcc_cv_have_decl_$ac_func=yes"
11703 else
11704 eval "gcc_cv_have_decl_$ac_func=no"
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 fi
11708
11709 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11712 #define $ac_tr_decl 1
11713 _ACEOF
11714
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11718 #define $ac_tr_decl 0
11719 _ACEOF
11720
11721 fi
11722
11723 done
11724
11725
11726 # More time-related stuff.
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11728 $as_echo_n "checking for struct tms... " >&6; }
11729 if ${ac_cv_struct_tms+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11735
11736 #include "ansidecl.h"
11737 #include "system.h"
11738 #ifdef HAVE_SYS_TIMES_H
11739 #include <sys/times.h>
11740 #endif
11741
11742 int
11743 main ()
11744 {
11745 struct tms tms;
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_cxx_try_compile "$LINENO"; then :
11751 ac_cv_struct_tms=yes
11752 else
11753 ac_cv_struct_tms=no
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11758 $as_echo "$ac_cv_struct_tms" >&6; }
11759 if test $ac_cv_struct_tms = yes; then
11760
11761 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11762
11763 fi
11764
11765 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11766 # revisit after autoconf 2.50.
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11768 $as_echo_n "checking for clock_t... " >&6; }
11769 if ${gcc_cv_type_clock_t+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775
11776 #include "ansidecl.h"
11777 #include "system.h"
11778
11779 int
11780 main ()
11781 {
11782 clock_t x;
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_cxx_try_compile "$LINENO"; then :
11788 gcc_cv_type_clock_t=yes
11789 else
11790 gcc_cv_type_clock_t=no
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11795 $as_echo "$gcc_cv_type_clock_t" >&6; }
11796 if test $gcc_cv_type_clock_t = yes; then
11797
11798 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11799
11800 fi
11801
11802 # Check if F_SETLKW is supported by fcntl.
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11804 $as_echo_n "checking for F_SETLKW... " >&6; }
11805 if ${ac_cv_f_setlkw+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811
11812 #include <fcntl.h>
11813 int
11814 main ()
11815 {
11816
11817 struct flock fl;
11818 fl.l_whence = 0;
11819 fl.l_start = 0;
11820 fl.l_len = 0;
11821 fl.l_pid = 0;
11822 return fcntl (1, F_SETLKW, &fl);
11823 ;
11824 return 0;
11825 }
11826 _ACEOF
11827 if ac_fn_cxx_try_compile "$LINENO"; then :
11828 ac_cv_f_setlkw=yes
11829 else
11830 ac_cv_f_setlkw=no
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11835 $as_echo "$ac_cv_f_setlkw" >&6; }
11836 if test $ac_cv_f_setlkw = yes; then
11837
11838 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11839
11840 fi
11841
11842 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11843 CFLAGS="$saved_CFLAGS"
11844 CXXFLAGS="$saved_CXXFLAGS"
11845
11846 # mkdir takes a single argument on some systems.
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11848 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11849 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854
11855 #include <sys/types.h>
11856 #ifdef HAVE_SYS_STAT_H
11857 # include <sys/stat.h>
11858 #endif
11859 #ifdef HAVE_UNISTD_H
11860 # include <unistd.h>
11861 #endif
11862 #ifdef HAVE_DIRECT_H
11863 # include <direct.h>
11864 #endif
11865 int
11866 main ()
11867 {
11868 mkdir ("foo", 0);
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_cxx_try_compile "$LINENO"; then :
11874 gcc_cv_mkdir_takes_one_arg=no
11875 else
11876 gcc_cv_mkdir_takes_one_arg=yes
11877 fi
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11881 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11882 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11883
11884 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11885
11886 fi
11887
11888
11889 # File extensions
11890 manext='.1'
11891 objext='.o'
11892
11893
11894
11895 # With Setjmp/Longjmp based exception handling.
11896 # Check whether --enable-sjlj-exceptions was given.
11897 if test "${enable_sjlj_exceptions+set}" = set; then :
11898 enableval=$enable_sjlj_exceptions; case $target in
11899 *-*-hpux10*)
11900 if test $enableval != yes; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11902 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11903 enableval=yes
11904 fi
11905 ;;
11906 esac
11907 force_sjlj_exceptions=yes
11908 else
11909 case $target in
11910 *-*-hpux10*)
11911 force_sjlj_exceptions=yes
11912 enableval=yes
11913 ;;
11914 lm32*-*-*)
11915 force_sjlj_exceptions=yes
11916 enableval=yes
11917 ;;
11918 *)
11919 force_sjlj_exceptions=no
11920 ;;
11921 esac
11922 fi
11923
11924 if test $force_sjlj_exceptions = yes; then
11925 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11926
11927 cat >>confdefs.h <<_ACEOF
11928 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11929 _ACEOF
11930
11931 fi
11932
11933 # --------------------------------------------------------
11934 # Build, host, and target specific configuration fragments
11935 # --------------------------------------------------------
11936
11937 # Collect build-machine-specific information.
11938 . ${srcdir}/config.build || exit 1
11939
11940 # Collect host-machine-specific information.
11941 . ${srcdir}/config.host || exit 1
11942
11943 target_gtfiles=
11944
11945 # Collect target-machine-specific information.
11946 . ${srcdir}/config.gcc || exit 1
11947
11948 extra_objs="${host_extra_objs} ${extra_objs}"
11949 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11950
11951 # Default the target-machine variables that were not explicitly set.
11952 if test x"$tm_file" = x
11953 then tm_file=$cpu_type/$cpu_type.h; fi
11954
11955 if test x"$extra_headers" = x
11956 then extra_headers=; fi
11957
11958 if test x$md_file = x
11959 then md_file=$cpu_type/$cpu_type.md; fi
11960
11961 if test x$out_file = x
11962 then out_file=$cpu_type/$cpu_type.c; fi
11963
11964 if test x"$tmake_file" = x
11965 then tmake_file=$cpu_type/t-$cpu_type
11966 fi
11967
11968 # Support --enable-initfini-array.
11969 if test x$enable_initfini_array != xno; then
11970 tm_file="${tm_file} initfini-array.h"
11971 fi
11972
11973 if test x"$dwarf2" = xyes
11974 then tm_file="$tm_file tm-dwarf2.h"
11975 fi
11976
11977 # Say what files are being used for the output code and MD file.
11978 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11979 echo "Using \`$srcdir/config/$md_file' as machine description file."
11980
11981 # If any of the xm_file variables contain nonexistent files, warn
11982 # about them and drop them.
11983
11984 bx=
11985 for x in $build_xm_file; do
11986 if test -f $srcdir/config/$x
11987 then bx="$bx $x"
11988 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11989 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11990 fi
11991 done
11992 build_xm_file="$bx"
11993
11994 hx=
11995 for x in $host_xm_file; do
11996 if test -f $srcdir/config/$x
11997 then hx="$hx $x"
11998 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11999 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12000 fi
12001 done
12002 host_xm_file="$hx"
12003
12004 tx=
12005 for x in $xm_file; do
12006 if test -f $srcdir/config/$x
12007 then tx="$tx $x"
12008 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12009 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12010 fi
12011 done
12012 xm_file="$tx"
12013
12014 count=a
12015 for f in $tm_file; do
12016 count=${count}x
12017 done
12018 if test $count = ax; then
12019 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12020 else
12021 echo "Using the following target machine macro files:"
12022 for f in $tm_file; do
12023 echo " $srcdir/config/$f"
12024 done
12025 fi
12026
12027 if test x$use_long_long_for_widest_fast_int = xyes; then
12028
12029 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12030
12031 fi
12032
12033 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12034
12035 cat >>confdefs.h <<_ACEOF
12036 #define HAVE_GNU_LD $gnu_ld_bool
12037 _ACEOF
12038
12039
12040 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12041
12042 cat >>confdefs.h <<_ACEOF
12043 #define HAVE_GNU_AS $gnu_as_bool
12044 _ACEOF
12045
12046
12047 count=a
12048 for f in $host_xm_file; do
12049 count=${count}x
12050 done
12051 if test $count = a; then
12052 :
12053 elif test $count = ax; then
12054 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12055 else
12056 echo "Using the following host machine macro files:"
12057 for f in $host_xm_file; do
12058 echo " $srcdir/config/$f"
12059 done
12060 fi
12061 echo "Using ${out_host_hook_obj} for host machine hooks."
12062
12063 if test "$host_xm_file" != "$build_xm_file"; then
12064 count=a
12065 for f in $build_xm_file; do
12066 count=${count}x
12067 done
12068 if test $count = a; then
12069 :
12070 elif test $count = ax; then
12071 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12072 else
12073 echo "Using the following build machine macro files:"
12074 for f in $build_xm_file; do
12075 echo " $srcdir/config/$f"
12076 done
12077 fi
12078 fi
12079
12080 if test -n "$configured_native_system_header_dir"; then
12081 native_system_header_dir=$configured_native_system_header_dir
12082 fi
12083 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12084
12085
12086 case ${host} in
12087 powerpc*-*-darwin*)
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12089 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12090 if ${gcc_cv_mcontext_underscores+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 #include <sys/cdefs.h>
12097 #include <sys/signal.h>
12098 #include <ucontext.h>
12099 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12100
12101 _ACEOF
12102 if ac_fn_cxx_try_compile "$LINENO"; then :
12103 gcc_cv_mcontext_underscores=no
12104 else
12105 gcc_cv_mcontext_underscores=yes
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12110 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12111 if test $gcc_cv_mcontext_underscores = yes; then
12112
12113 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12114
12115 fi
12116 ;;
12117 esac
12118
12119 # ---------
12120 # Threading
12121 # ---------
12122
12123 # Check if a valid thread package
12124 case ${enable_threads} in
12125 "" | no)
12126 # No threads
12127 target_thread_file='single'
12128 ;;
12129 yes)
12130 # default
12131 target_thread_file='single'
12132 ;;
12133 aix | dce | lynx | mipssde | posix | rtems | \
12134 single | tpf | vxworks | win32)
12135 target_thread_file=${enable_threads}
12136 ;;
12137 *)
12138 echo "${enable_threads} is an unknown thread package" 1>&2
12139 exit 1
12140 ;;
12141 esac
12142
12143 if test x${thread_file} = x; then
12144 # No thread file set by target-specific clauses in config.gcc,
12145 # so use file chosen by default logic above
12146 thread_file=${target_thread_file}
12147 fi
12148
12149 # --------
12150 # UNSORTED
12151 # --------
12152
12153 use_cxa_atexit=no
12154 if test x$enable___cxa_atexit = xyes || \
12155 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12156 if test x$host = x$target; then
12157 case $host in
12158 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12159 # keyed to flag_use_cxa_atexit
12160 *-*-mingw32*)
12161 use_cxa_atexit=yes
12162 ;;
12163 powerpc-ibm-aix*)
12164 use_cxa_atexit=yes
12165 ;;
12166 *)
12167 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12168 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12169 use_cxa_atexit=yes
12170 else
12171 echo "__cxa_atexit can't be enabled on this target"
12172 fi
12173
12174 ;;
12175 esac
12176 else
12177 # We can't check for __cxa_atexit when building a cross, so assume
12178 # it is available
12179 use_cxa_atexit=yes
12180 fi
12181 if test x$use_cxa_atexit = xyes; then
12182
12183 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12184
12185 fi
12186 fi
12187
12188 # Look for a file containing extra machine modes.
12189 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12190 extra_modes_file='$(srcdir)'/config/${extra_modes}
12191
12192
12193 cat >>confdefs.h <<_ACEOF
12194 #define EXTRA_MODES_FILE "config/$extra_modes"
12195 _ACEOF
12196
12197 fi
12198
12199 # Convert extra_options into a form suitable for Makefile use.
12200 extra_opt_files=
12201 all_opt_files=
12202 for f in $extra_options; do
12203 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12204 all_opt_files="$all_opt_files $srcdir/config/$f"
12205 done
12206
12207
12208 # auto-host.h is the file containing items generated by autoconf and is
12209 # the first file included by config.h.
12210 # If host=build, it is correct to have bconfig include auto-host.h
12211 # as well. If host!=build, we are in error and need to do more
12212 # work to find out the build config parameters.
12213 if test x$host = x$build
12214 then
12215 build_auto=auto-host.h
12216 HAVE_AUTO_BUILD='# '
12217 else
12218 # We create a subdir, then run autoconf in the subdir.
12219 # To prevent recursion we set host and build for the new
12220 # invocation of configure to the build for this invocation
12221 # of configure.
12222 tempdir=build.$$
12223 rm -rf $tempdir
12224 mkdir $tempdir
12225 cd $tempdir
12226 case ${srcdir} in
12227 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12228 *) realsrcdir=../${srcdir};;
12229 esac
12230 # Clearing GMPINC is necessary to prevent host headers being
12231 # used by the build compiler. Defining GENERATOR_FILE stops
12232 # system.h from including gmp.h.
12233 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12234 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12235 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12236 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12237 ${realsrcdir}/configure \
12238 --enable-languages=${enable_languages-all} \
12239 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12240 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12241 --target=$target_alias --host=$build_alias \
12242 --build=$build_alias || exit # retaining $tempdir
12243
12244 # We just finished tests for the build machine, so rename
12245 # the file auto-build.h in the gcc directory.
12246 mv auto-host.h ../auto-build.h
12247 cd ..
12248 rm -rf $tempdir
12249 build_auto=auto-build.h
12250 HAVE_AUTO_BUILD=
12251 fi
12252
12253
12254
12255 tm_file="${tm_file} defaults.h"
12256 tm_p_file="${tm_p_file} tm-preds.h"
12257 tm_d_file="${tm_d_file} defaults.h"
12258 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12259 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12260 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12261 # put this back in temporarily.
12262 xm_file="auto-host.h ansidecl.h ${xm_file}"
12263
12264 # --------
12265 # UNSORTED
12266 # --------
12267
12268 # Compile in configure arguments.
12269 if test -f configargs.h ; then
12270 # Being re-configured.
12271 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12272 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12273 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12274 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12275 fi
12276 else
12277 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12278 fi
12279
12280 # Double all backslashes and backslash all quotes to turn
12281 # gcc_config_arguments into a C string.
12282 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12283 $gcc_config_arguments
12284 EOF
12285 gcc_config_arguments_str=`cat conftest.out`
12286 rm -f conftest.out
12287
12288 cat > configargs.h <<EOF
12289 /* Generated automatically. */
12290 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12291 static const char thread_model[] = "$thread_file";
12292
12293 static const struct {
12294 const char *name, *value;
12295 } configure_default_options[] = $configure_default_options;
12296 EOF
12297
12298 gcc_BASEVER=`cat $srcdir/BASE-VER`
12299 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12300 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12301 if test -f $srcdir/REVISION ; then
12302 gcc_REVISION=`cat $srcdir/REVISION`
12303 else
12304 gcc_REVISION=""
12305 fi
12306 cat > plugin-version.h <<EOF
12307 #include "configargs.h"
12308
12309 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12310 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12311 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12312 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12313
12314 static char basever[] = "$gcc_BASEVER";
12315 static char datestamp[] = "$gcc_DATESTAMP";
12316 static char devphase[] = "$gcc_DEVPHASE";
12317 static char revision[] = "$gcc_REVISION";
12318
12319 /* FIXME plugins: We should make the version information more precise.
12320 One way to do is to add a checksum. */
12321
12322 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12323 devphase, revision,
12324 configuration_arguments};
12325 EOF
12326
12327 # Determine what GCC version number to use in filesystem paths.
12328
12329 get_gcc_base_ver="cat"
12330
12331 # Check whether --with-gcc-major-version-only was given.
12332 if test "${with_gcc_major_version_only+set}" = set; then :
12333 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12334 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12335 fi
12336
12337 fi
12338
12339
12340
12341
12342 # Internationalization
12343 # If we haven't got the data from the intl directory,
12344 # assume NLS is disabled.
12345 USE_NLS=no
12346 LIBINTL=
12347 LIBINTL_DEP=
12348 INCINTL=
12349 XGETTEXT=
12350 GMSGFMT=
12351 POSUB=
12352
12353 if test -f ../intl/config.intl; then
12354 . ../intl/config.intl
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12357 $as_echo_n "checking whether NLS is requested... " >&6; }
12358 if test x"$USE_NLS" != xyes; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12363 $as_echo "yes" >&6; }
12364
12365 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12366
12367
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12369 $as_echo_n "checking for catalogs to be installed... " >&6; }
12370 # Look for .po and .gmo files in the source directory.
12371 CATALOGS=
12372 XLINGUAS=
12373 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12374 # If there aren't any .gmo files the shell will give us the
12375 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12376 # weeded out.
12377 case "$cat" in *\**)
12378 continue;;
12379 esac
12380 # The quadruple backslash is collapsed to a double backslash
12381 # by the backticks, then collapsed again by the double quotes,
12382 # leaving us with one backslash in the sed expression (right
12383 # before the dot that mustn't act as a wildcard).
12384 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12385 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12386 # The user is allowed to set LINGUAS to a list of languages to
12387 # install catalogs for. If it's empty that means "all of them."
12388 if test "x$LINGUAS" = x; then
12389 CATALOGS="$CATALOGS $cat"
12390 XLINGUAS="$XLINGUAS $lang"
12391 else
12392 case "$LINGUAS" in *$lang*)
12393 CATALOGS="$CATALOGS $cat"
12394 XLINGUAS="$XLINGUAS $lang"
12395 ;;
12396 esac
12397 fi
12398 done
12399 LINGUAS="$XLINGUAS"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12401 $as_echo "$LINGUAS" >&6; }
12402
12403
12404 DATADIRNAME=share
12405
12406 INSTOBJEXT=.mo
12407
12408 GENCAT=gencat
12409
12410 CATOBJEXT=.gmo
12411
12412 fi
12413
12414 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12415 # -liconv on the link line twice.
12416 case "$LIBINTL" in *$LIBICONV*)
12417 LIBICONV= ;;
12418 esac
12419
12420 # Check whether --enable-secureplt was given.
12421 if test "${enable_secureplt+set}" = set; then :
12422 enableval=$enable_secureplt;
12423 fi
12424
12425
12426 # Check whether --enable-mingw-wildcard was given.
12427 if test "${enable_mingw_wildcard+set}" = set; then :
12428 enableval=$enable_mingw_wildcard;
12429 else
12430 enable_mingw_wildcard=platform
12431 fi
12432
12433 if test x"$enable_mingw_wildcard" != xplatform ; then :
12434
12435 cat >>confdefs.h <<_ACEOF
12436 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12437 _ACEOF
12438
12439 fi
12440
12441 # Check whether --enable-large-address-aware was given.
12442 if test "${enable_large_address_aware+set}" = set; then :
12443 enableval=$enable_large_address_aware;
12444 fi
12445
12446 if test x"$enable_large_address_aware" = xyes; then :
12447
12448 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12449
12450 fi
12451
12452 # Check whether --enable-leading-mingw64-underscores was given.
12453 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12454 enableval=$enable_leading_mingw64_underscores;
12455 fi
12456
12457 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12458
12459 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12460
12461 fi
12462
12463 # Check whether --enable-cld was given.
12464 if test "${enable_cld+set}" = set; then :
12465 enableval=$enable_cld;
12466 else
12467 enable_cld=no
12468 fi
12469
12470
12471 # Check whether --enable-frame-pointer was given.
12472 if test "${enable_frame_pointer+set}" = set; then :
12473 enableval=$enable_frame_pointer;
12474 else
12475
12476 case $target_os in
12477 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12478 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12479 enable_frame_pointer=no
12480 ;;
12481 *)
12482 enable_frame_pointer=yes
12483 ;;
12484 esac
12485
12486 fi
12487
12488
12489 case $target in
12490 i[34567]86-*-* | x86_64-*-*)
12491 if test "x$enable_cld" = xyes; then
12492 tm_defines="${tm_defines} USE_IX86_CLD=1"
12493 fi
12494 if test "x$enable_frame_pointer" = xyes; then
12495 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12496 fi
12497 ;;
12498 esac
12499
12500 # Windows32 Registry support for specifying GCC installation paths.
12501 # Check whether --enable-win32-registry was given.
12502 if test "${enable_win32_registry+set}" = set; then :
12503 enableval=$enable_win32_registry;
12504 fi
12505
12506
12507 case $host_os in
12508 win32 | pe | cygwin* | mingw32*)
12509 if test "x$enable_win32_registry" != xno; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12512 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 ac_func_search_save_LIBS=$LIBS
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char RegOpenKeyExA ();
12526 int
12527 main ()
12528 {
12529 return RegOpenKeyExA ();
12530 ;
12531 return 0;
12532 }
12533 _ACEOF
12534 for ac_lib in '' advapi32; do
12535 if test -z "$ac_lib"; then
12536 ac_res="none required"
12537 else
12538 ac_res=-l$ac_lib
12539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12540 fi
12541 if ac_fn_cxx_try_link "$LINENO"; then :
12542 ac_cv_search_RegOpenKeyExA=$ac_res
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext
12546 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12547 break
12548 fi
12549 done
12550 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12551
12552 else
12553 ac_cv_search_RegOpenKeyExA=no
12554 fi
12555 rm conftest.$ac_ext
12556 LIBS=$ac_func_search_save_LIBS
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12560 ac_res=$ac_cv_search_RegOpenKeyExA
12561 if test "$ac_res" != no; then :
12562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12563
12564 else
12565 enable_win32_registry=no
12566 fi
12567
12568 fi
12569
12570 if test "x$enable_win32_registry" != xno; then
12571
12572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12573
12574
12575 if test "x$enable_win32_registry" != xyes \
12576 && test "x$enable_win32_registry" != x; then
12577
12578 cat >>confdefs.h <<_ACEOF
12579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12580 _ACEOF
12581
12582 fi
12583 fi
12584 ;;
12585 esac
12586
12587 # Get an absolute path to the GCC top-level source directory
12588 holddir=`${PWDCMD-pwd}`
12589 cd $srcdir
12590 topdir=`${PWDCMD-pwd}`
12591 cd $holddir
12592
12593 # Conditionalize the makefile for this host machine.
12594 xmake_file=
12595 for f in ${host_xmake_file}
12596 do
12597 if test -f ${srcdir}/config/$f
12598 then
12599 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12600 fi
12601 done
12602
12603 # Conditionalize the makefile for this target machine.
12604 tmake_file_=
12605 for f in ${tmake_file}
12606 do
12607 if test -f ${srcdir}/config/$f
12608 then
12609 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12610 fi
12611 done
12612 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12613
12614 out_object_file=`basename $out_file .c`.o
12615 common_out_object_file=`basename $common_out_file .c`.o
12616
12617 tm_file_list="options.h"
12618 tm_include_list="options.h insn-constants.h"
12619 for f in $tm_file; do
12620 case $f in
12621 ./* )
12622 f=`echo $f | sed 's/^..//'`
12623 tm_file_list="${tm_file_list} $f"
12624 tm_include_list="${tm_include_list} $f"
12625 ;;
12626 defaults.h )
12627 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12628 tm_include_list="${tm_include_list} $f"
12629 ;;
12630 * )
12631 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12632 tm_include_list="${tm_include_list} config/$f"
12633 ;;
12634 esac
12635 done
12636
12637 tm_p_file_list=
12638 tm_p_include_list=
12639 for f in $tm_p_file; do
12640 case $f in
12641 tm-preds.h )
12642 tm_p_file_list="${tm_p_file_list} $f"
12643 tm_p_include_list="${tm_p_include_list} $f"
12644 ;;
12645 * )
12646 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12647 tm_p_include_list="${tm_p_include_list} config/$f"
12648 esac
12649 done
12650
12651 tm_d_file_list=
12652 tm_d_include_list="options.h insn-constants.h"
12653 for f in $tm_d_file; do
12654 case $f in
12655 defaults.h )
12656 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12657 tm_d_include_list="${tm_d_include_list} $f"
12658 ;;
12659 * )
12660 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12661 tm_d_include_list="${tm_d_include_list} config/$f"
12662 ;;
12663 esac
12664 done
12665
12666 xm_file_list=
12667 xm_include_list=
12668 for f in $xm_file; do
12669 case $f in
12670 ansidecl.h )
12671 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12672 xm_include_list="${xm_include_list} $f"
12673 ;;
12674 auto-host.h )
12675 xm_file_list="${xm_file_list} $f"
12676 xm_include_list="${xm_include_list} $f"
12677 ;;
12678 * )
12679 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12680 xm_include_list="${xm_include_list} config/$f"
12681 ;;
12682 esac
12683 done
12684
12685 host_xm_file_list=
12686 host_xm_include_list=
12687 for f in $host_xm_file; do
12688 case $f in
12689 ansidecl.h )
12690 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12691 host_xm_include_list="${host_xm_include_list} $f"
12692 ;;
12693 auto-host.h )
12694 host_xm_file_list="${host_xm_file_list} $f"
12695 host_xm_include_list="${host_xm_include_list} $f"
12696 ;;
12697 * )
12698 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12699 host_xm_include_list="${host_xm_include_list} config/$f"
12700 ;;
12701 esac
12702 done
12703
12704 build_xm_file_list=
12705 for f in $build_xm_file; do
12706 case $f in
12707 ansidecl.h )
12708 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12709 build_xm_include_list="${build_xm_include_list} $f"
12710 ;;
12711 auto-build.h | auto-host.h )
12712 build_xm_file_list="${build_xm_file_list} $f"
12713 build_xm_include_list="${build_xm_include_list} $f"
12714 ;;
12715 * )
12716 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12717 build_xm_include_list="${build_xm_include_list} config/$f"
12718 ;;
12719 esac
12720 done
12721
12722 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12723 # cross-compiler which does not use the native headers and libraries.
12724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12725 CROSS=
12726 ALL=all.internal
12727 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12728 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12729
12730 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12731 test x$build != x$host || test "x$with_build_sysroot" != x; then
12732 if test "x$with_build_sysroot" != x; then
12733 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12734 else
12735 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12736 fi
12737
12738 if test x$host != x$target
12739 then
12740 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12741 ALL=all.cross
12742 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12743 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12744 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12745 fi
12746
12747 if test "x$with_build_sysroot" != "x"; then
12748 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12749 elif test "x$with_sysroot" = x; then
12750 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12751 elif test "x$with_sysroot" = xyes; then
12752 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12753 else
12754 target_header_dir="${with_sysroot}${native_system_header_dir}"
12755 fi
12756 else
12757 target_header_dir=${native_system_header_dir}
12758 fi
12759
12760 # If this is a cross-compiler that does not
12761 # have its own set of headers then define
12762 # inhibit_libc
12763
12764 # If this is using newlib, without having the headers available now,
12765 # then define inhibit_libc in LIBGCC2_CFLAGS.
12766 # This prevents libgcc2 from containing any code which requires libc
12767 # support.
12768 : ${inhibit_libc=false}
12769 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12770 test x$with_newlib = xyes ; } &&
12771 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12772 inhibit_libc=true
12773 fi
12774
12775
12776 # When building gcc with a cross-compiler, we need to adjust things so
12777 # that the generator programs are still built with the native compiler.
12778 # Also, we cannot run fixincludes.
12779
12780 # These are the normal (build=host) settings:
12781 CC_FOR_BUILD='$(CC)'
12782 CXX_FOR_BUILD='$(CXX)'
12783 BUILD_CFLAGS='$(ALL_CFLAGS)'
12784 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12785 BUILD_LDFLAGS='$(LDFLAGS)'
12786 STMP_FIXINC=stmp-fixinc
12787
12788 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12789 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12790
12791 # And these apply if build != host, or we are generating coverage data
12792 if test x$build != x$host || test "x$coverage_flags" != x
12793 then
12794 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12795 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12796 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12797
12798 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12799 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12800 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12801 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12802 fi
12803
12804
12805
12806 # Expand extra_headers to include complete path.
12807 # This substitutes for lots of t-* files.
12808 extra_headers_list=
12809 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12810 for file in ${extra_headers} ; do
12811 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12812 done
12813
12814 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12815 if test x"$use_gcc_tgmath" = xyes
12816 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12817 fi
12818
12819 # Define collect2 in Makefile.
12820 case $host_can_use_collect2 in
12821 no) collect2= ;;
12822 *) collect2='collect2$(exeext)' ;;
12823 esac
12824
12825
12826 # Add a definition of USE_COLLECT2 if system wants one.
12827 case $use_collect2 in
12828 no) use_collect2= ;;
12829 "") ;;
12830 *)
12831 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12832 xm_defines="${xm_defines} USE_COLLECT2"
12833 case $host_can_use_collect2 in
12834 no)
12835 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12836 ;;
12837 esac
12838 ;;
12839 esac
12840
12841
12842 cat >>confdefs.h <<_ACEOF
12843 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12844 _ACEOF
12845
12846
12847 # ---------------------------
12848 # Assembler & linker features
12849 # ---------------------------
12850
12851 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12852 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12853 # However when ld-new is first executed from the build tree, libtool will
12854 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12855 # to the build tree. While doing this we need to use the previous-stage
12856 # linker, or we have an infinite loop. The presence of a shell script as
12857 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12858 # the gcc/collect-ld script. So we need to know how libtool works, or
12859 # exec-tool will fail.
12860
12861
12862 case `pwd` in
12863 *\ * | *\ *)
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12865 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12866 esac
12867
12868
12869
12870 macro_version='2.2.7a'
12871 macro_revision='1.3134'
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885 ltmain="$ac_aux_dir/ltmain.sh"
12886
12887 # Backslashify metacharacters that are still active within
12888 # double-quoted strings.
12889 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12890
12891 # Same as above, but do not quote variable references.
12892 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12893
12894 # Sed substitution to delay expansion of an escaped shell variable in a
12895 # double_quote_subst'ed string.
12896 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12897
12898 # Sed substitution to delay expansion of an escaped single quote.
12899 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12900
12901 # Sed substitution to avoid accidental globbing in evaled expressions
12902 no_glob_subst='s/\*/\\\*/g'
12903
12904 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12905 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12906 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12909 $as_echo_n "checking how to print strings... " >&6; }
12910 # Test print first, because it will be a builtin if present.
12911 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12912 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12913 ECHO='print -r --'
12914 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12915 ECHO='printf %s\n'
12916 else
12917 # Use this function as a fallback that always works.
12918 func_fallback_echo ()
12919 {
12920 eval 'cat <<_LTECHO_EOF
12921 $1
12922 _LTECHO_EOF'
12923 }
12924 ECHO='func_fallback_echo'
12925 fi
12926
12927 # func_echo_all arg...
12928 # Invoke $ECHO with all args, space-separated.
12929 func_echo_all ()
12930 {
12931 $ECHO ""
12932 }
12933
12934 case "$ECHO" in
12935 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12936 $as_echo "printf" >&6; } ;;
12937 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12938 $as_echo "print -r" >&6; } ;;
12939 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12940 $as_echo "cat" >&6; } ;;
12941 esac
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12958 if ${ac_cv_path_SED+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12962 for ac_i in 1 2 3 4 5 6 7; do
12963 ac_script="$ac_script$as_nl$ac_script"
12964 done
12965 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12966 { ac_script=; unset ac_script;}
12967 if test -z "$SED"; then
12968 ac_path_SED_found=false
12969 # Loop through the user's path and test for each of PROGNAME-LIST
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12972 do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_prog in sed gsed; do
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12978 as_fn_executable_p "$ac_path_SED" || continue
12979 # Check for GNU ac_path_SED and select it if it is found.
12980 # Check for GNU $ac_path_SED
12981 case `"$ac_path_SED" --version 2>&1` in
12982 *GNU*)
12983 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12984 *)
12985 ac_count=0
12986 $as_echo_n 0123456789 >"conftest.in"
12987 while :
12988 do
12989 cat "conftest.in" "conftest.in" >"conftest.tmp"
12990 mv "conftest.tmp" "conftest.in"
12991 cp "conftest.in" "conftest.nl"
12992 $as_echo '' >> "conftest.nl"
12993 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12995 as_fn_arith $ac_count + 1 && ac_count=$as_val
12996 if test $ac_count -gt ${ac_path_SED_max-0}; then
12997 # Best one so far, save it but keep looking for a better one
12998 ac_cv_path_SED="$ac_path_SED"
12999 ac_path_SED_max=$ac_count
13000 fi
13001 # 10*(2^10) chars as input seems more than enough
13002 test $ac_count -gt 10 && break
13003 done
13004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13005 esac
13006
13007 $ac_path_SED_found && break 3
13008 done
13009 done
13010 done
13011 IFS=$as_save_IFS
13012 if test -z "$ac_cv_path_SED"; then
13013 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13014 fi
13015 else
13016 ac_cv_path_SED=$SED
13017 fi
13018
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13021 $as_echo "$ac_cv_path_SED" >&6; }
13022 SED="$ac_cv_path_SED"
13023 rm -f conftest.sed
13024
13025 test -z "$SED" && SED=sed
13026 Xsed="$SED -e 1s/^X//"
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13039 $as_echo_n "checking for fgrep... " >&6; }
13040 if ${ac_cv_path_FGREP+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13044 then ac_cv_path_FGREP="$GREP -F"
13045 else
13046 if test -z "$FGREP"; then
13047 ac_path_FGREP_found=false
13048 # Loop through the user's path and test for each of PROGNAME-LIST
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13051 do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_prog in fgrep; do
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13057 as_fn_executable_p "$ac_path_FGREP" || continue
13058 # Check for GNU ac_path_FGREP and select it if it is found.
13059 # Check for GNU $ac_path_FGREP
13060 case `"$ac_path_FGREP" --version 2>&1` in
13061 *GNU*)
13062 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13063 *)
13064 ac_count=0
13065 $as_echo_n 0123456789 >"conftest.in"
13066 while :
13067 do
13068 cat "conftest.in" "conftest.in" >"conftest.tmp"
13069 mv "conftest.tmp" "conftest.in"
13070 cp "conftest.in" "conftest.nl"
13071 $as_echo 'FGREP' >> "conftest.nl"
13072 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13074 as_fn_arith $ac_count + 1 && ac_count=$as_val
13075 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13076 # Best one so far, save it but keep looking for a better one
13077 ac_cv_path_FGREP="$ac_path_FGREP"
13078 ac_path_FGREP_max=$ac_count
13079 fi
13080 # 10*(2^10) chars as input seems more than enough
13081 test $ac_count -gt 10 && break
13082 done
13083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13084 esac
13085
13086 $ac_path_FGREP_found && break 3
13087 done
13088 done
13089 done
13090 IFS=$as_save_IFS
13091 if test -z "$ac_cv_path_FGREP"; then
13092 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13093 fi
13094 else
13095 ac_cv_path_FGREP=$FGREP
13096 fi
13097
13098 fi
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13101 $as_echo "$ac_cv_path_FGREP" >&6; }
13102 FGREP="$ac_cv_path_FGREP"
13103
13104
13105 test -z "$GREP" && GREP=grep
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125 # Check whether --with-gnu-ld was given.
13126 if test "${with_gnu_ld+set}" = set; then :
13127 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13128 else
13129 with_gnu_ld=no
13130 fi
13131
13132 ac_prog=ld
13133 if test "$GCC" = yes; then
13134 # Check if gcc -print-prog-name=ld gives a path.
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13136 $as_echo_n "checking for ld used by $CC... " >&6; }
13137 case $host in
13138 *-*-mingw*)
13139 # gcc leaves a trailing carriage return which upsets mingw
13140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13141 *)
13142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13143 esac
13144 case $ac_prog in
13145 # Accept absolute paths.
13146 [\\/]* | ?:[\\/]*)
13147 re_direlt='/[^/][^/]*/\.\./'
13148 # Canonicalize the pathname of ld
13149 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13150 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13151 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13152 done
13153 test -z "$LD" && LD="$ac_prog"
13154 ;;
13155 "")
13156 # If it fails, then pretend we aren't using GCC.
13157 ac_prog=ld
13158 ;;
13159 *)
13160 # If it is relative, then search for the first ld in PATH.
13161 with_gnu_ld=unknown
13162 ;;
13163 esac
13164 elif test "$with_gnu_ld" = yes; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13166 $as_echo_n "checking for GNU ld... " >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13169 $as_echo_n "checking for non-GNU ld... " >&6; }
13170 fi
13171 if ${lt_cv_path_LD+:} false; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 if test -z "$LD"; then
13175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13176 for ac_dir in $PATH; do
13177 IFS="$lt_save_ifs"
13178 test -z "$ac_dir" && ac_dir=.
13179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13180 lt_cv_path_LD="$ac_dir/$ac_prog"
13181 # Check to see if the program is GNU ld. I'd rather use --version,
13182 # but apparently some variants of GNU ld only accept -v.
13183 # Break only if it was the GNU/non-GNU ld that we prefer.
13184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13185 *GNU* | *'with BFD'*)
13186 test "$with_gnu_ld" != no && break
13187 ;;
13188 *)
13189 test "$with_gnu_ld" != yes && break
13190 ;;
13191 esac
13192 fi
13193 done
13194 IFS="$lt_save_ifs"
13195 else
13196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13197 fi
13198 fi
13199
13200 LD="$lt_cv_path_LD"
13201 if test -n "$LD"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13203 $as_echo "$LD" >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13207 fi
13208 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13211 if ${lt_cv_prog_gnu_ld+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13215 case `$LD -v 2>&1 </dev/null` in
13216 *GNU* | *'with BFD'*)
13217 lt_cv_prog_gnu_ld=yes
13218 ;;
13219 *)
13220 lt_cv_prog_gnu_ld=no
13221 ;;
13222 esac
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13225 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13226 with_gnu_ld=$lt_cv_prog_gnu_ld
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13237 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13238 if ${lt_cv_path_NM+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$NM"; then
13242 # Let the user override the test.
13243 lt_cv_path_NM="$NM"
13244 else
13245 lt_nm_to_check="${ac_tool_prefix}nm"
13246 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13247 lt_nm_to_check="$lt_nm_to_check nm"
13248 fi
13249 for lt_tmp_nm in $lt_nm_to_check; do
13250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13251 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13252 IFS="$lt_save_ifs"
13253 test -z "$ac_dir" && ac_dir=.
13254 tmp_nm="$ac_dir/$lt_tmp_nm"
13255 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13256 # Check to see if the nm accepts a BSD-compat flag.
13257 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13258 # nm: unknown option "B" ignored
13259 # Tru64's nm complains that /dev/null is an invalid object file
13260 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13261 */dev/null* | *'Invalid file or object type'*)
13262 lt_cv_path_NM="$tmp_nm -B"
13263 break
13264 ;;
13265 *)
13266 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13267 */dev/null*)
13268 lt_cv_path_NM="$tmp_nm -p"
13269 break
13270 ;;
13271 *)
13272 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13273 continue # so that we can try to find one that supports BSD flags
13274 ;;
13275 esac
13276 ;;
13277 esac
13278 fi
13279 done
13280 IFS="$lt_save_ifs"
13281 done
13282 : ${lt_cv_path_NM=no}
13283 fi
13284 fi
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13286 $as_echo "$lt_cv_path_NM" >&6; }
13287 if test "$lt_cv_path_NM" != "no"; then
13288 NM="$lt_cv_path_NM"
13289 else
13290 # Didn't find any BSD compatible name lister, look for dumpbin.
13291 if test -n "$DUMPBIN"; then :
13292 # Let the user override the test.
13293 else
13294 if test -n "$ac_tool_prefix"; then
13295 for ac_prog in dumpbin "link -dump"
13296 do
13297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_prog_DUMPBIN+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if test -n "$DUMPBIN"; then
13305 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13306 else
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13317 fi
13318 done
13319 done
13320 IFS=$as_save_IFS
13321
13322 fi
13323 fi
13324 DUMPBIN=$ac_cv_prog_DUMPBIN
13325 if test -n "$DUMPBIN"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13327 $as_echo "$DUMPBIN" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13331 fi
13332
13333
13334 test -n "$DUMPBIN" && break
13335 done
13336 fi
13337 if test -z "$DUMPBIN"; then
13338 ac_ct_DUMPBIN=$DUMPBIN
13339 for ac_prog in dumpbin "link -dump"
13340 do
13341 # Extract the first word of "$ac_prog", so it can be a program name with args.
13342 set dummy $ac_prog; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if test -n "$ac_ct_DUMPBIN"; then
13349 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13353 do
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13358 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13361 fi
13362 done
13363 done
13364 IFS=$as_save_IFS
13365
13366 fi
13367 fi
13368 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13369 if test -n "$ac_ct_DUMPBIN"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13371 $as_echo "$ac_ct_DUMPBIN" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375 fi
13376
13377
13378 test -n "$ac_ct_DUMPBIN" && break
13379 done
13380
13381 if test "x$ac_ct_DUMPBIN" = x; then
13382 DUMPBIN=":"
13383 else
13384 case $cross_compiling:$ac_tool_warned in
13385 yes:)
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13388 ac_tool_warned=yes ;;
13389 esac
13390 DUMPBIN=$ac_ct_DUMPBIN
13391 fi
13392 fi
13393
13394 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13395 *COFF*)
13396 DUMPBIN="$DUMPBIN -symbols"
13397 ;;
13398 *)
13399 DUMPBIN=:
13400 ;;
13401 esac
13402 fi
13403
13404 if test "$DUMPBIN" != ":"; then
13405 NM="$DUMPBIN"
13406 fi
13407 fi
13408 test -z "$NM" && NM=nm
13409
13410
13411
13412
13413
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13416 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13417 if ${lt_cv_nm_interface+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 lt_cv_nm_interface="BSD nm"
13421 echo "int some_variable = 0;" > conftest.$ac_ext
13422 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13423 (eval "$ac_compile" 2>conftest.err)
13424 cat conftest.err >&5
13425 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13426 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13427 cat conftest.err >&5
13428 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13429 cat conftest.out >&5
13430 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13431 lt_cv_nm_interface="MS dumpbin"
13432 fi
13433 rm -f conftest*
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13436 $as_echo "$lt_cv_nm_interface" >&6; }
13437
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13439 $as_echo_n "checking whether ln -s works... " >&6; }
13440 LN_S=$as_ln_s
13441 if test "$LN_S" = "ln -s"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443 $as_echo "yes" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13446 $as_echo "no, using $LN_S" >&6; }
13447 fi
13448
13449 # find the maximum length of command line arguments
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13451 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13452 if ${lt_cv_sys_max_cmd_len+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 i=0
13456 teststring="ABCD"
13457
13458 case $build_os in
13459 msdosdjgpp*)
13460 # On DJGPP, this test can blow up pretty badly due to problems in libc
13461 # (any single argument exceeding 2000 bytes causes a buffer overrun
13462 # during glob expansion). Even if it were fixed, the result of this
13463 # check would be larger than it should be.
13464 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13465 ;;
13466
13467 gnu*)
13468 # Under GNU Hurd, this test is not required because there is
13469 # no limit to the length of command line arguments.
13470 # Libtool will interpret -1 as no limit whatsoever
13471 lt_cv_sys_max_cmd_len=-1;
13472 ;;
13473
13474 cygwin* | mingw* | cegcc*)
13475 # On Win9x/ME, this test blows up -- it succeeds, but takes
13476 # about 5 minutes as the teststring grows exponentially.
13477 # Worse, since 9x/ME are not pre-emptively multitasking,
13478 # you end up with a "frozen" computer, even though with patience
13479 # the test eventually succeeds (with a max line length of 256k).
13480 # Instead, let's just punt: use the minimum linelength reported by
13481 # all of the supported platforms: 8192 (on NT/2K/XP).
13482 lt_cv_sys_max_cmd_len=8192;
13483 ;;
13484
13485 mint*)
13486 # On MiNT this can take a long time and run out of memory.
13487 lt_cv_sys_max_cmd_len=8192;
13488 ;;
13489
13490 amigaos*)
13491 # On AmigaOS with pdksh, this test takes hours, literally.
13492 # So we just punt and use a minimum line length of 8192.
13493 lt_cv_sys_max_cmd_len=8192;
13494 ;;
13495
13496 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13497 # This has been around since 386BSD, at least. Likely further.
13498 if test -x /sbin/sysctl; then
13499 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13500 elif test -x /usr/sbin/sysctl; then
13501 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13502 else
13503 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13504 fi
13505 # And add a safety zone
13506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13508 ;;
13509
13510 interix*)
13511 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13512 lt_cv_sys_max_cmd_len=196608
13513 ;;
13514
13515 osf*)
13516 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13517 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13518 # nice to cause kernel panics so lets avoid the loop below.
13519 # First set a reasonable default.
13520 lt_cv_sys_max_cmd_len=16384
13521 #
13522 if test -x /sbin/sysconfig; then
13523 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13524 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13525 esac
13526 fi
13527 ;;
13528 sco3.2v5*)
13529 lt_cv_sys_max_cmd_len=102400
13530 ;;
13531 sysv5* | sco5v6* | sysv4.2uw2*)
13532 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13533 if test -n "$kargmax"; then
13534 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13535 else
13536 lt_cv_sys_max_cmd_len=32768
13537 fi
13538 ;;
13539 *)
13540 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13541 if test -n "$lt_cv_sys_max_cmd_len"; then
13542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13544 else
13545 # Make teststring a little bigger before we do anything with it.
13546 # a 1K string should be a reasonable start.
13547 for i in 1 2 3 4 5 6 7 8 ; do
13548 teststring=$teststring$teststring
13549 done
13550 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13551 # If test is not a shell built-in, we'll probably end up computing a
13552 # maximum length that is only half of the actual maximum length, but
13553 # we can't tell.
13554 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13555 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13556 test $i != 17 # 1/2 MB should be enough
13557 do
13558 i=`expr $i + 1`
13559 teststring=$teststring$teststring
13560 done
13561 # Only check the string length outside the loop.
13562 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13563 teststring=
13564 # Add a significant safety factor because C++ compilers can tack on
13565 # massive amounts of additional arguments before passing them to the
13566 # linker. It appears as though 1/2 is a usable value.
13567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13568 fi
13569 ;;
13570 esac
13571
13572 fi
13573
13574 if test -n $lt_cv_sys_max_cmd_len ; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13576 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13577 else
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13579 $as_echo "none" >&6; }
13580 fi
13581 max_cmd_len=$lt_cv_sys_max_cmd_len
13582
13583
13584
13585
13586
13587
13588 : ${CP="cp -f"}
13589 : ${MV="mv -f"}
13590 : ${RM="rm -f"}
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13593 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13594 # Try some XSI features
13595 xsi_shell=no
13596 ( _lt_dummy="a/b/c"
13597 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13598 = c,a/b,, \
13599 && eval 'test $(( 1 + 1 )) -eq 2 \
13600 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13601 && xsi_shell=yes
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13603 $as_echo "$xsi_shell" >&6; }
13604
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13607 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13608 lt_shell_append=no
13609 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13610 >/dev/null 2>&1 \
13611 && lt_shell_append=yes
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13613 $as_echo "$lt_shell_append" >&6; }
13614
13615
13616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13617 lt_unset=unset
13618 else
13619 lt_unset=false
13620 fi
13621
13622
13623
13624
13625
13626 # test EBCDIC or ASCII
13627 case `echo X|tr X '\101'` in
13628 A) # ASCII based system
13629 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13630 lt_SP2NL='tr \040 \012'
13631 lt_NL2SP='tr \015\012 \040\040'
13632 ;;
13633 *) # EBCDIC based system
13634 lt_SP2NL='tr \100 \n'
13635 lt_NL2SP='tr \r\n \100\100'
13636 ;;
13637 esac
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13648 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13649 if ${lt_cv_ld_reload_flag+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 lt_cv_ld_reload_flag='-r'
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13655 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13656 reload_flag=$lt_cv_ld_reload_flag
13657 case $reload_flag in
13658 "" | " "*) ;;
13659 *) reload_flag=" $reload_flag" ;;
13660 esac
13661 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13662 case $host_os in
13663 darwin*)
13664 if test "$GCC" = yes; then
13665 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13666 else
13667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13668 fi
13669 ;;
13670 esac
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680 if test -n "$ac_tool_prefix"; then
13681 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13682 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if ${ac_cv_prog_OBJDUMP+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 if test -n "$OBJDUMP"; then
13689 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13690 else
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13693 do
13694 IFS=$as_save_IFS
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 break 2
13701 fi
13702 done
13703 done
13704 IFS=$as_save_IFS
13705
13706 fi
13707 fi
13708 OBJDUMP=$ac_cv_prog_OBJDUMP
13709 if test -n "$OBJDUMP"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13711 $as_echo "$OBJDUMP" >&6; }
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13715 fi
13716
13717
13718 fi
13719 if test -z "$ac_cv_prog_OBJDUMP"; then
13720 ac_ct_OBJDUMP=$OBJDUMP
13721 # Extract the first word of "objdump", so it can be a program name with args.
13722 set dummy objdump; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 if test -n "$ac_ct_OBJDUMP"; then
13729 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13730 else
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13733 do
13734 IFS=$as_save_IFS
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13738 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 break 2
13741 fi
13742 done
13743 done
13744 IFS=$as_save_IFS
13745
13746 fi
13747 fi
13748 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13749 if test -n "$ac_ct_OBJDUMP"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13751 $as_echo "$ac_ct_OBJDUMP" >&6; }
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "no" >&6; }
13755 fi
13756
13757 if test "x$ac_ct_OBJDUMP" = x; then
13758 OBJDUMP="false"
13759 else
13760 case $cross_compiling:$ac_tool_warned in
13761 yes:)
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13764 ac_tool_warned=yes ;;
13765 esac
13766 OBJDUMP=$ac_ct_OBJDUMP
13767 fi
13768 else
13769 OBJDUMP="$ac_cv_prog_OBJDUMP"
13770 fi
13771
13772 test -z "$OBJDUMP" && OBJDUMP=objdump
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13783 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13784 if ${lt_cv_deplibs_check_method+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 lt_cv_file_magic_cmd='$MAGIC_CMD'
13788 lt_cv_file_magic_test_file=
13789 lt_cv_deplibs_check_method='unknown'
13790 # Need to set the preceding variable on all platforms that support
13791 # interlibrary dependencies.
13792 # 'none' -- dependencies not supported.
13793 # `unknown' -- same as none, but documents that we really don't know.
13794 # 'pass_all' -- all dependencies passed with no checks.
13795 # 'test_compile' -- check by making test program.
13796 # 'file_magic [[regex]]' -- check by looking for files in library path
13797 # which responds to the $file_magic_cmd with a given extended regex.
13798 # If you have `file' or equivalent on your system and you're not sure
13799 # whether `pass_all' will *always* work, you probably want this one.
13800
13801 case $host_os in
13802 aix[4-9]*)
13803 lt_cv_deplibs_check_method=pass_all
13804 ;;
13805
13806 beos*)
13807 lt_cv_deplibs_check_method=pass_all
13808 ;;
13809
13810 bsdi[45]*)
13811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13812 lt_cv_file_magic_cmd='/usr/bin/file -L'
13813 lt_cv_file_magic_test_file=/shlib/libc.so
13814 ;;
13815
13816 cygwin*)
13817 # func_win32_libid is a shell function defined in ltmain.sh
13818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13819 lt_cv_file_magic_cmd='func_win32_libid'
13820 ;;
13821
13822 mingw* | pw32*)
13823 # Base MSYS/MinGW do not provide the 'file' command needed by
13824 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13825 # unless we find 'file', for example because we are cross-compiling.
13826 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13827 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13829 lt_cv_file_magic_cmd='func_win32_libid'
13830 else
13831 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13832 lt_cv_file_magic_cmd='$OBJDUMP -f'
13833 fi
13834 ;;
13835
13836 cegcc*)
13837 # use the weaker test based on 'objdump'. See mingw*.
13838 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13839 lt_cv_file_magic_cmd='$OBJDUMP -f'
13840 ;;
13841
13842 darwin* | rhapsody*)
13843 lt_cv_deplibs_check_method=pass_all
13844 ;;
13845
13846 freebsd* | dragonfly*)
13847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13848 case $host_cpu in
13849 i*86 )
13850 # Not sure whether the presence of OpenBSD here was a mistake.
13851 # Let's accept both of them until this is cleared up.
13852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13853 lt_cv_file_magic_cmd=/usr/bin/file
13854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13855 ;;
13856 esac
13857 else
13858 lt_cv_deplibs_check_method=pass_all
13859 fi
13860 ;;
13861
13862 gnu*)
13863 lt_cv_deplibs_check_method=pass_all
13864 ;;
13865
13866 haiku*)
13867 lt_cv_deplibs_check_method=pass_all
13868 ;;
13869
13870 hpux10.20* | hpux11*)
13871 lt_cv_file_magic_cmd=/usr/bin/file
13872 case $host_cpu in
13873 ia64*)
13874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13875 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13876 ;;
13877 hppa*64*)
13878 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]'
13879 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13880 ;;
13881 *)
13882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13883 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13884 ;;
13885 esac
13886 ;;
13887
13888 interix[3-9]*)
13889 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13891 ;;
13892
13893 irix5* | irix6* | nonstopux*)
13894 case $LD in
13895 *-32|*"-32 ") libmagic=32-bit;;
13896 *-n32|*"-n32 ") libmagic=N32;;
13897 *-64|*"-64 ") libmagic=64-bit;;
13898 *) libmagic=never-match;;
13899 esac
13900 lt_cv_deplibs_check_method=pass_all
13901 ;;
13902
13903 # This must be Linux ELF.
13904 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13905 lt_cv_deplibs_check_method=pass_all
13906 ;;
13907
13908 netbsd*)
13909 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13911 else
13912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13913 fi
13914 ;;
13915
13916 newos6*)
13917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13918 lt_cv_file_magic_cmd=/usr/bin/file
13919 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13920 ;;
13921
13922 *nto* | *qnx*)
13923 lt_cv_deplibs_check_method=pass_all
13924 ;;
13925
13926 openbsd*)
13927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13929 else
13930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13931 fi
13932 ;;
13933
13934 osf3* | osf4* | osf5*)
13935 lt_cv_deplibs_check_method=pass_all
13936 ;;
13937
13938 rdos*)
13939 lt_cv_deplibs_check_method=pass_all
13940 ;;
13941
13942 solaris*)
13943 lt_cv_deplibs_check_method=pass_all
13944 ;;
13945
13946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13947 lt_cv_deplibs_check_method=pass_all
13948 ;;
13949
13950 sysv4 | sysv4.3*)
13951 case $host_vendor in
13952 motorola)
13953 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]'
13954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13955 ;;
13956 ncr)
13957 lt_cv_deplibs_check_method=pass_all
13958 ;;
13959 sequent)
13960 lt_cv_file_magic_cmd='/bin/file'
13961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13962 ;;
13963 sni)
13964 lt_cv_file_magic_cmd='/bin/file'
13965 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13966 lt_cv_file_magic_test_file=/lib/libc.so
13967 ;;
13968 siemens)
13969 lt_cv_deplibs_check_method=pass_all
13970 ;;
13971 pc)
13972 lt_cv_deplibs_check_method=pass_all
13973 ;;
13974 esac
13975 ;;
13976
13977 tpf*)
13978 lt_cv_deplibs_check_method=pass_all
13979 ;;
13980 esac
13981
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13984 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13985 file_magic_cmd=$lt_cv_file_magic_cmd
13986 deplibs_check_method=$lt_cv_deplibs_check_method
13987 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}ar; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if ${ac_cv_prog_AR+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$AR"; then
14009 ac_cv_prog_AR="$AR" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_prog_AR="${ac_tool_prefix}ar"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022 done
14023 done
14024 IFS=$as_save_IFS
14025
14026 fi
14027 fi
14028 AR=$ac_cv_prog_AR
14029 if test -n "$AR"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14031 $as_echo "$AR" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036
14037
14038 fi
14039 if test -z "$ac_cv_prog_AR"; then
14040 ac_ct_AR=$AR
14041 # Extract the first word of "ar", so it can be a program name with args.
14042 set dummy ar; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 if test -n "$ac_ct_AR"; then
14049 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14050 else
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14053 do
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14058 ac_cv_prog_ac_ct_AR="ar"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 break 2
14061 fi
14062 done
14063 done
14064 IFS=$as_save_IFS
14065
14066 fi
14067 fi
14068 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14069 if test -n "$ac_ct_AR"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14071 $as_echo "$ac_ct_AR" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14075 fi
14076
14077 if test "x$ac_ct_AR" = x; then
14078 AR="false"
14079 else
14080 case $cross_compiling:$ac_tool_warned in
14081 yes:)
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14084 ac_tool_warned=yes ;;
14085 esac
14086 AR=$ac_ct_AR
14087 fi
14088 else
14089 AR="$ac_cv_prog_AR"
14090 fi
14091
14092 test -z "$AR" && AR=ar
14093 test -z "$AR_FLAGS" && AR_FLAGS=cru
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105 if test -n "$ac_tool_prefix"; then
14106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14107 set dummy ${ac_tool_prefix}strip; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 $as_echo_n "checking for $ac_word... " >&6; }
14110 if ${ac_cv_prog_STRIP+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -n "$STRIP"; then
14114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14115 else
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14118 do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14126 fi
14127 done
14128 done
14129 IFS=$as_save_IFS
14130
14131 fi
14132 fi
14133 STRIP=$ac_cv_prog_STRIP
14134 if test -n "$STRIP"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14136 $as_echo "$STRIP" >&6; }
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14140 fi
14141
14142
14143 fi
14144 if test -z "$ac_cv_prog_STRIP"; then
14145 ac_ct_STRIP=$STRIP
14146 # Extract the first word of "strip", so it can be a program name with args.
14147 set dummy strip; ac_word=$2
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14149 $as_echo_n "checking for $ac_word... " >&6; }
14150 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 if test -n "$ac_ct_STRIP"; then
14154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14155 else
14156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14158 do
14159 IFS=$as_save_IFS
14160 test -z "$as_dir" && as_dir=.
14161 for ac_exec_ext in '' $ac_executable_extensions; do
14162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14163 ac_cv_prog_ac_ct_STRIP="strip"
14164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14165 break 2
14166 fi
14167 done
14168 done
14169 IFS=$as_save_IFS
14170
14171 fi
14172 fi
14173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14174 if test -n "$ac_ct_STRIP"; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14176 $as_echo "$ac_ct_STRIP" >&6; }
14177 else
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; }
14180 fi
14181
14182 if test "x$ac_ct_STRIP" = x; then
14183 STRIP=":"
14184 else
14185 case $cross_compiling:$ac_tool_warned in
14186 yes:)
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14189 ac_tool_warned=yes ;;
14190 esac
14191 STRIP=$ac_ct_STRIP
14192 fi
14193 else
14194 STRIP="$ac_cv_prog_STRIP"
14195 fi
14196
14197 test -z "$STRIP" && STRIP=:
14198
14199
14200
14201
14202
14203
14204 if test -n "$ac_tool_prefix"; then
14205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_prog_RANLIB+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 if test -n "$RANLIB"; then
14213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14217 do
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14225 fi
14226 done
14227 done
14228 IFS=$as_save_IFS
14229
14230 fi
14231 fi
14232 RANLIB=$ac_cv_prog_RANLIB
14233 if test -n "$RANLIB"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14235 $as_echo "$RANLIB" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14239 fi
14240
14241
14242 fi
14243 if test -z "$ac_cv_prog_RANLIB"; then
14244 ac_ct_RANLIB=$RANLIB
14245 # Extract the first word of "ranlib", so it can be a program name with args.
14246 set dummy ranlib; ac_word=$2
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14248 $as_echo_n "checking for $ac_word... " >&6; }
14249 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 if test -n "$ac_ct_RANLIB"; then
14253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14254 else
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14257 do
14258 IFS=$as_save_IFS
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14262 ac_cv_prog_ac_ct_RANLIB="ranlib"
14263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 break 2
14265 fi
14266 done
14267 done
14268 IFS=$as_save_IFS
14269
14270 fi
14271 fi
14272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14273 if test -n "$ac_ct_RANLIB"; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14275 $as_echo "$ac_ct_RANLIB" >&6; }
14276 else
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14278 $as_echo "no" >&6; }
14279 fi
14280
14281 if test "x$ac_ct_RANLIB" = x; then
14282 RANLIB=":"
14283 else
14284 case $cross_compiling:$ac_tool_warned in
14285 yes:)
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14288 ac_tool_warned=yes ;;
14289 esac
14290 RANLIB=$ac_ct_RANLIB
14291 fi
14292 else
14293 RANLIB="$ac_cv_prog_RANLIB"
14294 fi
14295
14296 test -z "$RANLIB" && RANLIB=:
14297
14298
14299
14300
14301
14302
14303 # Determine commands to create old-style static archives.
14304 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14305 old_postinstall_cmds='chmod 644 $oldlib'
14306 old_postuninstall_cmds=
14307
14308 if test -n "$RANLIB"; then
14309 case $host_os in
14310 openbsd*)
14311 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14312 ;;
14313 *)
14314 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14315 ;;
14316 esac
14317 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14318 fi
14319
14320 case $host_os in
14321 darwin*)
14322 lock_old_archive_extraction=yes ;;
14323 *)
14324 lock_old_archive_extraction=no ;;
14325 esac
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365 # If no C compiler was specified, use CC.
14366 LTCC=${LTCC-"$CC"}
14367
14368 # If no C compiler flags were specified, use CFLAGS.
14369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14370
14371 # Allow CC to be a program name with arguments.
14372 compiler=$CC
14373
14374
14375 # Check for command to grab the raw symbol name followed by C symbol from nm.
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14377 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14378 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381
14382 # These are sane defaults that work on at least a few old systems.
14383 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14384
14385 # Character class describing NM global symbol codes.
14386 symcode='[BCDEGRST]'
14387
14388 # Regexp to match symbols that can be accessed directly from C.
14389 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14390
14391 # Define system-specific variables.
14392 case $host_os in
14393 aix*)
14394 symcode='[BCDT]'
14395 ;;
14396 cygwin* | mingw* | pw32* | cegcc*)
14397 symcode='[ABCDGISTW]'
14398 ;;
14399 hpux*)
14400 if test "$host_cpu" = ia64; then
14401 symcode='[ABCDEGRST]'
14402 fi
14403 ;;
14404 irix* | nonstopux*)
14405 symcode='[BCDEGRST]'
14406 ;;
14407 osf*)
14408 symcode='[BCDEGQRST]'
14409 ;;
14410 solaris*)
14411 symcode='[BDRT]'
14412 ;;
14413 sco3.2v5*)
14414 symcode='[DT]'
14415 ;;
14416 sysv4.2uw2*)
14417 symcode='[DT]'
14418 ;;
14419 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14420 symcode='[ABDT]'
14421 ;;
14422 sysv4)
14423 symcode='[DFNSTU]'
14424 ;;
14425 esac
14426
14427 # If we're using GNU nm, then use its standard symbol codes.
14428 case `$NM -V 2>&1` in
14429 *GNU* | *'with BFD'*)
14430 symcode='[ABCDGIRSTW]' ;;
14431 esac
14432
14433 # Transform an extracted symbol line into a proper C declaration.
14434 # Some systems (esp. on ia64) link data and code symbols differently,
14435 # so use this general approach.
14436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14437
14438 # Transform an extracted symbol line into symbol name and symbol address
14439 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14440 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'"
14441
14442 # Handle CRLF in mingw tool chain
14443 opt_cr=
14444 case $build_os in
14445 mingw*)
14446 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14447 ;;
14448 esac
14449
14450 # Try without a prefix underscore, then with it.
14451 for ac_symprfx in "" "_"; do
14452
14453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14454 symxfrm="\\1 $ac_symprfx\\2 \\2"
14455
14456 # Write the raw and C identifiers.
14457 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14458 # Fake it for dumpbin and say T for any non-static function
14459 # and D for any global variable.
14460 # Also find C++ and __fastcall symbols from MSVC++,
14461 # which start with @ or ?.
14462 lt_cv_sys_global_symbol_pipe="$AWK '"\
14463 " {last_section=section; section=\$ 3};"\
14464 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14465 " \$ 0!~/External *\|/{next};"\
14466 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14467 " {if(hide[section]) next};"\
14468 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14469 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14470 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14471 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14472 " ' prfx=^$ac_symprfx"
14473 else
14474 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14475 fi
14476
14477 # Check to see that the pipe works correctly.
14478 pipe_works=no
14479
14480 rm -f conftest*
14481 cat > conftest.$ac_ext <<_LT_EOF
14482 #ifdef __cplusplus
14483 extern "C" {
14484 #endif
14485 char nm_test_var;
14486 void nm_test_func(void);
14487 void nm_test_func(void){}
14488 #ifdef __cplusplus
14489 }
14490 #endif
14491 int main(){nm_test_var='a';nm_test_func();return(0);}
14492 _LT_EOF
14493
14494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14495 (eval $ac_compile) 2>&5
14496 ac_status=$?
14497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14498 test $ac_status = 0; }; then
14499 # Now try to grab the symbols.
14500 nlist=conftest.nm
14501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14502 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14503 ac_status=$?
14504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14505 test $ac_status = 0; } && test -s "$nlist"; then
14506 # Try sorting and uniquifying the output.
14507 if sort "$nlist" | uniq > "$nlist"T; then
14508 mv -f "$nlist"T "$nlist"
14509 else
14510 rm -f "$nlist"T
14511 fi
14512
14513 # Make sure that we snagged all the symbols we need.
14514 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14515 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14516 cat <<_LT_EOF > conftest.$ac_ext
14517 #ifdef __cplusplus
14518 extern "C" {
14519 #endif
14520
14521 _LT_EOF
14522 # Now generate the symbol file.
14523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14524
14525 cat <<_LT_EOF >> conftest.$ac_ext
14526
14527 /* The mapping between symbol names and symbols. */
14528 const struct {
14529 const char *name;
14530 void *address;
14531 }
14532 lt__PROGRAM__LTX_preloaded_symbols[] =
14533 {
14534 { "@PROGRAM@", (void *) 0 },
14535 _LT_EOF
14536 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14537 cat <<\_LT_EOF >> conftest.$ac_ext
14538 {0, (void *) 0}
14539 };
14540
14541 /* This works around a problem in FreeBSD linker */
14542 #ifdef FREEBSD_WORKAROUND
14543 static const void *lt_preloaded_setup() {
14544 return lt__PROGRAM__LTX_preloaded_symbols;
14545 }
14546 #endif
14547
14548 #ifdef __cplusplus
14549 }
14550 #endif
14551 _LT_EOF
14552 # Now try linking the two files.
14553 mv conftest.$ac_objext conftstm.$ac_objext
14554 lt_save_LIBS="$LIBS"
14555 lt_save_CFLAGS="$CFLAGS"
14556 LIBS="conftstm.$ac_objext"
14557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14559 (eval $ac_link) 2>&5
14560 ac_status=$?
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14563 pipe_works=yes
14564 fi
14565 LIBS="$lt_save_LIBS"
14566 CFLAGS="$lt_save_CFLAGS"
14567 else
14568 echo "cannot find nm_test_func in $nlist" >&5
14569 fi
14570 else
14571 echo "cannot find nm_test_var in $nlist" >&5
14572 fi
14573 else
14574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14575 fi
14576 else
14577 echo "$progname: failed program was:" >&5
14578 cat conftest.$ac_ext >&5
14579 fi
14580 rm -rf conftest* conftst*
14581
14582 # Do not use the global_symbol_pipe unless it works.
14583 if test "$pipe_works" = yes; then
14584 break
14585 else
14586 lt_cv_sys_global_symbol_pipe=
14587 fi
14588 done
14589
14590 fi
14591
14592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14593 lt_cv_sys_global_symbol_to_cdecl=
14594 fi
14595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14597 $as_echo "failed" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14600 $as_echo "ok" >&6; }
14601 fi
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624 # Check whether --enable-libtool-lock was given.
14625 if test "${enable_libtool_lock+set}" = set; then :
14626 enableval=$enable_libtool_lock;
14627 fi
14628
14629 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14630
14631 # Some flags need to be propagated to the compiler or linker for good
14632 # libtool support.
14633 case $host in
14634 ia64-*-hpux*)
14635 # Find out which ABI we are using.
14636 echo 'int i;' > conftest.$ac_ext
14637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14638 (eval $ac_compile) 2>&5
14639 ac_status=$?
14640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14641 test $ac_status = 0; }; then
14642 case `/usr/bin/file conftest.$ac_objext` in
14643 *ELF-32*)
14644 HPUX_IA64_MODE="32"
14645 ;;
14646 *ELF-64*)
14647 HPUX_IA64_MODE="64"
14648 ;;
14649 esac
14650 fi
14651 rm -rf conftest*
14652 ;;
14653 *-*-irix6*)
14654 # Find out which ABI we are using.
14655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14657 (eval $ac_compile) 2>&5
14658 ac_status=$?
14659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14660 test $ac_status = 0; }; then
14661 if test "$lt_cv_prog_gnu_ld" = yes; then
14662 case `/usr/bin/file conftest.$ac_objext` in
14663 *32-bit*)
14664 LD="${LD-ld} -melf32bsmip"
14665 ;;
14666 *N32*)
14667 LD="${LD-ld} -melf32bmipn32"
14668 ;;
14669 *64-bit*)
14670 LD="${LD-ld} -melf64bmip"
14671 ;;
14672 esac
14673 else
14674 case `/usr/bin/file conftest.$ac_objext` in
14675 *32-bit*)
14676 LD="${LD-ld} -32"
14677 ;;
14678 *N32*)
14679 LD="${LD-ld} -n32"
14680 ;;
14681 *64-bit*)
14682 LD="${LD-ld} -64"
14683 ;;
14684 esac
14685 fi
14686 fi
14687 rm -rf conftest*
14688 ;;
14689
14690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14692 # Find out which ABI we are using.
14693 echo 'int i;' > conftest.$ac_ext
14694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14695 (eval $ac_compile) 2>&5
14696 ac_status=$?
14697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14698 test $ac_status = 0; }; then
14699 case `/usr/bin/file conftest.o` in
14700 *32-bit*)
14701 case $host in
14702 x86_64-*kfreebsd*-gnu)
14703 LD="${LD-ld} -m elf_i386_fbsd"
14704 ;;
14705 x86_64-*linux*)
14706 case `/usr/bin/file conftest.o` in
14707 *x86-64*)
14708 LD="${LD-ld} -m elf32_x86_64"
14709 ;;
14710 *)
14711 LD="${LD-ld} -m elf_i386"
14712 ;;
14713 esac
14714 ;;
14715 powerpc64le-*linux*)
14716 LD="${LD-ld} -m elf32lppclinux"
14717 ;;
14718 powerpc64-*linux*)
14719 LD="${LD-ld} -m elf32ppclinux"
14720 ;;
14721 s390x-*linux*)
14722 LD="${LD-ld} -m elf_s390"
14723 ;;
14724 sparc64-*linux*)
14725 LD="${LD-ld} -m elf32_sparc"
14726 ;;
14727 esac
14728 ;;
14729 *64-bit*)
14730 case $host in
14731 x86_64-*kfreebsd*-gnu)
14732 LD="${LD-ld} -m elf_x86_64_fbsd"
14733 ;;
14734 x86_64-*linux*)
14735 LD="${LD-ld} -m elf_x86_64"
14736 ;;
14737 powerpcle-*linux*)
14738 LD="${LD-ld} -m elf64lppc"
14739 ;;
14740 powerpc-*linux*)
14741 LD="${LD-ld} -m elf64ppc"
14742 ;;
14743 s390*-*linux*|s390*-*tpf*)
14744 LD="${LD-ld} -m elf64_s390"
14745 ;;
14746 sparc*-*linux*)
14747 LD="${LD-ld} -m elf64_sparc"
14748 ;;
14749 esac
14750 ;;
14751 esac
14752 fi
14753 rm -rf conftest*
14754 ;;
14755
14756 *-*-sco3.2v5*)
14757 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14758 SAVE_CFLAGS="$CFLAGS"
14759 CFLAGS="$CFLAGS -belf"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14761 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14762 if ${lt_cv_cc_needs_belf+:} false; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 ac_ext=c
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773
14774 int
14775 main ()
14776 {
14777
14778 ;
14779 return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 lt_cv_cc_needs_belf=yes
14784 else
14785 lt_cv_cc_needs_belf=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789 ac_ext=c
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14794
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14797 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14798 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14799 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14800 CFLAGS="$SAVE_CFLAGS"
14801 fi
14802 ;;
14803 sparc*-*solaris*)
14804 # Find out which ABI we are using.
14805 echo 'int i;' > conftest.$ac_ext
14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14807 (eval $ac_compile) 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; }; then
14811 case `/usr/bin/file conftest.o` in
14812 *64-bit*)
14813 case $lt_cv_prog_gnu_ld in
14814 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14815 *)
14816 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14817 LD="${LD-ld} -64"
14818 fi
14819 ;;
14820 esac
14821 ;;
14822 esac
14823 fi
14824 rm -rf conftest*
14825 ;;
14826 esac
14827
14828 need_locks="$enable_libtool_lock"
14829
14830
14831 case $host_os in
14832 rhapsody* | darwin*)
14833 if test -n "$ac_tool_prefix"; then
14834 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14835 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 if test -n "$DSYMUTIL"; then
14842 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14843 else
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
14849 for ac_exec_ext in '' $ac_executable_extensions; do
14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853 break 2
14854 fi
14855 done
14856 done
14857 IFS=$as_save_IFS
14858
14859 fi
14860 fi
14861 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14862 if test -n "$DSYMUTIL"; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14864 $as_echo "$DSYMUTIL" >&6; }
14865 else
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867 $as_echo "no" >&6; }
14868 fi
14869
14870
14871 fi
14872 if test -z "$ac_cv_prog_DSYMUTIL"; then
14873 ac_ct_DSYMUTIL=$DSYMUTIL
14874 # Extract the first word of "dsymutil", so it can be a program name with args.
14875 set dummy dsymutil; ac_word=$2
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877 $as_echo_n "checking for $ac_word... " >&6; }
14878 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 if test -n "$ac_ct_DSYMUTIL"; then
14882 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14883 else
14884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885 for as_dir in $PATH
14886 do
14887 IFS=$as_save_IFS
14888 test -z "$as_dir" && as_dir=.
14889 for ac_exec_ext in '' $ac_executable_extensions; do
14890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14891 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14893 break 2
14894 fi
14895 done
14896 done
14897 IFS=$as_save_IFS
14898
14899 fi
14900 fi
14901 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14902 if test -n "$ac_ct_DSYMUTIL"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14904 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14905 else
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 $as_echo "no" >&6; }
14908 fi
14909
14910 if test "x$ac_ct_DSYMUTIL" = x; then
14911 DSYMUTIL=":"
14912 else
14913 case $cross_compiling:$ac_tool_warned in
14914 yes:)
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14917 ac_tool_warned=yes ;;
14918 esac
14919 DSYMUTIL=$ac_ct_DSYMUTIL
14920 fi
14921 else
14922 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14923 fi
14924
14925 if test -n "$ac_tool_prefix"; then
14926 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14927 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14929 $as_echo_n "checking for $ac_word... " >&6; }
14930 if ${ac_cv_prog_NMEDIT+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 if test -n "$NMEDIT"; then
14934 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14935 else
14936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14937 for as_dir in $PATH
14938 do
14939 IFS=$as_save_IFS
14940 test -z "$as_dir" && as_dir=.
14941 for ac_exec_ext in '' $ac_executable_extensions; do
14942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14943 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14945 break 2
14946 fi
14947 done
14948 done
14949 IFS=$as_save_IFS
14950
14951 fi
14952 fi
14953 NMEDIT=$ac_cv_prog_NMEDIT
14954 if test -n "$NMEDIT"; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14956 $as_echo "$NMEDIT" >&6; }
14957 else
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14959 $as_echo "no" >&6; }
14960 fi
14961
14962
14963 fi
14964 if test -z "$ac_cv_prog_NMEDIT"; then
14965 ac_ct_NMEDIT=$NMEDIT
14966 # Extract the first word of "nmedit", so it can be a program name with args.
14967 set dummy nmedit; ac_word=$2
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14969 $as_echo_n "checking for $ac_word... " >&6; }
14970 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 if test -n "$ac_ct_NMEDIT"; then
14974 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14975 else
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14978 do
14979 IFS=$as_save_IFS
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14985 break 2
14986 fi
14987 done
14988 done
14989 IFS=$as_save_IFS
14990
14991 fi
14992 fi
14993 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14994 if test -n "$ac_ct_NMEDIT"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14996 $as_echo "$ac_ct_NMEDIT" >&6; }
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15000 fi
15001
15002 if test "x$ac_ct_NMEDIT" = x; then
15003 NMEDIT=":"
15004 else
15005 case $cross_compiling:$ac_tool_warned in
15006 yes:)
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15009 ac_tool_warned=yes ;;
15010 esac
15011 NMEDIT=$ac_ct_NMEDIT
15012 fi
15013 else
15014 NMEDIT="$ac_cv_prog_NMEDIT"
15015 fi
15016
15017 if test -n "$ac_tool_prefix"; then
15018 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15019 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if ${ac_cv_prog_LIPO+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 if test -n "$LIPO"; then
15026 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15027 else
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15030 do
15031 IFS=$as_save_IFS
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15037 break 2
15038 fi
15039 done
15040 done
15041 IFS=$as_save_IFS
15042
15043 fi
15044 fi
15045 LIPO=$ac_cv_prog_LIPO
15046 if test -n "$LIPO"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15048 $as_echo "$LIPO" >&6; }
15049 else
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 $as_echo "no" >&6; }
15052 fi
15053
15054
15055 fi
15056 if test -z "$ac_cv_prog_LIPO"; then
15057 ac_ct_LIPO=$LIPO
15058 # Extract the first word of "lipo", so it can be a program name with args.
15059 set dummy lipo; ac_word=$2
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15061 $as_echo_n "checking for $ac_word... " >&6; }
15062 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 if test -n "$ac_ct_LIPO"; then
15066 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15067 else
15068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15069 for as_dir in $PATH
15070 do
15071 IFS=$as_save_IFS
15072 test -z "$as_dir" && as_dir=.
15073 for ac_exec_ext in '' $ac_executable_extensions; do
15074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15075 ac_cv_prog_ac_ct_LIPO="lipo"
15076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15077 break 2
15078 fi
15079 done
15080 done
15081 IFS=$as_save_IFS
15082
15083 fi
15084 fi
15085 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15086 if test -n "$ac_ct_LIPO"; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15088 $as_echo "$ac_ct_LIPO" >&6; }
15089 else
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 $as_echo "no" >&6; }
15092 fi
15093
15094 if test "x$ac_ct_LIPO" = x; then
15095 LIPO=":"
15096 else
15097 case $cross_compiling:$ac_tool_warned in
15098 yes:)
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15101 ac_tool_warned=yes ;;
15102 esac
15103 LIPO=$ac_ct_LIPO
15104 fi
15105 else
15106 LIPO="$ac_cv_prog_LIPO"
15107 fi
15108
15109 if test -n "$ac_tool_prefix"; then
15110 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15111 set dummy ${ac_tool_prefix}otool; ac_word=$2
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15113 $as_echo_n "checking for $ac_word... " >&6; }
15114 if ${ac_cv_prog_OTOOL+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 if test -n "$OTOOL"; then
15118 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15119 else
15120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15121 for as_dir in $PATH
15122 do
15123 IFS=$as_save_IFS
15124 test -z "$as_dir" && as_dir=.
15125 for ac_exec_ext in '' $ac_executable_extensions; do
15126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15127 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15129 break 2
15130 fi
15131 done
15132 done
15133 IFS=$as_save_IFS
15134
15135 fi
15136 fi
15137 OTOOL=$ac_cv_prog_OTOOL
15138 if test -n "$OTOOL"; then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15140 $as_echo "$OTOOL" >&6; }
15141 else
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143 $as_echo "no" >&6; }
15144 fi
15145
15146
15147 fi
15148 if test -z "$ac_cv_prog_OTOOL"; then
15149 ac_ct_OTOOL=$OTOOL
15150 # Extract the first word of "otool", so it can be a program name with args.
15151 set dummy otool; ac_word=$2
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15153 $as_echo_n "checking for $ac_word... " >&6; }
15154 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 if test -n "$ac_ct_OTOOL"; then
15158 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15159 else
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15162 do
15163 IFS=$as_save_IFS
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15167 ac_cv_prog_ac_ct_OTOOL="otool"
15168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15169 break 2
15170 fi
15171 done
15172 done
15173 IFS=$as_save_IFS
15174
15175 fi
15176 fi
15177 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15178 if test -n "$ac_ct_OTOOL"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15180 $as_echo "$ac_ct_OTOOL" >&6; }
15181 else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15183 $as_echo "no" >&6; }
15184 fi
15185
15186 if test "x$ac_ct_OTOOL" = x; then
15187 OTOOL=":"
15188 else
15189 case $cross_compiling:$ac_tool_warned in
15190 yes:)
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15193 ac_tool_warned=yes ;;
15194 esac
15195 OTOOL=$ac_ct_OTOOL
15196 fi
15197 else
15198 OTOOL="$ac_cv_prog_OTOOL"
15199 fi
15200
15201 if test -n "$ac_tool_prefix"; then
15202 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15203 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15205 $as_echo_n "checking for $ac_word... " >&6; }
15206 if ${ac_cv_prog_OTOOL64+:} false; then :
15207 $as_echo_n "(cached) " >&6
15208 else
15209 if test -n "$OTOOL64"; then
15210 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15211 else
15212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213 for as_dir in $PATH
15214 do
15215 IFS=$as_save_IFS
15216 test -z "$as_dir" && as_dir=.
15217 for ac_exec_ext in '' $ac_executable_extensions; do
15218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15219 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15221 break 2
15222 fi
15223 done
15224 done
15225 IFS=$as_save_IFS
15226
15227 fi
15228 fi
15229 OTOOL64=$ac_cv_prog_OTOOL64
15230 if test -n "$OTOOL64"; then
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15232 $as_echo "$OTOOL64" >&6; }
15233 else
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235 $as_echo "no" >&6; }
15236 fi
15237
15238
15239 fi
15240 if test -z "$ac_cv_prog_OTOOL64"; then
15241 ac_ct_OTOOL64=$OTOOL64
15242 # Extract the first word of "otool64", so it can be a program name with args.
15243 set dummy otool64; ac_word=$2
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15245 $as_echo_n "checking for $ac_word... " >&6; }
15246 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249 if test -n "$ac_ct_OTOOL64"; then
15250 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15251 else
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15254 do
15255 IFS=$as_save_IFS
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_ac_ct_OTOOL64="otool64"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15261 break 2
15262 fi
15263 done
15264 done
15265 IFS=$as_save_IFS
15266
15267 fi
15268 fi
15269 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15270 if test -n "$ac_ct_OTOOL64"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15272 $as_echo "$ac_ct_OTOOL64" >&6; }
15273 else
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15276 fi
15277
15278 if test "x$ac_ct_OTOOL64" = x; then
15279 OTOOL64=":"
15280 else
15281 case $cross_compiling:$ac_tool_warned in
15282 yes:)
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15285 ac_tool_warned=yes ;;
15286 esac
15287 OTOOL64=$ac_ct_OTOOL64
15288 fi
15289 else
15290 OTOOL64="$ac_cv_prog_OTOOL64"
15291 fi
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15320 $as_echo_n "checking for -single_module linker flag... " >&6; }
15321 if ${lt_cv_apple_cc_single_mod+:} false; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 lt_cv_apple_cc_single_mod=no
15325 if test -z "${LT_MULTI_MODULE}"; then
15326 # By default we will add the -single_module flag. You can override
15327 # by either setting the environment variable LT_MULTI_MODULE
15328 # non-empty at configure time, or by adding -multi_module to the
15329 # link flags.
15330 rm -rf libconftest.dylib*
15331 echo "int foo(void){return 1;}" > conftest.c
15332 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15333 -dynamiclib -Wl,-single_module conftest.c" >&5
15334 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15335 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15336 _lt_result=$?
15337 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15338 lt_cv_apple_cc_single_mod=yes
15339 else
15340 cat conftest.err >&5
15341 fi
15342 rm -rf libconftest.dylib*
15343 rm -f conftest.*
15344 fi
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15347 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15349 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15350 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 lt_cv_ld_exported_symbols_list=no
15354 save_LDFLAGS=$LDFLAGS
15355 echo "_main" > conftest.sym
15356 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359
15360 int
15361 main ()
15362 {
15363
15364 ;
15365 return 0;
15366 }
15367 _ACEOF
15368 if ac_fn_c_try_link "$LINENO"; then :
15369 lt_cv_ld_exported_symbols_list=yes
15370 else
15371 lt_cv_ld_exported_symbols_list=no
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LDFLAGS="$save_LDFLAGS"
15376
15377 fi
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15379 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15381 $as_echo_n "checking for -force_load linker flag... " >&6; }
15382 if ${lt_cv_ld_force_load+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 lt_cv_ld_force_load=no
15386 cat > conftest.c << _LT_EOF
15387 int forced_loaded() { return 2;}
15388 _LT_EOF
15389 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15390 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15391 echo "$AR cru libconftest.a conftest.o" >&5
15392 $AR cru libconftest.a conftest.o 2>&5
15393 cat > conftest.c << _LT_EOF
15394 int main() { return 0;}
15395 _LT_EOF
15396 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15397 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15398 _lt_result=$?
15399 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15400 lt_cv_ld_force_load=yes
15401 else
15402 cat conftest.err >&5
15403 fi
15404 rm -f conftest.err libconftest.a conftest conftest.c
15405 rm -rf conftest.dSYM
15406
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15409 $as_echo "$lt_cv_ld_force_load" >&6; }
15410 case $host_os in
15411 rhapsody* | darwin1.[012])
15412 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15413 darwin1.*)
15414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15415 darwin*) # darwin 5.x on
15416 # if running on 10.5 or later, the deployment target defaults
15417 # to the OS version, if on x86, and 10.4, the deployment
15418 # target defaults to 10.4. Don't you love it?
15419 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15420 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15422 10.[012][,.]*)
15423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15424 10.*)
15425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15426 esac
15427 ;;
15428 esac
15429 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15430 _lt_dar_single_mod='$single_module'
15431 fi
15432 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15433 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15434 else
15435 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15436 fi
15437 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15438 _lt_dsymutil='~$DSYMUTIL $lib || :'
15439 else
15440 _lt_dsymutil=
15441 fi
15442 ;;
15443 esac
15444
15445
15446 for ac_header in dlfcn.h
15447 do :
15448 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15449 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15450 cat >>confdefs.h <<_ACEOF
15451 #define HAVE_DLFCN_H 1
15452 _ACEOF
15453
15454 fi
15455 done
15456
15457
15458
15459
15460
15461 # Set options
15462
15463
15464
15465 enable_dlopen=no
15466
15467
15468 enable_win32_dll=no
15469
15470
15471 # Check whether --enable-shared was given.
15472 if test "${enable_shared+set}" = set; then :
15473 enableval=$enable_shared; p=${PACKAGE-default}
15474 case $enableval in
15475 yes) enable_shared=yes ;;
15476 no) enable_shared=no ;;
15477 *)
15478 enable_shared=no
15479 # Look at the argument we got. We use all the common list separators.
15480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15481 for pkg in $enableval; do
15482 IFS="$lt_save_ifs"
15483 if test "X$pkg" = "X$p"; then
15484 enable_shared=yes
15485 fi
15486 done
15487 IFS="$lt_save_ifs"
15488 ;;
15489 esac
15490 else
15491 enable_shared=yes
15492 fi
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502 # Check whether --enable-static was given.
15503 if test "${enable_static+set}" = set; then :
15504 enableval=$enable_static; p=${PACKAGE-default}
15505 case $enableval in
15506 yes) enable_static=yes ;;
15507 no) enable_static=no ;;
15508 *)
15509 enable_static=no
15510 # Look at the argument we got. We use all the common list separators.
15511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15512 for pkg in $enableval; do
15513 IFS="$lt_save_ifs"
15514 if test "X$pkg" = "X$p"; then
15515 enable_static=yes
15516 fi
15517 done
15518 IFS="$lt_save_ifs"
15519 ;;
15520 esac
15521 else
15522 enable_static=yes
15523 fi
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534 # Check whether --with-pic was given.
15535 if test "${with_pic+set}" = set; then :
15536 withval=$with_pic; pic_mode="$withval"
15537 else
15538 pic_mode=default
15539 fi
15540
15541
15542 test -z "$pic_mode" && pic_mode=default
15543
15544
15545
15546
15547
15548
15549
15550 # Check whether --enable-fast-install was given.
15551 if test "${enable_fast_install+set}" = set; then :
15552 enableval=$enable_fast_install; p=${PACKAGE-default}
15553 case $enableval in
15554 yes) enable_fast_install=yes ;;
15555 no) enable_fast_install=no ;;
15556 *)
15557 enable_fast_install=no
15558 # Look at the argument we got. We use all the common list separators.
15559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15560 for pkg in $enableval; do
15561 IFS="$lt_save_ifs"
15562 if test "X$pkg" = "X$p"; then
15563 enable_fast_install=yes
15564 fi
15565 done
15566 IFS="$lt_save_ifs"
15567 ;;
15568 esac
15569 else
15570 enable_fast_install=yes
15571 fi
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583 # This can be used to rebuild libtool when needed
15584 LIBTOOL_DEPS="$ltmain"
15585
15586 # Always use our own libtool.
15587 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614 test -z "$LN_S" && LN_S="ln -s"
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629 if test -n "${ZSH_VERSION+set}" ; then
15630 setopt NO_GLOB_SUBST
15631 fi
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15634 $as_echo_n "checking for objdir... " >&6; }
15635 if ${lt_cv_objdir+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 rm -f .libs 2>/dev/null
15639 mkdir .libs 2>/dev/null
15640 if test -d .libs; then
15641 lt_cv_objdir=.libs
15642 else
15643 # MS-DOS does not allow filenames that begin with a dot.
15644 lt_cv_objdir=_libs
15645 fi
15646 rmdir .libs 2>/dev/null
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15649 $as_echo "$lt_cv_objdir" >&6; }
15650 objdir=$lt_cv_objdir
15651
15652
15653
15654
15655
15656 cat >>confdefs.h <<_ACEOF
15657 #define LT_OBJDIR "$lt_cv_objdir/"
15658 _ACEOF
15659
15660
15661
15662
15663 case $host_os in
15664 aix3*)
15665 # AIX sometimes has problems with the GCC collect2 program. For some
15666 # reason, if we set the COLLECT_NAMES environment variable, the problems
15667 # vanish in a puff of smoke.
15668 if test "X${COLLECT_NAMES+set}" != Xset; then
15669 COLLECT_NAMES=
15670 export COLLECT_NAMES
15671 fi
15672 ;;
15673 esac
15674
15675 # Global variables:
15676 ofile=libtool
15677 can_build_shared=yes
15678
15679 # All known linkers require a `.a' archive for static linking (except MSVC,
15680 # which needs '.lib').
15681 libext=a
15682
15683 with_gnu_ld="$lt_cv_prog_gnu_ld"
15684
15685 old_CC="$CC"
15686 old_CFLAGS="$CFLAGS"
15687
15688 # Set sane defaults for various variables
15689 test -z "$CC" && CC=cc
15690 test -z "$LTCC" && LTCC=$CC
15691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15692 test -z "$LD" && LD=ld
15693 test -z "$ac_objext" && ac_objext=o
15694
15695 for cc_temp in $compiler""; do
15696 case $cc_temp in
15697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15699 \-*) ;;
15700 *) break;;
15701 esac
15702 done
15703 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15704
15705
15706 # Only perform the check for file, if the check method requires it
15707 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15708 case $deplibs_check_method in
15709 file_magic*)
15710 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15712 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15713 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 case $MAGIC_CMD in
15717 [\\/*] | ?:[\\/]*)
15718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15719 ;;
15720 *)
15721 lt_save_MAGIC_CMD="$MAGIC_CMD"
15722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15724 for ac_dir in $ac_dummy; do
15725 IFS="$lt_save_ifs"
15726 test -z "$ac_dir" && ac_dir=.
15727 if test -f $ac_dir/${ac_tool_prefix}file; then
15728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15729 if test -n "$file_magic_test_file"; then
15730 case $deplibs_check_method in
15731 "file_magic "*)
15732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15735 $EGREP "$file_magic_regex" > /dev/null; then
15736 :
15737 else
15738 cat <<_LT_EOF 1>&2
15739
15740 *** Warning: the command libtool uses to detect shared libraries,
15741 *** $file_magic_cmd, produces output that libtool cannot recognize.
15742 *** The result is that libtool may fail to recognize shared libraries
15743 *** as such. This will affect the creation of libtool libraries that
15744 *** depend on shared libraries, but programs linked with such libtool
15745 *** libraries will work regardless of this problem. Nevertheless, you
15746 *** may want to report the problem to your system manager and/or to
15747 *** bug-libtool@gnu.org
15748
15749 _LT_EOF
15750 fi ;;
15751 esac
15752 fi
15753 break
15754 fi
15755 done
15756 IFS="$lt_save_ifs"
15757 MAGIC_CMD="$lt_save_MAGIC_CMD"
15758 ;;
15759 esac
15760 fi
15761
15762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15763 if test -n "$MAGIC_CMD"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15765 $as_echo "$MAGIC_CMD" >&6; }
15766 else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15769 fi
15770
15771
15772
15773
15774
15775 if test -z "$lt_cv_path_MAGIC_CMD"; then
15776 if test -n "$ac_tool_prefix"; then
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15778 $as_echo_n "checking for file... " >&6; }
15779 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15780 $as_echo_n "(cached) " >&6
15781 else
15782 case $MAGIC_CMD in
15783 [\\/*] | ?:[\\/]*)
15784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15785 ;;
15786 *)
15787 lt_save_MAGIC_CMD="$MAGIC_CMD"
15788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15789 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15790 for ac_dir in $ac_dummy; do
15791 IFS="$lt_save_ifs"
15792 test -z "$ac_dir" && ac_dir=.
15793 if test -f $ac_dir/file; then
15794 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15795 if test -n "$file_magic_test_file"; then
15796 case $deplibs_check_method in
15797 "file_magic "*)
15798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15801 $EGREP "$file_magic_regex" > /dev/null; then
15802 :
15803 else
15804 cat <<_LT_EOF 1>&2
15805
15806 *** Warning: the command libtool uses to detect shared libraries,
15807 *** $file_magic_cmd, produces output that libtool cannot recognize.
15808 *** The result is that libtool may fail to recognize shared libraries
15809 *** as such. This will affect the creation of libtool libraries that
15810 *** depend on shared libraries, but programs linked with such libtool
15811 *** libraries will work regardless of this problem. Nevertheless, you
15812 *** may want to report the problem to your system manager and/or to
15813 *** bug-libtool@gnu.org
15814
15815 _LT_EOF
15816 fi ;;
15817 esac
15818 fi
15819 break
15820 fi
15821 done
15822 IFS="$lt_save_ifs"
15823 MAGIC_CMD="$lt_save_MAGIC_CMD"
15824 ;;
15825 esac
15826 fi
15827
15828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15829 if test -n "$MAGIC_CMD"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15831 $as_echo "$MAGIC_CMD" >&6; }
15832 else
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 $as_echo "no" >&6; }
15835 fi
15836
15837
15838 else
15839 MAGIC_CMD=:
15840 fi
15841 fi
15842
15843 fi
15844 ;;
15845 esac
15846
15847 # Use C for the default configuration in the libtool script
15848
15849 lt_save_CC="$CC"
15850 ac_ext=c
15851 ac_cpp='$CPP $CPPFLAGS'
15852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15855
15856
15857 # Source file extension for C test sources.
15858 ac_ext=c
15859
15860 # Object file extension for compiled C test sources.
15861 objext=o
15862 objext=$objext
15863
15864 # Code to be used in simple compile tests
15865 lt_simple_compile_test_code="int some_variable = 0;"
15866
15867 # Code to be used in simple link tests
15868 lt_simple_link_test_code='int main(){return(0);}'
15869
15870
15871
15872
15873
15874
15875
15876 # If no C compiler was specified, use CC.
15877 LTCC=${LTCC-"$CC"}
15878
15879 # If no C compiler flags were specified, use CFLAGS.
15880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15881
15882 # Allow CC to be a program name with arguments.
15883 compiler=$CC
15884
15885 # Save the default compiler, since it gets overwritten when the other
15886 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15887 compiler_DEFAULT=$CC
15888
15889 # save warnings/boilerplate of simple test code
15890 ac_outfile=conftest.$ac_objext
15891 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15893 _lt_compiler_boilerplate=`cat conftest.err`
15894 $RM conftest*
15895
15896 ac_outfile=conftest.$ac_objext
15897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15899 _lt_linker_boilerplate=`cat conftest.err`
15900 $RM -r conftest*
15901
15902
15903 ## CAVEAT EMPTOR:
15904 ## There is no encapsulation within the following macros, do not change
15905 ## the running order or otherwise move them around unless you know exactly
15906 ## what you are doing...
15907 if test -n "$compiler"; then
15908
15909 lt_prog_compiler_no_builtin_flag=
15910
15911 if test "$GCC" = yes; then
15912 case $cc_basename in
15913 nvcc*)
15914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15915 *)
15916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15917 esac
15918
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15920 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15921 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923 else
15924 lt_cv_prog_compiler_rtti_exceptions=no
15925 ac_outfile=conftest.$ac_objext
15926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15927 lt_compiler_flag="-fno-rtti -fno-exceptions"
15928 # Insert the option either (1) after the last *FLAGS variable, or
15929 # (2) before a word containing "conftest.", or (3) at the end.
15930 # Note that $ac_compile itself does not contain backslashes and begins
15931 # with a dollar sign (not a hyphen), so the echo should work correctly.
15932 # The option is referenced via a variable to avoid confusing sed.
15933 lt_compile=`echo "$ac_compile" | $SED \
15934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15936 -e 's:$: $lt_compiler_flag:'`
15937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15938 (eval "$lt_compile" 2>conftest.err)
15939 ac_status=$?
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 if (exit $ac_status) && test -s "$ac_outfile"; then
15943 # The compiler can only warn and ignore the option if not recognized
15944 # So say no if there are warnings other than the usual output.
15945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15948 lt_cv_prog_compiler_rtti_exceptions=yes
15949 fi
15950 fi
15951 $RM conftest*
15952
15953 fi
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15955 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15956
15957 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15958 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15959 else
15960 :
15961 fi
15962
15963 fi
15964
15965
15966
15967
15968
15969
15970 lt_prog_compiler_wl=
15971 lt_prog_compiler_pic=
15972 lt_prog_compiler_static=
15973
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15975 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15976
15977 if test "$GCC" = yes; then
15978 lt_prog_compiler_wl='-Wl,'
15979 lt_prog_compiler_static='-static'
15980
15981 case $host_os in
15982 aix*)
15983 # All AIX code is PIC.
15984 if test "$host_cpu" = ia64; then
15985 # AIX 5 now supports IA64 processor
15986 lt_prog_compiler_static='-Bstatic'
15987 fi
15988 lt_prog_compiler_pic='-fPIC'
15989 ;;
15990
15991 amigaos*)
15992 case $host_cpu in
15993 powerpc)
15994 # see comment about AmigaOS4 .so support
15995 lt_prog_compiler_pic='-fPIC'
15996 ;;
15997 m68k)
15998 # FIXME: we need at least 68020 code to build shared libraries, but
15999 # adding the `-m68020' flag to GCC prevents building anything better,
16000 # like `-m68040'.
16001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16002 ;;
16003 esac
16004 ;;
16005
16006 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16007 # PIC is the default for these OSes.
16008 ;;
16009
16010 mingw* | cygwin* | pw32* | os2* | cegcc*)
16011 # This hack is so that the source file can tell whether it is being
16012 # built for inclusion in a dll (and should export symbols for example).
16013 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16014 # (--disable-auto-import) libraries
16015 lt_prog_compiler_pic='-DDLL_EXPORT'
16016 ;;
16017
16018 darwin* | rhapsody*)
16019 # PIC is the default on this platform
16020 # Common symbols not allowed in MH_DYLIB files
16021 lt_prog_compiler_pic='-fno-common'
16022 ;;
16023
16024 haiku*)
16025 # PIC is the default for Haiku.
16026 # The "-static" flag exists, but is broken.
16027 lt_prog_compiler_static=
16028 ;;
16029
16030 hpux*)
16031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16033 # sets the default TLS model and affects inlining.
16034 case $host_cpu in
16035 hppa*64*)
16036 # +Z the default
16037 ;;
16038 *)
16039 lt_prog_compiler_pic='-fPIC'
16040 ;;
16041 esac
16042 ;;
16043
16044 interix[3-9]*)
16045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16046 # Instead, we relocate shared libraries at runtime.
16047 ;;
16048
16049 msdosdjgpp*)
16050 # Just because we use GCC doesn't mean we suddenly get shared libraries
16051 # on systems that don't support them.
16052 lt_prog_compiler_can_build_shared=no
16053 enable_shared=no
16054 ;;
16055
16056 *nto* | *qnx*)
16057 # QNX uses GNU C++, but need to define -shared option too, otherwise
16058 # it will coredump.
16059 lt_prog_compiler_pic='-fPIC -shared'
16060 ;;
16061
16062 sysv4*MP*)
16063 if test -d /usr/nec; then
16064 lt_prog_compiler_pic=-Kconform_pic
16065 fi
16066 ;;
16067
16068 *)
16069 lt_prog_compiler_pic='-fPIC'
16070 ;;
16071 esac
16072
16073 case $cc_basename in
16074 nvcc*) # Cuda Compiler Driver 2.2
16075 lt_prog_compiler_wl='-Xlinker '
16076 lt_prog_compiler_pic='-Xcompiler -fPIC'
16077 ;;
16078 esac
16079 else
16080 # PORTME Check for flag to pass linker flags through the system compiler.
16081 case $host_os in
16082 aix*)
16083 lt_prog_compiler_wl='-Wl,'
16084 if test "$host_cpu" = ia64; then
16085 # AIX 5 now supports IA64 processor
16086 lt_prog_compiler_static='-Bstatic'
16087 else
16088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16089 fi
16090 ;;
16091
16092 mingw* | cygwin* | pw32* | os2* | cegcc*)
16093 # This hack is so that the source file can tell whether it is being
16094 # built for inclusion in a dll (and should export symbols for example).
16095 lt_prog_compiler_pic='-DDLL_EXPORT'
16096 ;;
16097
16098 hpux9* | hpux10* | hpux11*)
16099 lt_prog_compiler_wl='-Wl,'
16100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16101 # not for PA HP-UX.
16102 case $host_cpu in
16103 hppa*64*|ia64*)
16104 # +Z the default
16105 ;;
16106 *)
16107 lt_prog_compiler_pic='+Z'
16108 ;;
16109 esac
16110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16111 lt_prog_compiler_static='${wl}-a ${wl}archive'
16112 ;;
16113
16114 irix5* | irix6* | nonstopux*)
16115 lt_prog_compiler_wl='-Wl,'
16116 # PIC (with -KPIC) is the default.
16117 lt_prog_compiler_static='-non_shared'
16118 ;;
16119
16120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16121 case $cc_basename in
16122 # old Intel for x86_64 which still supported -KPIC.
16123 ecc*)
16124 lt_prog_compiler_wl='-Wl,'
16125 lt_prog_compiler_pic='-KPIC'
16126 lt_prog_compiler_static='-static'
16127 ;;
16128 # icc used to be incompatible with GCC.
16129 # ICC 10 doesn't accept -KPIC any more.
16130 icc* | ifort*)
16131 lt_prog_compiler_wl='-Wl,'
16132 lt_prog_compiler_pic='-fPIC'
16133 lt_prog_compiler_static='-static'
16134 ;;
16135 # Lahey Fortran 8.1.
16136 lf95*)
16137 lt_prog_compiler_wl='-Wl,'
16138 lt_prog_compiler_pic='--shared'
16139 lt_prog_compiler_static='--static'
16140 ;;
16141 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16142 # Portland Group compilers (*not* the Pentium gcc compiler,
16143 # which looks to be a dead project)
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-fpic'
16146 lt_prog_compiler_static='-Bstatic'
16147 ;;
16148 ccc*)
16149 lt_prog_compiler_wl='-Wl,'
16150 # All Alpha code is PIC.
16151 lt_prog_compiler_static='-non_shared'
16152 ;;
16153 xl* | bgxl* | bgf* | mpixl*)
16154 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16155 lt_prog_compiler_wl='-Wl,'
16156 lt_prog_compiler_pic='-qpic'
16157 lt_prog_compiler_static='-qstaticlink'
16158 ;;
16159 *)
16160 case `$CC -V 2>&1 | sed 5q` in
16161 *Sun\ F* | *Sun*Fortran*)
16162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16163 lt_prog_compiler_pic='-KPIC'
16164 lt_prog_compiler_static='-Bstatic'
16165 lt_prog_compiler_wl=''
16166 ;;
16167 *Sun\ C*)
16168 # Sun C 5.9
16169 lt_prog_compiler_pic='-KPIC'
16170 lt_prog_compiler_static='-Bstatic'
16171 lt_prog_compiler_wl='-Wl,'
16172 ;;
16173 esac
16174 ;;
16175 esac
16176 ;;
16177
16178 newsos6)
16179 lt_prog_compiler_pic='-KPIC'
16180 lt_prog_compiler_static='-Bstatic'
16181 ;;
16182
16183 *nto* | *qnx*)
16184 # QNX uses GNU C++, but need to define -shared option too, otherwise
16185 # it will coredump.
16186 lt_prog_compiler_pic='-fPIC -shared'
16187 ;;
16188
16189 osf3* | osf4* | osf5*)
16190 lt_prog_compiler_wl='-Wl,'
16191 # All OSF/1 code is PIC.
16192 lt_prog_compiler_static='-non_shared'
16193 ;;
16194
16195 rdos*)
16196 lt_prog_compiler_static='-non_shared'
16197 ;;
16198
16199 solaris*)
16200 lt_prog_compiler_pic='-KPIC'
16201 lt_prog_compiler_static='-Bstatic'
16202 case $cc_basename in
16203 f77* | f90* | f95*)
16204 lt_prog_compiler_wl='-Qoption ld ';;
16205 *)
16206 lt_prog_compiler_wl='-Wl,';;
16207 esac
16208 ;;
16209
16210 sunos4*)
16211 lt_prog_compiler_wl='-Qoption ld '
16212 lt_prog_compiler_pic='-PIC'
16213 lt_prog_compiler_static='-Bstatic'
16214 ;;
16215
16216 sysv4 | sysv4.2uw2* | sysv4.3*)
16217 lt_prog_compiler_wl='-Wl,'
16218 lt_prog_compiler_pic='-KPIC'
16219 lt_prog_compiler_static='-Bstatic'
16220 ;;
16221
16222 sysv4*MP*)
16223 if test -d /usr/nec ;then
16224 lt_prog_compiler_pic='-Kconform_pic'
16225 lt_prog_compiler_static='-Bstatic'
16226 fi
16227 ;;
16228
16229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16230 lt_prog_compiler_wl='-Wl,'
16231 lt_prog_compiler_pic='-KPIC'
16232 lt_prog_compiler_static='-Bstatic'
16233 ;;
16234
16235 unicos*)
16236 lt_prog_compiler_wl='-Wl,'
16237 lt_prog_compiler_can_build_shared=no
16238 ;;
16239
16240 uts4*)
16241 lt_prog_compiler_pic='-pic'
16242 lt_prog_compiler_static='-Bstatic'
16243 ;;
16244
16245 *)
16246 lt_prog_compiler_can_build_shared=no
16247 ;;
16248 esac
16249 fi
16250
16251 case $host_os in
16252 # For platforms which do not support PIC, -DPIC is meaningless:
16253 *djgpp*)
16254 lt_prog_compiler_pic=
16255 ;;
16256 *)
16257 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16258 ;;
16259 esac
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16261 $as_echo "$lt_prog_compiler_pic" >&6; }
16262
16263
16264
16265
16266
16267
16268 #
16269 # Check to make sure the PIC flag actually works.
16270 #
16271 if test -n "$lt_prog_compiler_pic"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16273 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16274 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 lt_cv_prog_compiler_pic_works=no
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16280 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16281 # Insert the option either (1) after the last *FLAGS variable, or
16282 # (2) before a word containing "conftest.", or (3) at the end.
16283 # Note that $ac_compile itself does not contain backslashes and begins
16284 # with a dollar sign (not a hyphen), so the echo should work correctly.
16285 # The option is referenced via a variable to avoid confusing sed.
16286 lt_compile=`echo "$ac_compile" | $SED \
16287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16289 -e 's:$: $lt_compiler_flag:'`
16290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16291 (eval "$lt_compile" 2>conftest.err)
16292 ac_status=$?
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 if (exit $ac_status) && test -s "$ac_outfile"; then
16296 # The compiler can only warn and ignore the option if not recognized
16297 # So say no if there are warnings other than the usual output.
16298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16301 lt_cv_prog_compiler_pic_works=yes
16302 fi
16303 fi
16304 $RM conftest*
16305
16306 fi
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16308 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16309
16310 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16311 case $lt_prog_compiler_pic in
16312 "" | " "*) ;;
16313 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16314 esac
16315 else
16316 lt_prog_compiler_pic=
16317 lt_prog_compiler_can_build_shared=no
16318 fi
16319
16320 fi
16321
16322
16323
16324
16325
16326
16327 #
16328 # Check to make sure the static flag actually works.
16329 #
16330 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16332 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16333 if ${lt_cv_prog_compiler_static_works+:} false; then :
16334 $as_echo_n "(cached) " >&6
16335 else
16336 lt_cv_prog_compiler_static_works=no
16337 save_LDFLAGS="$LDFLAGS"
16338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16341 # The linker can only warn and ignore the option if not recognized
16342 # So say no if there are warnings
16343 if test -s conftest.err; then
16344 # Append any errors to the config.log.
16345 cat conftest.err 1>&5
16346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16348 if diff conftest.exp conftest.er2 >/dev/null; then
16349 lt_cv_prog_compiler_static_works=yes
16350 fi
16351 else
16352 lt_cv_prog_compiler_static_works=yes
16353 fi
16354 fi
16355 $RM -r conftest*
16356 LDFLAGS="$save_LDFLAGS"
16357
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16360 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16361
16362 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16363 :
16364 else
16365 lt_prog_compiler_static=
16366 fi
16367
16368
16369
16370
16371
16372
16373
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16375 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16376 if ${lt_cv_prog_compiler_c_o+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 lt_cv_prog_compiler_c_o=no
16380 $RM -r conftest 2>/dev/null
16381 mkdir conftest
16382 cd conftest
16383 mkdir out
16384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16385
16386 lt_compiler_flag="-o out/conftest2.$ac_objext"
16387 # Insert the option either (1) after the last *FLAGS variable, or
16388 # (2) before a word containing "conftest.", or (3) at the end.
16389 # Note that $ac_compile itself does not contain backslashes and begins
16390 # with a dollar sign (not a hyphen), so the echo should work correctly.
16391 lt_compile=`echo "$ac_compile" | $SED \
16392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16394 -e 's:$: $lt_compiler_flag:'`
16395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16396 (eval "$lt_compile" 2>out/conftest.err)
16397 ac_status=$?
16398 cat out/conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16401 then
16402 # The compiler can only warn and ignore the option if not recognized
16403 # So say no if there are warnings
16404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16407 lt_cv_prog_compiler_c_o=yes
16408 fi
16409 fi
16410 chmod u+w . 2>&5
16411 $RM conftest*
16412 # SGI C++ compiler will create directory out/ii_files/ for
16413 # template instantiation
16414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16415 $RM out/* && rmdir out
16416 cd ..
16417 $RM -r conftest
16418 $RM conftest*
16419
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16422 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16423
16424
16425
16426
16427
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16431 if ${lt_cv_prog_compiler_c_o+:} false; then :
16432 $as_echo_n "(cached) " >&6
16433 else
16434 lt_cv_prog_compiler_c_o=no
16435 $RM -r conftest 2>/dev/null
16436 mkdir conftest
16437 cd conftest
16438 mkdir out
16439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16440
16441 lt_compiler_flag="-o out/conftest2.$ac_objext"
16442 # Insert the option either (1) after the last *FLAGS variable, or
16443 # (2) before a word containing "conftest.", or (3) at the end.
16444 # Note that $ac_compile itself does not contain backslashes and begins
16445 # with a dollar sign (not a hyphen), so the echo should work correctly.
16446 lt_compile=`echo "$ac_compile" | $SED \
16447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16449 -e 's:$: $lt_compiler_flag:'`
16450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16451 (eval "$lt_compile" 2>out/conftest.err)
16452 ac_status=$?
16453 cat out/conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16456 then
16457 # The compiler can only warn and ignore the option if not recognized
16458 # So say no if there are warnings
16459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16462 lt_cv_prog_compiler_c_o=yes
16463 fi
16464 fi
16465 chmod u+w . 2>&5
16466 $RM conftest*
16467 # SGI C++ compiler will create directory out/ii_files/ for
16468 # template instantiation
16469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16470 $RM out/* && rmdir out
16471 cd ..
16472 $RM -r conftest
16473 $RM conftest*
16474
16475 fi
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16478
16479
16480
16481
16482 hard_links="nottested"
16483 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16484 # do not overwrite the value of need_locks provided by the user
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16486 $as_echo_n "checking if we can lock with hard links... " >&6; }
16487 hard_links=yes
16488 $RM conftest*
16489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16490 touch conftest.a
16491 ln conftest.a conftest.b 2>&5 || hard_links=no
16492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16494 $as_echo "$hard_links" >&6; }
16495 if test "$hard_links" = no; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16498 need_locks=warn
16499 fi
16500 else
16501 need_locks=no
16502 fi
16503
16504
16505
16506
16507
16508
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16510 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16511
16512 runpath_var=
16513 allow_undefined_flag=
16514 always_export_symbols=no
16515 archive_cmds=
16516 archive_expsym_cmds=
16517 compiler_needs_object=no
16518 enable_shared_with_static_runtimes=no
16519 export_dynamic_flag_spec=
16520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16521 hardcode_automatic=no
16522 hardcode_direct=no
16523 hardcode_direct_absolute=no
16524 hardcode_libdir_flag_spec=
16525 hardcode_libdir_flag_spec_ld=
16526 hardcode_libdir_separator=
16527 hardcode_minus_L=no
16528 hardcode_shlibpath_var=unsupported
16529 inherit_rpath=no
16530 link_all_deplibs=unknown
16531 module_cmds=
16532 module_expsym_cmds=
16533 old_archive_from_new_cmds=
16534 old_archive_from_expsyms_cmds=
16535 thread_safe_flag_spec=
16536 whole_archive_flag_spec=
16537 # include_expsyms should be a list of space-separated symbols to be *always*
16538 # included in the symbol list
16539 include_expsyms=
16540 # exclude_expsyms can be an extended regexp of symbols to exclude
16541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16543 # as well as any symbol that contains `d'.
16544 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16546 # platforms (ab)use it in PIC code, but their linkers get confused if
16547 # the symbol is explicitly referenced. Since portable code cannot
16548 # rely on this symbol name, it's probably fine to never include it in
16549 # preloaded symbol tables.
16550 # Exclude shared library initialization/finalization symbols.
16551 extract_expsyms_cmds=
16552
16553 case $host_os in
16554 cygwin* | mingw* | pw32* | cegcc*)
16555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16556 # When not using gcc, we currently assume that we are using
16557 # Microsoft Visual C++.
16558 if test "$GCC" != yes; then
16559 with_gnu_ld=no
16560 fi
16561 ;;
16562 interix*)
16563 # we just hope/assume this is gcc and not c89 (= MSVC++)
16564 with_gnu_ld=yes
16565 ;;
16566 openbsd*)
16567 with_gnu_ld=no
16568 ;;
16569 esac
16570
16571 ld_shlibs=yes
16572
16573 # On some targets, GNU ld is compatible enough with the native linker
16574 # that we're better off using the native interface for both.
16575 lt_use_gnu_ld_interface=no
16576 if test "$with_gnu_ld" = yes; then
16577 case $host_os in
16578 aix*)
16579 # The AIX port of GNU ld has always aspired to compatibility
16580 # with the native linker. However, as the warning in the GNU ld
16581 # block says, versions before 2.19.5* couldn't really create working
16582 # shared libraries, regardless of the interface used.
16583 case `$LD -v 2>&1` in
16584 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16585 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16586 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16587 *)
16588 lt_use_gnu_ld_interface=yes
16589 ;;
16590 esac
16591 ;;
16592 *)
16593 lt_use_gnu_ld_interface=yes
16594 ;;
16595 esac
16596 fi
16597
16598 if test "$lt_use_gnu_ld_interface" = yes; then
16599 # If archive_cmds runs LD, not CC, wlarc should be empty
16600 wlarc='${wl}'
16601
16602 # Set some defaults for GNU ld with shared library support. These
16603 # are reset later if shared libraries are not supported. Putting them
16604 # here allows them to be overridden if necessary.
16605 runpath_var=LD_RUN_PATH
16606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16607 export_dynamic_flag_spec='${wl}--export-dynamic'
16608 # ancient GNU ld didn't support --whole-archive et. al.
16609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16610 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16611 else
16612 whole_archive_flag_spec=
16613 fi
16614 supports_anon_versioning=no
16615 case `$LD -v 2>&1` in
16616 *GNU\ gold*) supports_anon_versioning=yes ;;
16617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16620 *\ 2.11.*) ;; # other 2.11 versions
16621 *) supports_anon_versioning=yes ;;
16622 esac
16623
16624 # See if GNU ld supports shared libraries.
16625 case $host_os in
16626 aix[3-9]*)
16627 # On AIX/PPC, the GNU linker is very broken
16628 if test "$host_cpu" != ia64; then
16629 ld_shlibs=no
16630 cat <<_LT_EOF 1>&2
16631
16632 *** Warning: the GNU linker, at least up to release 2.19, is reported
16633 *** to be unable to reliably create shared libraries on AIX.
16634 *** Therefore, libtool is disabling shared libraries support. If you
16635 *** really care for shared libraries, you may want to install binutils
16636 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16637 *** You will then need to restart the configuration process.
16638
16639 _LT_EOF
16640 fi
16641 ;;
16642
16643 amigaos*)
16644 case $host_cpu in
16645 powerpc)
16646 # see comment about AmigaOS4 .so support
16647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16648 archive_expsym_cmds=''
16649 ;;
16650 m68k)
16651 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)'
16652 hardcode_libdir_flag_spec='-L$libdir'
16653 hardcode_minus_L=yes
16654 ;;
16655 esac
16656 ;;
16657
16658 beos*)
16659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16660 allow_undefined_flag=unsupported
16661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16662 # support --undefined. This deserves some investigation. FIXME
16663 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16664 else
16665 ld_shlibs=no
16666 fi
16667 ;;
16668
16669 cygwin* | mingw* | pw32* | cegcc*)
16670 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16671 # as there is no search path for DLLs.
16672 hardcode_libdir_flag_spec='-L$libdir'
16673 export_dynamic_flag_spec='${wl}--export-all-symbols'
16674 allow_undefined_flag=unsupported
16675 always_export_symbols=no
16676 enable_shared_with_static_runtimes=yes
16677 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16678
16679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16681 # If the export-symbols file already is a .def file (1st line
16682 # is EXPORTS), use it as is; otherwise, prepend...
16683 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16684 cp $export_symbols $output_objdir/$soname.def;
16685 else
16686 echo EXPORTS > $output_objdir/$soname.def;
16687 cat $export_symbols >> $output_objdir/$soname.def;
16688 fi~
16689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16690 else
16691 ld_shlibs=no
16692 fi
16693 ;;
16694
16695 haiku*)
16696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16697 link_all_deplibs=yes
16698 ;;
16699
16700 interix[3-9]*)
16701 hardcode_direct=no
16702 hardcode_shlibpath_var=no
16703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16704 export_dynamic_flag_spec='${wl}-E'
16705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16706 # Instead, shared libraries are loaded at an image base (0x10000000 by
16707 # default) and relocated if they conflict, which is a slow very memory
16708 # consuming and fragmenting process. To avoid this, we pick a random,
16709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16712 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'
16713 ;;
16714
16715 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16716 tmp_diet=no
16717 if test "$host_os" = linux-dietlibc; then
16718 case $cc_basename in
16719 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16720 esac
16721 fi
16722 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16723 && test "$tmp_diet" = no
16724 then
16725 tmp_addflag=' $pic_flag'
16726 tmp_sharedflag='-shared'
16727 case $cc_basename,$host_cpu in
16728 pgcc*) # Portland Group C compiler
16729 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'
16730 tmp_addflag=' $pic_flag'
16731 ;;
16732 pgf77* | pgf90* | pgf95* | pgfortran*)
16733 # Portland Group f77 and f90 compilers
16734 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'
16735 tmp_addflag=' $pic_flag -Mnomain' ;;
16736 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16737 tmp_addflag=' -i_dynamic' ;;
16738 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16739 tmp_addflag=' -i_dynamic -nofor_main' ;;
16740 ifc* | ifort*) # Intel Fortran compiler
16741 tmp_addflag=' -nofor_main' ;;
16742 lf95*) # Lahey Fortran 8.1
16743 whole_archive_flag_spec=
16744 tmp_sharedflag='--shared' ;;
16745 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16746 tmp_sharedflag='-qmkshrobj'
16747 tmp_addflag= ;;
16748 nvcc*) # Cuda Compiler Driver 2.2
16749 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'
16750 compiler_needs_object=yes
16751 ;;
16752 esac
16753 case `$CC -V 2>&1 | sed 5q` in
16754 *Sun\ C*) # Sun C 5.9
16755 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'
16756 compiler_needs_object=yes
16757 tmp_sharedflag='-G' ;;
16758 *Sun\ F*) # Sun Fortran 8.3
16759 tmp_sharedflag='-G' ;;
16760 esac
16761 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16762
16763 if test "x$supports_anon_versioning" = xyes; then
16764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16766 echo "local: *; };" >> $output_objdir/$libname.ver~
16767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16768 fi
16769
16770 case $cc_basename in
16771 xlf* | bgf* | bgxlf* | mpixlf*)
16772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16773 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16774 hardcode_libdir_flag_spec=
16775 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16776 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16777 if test "x$supports_anon_versioning" = xyes; then
16778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16780 echo "local: *; };" >> $output_objdir/$libname.ver~
16781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16782 fi
16783 ;;
16784 esac
16785 else
16786 ld_shlibs=no
16787 fi
16788 ;;
16789
16790 netbsd*)
16791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16793 wlarc=
16794 else
16795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16797 fi
16798 ;;
16799
16800 solaris*)
16801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16802 ld_shlibs=no
16803 cat <<_LT_EOF 1>&2
16804
16805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16806 *** create shared libraries on Solaris systems. Therefore, libtool
16807 *** is disabling shared libraries support. We urge you to upgrade GNU
16808 *** binutils to release 2.9.1 or newer. Another option is to modify
16809 *** your PATH or compiler configuration so that the native linker is
16810 *** used, and then restart.
16811
16812 _LT_EOF
16813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16816 else
16817 ld_shlibs=no
16818 fi
16819 ;;
16820
16821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16822 case `$LD -v 2>&1` in
16823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16824 ld_shlibs=no
16825 cat <<_LT_EOF 1>&2
16826
16827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16828 *** reliably create shared libraries on SCO systems. Therefore, libtool
16829 *** is disabling shared libraries support. We urge you to upgrade GNU
16830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16831 *** your PATH or compiler configuration so that the native linker is
16832 *** used, and then restart.
16833
16834 _LT_EOF
16835 ;;
16836 *)
16837 # For security reasons, it is highly recommended that you always
16838 # use absolute paths for naming shared libraries, and exclude the
16839 # DT_RUNPATH tag from executables and libraries. But doing so
16840 # requires that you compile everything twice, which is a pain.
16841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16845 else
16846 ld_shlibs=no
16847 fi
16848 ;;
16849 esac
16850 ;;
16851
16852 sunos4*)
16853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16854 wlarc=
16855 hardcode_direct=yes
16856 hardcode_shlibpath_var=no
16857 ;;
16858
16859 *)
16860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16863 else
16864 ld_shlibs=no
16865 fi
16866 ;;
16867 esac
16868
16869 if test "$ld_shlibs" = no; then
16870 runpath_var=
16871 hardcode_libdir_flag_spec=
16872 export_dynamic_flag_spec=
16873 whole_archive_flag_spec=
16874 fi
16875 else
16876 # PORTME fill in a description of your system's linker (not GNU ld)
16877 case $host_os in
16878 aix3*)
16879 allow_undefined_flag=unsupported
16880 always_export_symbols=yes
16881 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'
16882 # Note: this linker hardcodes the directories in LIBPATH if there
16883 # are no directories specified by -L.
16884 hardcode_minus_L=yes
16885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16886 # Neither direct hardcoding nor static linking is supported with a
16887 # broken collect2.
16888 hardcode_direct=unsupported
16889 fi
16890 ;;
16891
16892 aix[4-9]*)
16893 if test "$host_cpu" = ia64; then
16894 # On IA64, the linker does run time linking by default, so we don't
16895 # have to do anything special.
16896 aix_use_runtimelinking=no
16897 exp_sym_flag='-Bexport'
16898 no_entry_flag=""
16899 else
16900 # If we're using GNU nm, then we don't want the "-C" option.
16901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16902 # Also, AIX nm treats weak defined symbols like other global
16903 # defined symbols, whereas GNU nm marks them as "W".
16904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16905 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'
16906 else
16907 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'
16908 fi
16909 aix_use_runtimelinking=no
16910
16911 # Test if we are trying to use run time linking or normal
16912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16913 # need to do runtime linking.
16914 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16915 for ld_flag in $LDFLAGS; do
16916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16917 aix_use_runtimelinking=yes
16918 break
16919 fi
16920 done
16921 ;;
16922 esac
16923
16924 exp_sym_flag='-bexport'
16925 no_entry_flag='-bnoentry'
16926 fi
16927
16928 # When large executables or shared objects are built, AIX ld can
16929 # have problems creating the table of contents. If linking a library
16930 # or program results in "error TOC overflow" add -mminimal-toc to
16931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16933
16934 archive_cmds=''
16935 hardcode_direct=yes
16936 hardcode_direct_absolute=yes
16937 hardcode_libdir_separator=':'
16938 link_all_deplibs=yes
16939 file_list_spec='${wl}-f,'
16940
16941 if test "$GCC" = yes; then
16942 case $host_os in aix4.[012]|aix4.[012].*)
16943 # We only want to do this on AIX 4.2 and lower, the check
16944 # below for broken collect2 doesn't work under 4.3+
16945 collect2name=`${CC} -print-prog-name=collect2`
16946 if test -f "$collect2name" &&
16947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16948 then
16949 # We have reworked collect2
16950 :
16951 else
16952 # We have old collect2
16953 hardcode_direct=unsupported
16954 # It fails to find uninstalled libraries when the uninstalled
16955 # path is not listed in the libpath. Setting hardcode_minus_L
16956 # to unsupported forces relinking
16957 hardcode_minus_L=yes
16958 hardcode_libdir_flag_spec='-L$libdir'
16959 hardcode_libdir_separator=
16960 fi
16961 ;;
16962 esac
16963 shared_flag='-shared'
16964 if test "$aix_use_runtimelinking" = yes; then
16965 shared_flag="$shared_flag "'${wl}-G'
16966 fi
16967 else
16968 # not using gcc
16969 if test "$host_cpu" = ia64; then
16970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16971 # chokes on -Wl,-G. The following line is correct:
16972 shared_flag='-G'
16973 else
16974 if test "$aix_use_runtimelinking" = yes; then
16975 shared_flag='${wl}-G'
16976 else
16977 shared_flag='${wl}-bM:SRE'
16978 fi
16979 fi
16980 fi
16981
16982 export_dynamic_flag_spec='${wl}-bexpall'
16983 # It seems that -bexpall does not export symbols beginning with
16984 # underscore (_), so it is better to generate a list of symbols to export.
16985 always_export_symbols=yes
16986 if test "$aix_use_runtimelinking" = yes; then
16987 # Warning - without using the other runtime loading flags (-brtl),
16988 # -berok will link without error, but may produce a broken library.
16989 allow_undefined_flag='-berok'
16990 # Determine the default libpath from the value encoded in an
16991 # empty executable.
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994
16995 int
16996 main ()
16997 {
16998
16999 ;
17000 return 0;
17001 }
17002 _ACEOF
17003 if ac_fn_c_try_link "$LINENO"; then :
17004
17005 lt_aix_libpath_sed='
17006 /Import File Strings/,/^$/ {
17007 /^0/ {
17008 s/^0 *\(.*\)$/\1/
17009 p
17010 }
17011 }'
17012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17013 # Check for a 64-bit object if we didn't find anything.
17014 if test -z "$aix_libpath"; then
17015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016 fi
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17021
17022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17023 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"
17024 else
17025 if test "$host_cpu" = ia64; then
17026 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17027 allow_undefined_flag="-z nodefs"
17028 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"
17029 else
17030 # Determine the default libpath from the value encoded in an
17031 # empty executable.
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034
17035 int
17036 main ()
17037 {
17038
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 if ac_fn_c_try_link "$LINENO"; then :
17044
17045 lt_aix_libpath_sed='
17046 /Import File Strings/,/^$/ {
17047 /^0/ {
17048 s/^0 *\(.*\)$/\1/
17049 p
17050 }
17051 }'
17052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17053 # Check for a 64-bit object if we didn't find anything.
17054 if test -z "$aix_libpath"; then
17055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17056 fi
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
17060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17061
17062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17063 # Warning - without using the other run time loading flags,
17064 # -berok will link without error, but may produce a broken library.
17065 no_undefined_flag=' ${wl}-bernotok'
17066 allow_undefined_flag=' ${wl}-berok'
17067 if test "$with_gnu_ld" = yes; then
17068 # We only use this code for GNU lds that support --whole-archive.
17069 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17070 else
17071 # Exported symbols can be pulled into shared objects from archives
17072 whole_archive_flag_spec='$convenience'
17073 fi
17074 archive_cmds_need_lc=yes
17075 # This is similar to how AIX traditionally builds its shared libraries.
17076 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'
17077 fi
17078 fi
17079 ;;
17080
17081 amigaos*)
17082 case $host_cpu in
17083 powerpc)
17084 # see comment about AmigaOS4 .so support
17085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086 archive_expsym_cmds=''
17087 ;;
17088 m68k)
17089 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)'
17090 hardcode_libdir_flag_spec='-L$libdir'
17091 hardcode_minus_L=yes
17092 ;;
17093 esac
17094 ;;
17095
17096 bsdi[45]*)
17097 export_dynamic_flag_spec=-rdynamic
17098 ;;
17099
17100 cygwin* | mingw* | pw32* | cegcc*)
17101 # When not using gcc, we currently assume that we are using
17102 # Microsoft Visual C++.
17103 # hardcode_libdir_flag_spec is actually meaningless, as there is
17104 # no search path for DLLs.
17105 hardcode_libdir_flag_spec=' '
17106 allow_undefined_flag=unsupported
17107 # Tell ltmain to make .lib files, not .a files.
17108 libext=lib
17109 # Tell ltmain to make .dll files, not .so files.
17110 shrext_cmds=".dll"
17111 # FIXME: Setting linknames here is a bad hack.
17112 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17113 # The linker will automatically build a .lib file if we build a DLL.
17114 old_archive_from_new_cmds='true'
17115 # FIXME: Should let the user specify the lib program.
17116 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17117 fix_srcfile_path='`cygpath -w "$srcfile"`'
17118 enable_shared_with_static_runtimes=yes
17119 ;;
17120
17121 darwin* | rhapsody*)
17122
17123
17124 archive_cmds_need_lc=no
17125 hardcode_direct=no
17126 hardcode_automatic=yes
17127 hardcode_shlibpath_var=unsupported
17128 if test "$lt_cv_ld_force_load" = "yes"; then
17129 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\"`'
17130 else
17131 whole_archive_flag_spec=''
17132 fi
17133 link_all_deplibs=yes
17134 allow_undefined_flag="$_lt_dar_allow_undefined"
17135 case $cc_basename in
17136 ifort*) _lt_dar_can_shared=yes ;;
17137 *) _lt_dar_can_shared=$GCC ;;
17138 esac
17139 if test "$_lt_dar_can_shared" = "yes"; then
17140 output_verbose_link_cmd=func_echo_all
17141 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17142 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17143 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}"
17144 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}"
17145
17146 else
17147 ld_shlibs=no
17148 fi
17149
17150 ;;
17151
17152 dgux*)
17153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_libdir_flag_spec='-L$libdir'
17155 hardcode_shlibpath_var=no
17156 ;;
17157
17158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17159 # support. Future versions do this automatically, but an explicit c++rt0.o
17160 # does not break anything, and helps significantly (at the cost of a little
17161 # extra space).
17162 freebsd2.2*)
17163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17164 hardcode_libdir_flag_spec='-R$libdir'
17165 hardcode_direct=yes
17166 hardcode_shlibpath_var=no
17167 ;;
17168
17169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17170 freebsd2.*)
17171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17172 hardcode_direct=yes
17173 hardcode_minus_L=yes
17174 hardcode_shlibpath_var=no
17175 ;;
17176
17177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17178 freebsd* | dragonfly*)
17179 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17180 hardcode_libdir_flag_spec='-R$libdir'
17181 hardcode_direct=yes
17182 hardcode_shlibpath_var=no
17183 ;;
17184
17185 hpux9*)
17186 if test "$GCC" = yes; then
17187 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'
17188 else
17189 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'
17190 fi
17191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17192 hardcode_libdir_separator=:
17193 hardcode_direct=yes
17194
17195 # hardcode_minus_L: Not really in the search PATH,
17196 # but as the default location of the library.
17197 hardcode_minus_L=yes
17198 export_dynamic_flag_spec='${wl}-E'
17199 ;;
17200
17201 hpux10*)
17202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17204 else
17205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17206 fi
17207 if test "$with_gnu_ld" = no; then
17208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17209 hardcode_libdir_flag_spec_ld='+b $libdir'
17210 hardcode_libdir_separator=:
17211 hardcode_direct=yes
17212 hardcode_direct_absolute=yes
17213 export_dynamic_flag_spec='${wl}-E'
17214 # hardcode_minus_L: Not really in the search PATH,
17215 # but as the default location of the library.
17216 hardcode_minus_L=yes
17217 fi
17218 ;;
17219
17220 hpux11*)
17221 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17222 case $host_cpu in
17223 hppa*64*)
17224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 ;;
17226 ia64*)
17227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17228 ;;
17229 *)
17230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17231 ;;
17232 esac
17233 else
17234 case $host_cpu in
17235 hppa*64*)
17236 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17237 ;;
17238 ia64*)
17239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17240 ;;
17241 *)
17242
17243 # Older versions of the 11.00 compiler do not understand -b yet
17244 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17246 $as_echo_n "checking if $CC understands -b... " >&6; }
17247 if ${lt_cv_prog_compiler__b+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250 lt_cv_prog_compiler__b=no
17251 save_LDFLAGS="$LDFLAGS"
17252 LDFLAGS="$LDFLAGS -b"
17253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17255 # The linker can only warn and ignore the option if not recognized
17256 # So say no if there are warnings
17257 if test -s conftest.err; then
17258 # Append any errors to the config.log.
17259 cat conftest.err 1>&5
17260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17262 if diff conftest.exp conftest.er2 >/dev/null; then
17263 lt_cv_prog_compiler__b=yes
17264 fi
17265 else
17266 lt_cv_prog_compiler__b=yes
17267 fi
17268 fi
17269 $RM -r conftest*
17270 LDFLAGS="$save_LDFLAGS"
17271
17272 fi
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17274 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17275
17276 if test x"$lt_cv_prog_compiler__b" = xyes; then
17277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17278 else
17279 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17280 fi
17281
17282 ;;
17283 esac
17284 fi
17285 if test "$with_gnu_ld" = no; then
17286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17287 hardcode_libdir_separator=:
17288
17289 case $host_cpu in
17290 hppa*64*|ia64*)
17291 hardcode_direct=no
17292 hardcode_shlibpath_var=no
17293 ;;
17294 *)
17295 hardcode_direct=yes
17296 hardcode_direct_absolute=yes
17297 export_dynamic_flag_spec='${wl}-E'
17298
17299 # hardcode_minus_L: Not really in the search PATH,
17300 # but as the default location of the library.
17301 hardcode_minus_L=yes
17302 ;;
17303 esac
17304 fi
17305 ;;
17306
17307 irix5* | irix6* | nonstopux*)
17308 if test "$GCC" = yes; then
17309 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'
17310 # Try to use the -exported_symbol ld option, if it does not
17311 # work, assume that -exports_file does not work either and
17312 # implicitly export all symbols.
17313 save_LDFLAGS="$LDFLAGS"
17314 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17317 int foo(void) {}
17318 _ACEOF
17319 if ac_fn_c_try_link "$LINENO"; then :
17320 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'
17321
17322 fi
17323 rm -f core conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LDFLAGS="$save_LDFLAGS"
17326 else
17327 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'
17328 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'
17329 fi
17330 archive_cmds_need_lc='no'
17331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17332 hardcode_libdir_separator=:
17333 inherit_rpath=yes
17334 link_all_deplibs=yes
17335 ;;
17336
17337 netbsd*)
17338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17340 else
17341 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17342 fi
17343 hardcode_libdir_flag_spec='-R$libdir'
17344 hardcode_direct=yes
17345 hardcode_shlibpath_var=no
17346 ;;
17347
17348 newsos6)
17349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17350 hardcode_direct=yes
17351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator=:
17353 hardcode_shlibpath_var=no
17354 ;;
17355
17356 *nto* | *qnx*)
17357 ;;
17358
17359 openbsd*)
17360 if test -f /usr/libexec/ld.so; then
17361 hardcode_direct=yes
17362 hardcode_shlibpath_var=no
17363 hardcode_direct_absolute=yes
17364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17366 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17368 export_dynamic_flag_spec='${wl}-E'
17369 else
17370 case $host_os in
17371 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_libdir_flag_spec='-R$libdir'
17374 ;;
17375 *)
17376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17378 ;;
17379 esac
17380 fi
17381 else
17382 ld_shlibs=no
17383 fi
17384 ;;
17385
17386 os2*)
17387 hardcode_libdir_flag_spec='-L$libdir'
17388 hardcode_minus_L=yes
17389 allow_undefined_flag=unsupported
17390 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'
17391 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17392 ;;
17393
17394 osf3*)
17395 if test "$GCC" = yes; then
17396 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17397 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'
17398 else
17399 allow_undefined_flag=' -expect_unresolved \*'
17400 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'
17401 fi
17402 archive_cmds_need_lc='no'
17403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17404 hardcode_libdir_separator=:
17405 ;;
17406
17407 osf4* | osf5*) # as osf3* with the addition of -msym flag
17408 if test "$GCC" = yes; then
17409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17410 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'
17411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17412 else
17413 allow_undefined_flag=' -expect_unresolved \*'
17414 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'
17415 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~
17416 $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'
17417
17418 # Both c and cxx compiler support -rpath directly
17419 hardcode_libdir_flag_spec='-rpath $libdir'
17420 fi
17421 archive_cmds_need_lc='no'
17422 hardcode_libdir_separator=:
17423 ;;
17424
17425 solaris*)
17426 no_undefined_flag=' -z defs'
17427 if test "$GCC" = yes; then
17428 wlarc='${wl}'
17429 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17431 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17432 else
17433 case `$CC -V 2>&1` in
17434 *"Compilers 5.0"*)
17435 wlarc=''
17436 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17439 ;;
17440 *)
17441 wlarc='${wl}'
17442 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17444 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17445 ;;
17446 esac
17447 fi
17448 hardcode_libdir_flag_spec='-R$libdir'
17449 hardcode_shlibpath_var=no
17450 case $host_os in
17451 solaris2.[0-5] | solaris2.[0-5].*) ;;
17452 *)
17453 # The compiler driver will combine and reorder linker options,
17454 # but understands `-z linker_flag'. GCC discards it without `$wl',
17455 # but is careful enough not to reorder.
17456 # Supported since Solaris 2.6 (maybe 2.5.1?)
17457 if test "$GCC" = yes; then
17458 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17459 else
17460 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17461 fi
17462 ;;
17463 esac
17464 link_all_deplibs=yes
17465 ;;
17466
17467 sunos4*)
17468 if test "x$host_vendor" = xsequent; then
17469 # Use $CC to link under sequent, because it throws in some extra .o
17470 # files that make .init and .fini sections work.
17471 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17472 else
17473 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17474 fi
17475 hardcode_libdir_flag_spec='-L$libdir'
17476 hardcode_direct=yes
17477 hardcode_minus_L=yes
17478 hardcode_shlibpath_var=no
17479 ;;
17480
17481 sysv4)
17482 case $host_vendor in
17483 sni)
17484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17485 hardcode_direct=yes # is this really true???
17486 ;;
17487 siemens)
17488 ## LD is ld it makes a PLAMLIB
17489 ## CC just makes a GrossModule.
17490 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17491 reload_cmds='$CC -r -o $output$reload_objs'
17492 hardcode_direct=no
17493 ;;
17494 motorola)
17495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17497 ;;
17498 esac
17499 runpath_var='LD_RUN_PATH'
17500 hardcode_shlibpath_var=no
17501 ;;
17502
17503 sysv4.3*)
17504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_shlibpath_var=no
17506 export_dynamic_flag_spec='-Bexport'
17507 ;;
17508
17509 sysv4*MP*)
17510 if test -d /usr/nec; then
17511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_shlibpath_var=no
17513 runpath_var=LD_RUN_PATH
17514 hardcode_runpath_var=yes
17515 ld_shlibs=yes
17516 fi
17517 ;;
17518
17519 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17520 no_undefined_flag='${wl}-z,text'
17521 archive_cmds_need_lc=no
17522 hardcode_shlibpath_var=no
17523 runpath_var='LD_RUN_PATH'
17524
17525 if test "$GCC" = yes; then
17526 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 else
17529 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17531 fi
17532 ;;
17533
17534 sysv5* | sco3.2v5* | sco5v6*)
17535 # Note: We can NOT use -z defs as we might desire, because we do not
17536 # link with -lc, and that would cause any symbols used from libc to
17537 # always be unresolved, which means just about no library would
17538 # ever link correctly. If we're not using GNU ld we use -z text
17539 # though, which does catch some bad symbols but isn't as heavy-handed
17540 # as -z defs.
17541 no_undefined_flag='${wl}-z,text'
17542 allow_undefined_flag='${wl}-z,nodefs'
17543 archive_cmds_need_lc=no
17544 hardcode_shlibpath_var=no
17545 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17546 hardcode_libdir_separator=':'
17547 link_all_deplibs=yes
17548 export_dynamic_flag_spec='${wl}-Bexport'
17549 runpath_var='LD_RUN_PATH'
17550
17551 if test "$GCC" = yes; then
17552 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 else
17555 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17557 fi
17558 ;;
17559
17560 uts4*)
17561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_libdir_flag_spec='-L$libdir'
17563 hardcode_shlibpath_var=no
17564 ;;
17565
17566 *)
17567 ld_shlibs=no
17568 ;;
17569 esac
17570
17571 if test x$host_vendor = xsni; then
17572 case $host in
17573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17574 export_dynamic_flag_spec='${wl}-Blargedynsym'
17575 ;;
17576 esac
17577 fi
17578 fi
17579
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17581 $as_echo "$ld_shlibs" >&6; }
17582 test "$ld_shlibs" = no && can_build_shared=no
17583
17584 with_gnu_ld=$with_gnu_ld
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600 #
17601 # Do we need to explicitly link libc?
17602 #
17603 case "x$archive_cmds_need_lc" in
17604 x|xyes)
17605 # Assume -lc should be added
17606 archive_cmds_need_lc=yes
17607
17608 if test "$enable_shared" = yes && test "$GCC" = yes; then
17609 case $archive_cmds in
17610 *'~'*)
17611 # FIXME: we may have to deal with multi-command sequences.
17612 ;;
17613 '$CC '*)
17614 # Test whether the compiler implicitly links with -lc since on some
17615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17616 # to ld, don't add -lc before -lgcc.
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17618 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17619 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17622 $RM conftest*
17623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17624
17625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17626 (eval $ac_compile) 2>&5
17627 ac_status=$?
17628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17629 test $ac_status = 0; } 2>conftest.err; then
17630 soname=conftest
17631 lib=conftest
17632 libobjs=conftest.$ac_objext
17633 deplibs=
17634 wl=$lt_prog_compiler_wl
17635 pic_flag=$lt_prog_compiler_pic
17636 compiler_flags=-v
17637 linker_flags=-v
17638 verstring=
17639 output_objdir=.
17640 libname=conftest
17641 lt_save_allow_undefined_flag=$allow_undefined_flag
17642 allow_undefined_flag=
17643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17644 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17645 ac_status=$?
17646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17647 test $ac_status = 0; }
17648 then
17649 lt_cv_archive_cmds_need_lc=no
17650 else
17651 lt_cv_archive_cmds_need_lc=yes
17652 fi
17653 allow_undefined_flag=$lt_save_allow_undefined_flag
17654 else
17655 cat conftest.err 1>&5
17656 fi
17657 $RM conftest*
17658
17659 fi
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17661 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17662 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17663 ;;
17664 esac
17665 fi
17666 ;;
17667 esac
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17826 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17827
17828 if test "$GCC" = yes; then
17829 case $host_os in
17830 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17831 *) lt_awk_arg="/^libraries:/" ;;
17832 esac
17833 case $host_os in
17834 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17835 *) lt_sed_strip_eq="s,=/,/,g" ;;
17836 esac
17837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17838 case $lt_search_path_spec in
17839 *\;*)
17840 # if the path contains ";" then we assume it to be the separator
17841 # otherwise default to the standard path separator (i.e. ":") - it is
17842 # assumed that no part of a normal pathname contains ";" but that should
17843 # okay in the real world where ";" in dirpaths is itself problematic.
17844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17845 ;;
17846 *)
17847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17848 ;;
17849 esac
17850 # Ok, now we have the path, separated by spaces, we can step through it
17851 # and add multilib dir if necessary.
17852 lt_tmp_lt_search_path_spec=
17853 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17854 for lt_sys_path in $lt_search_path_spec; do
17855 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17857 else
17858 test -d "$lt_sys_path" && \
17859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17860 fi
17861 done
17862 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17863 BEGIN {RS=" "; FS="/|\n";} {
17864 lt_foo="";
17865 lt_count=0;
17866 for (lt_i = NF; lt_i > 0; lt_i--) {
17867 if ($lt_i != "" && $lt_i != ".") {
17868 if ($lt_i == "..") {
17869 lt_count++;
17870 } else {
17871 if (lt_count == 0) {
17872 lt_foo="/" $lt_i lt_foo;
17873 } else {
17874 lt_count--;
17875 }
17876 }
17877 }
17878 }
17879 if (lt_foo != "") { lt_freq[lt_foo]++; }
17880 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17881 }'`
17882 # AWK program above erroneously prepends '/' to C:/dos/paths
17883 # for these hosts.
17884 case $host_os in
17885 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17886 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17887 esac
17888 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17889 else
17890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17891 fi
17892 library_names_spec=
17893 libname_spec='lib$name'
17894 soname_spec=
17895 shrext_cmds=".so"
17896 postinstall_cmds=
17897 postuninstall_cmds=
17898 finish_cmds=
17899 finish_eval=
17900 shlibpath_var=
17901 shlibpath_overrides_runpath=unknown
17902 version_type=none
17903 dynamic_linker="$host_os ld.so"
17904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17905 need_lib_prefix=unknown
17906 hardcode_into_libs=no
17907
17908 # when you set need_version to no, make sure it does not cause -set_version
17909 # flags to be left without arguments
17910 need_version=unknown
17911
17912 case $host_os in
17913 aix3*)
17914 version_type=linux
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17916 shlibpath_var=LIBPATH
17917
17918 # AIX 3 has no versioning support, so we append a major version to the name.
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 ;;
17921
17922 aix[4-9]*)
17923 version_type=linux
17924 need_lib_prefix=no
17925 need_version=no
17926 hardcode_into_libs=yes
17927 if test "$host_cpu" = ia64; then
17928 # AIX 5 supports IA64
17929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 else
17932 # With GCC up to 2.95.x, collect2 would create an import file
17933 # for dependence libraries. The import file would start with
17934 # the line `#! .'. This would cause the generated library to
17935 # depend on `.', always an invalid library. This was fixed in
17936 # development snapshots of GCC prior to 3.0.
17937 case $host_os in
17938 aix4 | aix4.[01] | aix4.[01].*)
17939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17940 echo ' yes '
17941 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17942 :
17943 else
17944 can_build_shared=no
17945 fi
17946 ;;
17947 esac
17948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17949 # soname into executable. Probably we can add versioning support to
17950 # collect2, so additional links can be useful in future.
17951 if test "$aix_use_runtimelinking" = yes; then
17952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17953 # instead of lib<name>.a to let people know that these are not
17954 # typical AIX shared libraries.
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 else
17957 # We preserve .a as extension for shared libraries through AIX4.2
17958 # and later when we are not doing run time linking.
17959 library_names_spec='${libname}${release}.a $libname.a'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 fi
17962 shlibpath_var=LIBPATH
17963 fi
17964 ;;
17965
17966 amigaos*)
17967 case $host_cpu in
17968 powerpc)
17969 # Since July 2007 AmigaOS4 officially supports .so libraries.
17970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 ;;
17973 m68k)
17974 library_names_spec='$libname.ixlibrary $libname.a'
17975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17976 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'
17977 ;;
17978 esac
17979 ;;
17980
17981 beos*)
17982 library_names_spec='${libname}${shared_ext}'
17983 dynamic_linker="$host_os ld.so"
17984 shlibpath_var=LIBRARY_PATH
17985 ;;
17986
17987 bsdi[45]*)
17988 version_type=linux
17989 need_version=no
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 soname_spec='${libname}${release}${shared_ext}$major'
17992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17996 # the default ld.so.conf also contains /usr/contrib/lib and
17997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17998 # libtool to hard-code these into programs
17999 ;;
18000
18001 cygwin* | mingw* | pw32* | cegcc*)
18002 version_type=windows
18003 shrext_cmds=".dll"
18004 need_version=no
18005 need_lib_prefix=no
18006
18007 case $GCC,$host_os in
18008 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18009 library_names_spec='$libname.dll.a'
18010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18011 postinstall_cmds='base_file=`basename \${file}`~
18012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18013 dldir=$destdir/`dirname \$dlpath`~
18014 test -d \$dldir || mkdir -p \$dldir~
18015 $install_prog $dir/$dlname \$dldir/$dlname~
18016 chmod a+x \$dldir/$dlname~
18017 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18018 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18019 fi'
18020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18021 dlpath=$dir/\$dldll~
18022 $RM \$dlpath'
18023 shlibpath_overrides_runpath=yes
18024
18025 case $host_os in
18026 cygwin*)
18027 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18028 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18029
18030 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18031 ;;
18032 mingw* | cegcc*)
18033 # MinGW DLLs use traditional 'lib' prefix
18034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18035 ;;
18036 pw32*)
18037 # pw32 DLLs use 'pw' prefix rather than 'lib'
18038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18039 ;;
18040 esac
18041 ;;
18042
18043 *)
18044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18045 ;;
18046 esac
18047 dynamic_linker='Win32 ld.exe'
18048 # FIXME: first we should search . and the directory the executable is in
18049 shlibpath_var=PATH
18050 ;;
18051
18052 darwin* | rhapsody*)
18053 dynamic_linker="$host_os dyld"
18054 version_type=darwin
18055 need_lib_prefix=no
18056 need_version=no
18057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18058 soname_spec='${libname}${release}${major}$shared_ext'
18059 shlibpath_overrides_runpath=yes
18060 shlibpath_var=DYLD_LIBRARY_PATH
18061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18062
18063 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18065 ;;
18066
18067 dgux*)
18068 version_type=linux
18069 need_lib_prefix=no
18070 need_version=no
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 ;;
18075
18076 freebsd* | dragonfly*)
18077 # DragonFly does not have aout. When/if they implement a new
18078 # versioning mechanism, adjust this.
18079 if test -x /usr/bin/objformat; then
18080 objformat=`/usr/bin/objformat`
18081 else
18082 case $host_os in
18083 freebsd[23].*) objformat=aout ;;
18084 *) objformat=elf ;;
18085 esac
18086 fi
18087 version_type=freebsd-$objformat
18088 case $version_type in
18089 freebsd-elf*)
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18091 need_version=no
18092 need_lib_prefix=no
18093 ;;
18094 freebsd-*)
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18096 need_version=yes
18097 ;;
18098 esac
18099 shlibpath_var=LD_LIBRARY_PATH
18100 case $host_os in
18101 freebsd2.*)
18102 shlibpath_overrides_runpath=yes
18103 ;;
18104 freebsd3.[01]* | freebsdelf3.[01]*)
18105 shlibpath_overrides_runpath=yes
18106 hardcode_into_libs=yes
18107 ;;
18108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18110 shlibpath_overrides_runpath=no
18111 hardcode_into_libs=yes
18112 ;;
18113 *) # from 4.6 on, and DragonFly
18114 shlibpath_overrides_runpath=yes
18115 hardcode_into_libs=yes
18116 ;;
18117 esac
18118 ;;
18119
18120 gnu*)
18121 version_type=linux
18122 need_lib_prefix=no
18123 need_version=no
18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 hardcode_into_libs=yes
18128 ;;
18129
18130 haiku*)
18131 version_type=linux
18132 need_lib_prefix=no
18133 need_version=no
18134 dynamic_linker="$host_os runtime_loader"
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes
18139 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18140 hardcode_into_libs=yes
18141 ;;
18142
18143 hpux9* | hpux10* | hpux11*)
18144 # Give a soname corresponding to the major version so that dld.sl refuses to
18145 # link against other versions.
18146 version_type=sunos
18147 need_lib_prefix=no
18148 need_version=no
18149 case $host_cpu in
18150 ia64*)
18151 shrext_cmds='.so'
18152 hardcode_into_libs=yes
18153 dynamic_linker="$host_os dld.so"
18154 shlibpath_var=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 if test "X$HPUX_IA64_MODE" = X32; then
18159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160 else
18161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162 fi
18163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18164 ;;
18165 hppa*64*)
18166 shrext_cmds='.sl'
18167 hardcode_into_libs=yes
18168 dynamic_linker="$host_os dld.sl"
18169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 soname_spec='${libname}${release}${shared_ext}$major'
18173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18175 ;;
18176 *)
18177 shrext_cmds='.sl'
18178 dynamic_linker="$host_os dld.sl"
18179 shlibpath_var=SHLIB_PATH
18180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 ;;
18184 esac
18185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18186 postinstall_cmds='chmod 555 $lib'
18187 # or fails outright, so override atomically:
18188 install_override_mode=555
18189 ;;
18190
18191 interix[3-9]*)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18198 shlibpath_var=LD_LIBRARY_PATH
18199 shlibpath_overrides_runpath=no
18200 hardcode_into_libs=yes
18201 ;;
18202
18203 irix5* | irix6* | nonstopux*)
18204 case $host_os in
18205 nonstopux*) version_type=nonstopux ;;
18206 *)
18207 if test "$lt_cv_prog_gnu_ld" = yes; then
18208 version_type=linux
18209 else
18210 version_type=irix
18211 fi ;;
18212 esac
18213 need_lib_prefix=no
18214 need_version=no
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18217 case $host_os in
18218 irix5* | nonstopux*)
18219 libsuff= shlibsuff=
18220 ;;
18221 *)
18222 case $LD in # libtool.m4 will add one of these switches to LD
18223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18224 libsuff= shlibsuff= libmagic=32-bit;;
18225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18226 libsuff=32 shlibsuff=N32 libmagic=N32;;
18227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18229 *) libsuff= shlibsuff= libmagic=never-match;;
18230 esac
18231 ;;
18232 esac
18233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18234 shlibpath_overrides_runpath=no
18235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18237 hardcode_into_libs=yes
18238 ;;
18239
18240 # No shared lib support for Linux oldld, aout, or coff.
18241 linux*oldld* | linux*aout* | linux*coff*)
18242 dynamic_linker=no
18243 ;;
18244
18245 # This must be Linux ELF.
18246
18247 # uclinux* changes (here and below) have been submitted to the libtool
18248 # project, but have not yet been accepted: they are GCC-local changes
18249 # for the time being. (See
18250 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18251 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18252 version_type=linux
18253 need_lib_prefix=no
18254 need_version=no
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath=no
18260
18261 # Some binutils ld are patched to set DT_RUNPATH
18262 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18265 lt_cv_shlibpath_overrides_runpath=no
18266 save_LDFLAGS=$LDFLAGS
18267 save_libdir=$libdir
18268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272
18273 int
18274 main ()
18275 {
18276
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"; then :
18282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18283 lt_cv_shlibpath_overrides_runpath=yes
18284 fi
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288 LDFLAGS=$save_LDFLAGS
18289 libdir=$save_libdir
18290
18291 fi
18292
18293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18294
18295 # This implies no fast_install, which is unacceptable.
18296 # Some rework will be needed to allow for fast_install
18297 # before this can be enabled.
18298 hardcode_into_libs=yes
18299
18300 # Append ld.so.conf contents to the search path
18301 if test -f /etc/ld.so.conf; then
18302 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' ' '`
18303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18304 fi
18305
18306 # We used to test for /lib/ld.so.1 and disable shared libraries on
18307 # powerpc, because MkLinux only supported shared libraries with the
18308 # GNU dynamic linker. Since this was broken with cross compilers,
18309 # most powerpc-linux boxes support dynamic linking these days and
18310 # people can always --disable-shared, the test was removed, and we
18311 # assume the GNU/Linux dynamic linker is in use.
18312 dynamic_linker='GNU/Linux ld.so'
18313 ;;
18314
18315 netbsd*)
18316 version_type=sunos
18317 need_lib_prefix=no
18318 need_version=no
18319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18322 dynamic_linker='NetBSD (a.out) ld.so'
18323 else
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18325 soname_spec='${libname}${release}${shared_ext}$major'
18326 dynamic_linker='NetBSD ld.elf_so'
18327 fi
18328 shlibpath_var=LD_LIBRARY_PATH
18329 shlibpath_overrides_runpath=yes
18330 hardcode_into_libs=yes
18331 ;;
18332
18333 newsos6)
18334 version_type=linux
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18336 shlibpath_var=LD_LIBRARY_PATH
18337 shlibpath_overrides_runpath=yes
18338 ;;
18339
18340 *nto* | *qnx*)
18341 version_type=qnx
18342 need_lib_prefix=no
18343 need_version=no
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 shlibpath_overrides_runpath=no
18348 hardcode_into_libs=yes
18349 dynamic_linker='ldqnx.so'
18350 ;;
18351
18352 openbsd*)
18353 version_type=sunos
18354 sys_lib_dlsearch_path_spec="/usr/lib"
18355 need_lib_prefix=no
18356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18357 case $host_os in
18358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18359 *) need_version=no ;;
18360 esac
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18365 case $host_os in
18366 openbsd2.[89] | openbsd2.[89].*)
18367 shlibpath_overrides_runpath=no
18368 ;;
18369 *)
18370 shlibpath_overrides_runpath=yes
18371 ;;
18372 esac
18373 else
18374 shlibpath_overrides_runpath=yes
18375 fi
18376 ;;
18377
18378 os2*)
18379 libname_spec='$name'
18380 shrext_cmds=".dll"
18381 need_lib_prefix=no
18382 library_names_spec='$libname${shared_ext} $libname.a'
18383 dynamic_linker='OS/2 ld.exe'
18384 shlibpath_var=LIBPATH
18385 ;;
18386
18387 osf3* | osf4* | osf5*)
18388 version_type=osf
18389 need_lib_prefix=no
18390 need_version=no
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18396 ;;
18397
18398 rdos*)
18399 dynamic_linker=no
18400 ;;
18401
18402 solaris*)
18403 version_type=linux
18404 need_lib_prefix=no
18405 need_version=no
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 shlibpath_var=LD_LIBRARY_PATH
18409 shlibpath_overrides_runpath=yes
18410 hardcode_into_libs=yes
18411 # ldd complains unless libraries are executable
18412 postinstall_cmds='chmod +x $lib'
18413 ;;
18414
18415 sunos4*)
18416 version_type=sunos
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 shlibpath_overrides_runpath=yes
18421 if test "$with_gnu_ld" = yes; then
18422 need_lib_prefix=no
18423 fi
18424 need_version=yes
18425 ;;
18426
18427 sysv4 | sysv4.3*)
18428 version_type=linux
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 case $host_vendor in
18433 sni)
18434 shlibpath_overrides_runpath=no
18435 need_lib_prefix=no
18436 runpath_var=LD_RUN_PATH
18437 ;;
18438 siemens)
18439 need_lib_prefix=no
18440 ;;
18441 motorola)
18442 need_lib_prefix=no
18443 need_version=no
18444 shlibpath_overrides_runpath=no
18445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18446 ;;
18447 esac
18448 ;;
18449
18450 sysv4*MP*)
18451 if test -d /usr/nec ;then
18452 version_type=linux
18453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454 soname_spec='$libname${shared_ext}.$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 fi
18457 ;;
18458
18459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18460 version_type=freebsd-elf
18461 need_lib_prefix=no
18462 need_version=no
18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 shlibpath_var=LD_LIBRARY_PATH
18466 shlibpath_overrides_runpath=yes
18467 hardcode_into_libs=yes
18468 if test "$with_gnu_ld" = yes; then
18469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18470 else
18471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18472 case $host_os in
18473 sco3.2v5*)
18474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18475 ;;
18476 esac
18477 fi
18478 sys_lib_dlsearch_path_spec='/usr/lib'
18479 ;;
18480
18481 tpf*)
18482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18483 version_type=linux
18484 need_lib_prefix=no
18485 need_version=no
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487 shlibpath_var=LD_LIBRARY_PATH
18488 shlibpath_overrides_runpath=no
18489 hardcode_into_libs=yes
18490 ;;
18491
18492 uts4*)
18493 version_type=linux
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495 soname_spec='${libname}${release}${shared_ext}$major'
18496 shlibpath_var=LD_LIBRARY_PATH
18497 ;;
18498
18499 *)
18500 dynamic_linker=no
18501 ;;
18502 esac
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18504 $as_echo "$dynamic_linker" >&6; }
18505 test "$dynamic_linker" = no && can_build_shared=no
18506
18507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18508 if test "$GCC" = yes; then
18509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18510 fi
18511
18512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18514 fi
18515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18516 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18517 fi
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18612 hardcode_action=
18613 if test -n "$hardcode_libdir_flag_spec" ||
18614 test -n "$runpath_var" ||
18615 test "X$hardcode_automatic" = "Xyes" ; then
18616
18617 # We can hardcode non-existent directories.
18618 if test "$hardcode_direct" != no &&
18619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18620 # have to relink, otherwise we might link with an installed library
18621 # when we should be linking with a yet-to-be-installed one
18622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18623 test "$hardcode_minus_L" != no; then
18624 # Linking always hardcodes the temporary library directory.
18625 hardcode_action=relink
18626 else
18627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18628 hardcode_action=immediate
18629 fi
18630 else
18631 # We cannot hardcode anything, or else we can only hardcode existing
18632 # directories.
18633 hardcode_action=unsupported
18634 fi
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18636 $as_echo "$hardcode_action" >&6; }
18637
18638 if test "$hardcode_action" = relink ||
18639 test "$inherit_rpath" = yes; then
18640 # Fast installation is not supported
18641 enable_fast_install=no
18642 elif test "$shlibpath_overrides_runpath" = yes ||
18643 test "$enable_shared" = no; then
18644 # Fast installation is not necessary
18645 enable_fast_install=needless
18646 fi
18647
18648
18649
18650
18651
18652
18653 if test "x$enable_dlopen" != xyes; then
18654 enable_dlopen=unknown
18655 enable_dlopen_self=unknown
18656 enable_dlopen_self_static=unknown
18657 else
18658 lt_cv_dlopen=no
18659 lt_cv_dlopen_libs=
18660
18661 case $host_os in
18662 beos*)
18663 lt_cv_dlopen="load_add_on"
18664 lt_cv_dlopen_libs=
18665 lt_cv_dlopen_self=yes
18666 ;;
18667
18668 mingw* | pw32* | cegcc*)
18669 lt_cv_dlopen="LoadLibrary"
18670 lt_cv_dlopen_libs=
18671 ;;
18672
18673 cygwin*)
18674 lt_cv_dlopen="dlopen"
18675 lt_cv_dlopen_libs=
18676 ;;
18677
18678 darwin*)
18679 # if libdl is installed we need to link against it
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18682 if ${ac_cv_lib_dl_dlopen+:} false; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18685 ac_check_lib_save_LIBS=$LIBS
18686 LIBS="-ldl $LIBS"
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689
18690 /* Override any GCC internal prototype to avoid an error.
18691 Use char because int might match the return type of a GCC
18692 builtin and then its argument prototype would still apply. */
18693 #ifdef __cplusplus
18694 extern "C"
18695 #endif
18696 char dlopen ();
18697 int
18698 main ()
18699 {
18700 return dlopen ();
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 if ac_fn_c_try_link "$LINENO"; then :
18706 ac_cv_lib_dl_dlopen=yes
18707 else
18708 ac_cv_lib_dl_dlopen=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18718 else
18719
18720 lt_cv_dlopen="dyld"
18721 lt_cv_dlopen_libs=
18722 lt_cv_dlopen_self=yes
18723
18724 fi
18725
18726 ;;
18727
18728 *)
18729 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18730 if test "x$ac_cv_func_shl_load" = xyes; then :
18731 lt_cv_dlopen="shl_load"
18732 else
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18735 if ${ac_cv_lib_dld_shl_load+:} false; then :
18736 $as_echo_n "(cached) " >&6
18737 else
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-ldld $LIBS"
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char shl_load ();
18750 int
18751 main ()
18752 {
18753 return shl_load ();
18754 ;
18755 return 0;
18756 }
18757 _ACEOF
18758 if ac_fn_c_try_link "$LINENO"; then :
18759 ac_cv_lib_dld_shl_load=yes
18760 else
18761 ac_cv_lib_dld_shl_load=no
18762 fi
18763 rm -f core conftest.err conftest.$ac_objext \
18764 conftest$ac_exeext conftest.$ac_ext
18765 LIBS=$ac_check_lib_save_LIBS
18766 fi
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18768 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18769 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18771 else
18772 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18773 if test "x$ac_cv_func_dlopen" = xyes; then :
18774 lt_cv_dlopen="dlopen"
18775 else
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18778 if ${ac_cv_lib_dl_dlopen+:} false; then :
18779 $as_echo_n "(cached) " >&6
18780 else
18781 ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-ldl $LIBS"
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785
18786 /* Override any GCC internal prototype to avoid an error.
18787 Use char because int might match the return type of a GCC
18788 builtin and then its argument prototype would still apply. */
18789 #ifdef __cplusplus
18790 extern "C"
18791 #endif
18792 char dlopen ();
18793 int
18794 main ()
18795 {
18796 return dlopen ();
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 if ac_fn_c_try_link "$LINENO"; then :
18802 ac_cv_lib_dl_dlopen=yes
18803 else
18804 ac_cv_lib_dl_dlopen=no
18805 fi
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18809 fi
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18812 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18814 else
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18816 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18817 if ${ac_cv_lib_svld_dlopen+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819 else
18820 ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-lsvld $LIBS"
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18824
18825 /* Override any GCC internal prototype to avoid an error.
18826 Use char because int might match the return type of a GCC
18827 builtin and then its argument prototype would still apply. */
18828 #ifdef __cplusplus
18829 extern "C"
18830 #endif
18831 char dlopen ();
18832 int
18833 main ()
18834 {
18835 return dlopen ();
18836 ;
18837 return 0;
18838 }
18839 _ACEOF
18840 if ac_fn_c_try_link "$LINENO"; then :
18841 ac_cv_lib_svld_dlopen=yes
18842 else
18843 ac_cv_lib_svld_dlopen=no
18844 fi
18845 rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18848 fi
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18850 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18851 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18853 else
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18855 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18856 if ${ac_cv_lib_dld_dld_link+:} false; then :
18857 $as_echo_n "(cached) " >&6
18858 else
18859 ac_check_lib_save_LIBS=$LIBS
18860 LIBS="-ldld $LIBS"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863
18864 /* Override any GCC internal prototype to avoid an error.
18865 Use char because int might match the return type of a GCC
18866 builtin and then its argument prototype would still apply. */
18867 #ifdef __cplusplus
18868 extern "C"
18869 #endif
18870 char dld_link ();
18871 int
18872 main ()
18873 {
18874 return dld_link ();
18875 ;
18876 return 0;
18877 }
18878 _ACEOF
18879 if ac_fn_c_try_link "$LINENO"; then :
18880 ac_cv_lib_dld_dld_link=yes
18881 else
18882 ac_cv_lib_dld_dld_link=no
18883 fi
18884 rm -f core conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18889 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18890 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18891 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18892 fi
18893
18894
18895 fi
18896
18897
18898 fi
18899
18900
18901 fi
18902
18903
18904 fi
18905
18906
18907 fi
18908
18909 ;;
18910 esac
18911
18912 if test "x$lt_cv_dlopen" != xno; then
18913 enable_dlopen=yes
18914 else
18915 enable_dlopen=no
18916 fi
18917
18918 case $lt_cv_dlopen in
18919 dlopen)
18920 save_CPPFLAGS="$CPPFLAGS"
18921 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18922
18923 save_LDFLAGS="$LDFLAGS"
18924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18925
18926 save_LIBS="$LIBS"
18927 LIBS="$lt_cv_dlopen_libs $LIBS"
18928
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18930 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18931 if ${lt_cv_dlopen_self+:} false; then :
18932 $as_echo_n "(cached) " >&6
18933 else
18934 if test "$cross_compiling" = yes; then :
18935 lt_cv_dlopen_self=cross
18936 else
18937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18938 lt_status=$lt_dlunknown
18939 cat > conftest.$ac_ext <<_LT_EOF
18940 #line 18940 "configure"
18941 #include "confdefs.h"
18942
18943 #if HAVE_DLFCN_H
18944 #include <dlfcn.h>
18945 #endif
18946
18947 #include <stdio.h>
18948
18949 #ifdef RTLD_GLOBAL
18950 # define LT_DLGLOBAL RTLD_GLOBAL
18951 #else
18952 # ifdef DL_GLOBAL
18953 # define LT_DLGLOBAL DL_GLOBAL
18954 # else
18955 # define LT_DLGLOBAL 0
18956 # endif
18957 #endif
18958
18959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18960 find out it does not work in some platform. */
18961 #ifndef LT_DLLAZY_OR_NOW
18962 # ifdef RTLD_LAZY
18963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18964 # else
18965 # ifdef DL_LAZY
18966 # define LT_DLLAZY_OR_NOW DL_LAZY
18967 # else
18968 # ifdef RTLD_NOW
18969 # define LT_DLLAZY_OR_NOW RTLD_NOW
18970 # else
18971 # ifdef DL_NOW
18972 # define LT_DLLAZY_OR_NOW DL_NOW
18973 # else
18974 # define LT_DLLAZY_OR_NOW 0
18975 # endif
18976 # endif
18977 # endif
18978 # endif
18979 #endif
18980
18981 /* When -fvisbility=hidden is used, assume the code has been annotated
18982 correspondingly for the symbols needed. */
18983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18984 void fnord () __attribute__((visibility("default")));
18985 #endif
18986
18987 void fnord () { int i=42; }
18988 int main ()
18989 {
18990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18991 int status = $lt_dlunknown;
18992
18993 if (self)
18994 {
18995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18996 else
18997 {
18998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18999 else puts (dlerror ());
19000 }
19001 /* dlclose (self); */
19002 }
19003 else
19004 puts (dlerror ());
19005
19006 return status;
19007 }
19008 _LT_EOF
19009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19010 (eval $ac_link) 2>&5
19011 ac_status=$?
19012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19013 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19014 (./conftest; exit; ) >&5 2>/dev/null
19015 lt_status=$?
19016 case x$lt_status in
19017 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19018 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19019 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19020 esac
19021 else :
19022 # compilation failed
19023 lt_cv_dlopen_self=no
19024 fi
19025 fi
19026 rm -fr conftest*
19027
19028
19029 fi
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19031 $as_echo "$lt_cv_dlopen_self" >&6; }
19032
19033 if test "x$lt_cv_dlopen_self" = xyes; then
19034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19036 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19037 if ${lt_cv_dlopen_self_static+:} false; then :
19038 $as_echo_n "(cached) " >&6
19039 else
19040 if test "$cross_compiling" = yes; then :
19041 lt_cv_dlopen_self_static=cross
19042 else
19043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19044 lt_status=$lt_dlunknown
19045 cat > conftest.$ac_ext <<_LT_EOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19048
19049 #if HAVE_DLFCN_H
19050 #include <dlfcn.h>
19051 #endif
19052
19053 #include <stdio.h>
19054
19055 #ifdef RTLD_GLOBAL
19056 # define LT_DLGLOBAL RTLD_GLOBAL
19057 #else
19058 # ifdef DL_GLOBAL
19059 # define LT_DLGLOBAL DL_GLOBAL
19060 # else
19061 # define LT_DLGLOBAL 0
19062 # endif
19063 #endif
19064
19065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19066 find out it does not work in some platform. */
19067 #ifndef LT_DLLAZY_OR_NOW
19068 # ifdef RTLD_LAZY
19069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19070 # else
19071 # ifdef DL_LAZY
19072 # define LT_DLLAZY_OR_NOW DL_LAZY
19073 # else
19074 # ifdef RTLD_NOW
19075 # define LT_DLLAZY_OR_NOW RTLD_NOW
19076 # else
19077 # ifdef DL_NOW
19078 # define LT_DLLAZY_OR_NOW DL_NOW
19079 # else
19080 # define LT_DLLAZY_OR_NOW 0
19081 # endif
19082 # endif
19083 # endif
19084 # endif
19085 #endif
19086
19087 /* When -fvisbility=hidden is used, assume the code has been annotated
19088 correspondingly for the symbols needed. */
19089 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19090 void fnord () __attribute__((visibility("default")));
19091 #endif
19092
19093 void fnord () { int i=42; }
19094 int main ()
19095 {
19096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19097 int status = $lt_dlunknown;
19098
19099 if (self)
19100 {
19101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19102 else
19103 {
19104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19105 else puts (dlerror ());
19106 }
19107 /* dlclose (self); */
19108 }
19109 else
19110 puts (dlerror ());
19111
19112 return status;
19113 }
19114 _LT_EOF
19115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19116 (eval $ac_link) 2>&5
19117 ac_status=$?
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19120 (./conftest; exit; ) >&5 2>/dev/null
19121 lt_status=$?
19122 case x$lt_status in
19123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19125 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19126 esac
19127 else :
19128 # compilation failed
19129 lt_cv_dlopen_self_static=no
19130 fi
19131 fi
19132 rm -fr conftest*
19133
19134
19135 fi
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19138 fi
19139
19140 CPPFLAGS="$save_CPPFLAGS"
19141 LDFLAGS="$save_LDFLAGS"
19142 LIBS="$save_LIBS"
19143 ;;
19144 esac
19145
19146 case $lt_cv_dlopen_self in
19147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19148 *) enable_dlopen_self=unknown ;;
19149 esac
19150
19151 case $lt_cv_dlopen_self_static in
19152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19153 *) enable_dlopen_self_static=unknown ;;
19154 esac
19155 fi
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173 striplib=
19174 old_striplib=
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19177 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19181 $as_echo "yes" >&6; }
19182 else
19183 # FIXME - insert some real tests, host_os isn't really good enough
19184 case $host_os in
19185 darwin*)
19186 if test -n "$STRIP" ; then
19187 striplib="$STRIP -x"
19188 old_striplib="$STRIP -S"
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19191 else
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19194 fi
19195 ;;
19196 *)
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19199 ;;
19200 esac
19201 fi
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214 # Report which library types will actually be built
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19218 $as_echo "$can_build_shared" >&6; }
19219
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19221 $as_echo_n "checking whether to build shared libraries... " >&6; }
19222 test "$can_build_shared" = "no" && enable_shared=no
19223
19224 # On AIX, shared libraries and static libraries use the same namespace, and
19225 # are all built from PIC.
19226 case $host_os in
19227 aix3*)
19228 test "$enable_shared" = yes && enable_static=no
19229 if test -n "$RANLIB"; then
19230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19231 postinstall_cmds='$RANLIB $lib'
19232 fi
19233 ;;
19234
19235 aix[4-9]*)
19236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19237 test "$enable_shared" = yes && enable_static=no
19238 fi
19239 ;;
19240 esac
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19242 $as_echo "$enable_shared" >&6; }
19243
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19245 $as_echo_n "checking whether to build static libraries... " >&6; }
19246 # Make sure either enable_shared or enable_static is yes.
19247 test "$enable_shared" = yes || enable_static=yes
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19249 $as_echo "$enable_static" >&6; }
19250
19251
19252
19253
19254 fi
19255 ac_ext=cpp
19256 ac_cpp='$CXXCPP $CPPFLAGS'
19257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19260
19261 CC="$lt_save_CC"
19262
19263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19265 (test "X$CXX" != "Xg++"))) ; then
19266 ac_ext=cpp
19267 ac_cpp='$CXXCPP $CPPFLAGS'
19268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19272 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19273 if test -z "$CXXCPP"; then
19274 if ${ac_cv_prog_CXXCPP+:} false; then :
19275 $as_echo_n "(cached) " >&6
19276 else
19277 # Double quotes because CXXCPP needs to be expanded
19278 for CXXCPP in "$CXX -E" "/lib/cpp"
19279 do
19280 ac_preproc_ok=false
19281 for ac_cxx_preproc_warn_flag in '' yes
19282 do
19283 # Use a header file that comes with gcc, so configuring glibc
19284 # with a fresh cross-compiler works.
19285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 # <limits.h> exists even on freestanding compilers.
19287 # On the NeXT, cc -E runs the code through the compiler's parser,
19288 # not just through cpp. "Syntax error" is here to catch this case.
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291 #ifdef __STDC__
19292 # include <limits.h>
19293 #else
19294 # include <assert.h>
19295 #endif
19296 Syntax error
19297 _ACEOF
19298 if ac_fn_cxx_try_cpp "$LINENO"; then :
19299
19300 else
19301 # Broken: fails on valid input.
19302 continue
19303 fi
19304 rm -f conftest.err conftest.i conftest.$ac_ext
19305
19306 # OK, works on sane cases. Now check whether nonexistent headers
19307 # can be detected and how.
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19310 #include <ac_nonexistent.h>
19311 _ACEOF
19312 if ac_fn_cxx_try_cpp "$LINENO"; then :
19313 # Broken: success on invalid input.
19314 continue
19315 else
19316 # Passes both tests.
19317 ac_preproc_ok=:
19318 break
19319 fi
19320 rm -f conftest.err conftest.i conftest.$ac_ext
19321
19322 done
19323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19324 rm -f conftest.i conftest.err conftest.$ac_ext
19325 if $ac_preproc_ok; then :
19326 break
19327 fi
19328
19329 done
19330 ac_cv_prog_CXXCPP=$CXXCPP
19331
19332 fi
19333 CXXCPP=$ac_cv_prog_CXXCPP
19334 else
19335 ac_cv_prog_CXXCPP=$CXXCPP
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19338 $as_echo "$CXXCPP" >&6; }
19339 ac_preproc_ok=false
19340 for ac_cxx_preproc_warn_flag in '' yes
19341 do
19342 # Use a header file that comes with gcc, so configuring glibc
19343 # with a fresh cross-compiler works.
19344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19345 # <limits.h> exists even on freestanding compilers.
19346 # On the NeXT, cc -E runs the code through the compiler's parser,
19347 # not just through cpp. "Syntax error" is here to catch this case.
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350 #ifdef __STDC__
19351 # include <limits.h>
19352 #else
19353 # include <assert.h>
19354 #endif
19355 Syntax error
19356 _ACEOF
19357 if ac_fn_cxx_try_cpp "$LINENO"; then :
19358
19359 else
19360 # Broken: fails on valid input.
19361 continue
19362 fi
19363 rm -f conftest.err conftest.i conftest.$ac_ext
19364
19365 # OK, works on sane cases. Now check whether nonexistent headers
19366 # can be detected and how.
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <ac_nonexistent.h>
19370 _ACEOF
19371 if ac_fn_cxx_try_cpp "$LINENO"; then :
19372 # Broken: success on invalid input.
19373 continue
19374 else
19375 # Passes both tests.
19376 ac_preproc_ok=:
19377 break
19378 fi
19379 rm -f conftest.err conftest.i conftest.$ac_ext
19380
19381 done
19382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19383 rm -f conftest.i conftest.err conftest.$ac_ext
19384 if $ac_preproc_ok; then :
19385
19386 else
19387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19389 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19390 See \`config.log' for more details" "$LINENO" 5; }
19391 fi
19392
19393 ac_ext=cpp
19394 ac_cpp='$CXXCPP $CPPFLAGS'
19395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19398
19399 else
19400 _lt_caught_CXX_error=yes
19401 fi
19402
19403 ac_ext=cpp
19404 ac_cpp='$CXXCPP $CPPFLAGS'
19405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19408
19409 archive_cmds_need_lc_CXX=no
19410 allow_undefined_flag_CXX=
19411 always_export_symbols_CXX=no
19412 archive_expsym_cmds_CXX=
19413 compiler_needs_object_CXX=no
19414 export_dynamic_flag_spec_CXX=
19415 hardcode_direct_CXX=no
19416 hardcode_direct_absolute_CXX=no
19417 hardcode_libdir_flag_spec_CXX=
19418 hardcode_libdir_flag_spec_ld_CXX=
19419 hardcode_libdir_separator_CXX=
19420 hardcode_minus_L_CXX=no
19421 hardcode_shlibpath_var_CXX=unsupported
19422 hardcode_automatic_CXX=no
19423 inherit_rpath_CXX=no
19424 module_cmds_CXX=
19425 module_expsym_cmds_CXX=
19426 link_all_deplibs_CXX=unknown
19427 old_archive_cmds_CXX=$old_archive_cmds
19428 reload_flag_CXX=$reload_flag
19429 reload_cmds_CXX=$reload_cmds
19430 no_undefined_flag_CXX=
19431 whole_archive_flag_spec_CXX=
19432 enable_shared_with_static_runtimes_CXX=no
19433
19434 # Source file extension for C++ test sources.
19435 ac_ext=cpp
19436
19437 # Object file extension for compiled C++ test sources.
19438 objext=o
19439 objext_CXX=$objext
19440
19441 # No sense in running all these tests if we already determined that
19442 # the CXX compiler isn't working. Some variables (like enable_shared)
19443 # are currently assumed to apply to all compilers on this platform,
19444 # and will be corrupted by setting them based on a non-working compiler.
19445 if test "$_lt_caught_CXX_error" != yes; then
19446 # Code to be used in simple compile tests
19447 lt_simple_compile_test_code="int some_variable = 0;"
19448
19449 # Code to be used in simple link tests
19450 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19451
19452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19453
19454
19455
19456
19457
19458
19459 # If no C compiler was specified, use CC.
19460 LTCC=${LTCC-"$CC"}
19461
19462 # If no C compiler flags were specified, use CFLAGS.
19463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19464
19465 # Allow CC to be a program name with arguments.
19466 compiler=$CC
19467
19468
19469 # save warnings/boilerplate of simple test code
19470 ac_outfile=conftest.$ac_objext
19471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19473 _lt_compiler_boilerplate=`cat conftest.err`
19474 $RM conftest*
19475
19476 ac_outfile=conftest.$ac_objext
19477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19479 _lt_linker_boilerplate=`cat conftest.err`
19480 $RM -r conftest*
19481
19482
19483 # Allow CC to be a program name with arguments.
19484 lt_save_CC=$CC
19485 lt_save_LD=$LD
19486 lt_save_GCC=$GCC
19487 GCC=$GXX
19488 lt_save_with_gnu_ld=$with_gnu_ld
19489 lt_save_path_LD=$lt_cv_path_LD
19490 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19491 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19492 else
19493 $as_unset lt_cv_prog_gnu_ld
19494 fi
19495 if test -n "${lt_cv_path_LDCXX+set}"; then
19496 lt_cv_path_LD=$lt_cv_path_LDCXX
19497 else
19498 $as_unset lt_cv_path_LD
19499 fi
19500 test -z "${LDCXX+set}" || LD=$LDCXX
19501 CC=${CXX-"c++"}
19502 compiler=$CC
19503 compiler_CXX=$CC
19504 for cc_temp in $compiler""; do
19505 case $cc_temp in
19506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19508 \-*) ;;
19509 *) break;;
19510 esac
19511 done
19512 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19513
19514
19515 if test -n "$compiler"; then
19516 # We don't want -fno-exception when compiling C++ code, so set the
19517 # no_builtin_flag separately
19518 if test "$GXX" = yes; then
19519 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19520 else
19521 lt_prog_compiler_no_builtin_flag_CXX=
19522 fi
19523
19524 if test "$GXX" = yes; then
19525 # Set up default GNU C++ configuration
19526
19527
19528
19529 # Check whether --with-gnu-ld was given.
19530 if test "${with_gnu_ld+set}" = set; then :
19531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19532 else
19533 with_gnu_ld=no
19534 fi
19535
19536 ac_prog=ld
19537 if test "$GCC" = yes; then
19538 # Check if gcc -print-prog-name=ld gives a path.
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19540 $as_echo_n "checking for ld used by $CC... " >&6; }
19541 case $host in
19542 *-*-mingw*)
19543 # gcc leaves a trailing carriage return which upsets mingw
19544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19545 *)
19546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19547 esac
19548 case $ac_prog in
19549 # Accept absolute paths.
19550 [\\/]* | ?:[\\/]*)
19551 re_direlt='/[^/][^/]*/\.\./'
19552 # Canonicalize the pathname of ld
19553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19556 done
19557 test -z "$LD" && LD="$ac_prog"
19558 ;;
19559 "")
19560 # If it fails, then pretend we aren't using GCC.
19561 ac_prog=ld
19562 ;;
19563 *)
19564 # If it is relative, then search for the first ld in PATH.
19565 with_gnu_ld=unknown
19566 ;;
19567 esac
19568 elif test "$with_gnu_ld" = yes; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19570 $as_echo_n "checking for GNU ld... " >&6; }
19571 else
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19573 $as_echo_n "checking for non-GNU ld... " >&6; }
19574 fi
19575 if ${lt_cv_path_LD+:} false; then :
19576 $as_echo_n "(cached) " >&6
19577 else
19578 if test -z "$LD"; then
19579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19580 for ac_dir in $PATH; do
19581 IFS="$lt_save_ifs"
19582 test -z "$ac_dir" && ac_dir=.
19583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19584 lt_cv_path_LD="$ac_dir/$ac_prog"
19585 # Check to see if the program is GNU ld. I'd rather use --version,
19586 # but apparently some variants of GNU ld only accept -v.
19587 # Break only if it was the GNU/non-GNU ld that we prefer.
19588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19589 *GNU* | *'with BFD'*)
19590 test "$with_gnu_ld" != no && break
19591 ;;
19592 *)
19593 test "$with_gnu_ld" != yes && break
19594 ;;
19595 esac
19596 fi
19597 done
19598 IFS="$lt_save_ifs"
19599 else
19600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19601 fi
19602 fi
19603
19604 LD="$lt_cv_path_LD"
19605 if test -n "$LD"; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19607 $as_echo "$LD" >&6; }
19608 else
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610 $as_echo "no" >&6; }
19611 fi
19612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19615 if ${lt_cv_prog_gnu_ld+:} false; then :
19616 $as_echo_n "(cached) " >&6
19617 else
19618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19619 case `$LD -v 2>&1 </dev/null` in
19620 *GNU* | *'with BFD'*)
19621 lt_cv_prog_gnu_ld=yes
19622 ;;
19623 *)
19624 lt_cv_prog_gnu_ld=no
19625 ;;
19626 esac
19627 fi
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19630 with_gnu_ld=$lt_cv_prog_gnu_ld
19631
19632
19633
19634
19635
19636
19637
19638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19639 # archiving commands below assume that GNU ld is being used.
19640 if test "$with_gnu_ld" = yes; then
19641 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19642 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'
19643
19644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19646
19647 # If archive_cmds runs LD, not CC, wlarc should be empty
19648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19649 # investigate it a little bit more. (MM)
19650 wlarc='${wl}'
19651
19652 # ancient GNU ld didn't support --whole-archive et. al.
19653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19654 $GREP 'no-whole-archive' > /dev/null; then
19655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19656 else
19657 whole_archive_flag_spec_CXX=
19658 fi
19659 else
19660 with_gnu_ld=no
19661 wlarc=
19662
19663 # A generic and very simple default shared library creation
19664 # command for GNU C++ for the case where it uses the native
19665 # linker, instead of GNU ld. If possible, this setting should
19666 # overridden to take advantage of the native linker features on
19667 # the platform it is being used on.
19668 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19669 fi
19670
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19675
19676 else
19677 GXX=no
19678 with_gnu_ld=no
19679 wlarc=
19680 fi
19681
19682 # PORTME: fill in a description of your system's C++ link characteristics
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19685 ld_shlibs_CXX=yes
19686 case $host_os in
19687 aix3*)
19688 # FIXME: insert proper C++ library support
19689 ld_shlibs_CXX=no
19690 ;;
19691 aix[4-9]*)
19692 if test "$host_cpu" = ia64; then
19693 # On IA64, the linker does run time linking by default, so we don't
19694 # have to do anything special.
19695 aix_use_runtimelinking=no
19696 exp_sym_flag='-Bexport'
19697 no_entry_flag=""
19698 else
19699 aix_use_runtimelinking=no
19700
19701 # Test if we are trying to use run time linking or normal
19702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19703 # need to do runtime linking.
19704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19705 for ld_flag in $LDFLAGS; do
19706 case $ld_flag in
19707 *-brtl*)
19708 aix_use_runtimelinking=yes
19709 break
19710 ;;
19711 esac
19712 done
19713 ;;
19714 esac
19715
19716 exp_sym_flag='-bexport'
19717 no_entry_flag='-bnoentry'
19718 fi
19719
19720 # When large executables or shared objects are built, AIX ld can
19721 # have problems creating the table of contents. If linking a library
19722 # or program results in "error TOC overflow" add -mminimal-toc to
19723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19725
19726 archive_cmds_CXX=''
19727 hardcode_direct_CXX=yes
19728 hardcode_direct_absolute_CXX=yes
19729 hardcode_libdir_separator_CXX=':'
19730 link_all_deplibs_CXX=yes
19731 file_list_spec_CXX='${wl}-f,'
19732
19733 if test "$GXX" = yes; then
19734 case $host_os in aix4.[012]|aix4.[012].*)
19735 # We only want to do this on AIX 4.2 and lower, the check
19736 # below for broken collect2 doesn't work under 4.3+
19737 collect2name=`${CC} -print-prog-name=collect2`
19738 if test -f "$collect2name" &&
19739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19740 then
19741 # We have reworked collect2
19742 :
19743 else
19744 # We have old collect2
19745 hardcode_direct_CXX=unsupported
19746 # It fails to find uninstalled libraries when the uninstalled
19747 # path is not listed in the libpath. Setting hardcode_minus_L
19748 # to unsupported forces relinking
19749 hardcode_minus_L_CXX=yes
19750 hardcode_libdir_flag_spec_CXX='-L$libdir'
19751 hardcode_libdir_separator_CXX=
19752 fi
19753 esac
19754 shared_flag='-shared'
19755 if test "$aix_use_runtimelinking" = yes; then
19756 shared_flag="$shared_flag "'${wl}-G'
19757 fi
19758 else
19759 # not using gcc
19760 if test "$host_cpu" = ia64; then
19761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19762 # chokes on -Wl,-G. The following line is correct:
19763 shared_flag='-G'
19764 else
19765 if test "$aix_use_runtimelinking" = yes; then
19766 shared_flag='${wl}-G'
19767 else
19768 shared_flag='${wl}-bM:SRE'
19769 fi
19770 fi
19771 fi
19772
19773 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19774 # It seems that -bexpall does not export symbols beginning with
19775 # underscore (_), so it is better to generate a list of symbols to
19776 # export.
19777 always_export_symbols_CXX=yes
19778 if test "$aix_use_runtimelinking" = yes; then
19779 # Warning - without using the other runtime loading flags (-brtl),
19780 # -berok will link without error, but may produce a broken library.
19781 allow_undefined_flag_CXX='-berok'
19782 # Determine the default libpath from the value encoded in an empty
19783 # executable.
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19786
19787 int
19788 main ()
19789 {
19790
19791 ;
19792 return 0;
19793 }
19794 _ACEOF
19795 if ac_fn_cxx_try_link "$LINENO"; then :
19796
19797 lt_aix_libpath_sed='
19798 /Import File Strings/,/^$/ {
19799 /^0/ {
19800 s/^0 *\(.*\)$/\1/
19801 p
19802 }
19803 }'
19804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19805 # Check for a 64-bit object if we didn't find anything.
19806 if test -z "$aix_libpath"; then
19807 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19808 fi
19809 fi
19810 rm -f core conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19813
19814 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19815
19816 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"
19817 else
19818 if test "$host_cpu" = ia64; then
19819 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19820 allow_undefined_flag_CXX="-z nodefs"
19821 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"
19822 else
19823 # Determine the default libpath from the value encoded in an
19824 # empty executable.
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19827
19828 int
19829 main ()
19830 {
19831
19832 ;
19833 return 0;
19834 }
19835 _ACEOF
19836 if ac_fn_cxx_try_link "$LINENO"; then :
19837
19838 lt_aix_libpath_sed='
19839 /Import File Strings/,/^$/ {
19840 /^0/ {
19841 s/^0 *\(.*\)$/\1/
19842 p
19843 }
19844 }'
19845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19846 # Check for a 64-bit object if we didn't find anything.
19847 if test -z "$aix_libpath"; then
19848 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19849 fi
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19854
19855 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19856 # Warning - without using the other run time loading flags,
19857 # -berok will link without error, but may produce a broken library.
19858 no_undefined_flag_CXX=' ${wl}-bernotok'
19859 allow_undefined_flag_CXX=' ${wl}-berok'
19860 if test "$with_gnu_ld" = yes; then
19861 # We only use this code for GNU lds that support --whole-archive.
19862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19863 else
19864 # Exported symbols can be pulled into shared objects from archives
19865 whole_archive_flag_spec_CXX='$convenience'
19866 fi
19867 archive_cmds_need_lc_CXX=yes
19868 # This is similar to how AIX traditionally builds its shared
19869 # libraries.
19870 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'
19871 fi
19872 fi
19873 ;;
19874
19875 beos*)
19876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19877 allow_undefined_flag_CXX=unsupported
19878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19879 # support --undefined. This deserves some investigation. FIXME
19880 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19881 else
19882 ld_shlibs_CXX=no
19883 fi
19884 ;;
19885
19886 chorus*)
19887 case $cc_basename in
19888 *)
19889 # FIXME: insert proper C++ library support
19890 ld_shlibs_CXX=no
19891 ;;
19892 esac
19893 ;;
19894
19895 cygwin* | mingw* | pw32* | cegcc*)
19896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19897 # as there is no search path for DLLs.
19898 hardcode_libdir_flag_spec_CXX='-L$libdir'
19899 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19900 allow_undefined_flag_CXX=unsupported
19901 always_export_symbols_CXX=no
19902 enable_shared_with_static_runtimes_CXX=yes
19903
19904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19905 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'
19906 # If the export-symbols file already is a .def file (1st line
19907 # is EXPORTS), use it as is; otherwise, prepend...
19908 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19909 cp $export_symbols $output_objdir/$soname.def;
19910 else
19911 echo EXPORTS > $output_objdir/$soname.def;
19912 cat $export_symbols >> $output_objdir/$soname.def;
19913 fi~
19914 $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'
19915 else
19916 ld_shlibs_CXX=no
19917 fi
19918 ;;
19919 darwin* | rhapsody*)
19920
19921
19922 archive_cmds_need_lc_CXX=no
19923 hardcode_direct_CXX=no
19924 hardcode_automatic_CXX=yes
19925 hardcode_shlibpath_var_CXX=unsupported
19926 if test "$lt_cv_ld_force_load" = "yes"; then
19927 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\"`'
19928 else
19929 whole_archive_flag_spec_CXX=''
19930 fi
19931 link_all_deplibs_CXX=yes
19932 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19933 case $cc_basename in
19934 ifort*) _lt_dar_can_shared=yes ;;
19935 *) _lt_dar_can_shared=$GCC ;;
19936 esac
19937 if test "$_lt_dar_can_shared" = "yes"; then
19938 output_verbose_link_cmd=func_echo_all
19939 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}"
19940 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19941 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}"
19942 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}"
19943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19944 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}"
19945 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}"
19946 fi
19947
19948 else
19949 ld_shlibs_CXX=no
19950 fi
19951
19952 ;;
19953
19954 dgux*)
19955 case $cc_basename in
19956 ec++*)
19957 # FIXME: insert proper C++ library support
19958 ld_shlibs_CXX=no
19959 ;;
19960 ghcx*)
19961 # Green Hills C++ Compiler
19962 # FIXME: insert proper C++ library support
19963 ld_shlibs_CXX=no
19964 ;;
19965 *)
19966 # FIXME: insert proper C++ library support
19967 ld_shlibs_CXX=no
19968 ;;
19969 esac
19970 ;;
19971
19972 freebsd2.*)
19973 # C++ shared libraries reported to be fairly broken before
19974 # switch to ELF
19975 ld_shlibs_CXX=no
19976 ;;
19977
19978 freebsd-elf*)
19979 archive_cmds_need_lc_CXX=no
19980 ;;
19981
19982 freebsd* | dragonfly*)
19983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19984 # conventions
19985 ld_shlibs_CXX=yes
19986 ;;
19987
19988 gnu*)
19989 ;;
19990
19991 haiku*)
19992 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19993 link_all_deplibs_CXX=yes
19994 ;;
19995
19996 hpux9*)
19997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19998 hardcode_libdir_separator_CXX=:
19999 export_dynamic_flag_spec_CXX='${wl}-E'
20000 hardcode_direct_CXX=yes
20001 hardcode_minus_L_CXX=yes # Not in the search PATH,
20002 # but as the default
20003 # location of the library.
20004
20005 case $cc_basename in
20006 CC*)
20007 # FIXME: insert proper C++ library support
20008 ld_shlibs_CXX=no
20009 ;;
20010 aCC*)
20011 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'
20012 # Commands to make compiler produce verbose output that lists
20013 # what "hidden" libraries, object files and flags are used when
20014 # linking a shared library.
20015 #
20016 # There doesn't appear to be a way to prevent this compiler from
20017 # explicitly linking system object files so we need to strip them
20018 # from the output so that they don't get included in the library
20019 # dependencies.
20020 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"'
20021 ;;
20022 *)
20023 if test "$GXX" = yes; then
20024 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'
20025 else
20026 # FIXME: insert proper C++ library support
20027 ld_shlibs_CXX=no
20028 fi
20029 ;;
20030 esac
20031 ;;
20032
20033 hpux10*|hpux11*)
20034 if test $with_gnu_ld = no; then
20035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20036 hardcode_libdir_separator_CXX=:
20037
20038 case $host_cpu in
20039 hppa*64*|ia64*)
20040 ;;
20041 *)
20042 export_dynamic_flag_spec_CXX='${wl}-E'
20043 ;;
20044 esac
20045 fi
20046 case $host_cpu in
20047 hppa*64*|ia64*)
20048 hardcode_direct_CXX=no
20049 hardcode_shlibpath_var_CXX=no
20050 ;;
20051 *)
20052 hardcode_direct_CXX=yes
20053 hardcode_direct_absolute_CXX=yes
20054 hardcode_minus_L_CXX=yes # Not in the search PATH,
20055 # but as the default
20056 # location of the library.
20057 ;;
20058 esac
20059
20060 case $cc_basename in
20061 CC*)
20062 # FIXME: insert proper C++ library support
20063 ld_shlibs_CXX=no
20064 ;;
20065 aCC*)
20066 case $host_cpu in
20067 hppa*64*)
20068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20069 ;;
20070 ia64*)
20071 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20072 ;;
20073 *)
20074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20075 ;;
20076 esac
20077 # Commands to make compiler produce verbose output that lists
20078 # what "hidden" libraries, object files and flags are used when
20079 # linking a shared library.
20080 #
20081 # There doesn't appear to be a way to prevent this compiler from
20082 # explicitly linking system object files so we need to strip them
20083 # from the output so that they don't get included in the library
20084 # dependencies.
20085 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"'
20086 ;;
20087 *)
20088 if test "$GXX" = yes; then
20089 if test $with_gnu_ld = no; then
20090 case $host_cpu in
20091 hppa*64*)
20092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20093 ;;
20094 ia64*)
20095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20096 ;;
20097 *)
20098 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'
20099 ;;
20100 esac
20101 fi
20102 else
20103 # FIXME: insert proper C++ library support
20104 ld_shlibs_CXX=no
20105 fi
20106 ;;
20107 esac
20108 ;;
20109
20110 interix[3-9]*)
20111 hardcode_direct_CXX=no
20112 hardcode_shlibpath_var_CXX=no
20113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20114 export_dynamic_flag_spec_CXX='${wl}-E'
20115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20116 # Instead, shared libraries are loaded at an image base (0x10000000 by
20117 # default) and relocated if they conflict, which is a slow very memory
20118 # consuming and fragmenting process. To avoid this, we pick a random,
20119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20121 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'
20122 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'
20123 ;;
20124 irix5* | irix6*)
20125 case $cc_basename in
20126 CC*)
20127 # SGI C++
20128 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'
20129
20130 # Archives containing C++ object files must be created using
20131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20132 # necessary to make sure instantiated templates are included
20133 # in the archive.
20134 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20135 ;;
20136 *)
20137 if test "$GXX" = yes; then
20138 if test "$with_gnu_ld" = no; then
20139 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'
20140 else
20141 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'
20142 fi
20143 fi
20144 link_all_deplibs_CXX=yes
20145 ;;
20146 esac
20147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20148 hardcode_libdir_separator_CXX=:
20149 inherit_rpath_CXX=yes
20150 ;;
20151
20152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20153 case $cc_basename in
20154 KCC*)
20155 # Kuck and Associates, Inc. (KAI) C++ Compiler
20156
20157 # KCC will only create a shared library if the output file
20158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20159 # to its proper name (with version) after linking.
20160 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'
20161 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'
20162 # Commands to make compiler produce verbose output that lists
20163 # what "hidden" libraries, object files and flags are used when
20164 # linking a shared library.
20165 #
20166 # There doesn't appear to be a way to prevent this compiler from
20167 # explicitly linking system object files so we need to strip them
20168 # from the output so that they don't get included in the library
20169 # dependencies.
20170 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"'
20171
20172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20174
20175 # Archives containing C++ object files must be created using
20176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20178 ;;
20179 icpc* | ecpc* )
20180 # Intel C++
20181 with_gnu_ld=yes
20182 # version 8.0 and above of icpc choke on multiply defined symbols
20183 # if we add $predep_objects and $postdep_objects, however 7.1 and
20184 # earlier do not add the objects themselves.
20185 case `$CC -V 2>&1` in
20186 *"Version 7."*)
20187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20188 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'
20189 ;;
20190 *) # Version 8.0 or newer
20191 tmp_idyn=
20192 case $host_cpu in
20193 ia64*) tmp_idyn=' -i_dynamic';;
20194 esac
20195 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20196 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'
20197 ;;
20198 esac
20199 archive_cmds_need_lc_CXX=no
20200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20202 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20203 ;;
20204 pgCC* | pgcpp*)
20205 # Portland Group C++ compiler
20206 case `$CC -V` in
20207 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20208 prelink_cmds_CXX='tpldir=Template.dir~
20209 rm -rf $tpldir~
20210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20211 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20212 old_archive_cmds_CXX='tpldir=Template.dir~
20213 rm -rf $tpldir~
20214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20216 $RANLIB $oldlib'
20217 archive_cmds_CXX='tpldir=Template.dir~
20218 rm -rf $tpldir~
20219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20221 archive_expsym_cmds_CXX='tpldir=Template.dir~
20222 rm -rf $tpldir~
20223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20224 $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'
20225 ;;
20226 *) # Version 6 and above use weak symbols
20227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20228 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'
20229 ;;
20230 esac
20231
20232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20234 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'
20235 ;;
20236 cxx*)
20237 # Compaq C++
20238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20240
20241 runpath_var=LD_RUN_PATH
20242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20243 hardcode_libdir_separator_CXX=:
20244
20245 # Commands to make compiler produce verbose output that lists
20246 # what "hidden" libraries, object files and flags are used when
20247 # linking a shared library.
20248 #
20249 # There doesn't appear to be a way to prevent this compiler from
20250 # explicitly linking system object files so we need to strip them
20251 # from the output so that they don't get included in the library
20252 # dependencies.
20253 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'
20254 ;;
20255 xl* | mpixl* | bgxl*)
20256 # IBM XL 8.0 on PPC, with GNU ld
20257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20259 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20260 if test "x$supports_anon_versioning" = xyes; then
20261 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20263 echo "local: *; };" >> $output_objdir/$libname.ver~
20264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20265 fi
20266 ;;
20267 *)
20268 case `$CC -V 2>&1 | sed 5q` in
20269 *Sun\ C*)
20270 # Sun C++ 5.9
20271 no_undefined_flag_CXX=' -zdefs'
20272 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20273 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'
20274 hardcode_libdir_flag_spec_CXX='-R$libdir'
20275 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'
20276 compiler_needs_object_CXX=yes
20277
20278 # Not sure whether something based on
20279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20280 # would be better.
20281 output_verbose_link_cmd='func_echo_all'
20282
20283 # Archives containing C++ object files must be created using
20284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20285 # necessary to make sure instantiated templates are included
20286 # in the archive.
20287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20288 ;;
20289 esac
20290 ;;
20291 esac
20292 ;;
20293
20294 lynxos*)
20295 # FIXME: insert proper C++ library support
20296 ld_shlibs_CXX=no
20297 ;;
20298
20299 m88k*)
20300 # FIXME: insert proper C++ library support
20301 ld_shlibs_CXX=no
20302 ;;
20303
20304 mvs*)
20305 case $cc_basename in
20306 cxx*)
20307 # FIXME: insert proper C++ library support
20308 ld_shlibs_CXX=no
20309 ;;
20310 *)
20311 # FIXME: insert proper C++ library support
20312 ld_shlibs_CXX=no
20313 ;;
20314 esac
20315 ;;
20316
20317 netbsd*)
20318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20319 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20320 wlarc=
20321 hardcode_libdir_flag_spec_CXX='-R$libdir'
20322 hardcode_direct_CXX=yes
20323 hardcode_shlibpath_var_CXX=no
20324 fi
20325 # Workaround some broken pre-1.5 toolchains
20326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20327 ;;
20328
20329 *nto* | *qnx*)
20330 ld_shlibs_CXX=yes
20331 ;;
20332
20333 openbsd2*)
20334 # C++ shared libraries are fairly broken
20335 ld_shlibs_CXX=no
20336 ;;
20337
20338 openbsd*)
20339 if test -f /usr/libexec/ld.so; then
20340 hardcode_direct_CXX=yes
20341 hardcode_shlibpath_var_CXX=no
20342 hardcode_direct_absolute_CXX=yes
20343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20346 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20347 export_dynamic_flag_spec_CXX='${wl}-E'
20348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20349 fi
20350 output_verbose_link_cmd=func_echo_all
20351 else
20352 ld_shlibs_CXX=no
20353 fi
20354 ;;
20355
20356 osf3* | osf4* | osf5*)
20357 case $cc_basename in
20358 KCC*)
20359 # Kuck and Associates, Inc. (KAI) C++ Compiler
20360
20361 # KCC will only create a shared library if the output file
20362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20363 # to its proper name (with version) after linking.
20364 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'
20365
20366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20367 hardcode_libdir_separator_CXX=:
20368
20369 # Archives containing C++ object files must be created using
20370 # the KAI C++ compiler.
20371 case $host in
20372 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20373 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20374 esac
20375 ;;
20376 RCC*)
20377 # Rational C++ 2.4.1
20378 # FIXME: insert proper C++ library support
20379 ld_shlibs_CXX=no
20380 ;;
20381 cxx*)
20382 case $host in
20383 osf3*)
20384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20385 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'
20386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20387 ;;
20388 *)
20389 allow_undefined_flag_CXX=' -expect_unresolved \*'
20390 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'
20391 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20392 echo "-hidden">> $lib.exp~
20393 $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~
20394 $RM $lib.exp'
20395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20396 ;;
20397 esac
20398
20399 hardcode_libdir_separator_CXX=:
20400
20401 # Commands to make compiler produce verbose output that lists
20402 # what "hidden" libraries, object files and flags are used when
20403 # linking a shared library.
20404 #
20405 # There doesn't appear to be a way to prevent this compiler from
20406 # explicitly linking system object files so we need to strip them
20407 # from the output so that they don't get included in the library
20408 # dependencies.
20409 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"'
20410 ;;
20411 *)
20412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20414 case $host in
20415 osf3*)
20416 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'
20417 ;;
20418 *)
20419 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'
20420 ;;
20421 esac
20422
20423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20424 hardcode_libdir_separator_CXX=:
20425
20426 # Commands to make compiler produce verbose output that lists
20427 # what "hidden" libraries, object files and flags are used when
20428 # linking a shared library.
20429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20430
20431 else
20432 # FIXME: insert proper C++ library support
20433 ld_shlibs_CXX=no
20434 fi
20435 ;;
20436 esac
20437 ;;
20438
20439 psos*)
20440 # FIXME: insert proper C++ library support
20441 ld_shlibs_CXX=no
20442 ;;
20443
20444 sunos4*)
20445 case $cc_basename in
20446 CC*)
20447 # Sun C++ 4.x
20448 # FIXME: insert proper C++ library support
20449 ld_shlibs_CXX=no
20450 ;;
20451 lcc*)
20452 # Lucid
20453 # FIXME: insert proper C++ library support
20454 ld_shlibs_CXX=no
20455 ;;
20456 *)
20457 # FIXME: insert proper C++ library support
20458 ld_shlibs_CXX=no
20459 ;;
20460 esac
20461 ;;
20462
20463 solaris*)
20464 case $cc_basename in
20465 CC*)
20466 # Sun C++ 4.2, 5.x and Centerline C++
20467 archive_cmds_need_lc_CXX=yes
20468 no_undefined_flag_CXX=' -zdefs'
20469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20471 $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'
20472
20473 hardcode_libdir_flag_spec_CXX='-R$libdir'
20474 hardcode_shlibpath_var_CXX=no
20475 case $host_os in
20476 solaris2.[0-5] | solaris2.[0-5].*) ;;
20477 *)
20478 # The compiler driver will combine and reorder linker options,
20479 # but understands `-z linker_flag'.
20480 # Supported since Solaris 2.6 (maybe 2.5.1?)
20481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20482 ;;
20483 esac
20484 link_all_deplibs_CXX=yes
20485
20486 output_verbose_link_cmd='func_echo_all'
20487
20488 # Archives containing C++ object files must be created using
20489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20490 # necessary to make sure instantiated templates are included
20491 # in the archive.
20492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20493 ;;
20494 gcx*)
20495 # Green Hills C++ Compiler
20496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20497
20498 # The C++ compiler must be used to create the archive.
20499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20500 ;;
20501 *)
20502 # GNU C++ compiler with Solaris linker
20503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20505 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20509
20510 # Commands to make compiler produce verbose output that lists
20511 # what "hidden" libraries, object files and flags are used when
20512 # linking a shared library.
20513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20514 else
20515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20516 # platform.
20517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20520
20521 # Commands to make compiler produce verbose output that lists
20522 # what "hidden" libraries, object files and flags are used when
20523 # linking a shared library.
20524 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20525 fi
20526
20527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20528 case $host_os in
20529 solaris2.[0-5] | solaris2.[0-5].*) ;;
20530 *)
20531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20532 ;;
20533 esac
20534 fi
20535 ;;
20536 esac
20537 ;;
20538
20539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20540 no_undefined_flag_CXX='${wl}-z,text'
20541 archive_cmds_need_lc_CXX=no
20542 hardcode_shlibpath_var_CXX=no
20543 runpath_var='LD_RUN_PATH'
20544
20545 case $cc_basename in
20546 CC*)
20547 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20548 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20549 ;;
20550 *)
20551 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20552 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20553 ;;
20554 esac
20555 ;;
20556
20557 sysv5* | sco3.2v5* | sco5v6*)
20558 # Note: We can NOT use -z defs as we might desire, because we do not
20559 # link with -lc, and that would cause any symbols used from libc to
20560 # always be unresolved, which means just about no library would
20561 # ever link correctly. If we're not using GNU ld we use -z text
20562 # though, which does catch some bad symbols but isn't as heavy-handed
20563 # as -z defs.
20564 no_undefined_flag_CXX='${wl}-z,text'
20565 allow_undefined_flag_CXX='${wl}-z,nodefs'
20566 archive_cmds_need_lc_CXX=no
20567 hardcode_shlibpath_var_CXX=no
20568 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20569 hardcode_libdir_separator_CXX=':'
20570 link_all_deplibs_CXX=yes
20571 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20572 runpath_var='LD_RUN_PATH'
20573
20574 case $cc_basename in
20575 CC*)
20576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20578 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20579 '"$old_archive_cmds_CXX"
20580 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20581 '"$reload_cmds_CXX"
20582 ;;
20583 *)
20584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20586 ;;
20587 esac
20588 ;;
20589
20590 tandem*)
20591 case $cc_basename in
20592 NCC*)
20593 # NonStop-UX NCC 3.20
20594 # FIXME: insert proper C++ library support
20595 ld_shlibs_CXX=no
20596 ;;
20597 *)
20598 # FIXME: insert proper C++ library support
20599 ld_shlibs_CXX=no
20600 ;;
20601 esac
20602 ;;
20603
20604 vxworks*)
20605 # FIXME: insert proper C++ library support
20606 ld_shlibs_CXX=no
20607 ;;
20608
20609 *)
20610 # FIXME: insert proper C++ library support
20611 ld_shlibs_CXX=no
20612 ;;
20613 esac
20614
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20616 $as_echo "$ld_shlibs_CXX" >&6; }
20617 test "$ld_shlibs_CXX" = no && can_build_shared=no
20618
20619 GCC_CXX="$GXX"
20620 LD_CXX="$LD"
20621
20622 ## CAVEAT EMPTOR:
20623 ## There is no encapsulation within the following macros, do not change
20624 ## the running order or otherwise move them around unless you know exactly
20625 ## what you are doing...
20626 # Dependencies to place before and after the object being linked:
20627 predep_objects_CXX=
20628 postdep_objects_CXX=
20629 predeps_CXX=
20630 postdeps_CXX=
20631 compiler_lib_search_path_CXX=
20632
20633 cat > conftest.$ac_ext <<_LT_EOF
20634 class Foo
20635 {
20636 public:
20637 Foo (void) { a = 0; }
20638 private:
20639 int a;
20640 };
20641 _LT_EOF
20642
20643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20644 (eval $ac_compile) 2>&5
20645 ac_status=$?
20646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20647 test $ac_status = 0; }; then
20648 # Parse the compiler output and extract the necessary
20649 # objects, libraries and library flags.
20650
20651 # Sentinel used to keep track of whether or not we are before
20652 # the conftest object file.
20653 pre_test_object_deps_done=no
20654
20655 for p in `eval "$output_verbose_link_cmd"`; do
20656 case $p in
20657
20658 -L* | -R* | -l*)
20659 # Some compilers place space between "-{L,R}" and the path.
20660 # Remove the space.
20661 if test $p = "-L" ||
20662 test $p = "-R"; then
20663 prev=$p
20664 continue
20665 else
20666 prev=
20667 fi
20668
20669 if test "$pre_test_object_deps_done" = no; then
20670 case $p in
20671 -L* | -R*)
20672 # Internal compiler library paths should come after those
20673 # provided the user. The postdeps already come after the
20674 # user supplied libs so there is no need to process them.
20675 if test -z "$compiler_lib_search_path_CXX"; then
20676 compiler_lib_search_path_CXX="${prev}${p}"
20677 else
20678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20679 fi
20680 ;;
20681 # The "-l" case would never come before the object being
20682 # linked, so don't bother handling this case.
20683 esac
20684 else
20685 if test -z "$postdeps_CXX"; then
20686 postdeps_CXX="${prev}${p}"
20687 else
20688 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20689 fi
20690 fi
20691 ;;
20692
20693 *.$objext)
20694 # This assumes that the test object file only shows up
20695 # once in the compiler output.
20696 if test "$p" = "conftest.$objext"; then
20697 pre_test_object_deps_done=yes
20698 continue
20699 fi
20700
20701 if test "$pre_test_object_deps_done" = no; then
20702 if test -z "$predep_objects_CXX"; then
20703 predep_objects_CXX="$p"
20704 else
20705 predep_objects_CXX="$predep_objects_CXX $p"
20706 fi
20707 else
20708 if test -z "$postdep_objects_CXX"; then
20709 postdep_objects_CXX="$p"
20710 else
20711 postdep_objects_CXX="$postdep_objects_CXX $p"
20712 fi
20713 fi
20714 ;;
20715
20716 *) ;; # Ignore the rest.
20717
20718 esac
20719 done
20720
20721 # Clean up.
20722 rm -f a.out a.exe
20723 else
20724 echo "libtool.m4: error: problem compiling CXX test program"
20725 fi
20726
20727 $RM -f confest.$objext
20728
20729 # PORTME: override above test on systems where it is broken
20730 case $host_os in
20731 interix[3-9]*)
20732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20733 # hack all around it, let's just trust "g++" to DTRT.
20734 predep_objects_CXX=
20735 postdep_objects_CXX=
20736 postdeps_CXX=
20737 ;;
20738
20739 linux*)
20740 case `$CC -V 2>&1 | sed 5q` in
20741 *Sun\ C*)
20742 # Sun C++ 5.9
20743
20744 # The more standards-conforming stlport4 library is
20745 # incompatible with the Cstd library. Avoid specifying
20746 # it if it's in CXXFLAGS. Ignore libCrun as
20747 # -library=stlport4 depends on it.
20748 case " $CXX $CXXFLAGS " in
20749 *" -library=stlport4 "*)
20750 solaris_use_stlport4=yes
20751 ;;
20752 esac
20753
20754 if test "$solaris_use_stlport4" != yes; then
20755 postdeps_CXX='-library=Cstd -library=Crun'
20756 fi
20757 ;;
20758 esac
20759 ;;
20760
20761 solaris*)
20762 case $cc_basename in
20763 CC*)
20764 # The more standards-conforming stlport4 library is
20765 # incompatible with the Cstd library. Avoid specifying
20766 # it if it's in CXXFLAGS. Ignore libCrun as
20767 # -library=stlport4 depends on it.
20768 case " $CXX $CXXFLAGS " in
20769 *" -library=stlport4 "*)
20770 solaris_use_stlport4=yes
20771 ;;
20772 esac
20773
20774 # Adding this requires a known-good setup of shared libraries for
20775 # Sun compiler versions before 5.6, else PIC objects from an old
20776 # archive will be linked into the output, leading to subtle bugs.
20777 if test "$solaris_use_stlport4" != yes; then
20778 postdeps_CXX='-library=Cstd -library=Crun'
20779 fi
20780 ;;
20781 esac
20782 ;;
20783 esac
20784
20785
20786 case " $postdeps_CXX " in
20787 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20788 esac
20789 compiler_lib_search_dirs_CXX=
20790 if test -n "${compiler_lib_search_path_CXX}"; then
20791 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20792 fi
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824 lt_prog_compiler_wl_CXX=
20825 lt_prog_compiler_pic_CXX=
20826 lt_prog_compiler_static_CXX=
20827
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20830
20831 # C++ specific cases for pic, static, wl, etc.
20832 if test "$GXX" = yes; then
20833 lt_prog_compiler_wl_CXX='-Wl,'
20834 lt_prog_compiler_static_CXX='-static'
20835
20836 case $host_os in
20837 aix*)
20838 # All AIX code is PIC.
20839 if test "$host_cpu" = ia64; then
20840 # AIX 5 now supports IA64 processor
20841 lt_prog_compiler_static_CXX='-Bstatic'
20842 fi
20843 lt_prog_compiler_pic_CXX='-fPIC'
20844 ;;
20845
20846 amigaos*)
20847 case $host_cpu in
20848 powerpc)
20849 # see comment about AmigaOS4 .so support
20850 lt_prog_compiler_pic_CXX='-fPIC'
20851 ;;
20852 m68k)
20853 # FIXME: we need at least 68020 code to build shared libraries, but
20854 # adding the `-m68020' flag to GCC prevents building anything better,
20855 # like `-m68040'.
20856 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20857 ;;
20858 esac
20859 ;;
20860
20861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20862 # PIC is the default for these OSes.
20863 ;;
20864 mingw* | cygwin* | os2* | pw32* | cegcc*)
20865 # This hack is so that the source file can tell whether it is being
20866 # built for inclusion in a dll (and should export symbols for example).
20867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20868 # (--disable-auto-import) libraries
20869 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20870 ;;
20871 darwin* | rhapsody*)
20872 # PIC is the default on this platform
20873 # Common symbols not allowed in MH_DYLIB files
20874 lt_prog_compiler_pic_CXX='-fno-common'
20875 ;;
20876 *djgpp*)
20877 # DJGPP does not support shared libraries at all
20878 lt_prog_compiler_pic_CXX=
20879 ;;
20880 haiku*)
20881 # PIC is the default for Haiku.
20882 # The "-static" flag exists, but is broken.
20883 lt_prog_compiler_static_CXX=
20884 ;;
20885 interix[3-9]*)
20886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20887 # Instead, we relocate shared libraries at runtime.
20888 ;;
20889 sysv4*MP*)
20890 if test -d /usr/nec; then
20891 lt_prog_compiler_pic_CXX=-Kconform_pic
20892 fi
20893 ;;
20894 hpux*)
20895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20897 # sets the default TLS model and affects inlining.
20898 case $host_cpu in
20899 hppa*64*)
20900 ;;
20901 *)
20902 lt_prog_compiler_pic_CXX='-fPIC'
20903 ;;
20904 esac
20905 ;;
20906 *qnx* | *nto*)
20907 # QNX uses GNU C++, but need to define -shared option too, otherwise
20908 # it will coredump.
20909 lt_prog_compiler_pic_CXX='-fPIC -shared'
20910 ;;
20911 *)
20912 lt_prog_compiler_pic_CXX='-fPIC'
20913 ;;
20914 esac
20915 else
20916 case $host_os in
20917 aix[4-9]*)
20918 # All AIX code is PIC.
20919 if test "$host_cpu" = ia64; then
20920 # AIX 5 now supports IA64 processor
20921 lt_prog_compiler_static_CXX='-Bstatic'
20922 else
20923 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20924 fi
20925 ;;
20926 chorus*)
20927 case $cc_basename in
20928 cxch68*)
20929 # Green Hills C++ Compiler
20930 # _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"
20931 ;;
20932 esac
20933 ;;
20934 dgux*)
20935 case $cc_basename in
20936 ec++*)
20937 lt_prog_compiler_pic_CXX='-KPIC'
20938 ;;
20939 ghcx*)
20940 # Green Hills C++ Compiler
20941 lt_prog_compiler_pic_CXX='-pic'
20942 ;;
20943 *)
20944 ;;
20945 esac
20946 ;;
20947 freebsd* | dragonfly*)
20948 # FreeBSD uses GNU C++
20949 ;;
20950 hpux9* | hpux10* | hpux11*)
20951 case $cc_basename in
20952 CC*)
20953 lt_prog_compiler_wl_CXX='-Wl,'
20954 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20955 if test "$host_cpu" != ia64; then
20956 lt_prog_compiler_pic_CXX='+Z'
20957 fi
20958 ;;
20959 aCC*)
20960 lt_prog_compiler_wl_CXX='-Wl,'
20961 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20962 case $host_cpu in
20963 hppa*64*|ia64*)
20964 # +Z the default
20965 ;;
20966 *)
20967 lt_prog_compiler_pic_CXX='+Z'
20968 ;;
20969 esac
20970 ;;
20971 *)
20972 ;;
20973 esac
20974 ;;
20975 interix*)
20976 # This is c89, which is MS Visual C++ (no shared libs)
20977 # Anyone wants to do a port?
20978 ;;
20979 irix5* | irix6* | nonstopux*)
20980 case $cc_basename in
20981 CC*)
20982 lt_prog_compiler_wl_CXX='-Wl,'
20983 lt_prog_compiler_static_CXX='-non_shared'
20984 # CC pic flag -KPIC is the default.
20985 ;;
20986 *)
20987 ;;
20988 esac
20989 ;;
20990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20991 case $cc_basename in
20992 KCC*)
20993 # KAI C++ Compiler
20994 lt_prog_compiler_wl_CXX='--backend -Wl,'
20995 lt_prog_compiler_pic_CXX='-fPIC'
20996 ;;
20997 ecpc* )
20998 # old Intel C++ for x86_64 which still supported -KPIC.
20999 lt_prog_compiler_wl_CXX='-Wl,'
21000 lt_prog_compiler_pic_CXX='-KPIC'
21001 lt_prog_compiler_static_CXX='-static'
21002 ;;
21003 icpc* )
21004 # Intel C++, used to be incompatible with GCC.
21005 # ICC 10 doesn't accept -KPIC any more.
21006 lt_prog_compiler_wl_CXX='-Wl,'
21007 lt_prog_compiler_pic_CXX='-fPIC'
21008 lt_prog_compiler_static_CXX='-static'
21009 ;;
21010 pgCC* | pgcpp*)
21011 # Portland Group C++ compiler
21012 lt_prog_compiler_wl_CXX='-Wl,'
21013 lt_prog_compiler_pic_CXX='-fpic'
21014 lt_prog_compiler_static_CXX='-Bstatic'
21015 ;;
21016 cxx*)
21017 # Compaq C++
21018 # Make sure the PIC flag is empty. It appears that all Alpha
21019 # Linux and Compaq Tru64 Unix objects are PIC.
21020 lt_prog_compiler_pic_CXX=
21021 lt_prog_compiler_static_CXX='-non_shared'
21022 ;;
21023 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21024 # IBM XL 8.0, 9.0 on PPC and BlueGene
21025 lt_prog_compiler_wl_CXX='-Wl,'
21026 lt_prog_compiler_pic_CXX='-qpic'
21027 lt_prog_compiler_static_CXX='-qstaticlink'
21028 ;;
21029 *)
21030 case `$CC -V 2>&1 | sed 5q` in
21031 *Sun\ C*)
21032 # Sun C++ 5.9
21033 lt_prog_compiler_pic_CXX='-KPIC'
21034 lt_prog_compiler_static_CXX='-Bstatic'
21035 lt_prog_compiler_wl_CXX='-Qoption ld '
21036 ;;
21037 esac
21038 ;;
21039 esac
21040 ;;
21041 lynxos*)
21042 ;;
21043 m88k*)
21044 ;;
21045 mvs*)
21046 case $cc_basename in
21047 cxx*)
21048 lt_prog_compiler_pic_CXX='-W c,exportall'
21049 ;;
21050 *)
21051 ;;
21052 esac
21053 ;;
21054 netbsd*)
21055 ;;
21056 *qnx* | *nto*)
21057 # QNX uses GNU C++, but need to define -shared option too, otherwise
21058 # it will coredump.
21059 lt_prog_compiler_pic_CXX='-fPIC -shared'
21060 ;;
21061 osf3* | osf4* | osf5*)
21062 case $cc_basename in
21063 KCC*)
21064 lt_prog_compiler_wl_CXX='--backend -Wl,'
21065 ;;
21066 RCC*)
21067 # Rational C++ 2.4.1
21068 lt_prog_compiler_pic_CXX='-pic'
21069 ;;
21070 cxx*)
21071 # Digital/Compaq C++
21072 lt_prog_compiler_wl_CXX='-Wl,'
21073 # Make sure the PIC flag is empty. It appears that all Alpha
21074 # Linux and Compaq Tru64 Unix objects are PIC.
21075 lt_prog_compiler_pic_CXX=
21076 lt_prog_compiler_static_CXX='-non_shared'
21077 ;;
21078 *)
21079 ;;
21080 esac
21081 ;;
21082 psos*)
21083 ;;
21084 solaris*)
21085 case $cc_basename in
21086 CC*)
21087 # Sun C++ 4.2, 5.x and Centerline C++
21088 lt_prog_compiler_pic_CXX='-KPIC'
21089 lt_prog_compiler_static_CXX='-Bstatic'
21090 lt_prog_compiler_wl_CXX='-Qoption ld '
21091 ;;
21092 gcx*)
21093 # Green Hills C++ Compiler
21094 lt_prog_compiler_pic_CXX='-PIC'
21095 ;;
21096 *)
21097 ;;
21098 esac
21099 ;;
21100 sunos4*)
21101 case $cc_basename in
21102 CC*)
21103 # Sun C++ 4.x
21104 lt_prog_compiler_pic_CXX='-pic'
21105 lt_prog_compiler_static_CXX='-Bstatic'
21106 ;;
21107 lcc*)
21108 # Lucid
21109 lt_prog_compiler_pic_CXX='-pic'
21110 ;;
21111 *)
21112 ;;
21113 esac
21114 ;;
21115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21116 case $cc_basename in
21117 CC*)
21118 lt_prog_compiler_wl_CXX='-Wl,'
21119 lt_prog_compiler_pic_CXX='-KPIC'
21120 lt_prog_compiler_static_CXX='-Bstatic'
21121 ;;
21122 esac
21123 ;;
21124 tandem*)
21125 case $cc_basename in
21126 NCC*)
21127 # NonStop-UX NCC 3.20
21128 lt_prog_compiler_pic_CXX='-KPIC'
21129 ;;
21130 *)
21131 ;;
21132 esac
21133 ;;
21134 vxworks*)
21135 ;;
21136 *)
21137 lt_prog_compiler_can_build_shared_CXX=no
21138 ;;
21139 esac
21140 fi
21141
21142 case $host_os in
21143 # For platforms which do not support PIC, -DPIC is meaningless:
21144 *djgpp*)
21145 lt_prog_compiler_pic_CXX=
21146 ;;
21147 *)
21148 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21149 ;;
21150 esac
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21152 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21153
21154
21155
21156 #
21157 # Check to make sure the PIC flag actually works.
21158 #
21159 if test -n "$lt_prog_compiler_pic_CXX"; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21161 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21162 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21163 $as_echo_n "(cached) " >&6
21164 else
21165 lt_cv_prog_compiler_pic_works_CXX=no
21166 ac_outfile=conftest.$ac_objext
21167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21168 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21169 # Insert the option either (1) after the last *FLAGS variable, or
21170 # (2) before a word containing "conftest.", or (3) at the end.
21171 # Note that $ac_compile itself does not contain backslashes and begins
21172 # with a dollar sign (not a hyphen), so the echo should work correctly.
21173 # The option is referenced via a variable to avoid confusing sed.
21174 lt_compile=`echo "$ac_compile" | $SED \
21175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21177 -e 's:$: $lt_compiler_flag:'`
21178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21179 (eval "$lt_compile" 2>conftest.err)
21180 ac_status=$?
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 if (exit $ac_status) && test -s "$ac_outfile"; then
21184 # The compiler can only warn and ignore the option if not recognized
21185 # So say no if there are warnings other than the usual output.
21186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21189 lt_cv_prog_compiler_pic_works_CXX=yes
21190 fi
21191 fi
21192 $RM conftest*
21193
21194 fi
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21196 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21197
21198 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21199 case $lt_prog_compiler_pic_CXX in
21200 "" | " "*) ;;
21201 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21202 esac
21203 else
21204 lt_prog_compiler_pic_CXX=
21205 lt_prog_compiler_can_build_shared_CXX=no
21206 fi
21207
21208 fi
21209
21210
21211
21212 #
21213 # Check to make sure the static flag actually works.
21214 #
21215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21218 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221 lt_cv_prog_compiler_static_works_CXX=no
21222 save_LDFLAGS="$LDFLAGS"
21223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21226 # The linker can only warn and ignore the option if not recognized
21227 # So say no if there are warnings
21228 if test -s conftest.err; then
21229 # Append any errors to the config.log.
21230 cat conftest.err 1>&5
21231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21233 if diff conftest.exp conftest.er2 >/dev/null; then
21234 lt_cv_prog_compiler_static_works_CXX=yes
21235 fi
21236 else
21237 lt_cv_prog_compiler_static_works_CXX=yes
21238 fi
21239 fi
21240 $RM -r conftest*
21241 LDFLAGS="$save_LDFLAGS"
21242
21243 fi
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21246
21247 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21248 :
21249 else
21250 lt_prog_compiler_static_CXX=
21251 fi
21252
21253
21254
21255
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21258 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21259 $as_echo_n "(cached) " >&6
21260 else
21261 lt_cv_prog_compiler_c_o_CXX=no
21262 $RM -r conftest 2>/dev/null
21263 mkdir conftest
21264 cd conftest
21265 mkdir out
21266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21267
21268 lt_compiler_flag="-o out/conftest2.$ac_objext"
21269 # Insert the option either (1) after the last *FLAGS variable, or
21270 # (2) before a word containing "conftest.", or (3) at the end.
21271 # Note that $ac_compile itself does not contain backslashes and begins
21272 # with a dollar sign (not a hyphen), so the echo should work correctly.
21273 lt_compile=`echo "$ac_compile" | $SED \
21274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21276 -e 's:$: $lt_compiler_flag:'`
21277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21278 (eval "$lt_compile" 2>out/conftest.err)
21279 ac_status=$?
21280 cat out/conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21283 then
21284 # The compiler can only warn and ignore the option if not recognized
21285 # So say no if there are warnings
21286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21289 lt_cv_prog_compiler_c_o_CXX=yes
21290 fi
21291 fi
21292 chmod u+w . 2>&5
21293 $RM conftest*
21294 # SGI C++ compiler will create directory out/ii_files/ for
21295 # template instantiation
21296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21297 $RM out/* && rmdir out
21298 cd ..
21299 $RM -r conftest
21300 $RM conftest*
21301
21302 fi
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21305
21306
21307
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21310 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21311 $as_echo_n "(cached) " >&6
21312 else
21313 lt_cv_prog_compiler_c_o_CXX=no
21314 $RM -r conftest 2>/dev/null
21315 mkdir conftest
21316 cd conftest
21317 mkdir out
21318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21319
21320 lt_compiler_flag="-o out/conftest2.$ac_objext"
21321 # Insert the option either (1) after the last *FLAGS variable, or
21322 # (2) before a word containing "conftest.", or (3) at the end.
21323 # Note that $ac_compile itself does not contain backslashes and begins
21324 # with a dollar sign (not a hyphen), so the echo should work correctly.
21325 lt_compile=`echo "$ac_compile" | $SED \
21326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21328 -e 's:$: $lt_compiler_flag:'`
21329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21330 (eval "$lt_compile" 2>out/conftest.err)
21331 ac_status=$?
21332 cat out/conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21335 then
21336 # The compiler can only warn and ignore the option if not recognized
21337 # So say no if there are warnings
21338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21341 lt_cv_prog_compiler_c_o_CXX=yes
21342 fi
21343 fi
21344 chmod u+w . 2>&5
21345 $RM conftest*
21346 # SGI C++ compiler will create directory out/ii_files/ for
21347 # template instantiation
21348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21349 $RM out/* && rmdir out
21350 cd ..
21351 $RM -r conftest
21352 $RM conftest*
21353
21354 fi
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21357
21358
21359
21360
21361 hard_links="nottested"
21362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21363 # do not overwrite the value of need_locks provided by the user
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21365 $as_echo_n "checking if we can lock with hard links... " >&6; }
21366 hard_links=yes
21367 $RM conftest*
21368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21369 touch conftest.a
21370 ln conftest.a conftest.b 2>&5 || hard_links=no
21371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21373 $as_echo "$hard_links" >&6; }
21374 if test "$hard_links" = no; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21377 need_locks=warn
21378 fi
21379 else
21380 need_locks=no
21381 fi
21382
21383
21384
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21387
21388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21389 case $host_os in
21390 aix[4-9]*)
21391 # If we're using GNU nm, then we don't want the "-C" option.
21392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21393 # Also, AIX nm treats weak defined symbols like other global defined
21394 # symbols, whereas GNU nm marks them as "W".
21395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21396 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'
21397 else
21398 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'
21399 fi
21400 ;;
21401 pw32*)
21402 export_symbols_cmds_CXX="$ltdll_cmds"
21403 ;;
21404 cygwin* | mingw* | cegcc*)
21405 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'
21406 ;;
21407 *)
21408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21409 ;;
21410 esac
21411 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21412
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21414 $as_echo "$ld_shlibs_CXX" >&6; }
21415 test "$ld_shlibs_CXX" = no && can_build_shared=no
21416
21417 with_gnu_ld_CXX=$with_gnu_ld
21418
21419
21420
21421
21422
21423
21424 #
21425 # Do we need to explicitly link libc?
21426 #
21427 case "x$archive_cmds_need_lc_CXX" in
21428 x|xyes)
21429 # Assume -lc should be added
21430 archive_cmds_need_lc_CXX=yes
21431
21432 if test "$enable_shared" = yes && test "$GCC" = yes; then
21433 case $archive_cmds_CXX in
21434 *'~'*)
21435 # FIXME: we may have to deal with multi-command sequences.
21436 ;;
21437 '$CC '*)
21438 # Test whether the compiler implicitly links with -lc since on some
21439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21440 # to ld, don't add -lc before -lgcc.
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21443 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21444 $as_echo_n "(cached) " >&6
21445 else
21446 $RM conftest*
21447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21448
21449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21450 (eval $ac_compile) 2>&5
21451 ac_status=$?
21452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21453 test $ac_status = 0; } 2>conftest.err; then
21454 soname=conftest
21455 lib=conftest
21456 libobjs=conftest.$ac_objext
21457 deplibs=
21458 wl=$lt_prog_compiler_wl_CXX
21459 pic_flag=$lt_prog_compiler_pic_CXX
21460 compiler_flags=-v
21461 linker_flags=-v
21462 verstring=
21463 output_objdir=.
21464 libname=conftest
21465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21466 allow_undefined_flag_CXX=
21467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21468 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21469 ac_status=$?
21470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21471 test $ac_status = 0; }
21472 then
21473 lt_cv_archive_cmds_need_lc_CXX=no
21474 else
21475 lt_cv_archive_cmds_need_lc_CXX=yes
21476 fi
21477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21478 else
21479 cat conftest.err 1>&5
21480 fi
21481 $RM conftest*
21482
21483 fi
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21485 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21486 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21487 ;;
21488 esac
21489 fi
21490 ;;
21491 esac
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21558
21559 library_names_spec=
21560 libname_spec='lib$name'
21561 soname_spec=
21562 shrext_cmds=".so"
21563 postinstall_cmds=
21564 postuninstall_cmds=
21565 finish_cmds=
21566 finish_eval=
21567 shlibpath_var=
21568 shlibpath_overrides_runpath=unknown
21569 version_type=none
21570 dynamic_linker="$host_os ld.so"
21571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21572 need_lib_prefix=unknown
21573 hardcode_into_libs=no
21574
21575 # when you set need_version to no, make sure it does not cause -set_version
21576 # flags to be left without arguments
21577 need_version=unknown
21578
21579 case $host_os in
21580 aix3*)
21581 version_type=linux
21582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21583 shlibpath_var=LIBPATH
21584
21585 # AIX 3 has no versioning support, so we append a major version to the name.
21586 soname_spec='${libname}${release}${shared_ext}$major'
21587 ;;
21588
21589 aix[4-9]*)
21590 version_type=linux
21591 need_lib_prefix=no
21592 need_version=no
21593 hardcode_into_libs=yes
21594 if test "$host_cpu" = ia64; then
21595 # AIX 5 supports IA64
21596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21597 shlibpath_var=LD_LIBRARY_PATH
21598 else
21599 # With GCC up to 2.95.x, collect2 would create an import file
21600 # for dependence libraries. The import file would start with
21601 # the line `#! .'. This would cause the generated library to
21602 # depend on `.', always an invalid library. This was fixed in
21603 # development snapshots of GCC prior to 3.0.
21604 case $host_os in
21605 aix4 | aix4.[01] | aix4.[01].*)
21606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21607 echo ' yes '
21608 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21609 :
21610 else
21611 can_build_shared=no
21612 fi
21613 ;;
21614 esac
21615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21616 # soname into executable. Probably we can add versioning support to
21617 # collect2, so additional links can be useful in future.
21618 if test "$aix_use_runtimelinking" = yes; then
21619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21620 # instead of lib<name>.a to let people know that these are not
21621 # typical AIX shared libraries.
21622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21623 else
21624 # We preserve .a as extension for shared libraries through AIX4.2
21625 # and later when we are not doing run time linking.
21626 library_names_spec='${libname}${release}.a $libname.a'
21627 soname_spec='${libname}${release}${shared_ext}$major'
21628 fi
21629 shlibpath_var=LIBPATH
21630 fi
21631 ;;
21632
21633 amigaos*)
21634 case $host_cpu in
21635 powerpc)
21636 # Since July 2007 AmigaOS4 officially supports .so libraries.
21637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21639 ;;
21640 m68k)
21641 library_names_spec='$libname.ixlibrary $libname.a'
21642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21643 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'
21644 ;;
21645 esac
21646 ;;
21647
21648 beos*)
21649 library_names_spec='${libname}${shared_ext}'
21650 dynamic_linker="$host_os ld.so"
21651 shlibpath_var=LIBRARY_PATH
21652 ;;
21653
21654 bsdi[45]*)
21655 version_type=linux
21656 need_version=no
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec='${libname}${release}${shared_ext}$major'
21659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21660 shlibpath_var=LD_LIBRARY_PATH
21661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21663 # the default ld.so.conf also contains /usr/contrib/lib and
21664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21665 # libtool to hard-code these into programs
21666 ;;
21667
21668 cygwin* | mingw* | pw32* | cegcc*)
21669 version_type=windows
21670 shrext_cmds=".dll"
21671 need_version=no
21672 need_lib_prefix=no
21673
21674 case $GCC,$host_os in
21675 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21676 library_names_spec='$libname.dll.a'
21677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21678 postinstall_cmds='base_file=`basename \${file}`~
21679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21680 dldir=$destdir/`dirname \$dlpath`~
21681 test -d \$dldir || mkdir -p \$dldir~
21682 $install_prog $dir/$dlname \$dldir/$dlname~
21683 chmod a+x \$dldir/$dlname~
21684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21686 fi'
21687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21688 dlpath=$dir/\$dldll~
21689 $RM \$dlpath'
21690 shlibpath_overrides_runpath=yes
21691
21692 case $host_os in
21693 cygwin*)
21694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21696
21697 ;;
21698 mingw* | cegcc*)
21699 # MinGW DLLs use traditional 'lib' prefix
21700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21701 ;;
21702 pw32*)
21703 # pw32 DLLs use 'pw' prefix rather than 'lib'
21704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21705 ;;
21706 esac
21707 ;;
21708
21709 *)
21710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21711 ;;
21712 esac
21713 dynamic_linker='Win32 ld.exe'
21714 # FIXME: first we should search . and the directory the executable is in
21715 shlibpath_var=PATH
21716 ;;
21717
21718 darwin* | rhapsody*)
21719 dynamic_linker="$host_os dyld"
21720 version_type=darwin
21721 need_lib_prefix=no
21722 need_version=no
21723 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21724 soname_spec='${libname}${release}${major}$shared_ext'
21725 shlibpath_overrides_runpath=yes
21726 shlibpath_var=DYLD_LIBRARY_PATH
21727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21728
21729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21730 ;;
21731
21732 dgux*)
21733 version_type=linux
21734 need_lib_prefix=no
21735 need_version=no
21736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21737 soname_spec='${libname}${release}${shared_ext}$major'
21738 shlibpath_var=LD_LIBRARY_PATH
21739 ;;
21740
21741 freebsd* | dragonfly*)
21742 # DragonFly does not have aout. When/if they implement a new
21743 # versioning mechanism, adjust this.
21744 if test -x /usr/bin/objformat; then
21745 objformat=`/usr/bin/objformat`
21746 else
21747 case $host_os in
21748 freebsd[23].*) objformat=aout ;;
21749 *) objformat=elf ;;
21750 esac
21751 fi
21752 version_type=freebsd-$objformat
21753 case $version_type in
21754 freebsd-elf*)
21755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21756 need_version=no
21757 need_lib_prefix=no
21758 ;;
21759 freebsd-*)
21760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21761 need_version=yes
21762 ;;
21763 esac
21764 shlibpath_var=LD_LIBRARY_PATH
21765 case $host_os in
21766 freebsd2.*)
21767 shlibpath_overrides_runpath=yes
21768 ;;
21769 freebsd3.[01]* | freebsdelf3.[01]*)
21770 shlibpath_overrides_runpath=yes
21771 hardcode_into_libs=yes
21772 ;;
21773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21775 shlibpath_overrides_runpath=no
21776 hardcode_into_libs=yes
21777 ;;
21778 *) # from 4.6 on, and DragonFly
21779 shlibpath_overrides_runpath=yes
21780 hardcode_into_libs=yes
21781 ;;
21782 esac
21783 ;;
21784
21785 gnu*)
21786 version_type=linux
21787 need_lib_prefix=no
21788 need_version=no
21789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21790 soname_spec='${libname}${release}${shared_ext}$major'
21791 shlibpath_var=LD_LIBRARY_PATH
21792 hardcode_into_libs=yes
21793 ;;
21794
21795 haiku*)
21796 version_type=linux
21797 need_lib_prefix=no
21798 need_version=no
21799 dynamic_linker="$host_os runtime_loader"
21800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21801 soname_spec='${libname}${release}${shared_ext}$major'
21802 shlibpath_var=LIBRARY_PATH
21803 shlibpath_overrides_runpath=yes
21804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21805 hardcode_into_libs=yes
21806 ;;
21807
21808 hpux9* | hpux10* | hpux11*)
21809 # Give a soname corresponding to the major version so that dld.sl refuses to
21810 # link against other versions.
21811 version_type=sunos
21812 need_lib_prefix=no
21813 need_version=no
21814 case $host_cpu in
21815 ia64*)
21816 shrext_cmds='.so'
21817 hardcode_into_libs=yes
21818 dynamic_linker="$host_os dld.so"
21819 shlibpath_var=LD_LIBRARY_PATH
21820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21822 soname_spec='${libname}${release}${shared_ext}$major'
21823 if test "X$HPUX_IA64_MODE" = X32; then
21824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21825 else
21826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21827 fi
21828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21829 ;;
21830 hppa*64*)
21831 shrext_cmds='.sl'
21832 hardcode_into_libs=yes
21833 dynamic_linker="$host_os dld.sl"
21834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21837 soname_spec='${libname}${release}${shared_ext}$major'
21838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21840 ;;
21841 *)
21842 shrext_cmds='.sl'
21843 dynamic_linker="$host_os dld.sl"
21844 shlibpath_var=SHLIB_PATH
21845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21847 soname_spec='${libname}${release}${shared_ext}$major'
21848 ;;
21849 esac
21850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21851 postinstall_cmds='chmod 555 $lib'
21852 # or fails outright, so override atomically:
21853 install_override_mode=555
21854 ;;
21855
21856 interix[3-9]*)
21857 version_type=linux
21858 need_lib_prefix=no
21859 need_version=no
21860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec='${libname}${release}${shared_ext}$major'
21862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21863 shlibpath_var=LD_LIBRARY_PATH
21864 shlibpath_overrides_runpath=no
21865 hardcode_into_libs=yes
21866 ;;
21867
21868 irix5* | irix6* | nonstopux*)
21869 case $host_os in
21870 nonstopux*) version_type=nonstopux ;;
21871 *)
21872 if test "$lt_cv_prog_gnu_ld" = yes; then
21873 version_type=linux
21874 else
21875 version_type=irix
21876 fi ;;
21877 esac
21878 need_lib_prefix=no
21879 need_version=no
21880 soname_spec='${libname}${release}${shared_ext}$major'
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21882 case $host_os in
21883 irix5* | nonstopux*)
21884 libsuff= shlibsuff=
21885 ;;
21886 *)
21887 case $LD in # libtool.m4 will add one of these switches to LD
21888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21889 libsuff= shlibsuff= libmagic=32-bit;;
21890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21891 libsuff=32 shlibsuff=N32 libmagic=N32;;
21892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21894 *) libsuff= shlibsuff= libmagic=never-match;;
21895 esac
21896 ;;
21897 esac
21898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21899 shlibpath_overrides_runpath=no
21900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21902 hardcode_into_libs=yes
21903 ;;
21904
21905 # No shared lib support for Linux oldld, aout, or coff.
21906 linux*oldld* | linux*aout* | linux*coff*)
21907 dynamic_linker=no
21908 ;;
21909
21910 # This must be Linux ELF.
21911
21912 # uclinux* changes (here and below) have been submitted to the libtool
21913 # project, but have not yet been accepted: they are GCC-local changes
21914 # for the time being. (See
21915 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21916 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21917 version_type=linux
21918 need_lib_prefix=no
21919 need_version=no
21920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921 soname_spec='${libname}${release}${shared_ext}$major'
21922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21923 shlibpath_var=LD_LIBRARY_PATH
21924 shlibpath_overrides_runpath=no
21925
21926 # Some binutils ld are patched to set DT_RUNPATH
21927 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21928 $as_echo_n "(cached) " >&6
21929 else
21930 lt_cv_shlibpath_overrides_runpath=no
21931 save_LDFLAGS=$LDFLAGS
21932 save_libdir=$libdir
21933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21937
21938 int
21939 main ()
21940 {
21941
21942 ;
21943 return 0;
21944 }
21945 _ACEOF
21946 if ac_fn_cxx_try_link "$LINENO"; then :
21947 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21948 lt_cv_shlibpath_overrides_runpath=yes
21949 fi
21950 fi
21951 rm -f core conftest.err conftest.$ac_objext \
21952 conftest$ac_exeext conftest.$ac_ext
21953 LDFLAGS=$save_LDFLAGS
21954 libdir=$save_libdir
21955
21956 fi
21957
21958 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21959
21960 # This implies no fast_install, which is unacceptable.
21961 # Some rework will be needed to allow for fast_install
21962 # before this can be enabled.
21963 hardcode_into_libs=yes
21964
21965 # Append ld.so.conf contents to the search path
21966 if test -f /etc/ld.so.conf; then
21967 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' ' '`
21968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21969 fi
21970
21971 # We used to test for /lib/ld.so.1 and disable shared libraries on
21972 # powerpc, because MkLinux only supported shared libraries with the
21973 # GNU dynamic linker. Since this was broken with cross compilers,
21974 # most powerpc-linux boxes support dynamic linking these days and
21975 # people can always --disable-shared, the test was removed, and we
21976 # assume the GNU/Linux dynamic linker is in use.
21977 dynamic_linker='GNU/Linux ld.so'
21978 ;;
21979
21980 netbsd*)
21981 version_type=sunos
21982 need_lib_prefix=no
21983 need_version=no
21984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21987 dynamic_linker='NetBSD (a.out) ld.so'
21988 else
21989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21990 soname_spec='${libname}${release}${shared_ext}$major'
21991 dynamic_linker='NetBSD ld.elf_so'
21992 fi
21993 shlibpath_var=LD_LIBRARY_PATH
21994 shlibpath_overrides_runpath=yes
21995 hardcode_into_libs=yes
21996 ;;
21997
21998 newsos6)
21999 version_type=linux
22000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22001 shlibpath_var=LD_LIBRARY_PATH
22002 shlibpath_overrides_runpath=yes
22003 ;;
22004
22005 *nto* | *qnx*)
22006 version_type=qnx
22007 need_lib_prefix=no
22008 need_version=no
22009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22010 soname_spec='${libname}${release}${shared_ext}$major'
22011 shlibpath_var=LD_LIBRARY_PATH
22012 shlibpath_overrides_runpath=no
22013 hardcode_into_libs=yes
22014 dynamic_linker='ldqnx.so'
22015 ;;
22016
22017 openbsd*)
22018 version_type=sunos
22019 sys_lib_dlsearch_path_spec="/usr/lib"
22020 need_lib_prefix=no
22021 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22022 case $host_os in
22023 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22024 *) need_version=no ;;
22025 esac
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22028 shlibpath_var=LD_LIBRARY_PATH
22029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22030 case $host_os in
22031 openbsd2.[89] | openbsd2.[89].*)
22032 shlibpath_overrides_runpath=no
22033 ;;
22034 *)
22035 shlibpath_overrides_runpath=yes
22036 ;;
22037 esac
22038 else
22039 shlibpath_overrides_runpath=yes
22040 fi
22041 ;;
22042
22043 os2*)
22044 libname_spec='$name'
22045 shrext_cmds=".dll"
22046 need_lib_prefix=no
22047 library_names_spec='$libname${shared_ext} $libname.a'
22048 dynamic_linker='OS/2 ld.exe'
22049 shlibpath_var=LIBPATH
22050 ;;
22051
22052 osf3* | osf4* | osf5*)
22053 version_type=osf
22054 need_lib_prefix=no
22055 need_version=no
22056 soname_spec='${libname}${release}${shared_ext}$major'
22057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22058 shlibpath_var=LD_LIBRARY_PATH
22059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22061 ;;
22062
22063 rdos*)
22064 dynamic_linker=no
22065 ;;
22066
22067 solaris*)
22068 version_type=linux
22069 need_lib_prefix=no
22070 need_version=no
22071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22072 soname_spec='${libname}${release}${shared_ext}$major'
22073 shlibpath_var=LD_LIBRARY_PATH
22074 shlibpath_overrides_runpath=yes
22075 hardcode_into_libs=yes
22076 # ldd complains unless libraries are executable
22077 postinstall_cmds='chmod +x $lib'
22078 ;;
22079
22080 sunos4*)
22081 version_type=sunos
22082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22084 shlibpath_var=LD_LIBRARY_PATH
22085 shlibpath_overrides_runpath=yes
22086 if test "$with_gnu_ld" = yes; then
22087 need_lib_prefix=no
22088 fi
22089 need_version=yes
22090 ;;
22091
22092 sysv4 | sysv4.3*)
22093 version_type=linux
22094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095 soname_spec='${libname}${release}${shared_ext}$major'
22096 shlibpath_var=LD_LIBRARY_PATH
22097 case $host_vendor in
22098 sni)
22099 shlibpath_overrides_runpath=no
22100 need_lib_prefix=no
22101 runpath_var=LD_RUN_PATH
22102 ;;
22103 siemens)
22104 need_lib_prefix=no
22105 ;;
22106 motorola)
22107 need_lib_prefix=no
22108 need_version=no
22109 shlibpath_overrides_runpath=no
22110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22111 ;;
22112 esac
22113 ;;
22114
22115 sysv4*MP*)
22116 if test -d /usr/nec ;then
22117 version_type=linux
22118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22119 soname_spec='$libname${shared_ext}.$major'
22120 shlibpath_var=LD_LIBRARY_PATH
22121 fi
22122 ;;
22123
22124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22125 version_type=freebsd-elf
22126 need_lib_prefix=no
22127 need_version=no
22128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22129 soname_spec='${libname}${release}${shared_ext}$major'
22130 shlibpath_var=LD_LIBRARY_PATH
22131 shlibpath_overrides_runpath=yes
22132 hardcode_into_libs=yes
22133 if test "$with_gnu_ld" = yes; then
22134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22135 else
22136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22137 case $host_os in
22138 sco3.2v5*)
22139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22140 ;;
22141 esac
22142 fi
22143 sys_lib_dlsearch_path_spec='/usr/lib'
22144 ;;
22145
22146 tpf*)
22147 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22148 version_type=linux
22149 need_lib_prefix=no
22150 need_version=no
22151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22152 shlibpath_var=LD_LIBRARY_PATH
22153 shlibpath_overrides_runpath=no
22154 hardcode_into_libs=yes
22155 ;;
22156
22157 uts4*)
22158 version_type=linux
22159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22160 soname_spec='${libname}${release}${shared_ext}$major'
22161 shlibpath_var=LD_LIBRARY_PATH
22162 ;;
22163
22164 *)
22165 dynamic_linker=no
22166 ;;
22167 esac
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22169 $as_echo "$dynamic_linker" >&6; }
22170 test "$dynamic_linker" = no && can_build_shared=no
22171
22172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22173 if test "$GCC" = yes; then
22174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22175 fi
22176
22177 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22178 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22179 fi
22180 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22181 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22182 fi
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22223 hardcode_action_CXX=
22224 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22225 test -n "$runpath_var_CXX" ||
22226 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22227
22228 # We can hardcode non-existent directories.
22229 if test "$hardcode_direct_CXX" != no &&
22230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22231 # have to relink, otherwise we might link with an installed library
22232 # when we should be linking with a yet-to-be-installed one
22233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22234 test "$hardcode_minus_L_CXX" != no; then
22235 # Linking always hardcodes the temporary library directory.
22236 hardcode_action_CXX=relink
22237 else
22238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22239 hardcode_action_CXX=immediate
22240 fi
22241 else
22242 # We cannot hardcode anything, or else we can only hardcode existing
22243 # directories.
22244 hardcode_action_CXX=unsupported
22245 fi
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22247 $as_echo "$hardcode_action_CXX" >&6; }
22248
22249 if test "$hardcode_action_CXX" = relink ||
22250 test "$inherit_rpath_CXX" = yes; then
22251 # Fast installation is not supported
22252 enable_fast_install=no
22253 elif test "$shlibpath_overrides_runpath" = yes ||
22254 test "$enable_shared" = no; then
22255 # Fast installation is not necessary
22256 enable_fast_install=needless
22257 fi
22258
22259
22260
22261
22262
22263
22264
22265 fi # test -n "$compiler"
22266
22267 CC=$lt_save_CC
22268 LDCXX=$LD
22269 LD=$lt_save_LD
22270 GCC=$lt_save_GCC
22271 with_gnu_ld=$lt_save_with_gnu_ld
22272 lt_cv_path_LDCXX=$lt_cv_path_LD
22273 lt_cv_path_LD=$lt_save_path_LD
22274 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22275 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22276 fi # test "$_lt_caught_CXX_error" != yes
22277
22278 ac_ext=cpp
22279 ac_cpp='$CXXCPP $CPPFLAGS'
22280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299 # Only expand once:
22300
22301
22302
22303
22304
22305 # Identify the assembler which will work hand-in-glove with the newly
22306 # built GCC, so that we can examine its features. This is the assembler
22307 # which will be driven by the driver program.
22308 #
22309 # If build != host, and we aren't building gas in-tree, we identify a
22310 # build->target assembler and hope that it will have the same features
22311 # as the host->target assembler we'll be using.
22312 gcc_cv_gas_major_version=
22313 gcc_cv_gas_minor_version=
22314 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22315
22316 if ${gcc_cv_as+:} false; then :
22317
22318 else
22319
22320 if test -x "$DEFAULT_ASSEMBLER"; then
22321 gcc_cv_as="$DEFAULT_ASSEMBLER"
22322 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22323 && test -f ../gas/Makefile \
22324 && test x$build = x$host; then
22325 gcc_cv_as=../gas/as-new$build_exeext
22326 elif test -x as$build_exeext; then
22327 # Build using assembler in the current directory.
22328 gcc_cv_as=./as$build_exeext
22329 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22330 gcc_cv_as="$AS_FOR_TARGET"
22331 else
22332 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22333 set dummy $AS_FOR_TARGET; ac_word=$2
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22335 $as_echo_n "checking for $ac_word... " >&6; }
22336 if ${ac_cv_path_gcc_cv_as+:} false; then :
22337 $as_echo_n "(cached) " >&6
22338 else
22339 case $gcc_cv_as in
22340 [\\/]* | ?:[\\/]*)
22341 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22342 ;;
22343 *)
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22346 do
22347 IFS=$as_save_IFS
22348 test -z "$as_dir" && as_dir=.
22349 for ac_exec_ext in '' $ac_executable_extensions; do
22350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22351 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22353 break 2
22354 fi
22355 done
22356 done
22357 IFS=$as_save_IFS
22358
22359 ;;
22360 esac
22361 fi
22362 gcc_cv_as=$ac_cv_path_gcc_cv_as
22363 if test -n "$gcc_cv_as"; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22365 $as_echo "$gcc_cv_as" >&6; }
22366 else
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22369 fi
22370
22371
22372 fi
22373 fi
22374
22375 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22376
22377 case "$ORIGINAL_AS_FOR_TARGET" in
22378 ./as | ./as$build_exeext) ;;
22379 *) ac_config_files="$ac_config_files as:exec-tool.in"
22380 ;;
22381 esac
22382
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22384 $as_echo_n "checking what assembler to use... " >&6; }
22385 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22386 # Single tree build which includes gas. We want to prefer it
22387 # over whatever linker top-level may have detected, since
22388 # we'll use what we're building after installation anyway.
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22390 $as_echo "newly built gas" >&6; }
22391 in_tree_gas=yes
22392 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22393 for f in $gcc_cv_as_bfd_srcdir/configure \
22394 $gcc_cv_as_gas_srcdir/configure \
22395 $gcc_cv_as_gas_srcdir/configure.ac \
22396 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22397 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22398 if test x$gcc_cv_gas_version != x; then
22399 break
22400 fi
22401 done
22402 case $gcc_cv_gas_version in
22403 VERSION=[0-9]*) ;;
22404 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22405 esac
22406 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22407 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22408 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22409 case $gcc_cv_gas_patch_version in
22410 "") gcc_cv_gas_patch_version="0" ;;
22411 esac
22412 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22413 + $gcc_cv_gas_minor_version \) \* 1000 \
22414 + $gcc_cv_gas_patch_version`
22415
22416 in_tree_gas_is_elf=no
22417 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22418 || (grep 'obj_format = multi' ../gas/Makefile \
22419 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22420 then
22421 in_tree_gas_is_elf=yes
22422 fi
22423 else
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22425 $as_echo "$gcc_cv_as" >&6; }
22426 in_tree_gas=no
22427 fi
22428
22429 default_ld=
22430 # Check whether --enable-ld was given.
22431 if test "${enable_ld+set}" = set; then :
22432 enableval=$enable_ld; case "${enableval}" in
22433 no)
22434 default_ld=ld.gold
22435 ;;
22436 esac
22437 fi
22438
22439
22440 install_gold_as_default=no
22441 # Check whether --enable-gold was given.
22442 if test "${enable_gold+set}" = set; then :
22443 enableval=$enable_gold; case "${enableval}" in
22444 default)
22445 install_gold_as_default=yes
22446 ;;
22447 yes)
22448 if test x${default_ld} != x; then
22449 install_gold_as_default=yes
22450 fi
22451 ;;
22452 no)
22453 ;;
22454 *)
22455 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22456 ;;
22457 esac
22458 fi
22459
22460
22461 # Identify the linker which will work hand-in-glove with the newly
22462 # built GCC, so that we can examine its features. This is the linker
22463 # which will be driven by the driver program.
22464 #
22465 # If build != host, and we aren't building gas in-tree, we identify a
22466 # build->target linker and hope that it will have the same features
22467 # as the host->target linker we'll be using.
22468 gcc_cv_gld_major_version=
22469 gcc_cv_gld_minor_version=
22470 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22471 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22472 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22473
22474 if ${gcc_cv_ld+:} false; then :
22475
22476 else
22477
22478 if test -x "$DEFAULT_LINKER"; then
22479 gcc_cv_ld="$DEFAULT_LINKER"
22480 elif test $install_gold_as_default = yes \
22481 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22482 && test -f ../gold/Makefile \
22483 && test x$build = x$host; then
22484 gcc_cv_ld=../gold/ld-new$build_exeext
22485 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22486 && test -f ../ld/Makefile \
22487 && test x$build = x$host; then
22488 gcc_cv_ld=../ld/ld-new$build_exeext
22489 elif test -x collect-ld$build_exeext; then
22490 # Build using linker in the current directory.
22491 gcc_cv_ld=./collect-ld$build_exeext
22492 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22493 gcc_cv_ld="$LD_FOR_TARGET"
22494 else
22495 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22496 set dummy $LD_FOR_TARGET; ac_word=$2
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22498 $as_echo_n "checking for $ac_word... " >&6; }
22499 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22500 $as_echo_n "(cached) " >&6
22501 else
22502 case $gcc_cv_ld in
22503 [\\/]* | ?:[\\/]*)
22504 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22505 ;;
22506 *)
22507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22508 for as_dir in $PATH
22509 do
22510 IFS=$as_save_IFS
22511 test -z "$as_dir" && as_dir=.
22512 for ac_exec_ext in '' $ac_executable_extensions; do
22513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22514 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22516 break 2
22517 fi
22518 done
22519 done
22520 IFS=$as_save_IFS
22521
22522 ;;
22523 esac
22524 fi
22525 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22526 if test -n "$gcc_cv_ld"; then
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22528 $as_echo "$gcc_cv_ld" >&6; }
22529 else
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22531 $as_echo "no" >&6; }
22532 fi
22533
22534
22535 fi
22536 fi
22537
22538 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22539 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22540 # if the PLUGIN_LD is set ld-new, just have it as ld
22541 # as that is the installed named.
22542 if test x$PLUGIN_LD_SUFFIX = xld-new \
22543 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22544 PLUGIN_LD_SUFFIX=ld
22545 fi
22546
22547 # Check whether --with-plugin-ld was given.
22548 if test "${with_plugin_ld+set}" = set; then :
22549 withval=$with_plugin_ld; if test x"$withval" != x; then
22550 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22551 PLUGIN_LD_SUFFIX="$withval"
22552 fi
22553 fi
22554
22555
22556
22557 cat >>confdefs.h <<_ACEOF
22558 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22559 _ACEOF
22560
22561
22562 # Check to see if we are using gold instead of ld
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22564 $as_echo_n "checking whether we are using gold... " >&6; }
22565 ld_is_gold=no
22566 if test x$gcc_cv_ld != x; then
22567 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22568 | grep "GNU gold" > /dev/null; then
22569 ld_is_gold=yes
22570 fi
22571 fi
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22573 $as_echo "$ld_is_gold" >&6; }
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22576 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22577 # Check to see if default ld is not gold, but gold is
22578 # available and has support for split stack. If gcc was configured
22579 # with gold then no checking is done.
22580 #
22581 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22582
22583 # For platforms other than powerpc64*, enable as appropriate.
22584
22585 gold_non_default=no
22586 ld_gold=`which ${gcc_cv_ld}.gold`
22587 # Make sure this gold has minimal split stack support
22588 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22589 ld_vers=`$ld_gold --version | sed 1q`
22590 gold_vers=`echo $ld_vers | sed -n \
22591 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22592 case $target in
22593 # check that the gold version contains the complete split stack support
22594 # on powerpc64 big and little endian
22595 powerpc64*-*-*)
22596 case "$gold_vers" in
22597 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22598 ;;
22599 *) gold_non_default=no
22600 ;;
22601 esac
22602 ;;
22603 esac
22604 fi
22605 if test $gold_non_default = yes; then
22606
22607 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22608
22609 fi
22610 fi
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22612 $as_echo "$gold_non_default" >&6; }
22613
22614 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22615
22616 case "$ORIGINAL_LD_FOR_TARGET" in
22617 ./collect-ld | ./collect-ld$build_exeext) ;;
22618 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22619 ;;
22620 esac
22621
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22623 $as_echo_n "checking what linker to use... " >&6; }
22624 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22625 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22626 # Single tree build which includes ld. We want to prefer it
22627 # over whatever linker top-level may have detected, since
22628 # we'll use what we're building after installation anyway.
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22630 $as_echo "newly built ld" >&6; }
22631 in_tree_ld=yes
22632 in_tree_ld_is_elf=no
22633 if (grep 'EMUL = .*elf' ../ld/Makefile \
22634 || grep 'EMUL = .*linux' ../ld/Makefile \
22635 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22636 in_tree_ld_is_elf=yes
22637 elif test "$ld_is_gold" = yes; then
22638 in_tree_ld_is_elf=yes
22639 fi
22640 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
22641 do
22642 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22643 if test x$gcc_cv_gld_version != x; then
22644 break
22645 fi
22646 done
22647 case $gcc_cv_gld_version in
22648 VERSION=[0-9]*) ;;
22649 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22650 esac
22651 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22652 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22653 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22654 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22655 else
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22657 $as_echo "$gcc_cv_ld" >&6; }
22658 in_tree_ld=no
22659 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22660 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22661 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22662 fi
22663
22664
22665
22666
22667 # Figure out what nm we will be using.
22668 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22669 if ${gcc_cv_nm+:} false; then :
22670
22671 else
22672
22673 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22674 && test -f ../binutils/Makefile \
22675 && test x$build = x$host; then
22676 gcc_cv_nm=../binutils/nm-new$build_exeext
22677 elif test -x nm$build_exeext; then
22678 gcc_cv_nm=./nm$build_exeext
22679 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22680 gcc_cv_nm="$NM_FOR_TARGET"
22681 else
22682 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22683 set dummy $NM_FOR_TARGET; ac_word=$2
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22685 $as_echo_n "checking for $ac_word... " >&6; }
22686 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22687 $as_echo_n "(cached) " >&6
22688 else
22689 case $gcc_cv_nm in
22690 [\\/]* | ?:[\\/]*)
22691 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22692 ;;
22693 *)
22694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 for as_dir in $PATH
22696 do
22697 IFS=$as_save_IFS
22698 test -z "$as_dir" && as_dir=.
22699 for ac_exec_ext in '' $ac_executable_extensions; do
22700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22701 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22703 break 2
22704 fi
22705 done
22706 done
22707 IFS=$as_save_IFS
22708
22709 ;;
22710 esac
22711 fi
22712 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22713 if test -n "$gcc_cv_nm"; then
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22715 $as_echo "$gcc_cv_nm" >&6; }
22716 else
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22718 $as_echo "no" >&6; }
22719 fi
22720
22721
22722 fi
22723 fi
22724
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22726 $as_echo_n "checking what nm to use... " >&6; }
22727 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22728 # Single tree build which includes binutils.
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22730 $as_echo "newly built nm" >&6; }
22731 in_tree_nm=yes
22732 else
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22734 $as_echo "$gcc_cv_nm" >&6; }
22735 in_tree_nm=no
22736 fi
22737
22738 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22739
22740 case "$ORIGINAL_NM_FOR_TARGET" in
22741 ./nm | ./nm$build_exeext) ;;
22742 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22743 ;;
22744 esac
22745
22746
22747 # Figure out what objdump we will be using.
22748 if ${gcc_cv_objdump+:} false; then :
22749
22750 else
22751
22752 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22753 && test -f ../binutils/Makefile \
22754 && test x$build = x$host; then
22755 # Single tree build which includes binutils.
22756 gcc_cv_objdump=../binutils/objdump$build_exeext
22757 elif test -x objdump$build_exeext; then
22758 gcc_cv_objdump=./objdump$build_exeext
22759 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22760 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22761 else
22762 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22763 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22765 $as_echo_n "checking for $ac_word... " >&6; }
22766 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22767 $as_echo_n "(cached) " >&6
22768 else
22769 case $gcc_cv_objdump in
22770 [\\/]* | ?:[\\/]*)
22771 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22772 ;;
22773 *)
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 for as_dir in $PATH
22776 do
22777 IFS=$as_save_IFS
22778 test -z "$as_dir" && as_dir=.
22779 for ac_exec_ext in '' $ac_executable_extensions; do
22780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22781 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22783 break 2
22784 fi
22785 done
22786 done
22787 IFS=$as_save_IFS
22788
22789 ;;
22790 esac
22791 fi
22792 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22793 if test -n "$gcc_cv_objdump"; then
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22795 $as_echo "$gcc_cv_objdump" >&6; }
22796 else
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22798 $as_echo "no" >&6; }
22799 fi
22800
22801
22802 fi
22803 fi
22804
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22806 $as_echo_n "checking what objdump to use... " >&6; }
22807 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22808 # Single tree build which includes binutils.
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22810 $as_echo "newly built objdump" >&6; }
22811 elif test x$gcc_cv_objdump = x; then
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22813 $as_echo "not found" >&6; }
22814 else
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22816 $as_echo "$gcc_cv_objdump" >&6; }
22817 fi
22818
22819 # Figure out what readelf we will be using.
22820 if ${gcc_cv_readelf+:} false; then :
22821
22822 else
22823
22824 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22825 && test -f ../binutils/Makefile \
22826 && test x$build = x$host; then
22827 # Single tree build which includes binutils.
22828 gcc_cv_readelf=../binutils/readelf$build_exeext
22829 elif test -x readelf$build_exeext; then
22830 gcc_cv_readelf=./readelf$build_exeext
22831 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22832 gcc_cv_readelf="$READELF_FOR_TARGET"
22833 else
22834 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22835 set dummy $READELF_FOR_TARGET; ac_word=$2
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22837 $as_echo_n "checking for $ac_word... " >&6; }
22838 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22839 $as_echo_n "(cached) " >&6
22840 else
22841 case $gcc_cv_readelf in
22842 [\\/]* | ?:[\\/]*)
22843 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22844 ;;
22845 *)
22846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22847 for as_dir in $PATH
22848 do
22849 IFS=$as_save_IFS
22850 test -z "$as_dir" && as_dir=.
22851 for ac_exec_ext in '' $ac_executable_extensions; do
22852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22853 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22855 break 2
22856 fi
22857 done
22858 done
22859 IFS=$as_save_IFS
22860
22861 ;;
22862 esac
22863 fi
22864 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22865 if test -n "$gcc_cv_readelf"; then
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22867 $as_echo "$gcc_cv_readelf" >&6; }
22868 else
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22871 fi
22872
22873
22874 fi
22875 fi
22876
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22878 $as_echo_n "checking what readelf to use... " >&6; }
22879 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22880 # Single tree build which includes binutils.
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22882 $as_echo "newly built readelf" >&6; }
22883 elif test x$gcc_cv_readelf = x; then
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22885 $as_echo "not found" >&6; }
22886 else
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22888 $as_echo "$gcc_cv_readelf" >&6; }
22889 fi
22890
22891 # Figure out what otool we will be using.
22892 if ${gcc_cv_otool+:} false; then :
22893
22894 else
22895
22896 if test -x otool$build_exeext; then
22897 gcc_cv_otool=./otool$build_exeext
22898 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22899 gcc_cv_otool="$OTOOL_FOR_TARGET"
22900 else
22901 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22902 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22904 $as_echo_n "checking for $ac_word... " >&6; }
22905 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908 case $gcc_cv_otool in
22909 [\\/]* | ?:[\\/]*)
22910 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22911 ;;
22912 *)
22913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22914 for as_dir in $PATH
22915 do
22916 IFS=$as_save_IFS
22917 test -z "$as_dir" && as_dir=.
22918 for ac_exec_ext in '' $ac_executable_extensions; do
22919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22920 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22922 break 2
22923 fi
22924 done
22925 done
22926 IFS=$as_save_IFS
22927
22928 ;;
22929 esac
22930 fi
22931 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22932 if test -n "$gcc_cv_otool"; then
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22934 $as_echo "$gcc_cv_otool" >&6; }
22935 else
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937 $as_echo "no" >&6; }
22938 fi
22939
22940
22941 fi
22942 fi
22943
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22945 $as_echo_n "checking what otool to use... " >&6; }
22946 if test x$gcc_cv_otool = x; then
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22948 $as_echo "not found" >&6; }
22949 else
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22951 $as_echo "$gcc_cv_otool" >&6; }
22952 fi
22953
22954 # Figure out what assembler alignment features are present.
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22956 $as_echo_n "checking assembler flags... " >&6; }
22957 if ${gcc_cv_as_flags+:} false; then :
22958 $as_echo_n "(cached) " >&6
22959 else
22960 case "$target" in
22961 i[34567]86-*-linux*)
22962 gcc_cv_as_flags=--32
22963 ;;
22964 x86_64-*-linux-gnux32)
22965 gcc_cv_as_flags=--x32
22966 ;;
22967 x86_64-*-linux*)
22968 gcc_cv_as_flags=--64
22969 ;;
22970 powerpc*-*-darwin*)
22971 gcc_cv_as_flags="-arch ppc"
22972 ;;
22973 *)
22974 gcc_cv_as_flags=" "
22975 ;;
22976 esac
22977 fi
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22979 $as_echo "$gcc_cv_as_flags" >&6; }
22980
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22982 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22983 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22984 $as_echo_n "(cached) " >&6
22985 else
22986 gcc_cv_as_balign_and_p2align=no
22987 if test $in_tree_gas = yes; then
22988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22989 then gcc_cv_as_balign_and_p2align=yes
22990 fi
22991 elif test x$gcc_cv_as != x; then
22992 $as_echo '.balign 4
22993 .p2align 2' > conftest.s
22994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }; }
23000 then
23001 gcc_cv_as_balign_and_p2align=yes
23002 else
23003 echo "configure: failed program was" >&5
23004 cat conftest.s >&5
23005 fi
23006 rm -f conftest.o conftest.s
23007 fi
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23010 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23011 if test $gcc_cv_as_balign_and_p2align = yes; then
23012
23013 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23014
23015 fi
23016
23017
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23019 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23020 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 gcc_cv_as_max_skip_p2align=no
23024 if test $in_tree_gas = yes; then
23025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23026 then gcc_cv_as_max_skip_p2align=yes
23027 fi
23028 elif test x$gcc_cv_as != x; then
23029 $as_echo '.p2align 4,,7' > conftest.s
23030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23035 test $ac_status = 0; }; }
23036 then
23037 gcc_cv_as_max_skip_p2align=yes
23038 else
23039 echo "configure: failed program was" >&5
23040 cat conftest.s >&5
23041 fi
23042 rm -f conftest.o conftest.s
23043 fi
23044 fi
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23046 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23047 if test $gcc_cv_as_max_skip_p2align = yes; then
23048
23049 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23050
23051 fi
23052
23053
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23055 $as_echo_n "checking assembler for .literal16... " >&6; }
23056 if ${gcc_cv_as_literal16+:} false; then :
23057 $as_echo_n "(cached) " >&6
23058 else
23059 gcc_cv_as_literal16=no
23060 if test $in_tree_gas = yes; then
23061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23062 then gcc_cv_as_literal16=yes
23063 fi
23064 elif test x$gcc_cv_as != x; then
23065 $as_echo '.literal16' > conftest.s
23066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23071 test $ac_status = 0; }; }
23072 then
23073 gcc_cv_as_literal16=yes
23074 else
23075 echo "configure: failed program was" >&5
23076 cat conftest.s >&5
23077 fi
23078 rm -f conftest.o conftest.s
23079 fi
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23082 $as_echo "$gcc_cv_as_literal16" >&6; }
23083 if test $gcc_cv_as_literal16 = yes; then
23084
23085 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23086
23087 fi
23088
23089
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23091 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23092 if ${gcc_cv_as_subsection_m1+:} false; then :
23093 $as_echo_n "(cached) " >&6
23094 else
23095 gcc_cv_as_subsection_m1=no
23096 if test $in_tree_gas = yes; then
23097 if test $in_tree_gas_is_elf = yes \
23098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23099 then gcc_cv_as_subsection_m1=yes
23100 fi
23101 elif test x$gcc_cv_as != x; then
23102 $as_echo 'conftest_label1: .word 0
23103 .subsection -1
23104 conftest_label2: .word 0
23105 .previous' > conftest.s
23106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }
23112 then
23113 if test x$gcc_cv_nm != x; then
23114 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23115 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23116 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23117 then :
23118 else gcc_cv_as_subsection_m1=yes
23119 fi
23120 rm -f conftest.nm1 conftest.nm2
23121 fi
23122 else
23123 echo "configure: failed program was" >&5
23124 cat conftest.s >&5
23125 fi
23126 rm -f conftest.o conftest.s
23127 fi
23128 fi
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23130 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23131 if test $gcc_cv_as_subsection_m1 = yes; then
23132
23133 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23134
23135 fi
23136
23137
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23139 $as_echo_n "checking assembler for .weak... " >&6; }
23140 if ${gcc_cv_as_weak+:} false; then :
23141 $as_echo_n "(cached) " >&6
23142 else
23143 gcc_cv_as_weak=no
23144 if test $in_tree_gas = yes; then
23145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23146 then gcc_cv_as_weak=yes
23147 fi
23148 elif test x$gcc_cv_as != x; then
23149 $as_echo ' .weak foobar' > conftest.s
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23156 then
23157 gcc_cv_as_weak=yes
23158 else
23159 echo "configure: failed program was" >&5
23160 cat conftest.s >&5
23161 fi
23162 rm -f conftest.o conftest.s
23163 fi
23164 fi
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23166 $as_echo "$gcc_cv_as_weak" >&6; }
23167 if test $gcc_cv_as_weak = yes; then
23168
23169 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23170
23171 fi
23172
23173
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23175 $as_echo_n "checking assembler for .weakref... " >&6; }
23176 if ${gcc_cv_as_weakref+:} false; then :
23177 $as_echo_n "(cached) " >&6
23178 else
23179 gcc_cv_as_weakref=no
23180 if test $in_tree_gas = yes; then
23181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23182 then gcc_cv_as_weakref=yes
23183 fi
23184 elif test x$gcc_cv_as != x; then
23185 $as_echo ' .weakref foobar, barfnot' > conftest.s
23186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191 test $ac_status = 0; }; }
23192 then
23193 gcc_cv_as_weakref=yes
23194 else
23195 echo "configure: failed program was" >&5
23196 cat conftest.s >&5
23197 fi
23198 rm -f conftest.o conftest.s
23199 fi
23200 fi
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23202 $as_echo "$gcc_cv_as_weakref" >&6; }
23203 if test $gcc_cv_as_weakref = yes; then
23204
23205 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23206
23207 fi
23208
23209
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23211 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23212 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23213 $as_echo_n "(cached) " >&6
23214 else
23215 gcc_cv_as_nsubspa_comdat=no
23216 if test $in_tree_gas = yes; then
23217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23218 then gcc_cv_as_nsubspa_comdat=yes
23219 fi
23220 elif test x$gcc_cv_as != x; then
23221 $as_echo ' .SPACE $TEXT$
23222 .NSUBSPA $CODE$,COMDAT' > conftest.s
23223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23229 then
23230 gcc_cv_as_nsubspa_comdat=yes
23231 else
23232 echo "configure: failed program was" >&5
23233 cat conftest.s >&5
23234 fi
23235 rm -f conftest.o conftest.s
23236 fi
23237 fi
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23239 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23240 if test $gcc_cv_as_nsubspa_comdat = yes; then
23241
23242 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23243
23244 fi
23245
23246
23247 # .hidden needs to be supported in both the assembler and the linker,
23248 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23249 # This is irritatingly difficult to feature test for; we have to check the
23250 # date string after the version number. If we've got an in-tree
23251 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23252 # to be safe.
23253 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23254 case "${target}" in
23255 *-*-aix*)
23256 conftest_s=' .globl foobar,hidden'
23257 ;;
23258 *)
23259 conftest_s=' .hidden foobar
23260 foobar:'
23261 ;;
23262 esac
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23264 $as_echo_n "checking assembler for .hidden... " >&6; }
23265 if ${gcc_cv_as_hidden+:} false; then :
23266 $as_echo_n "(cached) " >&6
23267 else
23268 gcc_cv_as_hidden=no
23269 if test $in_tree_gas = yes; then
23270 if test $in_tree_gas_is_elf = yes \
23271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23272 then gcc_cv_as_hidden=yes
23273 fi
23274 elif test x$gcc_cv_as != x; then
23275 $as_echo "$conftest_s" > conftest.s
23276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281 test $ac_status = 0; }; }
23282 then
23283 gcc_cv_as_hidden=yes
23284 else
23285 echo "configure: failed program was" >&5
23286 cat conftest.s >&5
23287 fi
23288 rm -f conftest.o conftest.s
23289 fi
23290 fi
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23292 $as_echo "$gcc_cv_as_hidden" >&6; }
23293
23294
23295 case "${target}" in
23296 *-*-darwin*)
23297 # Darwin as has some visibility support, though with a different syntax.
23298 gcc_cv_as_hidden=yes
23299 ;;
23300 esac
23301
23302 # gnu_indirect_function type is an extension proposed at
23303 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23304 # selection of function implementation
23305 # Check whether --enable-gnu-indirect-function was given.
23306 if test "${enable_gnu_indirect_function+set}" = set; then :
23307 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23308 yes | no) ;;
23309 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23310 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23311 esac
23312 else
23313 enable_gnu_indirect_function="$default_gnu_indirect_function"
23314 fi
23315
23316
23317 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23318
23319 cat >>confdefs.h <<_ACEOF
23320 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23321 _ACEOF
23322
23323
23324
23325 if test $in_tree_ld != yes ; then
23326 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23327 if echo "$ld_ver" | grep GNU > /dev/null; then
23328 if test x"$ld_is_gold" = xyes; then
23329 # GNU gold --version looks like this:
23330 #
23331 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23332 #
23333 # We extract the binutils version which is more familiar and specific
23334 # than the gold version.
23335 ld_vers=`echo $ld_ver | sed -n \
23336 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23337 else
23338 # GNU ld --version looks like this:
23339 #
23340 # GNU ld (GNU Binutils) 2.21.51.20110225
23341 ld_vers=`echo $ld_ver | sed -n \
23342 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23343 fi
23344 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23345 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23346 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23347 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23348 else
23349 case "${target}" in
23350 *-*-solaris2*)
23351 # Solaris 2 ld -V output looks like this for a regular version:
23352 #
23353 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23354 #
23355 # but test versions add stuff at the end:
23356 #
23357 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23358 #
23359 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23360 # numbers can be used in ld.so.1 feature checks even if a different
23361 # linker is configured.
23362 ld_ver=`$gcc_cv_ld -V 2>&1`
23363 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23364 ld_vers=`echo $ld_ver | sed -n \
23365 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23366 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23367 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23368 fi
23369 ;;
23370 esac
23371 fi
23372 fi
23373
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23375 $as_echo_n "checking linker for .hidden support... " >&6; }
23376 if ${gcc_cv_ld_hidden+:} false; then :
23377 $as_echo_n "(cached) " >&6
23378 else
23379 if test $in_tree_ld = yes ; then
23380 gcc_cv_ld_hidden=no
23381 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 \
23382 && test $in_tree_ld_is_elf = yes; then
23383 gcc_cv_ld_hidden=yes
23384 fi
23385 else
23386 gcc_cv_ld_hidden=yes
23387 if test x"$ld_is_gold" = xyes; then
23388 :
23389 elif echo "$ld_ver" | grep GNU > /dev/null; then
23390 case "${target}" in
23391 mmix-knuth-mmixware)
23392 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23393 gcc_cv_ld_hidden=no
23394 ;;
23395 esac
23396 if test 0"$ld_date" -lt 20020404; then
23397 if test -n "$ld_date"; then
23398 # If there was date string, but was earlier than 2002-04-04, fail
23399 gcc_cv_ld_hidden=no
23400 elif test -z "$ld_vers"; then
23401 # If there was no date string nor ld version number, something is wrong
23402 gcc_cv_ld_hidden=no
23403 else
23404 test -z "$ld_vers_patch" && ld_vers_patch=0
23405 if test "$ld_vers_major" -lt 2; then
23406 gcc_cv_ld_hidden=no
23407 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23408 gcc_cv_ld_hidden="no"
23409 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23410 gcc_cv_ld_hidden=no
23411 fi
23412 fi
23413 fi
23414 else
23415 case "${target}" in
23416 *-*-aix[789]*)
23417 gcc_cv_ld_hidden=yes
23418 ;;
23419 *-*-darwin*)
23420 # Darwin ld has some visibility support.
23421 gcc_cv_ld_hidden=yes
23422 ;;
23423 hppa64*-*-hpux* | ia64*-*-hpux*)
23424 gcc_cv_ld_hidden=yes
23425 ;;
23426 *-*-solaris2*)
23427 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23428 # .symbolic was only added in Solaris 9 12/02.
23429 gcc_cv_ld_hidden=yes
23430 ;;
23431 *)
23432 gcc_cv_ld_hidden=no
23433 ;;
23434 esac
23435 fi
23436 fi
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23439 $as_echo "$gcc_cv_ld_hidden" >&6; }
23440 libgcc_visibility=no
23441
23442
23443 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23444 libgcc_visibility=yes
23445
23446 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23447
23448 fi
23449
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23451 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23452 gcc_cv_ld_ro_rw_mix=unknown
23453 if test $in_tree_ld = yes ; then
23454 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 \
23455 && test $in_tree_ld_is_elf = yes; then
23456 gcc_cv_ld_ro_rw_mix=read-write
23457 fi
23458 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23459 echo '.section myfoosect, "a"' > conftest1.s
23460 echo '.section myfoosect, "aw"' > conftest2.s
23461 echo '.byte 1' >> conftest2.s
23462 echo '.section myfoosect, "a"' > conftest3.s
23463 echo '.byte 0' >> conftest3.s
23464 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23465 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23466 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23467 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23468 conftest2.o conftest3.o > /dev/null 2>&1; then
23469 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23470 | sed -e '/myfoosect/!d' -e N`
23471 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23472 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23473 gcc_cv_ld_ro_rw_mix=read-only
23474 else
23475 gcc_cv_ld_ro_rw_mix=read-write
23476 fi
23477 fi
23478 fi
23479 rm -f conftest.* conftest[123].*
23480 fi
23481 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23482
23483 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23484
23485 fi
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23487 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23488
23489 # Check whether --enable-initfini-array was given.
23490 if test "${enable_initfini_array+set}" = set; then :
23491 enableval=$enable_initfini_array;
23492 else
23493
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23495 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23496 if ${gcc_cv_initfini_array+:} false; then :
23497 $as_echo_n "(cached) " >&6
23498 else
23499 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23500 case "${target}" in
23501 ia64-*)
23502 if test "$cross_compiling" = yes; then :
23503 gcc_cv_initfini_array=no
23504 else
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23507
23508 #ifndef __ELF__
23509 #error Not an ELF OS
23510 #endif
23511 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23512 if it can be used. */
23513 static int x = -1;
23514 int main (void) { return x; }
23515 int foo (void) { x = 0; }
23516 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23517
23518 _ACEOF
23519 if ac_fn_cxx_try_run "$LINENO"; then :
23520 gcc_cv_initfini_array=yes
23521 else
23522 gcc_cv_initfini_array=no
23523 fi
23524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23525 conftest.$ac_objext conftest.beam conftest.$ac_ext
23526 fi
23527 ;;
23528 *)
23529 gcc_cv_initfini_array=no
23530 if test $in_tree_ld = yes ; then
23531 if test "$gcc_cv_gld_major_version" -eq 2 \
23532 -a "$gcc_cv_gld_minor_version" -ge 22 \
23533 -o "$gcc_cv_gld_major_version" -gt 2 \
23534 && test $in_tree_ld_is_elf = yes; then
23535 gcc_cv_initfini_array=yes
23536 fi
23537 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23538 case $target:$gas in
23539 *:yes)
23540 sh_flags='"a"'
23541 sh_type='%progbits'
23542 ;;
23543 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23544 sh_flags='"a"'
23545 sh_type='@progbits'
23546 ;;
23547 sparc*-*-solaris2*:no)
23548 sh_flags='#alloc'
23549 sh_type='#progbits'
23550 sh_quote='"'
23551 ;;
23552 esac
23553 case "$target:$gnu_ld" in
23554 *:yes)
23555 cat > conftest.s <<EOF
23556 .section .dtors,$sh_flags,$sh_type
23557 .balign 4
23558 .byte 'A', 'A', 'A', 'A'
23559 .section .ctors,$sh_flags,$sh_type
23560 .balign 4
23561 .byte 'B', 'B', 'B', 'B'
23562 .section .fini_array.65530,$sh_flags,$sh_type
23563 .balign 4
23564 .byte 'C', 'C', 'C', 'C'
23565 .section .init_array.65530,$sh_flags,$sh_type
23566 .balign 4
23567 .byte 'D', 'D', 'D', 'D'
23568 .section .dtors.64528,$sh_flags,$sh_type
23569 .balign 4
23570 .byte 'E', 'E', 'E', 'E'
23571 .section .ctors.64528,$sh_flags,$sh_type
23572 .balign 4
23573 .byte 'F', 'F', 'F', 'F'
23574 .section .fini_array.01005,$sh_flags,$sh_type
23575 .balign 4
23576 .byte 'G', 'G', 'G', 'G'
23577 .section .init_array.01005,$sh_flags,$sh_type
23578 .balign 4
23579 .byte 'H', 'H', 'H', 'H'
23580 .text
23581 .globl _start
23582 _start:
23583 EOF
23584 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23585 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23586 && $gcc_cv_objdump -s -j .init_array conftest \
23587 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23588 && $gcc_cv_objdump -s -j .fini_array conftest \
23589 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23590 gcc_cv_initfini_array=yes
23591 fi
23592 ;;
23593 *-*-solaris2*:no)
23594 # When Solaris ld added constructor priority support, it was
23595 # decided to only handle .init_array.N/.fini_array.N since
23596 # there was no need for backwards compatibility with
23597 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23598 # sections with correct execution order resp. to
23599 # .init_array/.fini_array, while gld merges them into
23600 # .init_array/.fini_array.
23601 cat > conftest.s <<EOF
23602 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23603 .align 4
23604 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23605 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23606 .align 4
23607 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23608 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23609 .align 4
23610 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23611 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23612 .align 4
23613 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23614 .text
23615 .globl _start
23616 _start:
23617 EOF
23618 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23619 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23620 && $gcc_cv_objdump -s -j .init_array conftest \
23621 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23622 && $gcc_cv_objdump -s -j .fini_array conftest \
23623 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23624 gcc_cv_initfini_array=yes
23625 fi
23626 ;;
23627 esac
23628 rm -f conftest conftest.*
23629 fi
23630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h. */
23632
23633 #ifndef __ELF__
23634 # error Not an ELF OS
23635 #endif
23636 #include <stdlib.h>
23637 #if defined __GLIBC_PREREQ
23638 # if __GLIBC_PREREQ (2, 4)
23639 # else
23640 # error GLIBC 2.4 required
23641 # endif
23642 #else
23643 # if defined __sun__ && defined __svr4__
23644 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23645 # else
23646 # error The C library not known to support .init_array/.fini_array
23647 # endif
23648 #endif
23649
23650 _ACEOF
23651 if ac_fn_cxx_try_cpp "$LINENO"; then :
23652
23653 else
23654 gcc_cv_initfini_array=no
23655 fi
23656 rm -f conftest.err conftest.i conftest.$ac_ext;;
23657 esac
23658 else
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23660 $as_echo_n "checking cross compile... guessing... " >&6; }
23661 gcc_cv_initfini_array=no
23662 fi
23663 fi
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23665 $as_echo "$gcc_cv_initfini_array" >&6; }
23666 enable_initfini_array=$gcc_cv_initfini_array
23667
23668 fi
23669
23670
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23673 _ACEOF
23674
23675
23676
23677 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23679 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23680 if ${gcc_cv_as_leb128+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682 else
23683 gcc_cv_as_leb128=no
23684 if test $in_tree_gas = yes; then
23685 if test $in_tree_gas_is_elf = yes \
23686 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23687 then gcc_cv_as_leb128=yes
23688 fi
23689 elif test x$gcc_cv_as != x; then
23690 $as_echo ' .data
23691 .uleb128 L2 - L1
23692 L1:
23693 .uleb128 1280
23694 .sleb128 -1010
23695 L2:' > conftest.s
23696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }
23702 then
23703 # GAS versions before 2.11 do not support uleb128,
23704 # despite appearing to.
23705 # ??? There exists an elf-specific test that will crash
23706 # the assembler. Perhaps it's better to figure out whether
23707 # arbitrary sections are supported and try the test.
23708 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23709 if echo "$as_ver" | grep GNU > /dev/null; then
23710 as_vers=`echo $as_ver | sed -n \
23711 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23712 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23713 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23714 if test $as_major -eq 2 && test $as_minor -lt 11
23715 then :
23716 else gcc_cv_as_leb128=yes
23717 fi
23718 fi
23719 else
23720 echo "configure: failed program was" >&5
23721 cat conftest.s >&5
23722 fi
23723 rm -f conftest.o conftest.s
23724 fi
23725 fi
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23727 $as_echo "$gcc_cv_as_leb128" >&6; }
23728 if test $gcc_cv_as_leb128 = yes; then
23729
23730 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23731
23732 fi
23733 if test $gcc_cv_as_leb128 != yes; then
23734
23735 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23736
23737 fi
23738
23739 # Determine if an .eh_frame section is read-only.
23740 gcc_fn_eh_frame_ro () {
23741 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23742 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23743 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23744 }
23745
23746 # Check if we have assembler support for unwind directives.
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23748 $as_echo_n "checking assembler for cfi directives... " >&6; }
23749 if ${gcc_cv_as_cfi_directive+:} false; then :
23750 $as_echo_n "(cached) " >&6
23751 else
23752 gcc_cv_as_cfi_directive=no
23753 if test x$gcc_cv_as != x; then
23754 $as_echo ' .text
23755 .cfi_startproc
23756 .cfi_offset 0, 0
23757 .cfi_same_value 1
23758 .cfi_def_cfa 1, 2
23759 .cfi_escape 1, 2, 3, 4, 5
23760 .cfi_endproc' > conftest.s
23761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23763 (eval $ac_try) 2>&5
23764 ac_status=$?
23765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23766 test $ac_status = 0; }; }
23767 then
23768 case "$target" in
23769 *-*-solaris*)
23770 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23771 # read-only and read-write sections, we need to make sure that the
23772 # assembler used emits read-write .eh_frame sections.
23773 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23774 gcc_cv_as_cfi_directive=yes
23775 elif test "x$gcc_cv_objdump" = x; then
23776 # No objdump, err on the side of caution.
23777 gcc_cv_as_cfi_directive=no
23778 else
23779 if test x$gas = xyes; then
23780 as_32_opt="--32"
23781 as_64_opt="--64"
23782 else
23783 as_32_opt="-m32"
23784 as_64_opt="-m64"
23785 fi
23786 case "$target" in
23787 sparc*-*-solaris2.*)
23788 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23789 if gcc_fn_eh_frame_ro $as_32_opt \
23790 || gcc_fn_eh_frame_ro $as_64_opt; then
23791 gcc_cv_as_cfi_directive=no
23792 else
23793 gcc_cv_as_cfi_directive=yes
23794 fi
23795 ;;
23796 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23797 # On Solaris/x86, make sure that GCC and assembler agree on using
23798 # read-only .eh_frame sections for 64-bit.
23799 if gcc_fn_eh_frame_ro $as_32_opt; then
23800 gcc_cv_as_cfi_directive=no
23801 elif gcc_fn_eh_frame_ro $as_64_opt; then
23802 gcc_cv_as_cfi_directive=yes
23803 else
23804 gcc_cv_as_cfi_directive=no
23805 fi
23806 ;;
23807 esac
23808 fi
23809 ;;
23810 *-*-*)
23811 gcc_cv_as_cfi_directive=yes
23812 ;;
23813 esac
23814 else
23815 echo "configure: failed program was" >&5
23816 cat conftest.s >&5
23817 fi
23818 rm -f conftest.o conftest.s
23819 fi
23820 fi
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23822 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23823
23824
23825 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23827 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23828 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23829 $as_echo_n "(cached) " >&6
23830 else
23831 gcc_cv_as_cfi_advance_working=no
23832 if test x$gcc_cv_as != x; then
23833 $as_echo ' .text
23834 .cfi_startproc
23835 .cfi_adjust_cfa_offset 64
23836 .skip 75040, 0
23837 .cfi_adjust_cfa_offset 128
23838 .cfi_endproc' > conftest.s
23839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23845 then
23846
23847 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23848 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23849 gcc_cv_as_cfi_advance_working=yes
23850 fi
23851
23852 else
23853 echo "configure: failed program was" >&5
23854 cat conftest.s >&5
23855 fi
23856 rm -f conftest.o conftest.s
23857 fi
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23860 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23861
23862
23863 else
23864 # no objdump, err on the side of caution
23865 gcc_cv_as_cfi_advance_working=no
23866 fi
23867
23868
23869 cat >>confdefs.h <<_ACEOF
23870 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23871 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23872 _ACEOF
23873
23874
23875
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23877 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23878 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23879 $as_echo_n "(cached) " >&6
23880 else
23881 gcc_cv_as_cfi_personality_directive=no
23882 if test x$gcc_cv_as != x; then
23883 $as_echo ' .text
23884 .cfi_startproc
23885 .cfi_personality 0, symbol
23886 .cfi_endproc' > conftest.s
23887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; }
23893 then
23894 gcc_cv_as_cfi_personality_directive=yes
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23903 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23904
23905
23906
23907 cat >>confdefs.h <<_ACEOF
23908 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23909 _ACEOF
23910
23911
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23913 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23914 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23915 $as_echo_n "(cached) " >&6
23916 else
23917 gcc_cv_as_cfi_sections_directive=no
23918 if test x$gcc_cv_as != x; then
23919 $as_echo ' .text
23920 .cfi_sections .debug_frame, .eh_frame
23921 .cfi_startproc
23922 .cfi_endproc' > conftest.s
23923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23926 ac_status=$?
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; }
23929 then
23930 case $target_os in
23931 win32 | pe | cygwin* | mingw32*)
23932 # Need to check that we generated the correct relocation for the
23933 # .debug_frame section. This was fixed for binutils 2.21.
23934 gcc_cv_as_cfi_sections_directive=no
23935 if test "x$gcc_cv_objdump" != x; then
23936 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23937 grep secrel > /dev/null; then
23938 gcc_cv_as_cfi_sections_directive=yes
23939 fi
23940 fi
23941 ;;
23942 *)
23943 gcc_cv_as_cfi_sections_directive=yes
23944 ;;
23945 esac
23946 else
23947 echo "configure: failed program was" >&5
23948 cat conftest.s >&5
23949 fi
23950 rm -f conftest.o conftest.s
23951 fi
23952 fi
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23954 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23955
23956
23957
23958
23959 cat >>confdefs.h <<_ACEOF
23960 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23961 _ACEOF
23962
23963
23964 # GAS versions up to and including 2.11.0 may mis-optimize
23965 # .eh_frame data.
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23967 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23968 if ${gcc_cv_as_eh_frame+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970 else
23971 gcc_cv_as_eh_frame=no
23972 if test $in_tree_gas = yes; then
23973 if test $in_tree_gas_is_elf = yes \
23974 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23975 then gcc_cv_as_eh_frame=yes
23976 fi
23977 elif test x$gcc_cv_as != x; then
23978 $as_echo ' .text
23979 .LFB1:
23980 .4byte 0
23981 .L1:
23982 .4byte 0
23983 .LFE1:
23984 .section .eh_frame,"aw",@progbits
23985 __FRAME_BEGIN__:
23986 .4byte .LECIE1-.LSCIE1
23987 .LSCIE1:
23988 .4byte 0x0
23989 .byte 0x1
23990 .ascii "z\0"
23991 .byte 0x1
23992 .byte 0x78
23993 .byte 0x1a
23994 .byte 0x0
23995 .byte 0x4
23996 .4byte 1
23997 .p2align 1
23998 .LECIE1:
23999 .LSFDE1:
24000 .4byte .LEFDE1-.LASFDE1
24001 .LASFDE1:
24002 .4byte .LASFDE1-__FRAME_BEGIN__
24003 .4byte .LFB1
24004 .4byte .LFE1-.LFB1
24005 .byte 0x4
24006 .4byte .LFE1-.LFB1
24007 .byte 0x4
24008 .4byte .L1-.LFB1
24009 .LEFDE1:' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 cat > conftest.lit <<EOF
24018 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24019 0010 01000000 12000000 18000000 00000000 ................
24020 0020 08000000 04080000 0044 .........D
24021 EOF
24022 cat > conftest.big <<EOF
24023 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24024 0010 00000001 00000012 00000018 00000000 ................
24025 0020 00000008 04000000 0844 .........D
24026 EOF
24027 # If the assembler didn't choke, and we can objdump,
24028 # and we got the correct data, then succeed.
24029 # The text in the here-document typically retains its unix-style line
24030 # endings, while the output of objdump will use host line endings.
24031 # Therefore, use diff -b for the comparisons.
24032 if test x$gcc_cv_objdump != x \
24033 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24034 | tail -3 > conftest.got \
24035 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24036 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24037 then
24038 gcc_cv_as_eh_frame=yes
24039 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }; then
24045 gcc_cv_as_eh_frame=buggy
24046 else
24047 # Uh oh, what do we do now?
24048 gcc_cv_as_eh_frame=no
24049 fi
24050 else
24051 echo "configure: failed program was" >&5
24052 cat conftest.s >&5
24053 fi
24054 rm -f conftest.o conftest.s
24055 fi
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24058 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24059
24060
24061
24062 if test $gcc_cv_as_eh_frame = buggy; then
24063
24064 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24065
24066 fi
24067
24068 # Test if the assembler supports the section flag 'e' or #exclude for
24069 # specifying an excluded section.
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24071 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24072 if ${gcc_cv_as_section_exclude_e+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074 else
24075 gcc_cv_as_section_exclude_e=no
24076 if test $in_tree_gas = yes; then
24077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24078 then gcc_cv_as_section_exclude_e=yes
24079 fi
24080 elif test x$gcc_cv_as != x; then
24081 $as_echo '.section foo1,"e"
24082 .byte 0,0,0,0' > conftest.s
24083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24089 then
24090 gcc_cv_as_section_exclude_e=yes
24091 else
24092 echo "configure: failed program was" >&5
24093 cat conftest.s >&5
24094 fi
24095 rm -f conftest.o conftest.s
24096 fi
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24099 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24100
24101
24102 if test $gcc_cv_as_section_exclude_e = no; then
24103 case "${target}" in
24104 # Solaris as uses #exclude instead.
24105 *-*-solaris2*)
24106 case "${target}" in
24107 sparc*-*-solaris2*)
24108 conftest_s='.section "foo1", #exclude'
24109 ;;
24110 i?86-*-solaris2* | x86_64-*-solaris2*)
24111 conftest_s='.section foo1, #exclude'
24112 ;;
24113 esac
24114 ;;
24115 esac
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24117 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24118 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24119 $as_echo_n "(cached) " >&6
24120 else
24121 gcc_cv_as_section_exclude_hash=no
24122 if test x$gcc_cv_as != x; then
24123 $as_echo "$conftest_s
24124 .byte 0,0,0,0" > conftest.s
24125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130 test $ac_status = 0; }; }
24131 then
24132 gcc_cv_as_section_exclude_hash=yes
24133 else
24134 echo "configure: failed program was" >&5
24135 cat conftest.s >&5
24136 fi
24137 rm -f conftest.o conftest.s
24138 fi
24139 fi
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24141 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24142
24143
24144 fi
24145
24146 cat >>confdefs.h <<_ACEOF
24147 #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`
24148 _ACEOF
24149
24150
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24152 $as_echo_n "checking assembler for section merging support... " >&6; }
24153 if ${gcc_cv_as_shf_merge+:} false; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 gcc_cv_as_shf_merge=no
24157 if test $in_tree_gas = yes; then
24158 if test $in_tree_gas_is_elf = yes \
24159 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24160 then gcc_cv_as_shf_merge=yes
24161 fi
24162 elif test x$gcc_cv_as != x; then
24163 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; }
24170 then
24171 gcc_cv_as_shf_merge=yes
24172 else
24173 echo "configure: failed program was" >&5
24174 cat conftest.s >&5
24175 fi
24176 rm -f conftest.o conftest.s
24177 fi
24178 fi
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24180 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24181
24182
24183 if test $gcc_cv_as_shf_merge = no; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24185 $as_echo_n "checking assembler for section merging support... " >&6; }
24186 if ${gcc_cv_as_shf_merge+:} false; then :
24187 $as_echo_n "(cached) " >&6
24188 else
24189 gcc_cv_as_shf_merge=no
24190 if test $in_tree_gas = yes; then
24191 if test $in_tree_gas_is_elf = yes \
24192 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24193 then gcc_cv_as_shf_merge=yes
24194 fi
24195 elif test x$gcc_cv_as != x; then
24196 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }
24203 then
24204 gcc_cv_as_shf_merge=yes
24205 else
24206 echo "configure: failed program was" >&5
24207 cat conftest.s >&5
24208 fi
24209 rm -f conftest.o conftest.s
24210 fi
24211 fi
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24213 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24214
24215
24216 fi
24217
24218 cat >>confdefs.h <<_ACEOF
24219 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24220 _ACEOF
24221
24222
24223 gcc_cv_ld_aligned_shf_merge=yes
24224 case "$target" in
24225 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24226 # alignment > 1.
24227 sparc*-*-solaris2.11*)
24228 if test x"$gnu_ld" = xno \
24229 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24230 gcc_cv_ld_aligned_shf_merge=no
24231 fi
24232 ;;
24233 esac
24234
24235 cat >>confdefs.h <<_ACEOF
24236 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24237 _ACEOF
24238
24239
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24241 $as_echo_n "checking assembler for stabs directive... " >&6; }
24242 if ${gcc_cv_as_stabs_directive+:} false; then :
24243 $as_echo_n "(cached) " >&6
24244 else
24245 gcc_cv_as_stabs_directive=no
24246 if test x$gcc_cv_as != x; then
24247 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24254 then
24255 gcc_cv_as_stabs_directive=yes
24256 else
24257 echo "configure: failed program was" >&5
24258 cat conftest.s >&5
24259 fi
24260 rm -f conftest.o conftest.s
24261 fi
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24264 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24265 if test $gcc_cv_as_stabs_directive = yes; then
24266
24267 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24268
24269 fi
24270
24271
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24273 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24274 if ${gcc_cv_as_comdat_group+:} false; then :
24275 $as_echo_n "(cached) " >&6
24276 else
24277 gcc_cv_as_comdat_group=no
24278 if test $in_tree_gas = yes; then
24279 if test $in_tree_gas_is_elf = yes \
24280 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24281 then gcc_cv_as_comdat_group=yes
24282 fi
24283 elif test x$gcc_cv_as != x; then
24284 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24291 then
24292 gcc_cv_as_comdat_group=yes
24293 else
24294 echo "configure: failed program was" >&5
24295 cat conftest.s >&5
24296 fi
24297 rm -f conftest.o conftest.s
24298 fi
24299 fi
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24301 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24302
24303
24304 if test $gcc_cv_as_comdat_group = yes; then
24305 gcc_cv_as_comdat_group_percent=no
24306 gcc_cv_as_comdat_group_group=no
24307 else
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24309 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24310 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24311 $as_echo_n "(cached) " >&6
24312 else
24313 gcc_cv_as_comdat_group_percent=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 \) + 16 \) \* 1000 + 0`
24317 then gcc_cv_as_comdat_group_percent=yes
24318 fi
24319 elif test x$gcc_cv_as != x; then
24320 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > 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_comdat_group_percent=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_comdat_group_percent" >&5
24337 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24338
24339
24340 if test $gcc_cv_as_comdat_group_percent = yes; then
24341 gcc_cv_as_comdat_group_group=no
24342 else
24343 case "${target}" in
24344 # Sun as uses a completely different syntax.
24345 *-*-solaris2*)
24346 case "${target}" in
24347 sparc*-*-solaris2*)
24348 conftest_s='
24349 .group foo,".text%foo",#comdat
24350 .section ".text%foo", #alloc,#execinstr,#progbits
24351 .globl foo
24352 foo:
24353 '
24354 ;;
24355 i?86-*-solaris2* | x86_64-*-solaris2*)
24356 conftest_s='
24357 .group foo,.text%foo,#comdat
24358 .section .text%foo, "ax", @progbits
24359 .globl foo
24360 foo:
24361 '
24362 ;;
24363 esac
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24365 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24366 if ${gcc_cv_as_comdat_group_group+:} false; then :
24367 $as_echo_n "(cached) " >&6
24368 else
24369 gcc_cv_as_comdat_group_group=no
24370 if test x$gcc_cv_as != x; then
24371 $as_echo "$conftest_s" > 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_comdat_group_group=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_comdat_group_group" >&5
24388 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24389
24390
24391 ;;
24392 esac
24393 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24394 gcc_cv_as_comdat_group_group=no
24395 fi
24396 fi
24397 fi
24398 if test x"$ld_is_gold" = xyes; then
24399 comdat_group=yes
24400 elif test $in_tree_ld = yes ; then
24401 comdat_group=no
24402 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 \
24403 && test $in_tree_ld_is_elf = yes; then
24404 comdat_group=yes
24405 fi
24406 elif echo "$ld_ver" | grep GNU > /dev/null; then
24407 comdat_group=yes
24408 if test 0"$ld_date" -lt 20050308; then
24409 if test -n "$ld_date"; then
24410 # If there was date string, but was earlier than 2005-03-08, fail
24411 comdat_group=no
24412 elif test "$ld_vers_major" -lt 2; then
24413 comdat_group=no
24414 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24415 comdat_group=no
24416 fi
24417 fi
24418 else
24419 case "${target}" in
24420 *-*-solaris2.1[1-9]*)
24421 comdat_group=no
24422 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24423 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24424 # version 1.688.
24425 #
24426 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24427 # least ld version 1.2267.
24428 if test "$ld_vers_major" -gt 1; then
24429 comdat_group=yes
24430 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24431 comdat_group=yes
24432 elif test "$ld_vers_minor" -ge 2267; then
24433 comdat_group=yes
24434 fi
24435 ;;
24436 *)
24437 # Assume linkers other than GNU ld don't support COMDAT group.
24438 comdat_group=no
24439 ;;
24440 esac
24441 fi
24442 # Allow overriding the automatic COMDAT group tests above.
24443 # Check whether --enable-comdat was given.
24444 if test "${enable_comdat+set}" = set; then :
24445 enableval=$enable_comdat; comdat_group="$enable_comdat"
24446 fi
24447
24448 if test $comdat_group = no; then
24449 gcc_cv_as_comdat_group=no
24450 gcc_cv_as_comdat_group_percent=no
24451 gcc_cv_as_comdat_group_group=no
24452 fi
24453
24454 cat >>confdefs.h <<_ACEOF
24455 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24456 || test $gcc_cv_as_comdat_group_percent = yes \
24457 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24458 _ACEOF
24459
24460
24461 # Restrict this test to Solaris/x86: other targets define this statically.
24462 case "${target}" in
24463 i?86-*-solaris2* | x86_64-*-solaris2*)
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24465 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24466 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24467 hidden_linkonce=yes
24468 else
24469 case "${target}" in
24470 # Full support for hidden thunks in linkonce sections only appeared in
24471 # Solaris 11/OpenSolaris.
24472 *-*-solaris2.1[1-9]*)
24473 hidden_linkonce=yes
24474 ;;
24475 *)
24476 hidden_linkonce=no
24477 ;;
24478 esac
24479 fi
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24481 $as_echo "$hidden_linkonce" >&6; }
24482
24483 cat >>confdefs.h <<_ACEOF
24484 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24485 _ACEOF
24486
24487 ;;
24488 esac
24489
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24491 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24492 if ${gcc_cv_as_is_stmt+:} false; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 gcc_cv_as_is_stmt=no
24496 if test $in_tree_gas = yes; then
24497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24498 then gcc_cv_as_is_stmt=yes
24499 fi
24500 elif test x$gcc_cv_as != x; then
24501 $as_echo ' .text
24502 .file 1 "conf.c"
24503 .loc 1 1 0 is_stmt 1' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_is_stmt=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24515 fi
24516 rm -f conftest.o conftest.s
24517 fi
24518 fi
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24520 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24521 if test $gcc_cv_as_is_stmt = yes; then
24522
24523 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24524
24525 fi
24526
24527
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24529 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24530 if ${gcc_cv_as_discriminator+:} false; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 gcc_cv_as_discriminator=no
24534 if test $in_tree_gas = yes; then
24535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24536 then gcc_cv_as_discriminator=yes
24537 fi
24538 elif test x$gcc_cv_as != x; then
24539 $as_echo ' .text
24540 .file 1 "conf.c"
24541 .loc 1 1 0 discriminator 1' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 gcc_cv_as_discriminator=yes
24550 else
24551 echo "configure: failed program was" >&5
24552 cat conftest.s >&5
24553 fi
24554 rm -f conftest.o conftest.s
24555 fi
24556 fi
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24558 $as_echo "$gcc_cv_as_discriminator" >&6; }
24559 if test $gcc_cv_as_discriminator = yes; then
24560
24561 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24562
24563 fi
24564
24565
24566 # Catch the newlib flag of the same name so we can gate GCC features on it.
24567 # Check whether --enable-newlib-nano-formatted-io was given.
24568 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24569 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24570 yes|no)
24571 ;;
24572 *)
24573 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24574 ;;
24575 esac
24576 fi
24577
24578
24579 # Thread-local storage - the check is heavily parameterized.
24580 conftest_s=
24581 tls_first_major=
24582 tls_first_minor=
24583 tls_as_opt=
24584 case "$target" in
24585 alpha*-*-*)
24586 conftest_s='
24587 .section ".tdata","awT",@progbits
24588 foo: .long 25
24589 .text
24590 ldq $27,__tls_get_addr($29) !literal!1
24591 lda $16,foo($29) !tlsgd!1
24592 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24593 ldq $27,__tls_get_addr($29) !literal!2
24594 lda $16,foo($29) !tlsldm!2
24595 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24596 ldq $1,foo($29) !gotdtprel
24597 ldah $2,foo($29) !dtprelhi
24598 lda $3,foo($2) !dtprello
24599 lda $4,foo($29) !dtprel
24600 ldq $1,foo($29) !gottprel
24601 ldah $2,foo($29) !tprelhi
24602 lda $3,foo($2) !tprello
24603 lda $4,foo($29) !tprel'
24604 tls_first_major=2
24605 tls_first_minor=13
24606 tls_as_opt=--fatal-warnings
24607 ;;
24608 arc*-*-*)
24609 conftest_s='
24610 add_s r0,r0, @foo@tpoff'
24611 tls_first_major=2
24612 tls_first_minor=23
24613 ;;
24614 cris-*-*|crisv32-*-*)
24615 conftest_s='
24616 .section ".tdata","awT",@progbits
24617 x: .long 25
24618 .text
24619 move.d x:IE,$r10
24620 nop'
24621 tls_first_major=2
24622 tls_first_minor=20
24623 tls_as_opt=--fatal-warnings
24624 ;;
24625 frv*-*-*)
24626 conftest_s='
24627 .section ".tdata","awT",@progbits
24628 x: .long 25
24629 .text
24630 call #gettlsoff(x)'
24631 tls_first_major=2
24632 tls_first_minor=14
24633 ;;
24634 hppa*-*-linux*)
24635 conftest_s='
24636 t1: .reg %r20
24637 t2: .reg %r21
24638 gp: .reg %r19
24639 .section ".tdata","awT",@progbits
24640 foo: .long 25
24641 .text
24642 .align 4
24643 addil LT%foo-$tls_gdidx$,gp
24644 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24645 b __tls_get_addr
24646 nop
24647 addil LT%foo-$tls_ldidx$,gp
24648 b __tls_get_addr
24649 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24650 addil LR%foo-$tls_dtpoff$,%ret0
24651 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24652 mfctl %cr27,%t1
24653 addil LT%foo-$tls_ieoff$,gp
24654 ldw RT%foo-$tls_ieoff$(%r1),%t2
24655 add %t1,%t2,%t3
24656 mfctl %cr27,%t1
24657 addil LR%foo-$tls_leoff$,%t1
24658 ldo RR%foo-$tls_leoff$(%r1),%t2'
24659 tls_first_major=2
24660 tls_first_minor=15
24661 tls_as_opt=--fatal-warnings
24662 ;;
24663 arm*-*-*)
24664 conftest_s='
24665 .section ".tdata","awT",%progbits
24666 foo: .long 25
24667 .text
24668 .word foo(gottpoff)
24669 .word foo(tpoff)
24670 .word foo(tlsgd)
24671 .word foo(tlsldm)
24672 .word foo(tlsldo)'
24673 tls_first_major=2
24674 tls_first_minor=17
24675 ;;
24676 i[34567]86-*-* | x86_64-*-*)
24677 case "$target" in
24678 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24679 on_solaris=yes
24680 ;;
24681 *)
24682 on_solaris=no
24683 ;;
24684 esac
24685 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24686 conftest_s='
24687 .section .tdata,"awt",@progbits'
24688 tls_first_major=0
24689 tls_first_minor=0
24690 tls_section_flag=t
24691
24692 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24693
24694 else
24695 conftest_s='
24696 .section ".tdata","awT",@progbits'
24697 tls_first_major=2
24698 tls_first_minor=14
24699 tls_section_flag=T
24700 tls_as_opt="--fatal-warnings"
24701 fi
24702 case "$target" in
24703 i[34567]86-*-*)
24704 conftest_s="$conftest_s
24705 foo: .long 25
24706 .text
24707 movl %gs:0, %eax
24708 leal foo@tlsgd(,%ebx,1), %eax
24709 leal foo@tlsldm(%ebx), %eax
24710 leal foo@dtpoff(%eax), %edx
24711 movl foo@gottpoff(%ebx), %eax
24712 subl foo@gottpoff(%ebx), %eax
24713 addl foo@gotntpoff(%ebx), %eax
24714 movl foo@indntpoff, %eax
24715 movl \$foo@tpoff, %eax
24716 subl \$foo@tpoff, %eax
24717 leal foo@ntpoff(%ecx), %eax"
24718 ;;
24719 x86_64-*-*)
24720 if test x$on_solaris = xyes; then
24721 case $gas_flag in
24722 yes) tls_as_opt="$tls_as_opt --64" ;;
24723 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24724 esac
24725 fi
24726 conftest_s="$conftest_s
24727 foo: .long 25
24728 .text
24729 movq %fs:0, %rax
24730 leaq foo@tlsgd(%rip), %rdi
24731 leaq foo@tlsld(%rip), %rdi
24732 leaq foo@dtpoff(%rax), %rdx
24733 movq foo@gottpoff(%rip), %rax
24734 movq \$foo@tpoff, %rax"
24735 ;;
24736 esac
24737 ;;
24738 ia64-*-*)
24739 conftest_s='
24740 .section ".tdata","awT",@progbits
24741 foo: data8 25
24742 .text
24743 addl r16 = @ltoff(@dtpmod(foo#)), gp
24744 addl r17 = @ltoff(@dtprel(foo#)), gp
24745 addl r18 = @ltoff(@tprel(foo#)), gp
24746 addl r19 = @dtprel(foo#), gp
24747 adds r21 = @dtprel(foo#), r13
24748 movl r23 = @dtprel(foo#)
24749 addl r20 = @tprel(foo#), gp
24750 adds r22 = @tprel(foo#), r13
24751 movl r24 = @tprel(foo#)'
24752 tls_first_major=2
24753 tls_first_minor=13
24754 tls_as_opt=--fatal-warnings
24755 ;;
24756 microblaze*-*-*)
24757 conftest_s='
24758 .section .tdata,"awT",@progbits
24759 x:
24760 .word 2
24761 .text
24762 addik r5,r20,x@TLSGD
24763 addik r5,r20,x@TLSLDM'
24764 tls_first_major=2
24765 tls_first_minor=20
24766 tls_as_opt='--fatal-warnings'
24767 ;;
24768 mips*-*-*)
24769 conftest_s='
24770 .section .tdata,"awT",@progbits
24771 x:
24772 .word 2
24773 .text
24774 addiu $4, $28, %tlsgd(x)
24775 addiu $4, $28, %tlsldm(x)
24776 lui $4, %dtprel_hi(x)
24777 addiu $4, $4, %dtprel_lo(x)
24778 lw $4, %gottprel(x)($28)
24779 lui $4, %tprel_hi(x)
24780 addiu $4, $4, %tprel_lo(x)'
24781 tls_first_major=2
24782 tls_first_minor=16
24783 tls_as_opt='-32 --fatal-warnings'
24784 ;;
24785 m68k-*-*)
24786 conftest_s='
24787 .section .tdata,"awT",@progbits
24788 x:
24789 .word 2
24790 .text
24791 foo:
24792 move.l x@TLSGD(%a5),%a0
24793 move.l x@TLSLDM(%a5),%a0
24794 move.l x@TLSLDO(%a5),%a0
24795 move.l x@TLSIE(%a5),%a0
24796 move.l x@TLSLE(%a5),%a0'
24797 tls_first_major=2
24798 tls_first_minor=19
24799 tls_as_opt='--fatal-warnings'
24800 ;;
24801 nios2-*-*)
24802 conftest_s='
24803 .section ".tdata","awT",@progbits'
24804 tls_first_major=2
24805 tls_first_minor=23
24806 tls_as_opt="--fatal-warnings"
24807 ;;
24808 aarch64*-*-*)
24809 conftest_s='
24810 .section ".tdata","awT",%progbits
24811 foo: .long 25
24812 .text
24813 adrp x0, :tlsgd:x
24814 add x0, x0, #:tlsgd_lo12:x
24815 bl __tls_get_addr
24816 nop'
24817 tls_first_major=2
24818 tls_first_minor=20
24819 tls_as_opt='--fatal-warnings'
24820 ;;
24821 or1k*-*-*)
24822 conftest_s='
24823 .section ".tdata","awT",@progbits
24824 foo: .long 25
24825 .text
24826 l.movhi r3, tpoffha(foo)
24827 l.add r3, r3, r10
24828 l.lwz r4, tpofflo(foo)(r3)'
24829 tls_first_major=2
24830 tls_first_minor=30
24831 tls_as_opt=--fatal-warnings
24832 ;;
24833 powerpc-ibm-aix*)
24834 conftest_s='
24835 .extern __get_tpointer
24836 .toc
24837 LC..1:
24838 .tc a[TC],a[TL]@le
24839 .csect .text[PR]
24840 .tlstest:
24841 lwz 9,LC..1(2)
24842 bla __get_tpointer
24843 lwzx 3,9,3
24844 .globl a
24845 .csect a[TL],4
24846 a:
24847 .space 4'
24848 tls_first_major=0
24849 tls_first_minor=0
24850 ;;
24851 powerpc64*-*-*)
24852 conftest_s='
24853 .section ".tdata","awT",@progbits
24854 .align 3
24855 ld0: .space 8
24856 ld1: .space 8
24857 x1: .space 8
24858 x2: .space 8
24859 x3: .space 8
24860 .text
24861 addi 3,2,ld0@got@tlsgd
24862 bl .__tls_get_addr
24863 nop
24864 addi 3,2,ld1@toc
24865 bl .__tls_get_addr
24866 nop
24867 addi 3,2,x1@got@tlsld
24868 bl .__tls_get_addr
24869 nop
24870 addi 9,3,x1@dtprel
24871 bl .__tls_get_addr
24872 nop
24873 addis 9,3,x2@dtprel@ha
24874 addi 9,9,x2@dtprel@l
24875 bl .__tls_get_addr
24876 nop
24877 ld 9,x3@got@dtprel(2)
24878 add 9,9,3
24879 bl .__tls_get_addr
24880 nop'
24881 tls_first_major=2
24882 tls_first_minor=14
24883 tls_as_opt="-a64 --fatal-warnings"
24884 ;;
24885 powerpc*-*-*)
24886 conftest_s='
24887 .section ".tdata","awT",@progbits
24888 .align 2
24889 ld0: .space 4
24890 ld1: .space 4
24891 x1: .space 4
24892 x2: .space 4
24893 x3: .space 4
24894 .text
24895 addi 3,31,ld0@got@tlsgd
24896 bl __tls_get_addr
24897 addi 3,31,x1@got@tlsld
24898 bl __tls_get_addr
24899 addi 9,3,x1@dtprel
24900 addis 9,3,x2@dtprel@ha
24901 addi 9,9,x2@dtprel@l
24902 lwz 9,x3@got@tprel(31)
24903 add 9,9,x@tls
24904 addi 9,2,x1@tprel
24905 addis 9,2,x2@tprel@ha
24906 addi 9,9,x2@tprel@l'
24907 tls_first_major=2
24908 tls_first_minor=14
24909 tls_as_opt="-a32 --fatal-warnings"
24910 ;;
24911 riscv*-*-*)
24912 conftest_s='
24913 .section .tdata,"awT",@progbits
24914 x: .word 2
24915 .text
24916 la.tls.gd a0,x
24917 call __tls_get_addr'
24918 tls_first_major=2
24919 tls_first_minor=21
24920 tls_as_opt='--fatal-warnings'
24921 ;;
24922 s390-*-*)
24923 conftest_s='
24924 .section ".tdata","awT",@progbits
24925 foo: .long 25
24926 .text
24927 .long foo@TLSGD
24928 .long foo@TLSLDM
24929 .long foo@DTPOFF
24930 .long foo@NTPOFF
24931 .long foo@GOTNTPOFF
24932 .long foo@INDNTPOFF
24933 l %r1,foo@GOTNTPOFF(%r12)
24934 l %r1,0(%r1):tls_load:foo
24935 bas %r14,0(%r1,%r13):tls_gdcall:foo
24936 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24937 tls_first_major=2
24938 tls_first_minor=14
24939 tls_as_opt="-m31 --fatal-warnings"
24940 ;;
24941 s390x-*-*)
24942 conftest_s='
24943 .section ".tdata","awT",@progbits
24944 foo: .long 25
24945 .text
24946 .quad foo@TLSGD
24947 .quad foo@TLSLDM
24948 .quad foo@DTPOFF
24949 .quad foo@NTPOFF
24950 .quad foo@GOTNTPOFF
24951 lg %r1,foo@GOTNTPOFF(%r12)
24952 larl %r1,foo@INDNTPOFF
24953 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24954 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24955 tls_first_major=2
24956 tls_first_minor=14
24957 tls_as_opt="-m64 -Aesame --fatal-warnings"
24958 ;;
24959 sh-*-* | sh[123456789lbe]*-*-*)
24960 conftest_s='
24961 .section ".tdata","awT",@progbits
24962 foo: .long 25
24963 .text
24964 .long foo@TLSGD
24965 .long foo@TLSLDM
24966 .long foo@DTPOFF
24967 .long foo@GOTTPOFF
24968 .long foo@TPOFF'
24969 tls_first_major=2
24970 tls_first_minor=13
24971 tls_as_opt=--fatal-warnings
24972 ;;
24973 sparc*-*-*)
24974 case "$target" in
24975 sparc*-sun-solaris2.*)
24976 on_solaris=yes
24977 ;;
24978 *)
24979 on_solaris=no
24980 ;;
24981 esac
24982 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24983 conftest_s='
24984 .section ".tdata",#alloc,#write,#tls'
24985 tls_first_major=0
24986 tls_first_minor=0
24987 else
24988 conftest_s='
24989 .section ".tdata","awT",@progbits'
24990 tls_first_major=2
24991 tls_first_minor=14
24992 tls_as_opt="-32 --fatal-warnings"
24993 fi
24994 conftest_s="$conftest_s
24995 foo: .long 25
24996 .text
24997 sethi %tgd_hi22(foo), %o0
24998 add %o0, %tgd_lo10(foo), %o1
24999 add %l7, %o1, %o0, %tgd_add(foo)
25000 call __tls_get_addr, %tgd_call(foo)
25001 sethi %tldm_hi22(foo), %l1
25002 add %l1, %tldm_lo10(foo), %l2
25003 add %l7, %l2, %o0, %tldm_add(foo)
25004 call __tls_get_addr, %tldm_call(foo)
25005 sethi %tldo_hix22(foo), %l3
25006 xor %l3, %tldo_lox10(foo), %l4
25007 add %o0, %l4, %l5, %tldo_add(foo)
25008 sethi %tie_hi22(foo), %o3
25009 add %o3, %tie_lo10(foo), %o3
25010 ld [%l7 + %o3], %o2, %tie_ld(foo)
25011 add %g7, %o2, %o4, %tie_add(foo)
25012 sethi %tle_hix22(foo), %l1
25013 xor %l1, %tle_lox10(foo), %o5
25014 ld [%g7 + %o5], %o1"
25015 ;;
25016 tilepro*-*-*)
25017 conftest_s='
25018 .section ".tdata","awT",@progbits
25019 foo: .long 25
25020 .text
25021 addli r0, zero, tls_gd(foo)
25022 auli r0, zero, tls_gd_ha16(foo)
25023 addli r0, r0, tls_gd_lo16(foo)
25024 jal __tls_get_addr
25025 addli r0, zero, tls_ie(foo)
25026 auli r0, r0, tls_ie_ha16(foo)
25027 addli r0, r0, tls_ie_lo16(foo)'
25028 tls_first_major=2
25029 tls_first_minor=22
25030 tls_as_opt="--fatal-warnings"
25031 ;;
25032 tilegx*-*-*)
25033 conftest_s='
25034 .section ".tdata","awT",@progbits
25035 foo: .long 25
25036 .text
25037 shl16insli r0, zero, hw0_last_tls_gd(foo)
25038 shl16insli r0, zero, hw1_last_tls_gd(foo)
25039 shl16insli r0, r0, hw0_tls_gd(foo)
25040 jal __tls_get_addr
25041 shl16insli r0, zero, hw1_last_tls_ie(foo)
25042 shl16insli r0, r0, hw0_tls_ie(foo)'
25043 tls_first_major=2
25044 tls_first_minor=22
25045 tls_as_opt="--fatal-warnings"
25046 ;;
25047 xtensa*-*-*)
25048 conftest_s='
25049 .section ".tdata","awT",@progbits
25050 foo: .long 25
25051 .text
25052 movi a8, foo@TLSFUNC
25053 movi a10, foo@TLSARG
25054 callx8.tls a8, foo@TLSCALL'
25055 tls_first_major=2
25056 tls_first_minor=19
25057 ;;
25058 esac
25059 set_have_as_tls=no
25060 if test "x$enable_tls" = xno ; then
25061 : # TLS explicitly disabled.
25062 elif test "x$enable_tls" = xyes ; then
25063 set_have_as_tls=yes # TLS explicitly enabled.
25064 elif test -z "$tls_first_major"; then
25065 : # If we don't have a check, assume no support.
25066 else
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25068 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25069 if ${gcc_cv_as_tls+:} false; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_tls=no
25073 if test $in_tree_gas = yes; then
25074 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25075 then gcc_cv_as_tls=yes
25076 fi
25077 elif test x$gcc_cv_as != x; then
25078 $as_echo "$conftest_s" > conftest.s
25079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; }
25085 then
25086 gcc_cv_as_tls=yes
25087 else
25088 echo "configure: failed program was" >&5
25089 cat conftest.s >&5
25090 fi
25091 rm -f conftest.o conftest.s
25092 fi
25093 fi
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25095 $as_echo "$gcc_cv_as_tls" >&6; }
25096 if test $gcc_cv_as_tls = yes; then
25097 set_have_as_tls=yes
25098 fi
25099
25100 fi
25101 if test $set_have_as_tls = yes ; then
25102
25103 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25104
25105 fi
25106
25107 # Target-specific assembler checks.
25108
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25110 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25111 gcc_cv_ld_static_dynamic=no
25112 gcc_cv_ld_static_option='-Bstatic'
25113 gcc_cv_ld_dynamic_option='-Bdynamic'
25114 if test $in_tree_ld = yes ; then
25115 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
25116 gcc_cv_ld_static_dynamic=yes
25117 fi
25118 elif test x$gcc_cv_ld != x; then
25119 # Check if linker supports -Bstatic/-Bdynamic option
25120 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25121 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25122 gcc_cv_ld_static_dynamic=yes
25123 else
25124 case "$target" in
25125 # AIX ld uses -b flags
25126 *-*-aix4.[23]* | *-*-aix[5-9]*)
25127 gcc_cv_ld_static_dynamic=yes
25128 gcc_cv_ld_static_option="-bstatic"
25129 gcc_cv_ld_dynamic_option="-bdynamic"
25130 ;;
25131 # HP-UX ld uses -a flags to select between shared and archive.
25132 *-*-hpux*)
25133 if test x"$gnu_ld" = xno; then
25134 gcc_cv_ld_static_dynamic=yes
25135 gcc_cv_ld_static_option="-aarchive_shared"
25136 gcc_cv_ld_dynamic_option="-adefault"
25137 fi
25138 ;;
25139 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25140 *-*-solaris2*)
25141 gcc_cv_ld_static_dynamic=yes
25142 ;;
25143 esac
25144 fi
25145 fi
25146 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25147
25148 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25149
25150
25151 cat >>confdefs.h <<_ACEOF
25152 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25153 _ACEOF
25154
25155
25156 cat >>confdefs.h <<_ACEOF
25157 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25158 _ACEOF
25159
25160 fi
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25162 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25163
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25165 $as_echo_n "checking linker --version-script option... " >&6; }
25166 gcc_cv_ld_version_script=no
25167 ld_version_script_option=''
25168 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25169 gcc_cv_ld_version_script=yes
25170 ld_version_script_option='--version-script'
25171 elif test x$gcc_cv_ld != x; then
25172 case "$target" in
25173 # Solaris 2 ld always supports -M. It also supports a subset of
25174 # --version-script since Solaris 11.4, but requires
25175 # -z gnu-version-script-compat to activate.
25176 *-*-solaris2*)
25177 gcc_cv_ld_version_script=yes
25178 ld_version_script_option='-M'
25179 ;;
25180 esac
25181 fi
25182 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25184 $as_echo "$gcc_cv_ld_version_script" >&6; }
25185
25186
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25188 $as_echo_n "checking linker soname option... " >&6; }
25189 gcc_cv_ld_soname=no
25190 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25191 gcc_cv_ld_soname=yes
25192 ld_soname_option='-soname'
25193 elif test x$gcc_cv_ld != x; then
25194 case "$target" in
25195 *-*-darwin*)
25196 gcc_cv_ld_soname=yes
25197 ld_soname_option='-install_name'
25198 ;;
25199 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25200 # ld compatiblity since some Solaris 10 update.
25201 *-*-solaris2*)
25202 gcc_cv_ld_soname=yes
25203 ld_soname_option='-h'
25204 ;;
25205 esac
25206 fi
25207 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25209 $as_echo "$gcc_cv_ld_soname" >&6; }
25210
25211
25212 if test x"$demangler_in_ld" = xyes; then
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25214 $as_echo_n "checking linker --demangle support... " >&6; }
25215 gcc_cv_ld_demangle=no
25216 if test $in_tree_ld = yes; then
25217 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 \
25218 gcc_cv_ld_demangle=yes
25219 fi
25220 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25221 # Check if the GNU linker supports --demangle option
25222 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25223 gcc_cv_ld_demangle=yes
25224 fi
25225 fi
25226 if test x"$gcc_cv_ld_demangle" = xyes; then
25227
25228 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25229
25230 fi
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25232 $as_echo "$gcc_cv_ld_demangle" >&6; }
25233 fi
25234
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25236 $as_echo_n "checking linker plugin support... " >&6; }
25237 gcc_cv_lto_plugin=0
25238 if test -f liblto_plugin.la; then
25239 save_ld_ver="$ld_ver"
25240 save_ld_vers_major="$ld_vers_major"
25241 save_ld_vers_minor="$ld_vers_minor"
25242 save_ld_is_gold="$ld_is_gold"
25243
25244 ld_is_gold=no
25245
25246 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25247 ld_ver="GNU ld"
25248 # FIXME: ld_is_gold?
25249 ld_vers_major="$gcc_cv_gld_major_version"
25250 ld_vers_minor="$gcc_cv_gld_minor_version"
25251 else
25252 # Determine plugin linker version.
25253 # FIXME: Partial duplicate from above, generalize.
25254 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25255 if echo "$ld_ver" | grep GNU > /dev/null; then
25256 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25257 ld_is_gold=yes
25258 ld_vers=`echo $ld_ver | sed -n \
25259 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25260 else
25261 ld_vers=`echo $ld_ver | sed -n \
25262 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25263 fi
25264 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25265 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25266 fi
25267 fi
25268
25269 # Determine plugin support.
25270 if echo "$ld_ver" | grep GNU > /dev/null; then
25271 # Require GNU ld or gold 2.21+ for plugin support by default.
25272 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25273 gcc_cv_lto_plugin=2
25274 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25275 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25276 gcc_cv_lto_plugin=1
25277 fi
25278 fi
25279
25280 ld_ver="$save_ld_ver"
25281 ld_vers_major="$save_ld_vers_major"
25282 ld_vers_minor="$save_ld_vers_minor"
25283 ld_is_gold="$save_ld_is_gold"
25284 fi
25285
25286 cat >>confdefs.h <<_ACEOF
25287 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25288 _ACEOF
25289
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25291 $as_echo "$gcc_cv_lto_plugin" >&6; }
25292
25293 # Target OS-specific assembler checks.
25294
25295 case "$target_os" in
25296 darwin*)
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25298 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25299 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25300 $as_echo_n "(cached) " >&6
25301 else
25302 gcc_cv_as_mmacosx_version_min=no
25303 if test x$gcc_cv_as != x; then
25304 $as_echo '.text' > conftest.s
25305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310 test $ac_status = 0; }; }
25311 then
25312 gcc_cv_as_mmacosx_version_min=yes
25313 else
25314 echo "configure: failed program was" >&5
25315 cat conftest.s >&5
25316 fi
25317 rm -f conftest.o conftest.s
25318 fi
25319 fi
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25321 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25322 if test $gcc_cv_as_mmacosx_version_min = yes; then
25323
25324 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25325
25326 fi
25327
25328 ;;
25329 esac
25330
25331 # Target CPU-specific assembler checks.
25332
25333 case "$target" in
25334 aarch64*-*-*)
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25336 $as_echo_n "checking assembler for -mabi option... " >&6; }
25337 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25338 $as_echo_n "(cached) " >&6
25339 else
25340 gcc_cv_as_aarch64_mabi=no
25341 if test x$gcc_cv_as != x; then
25342 $as_echo '.text' > conftest.s
25343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25349 then
25350 gcc_cv_as_aarch64_mabi=yes
25351 else
25352 echo "configure: failed program was" >&5
25353 cat conftest.s >&5
25354 fi
25355 rm -f conftest.o conftest.s
25356 fi
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25359 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25360
25361
25362 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25363
25364 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25365
25366 else
25367 if test x$with_abi = xilp32; then
25368 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25369 Upgrade the Assembler." "$LINENO" 5
25370 fi
25371 if test x"$with_multilib_list" = xdefault; then
25372 TM_MULTILIB_CONFIG=lp64
25373 else
25374 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25375 for aarch64_multilib in ${aarch64_multilibs}; do
25376 case ${aarch64_multilib} in
25377 ilp32)
25378 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25379 Upgrade the Assembler." "$LINENO" 5
25380 ;;
25381 *)
25382 ;;
25383 esac
25384 done
25385 fi
25386 fi
25387 # Check if we have binutils support for relocations types needed by -fpic
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25389 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25390 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25391 $as_echo_n "(cached) " >&6
25392 else
25393 gcc_cv_as_aarch64_picreloc=no
25394 if test x$gcc_cv_as != x; then
25395 $as_echo '
25396 .text
25397 ldr x0, [x2, #:gotpage_lo15:globalsym]
25398 ' > conftest.s
25399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25405 then
25406 gcc_cv_as_aarch64_picreloc=yes
25407 else
25408 echo "configure: failed program was" >&5
25409 cat conftest.s >&5
25410 fi
25411 rm -f conftest.o conftest.s
25412 fi
25413 fi
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25415 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25416 if test $gcc_cv_as_aarch64_picreloc = yes; then
25417
25418 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25419
25420 fi
25421
25422 # Enable Branch Target Identification Mechanism and Return Address
25423 # Signing by default.
25424 # Check whether --enable-standard-branch-protection was given.
25425 if test "${enable_standard_branch_protection+set}" = set; then :
25426 enableval=$enable_standard_branch_protection;
25427 case $enableval in
25428 yes)
25429 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25430 ;;
25431 no)
25432 ;;
25433 *)
25434 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25435 Valid choices are 'yes' and 'no'." "$LINENO" 5
25436 ;;
25437 esac
25438
25439 fi
25440
25441 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25442 # Check whether --enable-fix-cortex-a53-835769 was given.
25443 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25444 enableval=$enable_fix_cortex_a53_835769;
25445 case $enableval in
25446 yes)
25447 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25448 ;;
25449 no)
25450 ;;
25451 *)
25452 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25453 Valid choices are 'yes' and 'no'." "$LINENO" 5
25454 ;;
25455
25456 esac
25457
25458 fi
25459
25460 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25461 # Check whether --enable-fix-cortex-a53-843419 was given.
25462 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25463 enableval=$enable_fix_cortex_a53_843419;
25464 case $enableval in
25465 yes)
25466 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25467 ;;
25468 no)
25469 ;;
25470 *)
25471 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25472 Valid choices are 'yes' and 'no'." "$LINENO" 5
25473 ;;
25474
25475 esac
25476
25477 fi
25478
25479 ;;
25480
25481 # All TARGET_ABI_OSF targets.
25482 alpha*-*-linux* | alpha*-*-*bsd*)
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25484 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25485 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25486 $as_echo_n "(cached) " >&6
25487 else
25488 gcc_cv_as_alpha_explicit_relocs=no
25489 if test $in_tree_gas = yes; then
25490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25491 then gcc_cv_as_alpha_explicit_relocs=yes
25492 fi
25493 elif test x$gcc_cv_as != x; then
25494 $as_echo ' .set nomacro
25495 .text
25496 extbl $3, $2, $3 !lituse_bytoff!1
25497 ldq $2, a($29) !literal!1
25498 ldq $4, b($29) !literal!2
25499 ldq_u $3, 0($2) !lituse_base!1
25500 ldq $27, f($29) !literal!5
25501 jsr $26, ($27), f !lituse_jsr!5
25502 ldah $29, 0($26) !gpdisp!3
25503 lda $0, c($29) !gprel
25504 ldah $1, d($29) !gprelhigh
25505 lda $1, d($1) !gprellow
25506 lda $29, 0($29) !gpdisp!3' > conftest.s
25507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25510 ac_status=$?
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25513 then
25514 gcc_cv_as_alpha_explicit_relocs=yes
25515 else
25516 echo "configure: failed program was" >&5
25517 cat conftest.s >&5
25518 fi
25519 rm -f conftest.o conftest.s
25520 fi
25521 fi
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25523 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25524 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25525
25526 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25527
25528 fi
25529
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25531 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25532 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 gcc_cv_as_alpha_jsrdirect_relocs=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25538 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25539 fi
25540 elif test x$gcc_cv_as != x; then
25541 $as_echo ' .set nomacro
25542 .text
25543 ldq $27, a($29) !literal!1
25544 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25551 then
25552 gcc_cv_as_alpha_jsrdirect_relocs=yes
25553 else
25554 echo "configure: failed program was" >&5
25555 cat conftest.s >&5
25556 fi
25557 rm -f conftest.o conftest.s
25558 fi
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25561 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25562 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25563
25564 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25565
25566 fi
25567
25568 ;;
25569
25570 avr-*-*)
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25572 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25573 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25574 $as_echo_n "(cached) " >&6
25575 else
25576 gcc_cv_as_avr_mlink_relax=no
25577 if test x$gcc_cv_as != x; then
25578 $as_echo '.text' > conftest.s
25579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25585 then
25586 gcc_cv_as_avr_mlink_relax=yes
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25590 fi
25591 rm -f conftest.o conftest.s
25592 fi
25593 fi
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25595 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25596 if test $gcc_cv_as_avr_mlink_relax = yes; then
25597
25598 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25599
25600 fi
25601
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25604 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25605 if ${gcc_cv_as_avr_mrmw+:} false; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_avr_mrmw=no
25609 if test x$gcc_cv_as != x; then
25610 $as_echo '.text' > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25617 then
25618 gcc_cv_as_avr_mrmw=yes
25619 else
25620 echo "configure: failed program was" >&5
25621 cat conftest.s >&5
25622 fi
25623 rm -f conftest.o conftest.s
25624 fi
25625 fi
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25627 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25628 if test $gcc_cv_as_avr_mrmw = yes; then
25629
25630 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25631
25632 fi
25633
25634
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25636 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25637 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25640 gcc_cv_as_avr_mgccisr=no
25641 if test x$gcc_cv_as != x; then
25642 $as_echo '.text
25643 __gcc_isr 1
25644 __gcc_isr 2
25645 __gcc_isr 0,r24
25646 ' > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 gcc_cv_as_avr_mgccisr=yes
25655 else
25656 echo "configure: failed program was" >&5
25657 cat conftest.s >&5
25658 fi
25659 rm -f conftest.o conftest.s
25660 fi
25661 fi
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25663 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25664 if test $gcc_cv_as_avr_mgccisr = yes; then
25665
25666 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25667
25668 fi
25669
25670
25671 # Check how default linker description file implements .rodata for
25672 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25673 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25675 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25676 cat > conftest.s <<EOF
25677 .section .rodata,"a",@progbits
25678 .global xxvaryy
25679 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25680 xxvaryy:
25681 .word 1
25682 EOF
25683 rm -f conftest.nm
25684 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25690 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 if test -s conftest.nm
25703 then
25704 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25706 $as_echo "yes" >&6; }
25707
25708 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25709
25710 else
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25712 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25713 echo "$as_me: nm output was" >&5
25714 cat conftest.nm >&5
25715 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25716 { $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
25717 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25718 fi
25719 else
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25721 $as_echo "test failed" >&6; }
25722 echo "$as_me: failed program was" >&5
25723 cat conftest.s >&5
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25725 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25726 fi
25727 rm -f conftest.s conftest.o conftest.elf conftest.nm
25728 ;;
25729
25730 cris-*-*)
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25732 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25733 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25734 $as_echo_n "(cached) " >&6
25735 else
25736 gcc_cv_as_cris_no_mul_bug=no
25737 if test $in_tree_gas = yes; then
25738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25739 then gcc_cv_as_cris_no_mul_bug=yes
25740 fi
25741 elif test x$gcc_cv_as != x; then
25742 $as_echo '.text' > conftest.s
25743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25749 then
25750 gcc_cv_as_cris_no_mul_bug=yes
25751 else
25752 echo "configure: failed program was" >&5
25753 cat conftest.s >&5
25754 fi
25755 rm -f conftest.o conftest.s
25756 fi
25757 fi
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25759 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25760 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25761
25762 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25763
25764 fi
25765
25766 ;;
25767
25768 sparc*-*-*)
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25770 $as_echo_n "checking assembler for -relax option... " >&6; }
25771 if ${gcc_cv_as_sparc_relax+:} false; then :
25772 $as_echo_n "(cached) " >&6
25773 else
25774 gcc_cv_as_sparc_relax=no
25775 if test x$gcc_cv_as != x; then
25776 $as_echo '.text' > conftest.s
25777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25782 test $ac_status = 0; }; }
25783 then
25784 gcc_cv_as_sparc_relax=yes
25785 else
25786 echo "configure: failed program was" >&5
25787 cat conftest.s >&5
25788 fi
25789 rm -f conftest.o conftest.s
25790 fi
25791 fi
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25793 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25794 if test $gcc_cv_as_sparc_relax = yes; then
25795
25796 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25797
25798 fi
25799
25800
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25802 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25803 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 gcc_cv_as_sparc_gotdata_op=no
25807 if test x$gcc_cv_as != x; then
25808 $as_echo '.text
25809 .align 4
25810 foo:
25811 nop
25812 bar:
25813 sethi %gdop_hix22(foo), %g1
25814 xor %g1, %gdop_lox10(foo), %g1
25815 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25822 then
25823 if test x$gcc_cv_ld != x \
25824 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25825 if test x$gcc_cv_objdump != x; then
25826 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25827 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25828 gcc_cv_as_sparc_gotdata_op=no
25829 else
25830 gcc_cv_as_sparc_gotdata_op=yes
25831 fi
25832 fi
25833 fi
25834 rm -f conftest
25835 else
25836 echo "configure: failed program was" >&5
25837 cat conftest.s >&5
25838 fi
25839 rm -f conftest.o conftest.s
25840 fi
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25843 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25844 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25845
25846 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25847
25848 fi
25849
25850
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25852 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25853 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25854 $as_echo_n "(cached) " >&6
25855 else
25856 gcc_cv_as_sparc_ua_pcrel=no
25857 if test x$gcc_cv_as != x; then
25858 $as_echo '.text
25859 foo:
25860 nop
25861 .data
25862 .align 4
25863 .byte 0
25864 .uaword %r_disp32(foo)' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 if test x$gcc_cv_ld != x \
25873 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25874 gcc_cv_as_sparc_ua_pcrel=yes
25875 fi
25876 rm -f conftest
25877 else
25878 echo "configure: failed program was" >&5
25879 cat conftest.s >&5
25880 fi
25881 rm -f conftest.o conftest.s
25882 fi
25883 fi
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25885 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25886 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25887
25888 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25889
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25892 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25893 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25894 $as_echo_n "(cached) " >&6
25895 else
25896 gcc_cv_as_sparc_ua_pcrel_hidden=no
25897 if test x$gcc_cv_as != x; then
25898 $as_echo '.data
25899 .align 4
25900 .byte 0x31
25901 .uaword %r_disp32(foo)
25902 .byte 0x32, 0x33, 0x34
25903 .global foo
25904 .hidden foo
25905 foo:
25906 .skip 4' > conftest.s
25907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }
25913 then
25914 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25915 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25916 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25917 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25918 if $gcc_cv_objdump -R conftest 2> /dev/null \
25919 | grep 'DISP32' > /dev/null 2>&1; then
25920 :
25921 else
25922 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25923 fi
25924 fi
25925 rm -f conftest
25926 else
25927 echo "configure: failed program was" >&5
25928 cat conftest.s >&5
25929 fi
25930 rm -f conftest.o conftest.s
25931 fi
25932 fi
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25934 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25935 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25936
25937 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25938
25939 fi
25940
25941
25942 fi
25943 # unaligned pcrel relocs
25944
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25946 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25947 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950 gcc_cv_as_sparc_offsetable_lo10=no
25951 if test x$gcc_cv_as != x; then
25952 $as_echo '.text
25953 or %g1, %lo(ab) + 12, %g1
25954 or %g1, %lo(ab + 12), %g1' > conftest.s
25955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25961 then
25962 if test x$gcc_cv_objdump != x \
25963 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25964 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25965 gcc_cv_as_sparc_offsetable_lo10=yes
25966 fi
25967 else
25968 echo "configure: failed program was" >&5
25969 cat conftest.s >&5
25970 fi
25971 rm -f conftest.o conftest.s
25972 fi
25973 fi
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25975 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25976 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25977
25978 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25979
25980 fi
25981
25982
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25984 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25985 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25986 $as_echo_n "(cached) " >&6
25987 else
25988 gcc_cv_as_sparc_fmaf=no
25989 if test x$gcc_cv_as != x; then
25990 $as_echo '.text
25991 .register %g2, #scratch
25992 .register %g3, #scratch
25993 .align 4
25994 fmaddd %f0, %f2, %f4, %f6
25995 addxccc %g1, %g2, %g3
25996 fsrl32 %f2, %f4, %f8
25997 fnaddd %f10, %f12, %f14' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26004 then
26005 gcc_cv_as_sparc_fmaf=yes
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_fmaf" >&5
26014 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26015 if test $gcc_cv_as_sparc_fmaf = yes; then
26016
26017 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26018
26019 fi
26020
26021
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26023 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26024 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26025 $as_echo_n "(cached) " >&6
26026 else
26027 gcc_cv_as_sparc_sparc4=no
26028 if test x$gcc_cv_as != x; then
26029 $as_echo '.text
26030 .register %g2, #scratch
26031 .register %g3, #scratch
26032 .align 4
26033 cxbe %g2, %g3, 1f
26034 1: cwbneg %g2, %g3, 1f
26035 1: sha1
26036 md5
26037 aes_kexpand0 %f4, %f6, %f8
26038 des_round %f38, %f40, %f42, %f44
26039 camellia_f %f54, %f56, %f58, %f60
26040 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26047 then
26048 gcc_cv_as_sparc_sparc4=yes
26049 else
26050 echo "configure: failed program was" >&5
26051 cat conftest.s >&5
26052 fi
26053 rm -f conftest.o conftest.s
26054 fi
26055 fi
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26057 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26058 if test $gcc_cv_as_sparc_sparc4 = yes; then
26059
26060 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26061
26062 fi
26063
26064
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26066 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26067 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070 gcc_cv_as_sparc_sparc5=no
26071 if test x$gcc_cv_as != x; then
26072 $as_echo '.text
26073 .register %g2, #scratch
26074 .register %g3, #scratch
26075 .align 4
26076 subxc %g1, %g2, %g3
26077 fpadd8 %f0, %f2, %f4' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_sparc_sparc5=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26089 fi
26090 rm -f conftest.o conftest.s
26091 fi
26092 fi
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26094 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26095 if test $gcc_cv_as_sparc_sparc5 = yes; then
26096
26097 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26098
26099 fi
26100
26101
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26103 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26104 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_sparc_sparc6=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo '.text
26110 .register %g2, #scratch
26111 .register %g3, #scratch
26112 .align 4
26113 rd %entropy, %g1
26114 fpsll64x %f0, %f2, %f4' > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_sparc_sparc6=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26126 fi
26127 rm -f conftest.o conftest.s
26128 fi
26129 fi
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26131 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26132 if test $gcc_cv_as_sparc_sparc6 = yes; then
26133
26134 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26135
26136 fi
26137
26138
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26140 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26141 if ${gcc_cv_as_sparc_leon+:} false; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_sparc_leon=no
26145 if test x$gcc_cv_as != x; then
26146 $as_echo '.text
26147 .register %g2, #scratch
26148 .register %g3, #scratch
26149 .align 4
26150 smac %g2, %g3, %g1
26151 umac %g2, %g3, %g1
26152 casa [%g2] 0xb, %g3, %g1' > conftest.s
26153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26159 then
26160 gcc_cv_as_sparc_leon=yes
26161 else
26162 echo "configure: failed program was" >&5
26163 cat conftest.s >&5
26164 fi
26165 rm -f conftest.o conftest.s
26166 fi
26167 fi
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26169 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26170 if test $gcc_cv_as_sparc_leon = yes; then
26171
26172 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26173
26174 fi
26175
26176 ;;
26177
26178 i[34567]86-*-* | x86_64-*-*)
26179 case $target_os in
26180 cygwin*)
26181 # Full C++ conformance when using a shared libstdc++-v3 requires some
26182 # support from the Cygwin DLL, which in more recent versions exports
26183 # wrappers to aid in interposing and redirecting operators new, delete,
26184 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26185 # are configuring for a version of Cygwin that exports the wrappers.
26186 if test x$host = x$target && test x$host_cpu = xi686; then
26187 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26188 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26189 gcc_ac_cygwin_dll_wrappers=yes
26190 else
26191 gcc_ac_cygwin_dll_wrappers=no
26192 fi
26193
26194 else
26195 # Can't check presence of libc functions during cross-compile, so
26196 # we just have to assume we're building for an up-to-date target.
26197 gcc_ac_cygwin_dll_wrappers=yes
26198 fi
26199
26200 cat >>confdefs.h <<_ACEOF
26201 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26202 _ACEOF
26203
26204 esac
26205 case $target_os in
26206 cygwin* | pe | mingw32*)
26207 # Recent binutils allows the three-operand form of ".comm" on PE. This
26208 # definition is used unconditionally to initialise the default state of
26209 # the target option variable that governs usage of the feature.
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26211 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26212 if ${gcc_cv_as_comm_has_align+:} false; then :
26213 $as_echo_n "(cached) " >&6
26214 else
26215 gcc_cv_as_comm_has_align=no
26216 if test $in_tree_gas = yes; then
26217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26218 then gcc_cv_as_comm_has_align=yes
26219 fi
26220 elif test x$gcc_cv_as != x; then
26221 $as_echo '.comm foo,1,32' > conftest.s
26222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26224 (eval $ac_try) 2>&5
26225 ac_status=$?
26226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26227 test $ac_status = 0; }; }
26228 then
26229 gcc_cv_as_comm_has_align=yes
26230 else
26231 echo "configure: failed program was" >&5
26232 cat conftest.s >&5
26233 fi
26234 rm -f conftest.o conftest.s
26235 fi
26236 fi
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26238 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26239
26240
26241
26242 cat >>confdefs.h <<_ACEOF
26243 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26244 _ACEOF
26245
26246 # Used for DWARF 2 in PE
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26248 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26249 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252 gcc_cv_as_ix86_pe_secrel32=no
26253 if test $in_tree_gas = yes; then
26254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26255 then gcc_cv_as_ix86_pe_secrel32=yes
26256 fi
26257 elif test x$gcc_cv_as != x; then
26258 $as_echo '.text
26259 foo: nop
26260 .data
26261 .secrel32 foo' > conftest.s
26262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26265 ac_status=$?
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }
26268 then
26269 if test x$gcc_cv_ld != x \
26270 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26271 gcc_cv_as_ix86_pe_secrel32=yes
26272 fi
26273 rm -f conftest
26274 else
26275 echo "configure: failed program was" >&5
26276 cat conftest.s >&5
26277 fi
26278 rm -f conftest.o conftest.s
26279 fi
26280 fi
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26282 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26283 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26284
26285 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26286
26287 fi
26288
26289 # Test if the assembler supports the extended form of the .section
26290 # directive that specifies section alignment. LTO support uses this,
26291 # but normally only after installation, so we warn but don't fail the
26292 # configure if LTO is enabled but the assembler does not support it.
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26294 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26295 if ${gcc_cv_as_section_has_align+:} false; then :
26296 $as_echo_n "(cached) " >&6
26297 else
26298 gcc_cv_as_section_has_align=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26301 then gcc_cv_as_section_has_align=yes
26302 fi
26303 elif test x$gcc_cv_as != x; then
26304 $as_echo '.section lto_test,"dr0"' > conftest.s
26305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26311 then
26312 gcc_cv_as_section_has_align=yes
26313 else
26314 echo "configure: failed program was" >&5
26315 cat conftest.s >&5
26316 fi
26317 rm -f conftest.o conftest.s
26318 fi
26319 fi
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26321 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26322
26323
26324 if test x$gcc_cv_as_section_has_align != xyes; then
26325 case ",$enable_languages," in
26326 *,lto,*)
26327 { $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
26328 $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;}
26329 ;;
26330 esac
26331 fi
26332 ;;
26333 esac
26334
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26336 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26337 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26338 $as_echo_n "(cached) " >&6
26339 else
26340 gcc_cv_as_ix86_xbrace_comment=no
26341 if test x$gcc_cv_as != x; then
26342 $as_echo '.text' > conftest.s
26343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26348 test $ac_status = 0; }; }
26349 then
26350 gcc_cv_as_ix86_xbrace_comment=yes
26351 else
26352 echo "configure: failed program was" >&5
26353 cat conftest.s >&5
26354 fi
26355 rm -f conftest.o conftest.s
26356 fi
26357 fi
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26359 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26360 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26361
26362 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26363
26364 fi
26365
26366
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26368 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26369 if ${gcc_cv_as_ix86_filds+:} false; then :
26370 $as_echo_n "(cached) " >&6
26371 else
26372 gcc_cv_as_ix86_filds=no
26373 if test x$gcc_cv_as != x; then
26374 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26377 (eval $ac_try) 2>&5
26378 ac_status=$?
26379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26380 test $ac_status = 0; }; }
26381 then
26382 gcc_cv_as_ix86_filds=yes
26383 else
26384 echo "configure: failed program was" >&5
26385 cat conftest.s >&5
26386 fi
26387 rm -f conftest.o conftest.s
26388 fi
26389 fi
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26391 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26392 if test $gcc_cv_as_ix86_filds = yes; then
26393
26394 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26395
26396 fi
26397
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26400 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26401 if ${gcc_cv_as_ix86_fildq+:} false; then :
26402 $as_echo_n "(cached) " >&6
26403 else
26404 gcc_cv_as_ix86_fildq=no
26405 if test x$gcc_cv_as != x; then
26406 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26409 (eval $ac_try) 2>&5
26410 ac_status=$?
26411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26412 test $ac_status = 0; }; }
26413 then
26414 gcc_cv_as_ix86_fildq=yes
26415 else
26416 echo "configure: failed program was" >&5
26417 cat conftest.s >&5
26418 fi
26419 rm -f conftest.o conftest.s
26420 fi
26421 fi
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26423 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26424 if test $gcc_cv_as_ix86_fildq = yes; then
26425
26426 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26427
26428 fi
26429
26430
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26432 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26433 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26434 $as_echo_n "(cached) " >&6
26435 else
26436 gcc_cv_as_ix86_cmov_sun_syntax=no
26437 if test x$gcc_cv_as != x; then
26438 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26445 then
26446 gcc_cv_as_ix86_cmov_sun_syntax=yes
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26450 fi
26451 rm -f conftest.o conftest.s
26452 fi
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26455 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26456 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26457
26458 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26459
26460 fi
26461
26462
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26464 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26465 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26466 $as_echo_n "(cached) " >&6
26467 else
26468 gcc_cv_as_ix86_ffreep=no
26469 if test x$gcc_cv_as != x; then
26470 $as_echo 'ffreep %st(1)' > conftest.s
26471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 then
26478 gcc_cv_as_ix86_ffreep=yes
26479 else
26480 echo "configure: failed program was" >&5
26481 cat conftest.s >&5
26482 fi
26483 rm -f conftest.o conftest.s
26484 fi
26485 fi
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26487 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26488 if test $gcc_cv_as_ix86_ffreep = yes; then
26489
26490 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26491
26492 fi
26493
26494
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26496 $as_echo_n "checking assembler for .quad directive... " >&6; }
26497 if ${gcc_cv_as_ix86_quad+:} false; then :
26498 $as_echo_n "(cached) " >&6
26499 else
26500 gcc_cv_as_ix86_quad=no
26501 if test x$gcc_cv_as != x; then
26502 $as_echo '.quad 0' > conftest.s
26503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26508 test $ac_status = 0; }; }
26509 then
26510 gcc_cv_as_ix86_quad=yes
26511 else
26512 echo "configure: failed program was" >&5
26513 cat conftest.s >&5
26514 fi
26515 rm -f conftest.o conftest.s
26516 fi
26517 fi
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26519 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26520 if test $gcc_cv_as_ix86_quad = yes; then
26521
26522 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26523
26524 fi
26525
26526
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26528 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26529 if ${gcc_cv_as_ix86_sahf+:} false; then :
26530 $as_echo_n "(cached) " >&6
26531 else
26532 gcc_cv_as_ix86_sahf=no
26533 if test x$gcc_cv_as != x; then
26534 $as_echo '.code64
26535 sahf' > 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_sahf=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_sahf" >&5
26552 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26553 if test $gcc_cv_as_ix86_sahf = yes; then
26554
26555 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26556
26557 fi
26558
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26561 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26562 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_ix86_interunit_movq=no
26566 if test x$gcc_cv_as != x; then
26567 $as_echo '.code64
26568 movq %mm0, %rax
26569 movq %rax, %xmm0' > conftest.s
26570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26575 test $ac_status = 0; }; }
26576 then
26577 gcc_cv_as_ix86_interunit_movq=yes
26578 else
26579 echo "configure: failed program was" >&5
26580 cat conftest.s >&5
26581 fi
26582 rm -f conftest.o conftest.s
26583 fi
26584 fi
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26586 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26587
26588
26589
26590 cat >>confdefs.h <<_ACEOF
26591 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26592 _ACEOF
26593
26594
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26596 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26597 if ${gcc_cv_as_ix86_hle+:} false; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_ix86_hle=no
26601 if test x$gcc_cv_as != x; then
26602 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608 test $ac_status = 0; }; }
26609 then
26610 gcc_cv_as_ix86_hle=yes
26611 else
26612 echo "configure: failed program was" >&5
26613 cat conftest.s >&5
26614 fi
26615 rm -f conftest.o conftest.s
26616 fi
26617 fi
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26619 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26620 if test $gcc_cv_as_ix86_hle = yes; then
26621
26622 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26623
26624 fi
26625
26626
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26628 $as_echo_n "checking assembler for swap suffix... " >&6; }
26629 if ${gcc_cv_as_ix86_swap+:} false; then :
26630 $as_echo_n "(cached) " >&6
26631 else
26632 gcc_cv_as_ix86_swap=no
26633 if test x$gcc_cv_as != x; then
26634 $as_echo 'movl.s %esp, %ebp' > conftest.s
26635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 then
26642 gcc_cv_as_ix86_swap=yes
26643 else
26644 echo "configure: failed program was" >&5
26645 cat conftest.s >&5
26646 fi
26647 rm -f conftest.o conftest.s
26648 fi
26649 fi
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26651 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26652 if test $gcc_cv_as_ix86_swap = yes; then
26653
26654 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26655
26656 fi
26657
26658
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26660 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26661 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26662 $as_echo_n "(cached) " >&6
26663 else
26664 gcc_cv_as_ix86_diff_sect_delta=no
26665 if test x$gcc_cv_as != x; then
26666 $as_echo '.section .rodata
26667 .L1:
26668 .long .L2-.L1
26669 .long .L3-.L1
26670 .text
26671 .L3: nop
26672 .L2: nop' > conftest.s
26673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26678 test $ac_status = 0; }; }
26679 then
26680 gcc_cv_as_ix86_diff_sect_delta=yes
26681 else
26682 echo "configure: failed program was" >&5
26683 cat conftest.s >&5
26684 fi
26685 rm -f conftest.o conftest.s
26686 fi
26687 fi
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26689 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26690 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26691
26692 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26693
26694 fi
26695
26696
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26698 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26699 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26700 $as_echo_n "(cached) " >&6
26701 else
26702 gcc_cv_as_ix86_rep_lock_prefix=no
26703 if test x$gcc_cv_as != x; then
26704 $as_echo 'rep movsl
26705 rep ret
26706 rep nop
26707 rep bsf %ecx, %eax
26708 rep bsr %ecx, %eax
26709 lock addl %edi, (%eax,%esi)
26710 lock orl $0, (%esp)' > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 gcc_cv_as_ix86_rep_lock_prefix=yes
26719 else
26720 echo "configure: failed program was" >&5
26721 cat conftest.s >&5
26722 fi
26723 rm -f conftest.o conftest.s
26724 fi
26725 fi
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26727 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26728 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26729
26730 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26731
26732 fi
26733
26734
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26736 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26737 if ${gcc_cv_as_ix86_ud2+:} false; then :
26738 $as_echo_n "(cached) " >&6
26739 else
26740 gcc_cv_as_ix86_ud2=no
26741 if test x$gcc_cv_as != x; then
26742 $as_echo 'ud2' > conftest.s
26743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26749 then
26750 gcc_cv_as_ix86_ud2=yes
26751 else
26752 echo "configure: failed program was" >&5
26753 cat conftest.s >&5
26754 fi
26755 rm -f conftest.o conftest.s
26756 fi
26757 fi
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26759 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26760 if test $gcc_cv_as_ix86_ud2 = yes; then
26761
26762 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26763
26764 fi
26765
26766
26767 # Enforce 32-bit output with gas and gld.
26768 if test x$gas = xyes; then
26769 as_ix86_gas_32_opt="--32"
26770 fi
26771 if echo "$ld_ver" | grep GNU > /dev/null; then
26772 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26773 ld_ix86_gld_32_opt="-melf_i386_sol2"
26774 else
26775 ld_ix86_gld_32_opt="-melf_i386"
26776 fi
26777 fi
26778
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26780 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26781 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 gcc_cv_as_ix86_tlsgdplt=no
26785 if test x$gcc_cv_as != x; then
26786 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26793 then
26794 if test x$gcc_cv_ld != x \
26795 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26796 gcc_cv_as_ix86_tlsgdplt=yes
26797 fi
26798 rm -f conftest
26799 else
26800 echo "configure: failed program was" >&5
26801 cat conftest.s >&5
26802 fi
26803 rm -f conftest.o conftest.s
26804 fi
26805 fi
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26807 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26808 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26809
26810 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26811
26812 fi
26813
26814
26815 conftest_s='
26816 .section .tdata,"aw'$tls_section_flag'",@progbits
26817 tls_ld:
26818 .section .text,"ax",@progbits
26819 call tls_ld@tlsldmplt'
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26822 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26823 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26824 $as_echo_n "(cached) " >&6
26825 else
26826 gcc_cv_as_ix86_tlsldmplt=no
26827 if test x$gcc_cv_as != x; then
26828 $as_echo "$conftest_s" > conftest.s
26829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26835 then
26836 if test x$gcc_cv_ld != x \
26837 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26838 gcc_cv_as_ix86_tlsldmplt=yes
26839 fi
26840 rm -f conftest
26841 else
26842 echo "configure: failed program was" >&5
26843 cat conftest.s >&5
26844 fi
26845 rm -f conftest.o conftest.s
26846 fi
26847 fi
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26849 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26850
26851
26852
26853 cat >>confdefs.h <<_ACEOF
26854 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26855 _ACEOF
26856
26857
26858 conftest_s='
26859 .section .text,"ax",@progbits
26860 .globl _start
26861 .type _start, @function
26862 _start:
26863 leal value@tlsldm(%ebx), %eax
26864 call ___tls_get_addr@plt
26865
26866 .section .tdata,"aw'$tls_section_flag'",@progbits
26867 .type value, @object
26868 value:'
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26870 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26871 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26872 $as_echo_n "(cached) " >&6
26873 else
26874 gcc_cv_as_ix86_tlsldm=no
26875 if test x$gcc_cv_as != x; then
26876 $as_echo "$conftest_s" > conftest.s
26877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26882 test $ac_status = 0; }; }
26883 then
26884 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26885 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26886 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26887 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26888 gcc_cv_as_ix86_tlsldm=yes
26889 fi
26890 fi
26891 rm -f conftest
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26895 fi
26896 rm -f conftest.o conftest.s
26897 fi
26898 fi
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26900 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26901
26902
26903
26904 cat >>confdefs.h <<_ACEOF
26905 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26906 _ACEOF
26907
26908
26909 conftest_s='
26910 .data
26911 bar:
26912 .byte 1
26913 .text
26914 .global _start
26915 _start:
26916 cmpl $0, bar@GOT
26917 jmp *_start@GOT'
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26919 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26920 if ${gcc_cv_as_ix86_got32x+:} false; then :
26921 $as_echo_n "(cached) " >&6
26922 else
26923 gcc_cv_as_ix86_got32x=no
26924 if test x$gcc_cv_as != x; then
26925 $as_echo "$conftest_s" > conftest.s
26926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26931 test $ac_status = 0; }; }
26932 then
26933 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26934 && test x$gcc_cv_readelf != x \
26935 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26936 | grep R_386_GOT32X > /dev/null 2>&1 \
26937 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26938 if $gcc_cv_objdump -dw conftest 2>&1 \
26939 | grep 0xffffff > /dev/null 2>&1; then
26940 gcc_cv_as_ix86_got32x=no
26941 else
26942 gcc_cv_as_ix86_got32x=yes
26943 fi
26944 fi
26945 rm -f conftest
26946 else
26947 echo "configure: failed program was" >&5
26948 cat conftest.s >&5
26949 fi
26950 rm -f conftest.o conftest.s
26951 fi
26952 fi
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26954 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26955
26956
26957
26958 cat >>confdefs.h <<_ACEOF
26959 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26960 _ACEOF
26961
26962
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26964 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26965 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26966 $as_echo_n "(cached) " >&6
26967 else
26968 gcc_cv_as_ix86_gotoff_in_data=no
26969 if test $in_tree_gas = yes; then
26970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26971 then gcc_cv_as_ix86_gotoff_in_data=yes
26972 fi
26973 elif test x$gcc_cv_as != x; then
26974 $as_echo ' .text
26975 .L0:
26976 nop
26977 .data
26978 .long .L0@GOTOFF' > conftest.s
26979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26985 then
26986 gcc_cv_as_ix86_gotoff_in_data=yes
26987 else
26988 echo "configure: failed program was" >&5
26989 cat conftest.s >&5
26990 fi
26991 rm -f conftest.o conftest.s
26992 fi
26993 fi
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26995 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26996
26997
26998
26999 cat >>confdefs.h <<_ACEOF
27000 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27001 _ACEOF
27002
27003
27004 conftest_s='
27005 .section .text,"ax",@progbits
27006 .globl _start
27007 .type _start, @function
27008 _start:
27009 leal ld@tlsldm(%ecx), %eax
27010 call *___tls_get_addr@GOT(%ecx)
27011 leal gd@tlsgd(%ecx), %eax
27012 call *___tls_get_addr@GOT(%ecx)
27013
27014 .section .tdata,"aw'$tls_section_flag'",@progbits
27015 .type ld, @object
27016 ld:
27017 .byte 0
27018 .globl gd
27019 .type gd, @object
27020 gd:
27021 .byte 0'
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27023 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27024 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27025 $as_echo_n "(cached) " >&6
27026 else
27027 gcc_cv_as_ix86_tls_get_addr_via_got=no
27028 if test x$gcc_cv_as != x; then
27029 $as_echo "$conftest_s" > conftest.s
27030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27035 test $ac_status = 0; }; }
27036 then
27037 if test x$gcc_cv_ld != x \
27038 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27039 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27040 fi
27041 rm -f conftest
27042 else
27043 echo "configure: failed program was" >&5
27044 cat conftest.s >&5
27045 fi
27046 rm -f conftest.o conftest.s
27047 fi
27048 fi
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27050 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27051
27052
27053
27054 cat >>confdefs.h <<_ACEOF
27055 #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`
27056 _ACEOF
27057
27058 ;;
27059
27060 ia64*-*-*)
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27062 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27063 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27064 $as_echo_n "(cached) " >&6
27065 else
27066 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27067 if test $in_tree_gas = yes; then
27068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27069 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27070 fi
27071 elif test x$gcc_cv_as != x; then
27072 $as_echo ' .text
27073 addl r15 = @ltoffx(x#), gp
27074 ;;
27075 ld8.mov r16 = [r15], x#
27076 ' > conftest.s
27077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; }
27083 then
27084 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27085 else
27086 echo "configure: failed program was" >&5
27087 cat conftest.s >&5
27088 fi
27089 rm -f conftest.o conftest.s
27090 fi
27091 fi
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27093 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27094 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27095
27096 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27097
27098 fi
27099
27100
27101 ;;
27102
27103 powerpc*-*-*)
27104
27105 case $target in
27106 *-*-darwin*)
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27108 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27109 if ${gcc_cv_as_machine_directive+:} false; then :
27110 $as_echo_n "(cached) " >&6
27111 else
27112 gcc_cv_as_machine_directive=no
27113 if test x$gcc_cv_as != x; then
27114 $as_echo ' .machine ppc7400' > conftest.s
27115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; }
27121 then
27122 gcc_cv_as_machine_directive=yes
27123 else
27124 echo "configure: failed program was" >&5
27125 cat conftest.s >&5
27126 fi
27127 rm -f conftest.o conftest.s
27128 fi
27129 fi
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27131 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27132
27133
27134 if test x$gcc_cv_as_machine_directive != xyes; then
27135 echo "*** This target requires an assembler supporting \".machine\"" >&2
27136 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27137 test x$build = x$target && exit 1
27138 fi
27139 ;;
27140 esac
27141
27142 case $target in
27143 *-*-aix*) conftest_s=' .machine "pwr5"
27144 .csect .text[PR]
27145 mfcr 3,128';;
27146 *-*-darwin*) conftest_s=' .text
27147 mfcr r3,128';;
27148 *) conftest_s=' .machine power4
27149 .text
27150 mfcr 3,128';;
27151 esac
27152
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27154 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27155 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27156 $as_echo_n "(cached) " >&6
27157 else
27158 gcc_cv_as_powerpc_mfcrf=no
27159 if test $in_tree_gas = yes; then
27160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27161 then gcc_cv_as_powerpc_mfcrf=yes
27162 fi
27163 elif test x$gcc_cv_as != x; then
27164 $as_echo "$conftest_s" > conftest.s
27165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27171 then
27172 gcc_cv_as_powerpc_mfcrf=yes
27173 else
27174 echo "configure: failed program was" >&5
27175 cat conftest.s >&5
27176 fi
27177 rm -f conftest.o conftest.s
27178 fi
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27181 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27182 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27183
27184 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27185
27186 fi
27187
27188
27189 case $target in
27190 *-*-aix*) conftest_s=' .csect .text[PR]
27191 LCF..0:
27192 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27193 *-*-darwin*)
27194 conftest_s=' .text
27195 LCF0:
27196 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27197 *) conftest_s=' .text
27198 .LCF0:
27199 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27200 esac
27201
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27203 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27204 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27205 $as_echo_n "(cached) " >&6
27206 else
27207 gcc_cv_as_powerpc_rel16=no
27208 if test $in_tree_gas = yes; then
27209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27210 then gcc_cv_as_powerpc_rel16=yes
27211 fi
27212 elif test x$gcc_cv_as != x; then
27213 $as_echo "$conftest_s" > conftest.s
27214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27219 test $ac_status = 0; }; }
27220 then
27221 gcc_cv_as_powerpc_rel16=yes
27222 else
27223 echo "configure: failed program was" >&5
27224 cat conftest.s >&5
27225 fi
27226 rm -f conftest.o conftest.s
27227 fi
27228 fi
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27230 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27231 if test $gcc_cv_as_powerpc_rel16 = yes; then
27232
27233 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27234
27235 fi
27236
27237
27238 case $target in
27239 *-*-aix*) conftest_s=' .machine "pwr7"
27240 .csect .text[PR]
27241 lxvd2x 1,2,3';;
27242 *) conftest_s=' .machine power7
27243 .text
27244 lxvd2x 1,2,3';;
27245 esac
27246
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27248 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27249 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27250 $as_echo_n "(cached) " >&6
27251 else
27252 gcc_cv_as_powerpc_vsx=no
27253 if test $in_tree_gas = yes; then
27254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27255 then gcc_cv_as_powerpc_vsx=yes
27256 fi
27257 elif test x$gcc_cv_as != x; then
27258 $as_echo "$conftest_s" > conftest.s
27259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27261 (eval $ac_try) 2>&5
27262 ac_status=$?
27263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27264 test $ac_status = 0; }; }
27265 then
27266 gcc_cv_as_powerpc_vsx=yes
27267 else
27268 echo "configure: failed program was" >&5
27269 cat conftest.s >&5
27270 fi
27271 rm -f conftest.o conftest.s
27272 fi
27273 fi
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27275 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27276 if test $gcc_cv_as_powerpc_vsx = yes; then
27277
27278 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27279
27280 fi
27281
27282
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27284 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27285 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27286 $as_echo_n "(cached) " >&6
27287 else
27288 gcc_cv_as_powerpc_gnu_attribute=no
27289 if test $in_tree_gas = yes; then
27290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27291 then gcc_cv_as_powerpc_gnu_attribute=yes
27292 fi
27293 elif test x$gcc_cv_as != x; then
27294 $as_echo '.gnu_attribute 4,1' > conftest.s
27295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27298 ac_status=$?
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }
27301 then
27302 gcc_cv_as_powerpc_gnu_attribute=yes
27303 else
27304 echo "configure: failed program was" >&5
27305 cat conftest.s >&5
27306 fi
27307 rm -f conftest.o conftest.s
27308 fi
27309 fi
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27311 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27312 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27313
27314 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27315
27316 fi
27317
27318
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27320 $as_echo_n "checking assembler for tls marker support... " >&6; }
27321 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27322 $as_echo_n "(cached) " >&6
27323 else
27324 gcc_cv_as_powerpc_tls_markers=no
27325 if test $in_tree_gas = yes; then
27326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27327 then gcc_cv_as_powerpc_tls_markers=yes
27328 fi
27329 elif test x$gcc_cv_as != x; then
27330 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27337 then
27338 gcc_cv_as_powerpc_tls_markers=yes
27339 else
27340 echo "configure: failed program was" >&5
27341 cat conftest.s >&5
27342 fi
27343 rm -f conftest.o conftest.s
27344 fi
27345 fi
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27347 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27348 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27349
27350 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27351
27352 fi
27353
27354
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27356 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27357 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27358 $as_echo_n "(cached) " >&6
27359 else
27360 gcc_cv_as_powerpc_entry_markers=no
27361 if test $in_tree_gas = yes; then
27362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27363 then gcc_cv_as_powerpc_entry_markers=yes
27364 fi
27365 elif test x$gcc_cv_as != x; then
27366 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27369 (eval $ac_try) 2>&5
27370 ac_status=$?
27371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27372 test $ac_status = 0; }; }
27373 then
27374 gcc_cv_as_powerpc_entry_markers=yes
27375 else
27376 echo "configure: failed program was" >&5
27377 cat conftest.s >&5
27378 fi
27379 rm -f conftest.o conftest.s
27380 fi
27381 fi
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27383 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27384 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27385
27386 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27387
27388 fi
27389
27390
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27392 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27393 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27394 $as_echo_n "(cached) " >&6
27395 else
27396 gcc_cv_as_powerpc_pltseq_markers=no
27397 if test $in_tree_gas = yes; then
27398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27399 then gcc_cv_as_powerpc_pltseq_markers=yes
27400 fi
27401 elif test x$gcc_cv_as != x; then
27402 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27408 test $ac_status = 0; }; }
27409 then
27410 gcc_cv_as_powerpc_pltseq_markers=yes
27411 else
27412 echo "configure: failed program was" >&5
27413 cat conftest.s >&5
27414 fi
27415 rm -f conftest.o conftest.s
27416 fi
27417 fi
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27419 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27420 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27421
27422 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27423
27424 fi
27425
27426
27427 case $target in
27428 *-*-aix*)
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27430 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27431 if ${gcc_cv_as_aix_ref+:} false; then :
27432 $as_echo_n "(cached) " >&6
27433 else
27434 gcc_cv_as_aix_ref=no
27435 if test $in_tree_gas = yes; then
27436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27437 then gcc_cv_as_aix_ref=yes
27438 fi
27439 elif test x$gcc_cv_as != x; then
27440 $as_echo ' .csect stuff[rw]
27441 stuff:
27442 .long 1
27443 .extern sym
27444 .ref sym
27445 ' > conftest.s
27446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27451 test $ac_status = 0; }; }
27452 then
27453 gcc_cv_as_aix_ref=yes
27454 else
27455 echo "configure: failed program was" >&5
27456 cat conftest.s >&5
27457 fi
27458 rm -f conftest.o conftest.s
27459 fi
27460 fi
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27462 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27463 if test $gcc_cv_as_aix_ref = yes; then
27464
27465 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27466
27467 fi
27468
27469
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27471 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27472 if ${gcc_cv_as_aix_dwloc+:} false; then :
27473 $as_echo_n "(cached) " >&6
27474 else
27475 gcc_cv_as_aix_dwloc=no
27476 if test $in_tree_gas = yes; then
27477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27478 then gcc_cv_as_aix_dwloc=yes
27479 fi
27480 elif test x$gcc_cv_as != x; then
27481 $as_echo ' .dwsect 0xA0000
27482 Lframe..0:
27483 .vbyte 4,Lframe..0
27484 ' > conftest.s
27485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27487 (eval $ac_try) 2>&5
27488 ac_status=$?
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; }
27491 then
27492 gcc_cv_as_aix_dwloc=yes
27493 else
27494 echo "configure: failed program was" >&5
27495 cat conftest.s >&5
27496 fi
27497 rm -f conftest.o conftest.s
27498 fi
27499 fi
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27501 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27502 if test $gcc_cv_as_aix_dwloc = yes; then
27503
27504 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27505
27506 fi
27507
27508 ;;
27509 esac
27510 ;;
27511
27512 mips*-*-*)
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27514 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27515 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27516 $as_echo_n "(cached) " >&6
27517 else
27518 gcc_cv_as_mips_explicit_relocs=no
27519 if test $in_tree_gas = yes; then
27520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27521 then gcc_cv_as_mips_explicit_relocs=yes
27522 fi
27523 elif test x$gcc_cv_as != x; then
27524 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27527 (eval $ac_try) 2>&5
27528 ac_status=$?
27529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27530 test $ac_status = 0; }; }
27531 then
27532 gcc_cv_as_mips_explicit_relocs=yes
27533 else
27534 echo "configure: failed program was" >&5
27535 cat conftest.s >&5
27536 fi
27537 rm -f conftest.o conftest.s
27538 fi
27539 fi
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27541 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27542 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27543 if test x$target_cpu_default = x
27544 then target_cpu_default=MASK_EXPLICIT_RELOCS
27545 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27546 fi
27547 fi
27548
27549
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27551 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27552 if ${gcc_cv_as_mips_no_shared+:} false; then :
27553 $as_echo_n "(cached) " >&6
27554 else
27555 gcc_cv_as_mips_no_shared=no
27556 if test $in_tree_gas = yes; then
27557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27558 then gcc_cv_as_mips_no_shared=yes
27559 fi
27560 elif test x$gcc_cv_as != x; then
27561 $as_echo 'nop' > conftest.s
27562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27564 (eval $ac_try) 2>&5
27565 ac_status=$?
27566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27567 test $ac_status = 0; }; }
27568 then
27569 gcc_cv_as_mips_no_shared=yes
27570 else
27571 echo "configure: failed program was" >&5
27572 cat conftest.s >&5
27573 fi
27574 rm -f conftest.o conftest.s
27575 fi
27576 fi
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27578 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27579 if test $gcc_cv_as_mips_no_shared = yes; then
27580
27581 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27582
27583 fi
27584
27585
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27587 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27588 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27589 $as_echo_n "(cached) " >&6
27590 else
27591 gcc_cv_as_mips_gnu_attribute=no
27592 if test $in_tree_gas = yes; then
27593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27594 then gcc_cv_as_mips_gnu_attribute=yes
27595 fi
27596 elif test x$gcc_cv_as != x; then
27597 $as_echo '.gnu_attribute 4,1' > conftest.s
27598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27600 (eval $ac_try) 2>&5
27601 ac_status=$?
27602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27603 test $ac_status = 0; }; }
27604 then
27605 gcc_cv_as_mips_gnu_attribute=yes
27606 else
27607 echo "configure: failed program was" >&5
27608 cat conftest.s >&5
27609 fi
27610 rm -f conftest.o conftest.s
27611 fi
27612 fi
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27614 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27615 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27616
27617 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27618
27619 fi
27620
27621
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27623 $as_echo_n "checking assembler for .module support... " >&6; }
27624 if ${gcc_cv_as_mips_dot_module+:} false; then :
27625 $as_echo_n "(cached) " >&6
27626 else
27627 gcc_cv_as_mips_dot_module=no
27628 if test x$gcc_cv_as != x; then
27629 $as_echo '.module mips2
27630 .module fp=xx' > conftest.s
27631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27633 (eval $ac_try) 2>&5
27634 ac_status=$?
27635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27636 test $ac_status = 0; }; }
27637 then
27638 gcc_cv_as_mips_dot_module=yes
27639 else
27640 echo "configure: failed program was" >&5
27641 cat conftest.s >&5
27642 fi
27643 rm -f conftest.o conftest.s
27644 fi
27645 fi
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27647 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27648 if test $gcc_cv_as_mips_dot_module = yes; then
27649
27650 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27651
27652 fi
27653
27654 if test x$gcc_cv_as_mips_dot_module = xno \
27655 && test x$with_fp_32 != x; then
27656 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27657 fi
27658
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27660 $as_echo_n "checking assembler for .micromips support... " >&6; }
27661 if ${gcc_cv_as_micromips_support+:} false; then :
27662 $as_echo_n "(cached) " >&6
27663 else
27664 gcc_cv_as_micromips_support=no
27665 if test x$gcc_cv_as != x; then
27666 $as_echo '.set micromips' > conftest.s
27667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27669 (eval $ac_try) 2>&5
27670 ac_status=$?
27671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27672 test $ac_status = 0; }; }
27673 then
27674 gcc_cv_as_micromips_support=yes
27675 else
27676 echo "configure: failed program was" >&5
27677 cat conftest.s >&5
27678 fi
27679 rm -f conftest.o conftest.s
27680 fi
27681 fi
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27683 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27684 if test $gcc_cv_as_micromips_support = yes; then
27685
27686 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27687
27688 fi
27689
27690
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27692 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27693 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27694 $as_echo_n "(cached) " >&6
27695 else
27696 gcc_cv_as_mips_dtprelword=no
27697 if test $in_tree_gas = yes; then
27698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27699 then gcc_cv_as_mips_dtprelword=yes
27700 fi
27701 elif test x$gcc_cv_as != x; then
27702 $as_echo '.section .tdata,"awT",@progbits
27703 x:
27704 .word 2
27705 .text
27706 .dtprelword x+0x8000' > conftest.s
27707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27712 test $ac_status = 0; }; }
27713 then
27714 gcc_cv_as_mips_dtprelword=yes
27715 else
27716 echo "configure: failed program was" >&5
27717 cat conftest.s >&5
27718 fi
27719 rm -f conftest.o conftest.s
27720 fi
27721 fi
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27723 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27724 if test $gcc_cv_as_mips_dtprelword = yes; then
27725
27726 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27727
27728 fi
27729
27730
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27732 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27733 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27734 $as_echo_n "(cached) " >&6
27735 else
27736 gcc_cv_as_mips_dspr1_mult=no
27737 if test x$gcc_cv_as != x; then
27738 $as_echo ' .set mips32r2
27739 .set nodspr2
27740 .set dsp
27741 madd $ac3,$4,$5
27742 maddu $ac3,$4,$5
27743 msub $ac3,$4,$5
27744 msubu $ac3,$4,$5
27745 mult $ac3,$4,$5
27746 multu $ac3,$4,$5' > conftest.s
27747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; }
27753 then
27754 gcc_cv_as_mips_dspr1_mult=yes
27755 else
27756 echo "configure: failed program was" >&5
27757 cat conftest.s >&5
27758 fi
27759 rm -f conftest.o conftest.s
27760 fi
27761 fi
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27763 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27764 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27765
27766 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27767
27768 fi
27769
27770
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27772 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27773 gcc_cv_as_ld_jalr_reloc=no
27774 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27775 if test $in_tree_ld = yes ; then
27776 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 \
27777 && test $in_tree_ld_is_elf = yes; then
27778 gcc_cv_as_ld_jalr_reloc=yes
27779 fi
27780 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27781 echo ' .ent x' > conftest.s
27782 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27783 echo ' lw $25,%call16(y)($28)' >> conftest.s
27784 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27785 echo '1: jalr $25' >> conftest.s
27786 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27787 echo '1: jalr $25' >> conftest.s
27788 echo ' .end x' >> conftest.s
27789 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27790 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27791 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27792 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27793 gcc_cv_as_ld_jalr_reloc=yes
27794 fi
27795 fi
27796 rm -f conftest.*
27797 fi
27798 fi
27799 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27800 if test x$target_cpu_default = x; then
27801 target_cpu_default=MASK_RELAX_PIC_CALLS
27802 else
27803 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27804 fi
27805 fi
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27807 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27808
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27810 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27811 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27812 $as_echo_n "(cached) " >&6
27813 else
27814 gcc_cv_ld_mips_personality_relaxation=no
27815 if test $in_tree_ld = yes ; then
27816 if test "$gcc_cv_gld_major_version" -eq 2 \
27817 -a "$gcc_cv_gld_minor_version" -ge 21 \
27818 -o "$gcc_cv_gld_major_version" -gt 2; then
27819 gcc_cv_ld_mips_personality_relaxation=yes
27820 fi
27821 elif test x$gcc_cv_as != x \
27822 -a x$gcc_cv_ld != x \
27823 -a x$gcc_cv_readelf != x ; then
27824 cat > conftest.s <<EOF
27825 .cfi_startproc
27826 .cfi_personality 0x80,indirect_ptr
27827 .ent test
27828 test:
27829 nop
27830 .end test
27831 .cfi_endproc
27832
27833 .section .data,"aw",@progbits
27834 indirect_ptr:
27835 .dc.a personality
27836 EOF
27837 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27838 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27839 if $gcc_cv_readelf -d conftest 2>&1 \
27840 | grep TEXTREL > /dev/null 2>&1; then
27841 :
27842 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27843 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27844 :
27845 else
27846 gcc_cv_ld_mips_personality_relaxation=yes
27847 fi
27848 fi
27849 fi
27850 rm -f conftest.s conftest.o conftest
27851 fi
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27853 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27854 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27855
27856 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27857
27858 fi
27859
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27861 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27862 if ${gcc_cv_as_mips_nan+:} false; then :
27863 $as_echo_n "(cached) " >&6
27864 else
27865 gcc_cv_as_mips_nan=no
27866 if test x$gcc_cv_as != x; then
27867 $as_echo '' > conftest.s
27868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27870 (eval $ac_try) 2>&5
27871 ac_status=$?
27872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27873 test $ac_status = 0; }; }
27874 then
27875 gcc_cv_as_mips_nan=yes
27876 else
27877 echo "configure: failed program was" >&5
27878 cat conftest.s >&5
27879 fi
27880 rm -f conftest.o conftest.s
27881 fi
27882 fi
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27884 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27885 if test $gcc_cv_as_mips_nan = yes; then
27886
27887 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27888
27889 fi
27890
27891 if test x$gcc_cv_as_mips_nan = xno \
27892 && test x$with_nan != x; then
27893 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27894 fi
27895 ;;
27896 msp430-*-*)
27897 # Earlier GAS versions generically support .gnu_attribute, but the
27898 # msp430 assembler will not do anything with it.
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27900 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27901 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27902 $as_echo_n "(cached) " >&6
27903 else
27904 gcc_cv_as_msp430_gnu_attribute=no
27905 if test $in_tree_gas = yes; then
27906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27907 then gcc_cv_as_msp430_gnu_attribute=yes
27908 fi
27909 elif test x$gcc_cv_as != x; then
27910 $as_echo '.gnu_attribute 4,1' > conftest.s
27911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27916 test $ac_status = 0; }; }
27917 then
27918 gcc_cv_as_msp430_gnu_attribute=yes
27919 else
27920 echo "configure: failed program was" >&5
27921 cat conftest.s >&5
27922 fi
27923 rm -f conftest.o conftest.s
27924 fi
27925 fi
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27927 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27928 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27929
27930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27931
27932 fi
27933
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27935 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27936 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27937 $as_echo_n "(cached) " >&6
27938 else
27939 gcc_cv_as_msp430_mspabi_attribute=no
27940 if test $in_tree_gas = yes; then
27941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27942 then gcc_cv_as_msp430_mspabi_attribute=yes
27943 fi
27944 elif test x$gcc_cv_as != x; then
27945 $as_echo '.mspabi_attribute 4,1' > conftest.s
27946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27952 then
27953 gcc_cv_as_msp430_mspabi_attribute=yes
27954 else
27955 echo "configure: failed program was" >&5
27956 cat conftest.s >&5
27957 fi
27958 rm -f conftest.o conftest.s
27959 fi
27960 fi
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27962 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27963 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27964
27965 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27966
27967 fi
27968
27969 if test x$enable_newlib_nano_formatted_io = xyes; then
27970
27971 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27972
27973 fi
27974 ;;
27975 riscv*-*-*)
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27977 $as_echo_n "checking assembler for .attribute support... " >&6; }
27978 if ${gcc_cv_as_riscv_attribute+:} false; then :
27979 $as_echo_n "(cached) " >&6
27980 else
27981 gcc_cv_as_riscv_attribute=no
27982 if test $in_tree_gas = yes; then
27983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27984 then gcc_cv_as_riscv_attribute=yes
27985 fi
27986 elif test x$gcc_cv_as != x; then
27987 $as_echo '.attribute stack_align,4' > conftest.s
27988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; }
27994 then
27995 gcc_cv_as_riscv_attribute=yes
27996 else
27997 echo "configure: failed program was" >&5
27998 cat conftest.s >&5
27999 fi
28000 rm -f conftest.o conftest.s
28001 fi
28002 fi
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28004 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28005 if test $gcc_cv_as_riscv_attribute = yes; then
28006
28007 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28008
28009 fi
28010
28011 ;;
28012 s390*-*-*)
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28014 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28015 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28016 $as_echo_n "(cached) " >&6
28017 else
28018 gcc_cv_as_s390_gnu_attribute=no
28019 if test $in_tree_gas = yes; then
28020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28021 then gcc_cv_as_s390_gnu_attribute=yes
28022 fi
28023 elif test x$gcc_cv_as != x; then
28024 $as_echo '.gnu_attribute 8,1' > conftest.s
28025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28030 test $ac_status = 0; }; }
28031 then
28032 gcc_cv_as_s390_gnu_attribute=yes
28033 else
28034 echo "configure: failed program was" >&5
28035 cat conftest.s >&5
28036 fi
28037 rm -f conftest.o conftest.s
28038 fi
28039 fi
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28041 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28042 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28043
28044 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28045
28046 fi
28047
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28049 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28050 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28051 $as_echo_n "(cached) " >&6
28052 else
28053 gcc_cv_as_s390_machine_machinemode=no
28054 if test $in_tree_gas = yes; then
28055 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28056 then gcc_cv_as_s390_machine_machinemode=yes
28057 fi
28058 elif test x$gcc_cv_as != x; then
28059 $as_echo ' .machinemode push
28060 .machinemode pop
28061 .machine push
28062 .machine pop' > conftest.s
28063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28065 (eval $ac_try) 2>&5
28066 ac_status=$?
28067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28068 test $ac_status = 0; }; }
28069 then
28070 gcc_cv_as_s390_machine_machinemode=yes
28071 else
28072 echo "configure: failed program was" >&5
28073 cat conftest.s >&5
28074 fi
28075 rm -f conftest.o conftest.s
28076 fi
28077 fi
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28079 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28080 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28081
28082 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28083
28084 fi
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28087 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28088 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28089 $as_echo_n "(cached) " >&6
28090 else
28091 gcc_cv_as_s390_architecture_modifiers=no
28092 if test $in_tree_gas = yes; then
28093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28094 then gcc_cv_as_s390_architecture_modifiers=yes
28095 fi
28096 elif test x$gcc_cv_as != x; then
28097 $as_echo ' .machine z13+vx ' > conftest.s
28098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28100 (eval $ac_try) 2>&5
28101 ac_status=$?
28102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28103 test $ac_status = 0; }; }
28104 then
28105 gcc_cv_as_s390_architecture_modifiers=yes
28106 else
28107 echo "configure: failed program was" >&5
28108 cat conftest.s >&5
28109 fi
28110 rm -f conftest.o conftest.s
28111 fi
28112 fi
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28114 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28115 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28116
28117 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28118
28119 fi
28120
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28122 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28123 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28124 $as_echo_n "(cached) " >&6
28125 else
28126 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28127 if test $in_tree_gas = yes; then
28128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28129 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28130 fi
28131 elif test x$gcc_cv_as != x; then
28132 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28135 (eval $ac_try) 2>&5
28136 ac_status=$?
28137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28138 test $ac_status = 0; }; }
28139 then
28140 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28141 else
28142 echo "configure: failed program was" >&5
28143 cat conftest.s >&5
28144 fi
28145 rm -f conftest.o conftest.s
28146 fi
28147 fi
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28149 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28150 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28151
28152 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28153
28154 fi
28155
28156
28157 ;;
28158 esac
28159
28160 # Mips and HP-UX need the GNU assembler.
28161 # Linux on IA64 might be able to use the Intel assembler.
28162
28163 case "$target" in
28164 mips*-*-* | *-*-hpux* )
28165 if test x$gas_flag = xyes \
28166 || test x"$host" != x"$build" \
28167 || test ! -x "$gcc_cv_as" \
28168 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28169 :
28170 else
28171 echo "*** This configuration requires the GNU assembler" >&2
28172 exit 1
28173 fi
28174 ;;
28175 esac
28176
28177 # ??? Not all targets support dwarf2 debug_line, even within a version
28178 # of gas. Moreover, we need to emit a valid instruction to trigger any
28179 # info to the output file. So, as supported targets are added to gas 2.11,
28180 # add some instruction here to (also) show we expect this might work.
28181 # ??? Once 2.11 is released, probably need to add first known working
28182 # version to the per-target configury.
28183 case "$cpu_type" in
28184 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28185 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28186 | tilegx | tilepro | visium | xstormy16 | xtensa)
28187 insn="nop"
28188 ;;
28189 ia64 | s390)
28190 insn="nop 0"
28191 ;;
28192 mmix)
28193 insn="swym 0"
28194 ;;
28195 esac
28196 if test x"$insn" != x; then
28197 conftest_s="\
28198 .file 1 \"conftest.s\"
28199 .loc 1 3 0
28200 $insn"
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28202 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28203 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205 else
28206 gcc_cv_as_dwarf2_debug_line=no
28207 if test $in_tree_gas = yes; then
28208 if test $in_tree_gas_is_elf = yes \
28209 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28210 then gcc_cv_as_dwarf2_debug_line=yes
28211 fi
28212 elif test x$gcc_cv_as != x; then
28213 $as_echo "$conftest_s" > conftest.s
28214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28216 (eval $ac_try) 2>&5
28217 ac_status=$?
28218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28219 test $ac_status = 0; }; }
28220 then
28221 if test x$gcc_cv_objdump != x \
28222 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28223 | grep debug_line > /dev/null 2>&1; then
28224 gcc_cv_as_dwarf2_debug_line=yes
28225 elif test x$gcc_cv_otool != x \
28226 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28227 | grep debug_line > /dev/null 2>&1; then
28228 gcc_cv_as_dwarf2_debug_line=yes
28229 fi
28230 else
28231 echo "configure: failed program was" >&5
28232 cat conftest.s >&5
28233 fi
28234 rm -f conftest.o conftest.s
28235 fi
28236 fi
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28238 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28239
28240
28241
28242 # The .debug_line file table must be in the exact order that
28243 # we specified the files, since these indices are also used
28244 # by DW_AT_decl_file. Approximate this test by testing if
28245 # the assembler bitches if the same index is assigned twice.
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28247 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28248 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28249 $as_echo_n "(cached) " >&6
28250 else
28251 gcc_cv_as_dwarf2_file_buggy=no
28252 if test x$gcc_cv_as != x; then
28253 $as_echo ' .file 1 "foo.s"
28254 .file 1 "bar.s"' > conftest.s
28255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257 (eval $ac_try) 2>&5
28258 ac_status=$?
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; }
28261 then
28262 gcc_cv_as_dwarf2_file_buggy=yes
28263 else
28264 echo "configure: failed program was" >&5
28265 cat conftest.s >&5
28266 fi
28267 rm -f conftest.o conftest.s
28268 fi
28269 fi
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28271 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28272
28273
28274
28275 if test $gcc_cv_as_dwarf2_debug_line = yes \
28276 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28277
28278 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28279
28280
28281 if test $gcc_cv_as_leb128 = yes; then
28282 conftest_s="\
28283 .file 1 \"conftest.s\"
28284 .loc 1 3 0 view .LVU1
28285 $insn
28286 .data
28287 .uleb128 .LVU1
28288 .uleb128 .LVU1
28289 "
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28291 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28292 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28293 $as_echo_n "(cached) " >&6
28294 else
28295 gcc_cv_as_dwarf2_debug_view=no
28296 if test $in_tree_gas = yes; then
28297 if test $in_tree_gas_is_elf = yes \
28298 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28299 then gcc_cv_as_dwarf2_debug_view=yes
28300 fi
28301 elif test x$gcc_cv_as != x; then
28302 $as_echo "$conftest_s" > conftest.s
28303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308 test $ac_status = 0; }; }
28309 then
28310 gcc_cv_as_dwarf2_debug_view=yes
28311 else
28312 echo "configure: failed program was" >&5
28313 cat conftest.s >&5
28314 fi
28315 rm -f conftest.o conftest.s
28316 fi
28317 fi
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28319 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28320 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28321
28322 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28323
28324 fi
28325
28326 fi
28327 fi
28328
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28330 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28331 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28332 $as_echo_n "(cached) " >&6
28333 else
28334 gcc_cv_as_gdwarf2_flag=no
28335 if test $in_tree_gas = yes; then
28336 if test $in_tree_gas_is_elf = yes \
28337 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28338 then gcc_cv_as_gdwarf2_flag=yes
28339 fi
28340 elif test x$gcc_cv_as != x; then
28341 $as_echo "$insn" > conftest.s
28342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347 test $ac_status = 0; }; }
28348 then
28349 gcc_cv_as_gdwarf2_flag=yes
28350 else
28351 echo "configure: failed program was" >&5
28352 cat conftest.s >&5
28353 fi
28354 rm -f conftest.o conftest.s
28355 fi
28356 fi
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28358 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28359 if test $gcc_cv_as_gdwarf2_flag = yes; then
28360
28361 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28362
28363 fi
28364
28365
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28367 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28368 if ${gcc_cv_as_gstabs_flag+:} false; then :
28369 $as_echo_n "(cached) " >&6
28370 else
28371 gcc_cv_as_gstabs_flag=no
28372 if test $in_tree_gas = yes; then
28373 if test $in_tree_gas_is_elf = yes \
28374 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28375 then gcc_cv_as_gstabs_flag=yes
28376 fi
28377 elif test x$gcc_cv_as != x; then
28378 $as_echo "$insn" > conftest.s
28379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 then
28386 gcc_cv_as_gstabs_flag=yes
28387 else
28388 echo "configure: failed program was" >&5
28389 cat conftest.s >&5
28390 fi
28391 rm -f conftest.o conftest.s
28392 fi
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28395 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28396 if test $gcc_cv_as_gstabs_flag = yes; then
28397
28398 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28399
28400 fi
28401
28402
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28404 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28405 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28406 $as_echo_n "(cached) " >&6
28407 else
28408 gcc_cv_as_debug_prefix_map_flag=no
28409 if test $in_tree_gas = yes; then
28410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28411 then gcc_cv_as_debug_prefix_map_flag=yes
28412 fi
28413 elif test x$gcc_cv_as != x; then
28414 $as_echo "$insn" > conftest.s
28415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28421 then
28422 gcc_cv_as_debug_prefix_map_flag=yes
28423 else
28424 echo "configure: failed program was" >&5
28425 cat conftest.s >&5
28426 fi
28427 rm -f conftest.o conftest.s
28428 fi
28429 fi
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28431 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28432 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28433
28434 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28435
28436 fi
28437
28438 fi
28439
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28441 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28442 if ${gcc_cv_as_compress_debug+:} false; then :
28443 $as_echo_n "(cached) " >&6
28444 else
28445 gcc_cv_as_compress_debug=no
28446 if test x$gcc_cv_as != x; then
28447 $as_echo '' > conftest.s
28448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28454 then
28455 # gas compiled without zlib cannot compress debug sections and warns
28456 # about it, but still exits successfully. So check for this, too.
28457 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28458 then
28459 gcc_cv_as_compress_debug=0
28460 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28461 # defaulting to the ELF gABI format.
28462 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28463 then
28464 gcc_cv_as_compress_debug=2
28465 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28466 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28467 # Before binutils 2.26, gas only supported --compress-debug-options and
28468 # emitted the traditional GNU format.
28469 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28470 then
28471 gcc_cv_as_compress_debug=1
28472 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28473 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28474 else
28475 gcc_cv_as_compress_debug=0
28476 fi
28477 else
28478 echo "configure: failed program was" >&5
28479 cat conftest.s >&5
28480 fi
28481 rm -f conftest.o conftest.s
28482 fi
28483 fi
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28485 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28486
28487
28488
28489 cat >>confdefs.h <<_ACEOF
28490 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28491 _ACEOF
28492
28493
28494 cat >>confdefs.h <<_ACEOF
28495 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28496 _ACEOF
28497
28498
28499 cat >>confdefs.h <<_ACEOF
28500 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28501 _ACEOF
28502
28503
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28505 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28506 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28507 $as_echo_n "(cached) " >&6
28508 else
28509 gcc_cv_as_lcomm_with_alignment=no
28510 if test x$gcc_cv_as != x; then
28511 $as_echo '.lcomm bar,4,16' > conftest.s
28512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28514 (eval $ac_try) 2>&5
28515 ac_status=$?
28516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28517 test $ac_status = 0; }; }
28518 then
28519 gcc_cv_as_lcomm_with_alignment=yes
28520 else
28521 echo "configure: failed program was" >&5
28522 cat conftest.s >&5
28523 fi
28524 rm -f conftest.o conftest.s
28525 fi
28526 fi
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28528 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28529 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28530
28531 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28532
28533 fi
28534
28535
28536 if test x$with_sysroot = x && test x$host = x$target \
28537 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28538 && test "$prefix" != "NONE"; then
28539
28540 cat >>confdefs.h <<_ACEOF
28541 #define PREFIX_INCLUDE_DIR "$prefix/include"
28542 _ACEOF
28543
28544 fi
28545
28546 # Determine the version of glibc, if any, used on the target.
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28548 $as_echo_n "checking for target glibc version... " >&6; }
28549
28550 # Check whether --with-glibc-version was given.
28551 if test "${with_glibc_version+set}" = set; then :
28552 withval=$with_glibc_version;
28553 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28554 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28555 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28556 else
28557 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28558 fi
28559 else
28560
28561 glibc_version_major=0
28562 glibc_version_minor=0
28563 if test -f $target_header_dir/features.h \
28564 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28565 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28566 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28567 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28568 fi
28569 fi
28570
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28572 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28573
28574 cat >>confdefs.h <<_ACEOF
28575 #define TARGET_GLIBC_MAJOR $glibc_version_major
28576 _ACEOF
28577
28578
28579 cat >>confdefs.h <<_ACEOF
28580 #define TARGET_GLIBC_MINOR $glibc_version_minor
28581 _ACEOF
28582
28583
28584 # Check whether --enable-gnu-unique-object was given.
28585 if test "${enable_gnu_unique_object+set}" = set; then :
28586 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28587 yes | no) ;;
28588 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28590 esac
28591 else
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28593 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28594 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28595 $as_echo_n "(cached) " >&6
28596 else
28597 gcc_cv_as_gnu_unique_object=no
28598 if test $in_tree_gas = yes; then
28599 if test $in_tree_gas_is_elf = yes \
28600 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28601 then gcc_cv_as_gnu_unique_object=yes
28602 fi
28603 elif test x$gcc_cv_as != x; then
28604 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28610 test $ac_status = 0; }; }
28611 then
28612 gcc_cv_as_gnu_unique_object=yes
28613 else
28614 echo "configure: failed program was" >&5
28615 cat conftest.s >&5
28616 fi
28617 rm -f conftest.o conftest.s
28618 fi
28619 fi
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28621 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28622 if test $gcc_cv_as_gnu_unique_object = yes; then
28623 # We need to unquote above to to use the definition from config.gcc.
28624 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28625
28626 if test $glibc_version_major -gt 2 \
28627 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28628 enable_gnu_unique_object=yes
28629 fi
28630
28631 fi
28632
28633 fi
28634
28635 if test x$enable_gnu_unique_object = xyes; then
28636
28637 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28638
28639 fi
28640
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28642 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28643 if ${gcc_cv_as_line_zero+:} false; then :
28644 $as_echo_n "(cached) " >&6
28645 else
28646 gcc_cv_as_line_zero=no
28647 if test $in_tree_gas = yes; then
28648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28649 then gcc_cv_as_line_zero=yes
28650 fi
28651 elif test "x$gcc_cv_as" != x; then
28652 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28653 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28658 test $ac_status = 0; }; } &&
28659 test "x`cat conftest.out`" = x
28660 then
28661 gcc_cv_as_line_zero=yes
28662 else
28663 echo "configure: failed program was" >&5
28664 cat conftest.s >&5
28665 echo "configure: error output was" >&5
28666 cat conftest.out >&5
28667 fi
28668 rm -f conftest.o conftest.s conftest.out
28669 fi
28670 fi
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28672 $as_echo "$gcc_cv_as_line_zero" >&6; }
28673 if test "x$gcc_cv_as_line_zero" = xyes; then
28674
28675 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28676
28677 fi
28678
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28680 $as_echo_n "checking support for thin archives... " >&6; }
28681 thin_archive_support=no
28682 echo 'int main (void) { return 0; }' > conftest.c
28683 if ($AR --version | sed 1q | grep "GNU ar" \
28684 && $CC $CFLAGS -c conftest.c \
28685 && $AR rcT conftest.a conftest.o \
28686 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28687 thin_archive_support=yes
28688 fi
28689 rm -f conftest.c conftest.o conftest.a conftest
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28691 $as_echo "$thin_archive_support" >&6; }
28692
28693
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28695 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28696 gcc_cv_ld_eh_frame_hdr=no
28697 if test $in_tree_ld = yes ; then
28698 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 \
28699 && test $in_tree_ld_is_elf = yes; then
28700 gcc_cv_ld_eh_frame_hdr=yes
28701 fi
28702 elif test x$gcc_cv_ld != x; then
28703 if echo "$ld_ver" | grep GNU > /dev/null; then
28704 # Check if linker supports --eh-frame-hdr option
28705 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28706 gcc_cv_ld_eh_frame_hdr=yes
28707 fi
28708 else
28709 case "$target" in
28710 *-*-solaris2*)
28711 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28712 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28713 gcc_cv_ld_eh_frame_hdr=yes
28714 fi
28715 ;;
28716 esac
28717 fi
28718 fi
28719
28720 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28721
28722 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28723
28724 fi
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28726 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28727
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28729 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28730 gcc_cv_ld_eh_frame_ciev3=no
28731 if test $in_tree_ld = yes ; then
28732 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 \
28733 && test $in_tree_ld_is_elf = yes; then
28734 gcc_cv_ld_eh_frame_ciev3=yes
28735 fi
28736 elif test x$gcc_cv_ld != x; then
28737 if echo "$ld_ver" | grep GNU > /dev/null; then
28738 gcc_cv_ld_eh_frame_ciev3=yes
28739 if test 0"$ld_date" -lt 20040513; then
28740 if test -n "$ld_date"; then
28741 # If there was date string, but was earlier than 2004-05-13, fail
28742 gcc_cv_ld_eh_frame_ciev3=no
28743 elif test "$ld_vers_major" -lt 2; then
28744 gcc_cv_ld_eh_frame_ciev3=no
28745 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28746 gcc_cv_ld_eh_frame_ciev3=no
28747 fi
28748 fi
28749 else
28750 case "$target" in
28751 *-*-solaris2*)
28752 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28753 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28754 gcc_cv_ld_eh_frame_ciev3=yes
28755 fi
28756 ;;
28757 esac
28758 fi
28759 fi
28760
28761 cat >>confdefs.h <<_ACEOF
28762 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28763 _ACEOF
28764
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28766 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28767
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28769 $as_echo_n "checking linker position independent executable support... " >&6; }
28770 gcc_cv_ld_pie=no
28771 if test $in_tree_ld = yes ; then
28772 case "$target" in
28773 # Full PIE support on Solaris was only introduced in gld 2.26.
28774 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28775 *) gcc_gld_pie_min_version=15 ;;
28776 esac
28777 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 \
28778 && test $in_tree_ld_is_elf = yes; then
28779 gcc_cv_ld_pie=yes
28780 fi
28781 elif test x$gcc_cv_ld != x; then
28782 # Check if linker supports -pie option
28783 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28784 gcc_cv_ld_pie=yes
28785 case "$target" in
28786 *-*-solaris2*)
28787 if echo "$ld_ver" | grep GNU > /dev/null \
28788 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28789 gcc_cv_ld_pie=no
28790 fi
28791 ;;
28792 esac
28793 else
28794 case "$target" in
28795 *-*-solaris2.1[1-9]*)
28796 # Solaris 11.3 added PIE support.
28797 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28798 gcc_cv_ld_pie=yes
28799 fi
28800 ;;
28801 esac
28802 fi
28803 fi
28804 if test x"$gcc_cv_ld_pie" = xyes; then
28805
28806 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28807
28808 fi
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28810 $as_echo "$gcc_cv_ld_pie" >&6; }
28811
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28813 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28814 gcc_cv_ld_pie_copyreloc=no
28815 if test $gcc_cv_ld_pie = yes ; then
28816 if test $in_tree_ld = yes ; then
28817 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
28818 gcc_cv_ld_pie_copyreloc=yes
28819 fi
28820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28821 # Check if linker supports -pie option with copy reloc
28822 case "$target" in
28823 i?86-*-linux* | x86_64-*-linux*)
28824 cat > conftest1.s <<EOF
28825 .globl a_glob
28826 .data
28827 .type a_glob, @object
28828 .size a_glob, 4
28829 a_glob:
28830 .long 2
28831 EOF
28832 cat > conftest2.s <<EOF
28833 .text
28834 .globl main
28835 .type main, @function
28836 main:
28837 movl %eax, a_glob(%rip)
28838 .size main, .-main
28839 .globl ptr
28840 .section .data.rel,"aw",@progbits
28841 .type ptr, @object
28842 ptr:
28843 .quad a_glob
28844 EOF
28845 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28846 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28847 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28848 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28849 gcc_cv_ld_pie_copyreloc=yes
28850 fi
28851 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28852 ;;
28853 esac
28854 fi
28855 fi
28856
28857 cat >>confdefs.h <<_ACEOF
28858 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28859 _ACEOF
28860
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28862 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28863
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28865 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28866 gcc_cv_ld_eh_gc_sections=no
28867 if test $in_tree_ld = yes ; then
28868 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 \
28869 && test $in_tree_ld_is_elf = yes; then
28870 gcc_cv_ld_eh_gc_sections=yes
28871 fi
28872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28873 cat > conftest.s <<EOF
28874 .section .text
28875 .globl _start
28876 .type _start, @function
28877 _start:
28878 .long foo
28879 .size _start, .-_start
28880 .section .text.foo,"ax",@progbits
28881 .type foo, @function
28882 foo:
28883 .long 0
28884 .size foo, .-foo
28885 .section .gcc_except_table.foo,"a",@progbits
28886 .L0:
28887 .long 0
28888 .section .eh_frame,"a",@progbits
28889 .long .L0
28890 EOF
28891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28892 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28893 | grep "gc-sections option ignored" > /dev/null; then
28894 gcc_cv_ld_eh_gc_sections=no
28895 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28896 | grep gcc_except_table > /dev/null; then
28897 gcc_cv_ld_eh_gc_sections=yes
28898 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28899 if test x$gcc_cv_as_comdat_group != xyes; then
28900 gcc_cv_ld_eh_gc_sections=no
28901 cat > conftest.s <<EOF
28902 .section .text
28903 .globl _start
28904 .type _start, @function
28905 _start:
28906 .long foo
28907 .size _start, .-_start
28908 .section .gnu.linkonce.t.foo,"ax",@progbits
28909 .type foo, @function
28910 foo:
28911 .long 0
28912 .size foo, .-foo
28913 .section .gcc_except_table.foo,"a",@progbits
28914 .L0:
28915 .long 0
28916 .section .eh_frame,"a",@progbits
28917 .long .L0
28918 EOF
28919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28920 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28921 | grep "gc-sections option ignored" > /dev/null; then
28922 gcc_cv_ld_eh_gc_sections=no
28923 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28924 | grep gcc_except_table > /dev/null; then
28925 gcc_cv_ld_eh_gc_sections=yes
28926 fi
28927 fi
28928 fi
28929 fi
28930 fi
28931 rm -f conftest.s conftest.o conftest
28932 fi
28933 case "$target" in
28934 hppa*-*-linux*)
28935 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28936 gcc_cv_ld_eh_gc_sections=no
28937 ;;
28938 esac
28939 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28940
28941 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28942
28943 fi
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28945 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28946
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28948 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28949 gcc_cv_ld_eh_gc_sections_bug=no
28950 if test $in_tree_ld = yes ; then
28951 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 \
28952 && test $in_tree_ld_is_elf = yes; then
28953 gcc_cv_ld_eh_gc_sections_bug=yes
28954 fi
28955 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
28956 gcc_cv_ld_eh_gc_sections_bug=yes
28957 cat > conftest.s <<EOF
28958 .section .text
28959 .globl _start
28960 .type _start, @function
28961 _start:
28962 .long foo
28963 .size _start, .-_start
28964 .section .text.startup.foo,"ax",@progbits
28965 .type foo, @function
28966 foo:
28967 .long 0
28968 .size foo, .-foo
28969 .section .gcc_except_table.foo,"a",@progbits
28970 .L0:
28971 .long 0
28972 .section .eh_frame,"a",@progbits
28973 .long .L0
28974 EOF
28975 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28976 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28977 | grep "gc-sections option ignored" > /dev/null; then
28978 :
28979 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28980 | grep gcc_except_table > /dev/null; then
28981 gcc_cv_ld_eh_gc_sections_bug=no
28982 fi
28983 fi
28984 rm -f conftest.s conftest.o conftest
28985 fi
28986 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28987
28988 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28989
28990 fi
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28992 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28993
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28995 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28996 # gold/gld support compressed debug sections since binutils 2.19/2.21
28997 # In binutils 2.26, gld gained support for the ELF gABI format.
28998 if test $in_tree_ld = yes ; then
28999 gcc_cv_ld_compress_debug=0
29000 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 \
29001 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29002 gcc_cv_ld_compress_debug=2
29003 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29004 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 \
29005 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29006 gcc_cv_ld_compress_debug=3
29007 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29008 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 \
29009 && test $in_tree_ld_is_elf = yes; then
29010 gcc_cv_ld_compress_debug=1
29011 fi
29012 elif echo "$ld_ver" | grep GNU > /dev/null; then
29013 if test "$ld_vers_major" -lt 2 \
29014 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29015 gcc_cv_ld_compress_debug=0
29016 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29017 gcc_cv_ld_compress_debug=1
29018 else
29019 gcc_cv_ld_compress_debug=3
29020 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29021 fi
29022 if test $ld_is_gold = yes; then
29023 gcc_cv_ld_compress_debug=2
29024 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29025 fi
29026 else
29027 case "${target}" in
29028 *-*-solaris2*)
29029 # Introduced in Solaris 11.2.
29030 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29031 gcc_cv_ld_compress_debug=3
29032 gcc_cv_ld_compress_debug_option="-z compress-sections"
29033 else
29034 gcc_cv_ld_compress_debug=0
29035 fi
29036 ;;
29037 *)
29038 # Assume linkers other than GNU ld don't support compessed debug
29039 # sections.
29040 gcc_cv_ld_compress_debug=0
29041 ;;
29042 esac
29043 fi
29044
29045 cat >>confdefs.h <<_ACEOF
29046 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29047 _ACEOF
29048
29049
29050 cat >>confdefs.h <<_ACEOF
29051 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29052 _ACEOF
29053
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29055 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29056
29057 if test x"$ld64_flag" = x"yes"; then
29058
29059 # Set defaults for possibly untestable items.
29060 gcc_cv_ld64_export_dynamic=0
29061
29062 if test "$build" = "$host"; then
29063 darwin_try_test=1
29064 else
29065 darwin_try_test=0
29066 fi
29067
29068 # On Darwin, because of FAT library support, it is often possible to execute
29069 # exes from compatible archs even when the host differs from the build system.
29070 case "$build","$host" in
29071 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29072 darwin_try_test=1;;
29073 *) ;;
29074 esac
29075
29076 # If the configurer specified a minimum ld64 version to be supported, then use
29077 # that to determine feature support.
29078 if test x"${gcc_cv_ld64_version}" != x; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29080 $as_echo_n "checking ld64 specified version... " >&6; }
29081 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29083 $as_echo "$gcc_cv_ld64_major" >&6; }
29084 if test "$gcc_cv_ld64_major" -ge 236; then
29085 gcc_cv_ld64_export_dynamic=1
29086 fi
29087 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29088 # If the version was not specified, try to find it.
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29090 $as_echo_n "checking linker version... " >&6; }
29091 if test x"${gcc_cv_ld64_version}" = x; then
29092 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29093 fi
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29095 $as_echo "$gcc_cv_ld64_version" >&6; }
29096
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29098 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29099 gcc_cv_ld64_export_dynamic=1
29100 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29101 gcc_cv_ld64_export_dynamic=0
29102 fi
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29104 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29105 fi
29106
29107 if test x"${gcc_cv_ld64_version}" != x; then
29108
29109 cat >>confdefs.h <<_ACEOF
29110 #define LD64_VERSION "${gcc_cv_ld64_version}"
29111 _ACEOF
29112
29113 fi
29114
29115
29116 cat >>confdefs.h <<_ACEOF
29117 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29118 _ACEOF
29119
29120 fi
29121
29122 # --------
29123 # UNSORTED
29124 # --------
29125
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29127 $as_echo_n "checking linker --as-needed support... " >&6; }
29128 if ${gcc_cv_ld_as_needed+:} false; then :
29129 $as_echo_n "(cached) " >&6
29130 else
29131 gcc_cv_ld_as_needed=no
29132 gcc_cv_ld_as_needed_option='--as-needed'
29133 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29134 if test $in_tree_ld = yes ; then
29135 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 \
29136 && test $in_tree_ld_is_elf = yes; then
29137 gcc_cv_ld_as_needed=yes
29138 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29139 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29140 gcc_cv_ld_no_as_needed_option='--pop-state'
29141 fi
29142 fi
29143 elif test x$gcc_cv_ld != x; then
29144 # Check if linker supports --as-needed and --no-as-needed options
29145 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29146 gcc_cv_ld_as_needed=yes
29147 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29148 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29149 && echo "$ld_ver" | grep GNU > /dev/null \
29150 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29151 # Use these options only when both ld.bfd and ld.gold support
29152 # --push-state/--pop-state, which unfortunately wasn't added
29153 # at the same time.
29154 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29155 gcc_cv_ld_no_as_needed_option='--pop-state'
29156 fi
29157 fi
29158 case "$target:$gnu_ld" in
29159 *-*-solaris2*:no)
29160 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29161 # forms.
29162 gcc_cv_ld_as_needed=yes
29163 gcc_cv_ld_as_needed_option="-z ignore"
29164 gcc_cv_ld_no_as_needed_option="-z record"
29165 ;;
29166 esac
29167 fi
29168 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29169 # dl_iterate_phdr, i.e. since Solaris 11.
29170 case "$target" in
29171 *-*-solaris2.1[1-9]*)
29172 case "$target" in
29173 i?86-*-* | x86_64-*-*)
29174 if echo "$ld_ver" | grep GNU > /dev/null; then
29175 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29176 gcc_cv_ld_as_needed=no
29177 fi
29178 ;;
29179 esac
29180 ;;
29181 *-*-solaris2*)
29182 gcc_cv_ld_as_needed=no
29183 ;;
29184 esac
29185
29186 fi
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29188 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29189 if test x"$gcc_cv_ld_as_needed" = xyes; then
29190
29191 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29192
29193
29194 cat >>confdefs.h <<_ACEOF
29195 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29196 _ACEOF
29197
29198
29199 cat >>confdefs.h <<_ACEOF
29200 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29201 _ACEOF
29202
29203 fi
29204
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29206 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29207 saved_LDFLAGS="$LDFLAGS"
29208 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29209 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29211 /* end confdefs.h. */
29212 int main(void) {return 0;}
29213 _ACEOF
29214 if ac_fn_cxx_try_link "$LINENO"; then :
29215 gcc_cv_ld_clearcap=yes; break
29216 else
29217 gcc_cv_ld_clearcap=no
29218 fi
29219 rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29221 done
29222 LDFLAGS="$saved_LDFLAGS"
29223 if test "x$gcc_cv_ld_clearcap" = xyes; then
29224
29225 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29226
29227 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29228
29229 fi
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29231 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29232
29233 case "$target" in
29234 powerpc*-*-*)
29235 case "$target" in
29236 *le-*-linux*)
29237 emul_name="-melf32lppc"
29238 ;;
29239 *)
29240 emul_name="-melf32ppc"
29241 ;;
29242 esac
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29244 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29245 if ${gcc_cv_ld_ppc_attr+:} false; then :
29246 $as_echo_n "(cached) " >&6
29247 else
29248 gcc_cv_ld_ppc_attr=no
29249 if test x"$ld_is_gold" = xyes; then
29250 gcc_cv_ld_ppc_attr=yes
29251 elif test $in_tree_ld = yes ; then
29252 if test "$gcc_cv_gld_major_version" -eq 2 \
29253 -a "$gcc_cv_gld_minor_version" -ge 28 \
29254 -o "$gcc_cv_gld_major_version" -gt 2; then
29255 gcc_cv_ld_ppc_attr=yes
29256 fi
29257 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29258 # check that merging the long double .gnu_attribute doesn't warn
29259 cat > conftest1.s <<EOF
29260 .gnu_attribute 4,1
29261 EOF
29262 cat > conftest2.s <<EOF
29263 .gnu_attribute 4,9
29264 EOF
29265 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29266 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29267 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29268 && test ! -s conftest.err; then
29269 gcc_cv_ld_ppc_attr=yes
29270 fi
29271 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29272 fi
29273
29274 fi
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29276 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29277 if test x$gcc_cv_ld_ppc_attr = xyes; then
29278
29279 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29280
29281 fi
29282 ;;
29283 esac
29284
29285 case "$target:$tm_file" in
29286 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29287 case "$target" in
29288 *le-*-linux*)
29289 emul_name="-melf64lppc"
29290 ;;
29291 *-*-linux*)
29292 emul_name="-melf64ppc"
29293 ;;
29294 *-*-freebsd*)
29295 emul_name="-melf64ppc_fbsd"
29296 ;;
29297 esac
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29299 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29300 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29301 $as_echo_n "(cached) " >&6
29302 else
29303 gcc_cv_ld_no_dot_syms=no
29304 if test x"$ld_is_gold" = xyes; then
29305 gcc_cv_ld_no_dot_syms=yes
29306 elif test $in_tree_ld = yes ; then
29307 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
29308 gcc_cv_ld_no_dot_syms=yes
29309 fi
29310 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29311 cat > conftest1.s <<EOF
29312 .text
29313 bl .foo
29314 EOF
29315 cat > conftest2.s <<EOF
29316 .section ".opd","aw"
29317 .align 3
29318 .globl foo
29319 .type foo,@function
29320 foo:
29321 .quad .LEfoo,.TOC.@tocbase,0
29322 .text
29323 .LEfoo:
29324 blr
29325 .size foo,.-.LEfoo
29326 EOF
29327 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29328 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29329 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29330 gcc_cv_ld_no_dot_syms=yes
29331 fi
29332 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29333 fi
29334
29335 fi
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29337 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29338 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29339
29340 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29341
29342 fi
29343
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29345 $as_echo_n "checking linker large toc support... " >&6; }
29346 if ${gcc_cv_ld_large_toc+:} false; then :
29347 $as_echo_n "(cached) " >&6
29348 else
29349 gcc_cv_ld_large_toc=no
29350 if test x"$ld_is_gold" = xyes; then
29351 gcc_cv_ld_large_toc=yes
29352 elif test $in_tree_ld = yes ; then
29353 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
29354 gcc_cv_ld_large_toc=yes
29355 fi
29356 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29357 cat > conftest.s <<EOF
29358 .section ".tbss","awT",@nobits
29359 .align 3
29360 ie0: .space 8
29361 .global _start
29362 .text
29363 _start:
29364 addis 9,13,ie0@got@tprel@ha
29365 ld 9,ie0@got@tprel@l(9)
29366 EOF
29367 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29368 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29369 gcc_cv_ld_large_toc=yes
29370 fi
29371 rm -f conftest conftest.o conftest.s
29372 fi
29373
29374 fi
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29376 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29377 if test x"$gcc_cv_ld_large_toc" = xyes; then
29378
29379 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29380
29381 fi
29382
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29384 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29385 if ${gcc_cv_ld_toc_align+:} false; then :
29386 $as_echo_n "(cached) " >&6
29387 else
29388 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29389 cat > conftest.s <<EOF
29390 .global _start
29391 .text
29392 _start:
29393 addis 9,2,x@got@ha
29394 .section .data.rel.ro,"aw",@progbits
29395 .p2align 16
29396 .space 32768
29397 x: .quad .TOC.
29398 EOF
29399 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29400 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29401 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)) }'`
29402 fi
29403 rm -f conftest conftest.o conftest.s
29404 fi
29405
29406 fi
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29408 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29409 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29410
29411 cat >>confdefs.h <<_ACEOF
29412 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29413 _ACEOF
29414
29415 fi
29416 ;;
29417 esac
29418
29419 case "$target" in
29420 *-*-aix*)
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29422 $as_echo_n "checking linker large toc support... " >&6; }
29423 if ${gcc_cv_ld_large_toc+:} false; then :
29424 $as_echo_n "(cached) " >&6
29425 else
29426 gcc_cv_ld_large_toc=no
29427 if test x$gcc_cv_as != x ; then
29428 cat > conftest.s <<EOF
29429 .toc
29430 LC..1:
29431 .tc a[TC],a[RW]
29432 .extern a[RW]
29433 .csect .text[PR]
29434 .largetoctest:
29435 addis 9,LC..1@u(2)
29436 ld 3,LC..1@l(9)
29437 EOF
29438 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29439 gcc_cv_ld_large_toc=yes
29440 fi
29441 rm -f conftest conftest.o conftest.s
29442 fi
29443
29444 fi
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29446 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29447 if test x"$gcc_cv_ld_large_toc" = xyes; then
29448
29449 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29450
29451 fi
29452 ;;
29453 esac
29454
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29456 $as_echo_n "checking linker --build-id support... " >&6; }
29457 if ${gcc_cv_ld_buildid+:} false; then :
29458 $as_echo_n "(cached) " >&6
29459 else
29460 gcc_cv_ld_buildid=no
29461 if test $in_tree_ld = yes ; then
29462 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29463 "$gcc_cv_gld_minor_version" -ge 18 -o \
29464 "$gcc_cv_gld_major_version" -gt 2 \
29465 && test $in_tree_ld_is_elf = yes; then
29466 gcc_cv_ld_buildid=yes
29467 fi
29468 elif test x$gcc_cv_ld != x; then
29469 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29470 gcc_cv_ld_buildid=yes
29471 fi
29472 fi
29473 fi
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29475 $as_echo "$gcc_cv_ld_buildid" >&6; }
29476 if test x"$gcc_cv_ld_buildid" = xyes; then
29477
29478 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29479
29480 fi
29481
29482 # Check whether --enable-linker-build-id was given.
29483 if test "${enable_linker_build_id+set}" = set; then :
29484 enableval=$enable_linker_build_id;
29485 else
29486 enable_linker_build_id=no
29487 fi
29488
29489
29490 if test x"$enable_linker_build_id" = xyes; then
29491 if test x"$gcc_cv_ld_buildid" = xyes; then
29492
29493 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29494
29495 else
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29497 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29498 fi
29499 fi
29500
29501 # In binutils 2.21, GNU ld gained support for new emulations fully
29502 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29504 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29505 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29506 $as_echo_n "(cached) " >&6
29507 else
29508 gcc_cv_ld_sol2_emulation=no
29509 if test $in_tree_ld = yes ; then
29510 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29511 "$gcc_cv_gld_minor_version" -ge 21 -o \
29512 "$gcc_cv_gld_major_version" -gt 2 \
29513 && test $in_tree_ld_is_elf = yes; then
29514 gcc_cv_ld_sol2_emulation=yes
29515 fi
29516 elif test x$gcc_cv_ld != x; then
29517 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29518 grep _sol2 > /dev/null; then
29519 gcc_cv_ld_sol2_emulation=yes
29520 fi
29521 fi
29522 fi
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29524 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29525 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29526
29527 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29528
29529 fi
29530
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29532 $as_echo_n "checking linker --sysroot support... " >&6; }
29533 if ${gcc_cv_ld_sysroot+:} false; then :
29534 $as_echo_n "(cached) " >&6
29535 else
29536 gcc_cv_ld_sysroot=no
29537 if test $in_tree_ld = yes ; then
29538 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
29539 gcc_cv_ld_sysroot=yes
29540 fi
29541 elif test x$gcc_cv_ld != x; then
29542 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29543 gcc_cv_ld_sysroot=yes
29544 fi
29545 fi
29546 fi
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29548 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29549 if test x"$gcc_cv_ld_sysroot" = xyes; then
29550
29551 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29552
29553 fi
29554
29555 case $target in
29556 *-*-solaris2*)
29557 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29559 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29560 if ${gcc_cv_solaris_crts+:} false; then :
29561 $as_echo_n "(cached) " >&6
29562 else
29563 gcc_cv_solaris_crts=no
29564 if test x$host != x$target; then
29565 if test "x$with_sysroot" = xyes; then
29566 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29567 else
29568 target_sysroot="${with_sysroot}"
29569 fi
29570 fi
29571 target_libdir="$target_sysroot/usr/lib"
29572 # At the time they were added, gcrt1.o became a symlink for backwards
29573 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29574 case $target in
29575 i?86-*-solaris2* | x86_64-*-solaris2*)
29576 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29577 ;;
29578 sparc*-*-solaris2*)
29579 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29580 ;;
29581 esac
29582 fi
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29584 $as_echo "$gcc_cv_solaris_crts" >&6; }
29585 ;;
29586 esac
29587 if test x$gcc_cv_solaris_crts = xyes; then
29588
29589 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29590
29591 fi
29592
29593 # Check whether --enable-libssp was given.
29594 if test "${enable_libssp+set}" = set; then :
29595 enableval=$enable_libssp; case "${enableval}" in
29596 yes|no)
29597 ;;
29598 *)
29599 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29600 ;;
29601 esac
29602 fi
29603
29604
29605 # Test for stack protector support in target C library.
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29607 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29608 if ${gcc_cv_libc_provides_ssp+:} false; then :
29609 $as_echo_n "(cached) " >&6
29610 else
29611 gcc_cv_libc_provides_ssp=no
29612 if test "x$enable_libssp" = "xno"; then
29613 gcc_cv_libc_provides_ssp=yes
29614 elif test "x$enable_libssp" = "xyes"; then
29615 gcc_cv_libc_provides_ssp=no
29616 else
29617 case "$target" in
29618 *-*-musl*)
29619 # All versions of musl provide stack protector
29620 gcc_cv_libc_provides_ssp=yes;;
29621 *-*-linux* | *-*-kfreebsd*-gnu)
29622 # glibc 2.4 and later provides __stack_chk_fail and
29623 # either __stack_chk_guard, or TLS access to stack guard canary.
29624
29625 if test $glibc_version_major -gt 2 \
29626 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29627 gcc_cv_libc_provides_ssp=yes
29628 else
29629
29630 if test -f $target_header_dir/features.h \
29631 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29632 $target_header_dir/features.h > /dev/null; then
29633 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29634 $target_header_dir/features.h > /dev/null && \
29635 test -f $target_header_dir/bits/uClibc_config.h && \
29636 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29637 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29638 gcc_cv_libc_provides_ssp=yes
29639 fi
29640 # all versions of Bionic support stack protector
29641 elif test -f $target_header_dir/sys/cdefs.h \
29642 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29643 $target_header_dir/sys/cdefs.h > /dev/null; then
29644 gcc_cv_libc_provides_ssp=yes
29645 fi
29646 fi
29647 ;;
29648 *-*-gnu*)
29649 # Avoid complicated tests (see
29650 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29651 # simply assert that glibc does provide this, which is true for all
29652 # realistically usable GNU/Hurd configurations.
29653 # All supported versions of musl provide it as well
29654 gcc_cv_libc_provides_ssp=yes;;
29655 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29656 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29657 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29658 gcc_cv_libc_provides_ssp=yes
29659 else
29660 echo "no __stack_chk_fail on this target"
29661 fi
29662
29663 ;;
29664 *) gcc_cv_libc_provides_ssp=no ;;
29665 esac
29666 fi
29667 fi
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29669 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29670
29671 if test x$gcc_cv_libc_provides_ssp = xyes; then
29672
29673 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29674
29675 fi
29676
29677 # Check whether --enable-default-ssp was given.
29678 # Check whether --enable-default-ssp was given.
29679 if test "${enable_default_ssp+set}" = set; then :
29680 enableval=$enable_default_ssp;
29681 if test x$gcc_cv_libc_provides_ssp = xyes; then
29682 case "$target" in
29683 ia64*-*-*) enable_default_ssp=no ;;
29684 *) enable_default_ssp=$enableval ;;
29685 esac
29686 else
29687 enable_default_ssp=no
29688 fi
29689 else
29690 enable_default_ssp=no
29691 fi
29692
29693 if test x$enable_default_ssp = xyes ; then
29694
29695 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29696
29697 fi
29698
29699
29700 # Test for <sys/sdt.h> on the target.
29701
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29703 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29704 have_sys_sdt_h=no
29705 if test -f $target_header_dir/sys/sdt.h; then
29706 have_sys_sdt_h=yes
29707
29708 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29709
29710 fi
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29712 $as_echo "$have_sys_sdt_h" >&6; }
29713
29714 # Check if TFmode long double should be used by default or not.
29715 # Some glibc targets used DFmode long double, but with glibc 2.4
29716 # and later they can use TFmode.
29717 case "$target" in
29718 powerpc*-*-linux* | \
29719 sparc*-*-linux* | \
29720 s390*-*-linux* | \
29721 alpha*-*-linux*)
29722
29723 # Check whether --with-long-double-128 was given.
29724 if test "${with_long_double_128+set}" = set; then :
29725 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29726 else
29727
29728 if test $glibc_version_major -gt 2 \
29729 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29730 gcc_cv_target_ldbl128=yes
29731 else
29732
29733 gcc_cv_target_ldbl128=no
29734 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29735 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29736 && gcc_cv_target_ldbl128=yes
29737
29738 fi
29739 fi
29740
29741 ;;
29742 esac
29743 if test x$gcc_cv_target_ldbl128 = xyes; then
29744
29745 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29746
29747 fi
29748
29749 # Check if TFmode long double target should use the IBM extended double or IEEE
29750 # 128-bit floating point formats if long doubles are 128-bits long. The long
29751 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29752 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29753 # libgcc.
29754
29755 # Check whether --with-long-double-format was given.
29756 if test "${with_long_double_format+set}" = set; then :
29757 withval=$with_long_double_format;
29758 case "$target:$with_long_double_format" in
29759 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29760 :
29761 ;;
29762 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29763 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29764 case "$with_cpu" in
29765 power7 | power8 | power9 | power1*)
29766 :
29767 ;;
29768 *)
29769 as_fn_error $? "Configuration option --with-long-double-format is only \
29770 supported if the default cpu is power7 or newer" "$LINENO" 5
29771 with_long_double_format=""
29772 ;;
29773 esac
29774 ;;
29775 xpowerpc64*-*-linux*:*)
29776 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29777 with_long_double_format=""
29778 ;;
29779 *)
29780 as_fn_error $? "Configure option --with-long-double-format is only supported \
29781 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29782 with_long_double_format=""
29783 ;;
29784 esac
29785 fi
29786
29787
29788 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29789 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29790 gcc_cv_libc_provides_hwcap_in_tcb=no
29791 case "$target" in
29792 powerpc*-*-linux*)
29793
29794 if test $glibc_version_major -gt 2 \
29795 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29796 gcc_cv_libc_provides_hwcap_in_tcb=yes
29797 fi
29798 ;;
29799 esac
29800 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29801
29802 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29803
29804 fi
29805
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29807 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29808 gcc_cv_target_dl_iterate_phdr=unknown
29809 case "$target" in
29810 *-*-solaris2*)
29811 # <link.h> needs both a dl_iterate_phdr declaration and support for
29812 # compilation with largefile support.
29813 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29814 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29815 gcc_cv_target_dl_iterate_phdr=yes
29816 else
29817 gcc_cv_target_dl_iterate_phdr=no
29818 fi
29819 ;;
29820 *-*-dragonfly* | *-*-freebsd*)
29821 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29822 gcc_cv_target_dl_iterate_phdr=yes
29823 else
29824 gcc_cv_target_dl_iterate_phdr=no
29825 fi
29826 ;;
29827 *-linux-musl*)
29828 gcc_cv_target_dl_iterate_phdr=yes
29829 ;;
29830 esac
29831
29832 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29833
29834 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29835
29836 fi
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29838 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29839
29840 # We no longer support different GC mechanisms. Emit an error if
29841 # the user configures with --with-gc.
29842
29843 # Check whether --with-gc was given.
29844 if test "${with_gc+set}" = set; then :
29845 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29846 fi
29847
29848
29849 # Libraries to use on the host. This will normally be set by the top
29850 # level Makefile. Here we simply capture the value for our Makefile.
29851 if test -z "${HOST_LIBS+set}"; then
29852 HOST_LIBS=
29853 fi
29854
29855
29856 # Use the system's zlib library.
29857
29858 # Use the system's zlib library.
29859 zlibdir="-L\$(top_builddir)/../zlib"
29860 zlibinc="-I\$(top_srcdir)/../zlib"
29861
29862 # Check whether --with-system-zlib was given.
29863 if test "${with_system_zlib+set}" = set; then :
29864 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29865 zlibdir=
29866 zlibinc=
29867 fi
29868
29869 fi
29870
29871
29872
29873
29874
29875
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29878 # Check whether --enable-maintainer-mode was given.
29879 if test "${enable_maintainer_mode+set}" = set; then :
29880 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29881 else
29882 maintainer_mode=no
29883 fi
29884
29885
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29887 $as_echo "$maintainer_mode" >&6; }
29888
29889 if test "$maintainer_mode" = "yes"; then
29890 MAINT=''
29891 else
29892 MAINT='#'
29893 fi
29894
29895
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29897 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29898 # Check whether --enable-link-mutex was given.
29899 if test "${enable_link_mutex+set}" = set; then :
29900 enableval=$enable_link_mutex; do_link_mutex=$enableval
29901 else
29902 do_link_mutex=no
29903 fi
29904
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29906 $as_echo "$do_link_mutex" >&6; }
29907
29908 if test "$do_link_mutex" = "yes"; then
29909 DO_LINK_MUTEX=true
29910 else
29911 DO_LINK_MUTEX=false
29912 fi
29913
29914
29915 # --------------
29916 # Language hooks
29917 # --------------
29918
29919 # Make empty files to contain the specs and options for each language.
29920 # Then add #include lines to for a compiler that has specs and/or options.
29921
29922 subdirs=
29923 lang_opt_files=
29924 lang_specs_files=
29925 lang_tree_files=
29926 # These (without "all_") are set in each config-lang.in.
29927 # `language' must be a single word so is spelled singularly.
29928 all_languages=
29929 all_compilers=
29930 all_outputs='Makefile'
29931 # List of language makefile fragments.
29932 all_lang_makefrags=
29933 # Additional files for gengtype
29934 all_gtfiles="$target_gtfiles"
29935
29936 # These are the languages that are set in --enable-languages,
29937 # and are available in the GCC tree.
29938 all_selected_languages=
29939
29940 # Add the language fragments.
29941 # Languages are added via two mechanisms. Some information must be
29942 # recorded in makefile variables, these are defined in config-lang.in.
29943 # We accumulate them and plug them into the main Makefile.
29944 # The other mechanism is a set of hooks for each of the main targets
29945 # like `clean', `install', etc.
29946
29947 language_hooks="Make-hooks"
29948
29949 for lang in ${srcdir}/*/config-lang.in
29950 do
29951 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29952
29953 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29954 if test "x$lang_alias" = x
29955 then
29956 echo "$lang doesn't set \$language." 1>&2
29957 exit 1
29958 fi
29959 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29960 subdirs="$subdirs $subdir"
29961
29962 # $gcc_subdir is where the gcc integration files are to be found
29963 # for a language, both for internal compiler purposes (compiler
29964 # sources implementing front-end to GCC tree converters), and for
29965 # build infrastructure purposes (Make-lang.in, etc.)
29966 #
29967 # This will be <subdir> (relative to $srcdir) if a line like
29968 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29969 # is found in <langdir>/config-lang.in, and will remain <langdir>
29970 # otherwise.
29971 #
29972 # Except for the language alias (fetched above), the regular
29973 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29974 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29975 # only this and the language alias.
29976
29977 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29978 if [ "$gcc_subdir" = "" ]; then
29979 gcc_subdir="$subdir"
29980 fi
29981
29982 case ",$enable_languages," in
29983 *,$lang_alias,*)
29984 all_selected_languages="$all_selected_languages $lang_alias"
29985 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29986 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29987 fi
29988 ;;
29989 esac
29990
29991 language=
29992 boot_language=
29993 compilers=
29994 outputs=
29995 gtfiles=
29996 subdir_requires=
29997 . ${srcdir}/$gcc_subdir/config-lang.in
29998 if test "x$language" = x
29999 then
30000 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30001 exit 1
30002 fi
30003
30004 ok=:
30005 case ",$enable_languages," in
30006 *,$lang_alias,*) ;;
30007 *)
30008 for i in $subdir_requires; do
30009 test -f "${srcdir}/$i/config-lang.in" && continue
30010 ok=false
30011 break
30012 done
30013 ;;
30014 esac
30015 $ok || continue
30016
30017 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30018 if test -f $srcdir/$gcc_subdir/lang.opt; then
30019 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30020 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30021 fi
30022 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30023 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30024 fi
30025 all_languages="$all_languages $language"
30026 all_compilers="$all_compilers $compilers"
30027 all_outputs="$all_outputs $outputs"
30028 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30029 case ",$enable_languages," in
30030 *,lto,*)
30031
30032 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30033
30034 enable_lto=yes
30035
30036 ;;
30037 *) ;;
30038 esac
30039 done
30040
30041 check_languages=
30042 for language in $all_selected_languages
30043 do
30044 check_languages="$check_languages check-$language"
30045 done
30046
30047 selftest_languages=
30048 for language in $all_selected_languages
30049 do
30050 selftest_languages="$selftest_languages selftest-$language"
30051 done
30052
30053 # We link each language in with a set of hooks, reached indirectly via
30054 # lang.${target}. Only do so for selected languages.
30055
30056 rm -f Make-hooks
30057 touch Make-hooks
30058 target_list="all.cross start.encap rest.encap tags \
30059 install-common install-man install-info install-pdf install-html dvi \
30060 pdf html uninstall info man srcextra srcman srcinfo \
30061 mostlyclean clean distclean maintainer-clean install-plugin"
30062
30063 for t in $target_list
30064 do
30065 x=
30066 for lang in $all_selected_languages
30067 do
30068 x="$x $lang.$t"
30069 done
30070 echo "lang.$t: $x" >> Make-hooks
30071 done
30072
30073 # --------
30074 # Option include files
30075 # --------
30076
30077 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30078 option_includes="option-includes.mk"
30079
30080
30081 # --------
30082 # UNSORTED
30083 # --------
30084
30085 # Create .gdbinit.
30086
30087 echo "dir ." > .gdbinit
30088 echo "dir ${srcdir}" >> .gdbinit
30089 if test x$gdb_needs_out_file_path = xyes
30090 then
30091 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30092 fi
30093 if test "x$subdirs" != x; then
30094 for s in $subdirs
30095 do
30096 echo "dir ${srcdir}/$s" >> .gdbinit
30097 done
30098 fi
30099 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30100 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30101
30102 # Put a breakpoint on __asan_report_error to help with debugging buffer
30103 # overflow.
30104 case "$CFLAGS" in
30105 *-fsanitize=address*)
30106 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30107 ;;
30108 esac
30109
30110 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30111
30112
30113
30114 # Find a directory in which to install a shared libgcc.
30115
30116 # Check whether --enable-version-specific-runtime-libs was given.
30117 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30118 enableval=$enable_version_specific_runtime_libs;
30119 fi
30120
30121
30122 # Substitute configuration variables
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189 # Echo link setup.
30190 if test x${build} = x${host} ; then
30191 if test x${host} = x${target} ; then
30192 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30193 else
30194 echo "Links are now set up to build a cross-compiler" 1>&2
30195 echo " from ${host} to ${target}." 1>&2
30196 fi
30197 else
30198 if test x${host} = x${target} ; then
30199 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30200 echo " for ${target}." 1>&2
30201 else
30202 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30203 echo " from ${host} to ${target}." 1>&2
30204 fi
30205 fi
30206
30207
30208
30209
30210
30211
30212 if test "x${ISLLIBS}" != "x" ; then
30213
30214 $as_echo "#define HAVE_isl 1" >>confdefs.h
30215
30216 fi
30217
30218 # Check for plugin support
30219 # Check whether --enable-plugin was given.
30220 if test "${enable_plugin+set}" = set; then :
30221 enableval=$enable_plugin; enable_plugin=$enableval
30222 else
30223 enable_plugin=yes; default_plugin=yes
30224 fi
30225
30226
30227 pluginlibs=
30228 plugin_check=yes
30229
30230 case "${host}" in
30231 *-*-mingw*)
30232 # Since plugin support under MinGW is not as straightforward as on
30233 # other platforms (e.g., we have to link import library, etc), we
30234 # only enable it if explicitly requested.
30235 if test x"$default_plugin" = x"yes"; then
30236 enable_plugin=no
30237 elif test x"$enable_plugin" = x"yes"; then
30238 # Use make's target variable to derive import library name.
30239 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30240 plugin_check=no
30241 fi
30242 ;;
30243 *-*-darwin*)
30244 if test x$build = x$host; then
30245 export_sym_check="nm${exeext} -g"
30246 elif test x$host = x$target; then
30247 export_sym_check="$gcc_cv_nm -g"
30248 else
30249 export_sym_check=
30250 fi
30251 ;;
30252 *)
30253 if test x$build = x$host; then
30254 export_sym_check="objdump${exeext} -T"
30255 elif test x$host = x$target; then
30256 export_sym_check="$gcc_cv_objdump -T"
30257 else
30258 export_sym_check=
30259 fi
30260 ;;
30261 esac
30262
30263 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30264
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30266 $as_echo_n "checking for exported symbols... " >&6; }
30267 if test "x$export_sym_check" != x; then
30268 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30269 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30270 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30271 : # No need to use a flag
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30273 $as_echo "yes" >&6; }
30274 else
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30276 $as_echo "yes" >&6; }
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30278 $as_echo_n "checking for -rdynamic... " >&6; }
30279 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30280 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30281 plugin_rdynamic=yes
30282 pluginlibs="-rdynamic"
30283 else
30284 plugin_rdynamic=no
30285 enable_plugin=no
30286 fi
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30288 $as_echo "$plugin_rdynamic" >&6; }
30289 fi
30290 else
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30292 $as_echo "unable to check" >&6; }
30293 fi
30294
30295 # Check -ldl
30296 saved_LIBS="$LIBS"
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30298 $as_echo_n "checking for library containing dlopen... " >&6; }
30299 if ${ac_cv_search_dlopen+:} false; then :
30300 $as_echo_n "(cached) " >&6
30301 else
30302 ac_func_search_save_LIBS=$LIBS
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30305
30306 /* Override any GCC internal prototype to avoid an error.
30307 Use char because int might match the return type of a GCC
30308 builtin and then its argument prototype would still apply. */
30309 #ifdef __cplusplus
30310 extern "C"
30311 #endif
30312 char dlopen ();
30313 int
30314 main ()
30315 {
30316 return dlopen ();
30317 ;
30318 return 0;
30319 }
30320 _ACEOF
30321 for ac_lib in '' dl; do
30322 if test -z "$ac_lib"; then
30323 ac_res="none required"
30324 else
30325 ac_res=-l$ac_lib
30326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30327 fi
30328 if ac_fn_cxx_try_link "$LINENO"; then :
30329 ac_cv_search_dlopen=$ac_res
30330 fi
30331 rm -f core conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext
30333 if ${ac_cv_search_dlopen+:} false; then :
30334 break
30335 fi
30336 done
30337 if ${ac_cv_search_dlopen+:} false; then :
30338
30339 else
30340 ac_cv_search_dlopen=no
30341 fi
30342 rm conftest.$ac_ext
30343 LIBS=$ac_func_search_save_LIBS
30344 fi
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30346 $as_echo "$ac_cv_search_dlopen" >&6; }
30347 ac_res=$ac_cv_search_dlopen
30348 if test "$ac_res" != no; then :
30349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30350
30351 fi
30352
30353 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30354 pluginlibs="$pluginlibs -ldl"
30355 fi
30356 LIBS="$saved_LIBS"
30357
30358 # Check that we can build shared objects with -fPIC -shared
30359 saved_LDFLAGS="$LDFLAGS"
30360 saved_CFLAGS="$CFLAGS"
30361 case "${host}" in
30362 *-*-darwin*)
30363 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30364 CFLAGS="$CFLAGS -fPIC"
30365 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30366 ;;
30367 *)
30368 CFLAGS="$CFLAGS -fPIC"
30369 LDFLAGS="$LDFLAGS -fPIC -shared"
30370 ;;
30371 esac
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30373 $as_echo_n "checking for -fPIC -shared... " >&6; }
30374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30375 /* end confdefs.h. */
30376 extern int X;
30377 int
30378 main ()
30379 {
30380 return X == 0;
30381 ;
30382 return 0;
30383 }
30384 _ACEOF
30385 if ac_fn_cxx_try_link "$LINENO"; then :
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387 $as_echo "yes" >&6; }; have_pic_shared=yes
30388 else
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }; have_pic_shared=no
30391 fi
30392 rm -f core conftest.err conftest.$ac_objext \
30393 conftest$ac_exeext conftest.$ac_ext
30394 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30395 pluginlibs=
30396 enable_plugin=no
30397 fi
30398 LDFLAGS="$saved_LDFLAGS"
30399 CFLAGS="$saved_CFLAGS"
30400
30401 # If plugin support had been requested but not available, fail.
30402 if test x"$enable_plugin" = x"no" ; then
30403 if test x"$default_plugin" != x"yes"; then
30404 as_fn_error $? "
30405 Building GCC with plugin support requires a host that supports
30406 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30407 fi
30408 fi
30409 fi
30410
30411
30412
30413 if test x"$enable_plugin" = x"yes"; then
30414
30415 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30416
30417 fi
30418
30419
30420 # Enable --enable-host-shared
30421 # Check whether --enable-host-shared was given.
30422 if test "${enable_host_shared+set}" = set; then :
30423 enableval=$enable_host_shared; PICFLAG=-fPIC
30424 else
30425 PICFLAG=
30426 fi
30427
30428
30429
30430
30431
30432 # Check whether --enable-libquadmath-support was given.
30433 if test "${enable_libquadmath_support+set}" = set; then :
30434 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30435 else
30436 ENABLE_LIBQUADMATH_SUPPORT=yes
30437 fi
30438
30439 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30440
30441 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30442
30443 fi
30444
30445
30446 # Specify what hash style to use by default.
30447
30448 # Check whether --with-linker-hash-style was given.
30449 if test "${with_linker_hash_style+set}" = set; then :
30450 withval=$with_linker_hash_style; case x"$withval" in
30451 xsysv)
30452 LINKER_HASH_STYLE=sysv
30453 ;;
30454 xgnu)
30455 LINKER_HASH_STYLE=gnu
30456 ;;
30457 xboth)
30458 LINKER_HASH_STYLE=both
30459 ;;
30460 *)
30461 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30462 ;;
30463 esac
30464 else
30465 LINKER_HASH_STYLE=''
30466 fi
30467
30468 if test x"${LINKER_HASH_STYLE}" != x; then
30469
30470 cat >>confdefs.h <<_ACEOF
30471 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30472 _ACEOF
30473
30474 fi
30475
30476 # Specify what should be the default of -fdiagnostics-color option.
30477
30478 # Check whether --with-diagnostics-color was given.
30479 if test "${with_diagnostics_color+set}" = set; then :
30480 withval=$with_diagnostics_color; case x"$withval" in
30481 xnever)
30482 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30483 ;;
30484 xauto)
30485 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30486 ;;
30487 xauto-if-env)
30488 DIAGNOSTICS_COLOR_DEFAULT=-1
30489 ;;
30490 xalways)
30491 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30492 ;;
30493 *)
30494 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30495 ;;
30496 esac
30497 else
30498 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30499 fi
30500
30501
30502 cat >>confdefs.h <<_ACEOF
30503 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30504 _ACEOF
30505
30506
30507 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30508 # of jit/jit-playback.c.
30509 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30510 echo "gcc_driver_version: ${gcc_driver_version}"
30511 cat > gcc-driver-name.h <<EOF
30512 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30513 EOF
30514
30515 # Check whether --enable-default-pie was given.
30516 # Check whether --enable-default-pie was given.
30517 if test "${enable_default_pie+set}" = set; then :
30518 enableval=$enable_default_pie; enable_default_pie=$enableval
30519 else
30520 enable_default_pie=no
30521 fi
30522
30523 if test x$enable_default_pie = xyes ; then
30524
30525 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30526
30527 fi
30528
30529
30530 # Check if -fno-PIE works.
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30532 $as_echo_n "checking for -fno-PIE option... " >&6; }
30533 if ${gcc_cv_c_no_fpie+:} false; then :
30534 $as_echo_n "(cached) " >&6
30535 else
30536 saved_CXXFLAGS="$CXXFLAGS"
30537 CXXFLAGS="$CXXFLAGS -fno-PIE"
30538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30539 /* end confdefs.h. */
30540 int main(void) {return 0;}
30541 _ACEOF
30542 if ac_fn_cxx_try_compile "$LINENO"; then :
30543 gcc_cv_c_no_fpie=yes
30544 else
30545 gcc_cv_c_no_fpie=no
30546 fi
30547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30548 CXXFLAGS="$saved_CXXFLAGS"
30549 fi
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30551 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30552 if test "$gcc_cv_c_no_fpie" = "yes"; then
30553 NO_PIE_CFLAGS="-fno-PIE"
30554 fi
30555
30556
30557 # Check if -no-pie works.
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30559 $as_echo_n "checking for -no-pie option... " >&6; }
30560 if ${gcc_cv_no_pie+:} false; then :
30561 $as_echo_n "(cached) " >&6
30562 else
30563 saved_LDFLAGS="$LDFLAGS"
30564 LDFLAGS="$LDFLAGS -no-pie"
30565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30566 /* end confdefs.h. */
30567 int main(void) {return 0;}
30568 _ACEOF
30569 if ac_fn_cxx_try_link "$LINENO"; then :
30570 gcc_cv_no_pie=yes
30571 else
30572 gcc_cv_no_pie=no
30573 fi
30574 rm -f core conftest.err conftest.$ac_objext \
30575 conftest$ac_exeext conftest.$ac_ext
30576 LDFLAGS="$saved_LDFLAGS"
30577 fi
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30579 $as_echo "$gcc_cv_no_pie" >&6; }
30580 if test "$gcc_cv_no_pie" = "yes"; then
30581 NO_PIE_FLAG="-no-pie"
30582 fi
30583
30584
30585 # Check linker supports '-z bndplt'
30586 ld_bndplt_support=no
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30588 $as_echo_n "checking linker -z bndplt option... " >&6; }
30589 if test x"$ld_is_gold" = xno; then
30590 if test $in_tree_ld = yes ; then
30591 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
30592 ld_bndplt_support=yes
30593 fi
30594 elif test x$gcc_cv_ld != x; then
30595 # Check if linker supports -a bndplt option
30596 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30597 ld_bndplt_support=yes
30598 fi
30599 fi
30600 fi
30601 if test x"$ld_bndplt_support" = xyes; then
30602
30603 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30604
30605 fi
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30607 $as_echo "$ld_bndplt_support" >&6; }
30608
30609 # Check linker supports '--push-state'/'--pop-state'
30610 ld_pushpopstate_support=no
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30612 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30613 if test x"$ld_is_gold" = xno; then
30614 if test $in_tree_ld = yes ; then
30615 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
30616 ld_pushpopstate_support=yes
30617 fi
30618 elif test x$gcc_cv_ld != x; then
30619 # Check if linker supports --push-state/--pop-state options
30620 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30621 ld_pushpopstate_support=yes
30622 fi
30623 fi
30624 fi
30625 if test x"$ld_pushpopstate_support" = xyes; then
30626
30627 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30628
30629 fi
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30631 $as_echo "$ld_pushpopstate_support" >&6; }
30632
30633 # Configure the subdirectories
30634 # AC_CONFIG_SUBDIRS($subdirs)
30635
30636 # Create the Makefile
30637 # and configure language subdirectories
30638 ac_config_files="$ac_config_files $all_outputs"
30639
30640
30641 ac_config_commands="$ac_config_commands default"
30642
30643 cat >confcache <<\_ACEOF
30644 # This file is a shell script that caches the results of configure
30645 # tests run on this system so they can be shared between configure
30646 # scripts and configure runs, see configure's option --config-cache.
30647 # It is not useful on other systems. If it contains results you don't
30648 # want to keep, you may remove or edit it.
30649 #
30650 # config.status only pays attention to the cache file if you give it
30651 # the --recheck option to rerun configure.
30652 #
30653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30655 # following values.
30656
30657 _ACEOF
30658
30659 # The following way of writing the cache mishandles newlines in values,
30660 # but we know of no workaround that is simple, portable, and efficient.
30661 # So, we kill variables containing newlines.
30662 # Ultrix sh set writes to stderr and can't be redirected directly,
30663 # and sets the high bit in the cache file unless we assign to the vars.
30664 (
30665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30666 eval ac_val=\$$ac_var
30667 case $ac_val in #(
30668 *${as_nl}*)
30669 case $ac_var in #(
30670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30672 esac
30673 case $ac_var in #(
30674 _ | IFS | as_nl) ;; #(
30675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30676 *) { eval $ac_var=; unset $ac_var;} ;;
30677 esac ;;
30678 esac
30679 done
30680
30681 (set) 2>&1 |
30682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30683 *${as_nl}ac_space=\ *)
30684 # `set' does not quote correctly, so add quotes: double-quote
30685 # substitution turns \\\\ into \\, and sed turns \\ into \.
30686 sed -n \
30687 "s/'/'\\\\''/g;
30688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30689 ;; #(
30690 *)
30691 # `set' quotes correctly as required by POSIX, so do not add quotes.
30692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30693 ;;
30694 esac |
30695 sort
30696 ) |
30697 sed '
30698 /^ac_cv_env_/b end
30699 t clear
30700 :clear
30701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30702 t end
30703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30704 :end' >>confcache
30705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30706 if test -w "$cache_file"; then
30707 if test "x$cache_file" != "x/dev/null"; then
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30709 $as_echo "$as_me: updating cache $cache_file" >&6;}
30710 if test ! -f "$cache_file" || test -h "$cache_file"; then
30711 cat confcache >"$cache_file"
30712 else
30713 case $cache_file in #(
30714 */* | ?:*)
30715 mv -f confcache "$cache_file"$$ &&
30716 mv -f "$cache_file"$$ "$cache_file" ;; #(
30717 *)
30718 mv -f confcache "$cache_file" ;;
30719 esac
30720 fi
30721 fi
30722 else
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30725 fi
30726 fi
30727 rm -f confcache
30728
30729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30730 # Let make expand exec_prefix.
30731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30732
30733 DEFS=-DHAVE_CONFIG_H
30734
30735 ac_libobjs=
30736 ac_ltlibobjs=
30737 U=
30738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30739 # 1. Remove the extension, and $U if already installed.
30740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30743 # will be set to the directory where LIBOBJS objects are built.
30744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30746 done
30747 LIBOBJS=$ac_libobjs
30748
30749 LTLIBOBJS=$ac_ltlibobjs
30750
30751
30752
30753
30754 : "${CONFIG_STATUS=./config.status}"
30755 ac_write_fail=0
30756 ac_clean_files_save=$ac_clean_files
30757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30760 as_write_fail=0
30761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30762 #! $SHELL
30763 # Generated by $as_me.
30764 # Run this file to recreate the current configuration.
30765 # Compiler output produced by configure, useful for debugging
30766 # configure, is in config.log if it exists.
30767
30768 debug=false
30769 ac_cs_recheck=false
30770 ac_cs_silent=false
30771
30772 SHELL=\${CONFIG_SHELL-$SHELL}
30773 export SHELL
30774 _ASEOF
30775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30776 ## -------------------- ##
30777 ## M4sh Initialization. ##
30778 ## -------------------- ##
30779
30780 # Be more Bourne compatible
30781 DUALCASE=1; export DUALCASE # for MKS sh
30782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30783 emulate sh
30784 NULLCMD=:
30785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30786 # is contrary to our usage. Disable this feature.
30787 alias -g '${1+"$@"}'='"$@"'
30788 setopt NO_GLOB_SUBST
30789 else
30790 case `(set -o) 2>/dev/null` in #(
30791 *posix*) :
30792 set -o posix ;; #(
30793 *) :
30794 ;;
30795 esac
30796 fi
30797
30798
30799 as_nl='
30800 '
30801 export as_nl
30802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30803 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30806 # Prefer a ksh shell builtin over an external printf program on Solaris,
30807 # but without wasting forks for bash or zsh.
30808 if test -z "$BASH_VERSION$ZSH_VERSION" \
30809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30810 as_echo='print -r --'
30811 as_echo_n='print -rn --'
30812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30813 as_echo='printf %s\n'
30814 as_echo_n='printf %s'
30815 else
30816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30817 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30818 as_echo_n='/usr/ucb/echo -n'
30819 else
30820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30821 as_echo_n_body='eval
30822 arg=$1;
30823 case $arg in #(
30824 *"$as_nl"*)
30825 expr "X$arg" : "X\\(.*\\)$as_nl";
30826 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30827 esac;
30828 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30829 '
30830 export as_echo_n_body
30831 as_echo_n='sh -c $as_echo_n_body as_echo'
30832 fi
30833 export as_echo_body
30834 as_echo='sh -c $as_echo_body as_echo'
30835 fi
30836
30837 # The user is always right.
30838 if test "${PATH_SEPARATOR+set}" != set; then
30839 PATH_SEPARATOR=:
30840 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30841 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30842 PATH_SEPARATOR=';'
30843 }
30844 fi
30845
30846
30847 # IFS
30848 # We need space, tab and new line, in precisely that order. Quoting is
30849 # there to prevent editors from complaining about space-tab.
30850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30851 # splitting by setting IFS to empty value.)
30852 IFS=" "" $as_nl"
30853
30854 # Find who we are. Look in the path if we contain no directory separator.
30855 as_myself=
30856 case $0 in #((
30857 *[\\/]* ) as_myself=$0 ;;
30858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30859 for as_dir in $PATH
30860 do
30861 IFS=$as_save_IFS
30862 test -z "$as_dir" && as_dir=.
30863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30864 done
30865 IFS=$as_save_IFS
30866
30867 ;;
30868 esac
30869 # We did not find ourselves, most probably we were run as `sh COMMAND'
30870 # in which case we are not to be found in the path.
30871 if test "x$as_myself" = x; then
30872 as_myself=$0
30873 fi
30874 if test ! -f "$as_myself"; then
30875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30876 exit 1
30877 fi
30878
30879 # Unset variables that we do not need and which cause bugs (e.g. in
30880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30881 # suppresses any "Segmentation fault" message there. '((' could
30882 # trigger a bug in pdksh 5.2.14.
30883 for as_var in BASH_ENV ENV MAIL MAILPATH
30884 do eval test x\${$as_var+set} = xset \
30885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30886 done
30887 PS1='$ '
30888 PS2='> '
30889 PS4='+ '
30890
30891 # NLS nuisances.
30892 LC_ALL=C
30893 export LC_ALL
30894 LANGUAGE=C
30895 export LANGUAGE
30896
30897 # CDPATH.
30898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30899
30900
30901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30902 # ----------------------------------------
30903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30905 # script with STATUS, using 1 if that was 0.
30906 as_fn_error ()
30907 {
30908 as_status=$1; test $as_status -eq 0 && as_status=1
30909 if test "$4"; then
30910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30912 fi
30913 $as_echo "$as_me: error: $2" >&2
30914 as_fn_exit $as_status
30915 } # as_fn_error
30916
30917
30918 # as_fn_set_status STATUS
30919 # -----------------------
30920 # Set $? to STATUS, without forking.
30921 as_fn_set_status ()
30922 {
30923 return $1
30924 } # as_fn_set_status
30925
30926 # as_fn_exit STATUS
30927 # -----------------
30928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30929 as_fn_exit ()
30930 {
30931 set +e
30932 as_fn_set_status $1
30933 exit $1
30934 } # as_fn_exit
30935
30936 # as_fn_unset VAR
30937 # ---------------
30938 # Portably unset VAR.
30939 as_fn_unset ()
30940 {
30941 { eval $1=; unset $1;}
30942 }
30943 as_unset=as_fn_unset
30944 # as_fn_append VAR VALUE
30945 # ----------------------
30946 # Append the text in VALUE to the end of the definition contained in VAR. Take
30947 # advantage of any shell optimizations that allow amortized linear growth over
30948 # repeated appends, instead of the typical quadratic growth present in naive
30949 # implementations.
30950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30951 eval 'as_fn_append ()
30952 {
30953 eval $1+=\$2
30954 }'
30955 else
30956 as_fn_append ()
30957 {
30958 eval $1=\$$1\$2
30959 }
30960 fi # as_fn_append
30961
30962 # as_fn_arith ARG...
30963 # ------------------
30964 # Perform arithmetic evaluation on the ARGs, and store the result in the
30965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30966 # must be portable across $(()) and expr.
30967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30968 eval 'as_fn_arith ()
30969 {
30970 as_val=$(( $* ))
30971 }'
30972 else
30973 as_fn_arith ()
30974 {
30975 as_val=`expr "$@" || test $? -eq 1`
30976 }
30977 fi # as_fn_arith
30978
30979
30980 if expr a : '\(a\)' >/dev/null 2>&1 &&
30981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30982 as_expr=expr
30983 else
30984 as_expr=false
30985 fi
30986
30987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30988 as_basename=basename
30989 else
30990 as_basename=false
30991 fi
30992
30993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30994 as_dirname=dirname
30995 else
30996 as_dirname=false
30997 fi
30998
30999 as_me=`$as_basename -- "$0" ||
31000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31001 X"$0" : 'X\(//\)$' \| \
31002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31003 $as_echo X/"$0" |
31004 sed '/^.*\/\([^/][^/]*\)\/*$/{
31005 s//\1/
31006 q
31007 }
31008 /^X\/\(\/\/\)$/{
31009 s//\1/
31010 q
31011 }
31012 /^X\/\(\/\).*/{
31013 s//\1/
31014 q
31015 }
31016 s/.*/./; q'`
31017
31018 # Avoid depending upon Character Ranges.
31019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31022 as_cr_digits='0123456789'
31023 as_cr_alnum=$as_cr_Letters$as_cr_digits
31024
31025 ECHO_C= ECHO_N= ECHO_T=
31026 case `echo -n x` in #(((((
31027 -n*)
31028 case `echo 'xy\c'` in
31029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31030 xy) ECHO_C='\c';;
31031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31032 ECHO_T=' ';;
31033 esac;;
31034 *)
31035 ECHO_N='-n';;
31036 esac
31037
31038 rm -f conf$$ conf$$.exe conf$$.file
31039 if test -d conf$$.dir; then
31040 rm -f conf$$.dir/conf$$.file
31041 else
31042 rm -f conf$$.dir
31043 mkdir conf$$.dir 2>/dev/null
31044 fi
31045 if (echo >conf$$.file) 2>/dev/null; then
31046 if ln -s conf$$.file conf$$ 2>/dev/null; then
31047 as_ln_s='ln -s'
31048 # ... but there are two gotchas:
31049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31051 # In both cases, we have to default to `cp -pR'.
31052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31053 as_ln_s='cp -pR'
31054 elif ln conf$$.file conf$$ 2>/dev/null; then
31055 as_ln_s=ln
31056 else
31057 as_ln_s='cp -pR'
31058 fi
31059 else
31060 as_ln_s='cp -pR'
31061 fi
31062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31063 rmdir conf$$.dir 2>/dev/null
31064
31065
31066 # as_fn_mkdir_p
31067 # -------------
31068 # Create "$as_dir" as a directory, including parents if necessary.
31069 as_fn_mkdir_p ()
31070 {
31071
31072 case $as_dir in #(
31073 -*) as_dir=./$as_dir;;
31074 esac
31075 test -d "$as_dir" || eval $as_mkdir_p || {
31076 as_dirs=
31077 while :; do
31078 case $as_dir in #(
31079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31080 *) as_qdir=$as_dir;;
31081 esac
31082 as_dirs="'$as_qdir' $as_dirs"
31083 as_dir=`$as_dirname -- "$as_dir" ||
31084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31085 X"$as_dir" : 'X\(//\)[^/]' \| \
31086 X"$as_dir" : 'X\(//\)$' \| \
31087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31088 $as_echo X"$as_dir" |
31089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31090 s//\1/
31091 q
31092 }
31093 /^X\(\/\/\)[^/].*/{
31094 s//\1/
31095 q
31096 }
31097 /^X\(\/\/\)$/{
31098 s//\1/
31099 q
31100 }
31101 /^X\(\/\).*/{
31102 s//\1/
31103 q
31104 }
31105 s/.*/./; q'`
31106 test -d "$as_dir" && break
31107 done
31108 test -z "$as_dirs" || eval "mkdir $as_dirs"
31109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31110
31111
31112 } # as_fn_mkdir_p
31113 if mkdir -p . 2>/dev/null; then
31114 as_mkdir_p='mkdir -p "$as_dir"'
31115 else
31116 test -d ./-p && rmdir ./-p
31117 as_mkdir_p=false
31118 fi
31119
31120
31121 # as_fn_executable_p FILE
31122 # -----------------------
31123 # Test if FILE is an executable regular file.
31124 as_fn_executable_p ()
31125 {
31126 test -f "$1" && test -x "$1"
31127 } # as_fn_executable_p
31128 as_test_x='test -x'
31129 as_executable_p=as_fn_executable_p
31130
31131 # Sed expression to map a string onto a valid CPP name.
31132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31133
31134 # Sed expression to map a string onto a valid variable name.
31135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31136
31137
31138 exec 6>&1
31139 ## ----------------------------------- ##
31140 ## Main body of $CONFIG_STATUS script. ##
31141 ## ----------------------------------- ##
31142 _ASEOF
31143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31144
31145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31146 # Save the log message, to keep $0 and so on meaningful, and to
31147 # report actual input values of CONFIG_FILES etc. instead of their
31148 # values after options handling.
31149 ac_log="
31150 This file was extended by $as_me, which was
31151 generated by GNU Autoconf 2.69. Invocation command line was
31152
31153 CONFIG_FILES = $CONFIG_FILES
31154 CONFIG_HEADERS = $CONFIG_HEADERS
31155 CONFIG_LINKS = $CONFIG_LINKS
31156 CONFIG_COMMANDS = $CONFIG_COMMANDS
31157 $ $0 $@
31158
31159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31160 "
31161
31162 _ACEOF
31163
31164 case $ac_config_files in *"
31165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31166 esac
31167
31168 case $ac_config_headers in *"
31169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31170 esac
31171
31172
31173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31174 # Files that config.status was made for.
31175 config_files="$ac_config_files"
31176 config_headers="$ac_config_headers"
31177 config_links="$ac_config_links"
31178 config_commands="$ac_config_commands"
31179
31180 _ACEOF
31181
31182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31183 ac_cs_usage="\
31184 \`$as_me' instantiates files and other configuration actions
31185 from templates according to the current configuration. Unless the files
31186 and actions are specified as TAGs, all are instantiated by default.
31187
31188 Usage: $0 [OPTION]... [TAG]...
31189
31190 -h, --help print this help, then exit
31191 -V, --version print version number and configuration settings, then exit
31192 --config print configuration, then exit
31193 -q, --quiet, --silent
31194 do not print progress messages
31195 -d, --debug don't remove temporary files
31196 --recheck update $as_me by reconfiguring in the same conditions
31197 --file=FILE[:TEMPLATE]
31198 instantiate the configuration file FILE
31199 --header=FILE[:TEMPLATE]
31200 instantiate the configuration header FILE
31201
31202 Configuration files:
31203 $config_files
31204
31205 Configuration headers:
31206 $config_headers
31207
31208 Configuration links:
31209 $config_links
31210
31211 Configuration commands:
31212 $config_commands
31213
31214 Report bugs to the package provider."
31215
31216 _ACEOF
31217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31219 ac_cs_version="\\
31220 config.status
31221 configured by $0, generated by GNU Autoconf 2.69,
31222 with options \\"\$ac_cs_config\\"
31223
31224 Copyright (C) 2012 Free Software Foundation, Inc.
31225 This config.status script is free software; the Free Software Foundation
31226 gives unlimited permission to copy, distribute and modify it."
31227
31228 ac_pwd='$ac_pwd'
31229 srcdir='$srcdir'
31230 AWK='$AWK'
31231 test -n "\$AWK" || AWK=awk
31232 _ACEOF
31233
31234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31235 # The default lists apply if the user does not specify any file.
31236 ac_need_defaults=:
31237 while test $# != 0
31238 do
31239 case $1 in
31240 --*=?*)
31241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31243 ac_shift=:
31244 ;;
31245 --*=)
31246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31247 ac_optarg=
31248 ac_shift=:
31249 ;;
31250 *)
31251 ac_option=$1
31252 ac_optarg=$2
31253 ac_shift=shift
31254 ;;
31255 esac
31256
31257 case $ac_option in
31258 # Handling of the options.
31259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31260 ac_cs_recheck=: ;;
31261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31262 $as_echo "$ac_cs_version"; exit ;;
31263 --config | --confi | --conf | --con | --co | --c )
31264 $as_echo "$ac_cs_config"; exit ;;
31265 --debug | --debu | --deb | --de | --d | -d )
31266 debug=: ;;
31267 --file | --fil | --fi | --f )
31268 $ac_shift
31269 case $ac_optarg in
31270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31271 '') as_fn_error $? "missing file argument" ;;
31272 esac
31273 as_fn_append CONFIG_FILES " '$ac_optarg'"
31274 ac_need_defaults=false;;
31275 --header | --heade | --head | --hea )
31276 $ac_shift
31277 case $ac_optarg in
31278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31279 esac
31280 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31281 ac_need_defaults=false;;
31282 --he | --h)
31283 # Conflict between --help and --header
31284 as_fn_error $? "ambiguous option: \`$1'
31285 Try \`$0 --help' for more information.";;
31286 --help | --hel | -h )
31287 $as_echo "$ac_cs_usage"; exit ;;
31288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31290 ac_cs_silent=: ;;
31291
31292 # This is an error.
31293 -*) as_fn_error $? "unrecognized option: \`$1'
31294 Try \`$0 --help' for more information." ;;
31295
31296 *) as_fn_append ac_config_targets " $1"
31297 ac_need_defaults=false ;;
31298
31299 esac
31300 shift
31301 done
31302
31303 ac_configure_extra_args=
31304
31305 if $ac_cs_silent; then
31306 exec 6>/dev/null
31307 ac_configure_extra_args="$ac_configure_extra_args --silent"
31308 fi
31309
31310 _ACEOF
31311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31312 if \$ac_cs_recheck; then
31313 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31314 shift
31315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31316 CONFIG_SHELL='$SHELL'
31317 export CONFIG_SHELL
31318 exec "\$@"
31319 fi
31320
31321 _ACEOF
31322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31323 exec 5>>config.log
31324 {
31325 echo
31326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31327 ## Running $as_me. ##
31328 _ASBOX
31329 $as_echo "$ac_log"
31330 } >&5
31331
31332 _ACEOF
31333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31334 #
31335 # INIT-COMMANDS
31336 #
31337 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31338 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31339 subdirs='$subdirs'
31340
31341 _ACEOF
31342
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31344
31345 # Handling of arguments.
31346 for ac_config_target in $ac_config_targets
31347 do
31348 case $ac_config_target in
31349 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31350 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31351 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31352 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31353 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31354 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31355 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31356 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31357 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31358
31359 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31360 esac
31361 done
31362
31363
31364 # If the user did not use the arguments to specify the items to instantiate,
31365 # then the envvar interface is used. Set only those that are not.
31366 # We use the long form for the default assignment because of an extremely
31367 # bizarre bug on SunOS 4.1.3.
31368 if $ac_need_defaults; then
31369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31371 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31373 fi
31374
31375 # Have a temporary directory for convenience. Make it in the build tree
31376 # simply because there is no reason against having it here, and in addition,
31377 # creating and moving files from /tmp can sometimes cause problems.
31378 # Hook for its removal unless debugging.
31379 # Note that there is a small window in which the directory will not be cleaned:
31380 # after its creation but before its name has been assigned to `$tmp'.
31381 $debug ||
31382 {
31383 tmp= ac_tmp=
31384 trap 'exit_status=$?
31385 : "${ac_tmp:=$tmp}"
31386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31387 ' 0
31388 trap 'as_fn_exit 1' 1 2 13 15
31389 }
31390 # Create a (secure) tmp directory for tmp files.
31391
31392 {
31393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31394 test -d "$tmp"
31395 } ||
31396 {
31397 tmp=./conf$$-$RANDOM
31398 (umask 077 && mkdir "$tmp")
31399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31400 ac_tmp=$tmp
31401
31402 # Set up the scripts for CONFIG_FILES section.
31403 # No need to generate them if there are no CONFIG_FILES.
31404 # This happens for instance with `./config.status config.h'.
31405 if test -n "$CONFIG_FILES"; then
31406
31407 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31408 ac_cs_awk_getline=:
31409 ac_cs_awk_pipe_init=
31410 ac_cs_awk_read_file='
31411 while ((getline aline < (F[key])) > 0)
31412 print(aline)
31413 close(F[key])'
31414 ac_cs_awk_pipe_fini=
31415 else
31416 ac_cs_awk_getline=false
31417 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31418 ac_cs_awk_read_file='
31419 print "|#_!!_#|"
31420 print "cat " F[key] " &&"
31421 '$ac_cs_awk_pipe_init
31422 # The final `:' finishes the AND list.
31423 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31424 fi
31425 ac_cr=`echo X | tr X '\015'`
31426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31427 # But we know of no other shell where ac_cr would be empty at this
31428 # point, so we can use a bashism as a fallback.
31429 if test "x$ac_cr" = x; then
31430 eval ac_cr=\$\'\\r\'
31431 fi
31432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31434 ac_cs_awk_cr='\\r'
31435 else
31436 ac_cs_awk_cr=$ac_cr
31437 fi
31438
31439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31440 _ACEOF
31441
31442 # Create commands to substitute file output variables.
31443 {
31444 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31445 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31446 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31447 echo "_ACAWK" &&
31448 echo "_ACEOF"
31449 } >conf$$files.sh &&
31450 . ./conf$$files.sh ||
31451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31452 rm -f conf$$files.sh
31453
31454 {
31455 echo "cat >conf$$subs.awk <<_ACEOF" &&
31456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31457 echo "_ACEOF"
31458 } >conf$$subs.sh ||
31459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31461 ac_delim='%!_!# '
31462 for ac_last_try in false false false false false :; do
31463 . ./conf$$subs.sh ||
31464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31465
31466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31467 if test $ac_delim_n = $ac_delim_num; then
31468 break
31469 elif $ac_last_try; then
31470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31471 else
31472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31473 fi
31474 done
31475 rm -f conf$$subs.sh
31476
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31479 _ACEOF
31480 sed -n '
31481 h
31482 s/^/S["/; s/!.*/"]=/
31483 p
31484 g
31485 s/^[^!]*!//
31486 :repl
31487 t repl
31488 s/'"$ac_delim"'$//
31489 t delim
31490 :nl
31491 h
31492 s/\(.\{148\}\)..*/\1/
31493 t more1
31494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31495 p
31496 n
31497 b repl
31498 :more1
31499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31500 p
31501 g
31502 s/.\{148\}//
31503 t nl
31504 :delim
31505 h
31506 s/\(.\{148\}\)..*/\1/
31507 t more2
31508 s/["\\]/\\&/g; s/^/"/; s/$/"/
31509 p
31510 b
31511 :more2
31512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31513 p
31514 g
31515 s/.\{148\}//
31516 t delim
31517 ' <conf$$subs.awk | sed '
31518 /^[^""]/{
31519 N
31520 s/\n//
31521 }
31522 ' >>$CONFIG_STATUS || ac_write_fail=1
31523 rm -f conf$$subs.awk
31524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31525 _ACAWK
31526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31527 for (key in S) S_is_set[key] = 1
31528 FS = "\a"
31529 \$ac_cs_awk_pipe_init
31530 }
31531 {
31532 line = $ 0
31533 nfields = split(line, field, "@")
31534 substed = 0
31535 len = length(field[1])
31536 for (i = 2; i < nfields; i++) {
31537 key = field[i]
31538 keylen = length(key)
31539 if (S_is_set[key]) {
31540 value = S[key]
31541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31542 len += length(value) + length(field[++i])
31543 substed = 1
31544 } else
31545 len += 1 + keylen
31546 }
31547 if (nfields == 3 && !substed) {
31548 key = field[2]
31549 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31550 \$ac_cs_awk_read_file
31551 next
31552 }
31553 }
31554 print line
31555 }
31556 \$ac_cs_awk_pipe_fini
31557 _ACAWK
31558 _ACEOF
31559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31562 else
31563 cat
31564 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31565 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31566 _ACEOF
31567
31568 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31569 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31570 # trailing colons and then remove the whole line if VPATH becomes empty
31571 # (actually we leave an empty line to preserve line numbers).
31572 if test "x$srcdir" = x.; then
31573 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31574 h
31575 s///
31576 s/^/:/
31577 s/[ ]*$/:/
31578 s/:\$(srcdir):/:/g
31579 s/:\${srcdir}:/:/g
31580 s/:@srcdir@:/:/g
31581 s/^:*//
31582 s/:*$//
31583 x
31584 s/\(=[ ]*\).*/\1/
31585 G
31586 s/\n//
31587 s/^[^=]*=[ ]*$//
31588 }'
31589 fi
31590
31591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31592 fi # test -n "$CONFIG_FILES"
31593
31594 # Set up the scripts for CONFIG_HEADERS section.
31595 # No need to generate them if there are no CONFIG_HEADERS.
31596 # This happens for instance with `./config.status Makefile'.
31597 if test -n "$CONFIG_HEADERS"; then
31598 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31599 BEGIN {
31600 _ACEOF
31601
31602 # Transform confdefs.h into an awk script `defines.awk', embedded as
31603 # here-document in config.status, that substitutes the proper values into
31604 # config.h.in to produce config.h.
31605
31606 # Create a delimiter string that does not exist in confdefs.h, to ease
31607 # handling of long lines.
31608 ac_delim='%!_!# '
31609 for ac_last_try in false false :; do
31610 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31611 if test -z "$ac_tt"; then
31612 break
31613 elif $ac_last_try; then
31614 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31615 else
31616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31617 fi
31618 done
31619
31620 # For the awk script, D is an array of macro values keyed by name,
31621 # likewise P contains macro parameters if any. Preserve backslash
31622 # newline sequences.
31623
31624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31625 sed -n '
31626 s/.\{148\}/&'"$ac_delim"'/g
31627 t rset
31628 :rset
31629 s/^[ ]*#[ ]*define[ ][ ]*/ /
31630 t def
31631 d
31632 :def
31633 s/\\$//
31634 t bsnl
31635 s/["\\]/\\&/g
31636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31637 D["\1"]=" \3"/p
31638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31639 d
31640 :bsnl
31641 s/["\\]/\\&/g
31642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31643 D["\1"]=" \3\\\\\\n"\\/p
31644 t cont
31645 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31646 t cont
31647 d
31648 :cont
31649 n
31650 s/.\{148\}/&'"$ac_delim"'/g
31651 t clear
31652 :clear
31653 s/\\$//
31654 t bsnlc
31655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31656 d
31657 :bsnlc
31658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31659 b cont
31660 ' <confdefs.h | sed '
31661 s/'"$ac_delim"'/"\\\
31662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31663
31664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31665 for (key in D) D_is_set[key] = 1
31666 FS = "\a"
31667 }
31668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31669 line = \$ 0
31670 split(line, arg, " ")
31671 if (arg[1] == "#") {
31672 defundef = arg[2]
31673 mac1 = arg[3]
31674 } else {
31675 defundef = substr(arg[1], 2)
31676 mac1 = arg[2]
31677 }
31678 split(mac1, mac2, "(") #)
31679 macro = mac2[1]
31680 prefix = substr(line, 1, index(line, defundef) - 1)
31681 if (D_is_set[macro]) {
31682 # Preserve the white space surrounding the "#".
31683 print prefix "define", macro P[macro] D[macro]
31684 next
31685 } else {
31686 # Replace #undef with comments. This is necessary, for example,
31687 # in the case of _POSIX_SOURCE, which is predefined and required
31688 # on some systems where configure will not decide to define it.
31689 if (defundef == "undef") {
31690 print "/*", prefix defundef, macro, "*/"
31691 next
31692 }
31693 }
31694 }
31695 { print }
31696 _ACAWK
31697 _ACEOF
31698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31699 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31700 fi # test -n "$CONFIG_HEADERS"
31701
31702
31703 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31704 shift
31705 for ac_tag
31706 do
31707 case $ac_tag in
31708 :[FHLC]) ac_mode=$ac_tag; continue;;
31709 esac
31710 case $ac_mode$ac_tag in
31711 :[FHL]*:*);;
31712 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31713 :[FH]-) ac_tag=-:-;;
31714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31715 esac
31716 ac_save_IFS=$IFS
31717 IFS=:
31718 set x $ac_tag
31719 IFS=$ac_save_IFS
31720 shift
31721 ac_file=$1
31722 shift
31723
31724 case $ac_mode in
31725 :L) ac_source=$1;;
31726 :[FH])
31727 ac_file_inputs=
31728 for ac_f
31729 do
31730 case $ac_f in
31731 -) ac_f="$ac_tmp/stdin";;
31732 *) # Look for the file first in the build tree, then in the source tree
31733 # (if the path is not absolute). The absolute path cannot be DOS-style,
31734 # because $ac_f cannot contain `:'.
31735 test -f "$ac_f" ||
31736 case $ac_f in
31737 [\\/$]*) false;;
31738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31739 esac ||
31740 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31741 esac
31742 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31743 as_fn_append ac_file_inputs " '$ac_f'"
31744 done
31745
31746 # Let's still pretend it is `configure' which instantiates (i.e., don't
31747 # use $as_me), people would be surprised to read:
31748 # /* config.h. Generated by config.status. */
31749 configure_input='Generated from '`
31750 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31751 `' by configure.'
31752 if test x"$ac_file" != x-; then
31753 configure_input="$ac_file. $configure_input"
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31755 $as_echo "$as_me: creating $ac_file" >&6;}
31756 fi
31757 # Neutralize special characters interpreted by sed in replacement strings.
31758 case $configure_input in #(
31759 *\&* | *\|* | *\\* )
31760 ac_sed_conf_input=`$as_echo "$configure_input" |
31761 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31762 *) ac_sed_conf_input=$configure_input;;
31763 esac
31764
31765 case $ac_tag in
31766 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31768 esac
31769 ;;
31770 esac
31771
31772 ac_dir=`$as_dirname -- "$ac_file" ||
31773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31774 X"$ac_file" : 'X\(//\)[^/]' \| \
31775 X"$ac_file" : 'X\(//\)$' \| \
31776 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31777 $as_echo X"$ac_file" |
31778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31779 s//\1/
31780 q
31781 }
31782 /^X\(\/\/\)[^/].*/{
31783 s//\1/
31784 q
31785 }
31786 /^X\(\/\/\)$/{
31787 s//\1/
31788 q
31789 }
31790 /^X\(\/\).*/{
31791 s//\1/
31792 q
31793 }
31794 s/.*/./; q'`
31795 as_dir="$ac_dir"; as_fn_mkdir_p
31796 ac_builddir=.
31797
31798 case "$ac_dir" in
31799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31800 *)
31801 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31802 # A ".." for each directory in $ac_dir_suffix.
31803 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31804 case $ac_top_builddir_sub in
31805 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31806 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31807 esac ;;
31808 esac
31809 ac_abs_top_builddir=$ac_pwd
31810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31811 # for backward compatibility:
31812 ac_top_builddir=$ac_top_build_prefix
31813
31814 case $srcdir in
31815 .) # We are building in place.
31816 ac_srcdir=.
31817 ac_top_srcdir=$ac_top_builddir_sub
31818 ac_abs_top_srcdir=$ac_pwd ;;
31819 [\\/]* | ?:[\\/]* ) # Absolute name.
31820 ac_srcdir=$srcdir$ac_dir_suffix;
31821 ac_top_srcdir=$srcdir
31822 ac_abs_top_srcdir=$srcdir ;;
31823 *) # Relative name.
31824 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31825 ac_top_srcdir=$ac_top_build_prefix$srcdir
31826 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31827 esac
31828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31829
31830
31831 case $ac_mode in
31832 :F)
31833 #
31834 # CONFIG_FILE
31835 #
31836
31837 _ACEOF
31838
31839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31840 # If the template does not know about datarootdir, expand it.
31841 # FIXME: This hack should be removed a few years after 2.60.
31842 ac_datarootdir_hack=; ac_datarootdir_seen=
31843 ac_sed_dataroot='
31844 /datarootdir/ {
31845 p
31846 q
31847 }
31848 /@datadir@/p
31849 /@docdir@/p
31850 /@infodir@/p
31851 /@localedir@/p
31852 /@mandir@/p'
31853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31854 *datarootdir*) ac_datarootdir_seen=yes;;
31855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31858 _ACEOF
31859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31860 ac_datarootdir_hack='
31861 s&@datadir@&$datadir&g
31862 s&@docdir@&$docdir&g
31863 s&@infodir@&$infodir&g
31864 s&@localedir@&$localedir&g
31865 s&@mandir@&$mandir&g
31866 s&\\\${datarootdir}&$datarootdir&g' ;;
31867 esac
31868 _ACEOF
31869
31870 # Neutralize VPATH when `$srcdir' = `.'.
31871 # Shell code in configure.ac might set extrasub.
31872 # FIXME: do we really want to maintain this feature?
31873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31874 ac_sed_extra="$ac_vpsub
31875 $extrasub
31876 _ACEOF
31877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31878 :t
31879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31880 s|@configure_input@|$ac_sed_conf_input|;t t
31881 s&@top_builddir@&$ac_top_builddir_sub&;t t
31882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31883 s&@srcdir@&$ac_srcdir&;t t
31884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31885 s&@top_srcdir@&$ac_top_srcdir&;t t
31886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31887 s&@builddir@&$ac_builddir&;t t
31888 s&@abs_builddir@&$ac_abs_builddir&;t t
31889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31890 $ac_datarootdir_hack
31891 "
31892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31893 if $ac_cs_awk_getline; then
31894 $AWK -f "$ac_tmp/subs.awk"
31895 else
31896 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31897 fi \
31898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31899
31900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31905 which seems to be undefined. Please make sure it is defined" >&5
31906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31907 which seems to be undefined. Please make sure it is defined" >&2;}
31908
31909 rm -f "$ac_tmp/stdin"
31910 case $ac_file in
31911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31913 esac \
31914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31915 ;;
31916 :H)
31917 #
31918 # CONFIG_HEADER
31919 #
31920 if test x"$ac_file" != x-; then
31921 {
31922 $as_echo "/* $configure_input */" \
31923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31924 } >"$ac_tmp/config.h" \
31925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31929 else
31930 rm -f "$ac_file"
31931 mv "$ac_tmp/config.h" "$ac_file" \
31932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31933 fi
31934 else
31935 $as_echo "/* $configure_input */" \
31936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31937 || as_fn_error $? "could not create -" "$LINENO" 5
31938 fi
31939 ;;
31940 :L)
31941 #
31942 # CONFIG_LINK
31943 #
31944
31945 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31946 :
31947 else
31948 # Prefer the file from the source tree if names are identical.
31949 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31950 ac_source=$srcdir/$ac_source
31951 fi
31952
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31954 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31955
31956 if test ! -r "$ac_source"; then
31957 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31958 fi
31959 rm -f "$ac_file"
31960
31961 # Try a relative symlink, then a hard link, then a copy.
31962 case $ac_source in
31963 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31964 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31965 esac
31966 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31967 ln "$ac_source" "$ac_file" 2>/dev/null ||
31968 cp -p "$ac_source" "$ac_file" ||
31969 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31970 fi
31971 ;;
31972 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31973 $as_echo "$as_me: executing $ac_file commands" >&6;}
31974 ;;
31975 esac
31976
31977
31978 case $ac_file$ac_mode in
31979 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31980 "gccdepdir":C)
31981 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31982 for lang in $subdirs c-family common
31983 do
31984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31985 done ;;
31986 "as":F) chmod +x as ;;
31987 "collect-ld":F) chmod +x collect-ld ;;
31988 "nm":F) chmod +x nm ;;
31989 "default":C)
31990 case ${CONFIG_HEADERS} in
31991 *auto-host.h:config.in*)
31992 echo > cstamp-h ;;
31993 esac
31994 # Make sure all the subdirs exist.
31995 for d in $subdirs doc build common c-family
31996 do
31997 test -d $d || mkdir $d
31998 done
31999 ;;
32000
32001 esac
32002 done # for ac_tag
32003
32004
32005 as_fn_exit 0
32006 _ACEOF
32007 ac_clean_files=$ac_clean_files_save
32008
32009 test $ac_write_fail = 0 ||
32010 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32011
32012
32013 # configure is writing to config.log, and then calls config.status.
32014 # config.status does its own redirection, appending to config.log.
32015 # Unfortunately, on DOS this fails, as config.log is still kept open
32016 # by configure, so config.status won't be able to write to it; its
32017 # output is simply discarded. So we exec the FD to /dev/null,
32018 # effectively closing config.log, so it can be properly (re)opened and
32019 # appended to by config.status. When coming back to configure, we
32020 # need to make the FD available again.
32021 if test "$no_create" != yes; then
32022 ac_cs_success=:
32023 ac_config_status_args=
32024 test "$silent" = yes &&
32025 ac_config_status_args="$ac_config_status_args --quiet"
32026 exec 5>/dev/null
32027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32028 exec 5>>config.log
32029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32030 # would make configure fail if this is the last instruction.
32031 $ac_cs_success || as_fn_exit 1
32032 fi
32033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32036 fi
32037
32038