[ARM/AArch64][2/2] Crypto intrinsics tuning for Cortex-A53 - pipeline description
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
746 AR
747 NM
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
760 LN
761 LN_S
762 AWK
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
795 CPP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
801 CXX
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 with_stabs
886 enable_multilib
887 enable_multiarch
888 enable___cxa_atexit
889 enable_decimal_float
890 enable_fixed_point
891 enable_threads
892 enable_tls
893 enable_objc_gc
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 enable_ld
917 enable_gold
918 with_plugin_ld
919 enable_gnu_indirect_function
920 enable_initfini_array
921 enable_comdat
922 with_glibc_version
923 enable_gnu_unique_object
924 enable_linker_build_id
925 with_long_double_128
926 with_gc
927 with_system_zlib
928 enable_maintainer_mode
929 enable_link_mutex
930 enable_version_specific_runtime_libs
931 enable_plugin
932 enable_host_shared
933 enable_libquadmath_support
934 with_linker_hash_style
935 '
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 CXX
945 CXXFLAGS
946 CCC
947 CPP
948 CXXCPP
949 GMPLIBS
950 GMPINC
951 ISLLIBS
952 ISLINC
953 CLOOGLIBS
954 CLOOGINC'
955
956
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1014 fi
1015
1016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
1020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
1026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1051
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1382 do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1413 fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\/\)$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\).*/{
1453 s//\1/
1454 q
1455 }
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1460 fi
1461 else
1462 ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1550
1551 cat <<\_ACEOF
1552
1553 Program names:
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1557
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-generated-files-in-srcdir
1574 put copies of generated files in source dir intended
1575 for creating source tarballs for users without
1576 texinfo bison or flex
1577 --disable-largefile omit support for large files
1578 --disable-build-format-warnings
1579 don't use -Wformat while building GCC
1580 --enable-werror-always enable -Werror despite compiler version
1581 --enable-checking[=LIST]
1582 enable expensive run-time checks. With LIST, enable
1583 only specific categories of checks. Categories are:
1584 yes,no,all,none,release. Flags are:
1585 assert,df,fold,gc,gcac,gimple,misc,
1586 rtlflag,rtl,runtime,tree,valgrind,types
1587 --enable-coverage[=LEVEL]
1588 enable compiler's code coverage collection. Use to
1589 measure compiler performance and locate unused parts
1590 of the compiler. With LEVEL, specify optimization.
1591 Values are opt, noopt, default is noopt
1592 --enable-gather-detailed-mem-stats
1593 enable detailed memory allocation stats gathering
1594 --enable-multilib enable library support for multiple ABIs
1595 --enable-multiarch enable support for multiarch paths
1596 --enable-__cxa_atexit enable __cxa_atexit for C++
1597 --enable-decimal-float={no,yes,bid,dpd}
1598 enable decimal float extension to C. Selecting 'bid'
1599 or 'dpd' choses which decimal floating point format
1600 to use
1601 --enable-fixed-point enable fixed-point arithmetic extension to C
1602 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1603 package
1604 --enable-tls enable or disable generation of tls code overriding
1605 the assembler check for tls support
1606 --enable-objc-gc enable the use of Boehm's garbage collector with the
1607 GNU Objective-C runtime
1608 --disable-shared don't provide a shared libgcc
1609 --enable-languages=LIST specify which front-ends to build
1610 --disable-rpath do not hardcode runtime library paths
1611 --enable-sjlj-exceptions
1612 arrange to use setjmp/longjmp exception handling
1613 --enable-secureplt enable -msecure-plt by default for PowerPC
1614 --enable-leading-mingw64-underscores
1615 enable leading underscores on 64 bit mingw targets
1616 --enable-cld enable -mcld by default for 32bit x86
1617 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1618 x86
1619 --disable-win32-registry
1620 disable lookup of installation paths in the Registry
1621 on Windows hosts
1622 --enable-win32-registry enable registry lookup (default)
1623 --enable-win32-registry=KEY
1624 use KEY instead of GCC version as the last portion
1625 of the registry key
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1632 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1633 --enable-gnu-indirect-function
1634 enable the use of the @gnu_indirect_function to
1635 glibc systems
1636 --enable-initfini-array use .init_array/.fini_array sections
1637 --enable-comdat enable COMDAT group support
1638 --enable-gnu-unique-object
1639 enable the use of the @gnu_unique_object ELF
1640 extension on glibc systems
1641 --enable-linker-build-id
1642 compiler will always pass --build-id to linker
1643 --enable-maintainer-mode
1644 enable make rules and dependencies not useful (and
1645 sometimes confusing) to the casual installer
1646 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1647 thrashing on the build machine
1648 --enable-version-specific-runtime-libs
1649 specify that runtime libraries should be installed
1650 in a compiler-specific directory
1651 --enable-plugin enable plugin support
1652 --enable-host-shared build host code as shared libraries
1653 --disable-libquadmath-support
1654 disable libquadmath support for Fortran
1655
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-build-libsubdir=DIR Directory where to find libraries for build system
1660 --with-local-prefix=DIR specifies directory to put local include
1661 --with-gxx-include-dir=DIR
1662 specifies directory to put g++ header files
1663 --with-cpp-install-dir=DIR
1664 install the user visible C preprocessor in DIR
1665 (relative to PREFIX) as well as PREFIX/bin
1666 --with-gnu-ld arrange to work with GNU ld
1667 --with-ld arrange to use the specified ld (full pathname)
1668 --with-demangler-in-ld try to use demangler in GNU ld
1669 --with-gnu-as arrange to work with GNU as
1670 --with-as arrange to use the specified as (full pathname)
1671 --with-stabs arrange to use stabs instead of host debug format
1672 --with-dwarf2 force the default debug format to be DWARF 2
1673 --with-native-system-header-dir=dir
1674 use dir as the directory to look for standard
1675 system header files in. Defaults to /usr/include.
1676 --with-build-sysroot=sysroot
1677 use sysroot as the system root during the build
1678 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1679 --with-specs=SPECS add SPECS to driver command-line processing
1680 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1681 --with-bugurl=URL Direct users to URL to report a bug
1682 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-pic try to use only PIC/non-PIC objects [default=use
1687 both]
1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1689 --with-plugin-ld=[ARG] specify the plugin linker
1690 --with-glibc-version=M.N
1691 assume GCC used with glibc version M.N or later
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} this option is not supported anymore. It used to
1694 choose the garbage collection mechanism to use with
1695 the compiler
1696 --with-system-zlib use installed libz
1697 --with-linker-hash-style={sysv,gnu,both}
1698 specify the linker hash style
1699
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CPP C preprocessor
1711 CXXCPP C++ preprocessor
1712 GMPLIBS How to link GMP
1713 GMPINC How to find GMP include files
1714 ISLLIBS How to link ISL
1715 ISLINC How to find ISL include files
1716 CLOOGLIBS How to link CLOOG
1717 CLOOGINC How to find CLOOG include files
1718
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1721
1722 Report bugs to the package provider.
1723 _ACEOF
1724 ac_status=$?
1725 fi
1726
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1733 ac_builddir=.
1734
1735 case "$ac_dir" in
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *)
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745 esac
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1750
1751 case $srcdir in
1752 .) # We are building in place.
1753 ac_srcdir=.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 esac
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1780 fi
1781
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.64
1787
1788 Copyright (C) 2009 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1793 fi
1794
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1798
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1834
1835 } # ac_fn_c_try_compile
1836
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873 } # ac_fn_cxx_try_compile
1874
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1940 else
1941 ac_header_compiler=no
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1946
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1956 else
1957 ac_header_preproc=no
1958 fi
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1962
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 yes:no: )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 ;;
1971 no:yes:* )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ;;
1983 esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=\$ac_header_compiler"
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 fi
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997 } # ac_fn_c_check_header_mongrel
1998
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 ac_retval=$ac_status
2034 fi
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 return $ac_retval
2038
2039 } # ac_fn_c_try_run
2040
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_c_check_header_compile
2071
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2078 {
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=0 ac_mid=0
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2118 fi
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0
2132
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=-1 ac_mid=-1
2139 while :; do
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 int
2144 main ()
2145 {
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 test_array [0] = 0
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2155 else
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2158 ac_lo= ac_hi=
2159 break
2160 fi
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 else
2166 ac_lo= ac_hi=
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0
2182
2183 ;
2184 return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189 else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 case $ac_lo in #((
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196 '') ac_retval=1 ;;
2197 esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2204 #include <stdio.h>
2205 #include <stdlib.h>
2206 int
2207 main ()
2208 {
2209
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2214 {
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2219 }
2220 else
2221 {
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2226 }
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237 else
2238 ac_retval=1
2239 fi
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f conftest.val
2243
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2247
2248 } # ac_fn_c_compute_int
2249
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main ()
2268 {
2269 if (sizeof ($2))
2270 return 0;
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 int
2280 main ()
2281 {
2282 if (sizeof (($2)))
2283 return 0;
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289
2290 else
2291 eval "$3=yes"
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301
2302 } # ac_fn_c_check_type
2303
2304 # ac_fn_c_find_intX_t LINENO BITS VAR
2305 # -----------------------------------
2306 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 # accordingly.
2308 ac_fn_c_find_intX_t ()
2309 {
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2312 $as_echo_n "checking for int$2_t... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 eval "$3=no"
2317 for ac_type in int$2_t 'int' 'long int' \
2318 'long long int' 'short int' 'signed char'; do
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2322 int
2323 main ()
2324 {
2325 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2326 test_array [0] = 0
2327
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $ac_includes_default
2336 int
2337 main ()
2338 {
2339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2340 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2341 test_array [0] = 0
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348
2349 else
2350 case $ac_type in #(
2351 int$2_t) :
2352 eval "$3=yes" ;; #(
2353 *) :
2354 eval "$3=\$ac_type" ;;
2355 esac
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval as_val=\$$3
2361 if test "x$as_val" = x""no; then :
2362
2363 else
2364 break
2365 fi
2366 done
2367 fi
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372
2373 } # ac_fn_c_find_intX_t
2374
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_link ()
2379 {
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2395 fi
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest$ac_exeext
2403 }; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410 fi
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 return $ac_retval
2418
2419 } # ac_fn_c_try_link
2420
2421 # ac_fn_c_find_uintX_t LINENO BITS VAR
2422 # ------------------------------------
2423 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 # accordingly.
2425 ac_fn_c_find_uintX_t ()
2426 {
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2429 $as_echo_n "checking for uint$2_t... " >&6; }
2430 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 eval "$3=no"
2434 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $ac_includes_default
2439 int
2440 main ()
2441 {
2442 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2443 test_array [0] = 0
2444
2445 ;
2446 return 0;
2447 }
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 case $ac_type in #(
2451 uint$2_t) :
2452 eval "$3=yes" ;; #(
2453 *) :
2454 eval "$3=\$ac_type" ;;
2455 esac
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval as_val=\$$3
2459 if test "x$as_val" = x""no; then :
2460
2461 else
2462 break
2463 fi
2464 done
2465 fi
2466 eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470
2471 } # ac_fn_c_find_uintX_t
2472
2473 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2474 # ----------------------------------------------
2475 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2476 ac_fn_c_check_header_preproc ()
2477 {
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_cpp "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2492 fi
2493 rm -f conftest.err conftest.$ac_ext
2494 fi
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499
2500 } # ac_fn_c_check_header_preproc
2501
2502 # ac_fn_cxx_try_cpp LINENO
2503 # ------------------------
2504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2505 ac_fn_cxx_try_cpp ()
2506 {
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_cpp conftest.$ac_ext"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2521 fi
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } >/dev/null && {
2524 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_retval=1
2533 fi
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 return $ac_retval
2536
2537 } # ac_fn_cxx_try_cpp
2538
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2543 {
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552 #include <$2>
2553 _ACEOF
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2558 fi
2559 rm -f conftest.err conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566 } # ac_fn_cxx_check_header_preproc
2567
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2572 {
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2584
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2589
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2595
2596 #undef $2
2597
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2611
2612 int
2613 main ()
2614 {
2615 return $2 ();
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2627 fi
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632
2633 } # ac_fn_c_check_func
2634
2635 # ac_fn_cxx_try_link LINENO
2636 # -------------------------
2637 # Try to link conftest.$ac_ext, and return whether this succeeded.
2638 ac_fn_cxx_try_link ()
2639 {
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 rm -f conftest.$ac_objext conftest$ac_exeext
2642 if { { ac_try="$ac_link"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>conftest.err
2650 ac_status=$?
2651 if test -s conftest.err; then
2652 grep -v '^ *+' conftest.err >conftest.er1
2653 cat conftest.er1 >&5
2654 mv -f conftest.er1 conftest.err
2655 fi
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && {
2658 test -z "$ac_cxx_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest$ac_exeext && {
2661 test "$cross_compiling" = yes ||
2662 $as_test_x conftest$ac_exeext
2663 }; then :
2664 ac_retval=0
2665 else
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 ac_retval=1
2670 fi
2671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2673 # interfere with the next link command; also delete a directory that is
2674 # left behind by Apple's compiler. We do this before executing the actions.
2675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 return $ac_retval
2678
2679 } # ac_fn_cxx_try_link
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2683
2684 It was created by $as_me, which was
2685 generated by GNU Autoconf 2.64. Invocation command line was
2686
2687 $ $0 $@
2688
2689 _ACEOF
2690 exec 5>>config.log
2691 {
2692 cat <<_ASUNAME
2693 ## --------- ##
2694 ## Platform. ##
2695 ## --------- ##
2696
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2713
2714 _ASUNAME
2715
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 $as_echo "PATH: $as_dir"
2722 done
2723 IFS=$as_save_IFS
2724
2725 } >&5
2726
2727 cat >&5 <<_ACEOF
2728
2729
2730 ## ----------- ##
2731 ## Core tests. ##
2732 ## ----------- ##
2733
2734 _ACEOF
2735
2736
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_configure_args=
2743 ac_configure_args0=
2744 ac_configure_args1=
2745 ac_must_keep_next=false
2746 for ac_pass in 1 2
2747 do
2748 for ac_arg
2749 do
2750 case $ac_arg in
2751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753 | -silent | --silent | --silen | --sile | --sil)
2754 continue ;;
2755 *\'*)
2756 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 esac
2758 case $ac_pass in
2759 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2760 2)
2761 as_fn_append ac_configure_args1 " '$ac_arg'"
2762 if test $ac_must_keep_next = true; then
2763 ac_must_keep_next=false # Got value, back to normal.
2764 else
2765 case $ac_arg in
2766 *=* | --config-cache | -C | -disable-* | --disable-* \
2767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769 | -with-* | --with-* | -without-* | --without-* | --x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772 esac
2773 ;;
2774 -* ) ac_must_keep_next=true ;;
2775 esac
2776 fi
2777 as_fn_append ac_configure_args " '$ac_arg'"
2778 ;;
2779 esac
2780 done
2781 done
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2784
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2792 {
2793 echo
2794
2795 cat <<\_ASBOX
2796 ## ---------------- ##
2797 ## Cache variables. ##
2798 ## ---------------- ##
2799 _ASBOX
2800 echo
2801 # The following way of writing the cache mishandles newlines in values,
2802 (
2803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2804 eval ac_val=\$$ac_var
2805 case $ac_val in #(
2806 *${as_nl}*)
2807 case $ac_var in #(
2808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2810 esac
2811 case $ac_var in #(
2812 _ | IFS | as_nl) ;; #(
2813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2814 *) { eval $ac_var=; unset $ac_var;} ;;
2815 esac ;;
2816 esac
2817 done
2818 (set) 2>&1 |
2819 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2820 *${as_nl}ac_space=\ *)
2821 sed -n \
2822 "s/'\''/'\''\\\\'\'''\''/g;
2823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2824 ;; #(
2825 *)
2826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2827 ;;
2828 esac |
2829 sort
2830 )
2831 echo
2832
2833 cat <<\_ASBOX
2834 ## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_vars
2840 do
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2848
2849 if test -n "$ac_subst_files"; then
2850 cat <<\_ASBOX
2851 ## ------------------- ##
2852 ## File substitutions. ##
2853 ## ------------------- ##
2854 _ASBOX
2855 echo
2856 for ac_var in $ac_subst_files
2857 do
2858 eval ac_val=\$$ac_var
2859 case $ac_val in
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 esac
2862 $as_echo "$ac_var='\''$ac_val'\''"
2863 done | sort
2864 echo
2865 fi
2866
2867 if test -s confdefs.h; then
2868 cat <<\_ASBOX
2869 ## ----------- ##
2870 ## confdefs.h. ##
2871 ## ----------- ##
2872 _ASBOX
2873 echo
2874 cat confdefs.h
2875 echo
2876 fi
2877 test "$ac_signal" != 0 &&
2878 $as_echo "$as_me: caught signal $ac_signal"
2879 $as_echo "$as_me: exit $exit_status"
2880 } >&5
2881 rm -f core *.core core.conftest.* &&
2882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2883 exit $exit_status
2884 ' 0
2885 for ac_signal in 1 2 13 15; do
2886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2887 done
2888 ac_signal=0
2889
2890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2891 rm -f -r conftest* confdefs.h
2892
2893 $as_echo "/* confdefs.h */" > confdefs.h
2894
2895 # Predefined preprocessor variables.
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_NAME "$PACKAGE_NAME"
2899 _ACEOF
2900
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2903 _ACEOF
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2907 _ACEOF
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_STRING "$PACKAGE_STRING"
2911 _ACEOF
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2915 _ACEOF
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_URL "$PACKAGE_URL"
2919 _ACEOF
2920
2921
2922 # Let the site file select an alternate cache file if it wants to.
2923 # Prefer an explicitly selected file to automatically selected ones.
2924 ac_site_file1=NONE
2925 ac_site_file2=NONE
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_file1=$CONFIG_SITE
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_file1=$prefix/share/config.site
2930 ac_site_file2=$prefix/etc/config.site
2931 else
2932 ac_site_file1=$ac_default_prefix/share/config.site
2933 ac_site_file2=$ac_default_prefix/etc/config.site
2934 fi
2935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2936 do
2937 test "x$ac_site_file" = xNONE && continue
2938 if test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2942 . "$ac_site_file"
2943 fi
2944 done
2945
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special
2948 # files actually), so we avoid doing that.
2949 if test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 case $cache_file in
2953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954 *) . "./$cache_file";;
2955 esac
2956 fi
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2960 >$cache_file
2961 fi
2962
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2972 set,)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,set)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,);;
2981 *)
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2999 fi;;
3000 esac
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3003 case $ac_new_val in
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3006 esac
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010 esac
3011 fi
3012 done
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 fi
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031
3032
3033
3034
3035 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3036
3037
3038 gcc_version=`cat $srcdir/BASE-VER`
3039
3040 # Determine the host, build, and target systems
3041 ac_aux_dir=
3042 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3043 for ac_t in install-sh install.sh shtool; do
3044 if test -f "$ac_dir/$ac_t"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/$ac_t -c"
3047 break 2
3048 fi
3049 done
3050 done
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3053 fi
3054
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3062
3063
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if test "${ac_cv_build+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3087 esac
3088 build=$ac_cv_build
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_build
3091 shift
3092 build_cpu=$1
3093 build_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 build_os=$*
3098 IFS=$ac_save_IFS
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test "x$host_alias" = x; then
3108 ac_cv_host=$ac_cv_build
3109 else
3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test "x$target_alias" = x; then
3141 ac_cv_target=$ac_cv_host
3142 else
3143 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3145 fi
3146
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3151 *-*-*) ;;
3152 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3153 esac
3154 target=$ac_cv_target
3155 ac_save_IFS=$IFS; IFS='-'
3156 set x $ac_cv_target
3157 shift
3158 target_cpu=$1
3159 target_vendor=$2
3160 shift; shift
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3163 target_os=$*
3164 IFS=$ac_save_IFS
3165 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3166
3167
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171 test "$program_prefix$program_suffix$program_transform_name" = \
3172 NONENONEs,x,x, &&
3173 program_prefix=${target_alias}-
3174
3175 # Determine the noncanonical target name, for directory use.
3176 case ${build_alias} in
3177 "") build_noncanonical=${build} ;;
3178 *) build_noncanonical=${build_alias} ;;
3179 esac
3180
3181 case ${host_alias} in
3182 "") host_noncanonical=${build_noncanonical} ;;
3183 *) host_noncanonical=${host_alias} ;;
3184 esac
3185
3186 case ${target_alias} in
3187 "") target_noncanonical=${host_noncanonical} ;;
3188 *) target_noncanonical=${target_alias} ;;
3189 esac
3190
3191
3192
3193
3194 # Determine the target- and build-specific subdirectories
3195
3196 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3197 # have matching libraries, they should use host libraries: Makefile.tpl
3198 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3199 # However, they still use the build modules, because the corresponding
3200 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # finishes. So:
3202 # - build_subdir is where we find build modules, and never changes.
3203 # - build_libsubdir is where we find build libraries, and can be overridden.
3204
3205 # Prefix 'build-' so this never conflicts with target_subdir.
3206 build_subdir="build-${build_noncanonical}"
3207
3208 # Check whether --with-build-libsubdir was given.
3209 if test "${with_build_libsubdir+set}" = set; then :
3210 withval=$with_build_libsubdir; build_libsubdir="$withval"
3211 else
3212 build_libsubdir="$build_subdir"
3213 fi
3214
3215 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3216 if ( test $srcdir = . && test -d gcc ) \
3217 || test -d $srcdir/../host-${host_noncanonical}; then
3218 host_subdir="host-${host_noncanonical}"
3219 else
3220 host_subdir=.
3221 fi
3222 # No prefix.
3223 target_subdir=${target_noncanonical}
3224
3225
3226 # Set program_transform_name
3227 test "$program_prefix" != NONE &&
3228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3229 # Use a double $ so make ignores it.
3230 test "$program_suffix" != NONE &&
3231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3232 # Double any \ or $.
3233 # By default was `s,x,x', remove it if useless.
3234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3236
3237
3238 # Check for bogus environment variables.
3239 # Test if LIBRARY_PATH contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # LIBRARY_PATH contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3247 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3248 case ${LIBRARY_PATH} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 library_path_setting="contains current directory"
3251 ;;
3252 *)
3253 library_path_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3257 $as_echo "$library_path_setting" >&6; }
3258 if test "$library_path_setting" != "ok"; then
3259 as_fn_error "
3260 *** LIBRARY_PATH shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3266 # since this would lead to problems installing/building glibc.
3267 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # is true:
3269 # - one of the terminals (":" and ";") is the first or last sign
3270 # - two terminals occur directly after each other
3271 # - the path contains an element with a dot in it
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3273 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3274 case ${GCC_EXEC_PREFIX} in
3275 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3276 gcc_exec_prefix_setting="contains current directory"
3277 ;;
3278 *)
3279 gcc_exec_prefix_setting="ok"
3280 ;;
3281 esac
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3283 $as_echo "$gcc_exec_prefix_setting" >&6; }
3284 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 as_fn_error "
3286 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3287 *** building gcc. Please change the environment variable
3288 *** and run configure again." "$LINENO" 5
3289 fi
3290
3291 # -----------
3292 # Directories
3293 # -----------
3294
3295 # Specify the local prefix
3296 local_prefix=
3297
3298 # Check whether --with-local-prefix was given.
3299 if test "${with_local_prefix+set}" = set; then :
3300 withval=$with_local_prefix; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 no) ;;
3303 *) local_prefix=$with_local_prefix ;;
3304 esac
3305 fi
3306
3307
3308 # Default local prefix if it is empty
3309 if test x$local_prefix = x; then
3310 local_prefix=/usr/local
3311 fi
3312
3313 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3314 # passed in by the toplevel make and thus we'd get different behavior
3315 # depending on where we built the sources.
3316 gcc_gxx_include_dir=
3317 # Specify the g++ header file directory
3318
3319 # Check whether --with-gxx-include-dir was given.
3320 if test "${with_gxx_include_dir+set}" = set; then :
3321 withval=$with_gxx_include_dir; case "${withval}" in
3322 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 no) ;;
3324 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3325 esac
3326 fi
3327
3328
3329 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3330 if test x${gcc_gxx_include_dir} = x; then
3331 if test x${enable_version_specific_runtime_libs} = xyes; then
3332 gcc_gxx_include_dir='${libsubdir}/include/c++'
3333 else
3334 libstdcxx_incdir='include/c++/$(version)'
3335 if test x$host != x$target; then
3336 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3337 fi
3338 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3339 fi
3340 fi
3341
3342 gcc_gxx_include_dir_add_sysroot=0
3343 if test "${with_sysroot+set}" = set; then
3344 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3345 if test "${gcc_gxx_without_sysroot}"; then
3346 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3347 gcc_gxx_include_dir_add_sysroot=1
3348 fi
3349 fi
3350
3351
3352 # Check whether --with-cpp_install_dir was given.
3353 if test "${with_cpp_install_dir+set}" = set; then :
3354 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3355 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3356 elif test x$withval != xno; then
3357 cpp_install_dir=$withval
3358 fi
3359 fi
3360
3361
3362 # We would like to our source tree to be readonly. However when releases or
3363 # pre-releases are generated, the flex/bison generated files as well as the
3364 # various formats of manuals need to be included along with the rest of the
3365 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3366 # just that.
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3369 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3370 # Check whether --enable-generated-files-in-srcdir was given.
3371 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3372 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3373 else
3374 generated_files_in_srcdir=no
3375 fi
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3379 $as_echo "$generated_files_in_srcdir" >&6; }
3380
3381 if test "$generated_files_in_srcdir" = "yes"; then
3382 GENINSRC=''
3383 else
3384 GENINSRC='#'
3385 fi
3386
3387
3388 # -------------------
3389 # Find default linker
3390 # -------------------
3391
3392 # With GNU ld
3393
3394 # Check whether --with-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then :
3396 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3397 else
3398 gnu_ld_flag=no
3399 fi
3400
3401
3402 # With pre-defined ld
3403
3404 # Check whether --with-ld was given.
3405 if test "${with_ld+set}" = set; then :
3406 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3407 fi
3408
3409 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3410 if test ! -x "$DEFAULT_LINKER"; then
3411 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3412 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3413 gnu_ld_flag=yes
3414 fi
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3418 _ACEOF
3419
3420 fi
3421
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3423 $as_echo_n "checking whether a default linker was specified... " >&6; }
3424 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3425 if test x"$gnu_ld_flag" = x"no"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3427 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3431 fi
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437 # With demangler in GNU ld
3438
3439 # Check whether --with-demangler-in-ld was given.
3440 if test "${with_demangler_in_ld+set}" = set; then :
3441 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3442 else
3443 demangler_in_ld=yes
3444 fi
3445
3446
3447 # ----------------------
3448 # Find default assembler
3449 # ----------------------
3450
3451 # With GNU as
3452
3453 # Check whether --with-gnu-as was given.
3454 if test "${with_gnu_as+set}" = set; then :
3455 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3456 else
3457 gas_flag=no
3458 fi
3459
3460
3461
3462 # Check whether --with-as was given.
3463 if test "${with_as+set}" = set; then :
3464 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3465 fi
3466
3467 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3468 if test ! -x "$DEFAULT_ASSEMBLER"; then
3469 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3470 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3471 gas_flag=yes
3472 fi
3473
3474 cat >>confdefs.h <<_ACEOF
3475 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3476 _ACEOF
3477
3478 fi
3479
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3481 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3482 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3483 if test x"$gas_flag" = x"no"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3485 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3489 fi
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495 # ---------------
3496 # Find C compiler
3497 # ---------------
3498
3499 # If a non-executable a.out is present (e.g. created by GNU as above even if
3500 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3501 # file, even when creating an executable, so an execution test fails.
3502 # Remove possible default executable files to avoid this.
3503 #
3504 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3505 # Autoconf includes it.
3506 rm -f a.out a.exe b.out
3507
3508 # Find the native compiler
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3601 fi
3602 else
3603 CC="$ac_cv_prog_CC"
3604 fi
3605
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 fi
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3669 fi
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3688 fi
3689 fi
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 fi
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3706 do
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 test -n "$CC" && break
3745 done
3746 fi
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772 done
3773 done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 test -n "$ac_ct_CC" && break
3789 done
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3801 fi
3802 fi
3803
3804 fi
3805
3806
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details." "$LINENO" 5; }
3811
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3832 fi
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3836
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 $as_echo_n "checking for C compiler default output file name... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3856
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3862 do
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3869
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3887 do
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 ;;
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 fi
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3907 * )
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912
3913 else
3914 ac_file=''
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 if test -z "$ac_file"; then :
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 { as_fn_set_status 77
3925 as_fn_error "C compiler cannot create executables
3926 See \`config.log' for more details." "$LINENO" 5; }; }
3927 fi
3928 ac_exeext=$ac_cv_exeext
3929
3930 # Check that the compiler produces executables we can run. If not, either
3931 # the compiler is broken, or we cross compile.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 $as_echo_n "checking whether the C compiler works... " >&6; }
3934 # If not cross compiling, check that we can run a simple program.
3935 if test "$cross_compiling" != yes; then
3936 if { ac_try='./$ac_file'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3947 cross_compiling=no
3948 else
3949 if test "$cross_compiling" = maybe; then
3950 cross_compiling=yes
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details." "$LINENO" 5; }
3957 fi
3958 fi
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3964 ac_clean_files=$ac_clean_files_save
3965 # Check that the compiler produces executables we can run. If not, either
3966 # the compiler is broken, or we cross compile.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 $as_echo_n "checking whether we are cross compiling... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 # `rm'.
3989 for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997 done
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error "cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details." "$LINENO" 5; }
4003 fi
4004 rm -f conftest$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4007
4008 rm -f conftest.$ac_ext
4009 EXEEXT=$ac_cv_exeext
4010 ac_exeext=$EXEEXT
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4012 $as_echo_n "checking for suffix of object files... " >&6; }
4013 if test "${ac_cv_objext+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main ()
4021 {
4022
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.o conftest.obj
4028 if { { ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compile") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4041 case $ac_file in
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 break;;
4045 esac
4046 done
4047 else
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "cannot compute suffix of object files: cannot compile
4054 See \`config.log' for more details." "$LINENO" 5; }
4055 fi
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 $as_echo "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4061 ac_objext=$OBJEXT
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073 #ifndef __GNUC__
4074 choke me
4075 #endif
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_compiler_gnu=yes
4083 else
4084 ac_compiler_gnu=no
4085 fi
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4088
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4093 GCC=yes
4094 else
4095 GCC=
4096 fi
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if test "${ac_cv_prog_cc_g+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4106 ac_cv_prog_cc_g=no
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main ()
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 else
4122 CFLAGS=""
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125
4126 int
4127 main ()
4128 {
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135
4136 else
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4169 fi
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4187 #include <stdio.h>
4188 #include <sys/types.h>
4189 #include <sys/stat.h>
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4196 {
4197 return p[i];
4198 }
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4200 {
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4207 }
4208
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4229 int
4230 main ()
4231 {
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249
4250 fi
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4253 x)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4259 *)
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4265
4266 fi
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274 ac_ext=cpp
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279 if test -z "$CXX"; then
4280 if test -n "$CCC"; then
4281 CXX=$CCC
4282 else
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_CXX+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CXX"; then
4294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CXX=$ac_cv_prog_CXX
4314 if test -n "$CXX"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4316 $as_echo "$CXX" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323 test -n "$CXX" && break
4324 done
4325 fi
4326 if test -z "$CXX"; then
4327 ac_ct_CXX=$CXX
4328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4329 do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CXX"; then
4338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CXX="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4358 if test -n "$ac_ct_CXX"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4360 $as_echo "$ac_ct_CXX" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$ac_ct_CXX" && break
4368 done
4369
4370 if test "x$ac_ct_CXX" = x; then
4371 CXX="g++"
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CXX=$ac_ct_CXX
4380 fi
4381 fi
4382
4383 fi
4384 fi
4385 # Provide some information about the compiler.
4386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4387 set X $ac_compile
4388 ac_compiler=$2
4389 for ac_option in --version -v -V -qversion; do
4390 { { ac_try="$ac_compiler $ac_option >&5"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4398 ac_status=$?
4399 if test -s conftest.err; then
4400 sed '10a\
4401 ... rest of stderr output deleted ...
4402 10q' conftest.err >conftest.er1
4403 cat conftest.er1 >&5
4404 rm -f conftest.er1 conftest.err
4405 fi
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 done
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4411 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417
4418 int
4419 main ()
4420 {
4421 #ifndef __GNUC__
4422 choke me
4423 #endif
4424
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 if ac_fn_cxx_try_compile "$LINENO"; then :
4430 ac_compiler_gnu=yes
4431 else
4432 ac_compiler_gnu=no
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4436
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4439 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4440 if test $ac_compiler_gnu = yes; then
4441 GXX=yes
4442 else
4443 GXX=
4444 fi
4445 ac_test_CXXFLAGS=${CXXFLAGS+set}
4446 ac_save_CXXFLAGS=$CXXFLAGS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4448 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4449 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4453 ac_cxx_werror_flag=yes
4454 ac_cv_prog_cxx_g=no
4455 CXXFLAGS="-g"
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 int
4460 main ()
4461 {
4462
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 ac_cv_prog_cxx_g=yes
4469 else
4470 CXXFLAGS=""
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473
4474 int
4475 main ()
4476 {
4477
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4483
4484 else
4485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4486 CXXFLAGS="-g"
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main ()
4492 {
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4499 ac_cv_prog_cxx_g=yes
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4510 if test "$ac_test_CXXFLAGS" = set; then
4511 CXXFLAGS=$ac_save_CXXFLAGS
4512 elif test $ac_cv_prog_cxx_g = yes; then
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-g -O2"
4515 else
4516 CXXFLAGS="-g"
4517 fi
4518 else
4519 if test "$GXX" = yes; then
4520 CXXFLAGS="-O2"
4521 else
4522 CXXFLAGS=
4523 fi
4524 fi
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531
4532
4533
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$GNATBIND"; then
4543 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 GNATBIND=$ac_cv_prog_GNATBIND
4563 if test -n "$GNATBIND"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4565 $as_echo "$GNATBIND" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572 fi
4573 if test -z "$ac_cv_prog_GNATBIND"; then
4574 ac_ct_GNATBIND=$GNATBIND
4575 # Extract the first word of "gnatbind", so it can be a program name with args.
4576 set dummy gnatbind; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_GNATBIND"; then
4583 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4603 if test -n "$ac_ct_GNATBIND"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4605 $as_echo "$ac_ct_GNATBIND" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610
4611 if test "x$ac_ct_GNATBIND" = x; then
4612 GNATBIND="no"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 GNATBIND=$ac_ct_GNATBIND
4621 fi
4622 else
4623 GNATBIND="$ac_cv_prog_GNATBIND"
4624 fi
4625
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$GNATMAKE"; then
4635 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 GNATMAKE=$ac_cv_prog_GNATMAKE
4655 if test -n "$GNATMAKE"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4657 $as_echo "$GNATMAKE" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 fi
4665 if test -z "$ac_cv_prog_GNATMAKE"; then
4666 ac_ct_GNATMAKE=$GNATMAKE
4667 # Extract the first word of "gnatmake", so it can be a program name with args.
4668 set dummy gnatmake; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_GNATMAKE"; then
4675 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692 fi
4693 fi
4694 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4695 if test -n "$ac_ct_GNATMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4697 $as_echo "$ac_ct_GNATMAKE" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4701 fi
4702
4703 if test "x$ac_ct_GNATMAKE" = x; then
4704 GNATMAKE="no"
4705 else
4706 case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712 GNATMAKE=$ac_ct_GNATMAKE
4713 fi
4714 else
4715 GNATMAKE="$ac_cv_prog_GNATMAKE"
4716 fi
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4719 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4720 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat >conftest.adb <<EOF
4724 procedure conftest is begin null; end conftest;
4725 EOF
4726 acx_cv_cc_gcc_supports_ada=no
4727 # There is a bug in old released versions of GCC which causes the
4728 # driver to exit successfully when the appropriate language module
4729 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4730 # Therefore we must check for the error message as well as an
4731 # unsuccessful exit.
4732 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4733 # given a .adb file, but produce no object file. So we must check
4734 # if an object file was really produced to guard against this.
4735 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4736 if test x"$errors" = x && test -f conftest.$ac_objext; then
4737 acx_cv_cc_gcc_supports_ada=yes
4738 fi
4739 rm -f conftest.*
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4742 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4743
4744 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4745 have_gnat=yes
4746 else
4747 have_gnat=no
4748 fi
4749
4750
4751 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4752 # optimizations to be activated explicitly by the toplevel.
4753 case "$CC" in
4754 */prev-gcc/xgcc*) ;;
4755 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4756 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4757 esac
4758
4759
4760
4761 # Determine PICFLAG for target gnatlib.
4762
4763
4764
4765
4766 case "${target}" in
4767 # PIC is the default on some targets or must not be used.
4768 *-*-darwin*)
4769 # PIC is the default on this platform
4770 # Common symbols not allowed in MH_DYLIB files
4771 PICFLAG_FOR_TARGET=-fno-common
4772 ;;
4773 alpha*-dec-osf5*)
4774 # PIC is the default.
4775 ;;
4776 hppa*64*-*-hpux*)
4777 # PIC is the default for 64-bit PA HP-UX.
4778 ;;
4779 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4780 ;;
4781 i[34567]86-*-mingw* | x86_64-*-mingw*)
4782 ;;
4783 i[34567]86-*-interix[3-9]*)
4784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4785 # Instead, we relocate shared libraries at runtime.
4786 ;;
4787 i[34567]86-*-nto-qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 # it will coredump.
4790 PICFLAG_FOR_TARGET='-fPIC -shared'
4791 ;;
4792 i[34567]86-pc-msdosdjgpp*)
4793 # DJGPP does not support shared libraries at all.
4794 ;;
4795 ia64*-*-hpux*)
4796 # On IA64 HP-UX, PIC is the default but the pic flag
4797 # sets the default TLS model and affects inlining.
4798 PICFLAG_FOR_TARGET=-fPIC
4799 ;;
4800 mips-sgi-irix6*)
4801 # PIC is the default.
4802 ;;
4803 rs6000-ibm-aix* | powerpc-ibm-aix*)
4804 # All AIX code is PIC.
4805 ;;
4806
4807 # Some targets support both -fPIC and -fpic, but prefer the latter.
4808 # FIXME: Why?
4809 i[34567]86-*-* | x86_64-*-*)
4810 PICFLAG_FOR_TARGET=-fpic
4811 ;;
4812 # FIXME: Override -fPIC default in libgcc only?
4813 sh-*-linux* | sh[2346lbe]*-*-linux*)
4814 PICFLAG_FOR_TARGET=-fpic
4815 ;;
4816 # FIXME: Simplify to sh*-*-netbsd*?
4817 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4818 sh64-*-netbsd* | sh64l*-*-netbsd*)
4819 PICFLAG_FOR_TARGET=-fpic
4820 ;;
4821 # Default to -fPIC unless specified otherwise.
4822 *)
4823 PICFLAG_FOR_TARGET=-fPIC
4824 ;;
4825 esac
4826
4827 # If the user explicitly uses -fpic/-fPIC, keep that.
4828 case "${CFLAGS_FOR_TARGET}" in
4829 *-fpic*)
4830 PICFLAG_FOR_TARGET=-fpic
4831 ;;
4832 *-fPIC*)
4833 PICFLAG_FOR_TARGET=-fPIC
4834 ;;
4835 esac
4836
4837
4838
4839 # -------------------------
4840 # Check C compiler features
4841 # -------------------------
4842
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853 CPP=
4854 fi
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 do
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4864 do
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878 Syntax error
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4881
4882 else
4883 # Broken: fails on valid input.
4884 continue
4885 fi
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4901 fi
4902 rm -f conftest.err conftest.$ac_ext
4903
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4908 break
4909 fi
4910
4911 done
4912 ac_cv_prog_CPP=$CPP
4913
4914 fi
4915 CPP=$ac_cv_prog_CPP
4916 else
4917 ac_cv_prog_CPP=$CPP
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4921 ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4923 do
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940
4941 else
4942 # Broken: fails on valid input.
4943 continue
4944 fi
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4960 fi
4961 rm -f conftest.err conftest.$ac_ext
4962
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4967
4968 else
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." "$LINENO" 5; }
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984 if test "${ac_cv_path_GREP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -z "$GREP"; then
4988 ac_path_GREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in grep ggrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4999 # Check for GNU ac_path_GREP and select it if it is found.
5000 # Check for GNU $ac_path_GREP
5001 case `"$ac_path_GREP" --version 2>&1` in
5002 *GNU*)
5003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5004 *)
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5008 do
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'GREP' >> "conftest.nl"
5013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_GREP="$ac_path_GREP"
5019 ac_path_GREP_max=$ac_count
5020 fi
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 esac
5026
5027 $ac_path_GREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_GREP"; then
5033 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 fi
5035 else
5036 ac_cv_path_GREP=$GREP
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041 $as_echo "$ac_cv_path_GREP" >&6; }
5042 GREP="$ac_cv_path_GREP"
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046 $as_echo_n "checking for egrep... " >&6; }
5047 if test "${ac_cv_path_EGREP+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5051 then ac_cv_path_EGREP="$GREP -E"
5052 else
5053 if test -z "$EGREP"; then
5054 ac_path_EGREP_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in egrep; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5065 # Check for GNU ac_path_EGREP and select it if it is found.
5066 # Check for GNU $ac_path_EGREP
5067 case `"$ac_path_EGREP" --version 2>&1` in
5068 *GNU*)
5069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070 *)
5071 ac_count=0
5072 $as_echo_n 0123456789 >"conftest.in"
5073 while :
5074 do
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'EGREP' >> "conftest.nl"
5079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_EGREP="$ac_path_EGREP"
5085 ac_path_EGREP_max=$ac_count
5086 fi
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5089 done
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5092
5093 $ac_path_EGREP_found && break 3
5094 done
5095 done
5096 done
5097 IFS=$as_save_IFS
5098 if test -z "$ac_cv_path_EGREP"; then
5099 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 fi
5101 else
5102 ac_cv_path_EGREP=$EGREP
5103 fi
5104
5105 fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108 $as_echo "$ac_cv_path_EGREP" >&6; }
5109 EGREP="$ac_cv_path_EGREP"
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5113 $as_echo_n "checking for ANSI C header files... " >&6; }
5114 if test "${ac_cv_header_stdc+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5123
5124 int
5125 main ()
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_header_stdc=yes
5134 else
5135 ac_cv_header_stdc=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <string.h>
5144
5145 _ACEOF
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "memchr" >/dev/null 2>&1; then :
5148
5149 else
5150 ac_cv_header_stdc=no
5151 fi
5152 rm -f conftest*
5153
5154 fi
5155
5156 if test $ac_cv_header_stdc = yes; then
5157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <stdlib.h>
5161
5162 _ACEOF
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "free" >/dev/null 2>&1; then :
5165
5166 else
5167 ac_cv_header_stdc=no
5168 fi
5169 rm -f conftest*
5170
5171 fi
5172
5173 if test $ac_cv_header_stdc = yes; then
5174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5175 if test "$cross_compiling" = yes; then :
5176 :
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <ctype.h>
5181 #include <stdlib.h>
5182 #if ((' ' & 0x0FF) == 0x020)
5183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5185 #else
5186 # define ISLOWER(c) \
5187 (('a' <= (c) && (c) <= 'i') \
5188 || ('j' <= (c) && (c) <= 'r') \
5189 || ('s' <= (c) && (c) <= 'z'))
5190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5191 #endif
5192
5193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5194 int
5195 main ()
5196 {
5197 int i;
5198 for (i = 0; i < 256; i++)
5199 if (XOR (islower (i), ISLOWER (i))
5200 || toupper (i) != TOUPPER (i))
5201 return 2;
5202 return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_run "$LINENO"; then :
5206
5207 else
5208 ac_cv_header_stdc=no
5209 fi
5210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5211 conftest.$ac_objext conftest.beam conftest.$ac_ext
5212 fi
5213
5214 fi
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5217 $as_echo "$ac_cv_header_stdc" >&6; }
5218 if test $ac_cv_header_stdc = yes; then
5219
5220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221
5222 fi
5223
5224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5226 inttypes.h stdint.h unistd.h
5227 do :
5228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5230 "
5231 eval as_val=\$$as_ac_Header
5232 if test "x$as_val" = x""yes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 _ACEOF
5236
5237 fi
5238
5239 done
5240
5241
5242
5243 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5245 MINIX=yes
5246 else
5247 MINIX=
5248 fi
5249
5250
5251 if test "$MINIX" = yes; then
5252
5253 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5254
5255
5256 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5257
5258
5259 $as_echo "#define _MINIX 1" >>confdefs.h
5260
5261 fi
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5265 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5266 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 # define __EXTENSIONS__ 1
5273 $ac_includes_default
5274 int
5275 main ()
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_safe_to_define___extensions__=yes
5284 else
5285 ac_cv_safe_to_define___extensions__=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5291 test $ac_cv_safe_to_define___extensions__ = yes &&
5292 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5293
5294 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5295
5296 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5297
5298 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5299
5300 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5301
5302
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5312 CPP=
5313 fi
5314 if test -z "$CPP"; then
5315 if test "${ac_cv_prog_CPP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 # Double quotes because CPP needs to be expanded
5319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320 do
5321 ac_preproc_ok=false
5322 for ac_c_preproc_warn_flag in '' yes
5323 do
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #ifdef __STDC__
5333 # include <limits.h>
5334 #else
5335 # include <assert.h>
5336 #endif
5337 Syntax error
5338 _ACEOF
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5340
5341 else
5342 # Broken: fails on valid input.
5343 continue
5344 fi
5345 rm -f conftest.err conftest.$ac_ext
5346
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5352 _ACEOF
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5355 continue
5356 else
5357 # Passes both tests.
5358 ac_preproc_ok=:
5359 break
5360 fi
5361 rm -f conftest.err conftest.$ac_ext
5362
5363 done
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then :
5367 break
5368 fi
5369
5370 done
5371 ac_cv_prog_CPP=$CPP
5372
5373 fi
5374 CPP=$ac_cv_prog_CPP
5375 else
5376 ac_cv_prog_CPP=$CPP
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5379 $as_echo "$CPP" >&6; }
5380 ac_preproc_ok=false
5381 for ac_c_preproc_warn_flag in '' yes
5382 do
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396 Syntax error
5397 _ACEOF
5398 if ac_fn_c_try_cpp "$LINENO"; then :
5399
5400 else
5401 # Broken: fails on valid input.
5402 continue
5403 fi
5404 rm -f conftest.err conftest.$ac_ext
5405
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <ac_nonexistent.h>
5411 _ACEOF
5412 if ac_fn_c_try_cpp "$LINENO"; then :
5413 # Broken: success on invalid input.
5414 continue
5415 else
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5419 fi
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then :
5426
5427 else
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." "$LINENO" 5; }
5432 fi
5433
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5441 $as_echo_n "checking for inline... " >&6; }
5442 if test "${ac_cv_c_inline+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 ac_cv_c_inline=no
5446 for ac_kw in inline __inline__ __inline; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #ifndef __cplusplus
5450 typedef int foo_t;
5451 static $ac_kw foo_t static_foo () {return 0; }
5452 $ac_kw foo_t foo () {return 0; }
5453 #endif
5454
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_c_inline=$ac_kw
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 test "$ac_cv_c_inline" != no && break
5461 done
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5465 $as_echo "$ac_cv_c_inline" >&6; }
5466
5467 case $ac_cv_c_inline in
5468 inline | yes) ;;
5469 *)
5470 case $ac_cv_c_inline in
5471 no) ac_val=;;
5472 *) ac_val=$ac_cv_c_inline;;
5473 esac
5474 cat >>confdefs.h <<_ACEOF
5475 #ifndef __cplusplus
5476 #define inline $ac_val
5477 #endif
5478 _ACEOF
5479 ;;
5480 esac
5481
5482
5483 # Check whether --enable-largefile was given.
5484 if test "${enable_largefile+set}" = set; then :
5485 enableval=$enable_largefile;
5486 fi
5487
5488 if test "$enable_largefile" != no; then
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5492 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_cv_sys_largefile_CC=no
5496 if test "$GCC" != yes; then
5497 ac_save_CC=$CC
5498 while :; do
5499 # IRIX 6.2 and later do not support large files by default,
5500 # so use the C compiler's -n32 option if that helps.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5511 ? 1 : -1];
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 break
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext
5524 CC="$CC -n32"
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_sys_largefile_CC=' -n32'; break
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext
5529 break
5530 done
5531 CC=$ac_save_CC
5532 rm -f conftest.$ac_ext
5533 fi
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5537 if test "$ac_cv_sys_largefile_CC" != no; then
5538 CC=$CC$ac_cv_sys_largefile_CC
5539 fi
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5543 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 while :; do
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_sys_file_offset_bits=no; break
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #define _FILE_OFFSET_BITS 64
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5581 ? 1 : -1];
5582 int
5583 main ()
5584 {
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 ac_cv_sys_file_offset_bits=64; break
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cv_sys_file_offset_bits=unknown
5595 break
5596 done
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5600 case $ac_cv_sys_file_offset_bits in #(
5601 no | unknown) ;;
5602 *)
5603 cat >>confdefs.h <<_ACEOF
5604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5605 _ACEOF
5606 ;;
5607 esac
5608 rm -rf conftest*
5609 if test $ac_cv_sys_file_offset_bits = unknown; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5612 if test "${ac_cv_sys_large_files+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 while :; do
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_large_files=no; break
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #define _LARGE_FILES 1
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5650 ? 1 : -1];
5651 int
5652 main ()
5653 {
5654
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_sys_large_files=1; break
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sys_large_files=unknown
5664 break
5665 done
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5668 $as_echo "$ac_cv_sys_large_files" >&6; }
5669 case $ac_cv_sys_large_files in #(
5670 no | unknown) ;;
5671 *)
5672 cat >>confdefs.h <<_ACEOF
5673 #define _LARGE_FILES $ac_cv_sys_large_files
5674 _ACEOF
5675 ;;
5676 esac
5677 rm -rf conftest*
5678 fi
5679 fi
5680
5681
5682 # sizeof(char) is 1 by definition.
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5688 $as_echo_n "checking size of void *... " >&6; }
5689 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5693
5694 else
5695 if test "$ac_cv_type_void_p" = yes; then
5696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5698 { as_fn_set_status 77
5699 as_fn_error "cannot compute sizeof (void *)
5700 See \`config.log' for more details." "$LINENO" 5; }; }
5701 else
5702 ac_cv_sizeof_void_p=0
5703 fi
5704 fi
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5708 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5709
5710
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 _ACEOF
5715
5716
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5722 $as_echo_n "checking size of short... " >&6; }
5723 if test "${ac_cv_sizeof_short+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5727
5728 else
5729 if test "$ac_cv_type_short" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status 77
5733 as_fn_error "cannot compute sizeof (short)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5735 else
5736 ac_cv_sizeof_short=0
5737 fi
5738 fi
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5742 $as_echo "$ac_cv_sizeof_short" >&6; }
5743
5744
5745
5746 cat >>confdefs.h <<_ACEOF
5747 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 _ACEOF
5749
5750
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5761
5762 else
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status 77
5767 as_fn_error "cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5769 else
5770 ac_cv_sizeof_int=0
5771 fi
5772 fi
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5777
5778
5779
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5782 _ACEOF
5783
5784
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5795
5796 else
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status 77
5801 as_fn_error "cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5803 else
5804 ac_cv_sizeof_long=0
5805 fi
5806 fi
5807
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5811
5812
5813
5814 cat >>confdefs.h <<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 _ACEOF
5817
5818
5819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5820 if test "x$ac_cv_type_long_long" = x""yes; then :
5821
5822 cat >>confdefs.h <<_ACEOF
5823 #define HAVE_LONG_LONG 1
5824 _ACEOF
5825
5826 # The cast to long int works around a bug in the HP C Compiler
5827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5829 # This bug is HP SR number 8606223364.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5831 $as_echo_n "checking size of long long... " >&6; }
5832 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5836
5837 else
5838 if test "$ac_cv_type_long_long" = yes; then
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 { as_fn_set_status 77
5842 as_fn_error "cannot compute sizeof (long long)
5843 See \`config.log' for more details." "$LINENO" 5; }; }
5844 else
5845 ac_cv_sizeof_long_long=0
5846 fi
5847 fi
5848
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5852
5853
5854
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5857 _ACEOF
5858
5859
5860 fi
5861
5862 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5863 if test "x$ac_cv_type___int64" = x""yes; then :
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE___INT64 1
5867 _ACEOF
5868
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5874 $as_echo_n "checking size of __int64... " >&6; }
5875 if test "${ac_cv_sizeof___int64+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5879
5880 else
5881 if test "$ac_cv_type___int64" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (__int64)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof___int64=0
5889 fi
5890 fi
5891
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5894 $as_echo "$ac_cv_sizeof___int64" >&6; }
5895
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5900 _ACEOF
5901
5902
5903 fi
5904
5905 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5906 case $ac_cv_c_int8_t in #(
5907 no|yes) ;; #(
5908 *)
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define int8_t $ac_cv_c_int8_t
5912 _ACEOF
5913 ;;
5914 esac
5915
5916 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5917 case $ac_cv_c_int16_t in #(
5918 no|yes) ;; #(
5919 *)
5920
5921 cat >>confdefs.h <<_ACEOF
5922 #define int16_t $ac_cv_c_int16_t
5923 _ACEOF
5924 ;;
5925 esac
5926
5927 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5928 case $ac_cv_c_int32_t in #(
5929 no|yes) ;; #(
5930 *)
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define int32_t $ac_cv_c_int32_t
5934 _ACEOF
5935 ;;
5936 esac
5937
5938 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5939 case $ac_cv_c_int64_t in #(
5940 no|yes) ;; #(
5941 *)
5942
5943 cat >>confdefs.h <<_ACEOF
5944 #define int64_t $ac_cv_c_int64_t
5945 _ACEOF
5946 ;;
5947 esac
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5951 $as_echo_n "checking for long long int... " >&6; }
5952 if test "${ac_cv_type_long_long_int+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 /* For now, do not test the preprocessor; as of 2007 there are too many
5959 implementations with broken preprocessors. Perhaps this can
5960 be revisited in 2012. In the meantime, code should not expect
5961 #if to work with literals wider than 32 bits. */
5962 /* Test literals. */
5963 long long int ll = 9223372036854775807ll;
5964 long long int nll = -9223372036854775807LL;
5965 unsigned long long int ull = 18446744073709551615ULL;
5966 /* Test constant expressions. */
5967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5968 ? 1 : -1)];
5969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5970 ? 1 : -1)];
5971 int i = 63;
5972 int
5973 main ()
5974 {
5975 /* Test availability of runtime routines for shift and division. */
5976 long long int llmax = 9223372036854775807ll;
5977 unsigned long long int ullmax = 18446744073709551615ull;
5978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5979 | (llmax / ll) | (llmax % ll)
5980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5981 | (ullmax / ull) | (ullmax % ull));
5982 ;
5983 return 0;
5984 }
5985
5986 _ACEOF
5987 if ac_fn_c_try_link "$LINENO"; then :
5988 if test "$cross_compiling" = yes; then :
5989 ac_cv_type_long_long_int=yes
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <limits.h>
5994 #ifndef LLONG_MAX
5995 # define HALF \
5996 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5997 # define LLONG_MAX (HALF - 1 + HALF)
5998 #endif
5999 int
6000 main ()
6001 {
6002 long long int n = 1;
6003 int i;
6004 for (i = 0; ; i++)
6005 {
6006 long long int m = n << i;
6007 if (m >> i != n)
6008 return 1;
6009 if (LLONG_MAX / 2 < m)
6010 break;
6011 }
6012 return 0;
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_run "$LINENO"; then :
6018 ac_cv_type_long_long_int=yes
6019 else
6020 ac_cv_type_long_long_int=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6024 fi
6025
6026 else
6027 ac_cv_type_long_long_int=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6033 $as_echo "$ac_cv_type_long_long_int" >&6; }
6034 if test $ac_cv_type_long_long_int = yes; then
6035
6036 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6037
6038 fi
6039
6040
6041
6042 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6044
6045 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6046
6047 else
6048 test $ac_cv_type_long_long_int = yes \
6049 && ac_type='long long int' \
6050 || ac_type='long int'
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define intmax_t $ac_type
6054 _ACEOF
6055
6056 fi
6057
6058
6059
6060 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6062
6063 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6064
6065 else
6066 for ac_type in 'int' 'long int' 'long long int'; do
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 $ac_includes_default
6070 int
6071 main ()
6072 {
6073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6074 test_array [0] = 0
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081
6082 cat >>confdefs.h <<_ACEOF
6083 #define intptr_t $ac_type
6084 _ACEOF
6085
6086 ac_type=
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 test -z "$ac_type" && break
6090 done
6091 fi
6092
6093
6094 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6095 case $ac_cv_c_uint8_t in #(
6096 no|yes) ;; #(
6097 *)
6098
6099 $as_echo "#define _UINT8_T 1" >>confdefs.h
6100
6101
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint8_t $ac_cv_c_uint8_t
6104 _ACEOF
6105 ;;
6106 esac
6107
6108 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6109 case $ac_cv_c_uint16_t in #(
6110 no|yes) ;; #(
6111 *)
6112
6113
6114 cat >>confdefs.h <<_ACEOF
6115 #define uint16_t $ac_cv_c_uint16_t
6116 _ACEOF
6117 ;;
6118 esac
6119
6120 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6121 case $ac_cv_c_uint32_t in #(
6122 no|yes) ;; #(
6123 *)
6124
6125 $as_echo "#define _UINT32_T 1" >>confdefs.h
6126
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint32_t $ac_cv_c_uint32_t
6130 _ACEOF
6131 ;;
6132 esac
6133
6134 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6135 case $ac_cv_c_uint64_t in #(
6136 no|yes) ;; #(
6137 *)
6138
6139 $as_echo "#define _UINT64_T 1" >>confdefs.h
6140
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define uint64_t $ac_cv_c_uint64_t
6144 _ACEOF
6145 ;;
6146 esac
6147
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6150 $as_echo_n "checking for unsigned long long int... " >&6; }
6151 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6171 int
6172 main ()
6173 {
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6181 ;
6182 return 0;
6183 }
6184
6185 _ACEOF
6186 if ac_fn_c_try_link "$LINENO"; then :
6187 ac_cv_type_unsigned_long_long_int=yes
6188 else
6189 ac_cv_type_unsigned_long_long_int=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6196 if test $ac_cv_type_unsigned_long_long_int = yes; then
6197
6198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6199
6200 fi
6201
6202
6203
6204 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6206
6207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6208
6209 else
6210 test $ac_cv_type_unsigned_long_long_int = yes \
6211 && ac_type='unsigned long long int' \
6212 || ac_type='unsigned long int'
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintmax_t $ac_type
6216 _ACEOF
6217
6218 fi
6219
6220
6221
6222 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6224
6225 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6226
6227 else
6228 for ac_type in 'unsigned int' 'unsigned long int' \
6229 'unsigned long long int'; do
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 int
6234 main ()
6235 {
6236 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6237 test_array [0] = 0
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define uintptr_t $ac_type
6247 _ACEOF
6248
6249 ac_type=
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 test -z "$ac_type" && break
6253 done
6254 fi
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 # ---------------------
6271 # Warnings and checking
6272 # ---------------------
6273
6274 # Check $CC warning features (if it's GCC).
6275 # We want to use -pedantic, but we don't want warnings about
6276 # * 'long long'
6277 # * variadic macros
6278 # * overlong strings
6279 # * C++11 narrowing conversions in { }
6280 # So, we only use -pedantic if we can disable those warnings.
6281
6282 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6283 # Check whether --enable-build-format-warnings was given.
6284 if test "${enable_build_format_warnings+set}" = set; then :
6285 enableval=$enable_build_format_warnings;
6286 else
6287 enable_build_format_warnings=yes
6288 fi
6289
6290 if test $enable_build_format_warnings = no; then :
6291 wf_opt=-Wno-format
6292 else
6293 wf_opt=
6294 fi
6295 loose_warn=
6296 save_CFLAGS="$CFLAGS"
6297 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6298 # Do the check with the no- prefix removed since gcc silently
6299 # accepts any -Wno-* option on purpose
6300 case $real_option in
6301 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6302 *) option=$real_option ;;
6303 esac
6304 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6307 $as_echo_n "checking whether $CC supports $option... " >&6; }
6308 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 CFLAGS="$option"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314
6315 int
6316 main ()
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 eval "$as_acx_Woption=yes"
6325 else
6326 eval "$as_acx_Woption=no"
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 eval ac_res=\$$as_acx_Woption
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6335 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6336 fi
6337 done
6338 CFLAGS="$save_CFLAGS"
6339
6340 c_loose_warn=
6341 save_CFLAGS="$CFLAGS"
6342 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6343 # Do the check with the no- prefix removed since gcc silently
6344 # accepts any -Wno-* option on purpose
6345 case $real_option in
6346 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6347 *) option=$real_option ;;
6348 esac
6349 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 CFLAGS="$option"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359
6360 int
6361 main ()
6362 {
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6370 else
6371 eval "$as_acx_Woption=no"
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374
6375 fi
6376 eval ac_res=\$$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6381 fi
6382 done
6383 CFLAGS="$save_CFLAGS"
6384
6385 strict_warn=
6386 save_CFLAGS="$CFLAGS"
6387 for real_option in -Wmissing-format-attribute; do
6388 # Do the check with the no- prefix removed since gcc silently
6389 # accepts any -Wno-* option on purpose
6390 case $real_option in
6391 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6392 *) option=$real_option ;;
6393 esac
6394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 CFLAGS="$option"
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6415 else
6416 eval "$as_acx_Woption=no"
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419
6420 fi
6421 eval ac_res=\$$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6426 fi
6427 done
6428 CFLAGS="$save_CFLAGS"
6429
6430 c_strict_warn=
6431 save_CFLAGS="$CFLAGS"
6432 for real_option in -Wold-style-definition -Wc++-compat; do
6433 # Do the check with the no- prefix removed since gcc silently
6434 # accepts any -Wno-* option on purpose
6435 case $real_option in
6436 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6437 *) option=$real_option ;;
6438 esac
6439 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 CFLAGS="$option"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449
6450 int
6451 main ()
6452 {
6453
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 eval "$as_acx_Woption=yes"
6460 else
6461 eval "$as_acx_Woption=no"
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465 fi
6466 eval ac_res=\$$as_acx_Woption
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6471 fi
6472 done
6473 CFLAGS="$save_CFLAGS"
6474
6475 # Do the check with the no- prefix removed from the warning options
6476 # since gcc silently accepts any -Wno-* option on purpose
6477 if test "$GCC" = yes; then :
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6479 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6480 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 save_CFLAGS="$CFLAGS"
6484 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487
6488 int
6489 main ()
6490 {
6491
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6498 else
6499 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 CFLAGS="$save_CFLAGS"
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6505 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6506 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6507 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6508 fi
6509
6510 fi
6511
6512 # Check whether --enable-werror-always was given.
6513 if test "${enable_werror_always+set}" = set; then :
6514 enableval=$enable_werror_always;
6515 else
6516 enable_werror_always=no
6517 fi
6518
6519 if test $enable_werror_always = yes; then :
6520 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6521 fi
6522
6523
6524
6525 # The above macros do nothing if the compiler is not GCC. However, the
6526 # Makefile has more goo to add other flags, so these variables are used
6527 # to enable warnings only for GCC.
6528 warn_cflags=
6529 warn_cxxflags=
6530 if test "x$GCC" = "xyes"; then
6531 warn_cflags='$(GCC_WARN_CFLAGS)'
6532 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6533 fi
6534
6535
6536
6537 # Disable exceptions and RTTI if building with g++
6538 noexception_flags=
6539 save_CFLAGS="$CFLAGS"
6540 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6541 # Do the check with the no- prefix removed since gcc silently
6542 # accepts any -Wno-* option on purpose
6543 case $real_option in
6544 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6545 *) option=$real_option ;;
6546 esac
6547 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6550 $as_echo_n "checking whether $CC supports $option... " >&6; }
6551 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 CFLAGS="$option"
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557
6558 int
6559 main ()
6560 {
6561
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 eval "$as_acx_Woption=yes"
6568 else
6569 eval "$as_acx_Woption=no"
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573 fi
6574 eval ac_res=\$$as_acx_Woption
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6576 $as_echo "$ac_res" >&6; }
6577 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6578 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6579 fi
6580 done
6581 CFLAGS="$save_CFLAGS"
6582
6583
6584 # Enable expensive internal checks
6585 is_release=
6586 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6587 is_release=yes
6588 fi
6589
6590 # Check whether --enable-checking was given.
6591 if test "${enable_checking+set}" = set; then :
6592 enableval=$enable_checking; ac_checking_flags="${enableval}"
6593 else
6594
6595 # Determine the default checks.
6596 if test x$is_release = x ; then
6597 ac_checking_flags=yes
6598 else
6599 ac_checking_flags=release
6600 fi
6601 fi
6602
6603 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6604 for check in release $ac_checking_flags
6605 do
6606 case $check in
6607 # these set all the flags to specific states
6608 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6609 ac_fold_checking= ; ac_gc_checking=1 ;
6610 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6611 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6612 ac_tree_checking=1 ; ac_valgrind_checking= ;
6613 ac_types_checking=1 ;;
6614 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6615 ac_fold_checking= ; ac_gc_checking= ;
6616 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6617 ac_rtlflag_checking= ; ac_runtime_checking= ;
6618 ac_tree_checking= ; ac_valgrind_checking= ;
6619 ac_types_checking= ;;
6620 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6621 ac_fold_checking=1 ; ac_gc_checking=1 ;
6622 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6623 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6624 ac_tree_checking=1 ; ac_valgrind_checking= ;
6625 ac_types_checking=1 ;;
6626 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6627 ac_fold_checking= ; ac_gc_checking= ;
6628 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6629 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6630 ac_tree_checking= ; ac_valgrind_checking= ;
6631 ac_types_checking= ;;
6632 # these enable particular checks
6633 assert) ac_assert_checking=1 ;;
6634 df) ac_df_checking=1 ;;
6635 fold) ac_fold_checking=1 ;;
6636 gc) ac_gc_checking=1 ;;
6637 gcac) ac_gc_always_collect=1 ;;
6638 gimple) ac_gimple_checking=1 ;;
6639 misc) ac_checking=1 ;;
6640 rtl) ac_rtl_checking=1 ;;
6641 rtlflag) ac_rtlflag_checking=1 ;;
6642 runtime) ac_runtime_checking=1 ;;
6643 tree) ac_tree_checking=1 ;;
6644 types) ac_types_checking=1 ;;
6645 valgrind) ac_valgrind_checking=1 ;;
6646 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6647 esac
6648 done
6649 IFS="$ac_save_IFS"
6650
6651 nocommon_flag=""
6652 if test x$ac_checking != x ; then
6653
6654 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6655
6656 nocommon_flag=-fno-common
6657 fi
6658
6659 if test x$ac_df_checking != x ; then
6660
6661 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6662
6663 fi
6664 if test x$ac_assert_checking != x ; then
6665
6666 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6667
6668 fi
6669 if test x$ac_gimple_checking != x ; then
6670
6671 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6672
6673 fi
6674
6675 if test x$ac_runtime_checking != x ; then
6676
6677 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6678
6679 fi
6680 if test x$ac_tree_checking != x ; then
6681
6682 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6683
6684 TREEBROWSER=tree-browser.o
6685 TREECHECKING=yes
6686 fi
6687 if test x$ac_types_checking != x ; then
6688
6689 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6690
6691 fi
6692
6693
6694 if test x$ac_rtl_checking != x ; then
6695
6696 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6697
6698 fi
6699 if test x$ac_rtlflag_checking != x ; then
6700
6701 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6702
6703 fi
6704 if test x$ac_gc_checking != x ; then
6705
6706 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6707
6708 fi
6709 if test x$ac_gc_always_collect != x ; then
6710
6711 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6712
6713 fi
6714 if test x$ac_fold_checking != x ; then
6715
6716 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6717
6718 fi
6719 valgrind_path_defines=
6720 valgrind_command=
6721
6722 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6723 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6724 have_valgrind_h=yes
6725 else
6726 have_valgrind_h=no
6727 fi
6728
6729
6730
6731 if test x$ac_valgrind_checking != x ; then
6732 # It is certainly possible that there's valgrind but no valgrind.h.
6733 # GCC relies on making annotations so we must have both.
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6735 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #include <valgrind/memcheck.h>
6739 #ifndef VALGRIND_DISCARD
6740 #error VALGRIND_DISCARD not defined
6741 #endif
6742 _ACEOF
6743 if ac_fn_c_try_cpp "$LINENO"; then :
6744 gcc_cv_header_valgrind_memcheck_h=yes
6745 else
6746 gcc_cv_header_valgrind_memcheck_h=no
6747 fi
6748 rm -f conftest.err conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6750 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6752 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <memcheck.h>
6756 #ifndef VALGRIND_DISCARD
6757 #error VALGRIND_DISCARD not defined
6758 #endif
6759 _ACEOF
6760 if ac_fn_c_try_cpp "$LINENO"; then :
6761 gcc_cv_header_memcheck_h=yes
6762 else
6763 gcc_cv_header_memcheck_h=no
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6767 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6768
6769 # Prepare PATH_SEPARATOR.
6770 # The user is always right.
6771 if test "${PATH_SEPARATOR+set}" != set; then
6772 echo "#! /bin/sh" >conf$$.sh
6773 echo "exit 0" >>conf$$.sh
6774 chmod +x conf$$.sh
6775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6776 PATH_SEPARATOR=';'
6777 else
6778 PATH_SEPARATOR=:
6779 fi
6780 rm -f conf$$.sh
6781 fi
6782
6783 # Find out how to test for executable files. Don't use a zero-byte file,
6784 # as systems may use methods other than mode bits to determine executability.
6785 cat >conf$$.file <<_ASEOF
6786 #! /bin/sh
6787 exit 0
6788 _ASEOF
6789 chmod +x conf$$.file
6790 if test -x conf$$.file >/dev/null 2>&1; then
6791 ac_executable_p="test -x"
6792 else
6793 ac_executable_p="test -f"
6794 fi
6795 rm -f conf$$.file
6796
6797 # Extract the first word of "valgrind", so it can be a program name with args.
6798 set dummy valgrind; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 case "$valgrind_path" in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6810 for ac_dir in $PATH; do
6811 IFS="$ac_save_IFS"
6812 test -z "$ac_dir" && ac_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6815 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6816 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6817 break 2
6818 fi
6819 fi
6820 done
6821 done
6822 IFS="$ac_save_IFS"
6823 ;;
6824 esac
6825 fi
6826 valgrind_path="$ac_cv_path_valgrind_path"
6827 if test -n "$valgrind_path"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6829 $as_echo "$valgrind_path" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835 if test "x$valgrind_path" = "x" \
6836 || (test $have_valgrind_h = no \
6837 && test $gcc_cv_header_memcheck_h = no \
6838 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6839 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6840 fi
6841 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6842 valgrind_command="$valgrind_path -q"
6843
6844 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6845
6846 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6847
6848 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6849
6850 fi
6851 if test $gcc_cv_header_memcheck_h = yes; then
6852
6853 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6854
6855 fi
6856 fi
6857
6858
6859
6860 # Enable code coverage collection
6861 # Check whether --enable-coverage was given.
6862 if test "${enable_coverage+set}" = set; then :
6863 enableval=$enable_coverage; case "${enableval}" in
6864 yes|noopt)
6865 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6866 ;;
6867 opt)
6868 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6869 ;;
6870 no)
6871 # a.k.a. --disable-coverage
6872 coverage_flags=""
6873 ;;
6874 *)
6875 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6876 ;;
6877 esac
6878 else
6879 coverage_flags=""
6880 fi
6881
6882
6883
6884 # Check whether --enable-gather-detailed-mem-stats was given.
6885 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6886 enableval=$enable_gather_detailed_mem_stats;
6887 else
6888 enable_gather_detailed_mem_stats=no
6889 fi
6890
6891 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6892
6893 cat >>confdefs.h <<_ACEOF
6894 #define GATHER_STATISTICS $gather_stats
6895 _ACEOF
6896
6897
6898 # -------------------------------
6899 # Miscenalleous configure options
6900 # -------------------------------
6901
6902 # With stabs
6903
6904 # Check whether --with-stabs was given.
6905 if test "${with_stabs+set}" = set; then :
6906 withval=$with_stabs; stabs="$with_stabs"
6907 else
6908 stabs=no
6909 fi
6910
6911
6912 # Determine whether or not multilibs are enabled.
6913 # Check whether --enable-multilib was given.
6914 if test "${enable_multilib+set}" = set; then :
6915 enableval=$enable_multilib;
6916 else
6917 enable_multilib=yes
6918 fi
6919
6920
6921
6922 # Determine whether or not multiarch is enabled.
6923 # Check whether --enable-multiarch was given.
6924 if test "${enable_multiarch+set}" = set; then :
6925 enableval=$enable_multiarch; case "${enableval}" in
6926 yes|no|auto) enable_multiarch=$enableval;;
6927 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6928 esac
6929 else
6930 enable_multiarch=auto
6931 fi
6932
6933 if test x${enable_multiarch} = xauto; then
6934 if test x${with_native_system_header_dir} != x; then
6935 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6936 enable_multiarch=no
6937 fi
6938 if test x$host != x$target && test "x$with_sysroot" = x; then
6939 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6940 enable_multiarch=no
6941 fi
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6944 $as_echo_n "checking for multiarch configuration... " >&6; }
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6947 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6948
6949 # needed for setting the multiarch name for soft-float/hard-float ABIs
6950
6951
6952
6953 # Enable __cxa_atexit for C++.
6954 # Check whether --enable-__cxa_atexit was given.
6955 if test "${enable___cxa_atexit+set}" = set; then :
6956 enableval=$enable___cxa_atexit;
6957 fi
6958
6959
6960 # Enable C extension for decimal float if target supports it.
6961
6962 # Check whether --enable-decimal-float was given.
6963 if test "${enable_decimal_float+set}" = set; then :
6964 enableval=$enable_decimal_float;
6965 case $enable_decimal_float in
6966 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6967 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6968 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6969 esac
6970
6971 else
6972
6973 case $target in
6974 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6975 i?86*-*-gnu* | \
6976 i?86*-*-mingw* | x86_64*-*-mingw* | \
6977 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6978 enable_decimal_float=yes
6979 ;;
6980 *)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6983 enable_decimal_float=no
6984 ;;
6985 esac
6986
6987 fi
6988
6989
6990 # x86's use BID format instead of DPD
6991 case x$enable_decimal_float in
6992 xyes)
6993 case $target in
6994 i?86*-*-* | x86_64*-*-*)
6995 enable_decimal_float=bid
6996 ;;
6997 *)
6998 enable_decimal_float=dpd
6999 ;;
7000 esac
7001 default_decimal_float=$enable_decimal_float
7002 ;;
7003 xno)
7004 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7005 # dependency on libdecnumber.
7006 default_decimal_float=dpd
7007 ;;
7008 esac
7009
7010
7011
7012
7013 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7014
7015 cat >>confdefs.h <<_ACEOF
7016 #define ENABLE_DECIMAL_FLOAT $dfp
7017 _ACEOF
7018
7019
7020 # Use default_decimal_float for dependency.
7021 enable_decimal_float=$default_decimal_float
7022
7023 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define ENABLE_DECIMAL_BID_FORMAT $bid
7027 _ACEOF
7028
7029
7030 # Enable C extension for fixed-point arithmetic.
7031 # Check whether --enable-fixed-point was given.
7032 if test "${enable_fixed_point+set}" = set; then :
7033 enableval=$enable_fixed_point;
7034 else
7035
7036 case $target in
7037 arm*)
7038 enable_fixed_point=yes
7039 ;;
7040
7041 mips*-*-*)
7042 enable_fixed_point=yes
7043 ;;
7044 *)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7046 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7047 enable_fixed_point=no
7048 ;;
7049 esac
7050
7051 fi
7052
7053
7054
7055 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define ENABLE_FIXED_POINT $fixedpoint
7059 _ACEOF
7060
7061
7062 # Enable threads
7063 # Pass with no value to take the default
7064 # Pass with a value to specify a thread package
7065 # Check whether --enable-threads was given.
7066 if test "${enable_threads+set}" = set; then :
7067 enableval=$enable_threads;
7068 else
7069 enable_threads=''
7070 fi
7071
7072
7073 # Check whether --enable-tls was given.
7074 if test "${enable_tls+set}" = set; then :
7075 enableval=$enable_tls;
7076 case $enable_tls in
7077 yes | no) ;;
7078 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7079 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7080 esac
7081
7082 else
7083 enable_tls=''
7084 fi
7085
7086
7087 # Check whether --enable-objc-gc was given.
7088 if test "${enable_objc_gc+set}" = set; then :
7089 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7090 objc_boehm_gc=''
7091 else
7092 objc_boehm_gc=1
7093 fi
7094 else
7095 objc_boehm_gc=''
7096 fi
7097
7098
7099
7100 # Check whether --with-dwarf2 was given.
7101 if test "${with_dwarf2+set}" = set; then :
7102 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7103 else
7104 dwarf2=no
7105 fi
7106
7107
7108 # Check whether --enable-shared was given.
7109 if test "${enable_shared+set}" = set; then :
7110 enableval=$enable_shared;
7111 case $enable_shared in
7112 yes | no) ;;
7113 *)
7114 enable_shared=no
7115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7116 for pkg in $enableval; do
7117 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7118 enable_shared=yes
7119 fi
7120 done
7121 IFS="$ac_save_ifs"
7122 ;;
7123 esac
7124
7125 else
7126 enable_shared=yes
7127 fi
7128
7129
7130
7131
7132 # Check whether --with-native-system-header-dir was given.
7133 if test "${with_native_system_header_dir+set}" = set; then :
7134 withval=$with_native_system_header_dir;
7135 case ${with_native_system_header_dir} in
7136 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7137 /* | [A-Za-z]:[\\/]*) ;;
7138 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7139 esac
7140 configured_native_system_header_dir="${withval}"
7141
7142 else
7143 configured_native_system_header_dir=
7144 fi
7145
7146
7147
7148 # Check whether --with-build-sysroot was given.
7149 if test "${with_build_sysroot+set}" = set; then :
7150 withval=$with_build_sysroot; if test x"$withval" != x ; then
7151 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7152 fi
7153 else
7154 SYSROOT_CFLAGS_FOR_TARGET=
7155 fi
7156
7157
7158
7159 if test "x$prefix" = xNONE; then
7160 test_prefix=/usr/local
7161 else
7162 test_prefix=$prefix
7163 fi
7164 if test "x$exec_prefix" = xNONE; then
7165 test_exec_prefix=$test_prefix
7166 else
7167 test_exec_prefix=$exec_prefix
7168 fi
7169
7170
7171 # Check whether --with-sysroot was given.
7172 if test "${with_sysroot+set}" = set; then :
7173 withval=$with_sysroot;
7174 case ${with_sysroot} in
7175 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7176 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7177 esac
7178
7179 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7180 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7181
7182 case ${TARGET_SYSTEM_ROOT} in
7183 "${test_prefix}"|"${test_prefix}/"*|\
7184 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7185 '${prefix}'|'${prefix}/'*|\
7186 '${exec_prefix}'|'${exec_prefix}/'*)
7187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE="$t"
7189 ;;
7190 esac
7191
7192 else
7193
7194 TARGET_SYSTEM_ROOT=
7195 TARGET_SYSTEM_ROOT_DEFINE=
7196 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7197
7198 fi
7199
7200
7201
7202
7203
7204
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207 withval=$with_specs; CONFIGURE_SPECS=$withval
7208 else
7209 CONFIGURE_SPECS=
7210
7211 fi
7212
7213
7214
7215
7216
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219 withval=$with_pkgversion; case "$withval" in
7220 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7221 no) PKGVERSION= ;;
7222 *) PKGVERSION="($withval) " ;;
7223 esac
7224 else
7225 PKGVERSION="(GCC) "
7226
7227 fi
7228
7229
7230
7231
7232
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235 withval=$with_bugurl; case "$withval" in
7236 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7237 no) BUGURL=
7238 ;;
7239 *) BUGURL="$withval"
7240 ;;
7241 esac
7242 else
7243 BUGURL="http://gcc.gnu.org/bugs.html"
7244
7245 fi
7246
7247 case ${BUGURL} in
7248 "")
7249 REPORT_BUGS_TO=
7250 REPORT_BUGS_TEXI=
7251 ;;
7252 *)
7253 REPORT_BUGS_TO="<$BUGURL>"
7254 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7255 ;;
7256 esac;
7257
7258
7259
7260
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265 enableval=$enable_languages; case ,${enable_languages}, in
7266 ,,|,yes,)
7267 # go safe -- we cannot be much sure without the toplevel
7268 # configure's
7269 # analysis of which target libs are present and usable
7270 enable_languages=c
7271 ;;
7272 *,all,*)
7273 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7274 ;;
7275 *,c,*)
7276 ;;
7277 *)
7278 enable_languages=c,${enable_languages}
7279 ;;
7280 esac
7281 else
7282 enable_languages=c
7283 fi
7284
7285
7286
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289 withval=$with_multilib_list; :
7290 else
7291 with_multilib_list=default
7292 fi
7293
7294
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7301 set x ${MAKE-make}
7302 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat >conftest.make <<\_ACEOF
7307 SHELL = /bin/sh
7308 all:
7309 @echo '@@@%%%=$(MAKE)=@@@%%%'
7310 _ACEOF
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7313 *@@@%%%=?*=@@@%%%*)
7314 eval ac_cv_prog_make_${ac_make}_set=yes;;
7315 *)
7316 eval ac_cv_prog_make_${ac_make}_set=no;;
7317 esac
7318 rm -f conftest.make
7319 fi
7320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7323 SET_MAKE=
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 SET_MAKE="MAKE=${MAKE-make}"
7328 fi
7329
7330
7331 # Find some useful tools
7332 for ac_prog in gawk mawk nawk awk
7333 do
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$AWK"; then
7342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AWK="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 AWK=$ac_cv_prog_AWK
7362 if test -n "$AWK"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 test -n "$AWK" && break
7372 done
7373
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7376 case ${AWK} in
7377 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7378 esac
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 then
7389 gcc_cv_prog_LN_S="ln -s"
7390 else
7391 if ln conftestdata_f conftestdata_t 2>/dev/null
7392 then
7393 gcc_cv_prog_LN_S=ln
7394 else
7395 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396 then
7397 gcc_cv_prog_LN_S="cp -p"
7398 else
7399 gcc_cv_prog_LN_S=cp
7400 fi
7401 fi
7402 fi
7403 rm -f conftestdata_f conftestdata_t
7404
7405 fi
7406 LN_S="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410 else
7411 if test "$gcc_cv_prog_LN_S" = "ln"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7417 fi
7418 fi
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t 2>/dev/null
7428 then
7429 acx_cv_prog_LN=ln
7430 else
7431 acx_cv_prog_LN=no
7432 fi
7433 rm -f conftestdata_f conftestdata_t
7434
7435 fi
7436 if test $acx_cv_prog_LN = no; then
7437 LN="$LN_S"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7440 else
7441 LN="$acx_cv_prog_LN"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7444 fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 RANLIB=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486 ac_ct_RANLIB=$RANLIB
7487 # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_RANLIB"; then
7495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_RANLIB="ranlib"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523 if test "x$ac_ct_RANLIB" = x; then
7524 RANLIB=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 RANLIB=$ac_ct_RANLIB
7533 fi
7534 else
7535 RANLIB="$ac_cv_prog_RANLIB"
7536 fi
7537
7538 ranlib_flags=""
7539
7540
7541 # Find a good install program. We prefer a C program (faster),
7542 # so one script is as good as another. But avoid the broken or
7543 # incompatible versions:
7544 # SysV /etc/install, /usr/sbin/install
7545 # SunOS /usr/etc/install
7546 # IRIX /sbin/install
7547 # AIX /bin/install
7548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7550 # ./install, which can be erroneously created by make from ./install.sh.
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7552 $as_echo_n "checking for a BSD compatible install... " >&6; }
7553 if test -z "$INSTALL"; then
7554 if test "${ac_cv_path_install+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7558 for ac_dir in $PATH; do
7559 # Account for people who put trailing slashes in PATH elements.
7560 case "$ac_dir/" in
7561 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7562 *)
7563 # OSF1 and SCO ODT 3.0 have their own names for install.
7564 for ac_prog in ginstall scoinst install; do
7565 if test -f $ac_dir/$ac_prog; then
7566 if test $ac_prog = install &&
7567 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7568 # AIX install. It has an incompatible calling convention.
7569 # OSF/1 installbsd also uses dspmsg, but is usable.
7570 :
7571 else
7572 ac_cv_path_install="$ac_dir/$ac_prog -c"
7573 break 2
7574 fi
7575 fi
7576 done
7577 ;;
7578 esac
7579 done
7580 IFS="$ac_save_IFS"
7581
7582 fi
7583 if test "${ac_cv_path_install+set}" = set; then
7584 INSTALL="$ac_cv_path_install"
7585 else
7586 # As a last resort, use the slow shell script. We don't cache a
7587 # path for INSTALL within a source directory, because that will
7588 # break other packages using the cache if that directory is
7589 # removed, or if the path is relative.
7590 INSTALL="$ac_install_sh"
7591 fi
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7594 $as_echo "$INSTALL" >&6; }
7595
7596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7597 # It thinks the first close brace ends the variable substitution.
7598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7599
7600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7601
7602
7603 # See if cmp has --ignore-initial.
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7605 $as_echo_n "checking for cmp's capabilities... " >&6; }
7606 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 echo abfoo >t1
7610 echo cdfoo >t2
7611 gcc_cv_prog_cmp_skip=slowcompare
7612 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7613 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7614 :
7615 else
7616 gcc_cv_prog_cmp_skip=gnucompare
7617 fi
7618 fi
7619 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7620 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7621 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7622 :
7623 else
7624 gcc_cv_prog_cmp_skip=fastcompare
7625 fi
7626 fi
7627 fi
7628 rm t1 t2
7629
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7632 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7633 make_compare_target=$gcc_cv_prog_cmp_skip
7634
7635
7636
7637 # See if we have the mktemp command.
7638 # Extract the first word of "mktemp", so it can be a program name with args.
7639 set dummy mktemp; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$have_mktemp_command"; then
7646 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_have_mktemp_command="yes"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7664 fi
7665 fi
7666 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7667 if test -n "$have_mktemp_command"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7669 $as_echo "$have_mktemp_command" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676
7677 # See if makeinfo has been installed and is modern enough
7678 # that we can use it.
7679
7680 # Extract the first word of "makeinfo", so it can be a program name with args.
7681 set dummy makeinfo; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$MAKEINFO"; then
7688 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_MAKEINFO="makeinfo"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 MAKEINFO=$ac_cv_prog_MAKEINFO
7708 if test -n "$MAKEINFO"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7710 $as_echo "$MAKEINFO" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716
7717 if test -n "$MAKEINFO"; then
7718 # Found it, now check the version.
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7720 $as_echo_n "checking for modern makeinfo... " >&6; }
7721 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7725 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7726
7727 case $ac_prog_version in
7728 '') gcc_cv_prog_makeinfo_modern=no;;
7729 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7730 *) gcc_cv_prog_makeinfo_modern=no;;
7731 esac
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7735 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7736 else
7737 gcc_cv_prog_makeinfo_modern=no
7738 fi
7739 if test $gcc_cv_prog_makeinfo_modern = no; then
7740 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7741 fi
7742
7743 if test $gcc_cv_prog_makeinfo_modern = no; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7745 *** Makeinfo is missing or too old.
7746 *** Info documentation will not be built." >&5
7747 $as_echo "$as_me: WARNING:
7748 *** Makeinfo is missing or too old.
7749 *** Info documentation will not be built." >&2;}
7750 BUILD_INFO=
7751 else
7752 BUILD_INFO=info
7753 fi
7754
7755
7756 # Is pod2man recent enough to regenerate manpages?
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7758 $as_echo_n "checking for recent Pod::Man... " >&6; }
7759 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7762 GENERATED_MANPAGES=generated-manpages
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 GENERATED_MANPAGES=
7767 fi
7768
7769
7770 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7771
7772 # How about lex?
7773 for ac_prog in flex
7774 do
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_FLEX+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$FLEX"; then
7783 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_FLEX="$ac_prog"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 FLEX=$ac_cv_prog_FLEX
7803 if test -n "$FLEX"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7805 $as_echo "$FLEX" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811
7812 test -n "$FLEX" && break
7813 done
7814 test -n "$FLEX" || FLEX="$MISSING flex"
7815
7816
7817 # Bison?
7818 for ac_prog in bison
7819 do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_BISON+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 BISON=$ac_cv_prog_BISON
7848 if test -n "$BISON"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850 $as_echo "$BISON" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857 test -n "$BISON" && break
7858 done
7859 test -n "$BISON" || BISON="$MISSING bison"
7860
7861
7862 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7863 # check for build == host before using them.
7864
7865 # NM
7866 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7867 && test -d ../binutils ; then
7868 NM='${objdir}/../binutils/nm-new'
7869 else
7870 # Extract the first word of "nm", so it can be a program name with args.
7871 set dummy nm; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if test "${ac_cv_prog_NM+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 if test -n "$NM"; then
7878 ac_cv_prog_NM="$NM" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_prog_NM="nm"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7890 fi
7891 done
7892 done
7893 IFS=$as_save_IFS
7894
7895 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7896 fi
7897 fi
7898 NM=$ac_cv_prog_NM
7899 if test -n "$NM"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7901 $as_echo "$NM" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907
7908 fi
7909
7910 # AR
7911 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7912 && test -d ../binutils ; then
7913 AR='${objdir}/../binutils/ar'
7914 else
7915 # Extract the first word of "ar", so it can be a program name with args.
7916 set dummy ar; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if test "${ac_cv_prog_AR+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$AR"; then
7923 ac_cv_prog_AR="$AR" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_prog_AR="ar"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7941 fi
7942 fi
7943 AR=$ac_cv_prog_AR
7944 if test -n "$AR"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946 $as_echo "$AR" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952
7953 fi
7954
7955
7956 # --------------------
7957 # Checks for C headers
7958 # --------------------
7959
7960 # Need to reject headers which give warnings, so that the -Werror bootstrap
7961 # works later. *sigh* This needs to come before all header checks.
7962
7963 ac_c_preproc_warn_flag=yes
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7966 $as_echo_n "checking for ANSI C header files... " >&6; }
7967 if test "${ac_cv_header_stdc+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 #include <stdlib.h>
7973 #include <stdarg.h>
7974 #include <string.h>
7975 #include <float.h>
7976
7977 int
7978 main ()
7979 {
7980
7981 ;
7982 return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986 ac_cv_header_stdc=yes
7987 else
7988 ac_cv_header_stdc=no
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991
7992 if test $ac_cv_header_stdc = yes; then
7993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #include <string.h>
7997
7998 _ACEOF
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000 $EGREP "memchr" >/dev/null 2>&1; then :
8001
8002 else
8003 ac_cv_header_stdc=no
8004 fi
8005 rm -f conftest*
8006
8007 fi
8008
8009 if test $ac_cv_header_stdc = yes; then
8010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <stdlib.h>
8014
8015 _ACEOF
8016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8017 $EGREP "free" >/dev/null 2>&1; then :
8018
8019 else
8020 ac_cv_header_stdc=no
8021 fi
8022 rm -f conftest*
8023
8024 fi
8025
8026 if test $ac_cv_header_stdc = yes; then
8027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8028 if test "$cross_compiling" = yes; then :
8029 :
8030 else
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <ctype.h>
8034 #include <stdlib.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8045
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8047 int
8048 main ()
8049 {
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 return 2;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_run "$LINENO"; then :
8059
8060 else
8061 ac_cv_header_stdc=no
8062 fi
8063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8064 conftest.$ac_objext conftest.beam conftest.$ac_ext
8065 fi
8066
8067 fi
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8070 $as_echo "$ac_cv_header_stdc" >&6; }
8071 if test $ac_cv_header_stdc = yes; then
8072
8073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8074
8075 fi
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8078 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8079 if test "${ac_cv_header_time+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 #include <sys/types.h>
8085 #include <sys/time.h>
8086 #include <time.h>
8087
8088 int
8089 main ()
8090 {
8091 if ((struct tm *) 0)
8092 return 0;
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"; then :
8098 ac_cv_header_time=yes
8099 else
8100 ac_cv_header_time=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8105 $as_echo "$ac_cv_header_time" >&6; }
8106 if test $ac_cv_header_time = yes; then
8107
8108 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8109
8110 fi
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8113 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8114 if test "${gcc_cv_header_string+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <string.h>
8120 #include <strings.h>
8121 int
8122 main ()
8123 {
8124
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 gcc_cv_header_string=yes
8131 else
8132 gcc_cv_header_string=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8137 $as_echo "$gcc_cv_header_string" >&6; }
8138 if test $gcc_cv_header_string = yes; then
8139
8140 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8141
8142 fi
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8145 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8146 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 #include <sys/types.h>
8152 #include <sys/wait.h>
8153 #ifndef WEXITSTATUS
8154 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8155 #endif
8156 #ifndef WIFEXITED
8157 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8158 #endif
8159
8160 int
8161 main ()
8162 {
8163 int s;
8164 wait (&s);
8165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171 ac_cv_header_sys_wait_h=yes
8172 else
8173 ac_cv_header_sys_wait_h=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8178 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8179 if test $ac_cv_header_sys_wait_h = yes; then
8180
8181 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8182
8183 fi
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8186 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8187 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <termios.h>
8194 #ifdef TIOCGWINSZ
8195 yes
8196 #endif
8197
8198 _ACEOF
8199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8200 $EGREP "yes" >/dev/null 2>&1; then :
8201 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8202 else
8203 ac_cv_sys_tiocgwinsz_in_termios_h=no
8204 fi
8205 rm -f conftest*
8206
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8209 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8210
8211 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8213 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8214 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <sys/types.h>
8220 #include <sys/ioctl.h>
8221 #ifdef TIOCGWINSZ
8222 yes
8223 #endif
8224
8225 _ACEOF
8226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8227 $EGREP "yes" >/dev/null 2>&1; then :
8228 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8229 else
8230 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8231 fi
8232 rm -f conftest*
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8236 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8237
8238 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8239
8240 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8241
8242 fi
8243 fi
8244
8245 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8246 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8247 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8248 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8249 do :
8250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8252 eval as_val=\$$as_ac_Header
8253 if test "x$as_val" = x""yes; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8256 _ACEOF
8257
8258 fi
8259 done
8260
8261
8262 # Check for thread headers.
8263 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8264 if test "x$ac_cv_header_thread_h" = x""yes; then :
8265 have_thread_h=yes
8266 else
8267 have_thread_h=
8268 fi
8269
8270 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8271 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8272 have_pthread_h=yes
8273 else
8274 have_pthread_h=
8275 fi
8276
8277
8278 # These tests can't be done till we know if we have limits.h.
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8280 $as_echo_n "checking for CHAR_BIT... " >&6; }
8281 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 #ifdef HAVE_LIMITS_H
8287 #include <limits.h>
8288 #endif
8289 #ifdef CHAR_BIT
8290 found
8291 #endif
8292 _ACEOF
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294 $EGREP "found" >/dev/null 2>&1; then :
8295 gcc_cv_decl_char_bit=yes
8296 else
8297 gcc_cv_decl_char_bit=no
8298 fi
8299 rm -f conftest*
8300
8301
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8304 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8305 if test $gcc_cv_decl_char_bit = no; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8307 $as_echo_n "checking number of bits in a byte... " >&6; }
8308 if test "${gcc_cv_c_nbby+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 i=8
8312 gcc_cv_c_nbby=
8313 while test $i -lt 65; do
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316
8317 int
8318 main ()
8319 {
8320 switch(0) {
8321 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8322 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8323 ; }
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 gcc_cv_c_nbby=$i; break
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 i=`expr $i + 1`
8333 done
8334 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8338 $as_echo "$gcc_cv_c_nbby" >&6; }
8339 if test $gcc_cv_c_nbby = failed; then
8340 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8341 else
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define CHAR_BIT $gcc_cv_c_nbby
8345 _ACEOF
8346
8347 fi
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8350 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8351 if test "${ac_cv_c_bigendian+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 ac_cv_c_bigendian=unknown
8355 # See if we're dealing with a universal compiler.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #ifndef __APPLE_CC__
8359 not a universal capable compiler
8360 #endif
8361 typedef int dummy;
8362
8363 _ACEOF
8364 if ac_fn_c_try_compile "$LINENO"; then :
8365
8366 # Check for potential -arch flags. It is not universal unless
8367 # there are at least two -arch flags with different values.
8368 ac_arch=
8369 ac_prev=
8370 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8371 if test -n "$ac_prev"; then
8372 case $ac_word in
8373 i?86 | x86_64 | ppc | ppc64)
8374 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8375 ac_arch=$ac_word
8376 else
8377 ac_cv_c_bigendian=universal
8378 break
8379 fi
8380 ;;
8381 esac
8382 ac_prev=
8383 elif test "x$ac_word" = "x-arch"; then
8384 ac_prev=arch
8385 fi
8386 done
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 if test $ac_cv_c_bigendian = unknown; then
8390 # See if sys/param.h defines the BYTE_ORDER macro.
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 #include <sys/types.h>
8394 #include <sys/param.h>
8395
8396 int
8397 main ()
8398 {
8399 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8400 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8401 && LITTLE_ENDIAN)
8402 bogus endian macros
8403 #endif
8404
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410 # It does; now see whether it defined to BIG_ENDIAN or not.
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <sys/types.h>
8414 #include <sys/param.h>
8415
8416 int
8417 main ()
8418 {
8419 #if BYTE_ORDER != BIG_ENDIAN
8420 not big endian
8421 #endif
8422
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 ac_cv_c_bigendian=yes
8429 else
8430 ac_cv_c_bigendian=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 if test $ac_cv_c_bigendian = unknown; then
8437 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <limits.h>
8441
8442 int
8443 main ()
8444 {
8445 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8446 bogus endian macros
8447 #endif
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 # It does; now see whether it defined to _BIG_ENDIAN or not.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <limits.h>
8458
8459 int
8460 main ()
8461 {
8462 #ifndef _BIG_ENDIAN
8463 not big endian
8464 #endif
8465
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 ac_cv_c_bigendian=yes
8472 else
8473 ac_cv_c_bigendian=no
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 if test $ac_cv_c_bigendian = unknown; then
8480 # Compile a test program.
8481 if test "$cross_compiling" = yes; then :
8482 # Try to guess by grepping values from an object file.
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 short int ascii_mm[] =
8486 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8487 short int ascii_ii[] =
8488 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8489 int use_ascii (int i) {
8490 return ascii_mm[i] + ascii_ii[i];
8491 }
8492 short int ebcdic_ii[] =
8493 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8494 short int ebcdic_mm[] =
8495 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8496 int use_ebcdic (int i) {
8497 return ebcdic_mm[i] + ebcdic_ii[i];
8498 }
8499 extern int foo;
8500
8501 int
8502 main ()
8503 {
8504 return use_ascii (foo) == use_ebcdic (foo);
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8511 ac_cv_c_bigendian=yes
8512 fi
8513 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8514 if test "$ac_cv_c_bigendian" = unknown; then
8515 ac_cv_c_bigendian=no
8516 else
8517 # finding both strings is unlikely to happen, but who knows?
8518 ac_cv_c_bigendian=unknown
8519 fi
8520 fi
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 $ac_includes_default
8527 int
8528 main ()
8529 {
8530
8531 /* Are we little or big endian? From Harbison&Steele. */
8532 union
8533 {
8534 long int l;
8535 char c[sizeof (long int)];
8536 } u;
8537 u.l = 1;
8538 return u.c[sizeof (long int) - 1] == 1;
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_run "$LINENO"; then :
8545 ac_cv_c_bigendian=no
8546 else
8547 ac_cv_c_bigendian=yes
8548 fi
8549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8550 conftest.$ac_objext conftest.beam conftest.$ac_ext
8551 fi
8552
8553 fi
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8556 $as_echo "$ac_cv_c_bigendian" >&6; }
8557 case $ac_cv_c_bigendian in #(
8558 yes)
8559 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8560 ;; #(
8561 no)
8562 ;; #(
8563 universal)
8564
8565 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8566
8567 ;; #(
8568 *)
8569 as_fn_error "unknown endianness
8570 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8571 esac
8572
8573
8574 # ----------------------
8575 # Checks for C++ headers
8576 # ----------------------
8577
8578 ac_ext=cpp
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8584 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8585 if test -z "$CXXCPP"; then
8586 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 # Double quotes because CXXCPP needs to be expanded
8590 for CXXCPP in "$CXX -E" "/lib/cpp"
8591 do
8592 ac_preproc_ok=false
8593 for ac_cxx_preproc_warn_flag in '' yes
8594 do
8595 # Use a header file that comes with gcc, so configuring glibc
8596 # with a fresh cross-compiler works.
8597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8598 # <limits.h> exists even on freestanding compilers.
8599 # On the NeXT, cc -E runs the code through the compiler's parser,
8600 # not just through cpp. "Syntax error" is here to catch this case.
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8608 Syntax error
8609 _ACEOF
8610 if ac_fn_cxx_try_cpp "$LINENO"; then :
8611
8612 else
8613 # Broken: fails on valid input.
8614 continue
8615 fi
8616 rm -f conftest.err conftest.$ac_ext
8617
8618 # OK, works on sane cases. Now check whether nonexistent headers
8619 # can be detected and how.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <ac_nonexistent.h>
8623 _ACEOF
8624 if ac_fn_cxx_try_cpp "$LINENO"; then :
8625 # Broken: success on invalid input.
8626 continue
8627 else
8628 # Passes both tests.
8629 ac_preproc_ok=:
8630 break
8631 fi
8632 rm -f conftest.err conftest.$ac_ext
8633
8634 done
8635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8636 rm -f conftest.err conftest.$ac_ext
8637 if $ac_preproc_ok; then :
8638 break
8639 fi
8640
8641 done
8642 ac_cv_prog_CXXCPP=$CXXCPP
8643
8644 fi
8645 CXXCPP=$ac_cv_prog_CXXCPP
8646 else
8647 ac_cv_prog_CXXCPP=$CXXCPP
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8650 $as_echo "$CXXCPP" >&6; }
8651 ac_preproc_ok=false
8652 for ac_cxx_preproc_warn_flag in '' yes
8653 do
8654 # Use a header file that comes with gcc, so configuring glibc
8655 # with a fresh cross-compiler works.
8656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 # <limits.h> exists even on freestanding compilers.
8658 # On the NeXT, cc -E runs the code through the compiler's parser,
8659 # not just through cpp. "Syntax error" is here to catch this case.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #ifdef __STDC__
8663 # include <limits.h>
8664 #else
8665 # include <assert.h>
8666 #endif
8667 Syntax error
8668 _ACEOF
8669 if ac_fn_cxx_try_cpp "$LINENO"; then :
8670
8671 else
8672 # Broken: fails on valid input.
8673 continue
8674 fi
8675 rm -f conftest.err conftest.$ac_ext
8676
8677 # OK, works on sane cases. Now check whether nonexistent headers
8678 # can be detected and how.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <ac_nonexistent.h>
8682 _ACEOF
8683 if ac_fn_cxx_try_cpp "$LINENO"; then :
8684 # Broken: success on invalid input.
8685 continue
8686 else
8687 # Passes both tests.
8688 ac_preproc_ok=:
8689 break
8690 fi
8691 rm -f conftest.err conftest.$ac_ext
8692
8693 done
8694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8695 rm -f conftest.err conftest.$ac_ext
8696 if $ac_preproc_ok; then :
8697
8698 else
8699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8702 See \`config.log' for more details." >&5
8703 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8704 See \`config.log' for more details." >&2;}; }
8705 fi
8706
8707 ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712
8713
8714 ac_ext=cpp
8715 ac_cpp='$CXXCPP $CPPFLAGS'
8716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8719
8720
8721
8722
8723 for ac_header in unordered_map
8724 do :
8725 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8726 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_UNORDERED_MAP 1
8729 _ACEOF
8730
8731 fi
8732 done
8733
8734 for ac_header in tr1/unordered_map
8735 do :
8736 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8737 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_TR1_UNORDERED_MAP 1
8740 _ACEOF
8741
8742 fi
8743 done
8744
8745 for ac_header in ext/hash_map
8746 do :
8747 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8748 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_EXT_HASH_MAP 1
8751 _ACEOF
8752
8753 fi
8754 done
8755
8756
8757 ac_ext=c
8758 ac_cpp='$CPP $CPPFLAGS'
8759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8762
8763
8764 # --------
8765 # Dependency checking.
8766 # --------
8767
8768 ac_ext=cpp
8769 ac_cpp='$CXXCPP $CPPFLAGS'
8770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8773
8774 rm -rf .tst 2>/dev/null
8775 mkdir .tst 2>/dev/null
8776 if test -d .tst; then
8777 am__leading_dot=.
8778 else
8779 am__leading_dot=_
8780 fi
8781 rmdir .tst 2>/dev/null
8782
8783 DEPDIR="${am__leading_dot}deps"
8784
8785 ac_config_commands="$ac_config_commands depdir"
8786
8787
8788 ac_config_commands="$ac_config_commands gccdepdir"
8789
8790
8791 depcc="$CXX" am_compiler_list=
8792
8793 am_depcomp=$ac_aux_dir/depcomp
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8795 $as_echo_n "checking dependency style of $depcc... " >&6; }
8796 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 if test -f "$am_depcomp"; then
8800 # We make a subdir and do the tests there. Otherwise we can end up
8801 # making bogus files that we don't know about and never remove. For
8802 # instance it was reported that on HP-UX the gcc test will end up
8803 # making a dummy file named `D' -- because `-MD' means `put the output
8804 # in D'.
8805 mkdir conftest.dir
8806 # Copy depcomp to subdir because otherwise we won't find it if we're
8807 # using a relative directory.
8808 cp "$am_depcomp" conftest.dir
8809 cd conftest.dir
8810 # We will build objects and dependencies in a subdirectory because
8811 # it helps to detect inapplicable dependency modes. For instance
8812 # both Tru64's cc and ICC support -MD to output dependencies as a
8813 # side effect of compilation, but ICC will put the dependencies in
8814 # the current directory while Tru64 will put them in the object
8815 # directory.
8816 mkdir sub
8817
8818 am_cv_CXX_dependencies_compiler_type=none
8819 if test "$am_compiler_list" = ""; then
8820 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8821 fi
8822 for depmode in $am_compiler_list; do
8823 if test $depmode = none; then break; fi
8824
8825 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8826 # Setup a source with many dependencies, because some compilers
8827 # like to wrap large dependency lists on column 80 (with \), and
8828 # we should not choose a depcomp mode which is confused by this.
8829 #
8830 # We need to recreate these files for each test, as the compiler may
8831 # overwrite some of them when testing with obscure command lines.
8832 # This happens at least with the AIX C compiler.
8833 : > sub/conftest.c
8834 for i in 1 2 3 4 5 6; do
8835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8837 # Solaris 8's {/usr,}/bin/sh.
8838 touch sub/conftst$i.h
8839 done
8840 echo "include sub/conftest.Po" > confmf
8841
8842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8843 # mode. It turns out that the SunPro C++ compiler does not properly
8844 # handle `-M -o', and we need to detect this.
8845 depcmd="depmode=$depmode \
8846 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8848 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8849 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8850 if env $depcmd > conftest.err 2>&1 &&
8851 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8853 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8854 # icc doesn't choke on unknown options, it will just issue warnings
8855 # or remarks (even with -Werror). So we grep stderr for any message
8856 # that says an option was ignored or not supported.
8857 # When given -MP, icc 7.0 and 7.1 complain thusly:
8858 # icc: Command line warning: ignoring option '-M'; no argument required
8859 # The diagnosis changed in icc 8.0:
8860 # icc: Command line remark: option '-MP' not supported
8861 if (grep 'ignoring option' conftest.err ||
8862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8863 am_cv_CXX_dependencies_compiler_type=$depmode
8864 $as_echo "$as_me:$LINENO: success" >&5
8865 break
8866 fi
8867 fi
8868 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8869 sed -e 's/^/| /' < conftest.err >&5
8870 done
8871
8872 cd ..
8873 rm -rf conftest.dir
8874 else
8875 am_cv_CXX_dependencies_compiler_type=none
8876 fi
8877
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8880 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8881 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8882 then as_fn_error "no usable dependency style found" "$LINENO" 5
8883 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8884
8885 fi
8886
8887 ac_ext=c
8888 ac_cpp='$CPP $CPPFLAGS'
8889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8892
8893
8894 # --------
8895 # UNSORTED
8896 # --------
8897
8898
8899 # These libraries may be used by collect2.
8900 # We may need a special search path to get them linked.
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8902 $as_echo_n "checking for collect2 libraries... " >&6; }
8903 if test "${gcc_cv_collect2_libs+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 save_LIBS="$LIBS"
8907 for libs in '' -lld -lmld \
8908 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8909 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8910 do
8911 LIBS="$libs"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char ldopen ();
8922 int
8923 main ()
8924 {
8925 return ldopen ();
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 gcc_cv_collect2_libs="$libs"; break
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 done
8936 LIBS="$save_LIBS"
8937 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8940 $as_echo "$gcc_cv_collect2_libs" >&6; }
8941 case $gcc_cv_collect2_libs in
8942 "none required") ;;
8943 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8944 esac
8945
8946
8947 # When building Ada code on Alpha, we need exc_resume which is usually in
8948 # -lexc. So test for it.
8949 save_LIBS="$LIBS"
8950 LIBS=
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8952 $as_echo_n "checking for library containing exc_resume... " >&6; }
8953 if test "${ac_cv_search_exc_resume+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 ac_func_search_save_LIBS=$LIBS
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char exc_resume ();
8967 int
8968 main ()
8969 {
8970 return exc_resume ();
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 for ac_lib in '' exc; do
8976 if test -z "$ac_lib"; then
8977 ac_res="none required"
8978 else
8979 ac_res=-l$ac_lib
8980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8981 fi
8982 if ac_fn_c_try_link "$LINENO"; then :
8983 ac_cv_search_exc_resume=$ac_res
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
8987 if test "${ac_cv_search_exc_resume+set}" = set; then :
8988 break
8989 fi
8990 done
8991 if test "${ac_cv_search_exc_resume+set}" = set; then :
8992
8993 else
8994 ac_cv_search_exc_resume=no
8995 fi
8996 rm conftest.$ac_ext
8997 LIBS=$ac_func_search_save_LIBS
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9000 $as_echo "$ac_cv_search_exc_resume" >&6; }
9001 ac_res=$ac_cv_search_exc_resume
9002 if test "$ac_res" != no; then :
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9004
9005 fi
9006
9007 GNAT_LIBEXC="$LIBS"
9008 LIBS="$save_LIBS"
9009
9010
9011 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9012 save_LIBS="$LIBS"
9013 LIBS=
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9015 $as_echo_n "checking for library containing kstat_open... " >&6; }
9016 if test "${ac_cv_search_kstat_open+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 ac_func_search_save_LIBS=$LIBS
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char kstat_open ();
9030 int
9031 main ()
9032 {
9033 return kstat_open ();
9034 ;
9035 return 0;
9036 }
9037 _ACEOF
9038 for ac_lib in '' kstat; do
9039 if test -z "$ac_lib"; then
9040 ac_res="none required"
9041 else
9042 ac_res=-l$ac_lib
9043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9044 fi
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 ac_cv_search_kstat_open=$ac_res
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext
9050 if test "${ac_cv_search_kstat_open+set}" = set; then :
9051 break
9052 fi
9053 done
9054 if test "${ac_cv_search_kstat_open+set}" = set; then :
9055
9056 else
9057 ac_cv_search_kstat_open=no
9058 fi
9059 rm conftest.$ac_ext
9060 LIBS=$ac_func_search_save_LIBS
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9063 $as_echo "$ac_cv_search_kstat_open" >&6; }
9064 ac_res=$ac_cv_search_kstat_open
9065 if test "$ac_res" != no; then :
9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067
9068 fi
9069
9070 EXTRA_GCC_LIBS="$LIBS"
9071 LIBS="$save_LIBS"
9072
9073
9074 # Some systems put ldexp and frexp in libm instead of libc; assume
9075 # they're both in the same place. jcf-dump needs them.
9076 save_LIBS="$LIBS"
9077 LIBS=
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9079 $as_echo_n "checking for library containing ldexp... " >&6; }
9080 if test "${ac_cv_search_ldexp+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 ac_func_search_save_LIBS=$LIBS
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 char ldexp ();
9094 int
9095 main ()
9096 {
9097 return ldexp ();
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 for ac_lib in '' m; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9105 else
9106 ac_res=-l$ac_lib
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9108 fi
9109 if ac_fn_c_try_link "$LINENO"; then :
9110 ac_cv_search_ldexp=$ac_res
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext
9114 if test "${ac_cv_search_ldexp+set}" = set; then :
9115 break
9116 fi
9117 done
9118 if test "${ac_cv_search_ldexp+set}" = set; then :
9119
9120 else
9121 ac_cv_search_ldexp=no
9122 fi
9123 rm conftest.$ac_ext
9124 LIBS=$ac_func_search_save_LIBS
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9127 $as_echo "$ac_cv_search_ldexp" >&6; }
9128 ac_res=$ac_cv_search_ldexp
9129 if test "$ac_res" != no; then :
9130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9131
9132 fi
9133
9134 LDEXP_LIB="$LIBS"
9135 LIBS="$save_LIBS"
9136
9137
9138 # Use <inttypes.h> only if it exists,
9139 # doesn't clash with <sys/types.h>, and declares intmax_t.
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9141 $as_echo_n "checking for inttypes.h... " >&6; }
9142 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 #include <sys/types.h>
9148 #include <inttypes.h>
9149 int
9150 main ()
9151 {
9152 intmax_t i = -1;
9153 ;
9154 return 0;
9155 }
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"; then :
9158 gcc_cv_header_inttypes_h=yes
9159 else
9160 gcc_cv_header_inttypes_h=no
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 fi
9164
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9166 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9167 if test $gcc_cv_header_inttypes_h = yes; then
9168
9169 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9170
9171 fi
9172
9173
9174
9175 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9176 sysconf strsignal getrusage nl_langinfo \
9177 gettimeofday mbstowcs wcswidth mmap setlocale \
9178 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
9179 do :
9180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9182 eval as_val=\$$as_ac_var
9183 if test "x$as_val" = x""yes; then :
9184 cat >>confdefs.h <<_ACEOF
9185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9186 _ACEOF
9187
9188 fi
9189 done
9190
9191
9192 if test x$ac_cv_func_mbstowcs = xyes; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9194 $as_echo_n "checking whether mbstowcs works... " >&6; }
9195 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 if test "$cross_compiling" = yes; then :
9199 gcc_cv_func_mbstowcs_works=yes
9200 else
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <stdlib.h>
9204 int main()
9205 {
9206 mbstowcs(0, "", 0);
9207 return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_run "$LINENO"; then :
9211 gcc_cv_func_mbstowcs_works=yes
9212 else
9213 gcc_cv_func_mbstowcs_works=no
9214 fi
9215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9216 conftest.$ac_objext conftest.beam conftest.$ac_ext
9217 fi
9218
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9221 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9222 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9223
9224 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9225
9226 fi
9227 fi
9228
9229 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9230 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9231
9232 else
9233
9234 cat >>confdefs.h <<_ACEOF
9235 #define ssize_t int
9236 _ACEOF
9237
9238 fi
9239
9240 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9241 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9242
9243 else
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define caddr_t char *
9247 _ACEOF
9248
9249 fi
9250
9251
9252
9253 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9254 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9255 gcc_header_sys_mman_h=yes
9256 else
9257 gcc_header_sys_mman_h=no
9258 fi
9259
9260 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9261 if test "x$ac_cv_func_mmap" = x""yes; then :
9262 gcc_func_mmap=yes
9263 else
9264 gcc_func_mmap=no
9265 fi
9266
9267 if test "$gcc_header_sys_mman_h" != yes \
9268 || test "$gcc_func_mmap" != yes; then
9269 gcc_cv_func_mmap_file=no
9270 gcc_cv_func_mmap_dev_zero=no
9271 gcc_cv_func_mmap_anon=no
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9274 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9275 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 # Add a system to this blacklist if
9279 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9280 # memory area containing the same data that you'd get if you applied
9281 # read() to the same fd. The only system known to have a problem here
9282 # is VMS, where text files have record structure.
9283 case "$host_os" in
9284 *vms* | ultrix*)
9285 gcc_cv_func_mmap_file=no ;;
9286 *)
9287 gcc_cv_func_mmap_file=yes;;
9288 esac
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9291 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9293 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9294 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 # Add a system to this blacklist if it has mmap() but /dev/zero
9298 # does not exist, or if mmapping /dev/zero does not give anonymous
9299 # zeroed pages with both the following properties:
9300 # 1. If you map N consecutive pages in with one call, and then
9301 # unmap any subset of those pages, the pages that were not
9302 # explicitly unmapped remain accessible.
9303 # 2. If you map two adjacent blocks of memory and then unmap them
9304 # both at once, they must both go away.
9305 # Systems known to be in this category are Windows (all variants),
9306 # VMS, and Darwin.
9307 case "$host_os" in
9308 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9309 gcc_cv_func_mmap_dev_zero=no ;;
9310 *)
9311 gcc_cv_func_mmap_dev_zero=yes;;
9312 esac
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9315 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9316
9317 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9319 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9320 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <sys/types.h>
9326 #include <sys/mman.h>
9327 #include <unistd.h>
9328
9329 #ifndef MAP_ANONYMOUS
9330 #define MAP_ANONYMOUS MAP_ANON
9331 #endif
9332
9333 int
9334 main ()
9335 {
9336 int n = MAP_ANONYMOUS;
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342 gcc_cv_decl_map_anon=yes
9343 else
9344 gcc_cv_decl_map_anon=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9349 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9350
9351 if test $gcc_cv_decl_map_anon = no; then
9352 gcc_cv_func_mmap_anon=no
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9355 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9356 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9360 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9361 # doesn't give anonymous zeroed pages with the same properties listed
9362 # above for use of /dev/zero.
9363 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9364 case "$host_os" in
9365 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9366 gcc_cv_func_mmap_anon=no ;;
9367 *)
9368 gcc_cv_func_mmap_anon=yes;;
9369 esac
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9372 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9373 fi
9374 fi
9375
9376 if test $gcc_cv_func_mmap_file = yes; then
9377
9378 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9379
9380 fi
9381 if test $gcc_cv_func_mmap_dev_zero = yes; then
9382
9383 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9384
9385 fi
9386 if test $gcc_cv_func_mmap_anon = yes; then
9387
9388 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9389
9390 fi
9391
9392
9393 case "${host}" in
9394 *-*-*vms*)
9395 # Under VMS, vfork works very differently than on Unix. The standard test
9396 # won't work, and it isn't easily adaptable. It makes more sense to
9397 # just force it.
9398 ac_cv_func_vfork_works=yes
9399 ;;
9400 esac
9401 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9402 if test "x$ac_cv_type_pid_t" = x""yes; then :
9403
9404 else
9405
9406 cat >>confdefs.h <<_ACEOF
9407 #define pid_t int
9408 _ACEOF
9409
9410 fi
9411
9412 for ac_header in vfork.h
9413 do :
9414 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9415 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9416 cat >>confdefs.h <<_ACEOF
9417 #define HAVE_VFORK_H 1
9418 _ACEOF
9419
9420 fi
9421 done
9422
9423 for ac_func in fork vfork
9424 do :
9425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9427 eval as_val=\$$as_ac_var
9428 if test "x$as_val" = x""yes; then :
9429 cat >>confdefs.h <<_ACEOF
9430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9431 _ACEOF
9432
9433 fi
9434 done
9435
9436 if test "x$ac_cv_func_fork" = xyes; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9438 $as_echo_n "checking for working fork... " >&6; }
9439 if test "${ac_cv_func_fork_works+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 if test "$cross_compiling" = yes; then :
9443 ac_cv_func_fork_works=cross
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 $ac_includes_default
9448 int
9449 main ()
9450 {
9451
9452 /* By Ruediger Kuhlmann. */
9453 return fork () < 0;
9454
9455 ;
9456 return 0;
9457 }
9458 _ACEOF
9459 if ac_fn_c_try_run "$LINENO"; then :
9460 ac_cv_func_fork_works=yes
9461 else
9462 ac_cv_func_fork_works=no
9463 fi
9464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9465 conftest.$ac_objext conftest.beam conftest.$ac_ext
9466 fi
9467
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9470 $as_echo "$ac_cv_func_fork_works" >&6; }
9471
9472 else
9473 ac_cv_func_fork_works=$ac_cv_func_fork
9474 fi
9475 if test "x$ac_cv_func_fork_works" = xcross; then
9476 case $host in
9477 *-*-amigaos* | *-*-msdosdjgpp*)
9478 # Override, as these systems have only a dummy fork() stub
9479 ac_cv_func_fork_works=no
9480 ;;
9481 *)
9482 ac_cv_func_fork_works=yes
9483 ;;
9484 esac
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9486 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9487 fi
9488 ac_cv_func_vfork_works=$ac_cv_func_vfork
9489 if test "x$ac_cv_func_vfork" = xyes; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9491 $as_echo_n "checking for working vfork... " >&6; }
9492 if test "${ac_cv_func_vfork_works+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test "$cross_compiling" = yes; then :
9496 ac_cv_func_vfork_works=cross
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 /* Thanks to Paul Eggert for this test. */
9501 $ac_includes_default
9502 #include <sys/wait.h>
9503 #ifdef HAVE_VFORK_H
9504 # include <vfork.h>
9505 #endif
9506 /* On some sparc systems, changes by the child to local and incoming
9507 argument registers are propagated back to the parent. The compiler
9508 is told about this with #include <vfork.h>, but some compilers
9509 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9510 static variable whose address is put into a register that is
9511 clobbered by the vfork. */
9512 static void
9513 #ifdef __cplusplus
9514 sparc_address_test (int arg)
9515 # else
9516 sparc_address_test (arg) int arg;
9517 #endif
9518 {
9519 static pid_t child;
9520 if (!child) {
9521 child = vfork ();
9522 if (child < 0) {
9523 perror ("vfork");
9524 _exit(2);
9525 }
9526 if (!child) {
9527 arg = getpid();
9528 write(-1, "", 0);
9529 _exit (arg);
9530 }
9531 }
9532 }
9533
9534 int
9535 main ()
9536 {
9537 pid_t parent = getpid ();
9538 pid_t child;
9539
9540 sparc_address_test (0);
9541
9542 child = vfork ();
9543
9544 if (child == 0) {
9545 /* Here is another test for sparc vfork register problems. This
9546 test uses lots of local variables, at least as many local
9547 variables as main has allocated so far including compiler
9548 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9549 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9550 reuse the register of parent for one of the local variables,
9551 since it will think that parent can't possibly be used any more
9552 in this routine. Assigning to the local variable will thus
9553 munge parent in the parent process. */
9554 pid_t
9555 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9556 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9557 /* Convince the compiler that p..p7 are live; otherwise, it might
9558 use the same hardware register for all 8 local variables. */
9559 if (p != p1 || p != p2 || p != p3 || p != p4
9560 || p != p5 || p != p6 || p != p7)
9561 _exit(1);
9562
9563 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9564 from child file descriptors. If the child closes a descriptor
9565 before it execs or exits, this munges the parent's descriptor
9566 as well. Test for this by closing stdout in the child. */
9567 _exit(close(fileno(stdout)) != 0);
9568 } else {
9569 int status;
9570 struct stat st;
9571
9572 while (wait(&status) != child)
9573 ;
9574 return (
9575 /* Was there some problem with vforking? */
9576 child < 0
9577
9578 /* Did the child fail? (This shouldn't happen.) */
9579 || status
9580
9581 /* Did the vfork/compiler bug occur? */
9582 || parent != getpid()
9583
9584 /* Did the file descriptor bug occur? */
9585 || fstat(fileno(stdout), &st) != 0
9586 );
9587 }
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_run "$LINENO"; then :
9591 ac_cv_func_vfork_works=yes
9592 else
9593 ac_cv_func_vfork_works=no
9594 fi
9595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9596 conftest.$ac_objext conftest.beam conftest.$ac_ext
9597 fi
9598
9599 fi
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9601 $as_echo "$ac_cv_func_vfork_works" >&6; }
9602
9603 fi;
9604 if test "x$ac_cv_func_fork_works" = xcross; then
9605 ac_cv_func_vfork_works=$ac_cv_func_vfork
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9607 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9608 fi
9609
9610 if test "x$ac_cv_func_vfork_works" = xyes; then
9611
9612 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9613
9614 else
9615
9616 $as_echo "#define vfork fork" >>confdefs.h
9617
9618 fi
9619 if test "x$ac_cv_func_fork_works" = xyes; then
9620
9621 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9622
9623 fi
9624
9625
9626 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9627 # iconv() prototype.
9628 ac_ext=cpp
9629 ac_cpp='$CXXCPP $CPPFLAGS'
9630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9633
9634
9635 if test "X$prefix" = "XNONE"; then
9636 acl_final_prefix="$ac_default_prefix"
9637 else
9638 acl_final_prefix="$prefix"
9639 fi
9640 if test "X$exec_prefix" = "XNONE"; then
9641 acl_final_exec_prefix='${prefix}'
9642 else
9643 acl_final_exec_prefix="$exec_prefix"
9644 fi
9645 acl_save_prefix="$prefix"
9646 prefix="$acl_final_prefix"
9647 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9648 prefix="$acl_save_prefix"
9649
9650
9651 # Check whether --with-gnu-ld was given.
9652 if test "${with_gnu_ld+set}" = set; then :
9653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9654 else
9655 with_gnu_ld=no
9656 fi
9657
9658 # Prepare PATH_SEPARATOR.
9659 # The user is always right.
9660 if test "${PATH_SEPARATOR+set}" != set; then
9661 echo "#! /bin/sh" >conf$$.sh
9662 echo "exit 0" >>conf$$.sh
9663 chmod +x conf$$.sh
9664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9665 PATH_SEPARATOR=';'
9666 else
9667 PATH_SEPARATOR=:
9668 fi
9669 rm -f conf$$.sh
9670 fi
9671 ac_prog=ld
9672 if test "$GCC" = yes; then
9673 # Check if gcc -print-prog-name=ld gives a path.
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9675 $as_echo_n "checking for ld used by GCC... " >&6; }
9676 case $host in
9677 *-*-mingw*)
9678 # gcc leaves a trailing carriage return which upsets mingw
9679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9680 *)
9681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9682 esac
9683 case $ac_prog in
9684 # Accept absolute paths.
9685 [\\/]* | [A-Za-z]:[\\/]*)
9686 re_direlt='/[^/][^/]*/\.\./'
9687 # Canonicalize the path of ld
9688 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9690 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9691 done
9692 test -z "$LD" && LD="$ac_prog"
9693 ;;
9694 "")
9695 # If it fails, then pretend we aren't using GCC.
9696 ac_prog=ld
9697 ;;
9698 *)
9699 # If it is relative, then search for the first ld in PATH.
9700 with_gnu_ld=unknown
9701 ;;
9702 esac
9703 elif test "$with_gnu_ld" = yes; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9705 $as_echo_n "checking for GNU ld... " >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9708 $as_echo_n "checking for non-GNU ld... " >&6; }
9709 fi
9710 if test "${acl_cv_path_LD+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 if test -z "$LD"; then
9714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9715 for ac_dir in $PATH; do
9716 test -z "$ac_dir" && ac_dir=.
9717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9718 acl_cv_path_LD="$ac_dir/$ac_prog"
9719 # Check to see if the program is GNU ld. I'd rather use --version,
9720 # but apparently some GNU ld's only accept -v.
9721 # Break only if it was the GNU/non-GNU ld that we prefer.
9722 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9723 test "$with_gnu_ld" != no && break
9724 else
9725 test "$with_gnu_ld" != yes && break
9726 fi
9727 fi
9728 done
9729 IFS="$ac_save_ifs"
9730 else
9731 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9732 fi
9733 fi
9734
9735 LD="$acl_cv_path_LD"
9736 if test -n "$LD"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9738 $as_echo "$LD" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9746 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9750 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9751 acl_cv_prog_gnu_ld=yes
9752 else
9753 acl_cv_prog_gnu_ld=no
9754 fi
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9757 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9758 with_gnu_ld=$acl_cv_prog_gnu_ld
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9763 $as_echo_n "checking for shared library run path origin... " >&6; }
9764 if test "${acl_cv_rpath+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767
9768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9770 . ./conftest.sh
9771 rm -f ./conftest.sh
9772 acl_cv_rpath=done
9773
9774 fi
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9776 $as_echo "$acl_cv_rpath" >&6; }
9777 wl="$acl_cv_wl"
9778 libext="$acl_cv_libext"
9779 shlibext="$acl_cv_shlibext"
9780 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9781 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9782 hardcode_direct="$acl_cv_hardcode_direct"
9783 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9784 # Check whether --enable-rpath was given.
9785 if test "${enable_rpath+set}" = set; then :
9786 enableval=$enable_rpath; :
9787 else
9788 enable_rpath=yes
9789 fi
9790
9791
9792
9793
9794
9795
9796
9797
9798 use_additional=yes
9799
9800 acl_save_prefix="$prefix"
9801 prefix="$acl_final_prefix"
9802 acl_save_exec_prefix="$exec_prefix"
9803 exec_prefix="$acl_final_exec_prefix"
9804
9805 eval additional_includedir=\"$includedir\"
9806 eval additional_libdir=\"$libdir\"
9807
9808 exec_prefix="$acl_save_exec_prefix"
9809 prefix="$acl_save_prefix"
9810
9811
9812 # Check whether --with-libiconv-prefix was given.
9813 if test "${with_libiconv_prefix+set}" = set; then :
9814 withval=$with_libiconv_prefix;
9815 if test "X$withval" = "Xno"; then
9816 use_additional=no
9817 else
9818 if test "X$withval" = "X"; then
9819
9820 acl_save_prefix="$prefix"
9821 prefix="$acl_final_prefix"
9822 acl_save_exec_prefix="$exec_prefix"
9823 exec_prefix="$acl_final_exec_prefix"
9824
9825 eval additional_includedir=\"$includedir\"
9826 eval additional_libdir=\"$libdir\"
9827
9828 exec_prefix="$acl_save_exec_prefix"
9829 prefix="$acl_save_prefix"
9830
9831 else
9832 additional_includedir="$withval/include"
9833 additional_libdir="$withval/lib"
9834 fi
9835 fi
9836
9837 fi
9838
9839 LIBICONV=
9840 LTLIBICONV=
9841 INCICONV=
9842 rpathdirs=
9843 ltrpathdirs=
9844 names_already_handled=
9845 names_next_round='iconv '
9846 while test -n "$names_next_round"; do
9847 names_this_round="$names_next_round"
9848 names_next_round=
9849 for name in $names_this_round; do
9850 already_handled=
9851 for n in $names_already_handled; do
9852 if test "$n" = "$name"; then
9853 already_handled=yes
9854 break
9855 fi
9856 done
9857 if test -z "$already_handled"; then
9858 names_already_handled="$names_already_handled $name"
9859 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9860 eval value=\"\$HAVE_LIB$uppername\"
9861 if test -n "$value"; then
9862 if test "$value" = yes; then
9863 eval value=\"\$LIB$uppername\"
9864 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9865 eval value=\"\$LTLIB$uppername\"
9866 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9867 else
9868 :
9869 fi
9870 else
9871 found_dir=
9872 found_la=
9873 found_so=
9874 found_a=
9875 if test $use_additional = yes; then
9876 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9877 found_dir="$additional_libdir"
9878 found_so="$additional_libdir/lib$name.$shlibext"
9879 if test -f "$additional_libdir/lib$name.la"; then
9880 found_la="$additional_libdir/lib$name.la"
9881 fi
9882 else
9883 if test -f "$additional_libdir/lib$name.$libext"; then
9884 found_dir="$additional_libdir"
9885 found_a="$additional_libdir/lib$name.$libext"
9886 if test -f "$additional_libdir/lib$name.la"; then
9887 found_la="$additional_libdir/lib$name.la"
9888 fi
9889 fi
9890 fi
9891 fi
9892 if test "X$found_dir" = "X"; then
9893 for x in $LDFLAGS $LTLIBICONV; do
9894
9895 acl_save_prefix="$prefix"
9896 prefix="$acl_final_prefix"
9897 acl_save_exec_prefix="$exec_prefix"
9898 exec_prefix="$acl_final_exec_prefix"
9899 eval x=\"$x\"
9900 exec_prefix="$acl_save_exec_prefix"
9901 prefix="$acl_save_prefix"
9902
9903 case "$x" in
9904 -L*)
9905 dir=`echo "X$x" | sed -e 's/^X-L//'`
9906 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9907 found_dir="$dir"
9908 found_so="$dir/lib$name.$shlibext"
9909 if test -f "$dir/lib$name.la"; then
9910 found_la="$dir/lib$name.la"
9911 fi
9912 else
9913 if test -f "$dir/lib$name.$libext"; then
9914 found_dir="$dir"
9915 found_a="$dir/lib$name.$libext"
9916 if test -f "$dir/lib$name.la"; then
9917 found_la="$dir/lib$name.la"
9918 fi
9919 fi
9920 fi
9921 ;;
9922 esac
9923 if test "X$found_dir" != "X"; then
9924 break
9925 fi
9926 done
9927 fi
9928 if test "X$found_dir" != "X"; then
9929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9930 if test "X$found_so" != "X"; then
9931 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9933 else
9934 haveit=
9935 for x in $ltrpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9937 haveit=yes
9938 break
9939 fi
9940 done
9941 if test -z "$haveit"; then
9942 ltrpathdirs="$ltrpathdirs $found_dir"
9943 fi
9944 if test "$hardcode_direct" = yes; then
9945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9946 else
9947 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9949 haveit=
9950 for x in $rpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9952 haveit=yes
9953 break
9954 fi
9955 done
9956 if test -z "$haveit"; then
9957 rpathdirs="$rpathdirs $found_dir"
9958 fi
9959 else
9960 haveit=
9961 for x in $LDFLAGS $LIBICONV; do
9962
9963 acl_save_prefix="$prefix"
9964 prefix="$acl_final_prefix"
9965 acl_save_exec_prefix="$exec_prefix"
9966 exec_prefix="$acl_final_exec_prefix"
9967 eval x=\"$x\"
9968 exec_prefix="$acl_save_exec_prefix"
9969 prefix="$acl_save_prefix"
9970
9971 if test "X$x" = "X-L$found_dir"; then
9972 haveit=yes
9973 break
9974 fi
9975 done
9976 if test -z "$haveit"; then
9977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9978 fi
9979 if test "$hardcode_minus_L" != no; then
9980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9981 else
9982 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9983 fi
9984 fi
9985 fi
9986 fi
9987 else
9988 if test "X$found_a" != "X"; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9990 else
9991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9992 fi
9993 fi
9994 additional_includedir=
9995 case "$found_dir" in
9996 */lib | */lib/)
9997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9998 additional_includedir="$basedir/include"
9999 ;;
10000 esac
10001 if test "X$additional_includedir" != "X"; then
10002 if test "X$additional_includedir" != "X/usr/include"; then
10003 haveit=
10004 if test "X$additional_includedir" = "X/usr/local/include"; then
10005 if test -n "$GCC"; then
10006 case $host_os in
10007 linux*) haveit=yes;;
10008 esac
10009 fi
10010 fi
10011 if test -z "$haveit"; then
10012 for x in $CPPFLAGS $INCICONV; do
10013
10014 acl_save_prefix="$prefix"
10015 prefix="$acl_final_prefix"
10016 acl_save_exec_prefix="$exec_prefix"
10017 exec_prefix="$acl_final_exec_prefix"
10018 eval x=\"$x\"
10019 exec_prefix="$acl_save_exec_prefix"
10020 prefix="$acl_save_prefix"
10021
10022 if test "X$x" = "X-I$additional_includedir"; then
10023 haveit=yes
10024 break
10025 fi
10026 done
10027 if test -z "$haveit"; then
10028 if test -d "$additional_includedir"; then
10029 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10030 fi
10031 fi
10032 fi
10033 fi
10034 fi
10035 if test -n "$found_la"; then
10036 save_libdir="$libdir"
10037 case "$found_la" in
10038 */* | *\\*) . "$found_la" ;;
10039 *) . "./$found_la" ;;
10040 esac
10041 libdir="$save_libdir"
10042 for dep in $dependency_libs; do
10043 case "$dep" in
10044 -L*)
10045 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10046 if test "X$additional_libdir" != "X/usr/lib"; then
10047 haveit=
10048 if test "X$additional_libdir" = "X/usr/local/lib"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10053 fi
10054 fi
10055 if test -z "$haveit"; then
10056 haveit=
10057 for x in $LDFLAGS $LIBICONV; do
10058
10059 acl_save_prefix="$prefix"
10060 prefix="$acl_final_prefix"
10061 acl_save_exec_prefix="$exec_prefix"
10062 exec_prefix="$acl_final_exec_prefix"
10063 eval x=\"$x\"
10064 exec_prefix="$acl_save_exec_prefix"
10065 prefix="$acl_save_prefix"
10066
10067 if test "X$x" = "X-L$additional_libdir"; then
10068 haveit=yes
10069 break
10070 fi
10071 done
10072 if test -z "$haveit"; then
10073 if test -d "$additional_libdir"; then
10074 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10075 fi
10076 fi
10077 haveit=
10078 for x in $LDFLAGS $LTLIBICONV; do
10079
10080 acl_save_prefix="$prefix"
10081 prefix="$acl_final_prefix"
10082 acl_save_exec_prefix="$exec_prefix"
10083 exec_prefix="$acl_final_exec_prefix"
10084 eval x=\"$x\"
10085 exec_prefix="$acl_save_exec_prefix"
10086 prefix="$acl_save_prefix"
10087
10088 if test "X$x" = "X-L$additional_libdir"; then
10089 haveit=yes
10090 break
10091 fi
10092 done
10093 if test -z "$haveit"; then
10094 if test -d "$additional_libdir"; then
10095 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10096 fi
10097 fi
10098 fi
10099 fi
10100 ;;
10101 -R*)
10102 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10103 if test "$enable_rpath" != no; then
10104 haveit=
10105 for x in $rpathdirs; do
10106 if test "X$x" = "X$dir"; then
10107 haveit=yes
10108 break
10109 fi
10110 done
10111 if test -z "$haveit"; then
10112 rpathdirs="$rpathdirs $dir"
10113 fi
10114 haveit=
10115 for x in $ltrpathdirs; do
10116 if test "X$x" = "X$dir"; then
10117 haveit=yes
10118 break
10119 fi
10120 done
10121 if test -z "$haveit"; then
10122 ltrpathdirs="$ltrpathdirs $dir"
10123 fi
10124 fi
10125 ;;
10126 -l*)
10127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10128 ;;
10129 *.la)
10130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10131 ;;
10132 *)
10133 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10134 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10135 ;;
10136 esac
10137 done
10138 fi
10139 else
10140 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10142 fi
10143 fi
10144 fi
10145 done
10146 done
10147 if test "X$rpathdirs" != "X"; then
10148 if test -n "$hardcode_libdir_separator"; then
10149 alldirs=
10150 for found_dir in $rpathdirs; do
10151 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10152 done
10153 acl_save_libdir="$libdir"
10154 libdir="$alldirs"
10155 eval flag=\"$hardcode_libdir_flag_spec\"
10156 libdir="$acl_save_libdir"
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10158 else
10159 for found_dir in $rpathdirs; do
10160 acl_save_libdir="$libdir"
10161 libdir="$found_dir"
10162 eval flag=\"$hardcode_libdir_flag_spec\"
10163 libdir="$acl_save_libdir"
10164 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10165 done
10166 fi
10167 fi
10168 if test "X$ltrpathdirs" != "X"; then
10169 for found_dir in $ltrpathdirs; do
10170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10171 done
10172 fi
10173
10174
10175
10176
10177
10178
10179
10180 am_save_CPPFLAGS="$CPPFLAGS"
10181
10182 for element in $INCICONV; do
10183 haveit=
10184 for x in $CPPFLAGS; do
10185
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 acl_save_exec_prefix="$exec_prefix"
10189 exec_prefix="$acl_final_exec_prefix"
10190 eval x=\"$x\"
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
10193
10194 if test "X$x" = "X$element"; then
10195 haveit=yes
10196 break
10197 fi
10198 done
10199 if test -z "$haveit"; then
10200 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10201 fi
10202 done
10203
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10206 $as_echo_n "checking for iconv... " >&6; }
10207 if test "${am_cv_func_iconv+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210
10211 am_cv_func_iconv="no, consider installing GNU libiconv"
10212 am_cv_lib_iconv=no
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include <stdlib.h>
10216 #include <iconv.h>
10217 int
10218 main ()
10219 {
10220 iconv_t cd = iconv_open("","");
10221 iconv(cd,NULL,NULL,NULL,NULL);
10222 iconv_close(cd);
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_cxx_try_link "$LINENO"; then :
10228 am_cv_func_iconv=yes
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 if test "$am_cv_func_iconv" != yes; then
10233 am_save_LIBS="$LIBS"
10234 LIBS="$LIBS $LIBICONV"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 #include <stdlib.h>
10238 #include <iconv.h>
10239 int
10240 main ()
10241 {
10242 iconv_t cd = iconv_open("","");
10243 iconv(cd,NULL,NULL,NULL,NULL);
10244 iconv_close(cd);
10245 ;
10246 return 0;
10247 }
10248 _ACEOF
10249 if ac_fn_cxx_try_link "$LINENO"; then :
10250 am_cv_lib_iconv=yes
10251 am_cv_func_iconv=yes
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS="$am_save_LIBS"
10256 fi
10257
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10260 $as_echo "$am_cv_func_iconv" >&6; }
10261 if test "$am_cv_func_iconv" = yes; then
10262
10263 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10264
10265 fi
10266 if test "$am_cv_lib_iconv" = yes; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10268 $as_echo_n "checking how to link with libiconv... " >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10270 $as_echo "$LIBICONV" >&6; }
10271 else
10272 CPPFLAGS="$am_save_CPPFLAGS"
10273 LIBICONV=
10274 LTLIBICONV=
10275 fi
10276
10277
10278
10279 if test "$am_cv_func_iconv" = yes; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10281 $as_echo_n "checking for iconv declaration... " >&6; }
10282 if test "${am_cv_proto_iconv+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288
10289 #include <stdlib.h>
10290 #include <iconv.h>
10291 extern
10292 #ifdef __cplusplus
10293 "C"
10294 #endif
10295 #if defined(__STDC__) || defined(__cplusplus)
10296 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10297 #else
10298 size_t iconv();
10299 #endif
10300
10301 int
10302 main ()
10303 {
10304
10305 ;
10306 return 0;
10307 }
10308 _ACEOF
10309 if ac_fn_cxx_try_compile "$LINENO"; then :
10310 am_cv_proto_iconv_arg1=""
10311 else
10312 am_cv_proto_iconv_arg1="const"
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 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);"
10316 fi
10317
10318 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10320 }$am_cv_proto_iconv" >&5
10321 $as_echo "${ac_t:-
10322 }$am_cv_proto_iconv" >&6; }
10323
10324 cat >>confdefs.h <<_ACEOF
10325 #define ICONV_CONST $am_cv_proto_iconv_arg1
10326 _ACEOF
10327
10328 fi
10329
10330 ac_ext=c
10331 ac_cpp='$CPP $CPPFLAGS'
10332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335
10336
10337 # Until we have in-tree GNU iconv:
10338 LIBICONV_DEP=
10339
10340
10341
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10343 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10344 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #include <locale.h>
10350 int
10351 main ()
10352 {
10353 return LC_MESSAGES
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 am_cv_val_LC_MESSAGES=yes
10360 else
10361 am_cv_val_LC_MESSAGES=no
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10367 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10368 if test $am_cv_val_LC_MESSAGES = yes; then
10369
10370 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10371
10372 fi
10373
10374
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10377 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10378 if test "${am_cv_langinfo_codeset+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 #include <langinfo.h>
10384 int
10385 main ()
10386 {
10387 char* cs = nl_langinfo(CODESET);
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 am_cv_langinfo_codeset=yes
10394 else
10395 am_cv_langinfo_codeset=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10402 $as_echo "$am_cv_langinfo_codeset" >&6; }
10403 if test $am_cv_langinfo_codeset = yes; then
10404
10405 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10406
10407 fi
10408
10409
10410 # We will need to find libiberty.h and ansidecl.h
10411 saved_CFLAGS="$CFLAGS"
10412 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10413 saved_CXXFLAGS="$CXXFLAGS"
10414 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10415 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10416 strsignal strstr stpcpy strverscmp \
10417 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10418 free basename 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
10419 do
10420 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10422 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10423 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #undef $ac_tr_decl
10429 #define $ac_tr_decl 1
10430
10431 #include "ansidecl.h"
10432 #include "system.h"
10433
10434 int
10435 main ()
10436 {
10437 #ifndef $ac_func
10438 char *(*pfn) = (char *(*)) $ac_func ;
10439 #endif
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_compile "$LINENO"; then :
10445 eval "gcc_cv_have_decl_$ac_func=yes"
10446 else
10447 eval "gcc_cv_have_decl_$ac_func=no"
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 fi
10451
10452 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10455 #define $ac_tr_decl 1
10456 _ACEOF
10457
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10461 #define $ac_tr_decl 0
10462 _ACEOF
10463
10464 fi
10465
10466 done
10467
10468
10469 for ac_func in getrlimit setrlimit getrusage
10470 do
10471 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #undef $ac_tr_decl
10480 #define $ac_tr_decl 1
10481
10482 #include "ansidecl.h"
10483 #include "system.h"
10484 #ifdef HAVE_SYS_RESOURCE_H
10485 #include <sys/resource.h>
10486 #endif
10487
10488
10489 int
10490 main ()
10491 {
10492 #ifndef $ac_func
10493 char *(*pfn) = (char *(*)) $ac_func ;
10494 #endif
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500 eval "gcc_cv_have_decl_$ac_func=yes"
10501 else
10502 eval "gcc_cv_have_decl_$ac_func=no"
10503 fi
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 fi
10506
10507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 1
10511 _ACEOF
10512
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10516 #define $ac_tr_decl 0
10517 _ACEOF
10518
10519 fi
10520
10521 done
10522
10523
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526
10527 #include "ansidecl.h"
10528 #include "system.h"
10529 #ifdef HAVE_SYS_RESOURCE_H
10530 #include <sys/resource.h>
10531 #endif
10532
10533 int
10534 main ()
10535 {
10536 rlim_t l = 0;
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_compile "$LINENO"; then :
10542
10543 else
10544
10545 $as_echo "#define rlim_t long" >>confdefs.h
10546
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549
10550 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10551 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10552 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10553 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10554 for ac_func in ldgetname
10555 do
10556 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10559 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 #undef $ac_tr_decl
10565 #define $ac_tr_decl 1
10566
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_LDFCN_H
10570 #undef FREAD
10571 #undef FWRITE
10572 #include <ldfcn.h>
10573 #endif
10574
10575
10576 int
10577 main ()
10578 {
10579 #ifndef $ac_func
10580 char *(*pfn) = (char *(*)) $ac_func ;
10581 #endif
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_compile "$LINENO"; then :
10587 eval "gcc_cv_have_decl_$ac_func=yes"
10588 else
10589 eval "gcc_cv_have_decl_$ac_func=no"
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 fi
10593
10594 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10596 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10597 #define $ac_tr_decl 1
10598 _ACEOF
10599
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10603 #define $ac_tr_decl 0
10604 _ACEOF
10605
10606 fi
10607
10608 done
10609
10610
10611 for ac_func in times
10612 do
10613 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10615 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10616 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621 #undef $ac_tr_decl
10622 #define $ac_tr_decl 1
10623
10624 #include "ansidecl.h"
10625 #include "system.h"
10626 #ifdef HAVE_SYS_TIMES_H
10627 #include <sys/times.h>
10628 #endif
10629
10630
10631 int
10632 main ()
10633 {
10634 #ifndef $ac_func
10635 char *(*pfn) = (char *(*)) $ac_func ;
10636 #endif
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_compile "$LINENO"; then :
10642 eval "gcc_cv_have_decl_$ac_func=yes"
10643 else
10644 eval "gcc_cv_have_decl_$ac_func=no"
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 fi
10648
10649 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 1
10653 _ACEOF
10654
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 0
10659 _ACEOF
10660
10661 fi
10662
10663 done
10664
10665
10666 for ac_func in sigaltstack
10667 do
10668 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #undef $ac_tr_decl
10677 #define $ac_tr_decl 1
10678
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #include <signal.h>
10682
10683
10684 int
10685 main ()
10686 {
10687 #ifndef $ac_func
10688 char *(*pfn) = (char *(*)) $ac_func ;
10689 #endif
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_compile "$LINENO"; then :
10695 eval "gcc_cv_have_decl_$ac_func=yes"
10696 else
10697 eval "gcc_cv_have_decl_$ac_func=no"
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 fi
10701
10702 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10705 #define $ac_tr_decl 1
10706 _ACEOF
10707
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10711 #define $ac_tr_decl 0
10712 _ACEOF
10713
10714 fi
10715
10716 done
10717
10718
10719 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10720 # prototype.
10721 ac_ext=cpp
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10726
10727 for ac_func in madvise
10728 do
10729 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10731 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10732 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #undef $ac_tr_decl
10738 #define $ac_tr_decl 1
10739
10740 #include "ansidecl.h"
10741 #include "system.h"
10742
10743
10744 int
10745 main ()
10746 {
10747 #ifndef $ac_func
10748 char *(*pfn) = (char *(*)) $ac_func ;
10749 #endif
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_cxx_try_compile "$LINENO"; then :
10755 eval "gcc_cv_have_decl_$ac_func=yes"
10756 else
10757 eval "gcc_cv_have_decl_$ac_func=no"
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 fi
10761
10762 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10765 #define $ac_tr_decl 1
10766 _ACEOF
10767
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10771 #define $ac_tr_decl 0
10772 _ACEOF
10773
10774 fi
10775
10776 done
10777
10778 ac_ext=c
10779 ac_cpp='$CPP $CPPFLAGS'
10780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10783
10784
10785 # More time-related stuff.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10787 $as_echo_n "checking for struct tms... " >&6; }
10788 if test "${ac_cv_struct_tms+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794
10795 #include "ansidecl.h"
10796 #include "system.h"
10797 #ifdef HAVE_SYS_TIMES_H
10798 #include <sys/times.h>
10799 #endif
10800
10801 int
10802 main ()
10803 {
10804 struct tms tms;
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_compile "$LINENO"; then :
10810 ac_cv_struct_tms=yes
10811 else
10812 ac_cv_struct_tms=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10817 $as_echo "$ac_cv_struct_tms" >&6; }
10818 if test $ac_cv_struct_tms = yes; then
10819
10820 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10821
10822 fi
10823
10824 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10825 # revisit after autoconf 2.50.
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10827 $as_echo_n "checking for clock_t... " >&6; }
10828 if test "${gcc_cv_type_clock_t+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834
10835 #include "ansidecl.h"
10836 #include "system.h"
10837
10838 int
10839 main ()
10840 {
10841 clock_t x;
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_compile "$LINENO"; then :
10847 gcc_cv_type_clock_t=yes
10848 else
10849 gcc_cv_type_clock_t=no
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10854 $as_echo "$gcc_cv_type_clock_t" >&6; }
10855 if test $gcc_cv_type_clock_t = yes; then
10856
10857 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10858
10859 fi
10860
10861 # Check if F_SETLKW is supported by fcntl.
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10863 $as_echo_n "checking for F_SETLKW... " >&6; }
10864 if test "${ac_cv_f_setlkw+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870
10871 #include <fcntl.h>
10872 int
10873 main ()
10874 {
10875
10876 struct flock fl;
10877 fl.l_whence = 0;
10878 fl.l_start = 0;
10879 fl.l_len = 0;
10880 fl.l_pid = 0;
10881 return fcntl (1, F_SETLKW, &fl);
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_compile "$LINENO"; then :
10887 ac_cv_f_setlkw=yes
10888 else
10889 ac_cv_f_setlkw=no
10890 fi
10891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10894 $as_echo "$ac_cv_f_setlkw" >&6; }
10895 if test $ac_cv_f_setlkw = yes; then
10896
10897 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10898
10899 fi
10900
10901 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10902 CFLAGS="$saved_CFLAGS"
10903 CXXFLAGS="$saved_CXXFLAGS"
10904
10905 # mkdir takes a single argument on some systems.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10907 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10908 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913
10914 #include <sys/types.h>
10915 #ifdef HAVE_SYS_STAT_H
10916 # include <sys/stat.h>
10917 #endif
10918 #ifdef HAVE_UNISTD_H
10919 # include <unistd.h>
10920 #endif
10921 #ifdef HAVE_DIRECT_H
10922 # include <direct.h>
10923 #endif
10924 int
10925 main ()
10926 {
10927 mkdir ("foo", 0);
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_compile "$LINENO"; then :
10933 gcc_cv_mkdir_takes_one_arg=no
10934 else
10935 gcc_cv_mkdir_takes_one_arg=yes
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10940 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10941 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10942
10943 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10944
10945 fi
10946
10947
10948 # File extensions
10949 manext='.1'
10950 objext='.o'
10951
10952
10953
10954 # With Setjmp/Longjmp based exception handling.
10955 # Check whether --enable-sjlj-exceptions was given.
10956 if test "${enable_sjlj_exceptions+set}" = set; then :
10957 enableval=$enable_sjlj_exceptions; case $target in
10958 *-*-hpux10*)
10959 if test $enableval != yes; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10961 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10962 enableval=yes
10963 fi
10964 ;;
10965 esac
10966 force_sjlj_exceptions=yes
10967 else
10968 case $target in
10969 *-*-hpux10*)
10970 force_sjlj_exceptions=yes
10971 enableval=yes
10972 ;;
10973 lm32*-*-*)
10974 force_sjlj_exceptions=yes
10975 enableval=yes
10976 ;;
10977 *)
10978 force_sjlj_exceptions=no
10979 ;;
10980 esac
10981 fi
10982
10983 if test $force_sjlj_exceptions = yes; then
10984 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10985
10986 cat >>confdefs.h <<_ACEOF
10987 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10988 _ACEOF
10989
10990 fi
10991
10992 # --------------------------------------------------------
10993 # Build, host, and target specific configuration fragments
10994 # --------------------------------------------------------
10995
10996 # Collect build-machine-specific information.
10997 . ${srcdir}/config.build
10998
10999 # Collect host-machine-specific information.
11000 . ${srcdir}/config.host
11001
11002 target_gtfiles=
11003
11004 # Collect target-machine-specific information.
11005 . ${srcdir}/config.gcc
11006
11007 extra_objs="${host_extra_objs} ${extra_objs}"
11008 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11009
11010 # Default the target-machine variables that were not explicitly set.
11011 if test x"$tm_file" = x
11012 then tm_file=$cpu_type/$cpu_type.h; fi
11013
11014 if test x"$extra_headers" = x
11015 then extra_headers=; fi
11016
11017 if test x$md_file = x
11018 then md_file=$cpu_type/$cpu_type.md; fi
11019
11020 if test x$out_file = x
11021 then out_file=$cpu_type/$cpu_type.c; fi
11022
11023 if test x"$tmake_file" = x
11024 then tmake_file=$cpu_type/t-$cpu_type
11025 fi
11026
11027 # Support --enable-initfini-array.
11028 if test x$enable_initfini_array != xno; then
11029 tm_file="${tm_file} initfini-array.h"
11030 fi
11031
11032 if test x"$dwarf2" = xyes
11033 then tm_file="$tm_file tm-dwarf2.h"
11034 fi
11035
11036 # Say what files are being used for the output code and MD file.
11037 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11038 echo "Using \`$srcdir/config/$md_file' as machine description file."
11039
11040 # If any of the xm_file variables contain nonexistent files, warn
11041 # about them and drop them.
11042
11043 bx=
11044 for x in $build_xm_file; do
11045 if test -f $srcdir/config/$x
11046 then bx="$bx $x"
11047 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11048 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11049 fi
11050 done
11051 build_xm_file="$bx"
11052
11053 hx=
11054 for x in $host_xm_file; do
11055 if test -f $srcdir/config/$x
11056 then hx="$hx $x"
11057 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11058 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11059 fi
11060 done
11061 host_xm_file="$hx"
11062
11063 tx=
11064 for x in $xm_file; do
11065 if test -f $srcdir/config/$x
11066 then tx="$tx $x"
11067 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11068 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11069 fi
11070 done
11071 xm_file="$tx"
11072
11073 count=a
11074 for f in $tm_file; do
11075 count=${count}x
11076 done
11077 if test $count = ax; then
11078 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11079 else
11080 echo "Using the following target machine macro files:"
11081 for f in $tm_file; do
11082 echo " $srcdir/config/$f"
11083 done
11084 fi
11085
11086 if test x$need_64bit_hwint = xyes; then
11087
11088 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11089
11090 fi
11091
11092 if test x$use_long_long_for_widest_fast_int = xyes; then
11093
11094 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11095
11096 fi
11097
11098 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11099
11100 cat >>confdefs.h <<_ACEOF
11101 #define HAVE_GNU_LD $gnu_ld_bool
11102 _ACEOF
11103
11104
11105 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11106
11107 cat >>confdefs.h <<_ACEOF
11108 #define HAVE_GNU_AS $gnu_as_bool
11109 _ACEOF
11110
11111
11112 count=a
11113 for f in $host_xm_file; do
11114 count=${count}x
11115 done
11116 if test $count = a; then
11117 :
11118 elif test $count = ax; then
11119 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11120 else
11121 echo "Using the following host machine macro files:"
11122 for f in $host_xm_file; do
11123 echo " $srcdir/config/$f"
11124 done
11125 fi
11126 echo "Using ${out_host_hook_obj} for host machine hooks."
11127
11128 if test "$host_xm_file" != "$build_xm_file"; then
11129 count=a
11130 for f in $build_xm_file; do
11131 count=${count}x
11132 done
11133 if test $count = a; then
11134 :
11135 elif test $count = ax; then
11136 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11137 else
11138 echo "Using the following build machine macro files:"
11139 for f in $build_xm_file; do
11140 echo " $srcdir/config/$f"
11141 done
11142 fi
11143 fi
11144
11145 if test -n "$configured_native_system_header_dir"; then
11146 native_system_header_dir=$configured_native_system_header_dir
11147 fi
11148 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11149
11150
11151 case ${host} in
11152 powerpc*-*-darwin*)
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11154 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11155 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160
11161 #include <sys/cdefs.h>
11162 #include <sys/signal.h>
11163 #include <ucontext.h>
11164 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11165
11166 _ACEOF
11167 if ac_fn_c_try_compile "$LINENO"; then :
11168 gcc_cv_mcontext_underscores=no
11169 else
11170 gcc_cv_mcontext_underscores=yes
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11175 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11176 if test $gcc_cv_mcontext_underscores = yes; then
11177
11178 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11179
11180 fi
11181 ;;
11182 esac
11183
11184 # ---------
11185 # Threading
11186 # ---------
11187
11188 # Check if a valid thread package
11189 case ${enable_threads} in
11190 "" | no)
11191 # No threads
11192 target_thread_file='single'
11193 ;;
11194 yes)
11195 # default
11196 target_thread_file='single'
11197 ;;
11198 aix | dce | lynx | mipssde | posix | rtems | \
11199 single | tpf | vxworks | win32)
11200 target_thread_file=${enable_threads}
11201 ;;
11202 *)
11203 echo "${enable_threads} is an unknown thread package" 1>&2
11204 exit 1
11205 ;;
11206 esac
11207
11208 if test x${thread_file} = x; then
11209 # No thread file set by target-specific clauses in config.gcc,
11210 # so use file chosen by default logic above
11211 thread_file=${target_thread_file}
11212 fi
11213
11214 # --------
11215 # UNSORTED
11216 # --------
11217
11218 use_cxa_atexit=no
11219 if test x$enable___cxa_atexit = xyes || \
11220 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11221 if test x$host = x$target; then
11222 case $host in
11223 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11224 # keyed to flag_use_cxa_atexit
11225 *-*-mingw32*)
11226 use_cxa_atexit=yes
11227 ;;
11228 powerpc-ibm-aix*)
11229 use_cxa_atexit=yes
11230 ;;
11231 *)
11232 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11233 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11234 use_cxa_atexit=yes
11235 else
11236 echo "__cxa_atexit can't be enabled on this target"
11237 fi
11238
11239 ;;
11240 esac
11241 else
11242 # We can't check for __cxa_atexit when building a cross, so assume
11243 # it is available
11244 use_cxa_atexit=yes
11245 fi
11246 if test x$use_cxa_atexit = xyes; then
11247
11248 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11249
11250 fi
11251 fi
11252
11253 # Look for a file containing extra machine modes.
11254 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11255 extra_modes_file='$(srcdir)'/config/${extra_modes}
11256
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define EXTRA_MODES_FILE "config/$extra_modes"
11260 _ACEOF
11261
11262 fi
11263
11264 # Convert extra_options into a form suitable for Makefile use.
11265 extra_opt_files=
11266 all_opt_files=
11267 for f in $extra_options; do
11268 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11269 all_opt_files="$all_opt_files $srcdir/config/$f"
11270 done
11271
11272
11273 # auto-host.h is the file containing items generated by autoconf and is
11274 # the first file included by config.h.
11275 # If host=build, it is correct to have bconfig include auto-host.h
11276 # as well. If host!=build, we are in error and need to do more
11277 # work to find out the build config parameters.
11278 if test x$host = x$build
11279 then
11280 build_auto=auto-host.h
11281 else
11282 # We create a subdir, then run autoconf in the subdir.
11283 # To prevent recursion we set host and build for the new
11284 # invocation of configure to the build for this invocation
11285 # of configure.
11286 tempdir=build.$$
11287 rm -rf $tempdir
11288 mkdir $tempdir
11289 cd $tempdir
11290 case ${srcdir} in
11291 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11292 *) realsrcdir=../${srcdir};;
11293 esac
11294 # Clearing GMPINC is necessary to prevent host headers being
11295 # used by the build compiler. Defining GENERATOR_FILE stops
11296 # system.h from including gmp.h.
11297 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11298 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11299 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11300 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11301 ${realsrcdir}/configure \
11302 --enable-languages=${enable_languages-all} \
11303 --target=$target_alias --host=$build_alias --build=$build_alias
11304
11305 # We just finished tests for the build machine, so rename
11306 # the file auto-build.h in the gcc directory.
11307 mv auto-host.h ../auto-build.h
11308 cd ..
11309 rm -rf $tempdir
11310 build_auto=auto-build.h
11311 fi
11312
11313
11314 tm_file="${tm_file} defaults.h"
11315 tm_p_file="${tm_p_file} tm-preds.h"
11316 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11317 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11318 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11319 # put this back in temporarily.
11320 xm_file="auto-host.h ansidecl.h ${xm_file}"
11321
11322 # --------
11323 # UNSORTED
11324 # --------
11325
11326 # Compile in configure arguments.
11327 if test -f configargs.h ; then
11328 # Being re-configured.
11329 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11330 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11331 else
11332 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11333 fi
11334
11335 # Double all backslashes and backslash all quotes to turn
11336 # gcc_config_arguments into a C string.
11337 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11338 $gcc_config_arguments
11339 EOF
11340 gcc_config_arguments_str=`cat conftest.out`
11341 rm -f conftest.out
11342
11343 cat > configargs.h <<EOF
11344 /* Generated automatically. */
11345 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11346 static const char thread_model[] = "$thread_file";
11347
11348 static const struct {
11349 const char *name, *value;
11350 } configure_default_options[] = $configure_default_options;
11351 EOF
11352
11353 gcc_BASEVER=`cat $srcdir/BASE-VER`
11354 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11355 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11356 if test -f $srcdir/REVISION ; then
11357 gcc_REVISION=`cat $srcdir/REVISION`
11358 else
11359 gcc_REVISION=""
11360 fi
11361 cat > plugin-version.h <<EOF
11362 #include "configargs.h"
11363
11364 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11365 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11366 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11367 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11368
11369 static char basever[] = "$gcc_BASEVER";
11370 static char datestamp[] = "$gcc_DATESTAMP";
11371 static char devphase[] = "$gcc_DEVPHASE";
11372 static char revision[] = "$gcc_REVISION";
11373
11374 /* FIXME plugins: We should make the version information more precise.
11375 One way to do is to add a checksum. */
11376
11377 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11378 devphase, revision,
11379 configuration_arguments};
11380 EOF
11381
11382 # Internationalization
11383 # If we haven't got the data from the intl directory,
11384 # assume NLS is disabled.
11385 USE_NLS=no
11386 LIBINTL=
11387 LIBINTL_DEP=
11388 INCINTL=
11389 XGETTEXT=
11390 GMSGFMT=
11391 POSUB=
11392
11393 if test -f ../intl/config.intl; then
11394 . ../intl/config.intl
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11397 $as_echo_n "checking whether NLS is requested... " >&6; }
11398 if test x"$USE_NLS" != xyes; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403 $as_echo "yes" >&6; }
11404
11405 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11406
11407
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11409 $as_echo_n "checking for catalogs to be installed... " >&6; }
11410 # Look for .po and .gmo files in the source directory.
11411 CATALOGS=
11412 XLINGUAS=
11413 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11414 # If there aren't any .gmo files the shell will give us the
11415 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11416 # weeded out.
11417 case "$cat" in *\**)
11418 continue;;
11419 esac
11420 # The quadruple backslash is collapsed to a double backslash
11421 # by the backticks, then collapsed again by the double quotes,
11422 # leaving us with one backslash in the sed expression (right
11423 # before the dot that mustn't act as a wildcard).
11424 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11425 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11426 # The user is allowed to set LINGUAS to a list of languages to
11427 # install catalogs for. If it's empty that means "all of them."
11428 if test "x$LINGUAS" = x; then
11429 CATALOGS="$CATALOGS $cat"
11430 XLINGUAS="$XLINGUAS $lang"
11431 else
11432 case "$LINGUAS" in *$lang*)
11433 CATALOGS="$CATALOGS $cat"
11434 XLINGUAS="$XLINGUAS $lang"
11435 ;;
11436 esac
11437 fi
11438 done
11439 LINGUAS="$XLINGUAS"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11441 $as_echo "$LINGUAS" >&6; }
11442
11443
11444 DATADIRNAME=share
11445
11446 INSTOBJEXT=.mo
11447
11448 GENCAT=gencat
11449
11450 CATOBJEXT=.gmo
11451
11452 fi
11453
11454 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11455 # -liconv on the link line twice.
11456 case "$LIBINTL" in *$LIBICONV*)
11457 LIBICONV= ;;
11458 esac
11459
11460 # Check whether --enable-secureplt was given.
11461 if test "${enable_secureplt+set}" = set; then :
11462 enableval=$enable_secureplt;
11463 fi
11464
11465
11466 # Check whether --enable-leading-mingw64-underscores was given.
11467 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11468 enableval=$enable_leading_mingw64_underscores;
11469 fi
11470
11471 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11472
11473 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11474
11475 fi
11476
11477 # Check whether --enable-cld was given.
11478 if test "${enable_cld+set}" = set; then :
11479 enableval=$enable_cld;
11480 else
11481 enable_cld=no
11482 fi
11483
11484
11485 # Check whether --enable-frame-pointer was given.
11486 if test "${enable_frame_pointer+set}" = set; then :
11487 enableval=$enable_frame_pointer;
11488 else
11489
11490 case $target_os in
11491 linux* | darwin[8912]*)
11492 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11493 # DWARF2.
11494 enable_frame_pointer=no
11495 ;;
11496 *)
11497 enable_frame_pointer=yes
11498 ;;
11499 esac
11500
11501 fi
11502
11503
11504 # Windows32 Registry support for specifying GCC installation paths.
11505 # Check whether --enable-win32-registry was given.
11506 if test "${enable_win32_registry+set}" = set; then :
11507 enableval=$enable_win32_registry;
11508 fi
11509
11510
11511 case $host_os in
11512 win32 | pe | cygwin* | mingw32* | uwin*)
11513 if test "x$enable_win32_registry" != xno; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11515 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11516 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_func_search_save_LIBS=$LIBS
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char RegOpenKeyExA ();
11530 int
11531 main ()
11532 {
11533 return RegOpenKeyExA ();
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 for ac_lib in '' advapi32; do
11539 if test -z "$ac_lib"; then
11540 ac_res="none required"
11541 else
11542 ac_res=-l$ac_lib
11543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11544 fi
11545 if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_search_RegOpenKeyExA=$ac_res
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext
11550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11551 break
11552 fi
11553 done
11554 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11555
11556 else
11557 ac_cv_search_RegOpenKeyExA=no
11558 fi
11559 rm conftest.$ac_ext
11560 LIBS=$ac_func_search_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11563 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11564 ac_res=$ac_cv_search_RegOpenKeyExA
11565 if test "$ac_res" != no; then :
11566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11567
11568 else
11569 enable_win32_registry=no
11570 fi
11571
11572 fi
11573
11574 if test "x$enable_win32_registry" != xno; then
11575
11576 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11577
11578
11579 if test "x$enable_win32_registry" != xyes \
11580 && test "x$enable_win32_registry" != x; then
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11584 _ACEOF
11585
11586 fi
11587 fi
11588 ;;
11589 esac
11590
11591 # Get an absolute path to the GCC top-level source directory
11592 holddir=`${PWDCMD-pwd}`
11593 cd $srcdir
11594 topdir=`${PWDCMD-pwd}`
11595 cd $holddir
11596
11597 # Conditionalize the makefile for this host machine.
11598 xmake_file=
11599 for f in ${host_xmake_file}
11600 do
11601 if test -f ${srcdir}/config/$f
11602 then
11603 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11604 fi
11605 done
11606
11607 # Conditionalize the makefile for this target machine.
11608 tmake_file_=
11609 for f in ${tmake_file}
11610 do
11611 if test -f ${srcdir}/config/$f
11612 then
11613 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11614 fi
11615 done
11616 tmake_file="${tmake_file_}"
11617
11618 out_object_file=`basename $out_file .c`.o
11619 common_out_object_file=`basename $common_out_file .c`.o
11620
11621 tm_file_list="options.h"
11622 tm_include_list="options.h insn-constants.h"
11623 for f in $tm_file; do
11624 case $f in
11625 ./* )
11626 f=`echo $f | sed 's/^..//'`
11627 tm_file_list="${tm_file_list} $f"
11628 tm_include_list="${tm_include_list} $f"
11629 ;;
11630 defaults.h )
11631 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11632 tm_include_list="${tm_include_list} $f"
11633 ;;
11634 * )
11635 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11636 tm_include_list="${tm_include_list} config/$f"
11637 ;;
11638 esac
11639 done
11640
11641 tm_p_file_list=
11642 tm_p_include_list=
11643 for f in $tm_p_file; do
11644 case $f in
11645 tm-preds.h )
11646 tm_p_file_list="${tm_p_file_list} $f"
11647 tm_p_include_list="${tm_p_include_list} $f"
11648 ;;
11649 * )
11650 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11651 tm_p_include_list="${tm_p_include_list} config/$f"
11652 esac
11653 done
11654
11655 xm_file_list=
11656 xm_include_list=
11657 for f in $xm_file; do
11658 case $f in
11659 ansidecl.h )
11660 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11661 xm_include_list="${xm_include_list} $f"
11662 ;;
11663 auto-host.h )
11664 xm_file_list="${xm_file_list} $f"
11665 xm_include_list="${xm_include_list} $f"
11666 ;;
11667 * )
11668 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11669 xm_include_list="${xm_include_list} config/$f"
11670 ;;
11671 esac
11672 done
11673
11674 host_xm_file_list=
11675 host_xm_include_list=
11676 for f in $host_xm_file; do
11677 case $f in
11678 ansidecl.h )
11679 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11680 host_xm_include_list="${host_xm_include_list} $f"
11681 ;;
11682 auto-host.h )
11683 host_xm_file_list="${host_xm_file_list} $f"
11684 host_xm_include_list="${host_xm_include_list} $f"
11685 ;;
11686 * )
11687 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11688 host_xm_include_list="${host_xm_include_list} config/$f"
11689 ;;
11690 esac
11691 done
11692
11693 build_xm_file_list=
11694 for f in $build_xm_file; do
11695 case $f in
11696 ansidecl.h )
11697 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11698 build_xm_include_list="${build_xm_include_list} $f"
11699 ;;
11700 auto-build.h | auto-host.h )
11701 build_xm_file_list="${build_xm_file_list} $f"
11702 build_xm_include_list="${build_xm_include_list} $f"
11703 ;;
11704 * )
11705 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11706 build_xm_include_list="${build_xm_include_list} config/$f"
11707 ;;
11708 esac
11709 done
11710
11711 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11712 # cross-compiler which does not use the native headers and libraries.
11713 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11714 CROSS=
11715 ALL=all.internal
11716 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11717
11718 if test "x$with_build_sysroot" != x; then
11719 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11720 else
11721 # This value is used, even on a native system, because
11722 # CROSS_SYSTEM_HEADER_DIR is just
11723 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11724 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11725 fi
11726
11727 if test x$host != x$target
11728 then
11729 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11730 ALL=all.cross
11731 SYSTEM_HEADER_DIR=$build_system_header_dir
11732 case "$host","$target" in
11733 # Darwin crosses can use the host system's libraries and headers,
11734 # because of the fat library support. Of course, it must be the
11735 # same version of Darwin on both sides. Allow the user to
11736 # just say --target=foo-darwin without a version number to mean
11737 # "the version on this system".
11738 *-*-darwin*,*-*-darwin*)
11739 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11740 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11741 if test $hostos = $targetos -o $targetos = darwin ; then
11742 CROSS=
11743 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11744 with_headers=yes
11745 fi
11746 ;;
11747
11748 i?86-*-*,x86_64-*-* \
11749 | powerpc*-*-*,powerpc64*-*-*)
11750 CROSS="$CROSS -DNATIVE_CROSS" ;;
11751 esac
11752
11753 case $target in
11754 *-*-mingw*)
11755 if test "x$with_headers" = x; then
11756 with_headers=yes
11757 fi
11758 ;;
11759 *)
11760 ;;
11761 esac
11762 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11763 SYSTEM_HEADER_DIR=$build_system_header_dir
11764 fi
11765
11766 # If this is a cross-compiler that does not
11767 # have its own set of headers then define
11768 # inhibit_libc
11769
11770 # If this is using newlib, without having the headers available now,
11771 # then define inhibit_libc in LIBGCC2_CFLAGS.
11772 # This prevents libgcc2 from containing any code which requires libc
11773 # support.
11774 : ${inhibit_libc=false}
11775 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11776 test x$with_newlib = xyes ; } &&
11777 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11778 inhibit_libc=true
11779 fi
11780
11781
11782 # When building gcc with a cross-compiler, we need to adjust things so
11783 # that the generator programs are still built with the native compiler.
11784 # Also, we cannot run fixincludes.
11785
11786 # These are the normal (build=host) settings:
11787 CC_FOR_BUILD='$(CC)'
11788 CXX_FOR_BUILD='$(CXX)'
11789 BUILD_CFLAGS='$(ALL_CFLAGS)'
11790 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11791 BUILD_LDFLAGS='$(LDFLAGS)'
11792 STMP_FIXINC=stmp-fixinc
11793
11794 # And these apply if build != host, or we are generating coverage data
11795 if test x$build != x$host || test "x$coverage_flags" != x
11796 then
11797 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11798 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11799 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11800 fi
11801
11802 # Expand extra_headers to include complete path.
11803 # This substitutes for lots of t-* files.
11804 extra_headers_list=
11805 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11806 for file in ${extra_headers} ; do
11807 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11808 done
11809
11810 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11811 if test x"$use_gcc_tgmath" = xyes
11812 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11813 fi
11814
11815 # Define collect2 in Makefile.
11816 case $host_can_use_collect2 in
11817 no) collect2= ;;
11818 *) collect2='collect2$(exeext)' ;;
11819 esac
11820
11821
11822 # Add a definition of USE_COLLECT2 if system wants one.
11823 case $use_collect2 in
11824 no) use_collect2= ;;
11825 "") ;;
11826 *)
11827 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11828 xm_defines="${xm_defines} USE_COLLECT2"
11829 case $host_can_use_collect2 in
11830 no)
11831 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11832 ;;
11833 esac
11834 ;;
11835 esac
11836
11837
11838 cat >>confdefs.h <<_ACEOF
11839 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11840 _ACEOF
11841
11842
11843 # ---------------------------
11844 # Assembler & linker features
11845 # ---------------------------
11846
11847 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11848 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11849 # However when ld-new is first executed from the build tree, libtool will
11850 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11851 # to the build tree. While doing this we need to use the previous-stage
11852 # linker, or we have an infinite loop. The presence of a shell script as
11853 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11854 # the gcc/collect-ld script. So we need to know how libtool works, or
11855 # exec-tool will fail.
11856
11857
11858 case `pwd` in
11859 *\ * | *\ *)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11861 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11862 esac
11863
11864
11865
11866 macro_version='2.2.7a'
11867 macro_revision='1.3134'
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 ltmain="$ac_aux_dir/ltmain.sh"
11882
11883 # Backslashify metacharacters that are still active within
11884 # double-quoted strings.
11885 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11886
11887 # Same as above, but do not quote variable references.
11888 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11889
11890 # Sed substitution to delay expansion of an escaped shell variable in a
11891 # double_quote_subst'ed string.
11892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11893
11894 # Sed substitution to delay expansion of an escaped single quote.
11895 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11896
11897 # Sed substitution to avoid accidental globbing in evaled expressions
11898 no_glob_subst='s/\*/\\\*/g'
11899
11900 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11905 $as_echo_n "checking how to print strings... " >&6; }
11906 # Test print first, because it will be a builtin if present.
11907 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11908 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11909 ECHO='print -r --'
11910 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11911 ECHO='printf %s\n'
11912 else
11913 # Use this function as a fallback that always works.
11914 func_fallback_echo ()
11915 {
11916 eval 'cat <<_LTECHO_EOF
11917 $1
11918 _LTECHO_EOF'
11919 }
11920 ECHO='func_fallback_echo'
11921 fi
11922
11923 # func_echo_all arg...
11924 # Invoke $ECHO with all args, space-separated.
11925 func_echo_all ()
11926 {
11927 $ECHO ""
11928 }
11929
11930 case "$ECHO" in
11931 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11932 $as_echo "printf" >&6; } ;;
11933 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11934 $as_echo "print -r" >&6; } ;;
11935 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11936 $as_echo "cat" >&6; } ;;
11937 esac
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11954 if test "${ac_cv_path_SED+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11958 for ac_i in 1 2 3 4 5 6 7; do
11959 ac_script="$ac_script$as_nl$ac_script"
11960 done
11961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11962 { ac_script=; unset ac_script;}
11963 if test -z "$SED"; then
11964 ac_path_SED_found=false
11965 # Loop through the user's path and test for each of PROGNAME-LIST
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_prog in sed gsed; do
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11975 # Check for GNU ac_path_SED and select it if it is found.
11976 # Check for GNU $ac_path_SED
11977 case `"$ac_path_SED" --version 2>&1` in
11978 *GNU*)
11979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11980 *)
11981 ac_count=0
11982 $as_echo_n 0123456789 >"conftest.in"
11983 while :
11984 do
11985 cat "conftest.in" "conftest.in" >"conftest.tmp"
11986 mv "conftest.tmp" "conftest.in"
11987 cp "conftest.in" "conftest.nl"
11988 $as_echo '' >> "conftest.nl"
11989 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11991 as_fn_arith $ac_count + 1 && ac_count=$as_val
11992 if test $ac_count -gt ${ac_path_SED_max-0}; then
11993 # Best one so far, save it but keep looking for a better one
11994 ac_cv_path_SED="$ac_path_SED"
11995 ac_path_SED_max=$ac_count
11996 fi
11997 # 10*(2^10) chars as input seems more than enough
11998 test $ac_count -gt 10 && break
11999 done
12000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12001 esac
12002
12003 $ac_path_SED_found && break 3
12004 done
12005 done
12006 done
12007 IFS=$as_save_IFS
12008 if test -z "$ac_cv_path_SED"; then
12009 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12010 fi
12011 else
12012 ac_cv_path_SED=$SED
12013 fi
12014
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12017 $as_echo "$ac_cv_path_SED" >&6; }
12018 SED="$ac_cv_path_SED"
12019 rm -f conftest.sed
12020
12021 test -z "$SED" && SED=sed
12022 Xsed="$SED -e 1s/^X//"
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12035 $as_echo_n "checking for fgrep... " >&6; }
12036 if test "${ac_cv_path_FGREP+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12040 then ac_cv_path_FGREP="$GREP -F"
12041 else
12042 if test -z "$FGREP"; then
12043 ac_path_FGREP_found=false
12044 # Loop through the user's path and test for each of PROGNAME-LIST
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12047 do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_prog in fgrep; do
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12054 # Check for GNU ac_path_FGREP and select it if it is found.
12055 # Check for GNU $ac_path_FGREP
12056 case `"$ac_path_FGREP" --version 2>&1` in
12057 *GNU*)
12058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12059 *)
12060 ac_count=0
12061 $as_echo_n 0123456789 >"conftest.in"
12062 while :
12063 do
12064 cat "conftest.in" "conftest.in" >"conftest.tmp"
12065 mv "conftest.tmp" "conftest.in"
12066 cp "conftest.in" "conftest.nl"
12067 $as_echo 'FGREP' >> "conftest.nl"
12068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12070 as_fn_arith $ac_count + 1 && ac_count=$as_val
12071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12072 # Best one so far, save it but keep looking for a better one
12073 ac_cv_path_FGREP="$ac_path_FGREP"
12074 ac_path_FGREP_max=$ac_count
12075 fi
12076 # 10*(2^10) chars as input seems more than enough
12077 test $ac_count -gt 10 && break
12078 done
12079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12080 esac
12081
12082 $ac_path_FGREP_found && break 3
12083 done
12084 done
12085 done
12086 IFS=$as_save_IFS
12087 if test -z "$ac_cv_path_FGREP"; then
12088 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12089 fi
12090 else
12091 ac_cv_path_FGREP=$FGREP
12092 fi
12093
12094 fi
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12097 $as_echo "$ac_cv_path_FGREP" >&6; }
12098 FGREP="$ac_cv_path_FGREP"
12099
12100
12101 test -z "$GREP" && GREP=grep
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121 # Check whether --with-gnu-ld was given.
12122 if test "${with_gnu_ld+set}" = set; then :
12123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12124 else
12125 with_gnu_ld=no
12126 fi
12127
12128 ac_prog=ld
12129 if test "$GCC" = yes; then
12130 # Check if gcc -print-prog-name=ld gives a path.
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12132 $as_echo_n "checking for ld used by $CC... " >&6; }
12133 case $host in
12134 *-*-mingw*)
12135 # gcc leaves a trailing carriage return which upsets mingw
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12137 *)
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12139 esac
12140 case $ac_prog in
12141 # Accept absolute paths.
12142 [\\/]* | ?:[\\/]*)
12143 re_direlt='/[^/][^/]*/\.\./'
12144 # Canonicalize the pathname of ld
12145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12148 done
12149 test -z "$LD" && LD="$ac_prog"
12150 ;;
12151 "")
12152 # If it fails, then pretend we aren't using GCC.
12153 ac_prog=ld
12154 ;;
12155 *)
12156 # If it is relative, then search for the first ld in PATH.
12157 with_gnu_ld=unknown
12158 ;;
12159 esac
12160 elif test "$with_gnu_ld" = yes; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12162 $as_echo_n "checking for GNU ld... " >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12165 $as_echo_n "checking for non-GNU ld... " >&6; }
12166 fi
12167 if test "${lt_cv_path_LD+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if test -z "$LD"; then
12171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12172 for ac_dir in $PATH; do
12173 IFS="$lt_save_ifs"
12174 test -z "$ac_dir" && ac_dir=.
12175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12176 lt_cv_path_LD="$ac_dir/$ac_prog"
12177 # Check to see if the program is GNU ld. I'd rather use --version,
12178 # but apparently some variants of GNU ld only accept -v.
12179 # Break only if it was the GNU/non-GNU ld that we prefer.
12180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12181 *GNU* | *'with BFD'*)
12182 test "$with_gnu_ld" != no && break
12183 ;;
12184 *)
12185 test "$with_gnu_ld" != yes && break
12186 ;;
12187 esac
12188 fi
12189 done
12190 IFS="$lt_save_ifs"
12191 else
12192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12193 fi
12194 fi
12195
12196 LD="$lt_cv_path_LD"
12197 if test -n "$LD"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12199 $as_echo "$LD" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU* | *'with BFD'*)
12213 lt_cv_prog_gnu_ld=yes
12214 ;;
12215 *)
12216 lt_cv_prog_gnu_ld=no
12217 ;;
12218 esac
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12222 with_gnu_ld=$lt_cv_prog_gnu_ld
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12233 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12234 if test "${lt_cv_path_NM+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$NM"; then
12238 # Let the user override the test.
12239 lt_cv_path_NM="$NM"
12240 else
12241 lt_nm_to_check="${ac_tool_prefix}nm"
12242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12243 lt_nm_to_check="$lt_nm_to_check nm"
12244 fi
12245 for lt_tmp_nm in $lt_nm_to_check; do
12246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12248 IFS="$lt_save_ifs"
12249 test -z "$ac_dir" && ac_dir=.
12250 tmp_nm="$ac_dir/$lt_tmp_nm"
12251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12252 # Check to see if the nm accepts a BSD-compat flag.
12253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12254 # nm: unknown option "B" ignored
12255 # Tru64's nm complains that /dev/null is an invalid object file
12256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12257 */dev/null* | *'Invalid file or object type'*)
12258 lt_cv_path_NM="$tmp_nm -B"
12259 break
12260 ;;
12261 *)
12262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12263 */dev/null*)
12264 lt_cv_path_NM="$tmp_nm -p"
12265 break
12266 ;;
12267 *)
12268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12269 continue # so that we can try to find one that supports BSD flags
12270 ;;
12271 esac
12272 ;;
12273 esac
12274 fi
12275 done
12276 IFS="$lt_save_ifs"
12277 done
12278 : ${lt_cv_path_NM=no}
12279 fi
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12282 $as_echo "$lt_cv_path_NM" >&6; }
12283 if test "$lt_cv_path_NM" != "no"; then
12284 NM="$lt_cv_path_NM"
12285 else
12286 # Didn't find any BSD compatible name lister, look for dumpbin.
12287 if test -n "$DUMPBIN"; then :
12288 # Let the user override the test.
12289 else
12290 if test -n "$ac_tool_prefix"; then
12291 for ac_prog in dumpbin "link -dump"
12292 do
12293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$DUMPBIN"; then
12301 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 DUMPBIN=$ac_cv_prog_DUMPBIN
12321 if test -n "$DUMPBIN"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12323 $as_echo "$DUMPBIN" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 test -n "$DUMPBIN" && break
12331 done
12332 fi
12333 if test -z "$DUMPBIN"; then
12334 ac_ct_DUMPBIN=$DUMPBIN
12335 for ac_prog in dumpbin "link -dump"
12336 do
12337 # Extract the first word of "$ac_prog", so it can be a program name with args.
12338 set dummy $ac_prog; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$ac_ct_DUMPBIN"; then
12345 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12365 if test -n "$ac_ct_DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12367 $as_echo "$ac_ct_DUMPBIN" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 test -n "$ac_ct_DUMPBIN" && break
12375 done
12376
12377 if test "x$ac_ct_DUMPBIN" = x; then
12378 DUMPBIN=":"
12379 else
12380 case $cross_compiling:$ac_tool_warned in
12381 yes:)
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12384 ac_tool_warned=yes ;;
12385 esac
12386 DUMPBIN=$ac_ct_DUMPBIN
12387 fi
12388 fi
12389
12390 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12391 *COFF*)
12392 DUMPBIN="$DUMPBIN -symbols"
12393 ;;
12394 *)
12395 DUMPBIN=:
12396 ;;
12397 esac
12398 fi
12399
12400 if test "$DUMPBIN" != ":"; then
12401 NM="$DUMPBIN"
12402 fi
12403 fi
12404 test -z "$NM" && NM=nm
12405
12406
12407
12408
12409
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12412 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12413 if test "${lt_cv_nm_interface+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 lt_cv_nm_interface="BSD nm"
12417 echo "int some_variable = 0;" > conftest.$ac_ext
12418 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12419 (eval "$ac_compile" 2>conftest.err)
12420 cat conftest.err >&5
12421 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12422 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12423 cat conftest.err >&5
12424 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12425 cat conftest.out >&5
12426 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12427 lt_cv_nm_interface="MS dumpbin"
12428 fi
12429 rm -f conftest*
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12432 $as_echo "$lt_cv_nm_interface" >&6; }
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12435 $as_echo_n "checking whether ln -s works... " >&6; }
12436 LN_S=$as_ln_s
12437 if test "$LN_S" = "ln -s"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12442 $as_echo "no, using $LN_S" >&6; }
12443 fi
12444
12445 # find the maximum length of command line arguments
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12447 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 i=0
12452 teststring="ABCD"
12453
12454 case $build_os in
12455 msdosdjgpp*)
12456 # On DJGPP, this test can blow up pretty badly due to problems in libc
12457 # (any single argument exceeding 2000 bytes causes a buffer overrun
12458 # during glob expansion). Even if it were fixed, the result of this
12459 # check would be larger than it should be.
12460 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12461 ;;
12462
12463 gnu*)
12464 # Under GNU Hurd, this test is not required because there is
12465 # no limit to the length of command line arguments.
12466 # Libtool will interpret -1 as no limit whatsoever
12467 lt_cv_sys_max_cmd_len=-1;
12468 ;;
12469
12470 cygwin* | mingw* | cegcc*)
12471 # On Win9x/ME, this test blows up -- it succeeds, but takes
12472 # about 5 minutes as the teststring grows exponentially.
12473 # Worse, since 9x/ME are not pre-emptively multitasking,
12474 # you end up with a "frozen" computer, even though with patience
12475 # the test eventually succeeds (with a max line length of 256k).
12476 # Instead, let's just punt: use the minimum linelength reported by
12477 # all of the supported platforms: 8192 (on NT/2K/XP).
12478 lt_cv_sys_max_cmd_len=8192;
12479 ;;
12480
12481 mint*)
12482 # On MiNT this can take a long time and run out of memory.
12483 lt_cv_sys_max_cmd_len=8192;
12484 ;;
12485
12486 amigaos*)
12487 # On AmigaOS with pdksh, this test takes hours, literally.
12488 # So we just punt and use a minimum line length of 8192.
12489 lt_cv_sys_max_cmd_len=8192;
12490 ;;
12491
12492 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12493 # This has been around since 386BSD, at least. Likely further.
12494 if test -x /sbin/sysctl; then
12495 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12496 elif test -x /usr/sbin/sysctl; then
12497 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12498 else
12499 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12500 fi
12501 # And add a safety zone
12502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12504 ;;
12505
12506 interix*)
12507 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12508 lt_cv_sys_max_cmd_len=196608
12509 ;;
12510
12511 osf*)
12512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12514 # nice to cause kernel panics so lets avoid the loop below.
12515 # First set a reasonable default.
12516 lt_cv_sys_max_cmd_len=16384
12517 #
12518 if test -x /sbin/sysconfig; then
12519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12520 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12521 esac
12522 fi
12523 ;;
12524 sco3.2v5*)
12525 lt_cv_sys_max_cmd_len=102400
12526 ;;
12527 sysv5* | sco5v6* | sysv4.2uw2*)
12528 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12529 if test -n "$kargmax"; then
12530 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12531 else
12532 lt_cv_sys_max_cmd_len=32768
12533 fi
12534 ;;
12535 *)
12536 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12537 if test -n "$lt_cv_sys_max_cmd_len"; then
12538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12540 else
12541 # Make teststring a little bigger before we do anything with it.
12542 # a 1K string should be a reasonable start.
12543 for i in 1 2 3 4 5 6 7 8 ; do
12544 teststring=$teststring$teststring
12545 done
12546 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12547 # If test is not a shell built-in, we'll probably end up computing a
12548 # maximum length that is only half of the actual maximum length, but
12549 # we can't tell.
12550 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12551 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12552 test $i != 17 # 1/2 MB should be enough
12553 do
12554 i=`expr $i + 1`
12555 teststring=$teststring$teststring
12556 done
12557 # Only check the string length outside the loop.
12558 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12559 teststring=
12560 # Add a significant safety factor because C++ compilers can tack on
12561 # massive amounts of additional arguments before passing them to the
12562 # linker. It appears as though 1/2 is a usable value.
12563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12564 fi
12565 ;;
12566 esac
12567
12568 fi
12569
12570 if test -n $lt_cv_sys_max_cmd_len ; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12575 $as_echo "none" >&6; }
12576 fi
12577 max_cmd_len=$lt_cv_sys_max_cmd_len
12578
12579
12580
12581
12582
12583
12584 : ${CP="cp -f"}
12585 : ${MV="mv -f"}
12586 : ${RM="rm -f"}
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12589 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12590 # Try some XSI features
12591 xsi_shell=no
12592 ( _lt_dummy="a/b/c"
12593 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12594 = c,a/b,, \
12595 && eval 'test $(( 1 + 1 )) -eq 2 \
12596 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12597 && xsi_shell=yes
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12599 $as_echo "$xsi_shell" >&6; }
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12603 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12604 lt_shell_append=no
12605 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12606 >/dev/null 2>&1 \
12607 && lt_shell_append=yes
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12609 $as_echo "$lt_shell_append" >&6; }
12610
12611
12612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12613 lt_unset=unset
12614 else
12615 lt_unset=false
12616 fi
12617
12618
12619
12620
12621
12622 # test EBCDIC or ASCII
12623 case `echo X|tr X '\101'` in
12624 A) # ASCII based system
12625 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12626 lt_SP2NL='tr \040 \012'
12627 lt_NL2SP='tr \015\012 \040\040'
12628 ;;
12629 *) # EBCDIC based system
12630 lt_SP2NL='tr \100 \n'
12631 lt_NL2SP='tr \r\n \100\100'
12632 ;;
12633 esac
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12644 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12645 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 lt_cv_ld_reload_flag='-r'
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12651 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12652 reload_flag=$lt_cv_ld_reload_flag
12653 case $reload_flag in
12654 "" | " "*) ;;
12655 *) reload_flag=" $reload_flag" ;;
12656 esac
12657 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12658 case $host_os in
12659 darwin*)
12660 if test "$GCC" = yes; then
12661 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12662 else
12663 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12664 fi
12665 ;;
12666 esac
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 if test -n "$ac_tool_prefix"; then
12677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680 $as_echo_n "checking for $ac_word... " >&6; }
12681 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if test -n "$OBJDUMP"; then
12685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12686 else
12687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12688 for as_dir in $PATH
12689 do
12690 IFS=$as_save_IFS
12691 test -z "$as_dir" && as_dir=.
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 break 2
12697 fi
12698 done
12699 done
12700 IFS=$as_save_IFS
12701
12702 fi
12703 fi
12704 OBJDUMP=$ac_cv_prog_OBJDUMP
12705 if test -n "$OBJDUMP"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12707 $as_echo "$OBJDUMP" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 fi
12712
12713
12714 fi
12715 if test -z "$ac_cv_prog_OBJDUMP"; then
12716 ac_ct_OBJDUMP=$OBJDUMP
12717 # Extract the first word of "objdump", so it can be a program name with args.
12718 set dummy objdump; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test -n "$ac_ct_OBJDUMP"; then
12725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12726 else
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12729 do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12734 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738 done
12739 done
12740 IFS=$as_save_IFS
12741
12742 fi
12743 fi
12744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12745 if test -n "$ac_ct_OBJDUMP"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12747 $as_echo "$ac_ct_OBJDUMP" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753 if test "x$ac_ct_OBJDUMP" = x; then
12754 OBJDUMP="false"
12755 else
12756 case $cross_compiling:$ac_tool_warned in
12757 yes:)
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12760 ac_tool_warned=yes ;;
12761 esac
12762 OBJDUMP=$ac_ct_OBJDUMP
12763 fi
12764 else
12765 OBJDUMP="$ac_cv_prog_OBJDUMP"
12766 fi
12767
12768 test -z "$OBJDUMP" && OBJDUMP=objdump
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12779 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12780 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 lt_cv_file_magic_cmd='$MAGIC_CMD'
12784 lt_cv_file_magic_test_file=
12785 lt_cv_deplibs_check_method='unknown'
12786 # Need to set the preceding variable on all platforms that support
12787 # interlibrary dependencies.
12788 # 'none' -- dependencies not supported.
12789 # `unknown' -- same as none, but documents that we really don't know.
12790 # 'pass_all' -- all dependencies passed with no checks.
12791 # 'test_compile' -- check by making test program.
12792 # 'file_magic [[regex]]' -- check by looking for files in library path
12793 # which responds to the $file_magic_cmd with a given extended regex.
12794 # If you have `file' or equivalent on your system and you're not sure
12795 # whether `pass_all' will *always* work, you probably want this one.
12796
12797 case $host_os in
12798 aix[4-9]*)
12799 lt_cv_deplibs_check_method=pass_all
12800 ;;
12801
12802 beos*)
12803 lt_cv_deplibs_check_method=pass_all
12804 ;;
12805
12806 bsdi[45]*)
12807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12808 lt_cv_file_magic_cmd='/usr/bin/file -L'
12809 lt_cv_file_magic_test_file=/shlib/libc.so
12810 ;;
12811
12812 cygwin*)
12813 # func_win32_libid is a shell function defined in ltmain.sh
12814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12815 lt_cv_file_magic_cmd='func_win32_libid'
12816 ;;
12817
12818 mingw* | pw32*)
12819 # Base MSYS/MinGW do not provide the 'file' command needed by
12820 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12821 # unless we find 'file', for example because we are cross-compiling.
12822 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12823 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12825 lt_cv_file_magic_cmd='func_win32_libid'
12826 else
12827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828 lt_cv_file_magic_cmd='$OBJDUMP -f'
12829 fi
12830 ;;
12831
12832 cegcc*)
12833 # use the weaker test based on 'objdump'. See mingw*.
12834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12835 lt_cv_file_magic_cmd='$OBJDUMP -f'
12836 ;;
12837
12838 darwin* | rhapsody*)
12839 lt_cv_deplibs_check_method=pass_all
12840 ;;
12841
12842 freebsd* | dragonfly*)
12843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12844 case $host_cpu in
12845 i*86 )
12846 # Not sure whether the presence of OpenBSD here was a mistake.
12847 # Let's accept both of them until this is cleared up.
12848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12849 lt_cv_file_magic_cmd=/usr/bin/file
12850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12851 ;;
12852 esac
12853 else
12854 lt_cv_deplibs_check_method=pass_all
12855 fi
12856 ;;
12857
12858 gnu*)
12859 lt_cv_deplibs_check_method=pass_all
12860 ;;
12861
12862 haiku*)
12863 lt_cv_deplibs_check_method=pass_all
12864 ;;
12865
12866 hpux10.20* | hpux11*)
12867 lt_cv_file_magic_cmd=/usr/bin/file
12868 case $host_cpu in
12869 ia64*)
12870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12872 ;;
12873 hppa*64*)
12874 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]'
12875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12876 ;;
12877 *)
12878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12880 ;;
12881 esac
12882 ;;
12883
12884 interix[3-9]*)
12885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12887 ;;
12888
12889 irix5* | irix6* | nonstopux*)
12890 case $LD in
12891 *-32|*"-32 ") libmagic=32-bit;;
12892 *-n32|*"-n32 ") libmagic=N32;;
12893 *-64|*"-64 ") libmagic=64-bit;;
12894 *) libmagic=never-match;;
12895 esac
12896 lt_cv_deplibs_check_method=pass_all
12897 ;;
12898
12899 # This must be Linux ELF.
12900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12901 lt_cv_deplibs_check_method=pass_all
12902 ;;
12903
12904 netbsd*)
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12907 else
12908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12909 fi
12910 ;;
12911
12912 newos6*)
12913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12914 lt_cv_file_magic_cmd=/usr/bin/file
12915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12916 ;;
12917
12918 *nto* | *qnx*)
12919 lt_cv_deplibs_check_method=pass_all
12920 ;;
12921
12922 openbsd*)
12923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12925 else
12926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12927 fi
12928 ;;
12929
12930 osf3* | osf4* | osf5*)
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934 rdos*)
12935 lt_cv_deplibs_check_method=pass_all
12936 ;;
12937
12938 solaris*)
12939 lt_cv_deplibs_check_method=pass_all
12940 ;;
12941
12942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12943 lt_cv_deplibs_check_method=pass_all
12944 ;;
12945
12946 sysv4 | sysv4.3*)
12947 case $host_vendor in
12948 motorola)
12949 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]'
12950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12951 ;;
12952 ncr)
12953 lt_cv_deplibs_check_method=pass_all
12954 ;;
12955 sequent)
12956 lt_cv_file_magic_cmd='/bin/file'
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12958 ;;
12959 sni)
12960 lt_cv_file_magic_cmd='/bin/file'
12961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12962 lt_cv_file_magic_test_file=/lib/libc.so
12963 ;;
12964 siemens)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967 pc)
12968 lt_cv_deplibs_check_method=pass_all
12969 ;;
12970 esac
12971 ;;
12972
12973 tpf*)
12974 lt_cv_deplibs_check_method=pass_all
12975 ;;
12976 esac
12977
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12981 file_magic_cmd=$lt_cv_file_magic_cmd
12982 deplibs_check_method=$lt_cv_deplibs_check_method
12983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996 if test -n "$ac_tool_prefix"; then
12997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12998 set dummy ${ac_tool_prefix}ar; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if test "${ac_cv_prog_AR+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$AR"; then
13005 ac_cv_prog_AR="$AR" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_prog_AR="${ac_tool_prefix}ar"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13017 fi
13018 done
13019 done
13020 IFS=$as_save_IFS
13021
13022 fi
13023 fi
13024 AR=$ac_cv_prog_AR
13025 if test -n "$AR"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13027 $as_echo "$AR" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033
13034 fi
13035 if test -z "$ac_cv_prog_AR"; then
13036 ac_ct_AR=$AR
13037 # Extract the first word of "ar", so it can be a program name with args.
13038 set dummy ar; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$ac_ct_AR"; then
13045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_ac_ct_AR="ar"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13065 if test -n "$ac_ct_AR"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13067 $as_echo "$ac_ct_AR" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073 if test "x$ac_ct_AR" = x; then
13074 AR="false"
13075 else
13076 case $cross_compiling:$ac_tool_warned in
13077 yes:)
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13080 ac_tool_warned=yes ;;
13081 esac
13082 AR=$ac_ct_AR
13083 fi
13084 else
13085 AR="$ac_cv_prog_AR"
13086 fi
13087
13088 test -z "$AR" && AR=ar
13089 test -z "$AR_FLAGS" && AR_FLAGS=cru
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}strip; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_STRIP+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$STRIP"; then
13110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 STRIP=$ac_cv_prog_STRIP
13130 if test -n "$STRIP"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13132 $as_echo "$STRIP" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 if test -z "$ac_cv_prog_STRIP"; then
13141 ac_ct_STRIP=$STRIP
13142 # Extract the first word of "strip", so it can be a program name with args.
13143 set dummy strip; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$ac_ct_STRIP"; then
13150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_STRIP="strip"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13170 if test -n "$ac_ct_STRIP"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13172 $as_echo "$ac_ct_STRIP" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178 if test "x$ac_ct_STRIP" = x; then
13179 STRIP=":"
13180 else
13181 case $cross_compiling:$ac_tool_warned in
13182 yes:)
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13186 esac
13187 STRIP=$ac_ct_STRIP
13188 fi
13189 else
13190 STRIP="$ac_cv_prog_STRIP"
13191 fi
13192
13193 test -z "$STRIP" && STRIP=:
13194
13195
13196
13197
13198
13199
13200 if test -n "$ac_tool_prefix"; then
13201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 if test -n "$RANLIB"; then
13209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 RANLIB=$ac_cv_prog_RANLIB
13229 if test -n "$RANLIB"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13231 $as_echo "$RANLIB" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237
13238 fi
13239 if test -z "$ac_cv_prog_RANLIB"; then
13240 ac_ct_RANLIB=$RANLIB
13241 # Extract the first word of "ranlib", so it can be a program name with args.
13242 set dummy ranlib; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 if test -n "$ac_ct_RANLIB"; then
13249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13250 else
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_prog_ac_ct_RANLIB="ranlib"
13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260 break 2
13261 fi
13262 done
13263 done
13264 IFS=$as_save_IFS
13265
13266 fi
13267 fi
13268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13269 if test -n "$ac_ct_RANLIB"; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13271 $as_echo "$ac_ct_RANLIB" >&6; }
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276
13277 if test "x$ac_ct_RANLIB" = x; then
13278 RANLIB=":"
13279 else
13280 case $cross_compiling:$ac_tool_warned in
13281 yes:)
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13284 ac_tool_warned=yes ;;
13285 esac
13286 RANLIB=$ac_ct_RANLIB
13287 fi
13288 else
13289 RANLIB="$ac_cv_prog_RANLIB"
13290 fi
13291
13292 test -z "$RANLIB" && RANLIB=:
13293
13294
13295
13296
13297
13298
13299 # Determine commands to create old-style static archives.
13300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13301 old_postinstall_cmds='chmod 644 $oldlib'
13302 old_postuninstall_cmds=
13303
13304 if test -n "$RANLIB"; then
13305 case $host_os in
13306 openbsd*)
13307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13308 ;;
13309 *)
13310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13311 ;;
13312 esac
13313 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13314 fi
13315
13316 case $host_os in
13317 darwin*)
13318 lock_old_archive_extraction=yes ;;
13319 *)
13320 lock_old_archive_extraction=no ;;
13321 esac
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 # If no C compiler was specified, use CC.
13362 LTCC=${LTCC-"$CC"}
13363
13364 # If no C compiler flags were specified, use CFLAGS.
13365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13366
13367 # Allow CC to be a program name with arguments.
13368 compiler=$CC
13369
13370
13371 # Check for command to grab the raw symbol name followed by C symbol from nm.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13373 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13374 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377
13378 # These are sane defaults that work on at least a few old systems.
13379 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13380
13381 # Character class describing NM global symbol codes.
13382 symcode='[BCDEGRST]'
13383
13384 # Regexp to match symbols that can be accessed directly from C.
13385 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13386
13387 # Define system-specific variables.
13388 case $host_os in
13389 aix*)
13390 symcode='[BCDT]'
13391 ;;
13392 cygwin* | mingw* | pw32* | cegcc*)
13393 symcode='[ABCDGISTW]'
13394 ;;
13395 hpux*)
13396 if test "$host_cpu" = ia64; then
13397 symcode='[ABCDEGRST]'
13398 fi
13399 ;;
13400 irix* | nonstopux*)
13401 symcode='[BCDEGRST]'
13402 ;;
13403 osf*)
13404 symcode='[BCDEGQRST]'
13405 ;;
13406 solaris*)
13407 symcode='[BDRT]'
13408 ;;
13409 sco3.2v5*)
13410 symcode='[DT]'
13411 ;;
13412 sysv4.2uw2*)
13413 symcode='[DT]'
13414 ;;
13415 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13416 symcode='[ABDT]'
13417 ;;
13418 sysv4)
13419 symcode='[DFNSTU]'
13420 ;;
13421 esac
13422
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426 symcode='[ABCDGIRSTW]' ;;
13427 esac
13428
13429 # Transform an extracted symbol line into a proper C declaration.
13430 # Some systems (esp. on ia64) link data and code symbols differently,
13431 # so use this general approach.
13432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13433
13434 # Transform an extracted symbol line into symbol name and symbol address
13435 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13436 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'"
13437
13438 # Handle CRLF in mingw tool chain
13439 opt_cr=
13440 case $build_os in
13441 mingw*)
13442 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13443 ;;
13444 esac
13445
13446 # Try without a prefix underscore, then with it.
13447 for ac_symprfx in "" "_"; do
13448
13449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450 symxfrm="\\1 $ac_symprfx\\2 \\2"
13451
13452 # Write the raw and C identifiers.
13453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13454 # Fake it for dumpbin and say T for any non-static function
13455 # and D for any global variable.
13456 # Also find C++ and __fastcall symbols from MSVC++,
13457 # which start with @ or ?.
13458 lt_cv_sys_global_symbol_pipe="$AWK '"\
13459 " {last_section=section; section=\$ 3};"\
13460 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13461 " \$ 0!~/External *\|/{next};"\
13462 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13463 " {if(hide[section]) next};"\
13464 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13465 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13466 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13467 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13468 " ' prfx=^$ac_symprfx"
13469 else
13470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13471 fi
13472
13473 # Check to see that the pipe works correctly.
13474 pipe_works=no
13475
13476 rm -f conftest*
13477 cat > conftest.$ac_ext <<_LT_EOF
13478 #ifdef __cplusplus
13479 extern "C" {
13480 #endif
13481 char nm_test_var;
13482 void nm_test_func(void);
13483 void nm_test_func(void){}
13484 #ifdef __cplusplus
13485 }
13486 #endif
13487 int main(){nm_test_var='a';nm_test_func();return(0);}
13488 _LT_EOF
13489
13490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13491 (eval $ac_compile) 2>&5
13492 ac_status=$?
13493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494 test $ac_status = 0; }; then
13495 # Now try to grab the symbols.
13496 nlist=conftest.nm
13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13498 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13499 ac_status=$?
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 test $ac_status = 0; } && test -s "$nlist"; then
13502 # Try sorting and uniquifying the output.
13503 if sort "$nlist" | uniq > "$nlist"T; then
13504 mv -f "$nlist"T "$nlist"
13505 else
13506 rm -f "$nlist"T
13507 fi
13508
13509 # Make sure that we snagged all the symbols we need.
13510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13512 cat <<_LT_EOF > conftest.$ac_ext
13513 #ifdef __cplusplus
13514 extern "C" {
13515 #endif
13516
13517 _LT_EOF
13518 # Now generate the symbol file.
13519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13520
13521 cat <<_LT_EOF >> conftest.$ac_ext
13522
13523 /* The mapping between symbol names and symbols. */
13524 const struct {
13525 const char *name;
13526 void *address;
13527 }
13528 lt__PROGRAM__LTX_preloaded_symbols[] =
13529 {
13530 { "@PROGRAM@", (void *) 0 },
13531 _LT_EOF
13532 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13533 cat <<\_LT_EOF >> conftest.$ac_ext
13534 {0, (void *) 0}
13535 };
13536
13537 /* This works around a problem in FreeBSD linker */
13538 #ifdef FREEBSD_WORKAROUND
13539 static const void *lt_preloaded_setup() {
13540 return lt__PROGRAM__LTX_preloaded_symbols;
13541 }
13542 #endif
13543
13544 #ifdef __cplusplus
13545 }
13546 #endif
13547 _LT_EOF
13548 # Now try linking the two files.
13549 mv conftest.$ac_objext conftstm.$ac_objext
13550 lt_save_LIBS="$LIBS"
13551 lt_save_CFLAGS="$CFLAGS"
13552 LIBS="conftstm.$ac_objext"
13553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13559 pipe_works=yes
13560 fi
13561 LIBS="$lt_save_LIBS"
13562 CFLAGS="$lt_save_CFLAGS"
13563 else
13564 echo "cannot find nm_test_func in $nlist" >&5
13565 fi
13566 else
13567 echo "cannot find nm_test_var in $nlist" >&5
13568 fi
13569 else
13570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13571 fi
13572 else
13573 echo "$progname: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 fi
13576 rm -rf conftest* conftst*
13577
13578 # Do not use the global_symbol_pipe unless it works.
13579 if test "$pipe_works" = yes; then
13580 break
13581 else
13582 lt_cv_sys_global_symbol_pipe=
13583 fi
13584 done
13585
13586 fi
13587
13588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13589 lt_cv_sys_global_symbol_to_cdecl=
13590 fi
13591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13593 $as_echo "failed" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13596 $as_echo "ok" >&6; }
13597 fi
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620 # Check whether --enable-libtool-lock was given.
13621 if test "${enable_libtool_lock+set}" = set; then :
13622 enableval=$enable_libtool_lock;
13623 fi
13624
13625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13626
13627 # Some flags need to be propagated to the compiler or linker for good
13628 # libtool support.
13629 case $host in
13630 ia64-*-hpux*)
13631 # Find out which ABI we are using.
13632 echo 'int i;' > conftest.$ac_ext
13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634 (eval $ac_compile) 2>&5
13635 ac_status=$?
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }; then
13638 case `/usr/bin/file conftest.$ac_objext` in
13639 *ELF-32*)
13640 HPUX_IA64_MODE="32"
13641 ;;
13642 *ELF-64*)
13643 HPUX_IA64_MODE="64"
13644 ;;
13645 esac
13646 fi
13647 rm -rf conftest*
13648 ;;
13649 *-*-irix6*)
13650 # Find out which ABI we are using.
13651 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 if test "$lt_cv_prog_gnu_ld" = yes; then
13658 case `/usr/bin/file conftest.$ac_objext` in
13659 *32-bit*)
13660 LD="${LD-ld} -melf32bsmip"
13661 ;;
13662 *N32*)
13663 LD="${LD-ld} -melf32bmipn32"
13664 ;;
13665 *64-bit*)
13666 LD="${LD-ld} -melf64bmip"
13667 ;;
13668 esac
13669 else
13670 case `/usr/bin/file conftest.$ac_objext` in
13671 *32-bit*)
13672 LD="${LD-ld} -32"
13673 ;;
13674 *N32*)
13675 LD="${LD-ld} -n32"
13676 ;;
13677 *64-bit*)
13678 LD="${LD-ld} -64"
13679 ;;
13680 esac
13681 fi
13682 fi
13683 rm -rf conftest*
13684 ;;
13685
13686 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13687 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13688 # Find out which ABI we are using.
13689 echo 'int i;' > conftest.$ac_ext
13690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13691 (eval $ac_compile) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694 test $ac_status = 0; }; then
13695 case `/usr/bin/file conftest.o` in
13696 *32-bit*)
13697 case $host in
13698 x86_64-*kfreebsd*-gnu)
13699 LD="${LD-ld} -m elf_i386_fbsd"
13700 ;;
13701 x86_64-*linux*)
13702 case `/usr/bin/file conftest.o` in
13703 *x86-64*)
13704 LD="${LD-ld} -m elf32_x86_64"
13705 ;;
13706 *)
13707 LD="${LD-ld} -m elf_i386"
13708 ;;
13709 esac
13710 ;;
13711 powerpc64le-*linux*)
13712 LD="${LD-ld} -m elf32lppclinux"
13713 ;;
13714 powerpc64-*linux*)
13715 LD="${LD-ld} -m elf32ppclinux"
13716 ;;
13717 s390x-*linux*)
13718 LD="${LD-ld} -m elf_s390"
13719 ;;
13720 sparc64-*linux*)
13721 LD="${LD-ld} -m elf32_sparc"
13722 ;;
13723 esac
13724 ;;
13725 *64-bit*)
13726 case $host in
13727 x86_64-*kfreebsd*-gnu)
13728 LD="${LD-ld} -m elf_x86_64_fbsd"
13729 ;;
13730 x86_64-*linux*)
13731 LD="${LD-ld} -m elf_x86_64"
13732 ;;
13733 powerpcle-*linux*)
13734 LD="${LD-ld} -m elf64lppc"
13735 ;;
13736 powerpc-*linux*)
13737 LD="${LD-ld} -m elf64ppc"
13738 ;;
13739 s390*-*linux*|s390*-*tpf*)
13740 LD="${LD-ld} -m elf64_s390"
13741 ;;
13742 sparc*-*linux*)
13743 LD="${LD-ld} -m elf64_sparc"
13744 ;;
13745 esac
13746 ;;
13747 esac
13748 fi
13749 rm -rf conftest*
13750 ;;
13751
13752 *-*-sco3.2v5*)
13753 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13754 SAVE_CFLAGS="$CFLAGS"
13755 CFLAGS="$CFLAGS -belf"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13757 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13758 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 ac_ext=c
13762 ac_cpp='$CPP $CPPFLAGS'
13763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13766
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769
13770 int
13771 main ()
13772 {
13773
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 lt_cv_cc_needs_belf=yes
13780 else
13781 lt_cv_cc_needs_belf=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 ac_ext=c
13786 ac_cpp='$CPP $CPPFLAGS'
13787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13790
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13793 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13796 CFLAGS="$SAVE_CFLAGS"
13797 fi
13798 ;;
13799 sparc*-*solaris*)
13800 # Find out which ABI we are using.
13801 echo 'int i;' > conftest.$ac_ext
13802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13806 test $ac_status = 0; }; then
13807 case `/usr/bin/file conftest.o` in
13808 *64-bit*)
13809 case $lt_cv_prog_gnu_ld in
13810 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13811 *)
13812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13813 LD="${LD-ld} -64"
13814 fi
13815 ;;
13816 esac
13817 ;;
13818 esac
13819 fi
13820 rm -rf conftest*
13821 ;;
13822 esac
13823
13824 need_locks="$enable_libtool_lock"
13825
13826
13827 case $host_os in
13828 rhapsody* | darwin*)
13829 if test -n "$ac_tool_prefix"; then
13830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833 $as_echo_n "checking for $ac_word... " >&6; }
13834 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 if test -n "$DSYMUTIL"; then
13838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13839 else
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13842 do
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849 break 2
13850 fi
13851 done
13852 done
13853 IFS=$as_save_IFS
13854
13855 fi
13856 fi
13857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13858 if test -n "$DSYMUTIL"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13860 $as_echo "$DSYMUTIL" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13864 fi
13865
13866
13867 fi
13868 if test -z "$ac_cv_prog_DSYMUTIL"; then
13869 ac_ct_DSYMUTIL=$DSYMUTIL
13870 # Extract the first word of "dsymutil", so it can be a program name with args.
13871 set dummy dsymutil; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 if test -n "$ac_ct_DSYMUTIL"; then
13878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13879 else
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891 done
13892 done
13893 IFS=$as_save_IFS
13894
13895 fi
13896 fi
13897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13898 if test -n "$ac_ct_DSYMUTIL"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13901 else
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13904 fi
13905
13906 if test "x$ac_ct_DSYMUTIL" = x; then
13907 DSYMUTIL=":"
13908 else
13909 case $cross_compiling:$ac_tool_warned in
13910 yes:)
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13913 ac_tool_warned=yes ;;
13914 esac
13915 DSYMUTIL=$ac_ct_DSYMUTIL
13916 fi
13917 else
13918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13919 fi
13920
13921 if test -n "$ac_tool_prefix"; then
13922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 if test -n "$NMEDIT"; then
13930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13931 else
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13934 do
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 break 2
13942 fi
13943 done
13944 done
13945 IFS=$as_save_IFS
13946
13947 fi
13948 fi
13949 NMEDIT=$ac_cv_prog_NMEDIT
13950 if test -n "$NMEDIT"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13952 $as_echo "$NMEDIT" >&6; }
13953 else
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956 fi
13957
13958
13959 fi
13960 if test -z "$ac_cv_prog_NMEDIT"; then
13961 ac_ct_NMEDIT=$NMEDIT
13962 # Extract the first word of "nmedit", so it can be a program name with args.
13963 set dummy nmedit; ac_word=$2
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 $as_echo_n "checking for $ac_word... " >&6; }
13966 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 if test -n "$ac_ct_NMEDIT"; then
13970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13971 else
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13974 do
13975 IFS=$as_save_IFS
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983 done
13984 done
13985 IFS=$as_save_IFS
13986
13987 fi
13988 fi
13989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13990 if test -n "$ac_ct_NMEDIT"; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13992 $as_echo "$ac_ct_NMEDIT" >&6; }
13993 else
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13996 fi
13997
13998 if test "x$ac_ct_NMEDIT" = x; then
13999 NMEDIT=":"
14000 else
14001 case $cross_compiling:$ac_tool_warned in
14002 yes:)
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14005 ac_tool_warned=yes ;;
14006 esac
14007 NMEDIT=$ac_ct_NMEDIT
14008 fi
14009 else
14010 NMEDIT="$ac_cv_prog_NMEDIT"
14011 fi
14012
14013 if test -n "$ac_tool_prefix"; then
14014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017 $as_echo_n "checking for $ac_word... " >&6; }
14018 if test "${ac_cv_prog_LIPO+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 if test -n "$LIPO"; then
14022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14023 else
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14026 do
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 break 2
14034 fi
14035 done
14036 done
14037 IFS=$as_save_IFS
14038
14039 fi
14040 fi
14041 LIPO=$ac_cv_prog_LIPO
14042 if test -n "$LIPO"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14044 $as_echo "$LIPO" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14048 fi
14049
14050
14051 fi
14052 if test -z "$ac_cv_prog_LIPO"; then
14053 ac_ct_LIPO=$LIPO
14054 # Extract the first word of "lipo", so it can be a program name with args.
14055 set dummy lipo; ac_word=$2
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057 $as_echo_n "checking for $ac_word... " >&6; }
14058 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 if test -n "$ac_ct_LIPO"; then
14062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14063 else
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14066 do
14067 IFS=$as_save_IFS
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_prog_ac_ct_LIPO="lipo"
14072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 break 2
14074 fi
14075 done
14076 done
14077 IFS=$as_save_IFS
14078
14079 fi
14080 fi
14081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14082 if test -n "$ac_ct_LIPO"; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14084 $as_echo "$ac_ct_LIPO" >&6; }
14085 else
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 $as_echo "no" >&6; }
14088 fi
14089
14090 if test "x$ac_ct_LIPO" = x; then
14091 LIPO=":"
14092 else
14093 case $cross_compiling:$ac_tool_warned in
14094 yes:)
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14097 ac_tool_warned=yes ;;
14098 esac
14099 LIPO=$ac_ct_LIPO
14100 fi
14101 else
14102 LIPO="$ac_cv_prog_LIPO"
14103 fi
14104
14105 if test -n "$ac_tool_prefix"; then
14106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14107 set dummy ${ac_tool_prefix}otool; 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 test "${ac_cv_prog_OTOOL+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -n "$OTOOL"; then
14114 ac_cv_prog_OTOOL="$OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
14134 if test -n "$OTOOL"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14136 $as_echo "$OTOOL" >&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_OTOOL"; then
14145 ac_ct_OTOOL=$OTOOL
14146 # Extract the first word of "otool", so it can be a program name with args.
14147 set dummy otool; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 if test -n "$ac_ct_OTOOL"; then
14154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14163 ac_cv_prog_ac_ct_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14174 if test -n "$ac_ct_OTOOL"; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14176 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
14183 OTOOL=":"
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 OTOOL=$ac_ct_OTOOL
14192 fi
14193 else
14194 OTOOL="$ac_cv_prog_OTOOL"
14195 fi
14196
14197 if test -n "$ac_tool_prefix"; then
14198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14201 $as_echo_n "checking for $ac_word... " >&6; }
14202 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 if test -n "$OTOOL64"; then
14206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14207 else
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14210 do
14211 IFS=$as_save_IFS
14212 test -z "$as_dir" && as_dir=.
14213 for ac_exec_ext in '' $ac_executable_extensions; do
14214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14217 break 2
14218 fi
14219 done
14220 done
14221 IFS=$as_save_IFS
14222
14223 fi
14224 fi
14225 OTOOL64=$ac_cv_prog_OTOOL64
14226 if test -n "$OTOOL64"; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14228 $as_echo "$OTOOL64" >&6; }
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14232 fi
14233
14234
14235 fi
14236 if test -z "$ac_cv_prog_OTOOL64"; then
14237 ac_ct_OTOOL64=$OTOOL64
14238 # Extract the first word of "otool64", so it can be a program name with args.
14239 set dummy otool64; ac_word=$2
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241 $as_echo_n "checking for $ac_word... " >&6; }
14242 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 if test -n "$ac_ct_OTOOL64"; then
14246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14247 else
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14250 do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_prog_ac_ct_OTOOL64="otool64"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 break 2
14258 fi
14259 done
14260 done
14261 IFS=$as_save_IFS
14262
14263 fi
14264 fi
14265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14266 if test -n "$ac_ct_OTOOL64"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14268 $as_echo "$ac_ct_OTOOL64" >&6; }
14269 else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14272 fi
14273
14274 if test "x$ac_ct_OTOOL64" = x; then
14275 OTOOL64=":"
14276 else
14277 case $cross_compiling:$ac_tool_warned in
14278 yes:)
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14281 ac_tool_warned=yes ;;
14282 esac
14283 OTOOL64=$ac_ct_OTOOL64
14284 fi
14285 else
14286 OTOOL64="$ac_cv_prog_OTOOL64"
14287 fi
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14316 $as_echo_n "checking for -single_module linker flag... " >&6; }
14317 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 lt_cv_apple_cc_single_mod=no
14321 if test -z "${LT_MULTI_MODULE}"; then
14322 # By default we will add the -single_module flag. You can override
14323 # by either setting the environment variable LT_MULTI_MODULE
14324 # non-empty at configure time, or by adding -multi_module to the
14325 # link flags.
14326 rm -rf libconftest.dylib*
14327 echo "int foo(void){return 1;}" > conftest.c
14328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14329 -dynamiclib -Wl,-single_module conftest.c" >&5
14330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14332 _lt_result=$?
14333 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14334 lt_cv_apple_cc_single_mod=yes
14335 else
14336 cat conftest.err >&5
14337 fi
14338 rm -rf libconftest.dylib*
14339 rm -f conftest.*
14340 fi
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14343 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14345 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14346 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 lt_cv_ld_exported_symbols_list=no
14350 save_LDFLAGS=$LDFLAGS
14351 echo "_main" > conftest.sym
14352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355
14356 int
14357 main ()
14358 {
14359
14360 ;
14361 return 0;
14362 }
14363 _ACEOF
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 lt_cv_ld_exported_symbols_list=yes
14366 else
14367 lt_cv_ld_exported_symbols_list=no
14368 fi
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LDFLAGS="$save_LDFLAGS"
14372
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14375 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14377 $as_echo_n "checking for -force_load linker flag... " >&6; }
14378 if test "${lt_cv_ld_force_load+set}" = set; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 lt_cv_ld_force_load=no
14382 cat > conftest.c << _LT_EOF
14383 int forced_loaded() { return 2;}
14384 _LT_EOF
14385 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14386 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14387 echo "$AR cru libconftest.a conftest.o" >&5
14388 $AR cru libconftest.a conftest.o 2>&5
14389 cat > conftest.c << _LT_EOF
14390 int main() { return 0;}
14391 _LT_EOF
14392 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14393 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14394 _lt_result=$?
14395 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14396 lt_cv_ld_force_load=yes
14397 else
14398 cat conftest.err >&5
14399 fi
14400 rm -f conftest.err libconftest.a conftest conftest.c
14401 rm -rf conftest.dSYM
14402
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14405 $as_echo "$lt_cv_ld_force_load" >&6; }
14406 case $host_os in
14407 rhapsody* | darwin1.[012])
14408 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14409 darwin1.*)
14410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14411 darwin*) # darwin 5.x on
14412 # if running on 10.5 or later, the deployment target defaults
14413 # to the OS version, if on x86, and 10.4, the deployment
14414 # target defaults to 10.4. Don't you love it?
14415 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14416 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14417 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14418 10.[012]*)
14419 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14420 10.*)
14421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14422 esac
14423 ;;
14424 esac
14425 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14426 _lt_dar_single_mod='$single_module'
14427 fi
14428 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14429 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14430 else
14431 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14432 fi
14433 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14434 _lt_dsymutil='~$DSYMUTIL $lib || :'
14435 else
14436 _lt_dsymutil=
14437 fi
14438 ;;
14439 esac
14440
14441 for ac_header in dlfcn.h
14442 do :
14443 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14444 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14445 cat >>confdefs.h <<_ACEOF
14446 #define HAVE_DLFCN_H 1
14447 _ACEOF
14448
14449 fi
14450 done
14451
14452
14453
14454
14455
14456 # Set options
14457
14458
14459
14460 enable_dlopen=no
14461
14462
14463 enable_win32_dll=no
14464
14465
14466 # Check whether --enable-shared was given.
14467 if test "${enable_shared+set}" = set; then :
14468 enableval=$enable_shared; p=${PACKAGE-default}
14469 case $enableval in
14470 yes) enable_shared=yes ;;
14471 no) enable_shared=no ;;
14472 *)
14473 enable_shared=no
14474 # Look at the argument we got. We use all the common list separators.
14475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14476 for pkg in $enableval; do
14477 IFS="$lt_save_ifs"
14478 if test "X$pkg" = "X$p"; then
14479 enable_shared=yes
14480 fi
14481 done
14482 IFS="$lt_save_ifs"
14483 ;;
14484 esac
14485 else
14486 enable_shared=yes
14487 fi
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497 # Check whether --enable-static was given.
14498 if test "${enable_static+set}" = set; then :
14499 enableval=$enable_static; p=${PACKAGE-default}
14500 case $enableval in
14501 yes) enable_static=yes ;;
14502 no) enable_static=no ;;
14503 *)
14504 enable_static=no
14505 # Look at the argument we got. We use all the common list separators.
14506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14507 for pkg in $enableval; do
14508 IFS="$lt_save_ifs"
14509 if test "X$pkg" = "X$p"; then
14510 enable_static=yes
14511 fi
14512 done
14513 IFS="$lt_save_ifs"
14514 ;;
14515 esac
14516 else
14517 enable_static=yes
14518 fi
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529 # Check whether --with-pic was given.
14530 if test "${with_pic+set}" = set; then :
14531 withval=$with_pic; pic_mode="$withval"
14532 else
14533 pic_mode=default
14534 fi
14535
14536
14537 test -z "$pic_mode" && pic_mode=default
14538
14539
14540
14541
14542
14543
14544
14545 # Check whether --enable-fast-install was given.
14546 if test "${enable_fast_install+set}" = set; then :
14547 enableval=$enable_fast_install; p=${PACKAGE-default}
14548 case $enableval in
14549 yes) enable_fast_install=yes ;;
14550 no) enable_fast_install=no ;;
14551 *)
14552 enable_fast_install=no
14553 # Look at the argument we got. We use all the common list separators.
14554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14555 for pkg in $enableval; do
14556 IFS="$lt_save_ifs"
14557 if test "X$pkg" = "X$p"; then
14558 enable_fast_install=yes
14559 fi
14560 done
14561 IFS="$lt_save_ifs"
14562 ;;
14563 esac
14564 else
14565 enable_fast_install=yes
14566 fi
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578 # This can be used to rebuild libtool when needed
14579 LIBTOOL_DEPS="$ltmain"
14580
14581 # Always use our own libtool.
14582 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609 test -z "$LN_S" && LN_S="ln -s"
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624 if test -n "${ZSH_VERSION+set}" ; then
14625 setopt NO_GLOB_SUBST
14626 fi
14627
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14629 $as_echo_n "checking for objdir... " >&6; }
14630 if test "${lt_cv_objdir+set}" = set; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 rm -f .libs 2>/dev/null
14634 mkdir .libs 2>/dev/null
14635 if test -d .libs; then
14636 lt_cv_objdir=.libs
14637 else
14638 # MS-DOS does not allow filenames that begin with a dot.
14639 lt_cv_objdir=_libs
14640 fi
14641 rmdir .libs 2>/dev/null
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14644 $as_echo "$lt_cv_objdir" >&6; }
14645 objdir=$lt_cv_objdir
14646
14647
14648
14649
14650
14651 cat >>confdefs.h <<_ACEOF
14652 #define LT_OBJDIR "$lt_cv_objdir/"
14653 _ACEOF
14654
14655
14656
14657
14658 case $host_os in
14659 aix3*)
14660 # AIX sometimes has problems with the GCC collect2 program. For some
14661 # reason, if we set the COLLECT_NAMES environment variable, the problems
14662 # vanish in a puff of smoke.
14663 if test "X${COLLECT_NAMES+set}" != Xset; then
14664 COLLECT_NAMES=
14665 export COLLECT_NAMES
14666 fi
14667 ;;
14668 esac
14669
14670 # Global variables:
14671 ofile=libtool
14672 can_build_shared=yes
14673
14674 # All known linkers require a `.a' archive for static linking (except MSVC,
14675 # which needs '.lib').
14676 libext=a
14677
14678 with_gnu_ld="$lt_cv_prog_gnu_ld"
14679
14680 old_CC="$CC"
14681 old_CFLAGS="$CFLAGS"
14682
14683 # Set sane defaults for various variables
14684 test -z "$CC" && CC=cc
14685 test -z "$LTCC" && LTCC=$CC
14686 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14687 test -z "$LD" && LD=ld
14688 test -z "$ac_objext" && ac_objext=o
14689
14690 for cc_temp in $compiler""; do
14691 case $cc_temp in
14692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14694 \-*) ;;
14695 *) break;;
14696 esac
14697 done
14698 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14699
14700
14701 # Only perform the check for file, if the check method requires it
14702 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14703 case $deplibs_check_method in
14704 file_magic*)
14705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14707 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 case $MAGIC_CMD in
14712 [\\/*] | ?:[\\/]*)
14713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14714 ;;
14715 *)
14716 lt_save_MAGIC_CMD="$MAGIC_CMD"
14717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14719 for ac_dir in $ac_dummy; do
14720 IFS="$lt_save_ifs"
14721 test -z "$ac_dir" && ac_dir=.
14722 if test -f $ac_dir/${ac_tool_prefix}file; then
14723 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14724 if test -n "$file_magic_test_file"; then
14725 case $deplibs_check_method in
14726 "file_magic "*)
14727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14730 $EGREP "$file_magic_regex" > /dev/null; then
14731 :
14732 else
14733 cat <<_LT_EOF 1>&2
14734
14735 *** Warning: the command libtool uses to detect shared libraries,
14736 *** $file_magic_cmd, produces output that libtool cannot recognize.
14737 *** The result is that libtool may fail to recognize shared libraries
14738 *** as such. This will affect the creation of libtool libraries that
14739 *** depend on shared libraries, but programs linked with such libtool
14740 *** libraries will work regardless of this problem. Nevertheless, you
14741 *** may want to report the problem to your system manager and/or to
14742 *** bug-libtool@gnu.org
14743
14744 _LT_EOF
14745 fi ;;
14746 esac
14747 fi
14748 break
14749 fi
14750 done
14751 IFS="$lt_save_ifs"
14752 MAGIC_CMD="$lt_save_MAGIC_CMD"
14753 ;;
14754 esac
14755 fi
14756
14757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14758 if test -n "$MAGIC_CMD"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14760 $as_echo "$MAGIC_CMD" >&6; }
14761 else
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 $as_echo "no" >&6; }
14764 fi
14765
14766
14767
14768
14769
14770 if test -z "$lt_cv_path_MAGIC_CMD"; then
14771 if test -n "$ac_tool_prefix"; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14773 $as_echo_n "checking for file... " >&6; }
14774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 case $MAGIC_CMD in
14778 [\\/*] | ?:[\\/]*)
14779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14780 ;;
14781 *)
14782 lt_save_MAGIC_CMD="$MAGIC_CMD"
14783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14785 for ac_dir in $ac_dummy; do
14786 IFS="$lt_save_ifs"
14787 test -z "$ac_dir" && ac_dir=.
14788 if test -f $ac_dir/file; then
14789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14790 if test -n "$file_magic_test_file"; then
14791 case $deplibs_check_method in
14792 "file_magic "*)
14793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14796 $EGREP "$file_magic_regex" > /dev/null; then
14797 :
14798 else
14799 cat <<_LT_EOF 1>&2
14800
14801 *** Warning: the command libtool uses to detect shared libraries,
14802 *** $file_magic_cmd, produces output that libtool cannot recognize.
14803 *** The result is that libtool may fail to recognize shared libraries
14804 *** as such. This will affect the creation of libtool libraries that
14805 *** depend on shared libraries, but programs linked with such libtool
14806 *** libraries will work regardless of this problem. Nevertheless, you
14807 *** may want to report the problem to your system manager and/or to
14808 *** bug-libtool@gnu.org
14809
14810 _LT_EOF
14811 fi ;;
14812 esac
14813 fi
14814 break
14815 fi
14816 done
14817 IFS="$lt_save_ifs"
14818 MAGIC_CMD="$lt_save_MAGIC_CMD"
14819 ;;
14820 esac
14821 fi
14822
14823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14824 if test -n "$MAGIC_CMD"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14826 $as_echo "$MAGIC_CMD" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14830 fi
14831
14832
14833 else
14834 MAGIC_CMD=:
14835 fi
14836 fi
14837
14838 fi
14839 ;;
14840 esac
14841
14842 # Use C for the default configuration in the libtool script
14843
14844 lt_save_CC="$CC"
14845 ac_ext=c
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14850
14851
14852 # Source file extension for C test sources.
14853 ac_ext=c
14854
14855 # Object file extension for compiled C test sources.
14856 objext=o
14857 objext=$objext
14858
14859 # Code to be used in simple compile tests
14860 lt_simple_compile_test_code="int some_variable = 0;"
14861
14862 # Code to be used in simple link tests
14863 lt_simple_link_test_code='int main(){return(0);}'
14864
14865
14866
14867
14868
14869
14870
14871 # If no C compiler was specified, use CC.
14872 LTCC=${LTCC-"$CC"}
14873
14874 # If no C compiler flags were specified, use CFLAGS.
14875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14876
14877 # Allow CC to be a program name with arguments.
14878 compiler=$CC
14879
14880 # Save the default compiler, since it gets overwritten when the other
14881 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14882 compiler_DEFAULT=$CC
14883
14884 # save warnings/boilerplate of simple test code
14885 ac_outfile=conftest.$ac_objext
14886 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14887 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14888 _lt_compiler_boilerplate=`cat conftest.err`
14889 $RM conftest*
14890
14891 ac_outfile=conftest.$ac_objext
14892 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14893 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14894 _lt_linker_boilerplate=`cat conftest.err`
14895 $RM -r conftest*
14896
14897
14898 ## CAVEAT EMPTOR:
14899 ## There is no encapsulation within the following macros, do not change
14900 ## the running order or otherwise move them around unless you know exactly
14901 ## what you are doing...
14902 if test -n "$compiler"; then
14903
14904 lt_prog_compiler_no_builtin_flag=
14905
14906 if test "$GCC" = yes; then
14907 case $cc_basename in
14908 nvcc*)
14909 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14910 *)
14911 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14912 esac
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14915 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14916 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 lt_cv_prog_compiler_rtti_exceptions=no
14920 ac_outfile=conftest.$ac_objext
14921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14922 lt_compiler_flag="-fno-rtti -fno-exceptions"
14923 # Insert the option either (1) after the last *FLAGS variable, or
14924 # (2) before a word containing "conftest.", or (3) at the end.
14925 # Note that $ac_compile itself does not contain backslashes and begins
14926 # with a dollar sign (not a hyphen), so the echo should work correctly.
14927 # The option is referenced via a variable to avoid confusing sed.
14928 lt_compile=`echo "$ac_compile" | $SED \
14929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14931 -e 's:$: $lt_compiler_flag:'`
14932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14933 (eval "$lt_compile" 2>conftest.err)
14934 ac_status=$?
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 if (exit $ac_status) && test -s "$ac_outfile"; then
14938 # The compiler can only warn and ignore the option if not recognized
14939 # So say no if there are warnings other than the usual output.
14940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14943 lt_cv_prog_compiler_rtti_exceptions=yes
14944 fi
14945 fi
14946 $RM conftest*
14947
14948 fi
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14950 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14951
14952 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14953 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14954 else
14955 :
14956 fi
14957
14958 fi
14959
14960
14961
14962
14963
14964
14965 lt_prog_compiler_wl=
14966 lt_prog_compiler_pic=
14967 lt_prog_compiler_static=
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14970 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14971
14972 if test "$GCC" = yes; then
14973 lt_prog_compiler_wl='-Wl,'
14974 lt_prog_compiler_static='-static'
14975
14976 case $host_os in
14977 aix*)
14978 # All AIX code is PIC.
14979 if test "$host_cpu" = ia64; then
14980 # AIX 5 now supports IA64 processor
14981 lt_prog_compiler_static='-Bstatic'
14982 fi
14983 lt_prog_compiler_pic='-fPIC'
14984 ;;
14985
14986 amigaos*)
14987 case $host_cpu in
14988 powerpc)
14989 # see comment about AmigaOS4 .so support
14990 lt_prog_compiler_pic='-fPIC'
14991 ;;
14992 m68k)
14993 # FIXME: we need at least 68020 code to build shared libraries, but
14994 # adding the `-m68020' flag to GCC prevents building anything better,
14995 # like `-m68040'.
14996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14997 ;;
14998 esac
14999 ;;
15000
15001 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15002 # PIC is the default for these OSes.
15003 ;;
15004
15005 mingw* | cygwin* | pw32* | os2* | cegcc*)
15006 # This hack is so that the source file can tell whether it is being
15007 # built for inclusion in a dll (and should export symbols for example).
15008 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15009 # (--disable-auto-import) libraries
15010 lt_prog_compiler_pic='-DDLL_EXPORT'
15011 ;;
15012
15013 darwin* | rhapsody*)
15014 # PIC is the default on this platform
15015 # Common symbols not allowed in MH_DYLIB files
15016 lt_prog_compiler_pic='-fno-common'
15017 ;;
15018
15019 haiku*)
15020 # PIC is the default for Haiku.
15021 # The "-static" flag exists, but is broken.
15022 lt_prog_compiler_static=
15023 ;;
15024
15025 hpux*)
15026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15028 # sets the default TLS model and affects inlining.
15029 case $host_cpu in
15030 hppa*64*)
15031 # +Z the default
15032 ;;
15033 *)
15034 lt_prog_compiler_pic='-fPIC'
15035 ;;
15036 esac
15037 ;;
15038
15039 interix[3-9]*)
15040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15041 # Instead, we relocate shared libraries at runtime.
15042 ;;
15043
15044 msdosdjgpp*)
15045 # Just because we use GCC doesn't mean we suddenly get shared libraries
15046 # on systems that don't support them.
15047 lt_prog_compiler_can_build_shared=no
15048 enable_shared=no
15049 ;;
15050
15051 *nto* | *qnx*)
15052 # QNX uses GNU C++, but need to define -shared option too, otherwise
15053 # it will coredump.
15054 lt_prog_compiler_pic='-fPIC -shared'
15055 ;;
15056
15057 sysv4*MP*)
15058 if test -d /usr/nec; then
15059 lt_prog_compiler_pic=-Kconform_pic
15060 fi
15061 ;;
15062
15063 *)
15064 lt_prog_compiler_pic='-fPIC'
15065 ;;
15066 esac
15067
15068 case $cc_basename in
15069 nvcc*) # Cuda Compiler Driver 2.2
15070 lt_prog_compiler_wl='-Xlinker '
15071 lt_prog_compiler_pic='-Xcompiler -fPIC'
15072 ;;
15073 esac
15074 else
15075 # PORTME Check for flag to pass linker flags through the system compiler.
15076 case $host_os in
15077 aix*)
15078 lt_prog_compiler_wl='-Wl,'
15079 if test "$host_cpu" = ia64; then
15080 # AIX 5 now supports IA64 processor
15081 lt_prog_compiler_static='-Bstatic'
15082 else
15083 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15084 fi
15085 ;;
15086
15087 mingw* | cygwin* | pw32* | os2* | cegcc*)
15088 # This hack is so that the source file can tell whether it is being
15089 # built for inclusion in a dll (and should export symbols for example).
15090 lt_prog_compiler_pic='-DDLL_EXPORT'
15091 ;;
15092
15093 hpux9* | hpux10* | hpux11*)
15094 lt_prog_compiler_wl='-Wl,'
15095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15096 # not for PA HP-UX.
15097 case $host_cpu in
15098 hppa*64*|ia64*)
15099 # +Z the default
15100 ;;
15101 *)
15102 lt_prog_compiler_pic='+Z'
15103 ;;
15104 esac
15105 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15106 lt_prog_compiler_static='${wl}-a ${wl}archive'
15107 ;;
15108
15109 irix5* | irix6* | nonstopux*)
15110 lt_prog_compiler_wl='-Wl,'
15111 # PIC (with -KPIC) is the default.
15112 lt_prog_compiler_static='-non_shared'
15113 ;;
15114
15115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15116 case $cc_basename in
15117 # old Intel for x86_64 which still supported -KPIC.
15118 ecc*)
15119 lt_prog_compiler_wl='-Wl,'
15120 lt_prog_compiler_pic='-KPIC'
15121 lt_prog_compiler_static='-static'
15122 ;;
15123 # icc used to be incompatible with GCC.
15124 # ICC 10 doesn't accept -KPIC any more.
15125 icc* | ifort*)
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_pic='-fPIC'
15128 lt_prog_compiler_static='-static'
15129 ;;
15130 # Lahey Fortran 8.1.
15131 lf95*)
15132 lt_prog_compiler_wl='-Wl,'
15133 lt_prog_compiler_pic='--shared'
15134 lt_prog_compiler_static='--static'
15135 ;;
15136 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15137 # Portland Group compilers (*not* the Pentium gcc compiler,
15138 # which looks to be a dead project)
15139 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_pic='-fpic'
15141 lt_prog_compiler_static='-Bstatic'
15142 ;;
15143 ccc*)
15144 lt_prog_compiler_wl='-Wl,'
15145 # All Alpha code is PIC.
15146 lt_prog_compiler_static='-non_shared'
15147 ;;
15148 xl* | bgxl* | bgf* | mpixl*)
15149 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15150 lt_prog_compiler_wl='-Wl,'
15151 lt_prog_compiler_pic='-qpic'
15152 lt_prog_compiler_static='-qstaticlink'
15153 ;;
15154 *)
15155 case `$CC -V 2>&1 | sed 5q` in
15156 *Sun\ F* | *Sun*Fortran*)
15157 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15158 lt_prog_compiler_pic='-KPIC'
15159 lt_prog_compiler_static='-Bstatic'
15160 lt_prog_compiler_wl=''
15161 ;;
15162 *Sun\ C*)
15163 # Sun C 5.9
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-Bstatic'
15166 lt_prog_compiler_wl='-Wl,'
15167 ;;
15168 esac
15169 ;;
15170 esac
15171 ;;
15172
15173 newsos6)
15174 lt_prog_compiler_pic='-KPIC'
15175 lt_prog_compiler_static='-Bstatic'
15176 ;;
15177
15178 *nto* | *qnx*)
15179 # QNX uses GNU C++, but need to define -shared option too, otherwise
15180 # it will coredump.
15181 lt_prog_compiler_pic='-fPIC -shared'
15182 ;;
15183
15184 osf3* | osf4* | osf5*)
15185 lt_prog_compiler_wl='-Wl,'
15186 # All OSF/1 code is PIC.
15187 lt_prog_compiler_static='-non_shared'
15188 ;;
15189
15190 rdos*)
15191 lt_prog_compiler_static='-non_shared'
15192 ;;
15193
15194 solaris*)
15195 lt_prog_compiler_pic='-KPIC'
15196 lt_prog_compiler_static='-Bstatic'
15197 case $cc_basename in
15198 f77* | f90* | f95*)
15199 lt_prog_compiler_wl='-Qoption ld ';;
15200 *)
15201 lt_prog_compiler_wl='-Wl,';;
15202 esac
15203 ;;
15204
15205 sunos4*)
15206 lt_prog_compiler_wl='-Qoption ld '
15207 lt_prog_compiler_pic='-PIC'
15208 lt_prog_compiler_static='-Bstatic'
15209 ;;
15210
15211 sysv4 | sysv4.2uw2* | sysv4.3*)
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_pic='-KPIC'
15214 lt_prog_compiler_static='-Bstatic'
15215 ;;
15216
15217 sysv4*MP*)
15218 if test -d /usr/nec ;then
15219 lt_prog_compiler_pic='-Kconform_pic'
15220 lt_prog_compiler_static='-Bstatic'
15221 fi
15222 ;;
15223
15224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_pic='-KPIC'
15227 lt_prog_compiler_static='-Bstatic'
15228 ;;
15229
15230 unicos*)
15231 lt_prog_compiler_wl='-Wl,'
15232 lt_prog_compiler_can_build_shared=no
15233 ;;
15234
15235 uts4*)
15236 lt_prog_compiler_pic='-pic'
15237 lt_prog_compiler_static='-Bstatic'
15238 ;;
15239
15240 *)
15241 lt_prog_compiler_can_build_shared=no
15242 ;;
15243 esac
15244 fi
15245
15246 case $host_os in
15247 # For platforms which do not support PIC, -DPIC is meaningless:
15248 *djgpp*)
15249 lt_prog_compiler_pic=
15250 ;;
15251 *)
15252 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15253 ;;
15254 esac
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15256 $as_echo "$lt_prog_compiler_pic" >&6; }
15257
15258
15259
15260
15261
15262
15263 #
15264 # Check to make sure the PIC flag actually works.
15265 #
15266 if test -n "$lt_prog_compiler_pic"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15269 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15270 $as_echo_n "(cached) " >&6
15271 else
15272 lt_cv_prog_compiler_pic_works=no
15273 ac_outfile=conftest.$ac_objext
15274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15275 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15276 # Insert the option either (1) after the last *FLAGS variable, or
15277 # (2) before a word containing "conftest.", or (3) at the end.
15278 # Note that $ac_compile itself does not contain backslashes and begins
15279 # with a dollar sign (not a hyphen), so the echo should work correctly.
15280 # The option is referenced via a variable to avoid confusing sed.
15281 lt_compile=`echo "$ac_compile" | $SED \
15282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15284 -e 's:$: $lt_compiler_flag:'`
15285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15286 (eval "$lt_compile" 2>conftest.err)
15287 ac_status=$?
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 if (exit $ac_status) && test -s "$ac_outfile"; then
15291 # The compiler can only warn and ignore the option if not recognized
15292 # So say no if there are warnings other than the usual output.
15293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15296 lt_cv_prog_compiler_pic_works=yes
15297 fi
15298 fi
15299 $RM conftest*
15300
15301 fi
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15303 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15304
15305 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15306 case $lt_prog_compiler_pic in
15307 "" | " "*) ;;
15308 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15309 esac
15310 else
15311 lt_prog_compiler_pic=
15312 lt_prog_compiler_can_build_shared=no
15313 fi
15314
15315 fi
15316
15317
15318
15319
15320
15321
15322 #
15323 # Check to make sure the static flag actually works.
15324 #
15325 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15327 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15328 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15331 lt_cv_prog_compiler_static_works=no
15332 save_LDFLAGS="$LDFLAGS"
15333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15336 # The linker can only warn and ignore the option if not recognized
15337 # So say no if there are warnings
15338 if test -s conftest.err; then
15339 # Append any errors to the config.log.
15340 cat conftest.err 1>&5
15341 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15343 if diff conftest.exp conftest.er2 >/dev/null; then
15344 lt_cv_prog_compiler_static_works=yes
15345 fi
15346 else
15347 lt_cv_prog_compiler_static_works=yes
15348 fi
15349 fi
15350 $RM -r conftest*
15351 LDFLAGS="$save_LDFLAGS"
15352
15353 fi
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15355 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15356
15357 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15358 :
15359 else
15360 lt_prog_compiler_static=
15361 fi
15362
15363
15364
15365
15366
15367
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15370 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15371 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 lt_cv_prog_compiler_c_o=no
15375 $RM -r conftest 2>/dev/null
15376 mkdir conftest
15377 cd conftest
15378 mkdir out
15379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380
15381 lt_compiler_flag="-o out/conftest2.$ac_objext"
15382 # Insert the option either (1) after the last *FLAGS variable, or
15383 # (2) before a word containing "conftest.", or (3) at the end.
15384 # Note that $ac_compile itself does not contain backslashes and begins
15385 # with a dollar sign (not a hyphen), so the echo should work correctly.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>out/conftest.err)
15392 ac_status=$?
15393 cat out/conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15396 then
15397 # The compiler can only warn and ignore the option if not recognized
15398 # So say no if there are warnings
15399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15402 lt_cv_prog_compiler_c_o=yes
15403 fi
15404 fi
15405 chmod u+w . 2>&5
15406 $RM conftest*
15407 # SGI C++ compiler will create directory out/ii_files/ for
15408 # template instantiation
15409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15410 $RM out/* && rmdir out
15411 cd ..
15412 $RM -r conftest
15413 $RM conftest*
15414
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15417 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15418
15419
15420
15421
15422
15423
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15425 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15426 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 lt_cv_prog_compiler_c_o=no
15430 $RM -r conftest 2>/dev/null
15431 mkdir conftest
15432 cd conftest
15433 mkdir out
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435
15436 lt_compiler_flag="-o out/conftest2.$ac_objext"
15437 # Insert the option either (1) after the last *FLAGS variable, or
15438 # (2) before a word containing "conftest.", or (3) at the end.
15439 # Note that $ac_compile itself does not contain backslashes and begins
15440 # with a dollar sign (not a hyphen), so the echo should work correctly.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>out/conftest.err)
15447 ac_status=$?
15448 cat out/conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15451 then
15452 # The compiler can only warn and ignore the option if not recognized
15453 # So say no if there are warnings
15454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15457 lt_cv_prog_compiler_c_o=yes
15458 fi
15459 fi
15460 chmod u+w . 2>&5
15461 $RM conftest*
15462 # SGI C++ compiler will create directory out/ii_files/ for
15463 # template instantiation
15464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15465 $RM out/* && rmdir out
15466 cd ..
15467 $RM -r conftest
15468 $RM conftest*
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15472 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15473
15474
15475
15476
15477 hard_links="nottested"
15478 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15479 # do not overwrite the value of need_locks provided by the user
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15481 $as_echo_n "checking if we can lock with hard links... " >&6; }
15482 hard_links=yes
15483 $RM conftest*
15484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 touch conftest.a
15486 ln conftest.a conftest.b 2>&5 || hard_links=no
15487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15489 $as_echo "$hard_links" >&6; }
15490 if test "$hard_links" = no; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15492 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15493 need_locks=warn
15494 fi
15495 else
15496 need_locks=no
15497 fi
15498
15499
15500
15501
15502
15503
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15505 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15506
15507 runpath_var=
15508 allow_undefined_flag=
15509 always_export_symbols=no
15510 archive_cmds=
15511 archive_expsym_cmds=
15512 compiler_needs_object=no
15513 enable_shared_with_static_runtimes=no
15514 export_dynamic_flag_spec=
15515 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15516 hardcode_automatic=no
15517 hardcode_direct=no
15518 hardcode_direct_absolute=no
15519 hardcode_libdir_flag_spec=
15520 hardcode_libdir_flag_spec_ld=
15521 hardcode_libdir_separator=
15522 hardcode_minus_L=no
15523 hardcode_shlibpath_var=unsupported
15524 inherit_rpath=no
15525 link_all_deplibs=unknown
15526 module_cmds=
15527 module_expsym_cmds=
15528 old_archive_from_new_cmds=
15529 old_archive_from_expsyms_cmds=
15530 thread_safe_flag_spec=
15531 whole_archive_flag_spec=
15532 # include_expsyms should be a list of space-separated symbols to be *always*
15533 # included in the symbol list
15534 include_expsyms=
15535 # exclude_expsyms can be an extended regexp of symbols to exclude
15536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15538 # as well as any symbol that contains `d'.
15539 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15541 # platforms (ab)use it in PIC code, but their linkers get confused if
15542 # the symbol is explicitly referenced. Since portable code cannot
15543 # rely on this symbol name, it's probably fine to never include it in
15544 # preloaded symbol tables.
15545 # Exclude shared library initialization/finalization symbols.
15546 extract_expsyms_cmds=
15547
15548 case $host_os in
15549 cygwin* | mingw* | pw32* | cegcc*)
15550 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15551 # When not using gcc, we currently assume that we are using
15552 # Microsoft Visual C++.
15553 if test "$GCC" != yes; then
15554 with_gnu_ld=no
15555 fi
15556 ;;
15557 interix*)
15558 # we just hope/assume this is gcc and not c89 (= MSVC++)
15559 with_gnu_ld=yes
15560 ;;
15561 openbsd*)
15562 with_gnu_ld=no
15563 ;;
15564 esac
15565
15566 ld_shlibs=yes
15567
15568 # On some targets, GNU ld is compatible enough with the native linker
15569 # that we're better off using the native interface for both.
15570 lt_use_gnu_ld_interface=no
15571 if test "$with_gnu_ld" = yes; then
15572 case $host_os in
15573 aix*)
15574 # The AIX port of GNU ld has always aspired to compatibility
15575 # with the native linker. However, as the warning in the GNU ld
15576 # block says, versions before 2.19.5* couldn't really create working
15577 # shared libraries, regardless of the interface used.
15578 case `$LD -v 2>&1` in
15579 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15580 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15581 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15582 *)
15583 lt_use_gnu_ld_interface=yes
15584 ;;
15585 esac
15586 ;;
15587 *)
15588 lt_use_gnu_ld_interface=yes
15589 ;;
15590 esac
15591 fi
15592
15593 if test "$lt_use_gnu_ld_interface" = yes; then
15594 # If archive_cmds runs LD, not CC, wlarc should be empty
15595 wlarc='${wl}'
15596
15597 # Set some defaults for GNU ld with shared library support. These
15598 # are reset later if shared libraries are not supported. Putting them
15599 # here allows them to be overridden if necessary.
15600 runpath_var=LD_RUN_PATH
15601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15602 export_dynamic_flag_spec='${wl}--export-dynamic'
15603 # ancient GNU ld didn't support --whole-archive et. al.
15604 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15605 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15606 else
15607 whole_archive_flag_spec=
15608 fi
15609 supports_anon_versioning=no
15610 case `$LD -v 2>&1` in
15611 *GNU\ gold*) supports_anon_versioning=yes ;;
15612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15615 *\ 2.11.*) ;; # other 2.11 versions
15616 *) supports_anon_versioning=yes ;;
15617 esac
15618
15619 # See if GNU ld supports shared libraries.
15620 case $host_os in
15621 aix[3-9]*)
15622 # On AIX/PPC, the GNU linker is very broken
15623 if test "$host_cpu" != ia64; then
15624 ld_shlibs=no
15625 cat <<_LT_EOF 1>&2
15626
15627 *** Warning: the GNU linker, at least up to release 2.19, is reported
15628 *** to be unable to reliably create shared libraries on AIX.
15629 *** Therefore, libtool is disabling shared libraries support. If you
15630 *** really care for shared libraries, you may want to install binutils
15631 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15632 *** You will then need to restart the configuration process.
15633
15634 _LT_EOF
15635 fi
15636 ;;
15637
15638 amigaos*)
15639 case $host_cpu in
15640 powerpc)
15641 # see comment about AmigaOS4 .so support
15642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15643 archive_expsym_cmds=''
15644 ;;
15645 m68k)
15646 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)'
15647 hardcode_libdir_flag_spec='-L$libdir'
15648 hardcode_minus_L=yes
15649 ;;
15650 esac
15651 ;;
15652
15653 beos*)
15654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15655 allow_undefined_flag=unsupported
15656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15657 # support --undefined. This deserves some investigation. FIXME
15658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659 else
15660 ld_shlibs=no
15661 fi
15662 ;;
15663
15664 cygwin* | mingw* | pw32* | cegcc*)
15665 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15666 # as there is no search path for DLLs.
15667 hardcode_libdir_flag_spec='-L$libdir'
15668 export_dynamic_flag_spec='${wl}--export-all-symbols'
15669 allow_undefined_flag=unsupported
15670 always_export_symbols=no
15671 enable_shared_with_static_runtimes=yes
15672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15673
15674 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15676 # If the export-symbols file already is a .def file (1st line
15677 # is EXPORTS), use it as is; otherwise, prepend...
15678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15679 cp $export_symbols $output_objdir/$soname.def;
15680 else
15681 echo EXPORTS > $output_objdir/$soname.def;
15682 cat $export_symbols >> $output_objdir/$soname.def;
15683 fi~
15684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15685 else
15686 ld_shlibs=no
15687 fi
15688 ;;
15689
15690 haiku*)
15691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692 link_all_deplibs=yes
15693 ;;
15694
15695 interix[3-9]*)
15696 hardcode_direct=no
15697 hardcode_shlibpath_var=no
15698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15699 export_dynamic_flag_spec='${wl}-E'
15700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15701 # Instead, shared libraries are loaded at an image base (0x10000000 by
15702 # default) and relocated if they conflict, which is a slow very memory
15703 # consuming and fragmenting process. To avoid this, we pick a random,
15704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15707 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'
15708 ;;
15709
15710 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15711 tmp_diet=no
15712 if test "$host_os" = linux-dietlibc; then
15713 case $cc_basename in
15714 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15715 esac
15716 fi
15717 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15718 && test "$tmp_diet" = no
15719 then
15720 tmp_addflag=
15721 tmp_sharedflag='-shared'
15722 case $cc_basename,$host_cpu in
15723 pgcc*) # Portland Group C compiler
15724 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'
15725 tmp_addflag=' $pic_flag'
15726 ;;
15727 pgf77* | pgf90* | pgf95* | pgfortran*)
15728 # Portland Group f77 and f90 compilers
15729 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'
15730 tmp_addflag=' $pic_flag -Mnomain' ;;
15731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15732 tmp_addflag=' -i_dynamic' ;;
15733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15734 tmp_addflag=' -i_dynamic -nofor_main' ;;
15735 ifc* | ifort*) # Intel Fortran compiler
15736 tmp_addflag=' -nofor_main' ;;
15737 lf95*) # Lahey Fortran 8.1
15738 whole_archive_flag_spec=
15739 tmp_sharedflag='--shared' ;;
15740 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15741 tmp_sharedflag='-qmkshrobj'
15742 tmp_addflag= ;;
15743 nvcc*) # Cuda Compiler Driver 2.2
15744 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'
15745 compiler_needs_object=yes
15746 ;;
15747 esac
15748 case `$CC -V 2>&1 | sed 5q` in
15749 *Sun\ C*) # Sun C 5.9
15750 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'
15751 compiler_needs_object=yes
15752 tmp_sharedflag='-G' ;;
15753 *Sun\ F*) # Sun Fortran 8.3
15754 tmp_sharedflag='-G' ;;
15755 esac
15756 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757
15758 if test "x$supports_anon_versioning" = xyes; then
15759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15761 echo "local: *; };" >> $output_objdir/$libname.ver~
15762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15763 fi
15764
15765 case $cc_basename in
15766 xlf* | bgf* | bgxlf* | mpixlf*)
15767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15769 hardcode_libdir_flag_spec=
15770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15771 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15772 if test "x$supports_anon_versioning" = xyes; then
15773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15775 echo "local: *; };" >> $output_objdir/$libname.ver~
15776 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15777 fi
15778 ;;
15779 esac
15780 else
15781 ld_shlibs=no
15782 fi
15783 ;;
15784
15785 netbsd*)
15786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15787 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15788 wlarc=
15789 else
15790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792 fi
15793 ;;
15794
15795 solaris*)
15796 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15797 ld_shlibs=no
15798 cat <<_LT_EOF 1>&2
15799
15800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15801 *** create shared libraries on Solaris systems. Therefore, libtool
15802 *** is disabling shared libraries support. We urge you to upgrade GNU
15803 *** binutils to release 2.9.1 or newer. Another option is to modify
15804 *** your PATH or compiler configuration so that the native linker is
15805 *** used, and then restart.
15806
15807 _LT_EOF
15808 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15811 else
15812 ld_shlibs=no
15813 fi
15814 ;;
15815
15816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15817 case `$LD -v 2>&1` in
15818 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15819 ld_shlibs=no
15820 cat <<_LT_EOF 1>&2
15821
15822 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15823 *** reliably create shared libraries on SCO systems. Therefore, libtool
15824 *** is disabling shared libraries support. We urge you to upgrade GNU
15825 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15826 *** your PATH or compiler configuration so that the native linker is
15827 *** used, and then restart.
15828
15829 _LT_EOF
15830 ;;
15831 *)
15832 # For security reasons, it is highly recommended that you always
15833 # use absolute paths for naming shared libraries, and exclude the
15834 # DT_RUNPATH tag from executables and libraries. But doing so
15835 # requires that you compile everything twice, which is a pain.
15836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15840 else
15841 ld_shlibs=no
15842 fi
15843 ;;
15844 esac
15845 ;;
15846
15847 sunos4*)
15848 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15849 wlarc=
15850 hardcode_direct=yes
15851 hardcode_shlibpath_var=no
15852 ;;
15853
15854 *)
15855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 else
15859 ld_shlibs=no
15860 fi
15861 ;;
15862 esac
15863
15864 if test "$ld_shlibs" = no; then
15865 runpath_var=
15866 hardcode_libdir_flag_spec=
15867 export_dynamic_flag_spec=
15868 whole_archive_flag_spec=
15869 fi
15870 else
15871 # PORTME fill in a description of your system's linker (not GNU ld)
15872 case $host_os in
15873 aix3*)
15874 allow_undefined_flag=unsupported
15875 always_export_symbols=yes
15876 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'
15877 # Note: this linker hardcodes the directories in LIBPATH if there
15878 # are no directories specified by -L.
15879 hardcode_minus_L=yes
15880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15881 # Neither direct hardcoding nor static linking is supported with a
15882 # broken collect2.
15883 hardcode_direct=unsupported
15884 fi
15885 ;;
15886
15887 aix[4-9]*)
15888 if test "$host_cpu" = ia64; then
15889 # On IA64, the linker does run time linking by default, so we don't
15890 # have to do anything special.
15891 aix_use_runtimelinking=no
15892 exp_sym_flag='-Bexport'
15893 no_entry_flag=""
15894 else
15895 # If we're using GNU nm, then we don't want the "-C" option.
15896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15897 # Also, AIX nm treats weak defined symbols like other global
15898 # defined symbols, whereas GNU nm marks them as "W".
15899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15900 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'
15901 else
15902 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15903 fi
15904 aix_use_runtimelinking=no
15905
15906 # Test if we are trying to use run time linking or normal
15907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15908 # need to do runtime linking.
15909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15910 for ld_flag in $LDFLAGS; do
15911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15912 aix_use_runtimelinking=yes
15913 break
15914 fi
15915 done
15916 ;;
15917 esac
15918
15919 exp_sym_flag='-bexport'
15920 no_entry_flag='-bnoentry'
15921 fi
15922
15923 # When large executables or shared objects are built, AIX ld can
15924 # have problems creating the table of contents. If linking a library
15925 # or program results in "error TOC overflow" add -mminimal-toc to
15926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15928
15929 archive_cmds=''
15930 hardcode_direct=yes
15931 hardcode_direct_absolute=yes
15932 hardcode_libdir_separator=':'
15933 link_all_deplibs=yes
15934 file_list_spec='${wl}-f,'
15935
15936 if test "$GCC" = yes; then
15937 case $host_os in aix4.[012]|aix4.[012].*)
15938 # We only want to do this on AIX 4.2 and lower, the check
15939 # below for broken collect2 doesn't work under 4.3+
15940 collect2name=`${CC} -print-prog-name=collect2`
15941 if test -f "$collect2name" &&
15942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15943 then
15944 # We have reworked collect2
15945 :
15946 else
15947 # We have old collect2
15948 hardcode_direct=unsupported
15949 # It fails to find uninstalled libraries when the uninstalled
15950 # path is not listed in the libpath. Setting hardcode_minus_L
15951 # to unsupported forces relinking
15952 hardcode_minus_L=yes
15953 hardcode_libdir_flag_spec='-L$libdir'
15954 hardcode_libdir_separator=
15955 fi
15956 ;;
15957 esac
15958 shared_flag='-shared'
15959 if test "$aix_use_runtimelinking" = yes; then
15960 shared_flag="$shared_flag "'${wl}-G'
15961 fi
15962 else
15963 # not using gcc
15964 if test "$host_cpu" = ia64; then
15965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15966 # chokes on -Wl,-G. The following line is correct:
15967 shared_flag='-G'
15968 else
15969 if test "$aix_use_runtimelinking" = yes; then
15970 shared_flag='${wl}-G'
15971 else
15972 shared_flag='${wl}-bM:SRE'
15973 fi
15974 fi
15975 fi
15976
15977 export_dynamic_flag_spec='${wl}-bexpall'
15978 # It seems that -bexpall does not export symbols beginning with
15979 # underscore (_), so it is better to generate a list of symbols to export.
15980 always_export_symbols=yes
15981 if test "$aix_use_runtimelinking" = yes; then
15982 # Warning - without using the other runtime loading flags (-brtl),
15983 # -berok will link without error, but may produce a broken library.
15984 allow_undefined_flag='-berok'
15985 # Determine the default libpath from the value encoded in an
15986 # empty executable.
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989
15990 int
15991 main ()
15992 {
15993
15994 ;
15995 return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"; then :
15999
16000 lt_aix_libpath_sed='
16001 /Import File Strings/,/^$/ {
16002 /^0/ {
16003 s/^0 *\(.*\)$/\1/
16004 p
16005 }
16006 }'
16007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16008 # Check for a 64-bit object if we didn't find anything.
16009 if test -z "$aix_libpath"; then
16010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16011 fi
16012 fi
16013 rm -f core conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
16015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16016
16017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16018 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"
16019 else
16020 if test "$host_cpu" = ia64; then
16021 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16022 allow_undefined_flag="-z nodefs"
16023 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"
16024 else
16025 # Determine the default libpath from the value encoded in an
16026 # empty executable.
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029
16030 int
16031 main ()
16032 {
16033
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039
16040 lt_aix_libpath_sed='
16041 /Import File Strings/,/^$/ {
16042 /^0/ {
16043 s/^0 *\(.*\)$/\1/
16044 p
16045 }
16046 }'
16047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16048 # Check for a 64-bit object if we didn't find anything.
16049 if test -z "$aix_libpath"; then
16050 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16051 fi
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16056
16057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16058 # Warning - without using the other run time loading flags,
16059 # -berok will link without error, but may produce a broken library.
16060 no_undefined_flag=' ${wl}-bernotok'
16061 allow_undefined_flag=' ${wl}-berok'
16062 if test "$with_gnu_ld" = yes; then
16063 # We only use this code for GNU lds that support --whole-archive.
16064 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16065 else
16066 # Exported symbols can be pulled into shared objects from archives
16067 whole_archive_flag_spec='$convenience'
16068 fi
16069 archive_cmds_need_lc=yes
16070 # This is similar to how AIX traditionally builds its shared libraries.
16071 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'
16072 fi
16073 fi
16074 ;;
16075
16076 amigaos*)
16077 case $host_cpu in
16078 powerpc)
16079 # see comment about AmigaOS4 .so support
16080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16081 archive_expsym_cmds=''
16082 ;;
16083 m68k)
16084 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)'
16085 hardcode_libdir_flag_spec='-L$libdir'
16086 hardcode_minus_L=yes
16087 ;;
16088 esac
16089 ;;
16090
16091 bsdi[45]*)
16092 export_dynamic_flag_spec=-rdynamic
16093 ;;
16094
16095 cygwin* | mingw* | pw32* | cegcc*)
16096 # When not using gcc, we currently assume that we are using
16097 # Microsoft Visual C++.
16098 # hardcode_libdir_flag_spec is actually meaningless, as there is
16099 # no search path for DLLs.
16100 hardcode_libdir_flag_spec=' '
16101 allow_undefined_flag=unsupported
16102 # Tell ltmain to make .lib files, not .a files.
16103 libext=lib
16104 # Tell ltmain to make .dll files, not .so files.
16105 shrext_cmds=".dll"
16106 # FIXME: Setting linknames here is a bad hack.
16107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16108 # The linker will automatically build a .lib file if we build a DLL.
16109 old_archive_from_new_cmds='true'
16110 # FIXME: Should let the user specify the lib program.
16111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16112 fix_srcfile_path='`cygpath -w "$srcfile"`'
16113 enable_shared_with_static_runtimes=yes
16114 ;;
16115
16116 darwin* | rhapsody*)
16117
16118
16119 archive_cmds_need_lc=no
16120 hardcode_direct=no
16121 hardcode_automatic=yes
16122 hardcode_shlibpath_var=unsupported
16123 if test "$lt_cv_ld_force_load" = "yes"; then
16124 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\"`'
16125 else
16126 whole_archive_flag_spec=''
16127 fi
16128 link_all_deplibs=yes
16129 allow_undefined_flag="$_lt_dar_allow_undefined"
16130 case $cc_basename in
16131 ifort*) _lt_dar_can_shared=yes ;;
16132 *) _lt_dar_can_shared=$GCC ;;
16133 esac
16134 if test "$_lt_dar_can_shared" = "yes"; then
16135 output_verbose_link_cmd=func_echo_all
16136 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16137 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16138 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}"
16139 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}"
16140
16141 else
16142 ld_shlibs=no
16143 fi
16144
16145 ;;
16146
16147 dgux*)
16148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16149 hardcode_libdir_flag_spec='-L$libdir'
16150 hardcode_shlibpath_var=no
16151 ;;
16152
16153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16154 # support. Future versions do this automatically, but an explicit c++rt0.o
16155 # does not break anything, and helps significantly (at the cost of a little
16156 # extra space).
16157 freebsd2.2*)
16158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16159 hardcode_libdir_flag_spec='-R$libdir'
16160 hardcode_direct=yes
16161 hardcode_shlibpath_var=no
16162 ;;
16163
16164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16165 freebsd2.*)
16166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_direct=yes
16168 hardcode_minus_L=yes
16169 hardcode_shlibpath_var=no
16170 ;;
16171
16172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16173 freebsd* | dragonfly*)
16174 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16175 hardcode_libdir_flag_spec='-R$libdir'
16176 hardcode_direct=yes
16177 hardcode_shlibpath_var=no
16178 ;;
16179
16180 hpux9*)
16181 if test "$GCC" = yes; then
16182 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'
16183 else
16184 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'
16185 fi
16186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16187 hardcode_libdir_separator=:
16188 hardcode_direct=yes
16189
16190 # hardcode_minus_L: Not really in the search PATH,
16191 # but as the default location of the library.
16192 hardcode_minus_L=yes
16193 export_dynamic_flag_spec='${wl}-E'
16194 ;;
16195
16196 hpux10*)
16197 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16199 else
16200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16201 fi
16202 if test "$with_gnu_ld" = no; then
16203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16204 hardcode_libdir_flag_spec_ld='+b $libdir'
16205 hardcode_libdir_separator=:
16206 hardcode_direct=yes
16207 hardcode_direct_absolute=yes
16208 export_dynamic_flag_spec='${wl}-E'
16209 # hardcode_minus_L: Not really in the search PATH,
16210 # but as the default location of the library.
16211 hardcode_minus_L=yes
16212 fi
16213 ;;
16214
16215 hpux11*)
16216 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16217 case $host_cpu in
16218 hppa*64*)
16219 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 ;;
16221 ia64*)
16222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16223 ;;
16224 *)
16225 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16226 ;;
16227 esac
16228 else
16229 case $host_cpu in
16230 hppa*64*)
16231 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 ;;
16233 ia64*)
16234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16235 ;;
16236 *)
16237
16238 # Older versions of the 11.00 compiler do not understand -b yet
16239 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16241 $as_echo_n "checking if $CC understands -b... " >&6; }
16242 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245 lt_cv_prog_compiler__b=no
16246 save_LDFLAGS="$LDFLAGS"
16247 LDFLAGS="$LDFLAGS -b"
16248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16250 # The linker can only warn and ignore the option if not recognized
16251 # So say no if there are warnings
16252 if test -s conftest.err; then
16253 # Append any errors to the config.log.
16254 cat conftest.err 1>&5
16255 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16257 if diff conftest.exp conftest.er2 >/dev/null; then
16258 lt_cv_prog_compiler__b=yes
16259 fi
16260 else
16261 lt_cv_prog_compiler__b=yes
16262 fi
16263 fi
16264 $RM -r conftest*
16265 LDFLAGS="$save_LDFLAGS"
16266
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16269 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16270
16271 if test x"$lt_cv_prog_compiler__b" = xyes; then
16272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16273 else
16274 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16275 fi
16276
16277 ;;
16278 esac
16279 fi
16280 if test "$with_gnu_ld" = no; then
16281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16282 hardcode_libdir_separator=:
16283
16284 case $host_cpu in
16285 hppa*64*|ia64*)
16286 hardcode_direct=no
16287 hardcode_shlibpath_var=no
16288 ;;
16289 *)
16290 hardcode_direct=yes
16291 hardcode_direct_absolute=yes
16292 export_dynamic_flag_spec='${wl}-E'
16293
16294 # hardcode_minus_L: Not really in the search PATH,
16295 # but as the default location of the library.
16296 hardcode_minus_L=yes
16297 ;;
16298 esac
16299 fi
16300 ;;
16301
16302 irix5* | irix6* | nonstopux*)
16303 if test "$GCC" = yes; then
16304 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'
16305 # Try to use the -exported_symbol ld option, if it does not
16306 # work, assume that -exports_file does not work either and
16307 # implicitly export all symbols.
16308 save_LDFLAGS="$LDFLAGS"
16309 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 int foo(void) {}
16313 _ACEOF
16314 if ac_fn_c_try_link "$LINENO"; then :
16315 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'
16316
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16320 LDFLAGS="$save_LDFLAGS"
16321 else
16322 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'
16323 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'
16324 fi
16325 archive_cmds_need_lc='no'
16326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16327 hardcode_libdir_separator=:
16328 inherit_rpath=yes
16329 link_all_deplibs=yes
16330 ;;
16331
16332 netbsd*)
16333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16335 else
16336 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16337 fi
16338 hardcode_libdir_flag_spec='-R$libdir'
16339 hardcode_direct=yes
16340 hardcode_shlibpath_var=no
16341 ;;
16342
16343 newsos6)
16344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16345 hardcode_direct=yes
16346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16347 hardcode_libdir_separator=:
16348 hardcode_shlibpath_var=no
16349 ;;
16350
16351 *nto* | *qnx*)
16352 ;;
16353
16354 openbsd*)
16355 if test -f /usr/libexec/ld.so; then
16356 hardcode_direct=yes
16357 hardcode_shlibpath_var=no
16358 hardcode_direct_absolute=yes
16359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16361 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16363 export_dynamic_flag_spec='${wl}-E'
16364 else
16365 case $host_os in
16366 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_libdir_flag_spec='-R$libdir'
16369 ;;
16370 *)
16371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16373 ;;
16374 esac
16375 fi
16376 else
16377 ld_shlibs=no
16378 fi
16379 ;;
16380
16381 os2*)
16382 hardcode_libdir_flag_spec='-L$libdir'
16383 hardcode_minus_L=yes
16384 allow_undefined_flag=unsupported
16385 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'
16386 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16387 ;;
16388
16389 osf3*)
16390 if test "$GCC" = yes; then
16391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16392 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'
16393 else
16394 allow_undefined_flag=' -expect_unresolved \*'
16395 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'
16396 fi
16397 archive_cmds_need_lc='no'
16398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16399 hardcode_libdir_separator=:
16400 ;;
16401
16402 osf4* | osf5*) # as osf3* with the addition of -msym flag
16403 if test "$GCC" = yes; then
16404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16405 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'
16406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16407 else
16408 allow_undefined_flag=' -expect_unresolved \*'
16409 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'
16410 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~
16411 $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'
16412
16413 # Both c and cxx compiler support -rpath directly
16414 hardcode_libdir_flag_spec='-rpath $libdir'
16415 fi
16416 archive_cmds_need_lc='no'
16417 hardcode_libdir_separator=:
16418 ;;
16419
16420 solaris*)
16421 no_undefined_flag=' -z defs'
16422 if test "$GCC" = yes; then
16423 wlarc='${wl}'
16424 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16426 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16427 else
16428 case `$CC -V 2>&1` in
16429 *"Compilers 5.0"*)
16430 wlarc=''
16431 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16434 ;;
16435 *)
16436 wlarc='${wl}'
16437 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16439 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16440 ;;
16441 esac
16442 fi
16443 hardcode_libdir_flag_spec='-R$libdir'
16444 hardcode_shlibpath_var=no
16445 case $host_os in
16446 solaris2.[0-5] | solaris2.[0-5].*) ;;
16447 *)
16448 # The compiler driver will combine and reorder linker options,
16449 # but understands `-z linker_flag'. GCC discards it without `$wl',
16450 # but is careful enough not to reorder.
16451 # Supported since Solaris 2.6 (maybe 2.5.1?)
16452 if test "$GCC" = yes; then
16453 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16454 else
16455 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16456 fi
16457 ;;
16458 esac
16459 link_all_deplibs=yes
16460 ;;
16461
16462 sunos4*)
16463 if test "x$host_vendor" = xsequent; then
16464 # Use $CC to link under sequent, because it throws in some extra .o
16465 # files that make .init and .fini sections work.
16466 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16467 else
16468 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16469 fi
16470 hardcode_libdir_flag_spec='-L$libdir'
16471 hardcode_direct=yes
16472 hardcode_minus_L=yes
16473 hardcode_shlibpath_var=no
16474 ;;
16475
16476 sysv4)
16477 case $host_vendor in
16478 sni)
16479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct=yes # is this really true???
16481 ;;
16482 siemens)
16483 ## LD is ld it makes a PLAMLIB
16484 ## CC just makes a GrossModule.
16485 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16486 reload_cmds='$CC -r -o $output$reload_objs'
16487 hardcode_direct=no
16488 ;;
16489 motorola)
16490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16492 ;;
16493 esac
16494 runpath_var='LD_RUN_PATH'
16495 hardcode_shlibpath_var=no
16496 ;;
16497
16498 sysv4.3*)
16499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_shlibpath_var=no
16501 export_dynamic_flag_spec='-Bexport'
16502 ;;
16503
16504 sysv4*MP*)
16505 if test -d /usr/nec; then
16506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507 hardcode_shlibpath_var=no
16508 runpath_var=LD_RUN_PATH
16509 hardcode_runpath_var=yes
16510 ld_shlibs=yes
16511 fi
16512 ;;
16513
16514 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16515 no_undefined_flag='${wl}-z,text'
16516 archive_cmds_need_lc=no
16517 hardcode_shlibpath_var=no
16518 runpath_var='LD_RUN_PATH'
16519
16520 if test "$GCC" = yes; then
16521 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 else
16524 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 fi
16527 ;;
16528
16529 sysv5* | sco3.2v5* | sco5v6*)
16530 # Note: We can NOT use -z defs as we might desire, because we do not
16531 # link with -lc, and that would cause any symbols used from libc to
16532 # always be unresolved, which means just about no library would
16533 # ever link correctly. If we're not using GNU ld we use -z text
16534 # though, which does catch some bad symbols but isn't as heavy-handed
16535 # as -z defs.
16536 no_undefined_flag='${wl}-z,text'
16537 allow_undefined_flag='${wl}-z,nodefs'
16538 archive_cmds_need_lc=no
16539 hardcode_shlibpath_var=no
16540 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16541 hardcode_libdir_separator=':'
16542 link_all_deplibs=yes
16543 export_dynamic_flag_spec='${wl}-Bexport'
16544 runpath_var='LD_RUN_PATH'
16545
16546 if test "$GCC" = yes; then
16547 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549 else
16550 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 fi
16553 ;;
16554
16555 uts4*)
16556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_libdir_flag_spec='-L$libdir'
16558 hardcode_shlibpath_var=no
16559 ;;
16560
16561 *)
16562 ld_shlibs=no
16563 ;;
16564 esac
16565
16566 if test x$host_vendor = xsni; then
16567 case $host in
16568 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16569 export_dynamic_flag_spec='${wl}-Blargedynsym'
16570 ;;
16571 esac
16572 fi
16573 fi
16574
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16576 $as_echo "$ld_shlibs" >&6; }
16577 test "$ld_shlibs" = no && can_build_shared=no
16578
16579 with_gnu_ld=$with_gnu_ld
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595 #
16596 # Do we need to explicitly link libc?
16597 #
16598 case "x$archive_cmds_need_lc" in
16599 x|xyes)
16600 # Assume -lc should be added
16601 archive_cmds_need_lc=yes
16602
16603 if test "$enable_shared" = yes && test "$GCC" = yes; then
16604 case $archive_cmds in
16605 *'~'*)
16606 # FIXME: we may have to deal with multi-command sequences.
16607 ;;
16608 '$CC '*)
16609 # Test whether the compiler implicitly links with -lc since on some
16610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16611 # to ld, don't add -lc before -lgcc.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16614 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 $RM conftest*
16618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16619
16620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16621 (eval $ac_compile) 2>&5
16622 ac_status=$?
16623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16624 test $ac_status = 0; } 2>conftest.err; then
16625 soname=conftest
16626 lib=conftest
16627 libobjs=conftest.$ac_objext
16628 deplibs=
16629 wl=$lt_prog_compiler_wl
16630 pic_flag=$lt_prog_compiler_pic
16631 compiler_flags=-v
16632 linker_flags=-v
16633 verstring=
16634 output_objdir=.
16635 libname=conftest
16636 lt_save_allow_undefined_flag=$allow_undefined_flag
16637 allow_undefined_flag=
16638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16639 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16640 ac_status=$?
16641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16642 test $ac_status = 0; }
16643 then
16644 lt_cv_archive_cmds_need_lc=no
16645 else
16646 lt_cv_archive_cmds_need_lc=yes
16647 fi
16648 allow_undefined_flag=$lt_save_allow_undefined_flag
16649 else
16650 cat conftest.err 1>&5
16651 fi
16652 $RM conftest*
16653
16654 fi
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16656 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16657 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16658 ;;
16659 esac
16660 fi
16661 ;;
16662 esac
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16821 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16822
16823 if test "$GCC" = yes; then
16824 case $host_os in
16825 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16826 *) lt_awk_arg="/^libraries:/" ;;
16827 esac
16828 case $host_os in
16829 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16830 *) lt_sed_strip_eq="s,=/,/,g" ;;
16831 esac
16832 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16833 case $lt_search_path_spec in
16834 *\;*)
16835 # if the path contains ";" then we assume it to be the separator
16836 # otherwise default to the standard path separator (i.e. ":") - it is
16837 # assumed that no part of a normal pathname contains ";" but that should
16838 # okay in the real world where ";" in dirpaths is itself problematic.
16839 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16840 ;;
16841 *)
16842 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16843 ;;
16844 esac
16845 # Ok, now we have the path, separated by spaces, we can step through it
16846 # and add multilib dir if necessary.
16847 lt_tmp_lt_search_path_spec=
16848 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16849 for lt_sys_path in $lt_search_path_spec; do
16850 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16851 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16852 else
16853 test -d "$lt_sys_path" && \
16854 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16855 fi
16856 done
16857 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16858 BEGIN {RS=" "; FS="/|\n";} {
16859 lt_foo="";
16860 lt_count=0;
16861 for (lt_i = NF; lt_i > 0; lt_i--) {
16862 if ($lt_i != "" && $lt_i != ".") {
16863 if ($lt_i == "..") {
16864 lt_count++;
16865 } else {
16866 if (lt_count == 0) {
16867 lt_foo="/" $lt_i lt_foo;
16868 } else {
16869 lt_count--;
16870 }
16871 }
16872 }
16873 }
16874 if (lt_foo != "") { lt_freq[lt_foo]++; }
16875 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16876 }'`
16877 # AWK program above erroneously prepends '/' to C:/dos/paths
16878 # for these hosts.
16879 case $host_os in
16880 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16881 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16882 esac
16883 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16884 else
16885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16886 fi
16887 library_names_spec=
16888 libname_spec='lib$name'
16889 soname_spec=
16890 shrext_cmds=".so"
16891 postinstall_cmds=
16892 postuninstall_cmds=
16893 finish_cmds=
16894 finish_eval=
16895 shlibpath_var=
16896 shlibpath_overrides_runpath=unknown
16897 version_type=none
16898 dynamic_linker="$host_os ld.so"
16899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16900 need_lib_prefix=unknown
16901 hardcode_into_libs=no
16902
16903 # when you set need_version to no, make sure it does not cause -set_version
16904 # flags to be left without arguments
16905 need_version=unknown
16906
16907 case $host_os in
16908 aix3*)
16909 version_type=linux
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16911 shlibpath_var=LIBPATH
16912
16913 # AIX 3 has no versioning support, so we append a major version to the name.
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 ;;
16916
16917 aix[4-9]*)
16918 version_type=linux
16919 need_lib_prefix=no
16920 need_version=no
16921 hardcode_into_libs=yes
16922 if test "$host_cpu" = ia64; then
16923 # AIX 5 supports IA64
16924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 else
16927 # With GCC up to 2.95.x, collect2 would create an import file
16928 # for dependence libraries. The import file would start with
16929 # the line `#! .'. This would cause the generated library to
16930 # depend on `.', always an invalid library. This was fixed in
16931 # development snapshots of GCC prior to 3.0.
16932 case $host_os in
16933 aix4 | aix4.[01] | aix4.[01].*)
16934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16935 echo ' yes '
16936 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16937 :
16938 else
16939 can_build_shared=no
16940 fi
16941 ;;
16942 esac
16943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16944 # soname into executable. Probably we can add versioning support to
16945 # collect2, so additional links can be useful in future.
16946 if test "$aix_use_runtimelinking" = yes; then
16947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16948 # instead of lib<name>.a to let people know that these are not
16949 # typical AIX shared libraries.
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951 else
16952 # We preserve .a as extension for shared libraries through AIX4.2
16953 # and later when we are not doing run time linking.
16954 library_names_spec='${libname}${release}.a $libname.a'
16955 soname_spec='${libname}${release}${shared_ext}$major'
16956 fi
16957 shlibpath_var=LIBPATH
16958 fi
16959 ;;
16960
16961 amigaos*)
16962 case $host_cpu in
16963 powerpc)
16964 # Since July 2007 AmigaOS4 officially supports .so libraries.
16965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 ;;
16968 m68k)
16969 library_names_spec='$libname.ixlibrary $libname.a'
16970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16971 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'
16972 ;;
16973 esac
16974 ;;
16975
16976 beos*)
16977 library_names_spec='${libname}${shared_ext}'
16978 dynamic_linker="$host_os ld.so"
16979 shlibpath_var=LIBRARY_PATH
16980 ;;
16981
16982 bsdi[45]*)
16983 version_type=linux
16984 need_version=no
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16991 # the default ld.so.conf also contains /usr/contrib/lib and
16992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16993 # libtool to hard-code these into programs
16994 ;;
16995
16996 cygwin* | mingw* | pw32* | cegcc*)
16997 version_type=windows
16998 shrext_cmds=".dll"
16999 need_version=no
17000 need_lib_prefix=no
17001
17002 case $GCC,$host_os in
17003 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17004 library_names_spec='$libname.dll.a'
17005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17006 postinstall_cmds='base_file=`basename \${file}`~
17007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17008 dldir=$destdir/`dirname \$dlpath`~
17009 test -d \$dldir || mkdir -p \$dldir~
17010 $install_prog $dir/$dlname \$dldir/$dlname~
17011 chmod a+x \$dldir/$dlname~
17012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17014 fi'
17015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17016 dlpath=$dir/\$dldll~
17017 $RM \$dlpath'
17018 shlibpath_overrides_runpath=yes
17019
17020 case $host_os in
17021 cygwin*)
17022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17024
17025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17026 ;;
17027 mingw* | cegcc*)
17028 # MinGW DLLs use traditional 'lib' prefix
17029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17030 ;;
17031 pw32*)
17032 # pw32 DLLs use 'pw' prefix rather than 'lib'
17033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034 ;;
17035 esac
17036 ;;
17037
17038 *)
17039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17040 ;;
17041 esac
17042 dynamic_linker='Win32 ld.exe'
17043 # FIXME: first we should search . and the directory the executable is in
17044 shlibpath_var=PATH
17045 ;;
17046
17047 darwin* | rhapsody*)
17048 dynamic_linker="$host_os dyld"
17049 version_type=darwin
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17053 soname_spec='${libname}${release}${major}$shared_ext'
17054 shlibpath_overrides_runpath=yes
17055 shlibpath_var=DYLD_LIBRARY_PATH
17056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17057
17058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17060 ;;
17061
17062 dgux*)
17063 version_type=linux
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 ;;
17070
17071 freebsd* | dragonfly*)
17072 # DragonFly does not have aout. When/if they implement a new
17073 # versioning mechanism, adjust this.
17074 if test -x /usr/bin/objformat; then
17075 objformat=`/usr/bin/objformat`
17076 else
17077 case $host_os in
17078 freebsd[23].*) objformat=aout ;;
17079 *) objformat=elf ;;
17080 esac
17081 fi
17082 version_type=freebsd-$objformat
17083 case $version_type in
17084 freebsd-elf*)
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 need_version=no
17087 need_lib_prefix=no
17088 ;;
17089 freebsd-*)
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091 need_version=yes
17092 ;;
17093 esac
17094 shlibpath_var=LD_LIBRARY_PATH
17095 case $host_os in
17096 freebsd2.*)
17097 shlibpath_overrides_runpath=yes
17098 ;;
17099 freebsd3.[01]* | freebsdelf3.[01]*)
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17102 ;;
17103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17105 shlibpath_overrides_runpath=no
17106 hardcode_into_libs=yes
17107 ;;
17108 *) # from 4.6 on, and DragonFly
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 ;;
17112 esac
17113 ;;
17114
17115 gnu*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 hardcode_into_libs=yes
17123 ;;
17124
17125 haiku*)
17126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 dynamic_linker="$host_os runtime_loader"
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 shlibpath_var=LIBRARY_PATH
17133 shlibpath_overrides_runpath=yes
17134 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17135 hardcode_into_libs=yes
17136 ;;
17137
17138 hpux9* | hpux10* | hpux11*)
17139 # Give a soname corresponding to the major version so that dld.sl refuses to
17140 # link against other versions.
17141 version_type=sunos
17142 need_lib_prefix=no
17143 need_version=no
17144 case $host_cpu in
17145 ia64*)
17146 shrext_cmds='.so'
17147 hardcode_into_libs=yes
17148 dynamic_linker="$host_os dld.so"
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17153 if test "X$HPUX_IA64_MODE" = X32; then
17154 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17155 else
17156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17157 fi
17158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159 ;;
17160 hppa*64*)
17161 shrext_cmds='.sl'
17162 hardcode_into_libs=yes
17163 dynamic_linker="$host_os dld.sl"
17164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17170 ;;
17171 *)
17172 shrext_cmds='.sl'
17173 dynamic_linker="$host_os dld.sl"
17174 shlibpath_var=SHLIB_PATH
17175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 ;;
17179 esac
17180 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17181 postinstall_cmds='chmod 555 $lib'
17182 # or fails outright, so override atomically:
17183 install_override_mode=555
17184 ;;
17185
17186 interix[3-9]*)
17187 version_type=linux
17188 need_lib_prefix=no
17189 need_version=no
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=no
17195 hardcode_into_libs=yes
17196 ;;
17197
17198 irix5* | irix6* | nonstopux*)
17199 case $host_os in
17200 nonstopux*) version_type=nonstopux ;;
17201 *)
17202 if test "$lt_cv_prog_gnu_ld" = yes; then
17203 version_type=linux
17204 else
17205 version_type=irix
17206 fi ;;
17207 esac
17208 need_lib_prefix=no
17209 need_version=no
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17212 case $host_os in
17213 irix5* | nonstopux*)
17214 libsuff= shlibsuff=
17215 ;;
17216 *)
17217 case $LD in # libtool.m4 will add one of these switches to LD
17218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17219 libsuff= shlibsuff= libmagic=32-bit;;
17220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17221 libsuff=32 shlibsuff=N32 libmagic=N32;;
17222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17223 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17224 *) libsuff= shlibsuff= libmagic=never-match;;
17225 esac
17226 ;;
17227 esac
17228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17229 shlibpath_overrides_runpath=no
17230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17232 hardcode_into_libs=yes
17233 ;;
17234
17235 # No shared lib support for Linux oldld, aout, or coff.
17236 linux*oldld* | linux*aout* | linux*coff*)
17237 dynamic_linker=no
17238 ;;
17239
17240 # This must be Linux ELF.
17241 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17242 version_type=linux
17243 need_lib_prefix=no
17244 need_version=no
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 shlibpath_overrides_runpath=no
17250
17251 # Some binutils ld are patched to set DT_RUNPATH
17252 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 lt_cv_shlibpath_overrides_runpath=no
17256 save_LDFLAGS=$LDFLAGS
17257 save_libdir=$libdir
17258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17261 /* end confdefs.h. */
17262
17263 int
17264 main ()
17265 {
17266
17267 ;
17268 return 0;
17269 }
17270 _ACEOF
17271 if ac_fn_c_try_link "$LINENO"; then :
17272 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17273 lt_cv_shlibpath_overrides_runpath=yes
17274 fi
17275 fi
17276 rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LDFLAGS=$save_LDFLAGS
17279 libdir=$save_libdir
17280
17281 fi
17282
17283 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17284
17285 # This implies no fast_install, which is unacceptable.
17286 # Some rework will be needed to allow for fast_install
17287 # before this can be enabled.
17288 hardcode_into_libs=yes
17289
17290 # Append ld.so.conf contents to the search path
17291 if test -f /etc/ld.so.conf; then
17292 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' ' '`
17293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17294 fi
17295
17296 # We used to test for /lib/ld.so.1 and disable shared libraries on
17297 # powerpc, because MkLinux only supported shared libraries with the
17298 # GNU dynamic linker. Since this was broken with cross compilers,
17299 # most powerpc-linux boxes support dynamic linking these days and
17300 # people can always --disable-shared, the test was removed, and we
17301 # assume the GNU/Linux dynamic linker is in use.
17302 dynamic_linker='GNU/Linux ld.so'
17303 ;;
17304
17305 netbsd*)
17306 version_type=sunos
17307 need_lib_prefix=no
17308 need_version=no
17309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17312 dynamic_linker='NetBSD (a.out) ld.so'
17313 else
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 dynamic_linker='NetBSD ld.elf_so'
17317 fi
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17321 ;;
17322
17323 newsos6)
17324 version_type=linux
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=yes
17328 ;;
17329
17330 *nto* | *qnx*)
17331 version_type=qnx
17332 need_lib_prefix=no
17333 need_version=no
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=no
17338 hardcode_into_libs=yes
17339 dynamic_linker='ldqnx.so'
17340 ;;
17341
17342 openbsd*)
17343 version_type=sunos
17344 sys_lib_dlsearch_path_spec="/usr/lib"
17345 need_lib_prefix=no
17346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17347 case $host_os in
17348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17349 *) need_version=no ;;
17350 esac
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17355 case $host_os in
17356 openbsd2.[89] | openbsd2.[89].*)
17357 shlibpath_overrides_runpath=no
17358 ;;
17359 *)
17360 shlibpath_overrides_runpath=yes
17361 ;;
17362 esac
17363 else
17364 shlibpath_overrides_runpath=yes
17365 fi
17366 ;;
17367
17368 os2*)
17369 libname_spec='$name'
17370 shrext_cmds=".dll"
17371 need_lib_prefix=no
17372 library_names_spec='$libname${shared_ext} $libname.a'
17373 dynamic_linker='OS/2 ld.exe'
17374 shlibpath_var=LIBPATH
17375 ;;
17376
17377 osf3* | osf4* | osf5*)
17378 version_type=osf
17379 need_lib_prefix=no
17380 need_version=no
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17386 ;;
17387
17388 rdos*)
17389 dynamic_linker=no
17390 ;;
17391
17392 solaris*)
17393 version_type=linux
17394 need_lib_prefix=no
17395 need_version=no
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=yes
17400 hardcode_into_libs=yes
17401 # ldd complains unless libraries are executable
17402 postinstall_cmds='chmod +x $lib'
17403 ;;
17404
17405 sunos4*)
17406 version_type=sunos
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=yes
17411 if test "$with_gnu_ld" = yes; then
17412 need_lib_prefix=no
17413 fi
17414 need_version=yes
17415 ;;
17416
17417 sysv4 | sysv4.3*)
17418 version_type=linux
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17420 soname_spec='${libname}${release}${shared_ext}$major'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 case $host_vendor in
17423 sni)
17424 shlibpath_overrides_runpath=no
17425 need_lib_prefix=no
17426 runpath_var=LD_RUN_PATH
17427 ;;
17428 siemens)
17429 need_lib_prefix=no
17430 ;;
17431 motorola)
17432 need_lib_prefix=no
17433 need_version=no
17434 shlibpath_overrides_runpath=no
17435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17436 ;;
17437 esac
17438 ;;
17439
17440 sysv4*MP*)
17441 if test -d /usr/nec ;then
17442 version_type=linux
17443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17444 soname_spec='$libname${shared_ext}.$major'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 fi
17447 ;;
17448
17449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17450 version_type=freebsd-elf
17451 need_lib_prefix=no
17452 need_version=no
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=yes
17457 hardcode_into_libs=yes
17458 if test "$with_gnu_ld" = yes; then
17459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17460 else
17461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17462 case $host_os in
17463 sco3.2v5*)
17464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17465 ;;
17466 esac
17467 fi
17468 sys_lib_dlsearch_path_spec='/usr/lib'
17469 ;;
17470
17471 tpf*)
17472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17473 version_type=linux
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=no
17479 hardcode_into_libs=yes
17480 ;;
17481
17482 uts4*)
17483 version_type=linux
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 ;;
17488
17489 *)
17490 dynamic_linker=no
17491 ;;
17492 esac
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17494 $as_echo "$dynamic_linker" >&6; }
17495 test "$dynamic_linker" = no && can_build_shared=no
17496
17497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17498 if test "$GCC" = yes; then
17499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17500 fi
17501
17502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17503 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17504 fi
17505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17507 fi
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17601 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17602 hardcode_action=
17603 if test -n "$hardcode_libdir_flag_spec" ||
17604 test -n "$runpath_var" ||
17605 test "X$hardcode_automatic" = "Xyes" ; then
17606
17607 # We can hardcode non-existent directories.
17608 if test "$hardcode_direct" != no &&
17609 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17610 # have to relink, otherwise we might link with an installed library
17611 # when we should be linking with a yet-to-be-installed one
17612 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17613 test "$hardcode_minus_L" != no; then
17614 # Linking always hardcodes the temporary library directory.
17615 hardcode_action=relink
17616 else
17617 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17618 hardcode_action=immediate
17619 fi
17620 else
17621 # We cannot hardcode anything, or else we can only hardcode existing
17622 # directories.
17623 hardcode_action=unsupported
17624 fi
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17626 $as_echo "$hardcode_action" >&6; }
17627
17628 if test "$hardcode_action" = relink ||
17629 test "$inherit_rpath" = yes; then
17630 # Fast installation is not supported
17631 enable_fast_install=no
17632 elif test "$shlibpath_overrides_runpath" = yes ||
17633 test "$enable_shared" = no; then
17634 # Fast installation is not necessary
17635 enable_fast_install=needless
17636 fi
17637
17638
17639
17640
17641
17642
17643 if test "x$enable_dlopen" != xyes; then
17644 enable_dlopen=unknown
17645 enable_dlopen_self=unknown
17646 enable_dlopen_self_static=unknown
17647 else
17648 lt_cv_dlopen=no
17649 lt_cv_dlopen_libs=
17650
17651 case $host_os in
17652 beos*)
17653 lt_cv_dlopen="load_add_on"
17654 lt_cv_dlopen_libs=
17655 lt_cv_dlopen_self=yes
17656 ;;
17657
17658 mingw* | pw32* | cegcc*)
17659 lt_cv_dlopen="LoadLibrary"
17660 lt_cv_dlopen_libs=
17661 ;;
17662
17663 cygwin*)
17664 lt_cv_dlopen="dlopen"
17665 lt_cv_dlopen_libs=
17666 ;;
17667
17668 darwin*)
17669 # if libdl is installed we need to link against it
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17673 $as_echo_n "(cached) " >&6
17674 else
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-ldl $LIBS"
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 /* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 char dlopen ();
17687 int
17688 main ()
17689 {
17690 return dlopen ();
17691 ;
17692 return 0;
17693 }
17694 _ACEOF
17695 if ac_fn_c_try_link "$LINENO"; then :
17696 ac_cv_lib_dl_dlopen=yes
17697 else
17698 ac_cv_lib_dl_dlopen=no
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_check_lib_save_LIBS
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17706 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17708 else
17709
17710 lt_cv_dlopen="dyld"
17711 lt_cv_dlopen_libs=
17712 lt_cv_dlopen_self=yes
17713
17714 fi
17715
17716 ;;
17717
17718 *)
17719 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17720 if test "x$ac_cv_func_shl_load" = x""yes; then :
17721 lt_cv_dlopen="shl_load"
17722 else
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17724 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17725 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17726 $as_echo_n "(cached) " >&6
17727 else
17728 ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-ldld $LIBS"
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17732
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char shl_load ();
17740 int
17741 main ()
17742 {
17743 return shl_load ();
17744 ;
17745 return 0;
17746 }
17747 _ACEOF
17748 if ac_fn_c_try_link "$LINENO"; then :
17749 ac_cv_lib_dld_shl_load=yes
17750 else
17751 ac_cv_lib_dld_shl_load=no
17752 fi
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17756 fi
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17758 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17759 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17760 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17761 else
17762 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17763 if test "x$ac_cv_func_dlopen" = x""yes; then :
17764 lt_cv_dlopen="dlopen"
17765 else
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17767 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17770 else
17771 ac_check_lib_save_LIBS=$LIBS
17772 LIBS="-ldl $LIBS"
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775
17776 /* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17779 #ifdef __cplusplus
17780 extern "C"
17781 #endif
17782 char dlopen ();
17783 int
17784 main ()
17785 {
17786 return dlopen ();
17787 ;
17788 return 0;
17789 }
17790 _ACEOF
17791 if ac_fn_c_try_link "$LINENO"; then :
17792 ac_cv_lib_dl_dlopen=yes
17793 else
17794 ac_cv_lib_dl_dlopen=no
17795 fi
17796 rm -f core conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17799 fi
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17802 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17804 else
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17806 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17807 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17808 $as_echo_n "(cached) " >&6
17809 else
17810 ac_check_lib_save_LIBS=$LIBS
17811 LIBS="-lsvld $LIBS"
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char dlopen ();
17822 int
17823 main ()
17824 {
17825 return dlopen ();
17826 ;
17827 return 0;
17828 }
17829 _ACEOF
17830 if ac_fn_c_try_link "$LINENO"; then :
17831 ac_cv_lib_svld_dlopen=yes
17832 else
17833 ac_cv_lib_svld_dlopen=no
17834 fi
17835 rm -f core conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17838 fi
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17840 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17841 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17843 else
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17845 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17846 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17848 else
17849 ac_check_lib_save_LIBS=$LIBS
17850 LIBS="-ldld $LIBS"
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852 /* end confdefs.h. */
17853
17854 /* Override any GCC internal prototype to avoid an error.
17855 Use char because int might match the return type of a GCC
17856 builtin and then its argument prototype would still apply. */
17857 #ifdef __cplusplus
17858 extern "C"
17859 #endif
17860 char dld_link ();
17861 int
17862 main ()
17863 {
17864 return dld_link ();
17865 ;
17866 return 0;
17867 }
17868 _ACEOF
17869 if ac_fn_c_try_link "$LINENO"; then :
17870 ac_cv_lib_dld_dld_link=yes
17871 else
17872 ac_cv_lib_dld_dld_link=no
17873 fi
17874 rm -f core conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
17876 LIBS=$ac_check_lib_save_LIBS
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17879 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17880 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17882 fi
17883
17884
17885 fi
17886
17887
17888 fi
17889
17890
17891 fi
17892
17893
17894 fi
17895
17896
17897 fi
17898
17899 ;;
17900 esac
17901
17902 if test "x$lt_cv_dlopen" != xno; then
17903 enable_dlopen=yes
17904 else
17905 enable_dlopen=no
17906 fi
17907
17908 case $lt_cv_dlopen in
17909 dlopen)
17910 save_CPPFLAGS="$CPPFLAGS"
17911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17912
17913 save_LDFLAGS="$LDFLAGS"
17914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17915
17916 save_LIBS="$LIBS"
17917 LIBS="$lt_cv_dlopen_libs $LIBS"
17918
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17920 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17921 if test "${lt_cv_dlopen_self+set}" = set; then :
17922 $as_echo_n "(cached) " >&6
17923 else
17924 if test "$cross_compiling" = yes; then :
17925 lt_cv_dlopen_self=cross
17926 else
17927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17928 lt_status=$lt_dlunknown
17929 cat > conftest.$ac_ext <<_LT_EOF
17930 #line 17930 "configure"
17931 #include "confdefs.h"
17932
17933 #if HAVE_DLFCN_H
17934 #include <dlfcn.h>
17935 #endif
17936
17937 #include <stdio.h>
17938
17939 #ifdef RTLD_GLOBAL
17940 # define LT_DLGLOBAL RTLD_GLOBAL
17941 #else
17942 # ifdef DL_GLOBAL
17943 # define LT_DLGLOBAL DL_GLOBAL
17944 # else
17945 # define LT_DLGLOBAL 0
17946 # endif
17947 #endif
17948
17949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17950 find out it does not work in some platform. */
17951 #ifndef LT_DLLAZY_OR_NOW
17952 # ifdef RTLD_LAZY
17953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17954 # else
17955 # ifdef DL_LAZY
17956 # define LT_DLLAZY_OR_NOW DL_LAZY
17957 # else
17958 # ifdef RTLD_NOW
17959 # define LT_DLLAZY_OR_NOW RTLD_NOW
17960 # else
17961 # ifdef DL_NOW
17962 # define LT_DLLAZY_OR_NOW DL_NOW
17963 # else
17964 # define LT_DLLAZY_OR_NOW 0
17965 # endif
17966 # endif
17967 # endif
17968 # endif
17969 #endif
17970
17971 /* When -fvisbility=hidden is used, assume the code has been annotated
17972 correspondingly for the symbols needed. */
17973 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17974 void fnord () __attribute__((visibility("default")));
17975 #endif
17976
17977 void fnord () { int i=42; }
17978 int main ()
17979 {
17980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17981 int status = $lt_dlunknown;
17982
17983 if (self)
17984 {
17985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17986 else
17987 {
17988 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 else puts (dlerror ());
17990 }
17991 /* dlclose (self); */
17992 }
17993 else
17994 puts (dlerror ());
17995
17996 return status;
17997 }
17998 _LT_EOF
17999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18000 (eval $ac_link) 2>&5
18001 ac_status=$?
18002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18004 (./conftest; exit; ) >&5 2>/dev/null
18005 lt_status=$?
18006 case x$lt_status in
18007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18010 esac
18011 else :
18012 # compilation failed
18013 lt_cv_dlopen_self=no
18014 fi
18015 fi
18016 rm -fr conftest*
18017
18018
18019 fi
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18021 $as_echo "$lt_cv_dlopen_self" >&6; }
18022
18023 if test "x$lt_cv_dlopen_self" = xyes; then
18024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18026 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18027 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 if test "$cross_compiling" = yes; then :
18031 lt_cv_dlopen_self_static=cross
18032 else
18033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18034 lt_status=$lt_dlunknown
18035 cat > conftest.$ac_ext <<_LT_EOF
18036 #line 18036 "configure"
18037 #include "confdefs.h"
18038
18039 #if HAVE_DLFCN_H
18040 #include <dlfcn.h>
18041 #endif
18042
18043 #include <stdio.h>
18044
18045 #ifdef RTLD_GLOBAL
18046 # define LT_DLGLOBAL RTLD_GLOBAL
18047 #else
18048 # ifdef DL_GLOBAL
18049 # define LT_DLGLOBAL DL_GLOBAL
18050 # else
18051 # define LT_DLGLOBAL 0
18052 # endif
18053 #endif
18054
18055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18056 find out it does not work in some platform. */
18057 #ifndef LT_DLLAZY_OR_NOW
18058 # ifdef RTLD_LAZY
18059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18060 # else
18061 # ifdef DL_LAZY
18062 # define LT_DLLAZY_OR_NOW DL_LAZY
18063 # else
18064 # ifdef RTLD_NOW
18065 # define LT_DLLAZY_OR_NOW RTLD_NOW
18066 # else
18067 # ifdef DL_NOW
18068 # define LT_DLLAZY_OR_NOW DL_NOW
18069 # else
18070 # define LT_DLLAZY_OR_NOW 0
18071 # endif
18072 # endif
18073 # endif
18074 # endif
18075 #endif
18076
18077 /* When -fvisbility=hidden is used, assume the code has been annotated
18078 correspondingly for the symbols needed. */
18079 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18080 void fnord () __attribute__((visibility("default")));
18081 #endif
18082
18083 void fnord () { int i=42; }
18084 int main ()
18085 {
18086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18087 int status = $lt_dlunknown;
18088
18089 if (self)
18090 {
18091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18092 else
18093 {
18094 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18095 else puts (dlerror ());
18096 }
18097 /* dlclose (self); */
18098 }
18099 else
18100 puts (dlerror ());
18101
18102 return status;
18103 }
18104 _LT_EOF
18105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18106 (eval $ac_link) 2>&5
18107 ac_status=$?
18108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18109 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18110 (./conftest; exit; ) >&5 2>/dev/null
18111 lt_status=$?
18112 case x$lt_status in
18113 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18114 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18115 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18116 esac
18117 else :
18118 # compilation failed
18119 lt_cv_dlopen_self_static=no
18120 fi
18121 fi
18122 rm -fr conftest*
18123
18124
18125 fi
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18127 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18128 fi
18129
18130 CPPFLAGS="$save_CPPFLAGS"
18131 LDFLAGS="$save_LDFLAGS"
18132 LIBS="$save_LIBS"
18133 ;;
18134 esac
18135
18136 case $lt_cv_dlopen_self in
18137 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18138 *) enable_dlopen_self=unknown ;;
18139 esac
18140
18141 case $lt_cv_dlopen_self_static in
18142 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18143 *) enable_dlopen_self_static=unknown ;;
18144 esac
18145 fi
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163 striplib=
18164 old_striplib=
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18166 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18167 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18168 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18169 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18171 $as_echo "yes" >&6; }
18172 else
18173 # FIXME - insert some real tests, host_os isn't really good enough
18174 case $host_os in
18175 darwin*)
18176 if test -n "$STRIP" ; then
18177 striplib="$STRIP -x"
18178 old_striplib="$STRIP -S"
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180 $as_echo "yes" >&6; }
18181 else
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18183 $as_echo "no" >&6; }
18184 fi
18185 ;;
18186 *)
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 ;;
18190 esac
18191 fi
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204 # Report which library types will actually be built
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18206 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18208 $as_echo "$can_build_shared" >&6; }
18209
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18211 $as_echo_n "checking whether to build shared libraries... " >&6; }
18212 test "$can_build_shared" = "no" && enable_shared=no
18213
18214 # On AIX, shared libraries and static libraries use the same namespace, and
18215 # are all built from PIC.
18216 case $host_os in
18217 aix3*)
18218 test "$enable_shared" = yes && enable_static=no
18219 if test -n "$RANLIB"; then
18220 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18221 postinstall_cmds='$RANLIB $lib'
18222 fi
18223 ;;
18224
18225 aix[4-9]*)
18226 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18227 test "$enable_shared" = yes && enable_static=no
18228 fi
18229 ;;
18230 esac
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18232 $as_echo "$enable_shared" >&6; }
18233
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18235 $as_echo_n "checking whether to build static libraries... " >&6; }
18236 # Make sure either enable_shared or enable_static is yes.
18237 test "$enable_shared" = yes || enable_static=yes
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18239 $as_echo "$enable_static" >&6; }
18240
18241
18242
18243
18244 fi
18245 ac_ext=c
18246 ac_cpp='$CPP $CPPFLAGS'
18247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18250
18251 CC="$lt_save_CC"
18252
18253 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18254 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18255 (test "X$CXX" != "Xg++"))) ; then
18256 ac_ext=cpp
18257 ac_cpp='$CXXCPP $CPPFLAGS'
18258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18262 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18263 if test -z "$CXXCPP"; then
18264 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18265 $as_echo_n "(cached) " >&6
18266 else
18267 # Double quotes because CXXCPP needs to be expanded
18268 for CXXCPP in "$CXX -E" "/lib/cpp"
18269 do
18270 ac_preproc_ok=false
18271 for ac_cxx_preproc_warn_flag in '' yes
18272 do
18273 # Use a header file that comes with gcc, so configuring glibc
18274 # with a fresh cross-compiler works.
18275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276 # <limits.h> exists even on freestanding compilers.
18277 # On the NeXT, cc -E runs the code through the compiler's parser,
18278 # not just through cpp. "Syntax error" is here to catch this case.
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18286 Syntax error
18287 _ACEOF
18288 if ac_fn_cxx_try_cpp "$LINENO"; then :
18289
18290 else
18291 # Broken: fails on valid input.
18292 continue
18293 fi
18294 rm -f conftest.err conftest.$ac_ext
18295
18296 # OK, works on sane cases. Now check whether nonexistent headers
18297 # can be detected and how.
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300 #include <ac_nonexistent.h>
18301 _ACEOF
18302 if ac_fn_cxx_try_cpp "$LINENO"; then :
18303 # Broken: success on invalid input.
18304 continue
18305 else
18306 # Passes both tests.
18307 ac_preproc_ok=:
18308 break
18309 fi
18310 rm -f conftest.err conftest.$ac_ext
18311
18312 done
18313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18314 rm -f conftest.err conftest.$ac_ext
18315 if $ac_preproc_ok; then :
18316 break
18317 fi
18318
18319 done
18320 ac_cv_prog_CXXCPP=$CXXCPP
18321
18322 fi
18323 CXXCPP=$ac_cv_prog_CXXCPP
18324 else
18325 ac_cv_prog_CXXCPP=$CXXCPP
18326 fi
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18328 $as_echo "$CXXCPP" >&6; }
18329 ac_preproc_ok=false
18330 for ac_cxx_preproc_warn_flag in '' yes
18331 do
18332 # Use a header file that comes with gcc, so configuring glibc
18333 # with a fresh cross-compiler works.
18334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18335 # <limits.h> exists even on freestanding compilers.
18336 # On the NeXT, cc -E runs the code through the compiler's parser,
18337 # not just through cpp. "Syntax error" is here to catch this case.
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 #ifdef __STDC__
18341 # include <limits.h>
18342 #else
18343 # include <assert.h>
18344 #endif
18345 Syntax error
18346 _ACEOF
18347 if ac_fn_cxx_try_cpp "$LINENO"; then :
18348
18349 else
18350 # Broken: fails on valid input.
18351 continue
18352 fi
18353 rm -f conftest.err conftest.$ac_ext
18354
18355 # OK, works on sane cases. Now check whether nonexistent headers
18356 # can be detected and how.
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359 #include <ac_nonexistent.h>
18360 _ACEOF
18361 if ac_fn_cxx_try_cpp "$LINENO"; then :
18362 # Broken: success on invalid input.
18363 continue
18364 else
18365 # Passes both tests.
18366 ac_preproc_ok=:
18367 break
18368 fi
18369 rm -f conftest.err conftest.$ac_ext
18370
18371 done
18372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18373 rm -f conftest.err conftest.$ac_ext
18374 if $ac_preproc_ok; then :
18375
18376 else
18377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18379 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18380 See \`config.log' for more details." "$LINENO" 5; }
18381 fi
18382
18383 ac_ext=c
18384 ac_cpp='$CPP $CPPFLAGS'
18385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18388
18389 else
18390 _lt_caught_CXX_error=yes
18391 fi
18392
18393 ac_ext=cpp
18394 ac_cpp='$CXXCPP $CPPFLAGS'
18395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18398
18399 archive_cmds_need_lc_CXX=no
18400 allow_undefined_flag_CXX=
18401 always_export_symbols_CXX=no
18402 archive_expsym_cmds_CXX=
18403 compiler_needs_object_CXX=no
18404 export_dynamic_flag_spec_CXX=
18405 hardcode_direct_CXX=no
18406 hardcode_direct_absolute_CXX=no
18407 hardcode_libdir_flag_spec_CXX=
18408 hardcode_libdir_flag_spec_ld_CXX=
18409 hardcode_libdir_separator_CXX=
18410 hardcode_minus_L_CXX=no
18411 hardcode_shlibpath_var_CXX=unsupported
18412 hardcode_automatic_CXX=no
18413 inherit_rpath_CXX=no
18414 module_cmds_CXX=
18415 module_expsym_cmds_CXX=
18416 link_all_deplibs_CXX=unknown
18417 old_archive_cmds_CXX=$old_archive_cmds
18418 reload_flag_CXX=$reload_flag
18419 reload_cmds_CXX=$reload_cmds
18420 no_undefined_flag_CXX=
18421 whole_archive_flag_spec_CXX=
18422 enable_shared_with_static_runtimes_CXX=no
18423
18424 # Source file extension for C++ test sources.
18425 ac_ext=cpp
18426
18427 # Object file extension for compiled C++ test sources.
18428 objext=o
18429 objext_CXX=$objext
18430
18431 # No sense in running all these tests if we already determined that
18432 # the CXX compiler isn't working. Some variables (like enable_shared)
18433 # are currently assumed to apply to all compilers on this platform,
18434 # and will be corrupted by setting them based on a non-working compiler.
18435 if test "$_lt_caught_CXX_error" != yes; then
18436 # Code to be used in simple compile tests
18437 lt_simple_compile_test_code="int some_variable = 0;"
18438
18439 # Code to be used in simple link tests
18440 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18441
18442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18443
18444
18445
18446
18447
18448
18449 # If no C compiler was specified, use CC.
18450 LTCC=${LTCC-"$CC"}
18451
18452 # If no C compiler flags were specified, use CFLAGS.
18453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18454
18455 # Allow CC to be a program name with arguments.
18456 compiler=$CC
18457
18458
18459 # save warnings/boilerplate of simple test code
18460 ac_outfile=conftest.$ac_objext
18461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18463 _lt_compiler_boilerplate=`cat conftest.err`
18464 $RM conftest*
18465
18466 ac_outfile=conftest.$ac_objext
18467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18469 _lt_linker_boilerplate=`cat conftest.err`
18470 $RM -r conftest*
18471
18472
18473 # Allow CC to be a program name with arguments.
18474 lt_save_CC=$CC
18475 lt_save_LD=$LD
18476 lt_save_GCC=$GCC
18477 GCC=$GXX
18478 lt_save_with_gnu_ld=$with_gnu_ld
18479 lt_save_path_LD=$lt_cv_path_LD
18480 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18481 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18482 else
18483 $as_unset lt_cv_prog_gnu_ld
18484 fi
18485 if test -n "${lt_cv_path_LDCXX+set}"; then
18486 lt_cv_path_LD=$lt_cv_path_LDCXX
18487 else
18488 $as_unset lt_cv_path_LD
18489 fi
18490 test -z "${LDCXX+set}" || LD=$LDCXX
18491 CC=${CXX-"c++"}
18492 compiler=$CC
18493 compiler_CXX=$CC
18494 for cc_temp in $compiler""; do
18495 case $cc_temp in
18496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18498 \-*) ;;
18499 *) break;;
18500 esac
18501 done
18502 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18503
18504
18505 if test -n "$compiler"; then
18506 # We don't want -fno-exception when compiling C++ code, so set the
18507 # no_builtin_flag separately
18508 if test "$GXX" = yes; then
18509 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18510 else
18511 lt_prog_compiler_no_builtin_flag_CXX=
18512 fi
18513
18514 if test "$GXX" = yes; then
18515 # Set up default GNU C++ configuration
18516
18517
18518
18519 # Check whether --with-gnu-ld was given.
18520 if test "${with_gnu_ld+set}" = set; then :
18521 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18522 else
18523 with_gnu_ld=no
18524 fi
18525
18526 ac_prog=ld
18527 if test "$GCC" = yes; then
18528 # Check if gcc -print-prog-name=ld gives a path.
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18530 $as_echo_n "checking for ld used by $CC... " >&6; }
18531 case $host in
18532 *-*-mingw*)
18533 # gcc leaves a trailing carriage return which upsets mingw
18534 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18535 *)
18536 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18537 esac
18538 case $ac_prog in
18539 # Accept absolute paths.
18540 [\\/]* | ?:[\\/]*)
18541 re_direlt='/[^/][^/]*/\.\./'
18542 # Canonicalize the pathname of ld
18543 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18544 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18545 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18546 done
18547 test -z "$LD" && LD="$ac_prog"
18548 ;;
18549 "")
18550 # If it fails, then pretend we aren't using GCC.
18551 ac_prog=ld
18552 ;;
18553 *)
18554 # If it is relative, then search for the first ld in PATH.
18555 with_gnu_ld=unknown
18556 ;;
18557 esac
18558 elif test "$with_gnu_ld" = yes; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18560 $as_echo_n "checking for GNU ld... " >&6; }
18561 else
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18563 $as_echo_n "checking for non-GNU ld... " >&6; }
18564 fi
18565 if test "${lt_cv_path_LD+set}" = set; then :
18566 $as_echo_n "(cached) " >&6
18567 else
18568 if test -z "$LD"; then
18569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18570 for ac_dir in $PATH; do
18571 IFS="$lt_save_ifs"
18572 test -z "$ac_dir" && ac_dir=.
18573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18574 lt_cv_path_LD="$ac_dir/$ac_prog"
18575 # Check to see if the program is GNU ld. I'd rather use --version,
18576 # but apparently some variants of GNU ld only accept -v.
18577 # Break only if it was the GNU/non-GNU ld that we prefer.
18578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18579 *GNU* | *'with BFD'*)
18580 test "$with_gnu_ld" != no && break
18581 ;;
18582 *)
18583 test "$with_gnu_ld" != yes && break
18584 ;;
18585 esac
18586 fi
18587 done
18588 IFS="$lt_save_ifs"
18589 else
18590 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18591 fi
18592 fi
18593
18594 LD="$lt_cv_path_LD"
18595 if test -n "$LD"; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18597 $as_echo "$LD" >&6; }
18598 else
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600 $as_echo "no" >&6; }
18601 fi
18602 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18604 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18605 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18607 else
18608 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18609 case `$LD -v 2>&1 </dev/null` in
18610 *GNU* | *'with BFD'*)
18611 lt_cv_prog_gnu_ld=yes
18612 ;;
18613 *)
18614 lt_cv_prog_gnu_ld=no
18615 ;;
18616 esac
18617 fi
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18619 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18620 with_gnu_ld=$lt_cv_prog_gnu_ld
18621
18622
18623
18624
18625
18626
18627
18628 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18629 # archiving commands below assume that GNU ld is being used.
18630 if test "$with_gnu_ld" = yes; then
18631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18632 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18633
18634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18636
18637 # If archive_cmds runs LD, not CC, wlarc should be empty
18638 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18639 # investigate it a little bit more. (MM)
18640 wlarc='${wl}'
18641
18642 # ancient GNU ld didn't support --whole-archive et. al.
18643 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18644 $GREP 'no-whole-archive' > /dev/null; then
18645 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18646 else
18647 whole_archive_flag_spec_CXX=
18648 fi
18649 else
18650 with_gnu_ld=no
18651 wlarc=
18652
18653 # A generic and very simple default shared library creation
18654 # command for GNU C++ for the case where it uses the native
18655 # linker, instead of GNU ld. If possible, this setting should
18656 # overridden to take advantage of the native linker features on
18657 # the platform it is being used on.
18658 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18659 fi
18660
18661 # Commands to make compiler produce verbose output that lists
18662 # what "hidden" libraries, object files and flags are used when
18663 # linking a shared library.
18664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18665
18666 else
18667 GXX=no
18668 with_gnu_ld=no
18669 wlarc=
18670 fi
18671
18672 # PORTME: fill in a description of your system's C++ link characteristics
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18675 ld_shlibs_CXX=yes
18676 case $host_os in
18677 aix3*)
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
18681 aix[4-9]*)
18682 if test "$host_cpu" = ia64; then
18683 # On IA64, the linker does run time linking by default, so we don't
18684 # have to do anything special.
18685 aix_use_runtimelinking=no
18686 exp_sym_flag='-Bexport'
18687 no_entry_flag=""
18688 else
18689 aix_use_runtimelinking=no
18690
18691 # Test if we are trying to use run time linking or normal
18692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18693 # need to do runtime linking.
18694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18695 for ld_flag in $LDFLAGS; do
18696 case $ld_flag in
18697 *-brtl*)
18698 aix_use_runtimelinking=yes
18699 break
18700 ;;
18701 esac
18702 done
18703 ;;
18704 esac
18705
18706 exp_sym_flag='-bexport'
18707 no_entry_flag='-bnoentry'
18708 fi
18709
18710 # When large executables or shared objects are built, AIX ld can
18711 # have problems creating the table of contents. If linking a library
18712 # or program results in "error TOC overflow" add -mminimal-toc to
18713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18715
18716 archive_cmds_CXX=''
18717 hardcode_direct_CXX=yes
18718 hardcode_direct_absolute_CXX=yes
18719 hardcode_libdir_separator_CXX=':'
18720 link_all_deplibs_CXX=yes
18721 file_list_spec_CXX='${wl}-f,'
18722
18723 if test "$GXX" = yes; then
18724 case $host_os in aix4.[012]|aix4.[012].*)
18725 # We only want to do this on AIX 4.2 and lower, the check
18726 # below for broken collect2 doesn't work under 4.3+
18727 collect2name=`${CC} -print-prog-name=collect2`
18728 if test -f "$collect2name" &&
18729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18730 then
18731 # We have reworked collect2
18732 :
18733 else
18734 # We have old collect2
18735 hardcode_direct_CXX=unsupported
18736 # It fails to find uninstalled libraries when the uninstalled
18737 # path is not listed in the libpath. Setting hardcode_minus_L
18738 # to unsupported forces relinking
18739 hardcode_minus_L_CXX=yes
18740 hardcode_libdir_flag_spec_CXX='-L$libdir'
18741 hardcode_libdir_separator_CXX=
18742 fi
18743 esac
18744 shared_flag='-shared'
18745 if test "$aix_use_runtimelinking" = yes; then
18746 shared_flag="$shared_flag "'${wl}-G'
18747 fi
18748 else
18749 # not using gcc
18750 if test "$host_cpu" = ia64; then
18751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18752 # chokes on -Wl,-G. The following line is correct:
18753 shared_flag='-G'
18754 else
18755 if test "$aix_use_runtimelinking" = yes; then
18756 shared_flag='${wl}-G'
18757 else
18758 shared_flag='${wl}-bM:SRE'
18759 fi
18760 fi
18761 fi
18762
18763 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18764 # It seems that -bexpall does not export symbols beginning with
18765 # underscore (_), so it is better to generate a list of symbols to
18766 # export.
18767 always_export_symbols_CXX=yes
18768 if test "$aix_use_runtimelinking" = yes; then
18769 # Warning - without using the other runtime loading flags (-brtl),
18770 # -berok will link without error, but may produce a broken library.
18771 allow_undefined_flag_CXX='-berok'
18772 # Determine the default libpath from the value encoded in an empty
18773 # executable.
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776
18777 int
18778 main ()
18779 {
18780
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 if ac_fn_cxx_try_link "$LINENO"; then :
18786
18787 lt_aix_libpath_sed='
18788 /Import File Strings/,/^$/ {
18789 /^0/ {
18790 s/^0 *\(.*\)$/\1/
18791 p
18792 }
18793 }'
18794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18795 # Check for a 64-bit object if we didn't find anything.
18796 if test -z "$aix_libpath"; then
18797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18798 fi
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18803
18804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18805
18806 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"
18807 else
18808 if test "$host_cpu" = ia64; then
18809 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18810 allow_undefined_flag_CXX="-z nodefs"
18811 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"
18812 else
18813 # Determine the default libpath from the value encoded in an
18814 # empty executable.
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817
18818 int
18819 main ()
18820 {
18821
18822 ;
18823 return 0;
18824 }
18825 _ACEOF
18826 if ac_fn_cxx_try_link "$LINENO"; then :
18827
18828 lt_aix_libpath_sed='
18829 /Import File Strings/,/^$/ {
18830 /^0/ {
18831 s/^0 *\(.*\)$/\1/
18832 p
18833 }
18834 }'
18835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18836 # Check for a 64-bit object if we didn't find anything.
18837 if test -z "$aix_libpath"; then
18838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18839 fi
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext \
18842 conftest$ac_exeext conftest.$ac_ext
18843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18844
18845 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18846 # Warning - without using the other run time loading flags,
18847 # -berok will link without error, but may produce a broken library.
18848 no_undefined_flag_CXX=' ${wl}-bernotok'
18849 allow_undefined_flag_CXX=' ${wl}-berok'
18850 if test "$with_gnu_ld" = yes; then
18851 # We only use this code for GNU lds that support --whole-archive.
18852 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18853 else
18854 # Exported symbols can be pulled into shared objects from archives
18855 whole_archive_flag_spec_CXX='$convenience'
18856 fi
18857 archive_cmds_need_lc_CXX=yes
18858 # This is similar to how AIX traditionally builds its shared
18859 # libraries.
18860 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'
18861 fi
18862 fi
18863 ;;
18864
18865 beos*)
18866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18867 allow_undefined_flag_CXX=unsupported
18868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18869 # support --undefined. This deserves some investigation. FIXME
18870 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18871 else
18872 ld_shlibs_CXX=no
18873 fi
18874 ;;
18875
18876 chorus*)
18877 case $cc_basename in
18878 *)
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 ;;
18882 esac
18883 ;;
18884
18885 cygwin* | mingw* | pw32* | cegcc*)
18886 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18887 # as there is no search path for DLLs.
18888 hardcode_libdir_flag_spec_CXX='-L$libdir'
18889 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18890 allow_undefined_flag_CXX=unsupported
18891 always_export_symbols_CXX=no
18892 enable_shared_with_static_runtimes_CXX=yes
18893
18894 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18895 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'
18896 # If the export-symbols file already is a .def file (1st line
18897 # is EXPORTS), use it as is; otherwise, prepend...
18898 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18899 cp $export_symbols $output_objdir/$soname.def;
18900 else
18901 echo EXPORTS > $output_objdir/$soname.def;
18902 cat $export_symbols >> $output_objdir/$soname.def;
18903 fi~
18904 $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'
18905 else
18906 ld_shlibs_CXX=no
18907 fi
18908 ;;
18909 darwin* | rhapsody*)
18910
18911
18912 archive_cmds_need_lc_CXX=no
18913 hardcode_direct_CXX=no
18914 hardcode_automatic_CXX=yes
18915 hardcode_shlibpath_var_CXX=unsupported
18916 if test "$lt_cv_ld_force_load" = "yes"; then
18917 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\"`'
18918 else
18919 whole_archive_flag_spec_CXX=''
18920 fi
18921 link_all_deplibs_CXX=yes
18922 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18923 case $cc_basename in
18924 ifort*) _lt_dar_can_shared=yes ;;
18925 *) _lt_dar_can_shared=$GCC ;;
18926 esac
18927 if test "$_lt_dar_can_shared" = "yes"; then
18928 output_verbose_link_cmd=func_echo_all
18929 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}"
18930 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18931 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}"
18932 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}"
18933 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18934 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}"
18935 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}"
18936 fi
18937
18938 else
18939 ld_shlibs_CXX=no
18940 fi
18941
18942 ;;
18943
18944 dgux*)
18945 case $cc_basename in
18946 ec++*)
18947 # FIXME: insert proper C++ library support
18948 ld_shlibs_CXX=no
18949 ;;
18950 ghcx*)
18951 # Green Hills C++ Compiler
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18954 ;;
18955 *)
18956 # FIXME: insert proper C++ library support
18957 ld_shlibs_CXX=no
18958 ;;
18959 esac
18960 ;;
18961
18962 freebsd2.*)
18963 # C++ shared libraries reported to be fairly broken before
18964 # switch to ELF
18965 ld_shlibs_CXX=no
18966 ;;
18967
18968 freebsd-elf*)
18969 archive_cmds_need_lc_CXX=no
18970 ;;
18971
18972 freebsd* | dragonfly*)
18973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18974 # conventions
18975 ld_shlibs_CXX=yes
18976 ;;
18977
18978 gnu*)
18979 ;;
18980
18981 haiku*)
18982 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18983 link_all_deplibs_CXX=yes
18984 ;;
18985
18986 hpux9*)
18987 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18988 hardcode_libdir_separator_CXX=:
18989 export_dynamic_flag_spec_CXX='${wl}-E'
18990 hardcode_direct_CXX=yes
18991 hardcode_minus_L_CXX=yes # Not in the search PATH,
18992 # but as the default
18993 # location of the library.
18994
18995 case $cc_basename in
18996 CC*)
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
18999 ;;
19000 aCC*)
19001 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'
19002 # Commands to make compiler produce verbose output that lists
19003 # what "hidden" libraries, object files and flags are used when
19004 # linking a shared library.
19005 #
19006 # There doesn't appear to be a way to prevent this compiler from
19007 # explicitly linking system object files so we need to strip them
19008 # from the output so that they don't get included in the library
19009 # dependencies.
19010 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"'
19011 ;;
19012 *)
19013 if test "$GXX" = yes; then
19014 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'
19015 else
19016 # FIXME: insert proper C++ library support
19017 ld_shlibs_CXX=no
19018 fi
19019 ;;
19020 esac
19021 ;;
19022
19023 hpux10*|hpux11*)
19024 if test $with_gnu_ld = no; then
19025 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19026 hardcode_libdir_separator_CXX=:
19027
19028 case $host_cpu in
19029 hppa*64*|ia64*)
19030 ;;
19031 *)
19032 export_dynamic_flag_spec_CXX='${wl}-E'
19033 ;;
19034 esac
19035 fi
19036 case $host_cpu in
19037 hppa*64*|ia64*)
19038 hardcode_direct_CXX=no
19039 hardcode_shlibpath_var_CXX=no
19040 ;;
19041 *)
19042 hardcode_direct_CXX=yes
19043 hardcode_direct_absolute_CXX=yes
19044 hardcode_minus_L_CXX=yes # Not in the search PATH,
19045 # but as the default
19046 # location of the library.
19047 ;;
19048 esac
19049
19050 case $cc_basename in
19051 CC*)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 aCC*)
19056 case $host_cpu in
19057 hppa*64*)
19058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19059 ;;
19060 ia64*)
19061 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19062 ;;
19063 *)
19064 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19065 ;;
19066 esac
19067 # Commands to make compiler produce verbose output that lists
19068 # what "hidden" libraries, object files and flags are used when
19069 # linking a shared library.
19070 #
19071 # There doesn't appear to be a way to prevent this compiler from
19072 # explicitly linking system object files so we need to strip them
19073 # from the output so that they don't get included in the library
19074 # dependencies.
19075 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"'
19076 ;;
19077 *)
19078 if test "$GXX" = yes; then
19079 if test $with_gnu_ld = no; then
19080 case $host_cpu in
19081 hppa*64*)
19082 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19083 ;;
19084 ia64*)
19085 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19086 ;;
19087 *)
19088 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'
19089 ;;
19090 esac
19091 fi
19092 else
19093 # FIXME: insert proper C++ library support
19094 ld_shlibs_CXX=no
19095 fi
19096 ;;
19097 esac
19098 ;;
19099
19100 interix[3-9]*)
19101 hardcode_direct_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19104 export_dynamic_flag_spec_CXX='${wl}-E'
19105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19106 # Instead, shared libraries are loaded at an image base (0x10000000 by
19107 # default) and relocated if they conflict, which is a slow very memory
19108 # consuming and fragmenting process. To avoid this, we pick a random,
19109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19111 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'
19112 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'
19113 ;;
19114 irix5* | irix6*)
19115 case $cc_basename in
19116 CC*)
19117 # SGI C++
19118 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'
19119
19120 # Archives containing C++ object files must be created using
19121 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19122 # necessary to make sure instantiated templates are included
19123 # in the archive.
19124 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19125 ;;
19126 *)
19127 if test "$GXX" = yes; then
19128 if test "$with_gnu_ld" = no; then
19129 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'
19130 else
19131 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'
19132 fi
19133 fi
19134 link_all_deplibs_CXX=yes
19135 ;;
19136 esac
19137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19138 hardcode_libdir_separator_CXX=:
19139 inherit_rpath_CXX=yes
19140 ;;
19141
19142 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19143 case $cc_basename in
19144 KCC*)
19145 # Kuck and Associates, Inc. (KAI) C++ Compiler
19146
19147 # KCC will only create a shared library if the output file
19148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19149 # to its proper name (with version) after linking.
19150 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'
19151 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'
19152 # Commands to make compiler produce verbose output that lists
19153 # what "hidden" libraries, object files and flags are used when
19154 # linking a shared library.
19155 #
19156 # There doesn't appear to be a way to prevent this compiler from
19157 # explicitly linking system object files so we need to strip them
19158 # from the output so that they don't get included in the library
19159 # dependencies.
19160 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"'
19161
19162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19164
19165 # Archives containing C++ object files must be created using
19166 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19167 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19168 ;;
19169 icpc* | ecpc* )
19170 # Intel C++
19171 with_gnu_ld=yes
19172 # version 8.0 and above of icpc choke on multiply defined symbols
19173 # if we add $predep_objects and $postdep_objects, however 7.1 and
19174 # earlier do not add the objects themselves.
19175 case `$CC -V 2>&1` in
19176 *"Version 7."*)
19177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19178 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'
19179 ;;
19180 *) # Version 8.0 or newer
19181 tmp_idyn=
19182 case $host_cpu in
19183 ia64*) tmp_idyn=' -i_dynamic';;
19184 esac
19185 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 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'
19187 ;;
19188 esac
19189 archive_cmds_need_lc_CXX=no
19190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19192 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19193 ;;
19194 pgCC* | pgcpp*)
19195 # Portland Group C++ compiler
19196 case `$CC -V` in
19197 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19198 prelink_cmds_CXX='tpldir=Template.dir~
19199 rm -rf $tpldir~
19200 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19201 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19202 old_archive_cmds_CXX='tpldir=Template.dir~
19203 rm -rf $tpldir~
19204 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19205 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19206 $RANLIB $oldlib'
19207 archive_cmds_CXX='tpldir=Template.dir~
19208 rm -rf $tpldir~
19209 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19210 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19211 archive_expsym_cmds_CXX='tpldir=Template.dir~
19212 rm -rf $tpldir~
19213 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19214 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19215 ;;
19216 *) # Version 6 and above use weak symbols
19217 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19218 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'
19219 ;;
19220 esac
19221
19222 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19224 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'
19225 ;;
19226 cxx*)
19227 # Compaq C++
19228 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19229 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'
19230
19231 runpath_var=LD_RUN_PATH
19232 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19233 hardcode_libdir_separator_CXX=:
19234
19235 # Commands to make compiler produce verbose output that lists
19236 # what "hidden" libraries, object files and flags are used when
19237 # linking a shared library.
19238 #
19239 # There doesn't appear to be a way to prevent this compiler from
19240 # explicitly linking system object files so we need to strip them
19241 # from the output so that they don't get included in the library
19242 # dependencies.
19243 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'
19244 ;;
19245 xl* | mpixl* | bgxl*)
19246 # IBM XL 8.0 on PPC, with GNU ld
19247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19248 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19249 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 if test "x$supports_anon_versioning" = xyes; then
19251 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19253 echo "local: *; };" >> $output_objdir/$libname.ver~
19254 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19255 fi
19256 ;;
19257 *)
19258 case `$CC -V 2>&1 | sed 5q` in
19259 *Sun\ C*)
19260 # Sun C++ 5.9
19261 no_undefined_flag_CXX=' -zdefs'
19262 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19263 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'
19264 hardcode_libdir_flag_spec_CXX='-R$libdir'
19265 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'
19266 compiler_needs_object_CXX=yes
19267
19268 # Not sure whether something based on
19269 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19270 # would be better.
19271 output_verbose_link_cmd='func_echo_all'
19272
19273 # Archives containing C++ object files must be created using
19274 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19275 # necessary to make sure instantiated templates are included
19276 # in the archive.
19277 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19278 ;;
19279 esac
19280 ;;
19281 esac
19282 ;;
19283
19284 lynxos*)
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288
19289 m88k*)
19290 # FIXME: insert proper C++ library support
19291 ld_shlibs_CXX=no
19292 ;;
19293
19294 mvs*)
19295 case $cc_basename in
19296 cxx*)
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300 *)
19301 # FIXME: insert proper C++ library support
19302 ld_shlibs_CXX=no
19303 ;;
19304 esac
19305 ;;
19306
19307 netbsd*)
19308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19309 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19310 wlarc=
19311 hardcode_libdir_flag_spec_CXX='-R$libdir'
19312 hardcode_direct_CXX=yes
19313 hardcode_shlibpath_var_CXX=no
19314 fi
19315 # Workaround some broken pre-1.5 toolchains
19316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19317 ;;
19318
19319 *nto* | *qnx*)
19320 ld_shlibs_CXX=yes
19321 ;;
19322
19323 openbsd2*)
19324 # C++ shared libraries are fairly broken
19325 ld_shlibs_CXX=no
19326 ;;
19327
19328 openbsd*)
19329 if test -f /usr/libexec/ld.so; then
19330 hardcode_direct_CXX=yes
19331 hardcode_shlibpath_var_CXX=no
19332 hardcode_direct_absolute_CXX=yes
19333 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19336 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19337 export_dynamic_flag_spec_CXX='${wl}-E'
19338 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19339 fi
19340 output_verbose_link_cmd=func_echo_all
19341 else
19342 ld_shlibs_CXX=no
19343 fi
19344 ;;
19345
19346 osf3* | osf4* | osf5*)
19347 case $cc_basename in
19348 KCC*)
19349 # Kuck and Associates, Inc. (KAI) C++ Compiler
19350
19351 # KCC will only create a shared library if the output file
19352 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19353 # to its proper name (with version) after linking.
19354 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'
19355
19356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19357 hardcode_libdir_separator_CXX=:
19358
19359 # Archives containing C++ object files must be created using
19360 # the KAI C++ compiler.
19361 case $host in
19362 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19363 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19364 esac
19365 ;;
19366 RCC*)
19367 # Rational C++ 2.4.1
19368 # FIXME: insert proper C++ library support
19369 ld_shlibs_CXX=no
19370 ;;
19371 cxx*)
19372 case $host in
19373 osf3*)
19374 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19375 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'
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19377 ;;
19378 *)
19379 allow_undefined_flag_CXX=' -expect_unresolved \*'
19380 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'
19381 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19382 echo "-hidden">> $lib.exp~
19383 $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~
19384 $RM $lib.exp'
19385 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19386 ;;
19387 esac
19388
19389 hardcode_libdir_separator_CXX=:
19390
19391 # Commands to make compiler produce verbose output that lists
19392 # what "hidden" libraries, object files and flags are used when
19393 # linking a shared library.
19394 #
19395 # There doesn't appear to be a way to prevent this compiler from
19396 # explicitly linking system object files so we need to strip them
19397 # from the output so that they don't get included in the library
19398 # dependencies.
19399 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"'
19400 ;;
19401 *)
19402 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19403 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19404 case $host in
19405 osf3*)
19406 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'
19407 ;;
19408 *)
19409 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'
19410 ;;
19411 esac
19412
19413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19414 hardcode_libdir_separator_CXX=:
19415
19416 # Commands to make compiler produce verbose output that lists
19417 # what "hidden" libraries, object files and flags are used when
19418 # linking a shared library.
19419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19420
19421 else
19422 # FIXME: insert proper C++ library support
19423 ld_shlibs_CXX=no
19424 fi
19425 ;;
19426 esac
19427 ;;
19428
19429 psos*)
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19432 ;;
19433
19434 sunos4*)
19435 case $cc_basename in
19436 CC*)
19437 # Sun C++ 4.x
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441 lcc*)
19442 # Lucid
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19445 ;;
19446 *)
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19449 ;;
19450 esac
19451 ;;
19452
19453 solaris*)
19454 case $cc_basename in
19455 CC*)
19456 # Sun C++ 4.2, 5.x and Centerline C++
19457 archive_cmds_need_lc_CXX=yes
19458 no_undefined_flag_CXX=' -zdefs'
19459 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19460 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19461 $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'
19462
19463 hardcode_libdir_flag_spec_CXX='-R$libdir'
19464 hardcode_shlibpath_var_CXX=no
19465 case $host_os in
19466 solaris2.[0-5] | solaris2.[0-5].*) ;;
19467 *)
19468 # The compiler driver will combine and reorder linker options,
19469 # but understands `-z linker_flag'.
19470 # Supported since Solaris 2.6 (maybe 2.5.1?)
19471 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19472 ;;
19473 esac
19474 link_all_deplibs_CXX=yes
19475
19476 output_verbose_link_cmd='func_echo_all'
19477
19478 # Archives containing C++ object files must be created using
19479 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19480 # necessary to make sure instantiated templates are included
19481 # in the archive.
19482 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19483 ;;
19484 gcx*)
19485 # Green Hills C++ Compiler
19486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19487
19488 # The C++ compiler must be used to create the archive.
19489 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19490 ;;
19491 *)
19492 # GNU C++ compiler with Solaris linker
19493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19494 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19495 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19496 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19497 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19498 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19499
19500 # Commands to make compiler produce verbose output that lists
19501 # what "hidden" libraries, object files and flags are used when
19502 # linking a shared library.
19503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19504 else
19505 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19506 # platform.
19507 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19509 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19510
19511 # Commands to make compiler produce verbose output that lists
19512 # what "hidden" libraries, object files and flags are used when
19513 # linking a shared library.
19514 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19515 fi
19516
19517 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19518 case $host_os in
19519 solaris2.[0-5] | solaris2.[0-5].*) ;;
19520 *)
19521 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19522 ;;
19523 esac
19524 fi
19525 ;;
19526 esac
19527 ;;
19528
19529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19530 no_undefined_flag_CXX='${wl}-z,text'
19531 archive_cmds_need_lc_CXX=no
19532 hardcode_shlibpath_var_CXX=no
19533 runpath_var='LD_RUN_PATH'
19534
19535 case $cc_basename in
19536 CC*)
19537 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19539 ;;
19540 *)
19541 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19542 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19543 ;;
19544 esac
19545 ;;
19546
19547 sysv5* | sco3.2v5* | sco5v6*)
19548 # Note: We can NOT use -z defs as we might desire, because we do not
19549 # link with -lc, and that would cause any symbols used from libc to
19550 # always be unresolved, which means just about no library would
19551 # ever link correctly. If we're not using GNU ld we use -z text
19552 # though, which does catch some bad symbols but isn't as heavy-handed
19553 # as -z defs.
19554 no_undefined_flag_CXX='${wl}-z,text'
19555 allow_undefined_flag_CXX='${wl}-z,nodefs'
19556 archive_cmds_need_lc_CXX=no
19557 hardcode_shlibpath_var_CXX=no
19558 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19559 hardcode_libdir_separator_CXX=':'
19560 link_all_deplibs_CXX=yes
19561 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19562 runpath_var='LD_RUN_PATH'
19563
19564 case $cc_basename in
19565 CC*)
19566 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19568 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19569 '"$old_archive_cmds_CXX"
19570 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19571 '"$reload_cmds_CXX"
19572 ;;
19573 *)
19574 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19575 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19576 ;;
19577 esac
19578 ;;
19579
19580 tandem*)
19581 case $cc_basename in
19582 NCC*)
19583 # NonStop-UX NCC 3.20
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19586 ;;
19587 *)
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19590 ;;
19591 esac
19592 ;;
19593
19594 vxworks*)
19595 # FIXME: insert proper C++ library support
19596 ld_shlibs_CXX=no
19597 ;;
19598
19599 *)
19600 # FIXME: insert proper C++ library support
19601 ld_shlibs_CXX=no
19602 ;;
19603 esac
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no && can_build_shared=no
19608
19609 GCC_CXX="$GXX"
19610 LD_CXX="$LD"
19611
19612 ## CAVEAT EMPTOR:
19613 ## There is no encapsulation within the following macros, do not change
19614 ## the running order or otherwise move them around unless you know exactly
19615 ## what you are doing...
19616 # Dependencies to place before and after the object being linked:
19617 predep_objects_CXX=
19618 postdep_objects_CXX=
19619 predeps_CXX=
19620 postdeps_CXX=
19621 compiler_lib_search_path_CXX=
19622
19623 cat > conftest.$ac_ext <<_LT_EOF
19624 class Foo
19625 {
19626 public:
19627 Foo (void) { a = 0; }
19628 private:
19629 int a;
19630 };
19631 _LT_EOF
19632
19633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19634 (eval $ac_compile) 2>&5
19635 ac_status=$?
19636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19637 test $ac_status = 0; }; then
19638 # Parse the compiler output and extract the necessary
19639 # objects, libraries and library flags.
19640
19641 # Sentinel used to keep track of whether or not we are before
19642 # the conftest object file.
19643 pre_test_object_deps_done=no
19644
19645 for p in `eval "$output_verbose_link_cmd"`; do
19646 case $p in
19647
19648 -L* | -R* | -l*)
19649 # Some compilers place space between "-{L,R}" and the path.
19650 # Remove the space.
19651 if test $p = "-L" ||
19652 test $p = "-R"; then
19653 prev=$p
19654 continue
19655 else
19656 prev=
19657 fi
19658
19659 if test "$pre_test_object_deps_done" = no; then
19660 case $p in
19661 -L* | -R*)
19662 # Internal compiler library paths should come after those
19663 # provided the user. The postdeps already come after the
19664 # user supplied libs so there is no need to process them.
19665 if test -z "$compiler_lib_search_path_CXX"; then
19666 compiler_lib_search_path_CXX="${prev}${p}"
19667 else
19668 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19669 fi
19670 ;;
19671 # The "-l" case would never come before the object being
19672 # linked, so don't bother handling this case.
19673 esac
19674 else
19675 if test -z "$postdeps_CXX"; then
19676 postdeps_CXX="${prev}${p}"
19677 else
19678 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19679 fi
19680 fi
19681 ;;
19682
19683 *.$objext)
19684 # This assumes that the test object file only shows up
19685 # once in the compiler output.
19686 if test "$p" = "conftest.$objext"; then
19687 pre_test_object_deps_done=yes
19688 continue
19689 fi
19690
19691 if test "$pre_test_object_deps_done" = no; then
19692 if test -z "$predep_objects_CXX"; then
19693 predep_objects_CXX="$p"
19694 else
19695 predep_objects_CXX="$predep_objects_CXX $p"
19696 fi
19697 else
19698 if test -z "$postdep_objects_CXX"; then
19699 postdep_objects_CXX="$p"
19700 else
19701 postdep_objects_CXX="$postdep_objects_CXX $p"
19702 fi
19703 fi
19704 ;;
19705
19706 *) ;; # Ignore the rest.
19707
19708 esac
19709 done
19710
19711 # Clean up.
19712 rm -f a.out a.exe
19713 else
19714 echo "libtool.m4: error: problem compiling CXX test program"
19715 fi
19716
19717 $RM -f confest.$objext
19718
19719 # PORTME: override above test on systems where it is broken
19720 case $host_os in
19721 interix[3-9]*)
19722 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19723 # hack all around it, let's just trust "g++" to DTRT.
19724 predep_objects_CXX=
19725 postdep_objects_CXX=
19726 postdeps_CXX=
19727 ;;
19728
19729 linux*)
19730 case `$CC -V 2>&1 | sed 5q` in
19731 *Sun\ C*)
19732 # Sun C++ 5.9
19733
19734 # The more standards-conforming stlport4 library is
19735 # incompatible with the Cstd library. Avoid specifying
19736 # it if it's in CXXFLAGS. Ignore libCrun as
19737 # -library=stlport4 depends on it.
19738 case " $CXX $CXXFLAGS " in
19739 *" -library=stlport4 "*)
19740 solaris_use_stlport4=yes
19741 ;;
19742 esac
19743
19744 if test "$solaris_use_stlport4" != yes; then
19745 postdeps_CXX='-library=Cstd -library=Crun'
19746 fi
19747 ;;
19748 esac
19749 ;;
19750
19751 solaris*)
19752 case $cc_basename in
19753 CC*)
19754 # The more standards-conforming stlport4 library is
19755 # incompatible with the Cstd library. Avoid specifying
19756 # it if it's in CXXFLAGS. Ignore libCrun as
19757 # -library=stlport4 depends on it.
19758 case " $CXX $CXXFLAGS " in
19759 *" -library=stlport4 "*)
19760 solaris_use_stlport4=yes
19761 ;;
19762 esac
19763
19764 # Adding this requires a known-good setup of shared libraries for
19765 # Sun compiler versions before 5.6, else PIC objects from an old
19766 # archive will be linked into the output, leading to subtle bugs.
19767 if test "$solaris_use_stlport4" != yes; then
19768 postdeps_CXX='-library=Cstd -library=Crun'
19769 fi
19770 ;;
19771 esac
19772 ;;
19773 esac
19774
19775
19776 case " $postdeps_CXX " in
19777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19778 esac
19779 compiler_lib_search_dirs_CXX=
19780 if test -n "${compiler_lib_search_path_CXX}"; then
19781 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19782 fi
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814 lt_prog_compiler_wl_CXX=
19815 lt_prog_compiler_pic_CXX=
19816 lt_prog_compiler_static_CXX=
19817
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19819 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19820
19821 # C++ specific cases for pic, static, wl, etc.
19822 if test "$GXX" = yes; then
19823 lt_prog_compiler_wl_CXX='-Wl,'
19824 lt_prog_compiler_static_CXX='-static'
19825
19826 case $host_os in
19827 aix*)
19828 # All AIX code is PIC.
19829 if test "$host_cpu" = ia64; then
19830 # AIX 5 now supports IA64 processor
19831 lt_prog_compiler_static_CXX='-Bstatic'
19832 fi
19833 lt_prog_compiler_pic_CXX='-fPIC'
19834 ;;
19835
19836 amigaos*)
19837 case $host_cpu in
19838 powerpc)
19839 # see comment about AmigaOS4 .so support
19840 lt_prog_compiler_pic_CXX='-fPIC'
19841 ;;
19842 m68k)
19843 # FIXME: we need at least 68020 code to build shared libraries, but
19844 # adding the `-m68020' flag to GCC prevents building anything better,
19845 # like `-m68040'.
19846 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19847 ;;
19848 esac
19849 ;;
19850
19851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19852 # PIC is the default for these OSes.
19853 ;;
19854 mingw* | cygwin* | os2* | pw32* | cegcc*)
19855 # This hack is so that the source file can tell whether it is being
19856 # built for inclusion in a dll (and should export symbols for example).
19857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19858 # (--disable-auto-import) libraries
19859 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19860 ;;
19861 darwin* | rhapsody*)
19862 # PIC is the default on this platform
19863 # Common symbols not allowed in MH_DYLIB files
19864 lt_prog_compiler_pic_CXX='-fno-common'
19865 ;;
19866 *djgpp*)
19867 # DJGPP does not support shared libraries at all
19868 lt_prog_compiler_pic_CXX=
19869 ;;
19870 haiku*)
19871 # PIC is the default for Haiku.
19872 # The "-static" flag exists, but is broken.
19873 lt_prog_compiler_static_CXX=
19874 ;;
19875 interix[3-9]*)
19876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19877 # Instead, we relocate shared libraries at runtime.
19878 ;;
19879 sysv4*MP*)
19880 if test -d /usr/nec; then
19881 lt_prog_compiler_pic_CXX=-Kconform_pic
19882 fi
19883 ;;
19884 hpux*)
19885 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19886 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19887 # sets the default TLS model and affects inlining.
19888 case $host_cpu in
19889 hppa*64*)
19890 ;;
19891 *)
19892 lt_prog_compiler_pic_CXX='-fPIC'
19893 ;;
19894 esac
19895 ;;
19896 *qnx* | *nto*)
19897 # QNX uses GNU C++, but need to define -shared option too, otherwise
19898 # it will coredump.
19899 lt_prog_compiler_pic_CXX='-fPIC -shared'
19900 ;;
19901 *)
19902 lt_prog_compiler_pic_CXX='-fPIC'
19903 ;;
19904 esac
19905 else
19906 case $host_os in
19907 aix[4-9]*)
19908 # All AIX code is PIC.
19909 if test "$host_cpu" = ia64; then
19910 # AIX 5 now supports IA64 processor
19911 lt_prog_compiler_static_CXX='-Bstatic'
19912 else
19913 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19914 fi
19915 ;;
19916 chorus*)
19917 case $cc_basename in
19918 cxch68*)
19919 # Green Hills C++ Compiler
19920 # _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"
19921 ;;
19922 esac
19923 ;;
19924 dgux*)
19925 case $cc_basename in
19926 ec++*)
19927 lt_prog_compiler_pic_CXX='-KPIC'
19928 ;;
19929 ghcx*)
19930 # Green Hills C++ Compiler
19931 lt_prog_compiler_pic_CXX='-pic'
19932 ;;
19933 *)
19934 ;;
19935 esac
19936 ;;
19937 freebsd* | dragonfly*)
19938 # FreeBSD uses GNU C++
19939 ;;
19940 hpux9* | hpux10* | hpux11*)
19941 case $cc_basename in
19942 CC*)
19943 lt_prog_compiler_wl_CXX='-Wl,'
19944 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19945 if test "$host_cpu" != ia64; then
19946 lt_prog_compiler_pic_CXX='+Z'
19947 fi
19948 ;;
19949 aCC*)
19950 lt_prog_compiler_wl_CXX='-Wl,'
19951 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19952 case $host_cpu in
19953 hppa*64*|ia64*)
19954 # +Z the default
19955 ;;
19956 *)
19957 lt_prog_compiler_pic_CXX='+Z'
19958 ;;
19959 esac
19960 ;;
19961 *)
19962 ;;
19963 esac
19964 ;;
19965 interix*)
19966 # This is c89, which is MS Visual C++ (no shared libs)
19967 # Anyone wants to do a port?
19968 ;;
19969 irix5* | irix6* | nonstopux*)
19970 case $cc_basename in
19971 CC*)
19972 lt_prog_compiler_wl_CXX='-Wl,'
19973 lt_prog_compiler_static_CXX='-non_shared'
19974 # CC pic flag -KPIC is the default.
19975 ;;
19976 *)
19977 ;;
19978 esac
19979 ;;
19980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19981 case $cc_basename in
19982 KCC*)
19983 # KAI C++ Compiler
19984 lt_prog_compiler_wl_CXX='--backend -Wl,'
19985 lt_prog_compiler_pic_CXX='-fPIC'
19986 ;;
19987 ecpc* )
19988 # old Intel C++ for x86_64 which still supported -KPIC.
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_pic_CXX='-KPIC'
19991 lt_prog_compiler_static_CXX='-static'
19992 ;;
19993 icpc* )
19994 # Intel C++, used to be incompatible with GCC.
19995 # ICC 10 doesn't accept -KPIC any more.
19996 lt_prog_compiler_wl_CXX='-Wl,'
19997 lt_prog_compiler_pic_CXX='-fPIC'
19998 lt_prog_compiler_static_CXX='-static'
19999 ;;
20000 pgCC* | pgcpp*)
20001 # Portland Group C++ compiler
20002 lt_prog_compiler_wl_CXX='-Wl,'
20003 lt_prog_compiler_pic_CXX='-fpic'
20004 lt_prog_compiler_static_CXX='-Bstatic'
20005 ;;
20006 cxx*)
20007 # Compaq C++
20008 # Make sure the PIC flag is empty. It appears that all Alpha
20009 # Linux and Compaq Tru64 Unix objects are PIC.
20010 lt_prog_compiler_pic_CXX=
20011 lt_prog_compiler_static_CXX='-non_shared'
20012 ;;
20013 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20014 # IBM XL 8.0, 9.0 on PPC and BlueGene
20015 lt_prog_compiler_wl_CXX='-Wl,'
20016 lt_prog_compiler_pic_CXX='-qpic'
20017 lt_prog_compiler_static_CXX='-qstaticlink'
20018 ;;
20019 *)
20020 case `$CC -V 2>&1 | sed 5q` in
20021 *Sun\ C*)
20022 # Sun C++ 5.9
20023 lt_prog_compiler_pic_CXX='-KPIC'
20024 lt_prog_compiler_static_CXX='-Bstatic'
20025 lt_prog_compiler_wl_CXX='-Qoption ld '
20026 ;;
20027 esac
20028 ;;
20029 esac
20030 ;;
20031 lynxos*)
20032 ;;
20033 m88k*)
20034 ;;
20035 mvs*)
20036 case $cc_basename in
20037 cxx*)
20038 lt_prog_compiler_pic_CXX='-W c,exportall'
20039 ;;
20040 *)
20041 ;;
20042 esac
20043 ;;
20044 netbsd*)
20045 ;;
20046 *qnx* | *nto*)
20047 # QNX uses GNU C++, but need to define -shared option too, otherwise
20048 # it will coredump.
20049 lt_prog_compiler_pic_CXX='-fPIC -shared'
20050 ;;
20051 osf3* | osf4* | osf5*)
20052 case $cc_basename in
20053 KCC*)
20054 lt_prog_compiler_wl_CXX='--backend -Wl,'
20055 ;;
20056 RCC*)
20057 # Rational C++ 2.4.1
20058 lt_prog_compiler_pic_CXX='-pic'
20059 ;;
20060 cxx*)
20061 # Digital/Compaq C++
20062 lt_prog_compiler_wl_CXX='-Wl,'
20063 # Make sure the PIC flag is empty. It appears that all Alpha
20064 # Linux and Compaq Tru64 Unix objects are PIC.
20065 lt_prog_compiler_pic_CXX=
20066 lt_prog_compiler_static_CXX='-non_shared'
20067 ;;
20068 *)
20069 ;;
20070 esac
20071 ;;
20072 psos*)
20073 ;;
20074 solaris*)
20075 case $cc_basename in
20076 CC*)
20077 # Sun C++ 4.2, 5.x and Centerline C++
20078 lt_prog_compiler_pic_CXX='-KPIC'
20079 lt_prog_compiler_static_CXX='-Bstatic'
20080 lt_prog_compiler_wl_CXX='-Qoption ld '
20081 ;;
20082 gcx*)
20083 # Green Hills C++ Compiler
20084 lt_prog_compiler_pic_CXX='-PIC'
20085 ;;
20086 *)
20087 ;;
20088 esac
20089 ;;
20090 sunos4*)
20091 case $cc_basename in
20092 CC*)
20093 # Sun C++ 4.x
20094 lt_prog_compiler_pic_CXX='-pic'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20096 ;;
20097 lcc*)
20098 # Lucid
20099 lt_prog_compiler_pic_CXX='-pic'
20100 ;;
20101 *)
20102 ;;
20103 esac
20104 ;;
20105 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20106 case $cc_basename in
20107 CC*)
20108 lt_prog_compiler_wl_CXX='-Wl,'
20109 lt_prog_compiler_pic_CXX='-KPIC'
20110 lt_prog_compiler_static_CXX='-Bstatic'
20111 ;;
20112 esac
20113 ;;
20114 tandem*)
20115 case $cc_basename in
20116 NCC*)
20117 # NonStop-UX NCC 3.20
20118 lt_prog_compiler_pic_CXX='-KPIC'
20119 ;;
20120 *)
20121 ;;
20122 esac
20123 ;;
20124 vxworks*)
20125 ;;
20126 *)
20127 lt_prog_compiler_can_build_shared_CXX=no
20128 ;;
20129 esac
20130 fi
20131
20132 case $host_os in
20133 # For platforms which do not support PIC, -DPIC is meaningless:
20134 *djgpp*)
20135 lt_prog_compiler_pic_CXX=
20136 ;;
20137 *)
20138 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20139 ;;
20140 esac
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20142 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20143
20144
20145
20146 #
20147 # Check to make sure the PIC flag actually works.
20148 #
20149 if test -n "$lt_prog_compiler_pic_CXX"; then
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20152 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20155 lt_cv_prog_compiler_pic_works_CXX=no
20156 ac_outfile=conftest.$ac_objext
20157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20158 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20159 # Insert the option either (1) after the last *FLAGS variable, or
20160 # (2) before a word containing "conftest.", or (3) at the end.
20161 # Note that $ac_compile itself does not contain backslashes and begins
20162 # with a dollar sign (not a hyphen), so the echo should work correctly.
20163 # The option is referenced via a variable to avoid confusing sed.
20164 lt_compile=`echo "$ac_compile" | $SED \
20165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167 -e 's:$: $lt_compiler_flag:'`
20168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20169 (eval "$lt_compile" 2>conftest.err)
20170 ac_status=$?
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 if (exit $ac_status) && test -s "$ac_outfile"; then
20174 # The compiler can only warn and ignore the option if not recognized
20175 # So say no if there are warnings other than the usual output.
20176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20179 lt_cv_prog_compiler_pic_works_CXX=yes
20180 fi
20181 fi
20182 $RM conftest*
20183
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20186 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20187
20188 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20189 case $lt_prog_compiler_pic_CXX in
20190 "" | " "*) ;;
20191 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20192 esac
20193 else
20194 lt_prog_compiler_pic_CXX=
20195 lt_prog_compiler_can_build_shared_CXX=no
20196 fi
20197
20198 fi
20199
20200
20201
20202 #
20203 # Check to make sure the static flag actually works.
20204 #
20205 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20207 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20208 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20209 $as_echo_n "(cached) " >&6
20210 else
20211 lt_cv_prog_compiler_static_works_CXX=no
20212 save_LDFLAGS="$LDFLAGS"
20213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20216 # The linker can only warn and ignore the option if not recognized
20217 # So say no if there are warnings
20218 if test -s conftest.err; then
20219 # Append any errors to the config.log.
20220 cat conftest.err 1>&5
20221 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20223 if diff conftest.exp conftest.er2 >/dev/null; then
20224 lt_cv_prog_compiler_static_works_CXX=yes
20225 fi
20226 else
20227 lt_cv_prog_compiler_static_works_CXX=yes
20228 fi
20229 fi
20230 $RM -r conftest*
20231 LDFLAGS="$save_LDFLAGS"
20232
20233 fi
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20235 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20236
20237 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20238 :
20239 else
20240 lt_prog_compiler_static_CXX=
20241 fi
20242
20243
20244
20245
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20247 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20248 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20249 $as_echo_n "(cached) " >&6
20250 else
20251 lt_cv_prog_compiler_c_o_CXX=no
20252 $RM -r conftest 2>/dev/null
20253 mkdir conftest
20254 cd conftest
20255 mkdir out
20256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20257
20258 lt_compiler_flag="-o out/conftest2.$ac_objext"
20259 # Insert the option either (1) after the last *FLAGS variable, or
20260 # (2) before a word containing "conftest.", or (3) at the end.
20261 # Note that $ac_compile itself does not contain backslashes and begins
20262 # with a dollar sign (not a hyphen), so the echo should work correctly.
20263 lt_compile=`echo "$ac_compile" | $SED \
20264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20266 -e 's:$: $lt_compiler_flag:'`
20267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20268 (eval "$lt_compile" 2>out/conftest.err)
20269 ac_status=$?
20270 cat out/conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20273 then
20274 # The compiler can only warn and ignore the option if not recognized
20275 # So say no if there are warnings
20276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20277 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20278 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20279 lt_cv_prog_compiler_c_o_CXX=yes
20280 fi
20281 fi
20282 chmod u+w . 2>&5
20283 $RM conftest*
20284 # SGI C++ compiler will create directory out/ii_files/ for
20285 # template instantiation
20286 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20287 $RM out/* && rmdir out
20288 cd ..
20289 $RM -r conftest
20290 $RM conftest*
20291
20292 fi
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20294 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20295
20296
20297
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20300 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20301 $as_echo_n "(cached) " >&6
20302 else
20303 lt_cv_prog_compiler_c_o_CXX=no
20304 $RM -r conftest 2>/dev/null
20305 mkdir conftest
20306 cd conftest
20307 mkdir out
20308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20309
20310 lt_compiler_flag="-o out/conftest2.$ac_objext"
20311 # Insert the option either (1) after the last *FLAGS variable, or
20312 # (2) before a word containing "conftest.", or (3) at the end.
20313 # Note that $ac_compile itself does not contain backslashes and begins
20314 # with a dollar sign (not a hyphen), so the echo should work correctly.
20315 lt_compile=`echo "$ac_compile" | $SED \
20316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20318 -e 's:$: $lt_compiler_flag:'`
20319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20320 (eval "$lt_compile" 2>out/conftest.err)
20321 ac_status=$?
20322 cat out/conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20325 then
20326 # The compiler can only warn and ignore the option if not recognized
20327 # So say no if there are warnings
20328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20331 lt_cv_prog_compiler_c_o_CXX=yes
20332 fi
20333 fi
20334 chmod u+w . 2>&5
20335 $RM conftest*
20336 # SGI C++ compiler will create directory out/ii_files/ for
20337 # template instantiation
20338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20339 $RM out/* && rmdir out
20340 cd ..
20341 $RM -r conftest
20342 $RM conftest*
20343
20344 fi
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20346 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20347
20348
20349
20350
20351 hard_links="nottested"
20352 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20353 # do not overwrite the value of need_locks provided by the user
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20355 $as_echo_n "checking if we can lock with hard links... " >&6; }
20356 hard_links=yes
20357 $RM conftest*
20358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20359 touch conftest.a
20360 ln conftest.a conftest.b 2>&5 || hard_links=no
20361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20363 $as_echo "$hard_links" >&6; }
20364 if test "$hard_links" = no; then
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20366 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20367 need_locks=warn
20368 fi
20369 else
20370 need_locks=no
20371 fi
20372
20373
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20376 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20377
20378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20379 case $host_os in
20380 aix[4-9]*)
20381 # If we're using GNU nm, then we don't want the "-C" option.
20382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20383 # Also, AIX nm treats weak defined symbols like other global defined
20384 # symbols, whereas GNU nm marks them as "W".
20385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20386 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'
20387 else
20388 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20389 fi
20390 ;;
20391 pw32*)
20392 export_symbols_cmds_CXX="$ltdll_cmds"
20393 ;;
20394 cygwin* | mingw* | cegcc*)
20395 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'
20396 ;;
20397 *)
20398 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20399 ;;
20400 esac
20401 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20402
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20404 $as_echo "$ld_shlibs_CXX" >&6; }
20405 test "$ld_shlibs_CXX" = no && can_build_shared=no
20406
20407 with_gnu_ld_CXX=$with_gnu_ld
20408
20409
20410
20411
20412
20413
20414 #
20415 # Do we need to explicitly link libc?
20416 #
20417 case "x$archive_cmds_need_lc_CXX" in
20418 x|xyes)
20419 # Assume -lc should be added
20420 archive_cmds_need_lc_CXX=yes
20421
20422 if test "$enable_shared" = yes && test "$GCC" = yes; then
20423 case $archive_cmds_CXX in
20424 *'~'*)
20425 # FIXME: we may have to deal with multi-command sequences.
20426 ;;
20427 '$CC '*)
20428 # Test whether the compiler implicitly links with -lc since on some
20429 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20430 # to ld, don't add -lc before -lgcc.
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20432 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20433 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20434 $as_echo_n "(cached) " >&6
20435 else
20436 $RM conftest*
20437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20438
20439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20440 (eval $ac_compile) 2>&5
20441 ac_status=$?
20442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20443 test $ac_status = 0; } 2>conftest.err; then
20444 soname=conftest
20445 lib=conftest
20446 libobjs=conftest.$ac_objext
20447 deplibs=
20448 wl=$lt_prog_compiler_wl_CXX
20449 pic_flag=$lt_prog_compiler_pic_CXX
20450 compiler_flags=-v
20451 linker_flags=-v
20452 verstring=
20453 output_objdir=.
20454 libname=conftest
20455 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20456 allow_undefined_flag_CXX=
20457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20458 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20459 ac_status=$?
20460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20461 test $ac_status = 0; }
20462 then
20463 lt_cv_archive_cmds_need_lc_CXX=no
20464 else
20465 lt_cv_archive_cmds_need_lc_CXX=yes
20466 fi
20467 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20468 else
20469 cat conftest.err 1>&5
20470 fi
20471 $RM conftest*
20472
20473 fi
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20475 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20476 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20477 ;;
20478 esac
20479 fi
20480 ;;
20481 esac
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20548
20549 library_names_spec=
20550 libname_spec='lib$name'
20551 soname_spec=
20552 shrext_cmds=".so"
20553 postinstall_cmds=
20554 postuninstall_cmds=
20555 finish_cmds=
20556 finish_eval=
20557 shlibpath_var=
20558 shlibpath_overrides_runpath=unknown
20559 version_type=none
20560 dynamic_linker="$host_os ld.so"
20561 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20562 need_lib_prefix=unknown
20563 hardcode_into_libs=no
20564
20565 # when you set need_version to no, make sure it does not cause -set_version
20566 # flags to be left without arguments
20567 need_version=unknown
20568
20569 case $host_os in
20570 aix3*)
20571 version_type=linux
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20573 shlibpath_var=LIBPATH
20574
20575 # AIX 3 has no versioning support, so we append a major version to the name.
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 ;;
20578
20579 aix[4-9]*)
20580 version_type=linux
20581 need_lib_prefix=no
20582 need_version=no
20583 hardcode_into_libs=yes
20584 if test "$host_cpu" = ia64; then
20585 # AIX 5 supports IA64
20586 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20587 shlibpath_var=LD_LIBRARY_PATH
20588 else
20589 # With GCC up to 2.95.x, collect2 would create an import file
20590 # for dependence libraries. The import file would start with
20591 # the line `#! .'. This would cause the generated library to
20592 # depend on `.', always an invalid library. This was fixed in
20593 # development snapshots of GCC prior to 3.0.
20594 case $host_os in
20595 aix4 | aix4.[01] | aix4.[01].*)
20596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20597 echo ' yes '
20598 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20599 :
20600 else
20601 can_build_shared=no
20602 fi
20603 ;;
20604 esac
20605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20606 # soname into executable. Probably we can add versioning support to
20607 # collect2, so additional links can be useful in future.
20608 if test "$aix_use_runtimelinking" = yes; then
20609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20610 # instead of lib<name>.a to let people know that these are not
20611 # typical AIX shared libraries.
20612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20613 else
20614 # We preserve .a as extension for shared libraries through AIX4.2
20615 # and later when we are not doing run time linking.
20616 library_names_spec='${libname}${release}.a $libname.a'
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 fi
20619 shlibpath_var=LIBPATH
20620 fi
20621 ;;
20622
20623 amigaos*)
20624 case $host_cpu in
20625 powerpc)
20626 # Since July 2007 AmigaOS4 officially supports .so libraries.
20627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20629 ;;
20630 m68k)
20631 library_names_spec='$libname.ixlibrary $libname.a'
20632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20633 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'
20634 ;;
20635 esac
20636 ;;
20637
20638 beos*)
20639 library_names_spec='${libname}${shared_ext}'
20640 dynamic_linker="$host_os ld.so"
20641 shlibpath_var=LIBRARY_PATH
20642 ;;
20643
20644 bsdi[45]*)
20645 version_type=linux
20646 need_version=no
20647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648 soname_spec='${libname}${release}${shared_ext}$major'
20649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20653 # the default ld.so.conf also contains /usr/contrib/lib and
20654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20655 # libtool to hard-code these into programs
20656 ;;
20657
20658 cygwin* | mingw* | pw32* | cegcc*)
20659 version_type=windows
20660 shrext_cmds=".dll"
20661 need_version=no
20662 need_lib_prefix=no
20663
20664 case $GCC,$host_os in
20665 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20666 library_names_spec='$libname.dll.a'
20667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20668 postinstall_cmds='base_file=`basename \${file}`~
20669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20670 dldir=$destdir/`dirname \$dlpath`~
20671 test -d \$dldir || mkdir -p \$dldir~
20672 $install_prog $dir/$dlname \$dldir/$dlname~
20673 chmod a+x \$dldir/$dlname~
20674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20676 fi'
20677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20678 dlpath=$dir/\$dldll~
20679 $RM \$dlpath'
20680 shlibpath_overrides_runpath=yes
20681
20682 case $host_os in
20683 cygwin*)
20684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686
20687 ;;
20688 mingw* | cegcc*)
20689 # MinGW DLLs use traditional 'lib' prefix
20690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20691 ;;
20692 pw32*)
20693 # pw32 DLLs use 'pw' prefix rather than 'lib'
20694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20695 ;;
20696 esac
20697 ;;
20698
20699 *)
20700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20701 ;;
20702 esac
20703 dynamic_linker='Win32 ld.exe'
20704 # FIXME: first we should search . and the directory the executable is in
20705 shlibpath_var=PATH
20706 ;;
20707
20708 darwin* | rhapsody*)
20709 dynamic_linker="$host_os dyld"
20710 version_type=darwin
20711 need_lib_prefix=no
20712 need_version=no
20713 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20714 soname_spec='${libname}${release}${major}$shared_ext'
20715 shlibpath_overrides_runpath=yes
20716 shlibpath_var=DYLD_LIBRARY_PATH
20717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20718
20719 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20720 ;;
20721
20722 dgux*)
20723 version_type=linux
20724 need_lib_prefix=no
20725 need_version=no
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20727 soname_spec='${libname}${release}${shared_ext}$major'
20728 shlibpath_var=LD_LIBRARY_PATH
20729 ;;
20730
20731 freebsd* | dragonfly*)
20732 # DragonFly does not have aout. When/if they implement a new
20733 # versioning mechanism, adjust this.
20734 if test -x /usr/bin/objformat; then
20735 objformat=`/usr/bin/objformat`
20736 else
20737 case $host_os in
20738 freebsd[23].*) objformat=aout ;;
20739 *) objformat=elf ;;
20740 esac
20741 fi
20742 version_type=freebsd-$objformat
20743 case $version_type in
20744 freebsd-elf*)
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20746 need_version=no
20747 need_lib_prefix=no
20748 ;;
20749 freebsd-*)
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20751 need_version=yes
20752 ;;
20753 esac
20754 shlibpath_var=LD_LIBRARY_PATH
20755 case $host_os in
20756 freebsd2.*)
20757 shlibpath_overrides_runpath=yes
20758 ;;
20759 freebsd3.[01]* | freebsdelf3.[01]*)
20760 shlibpath_overrides_runpath=yes
20761 hardcode_into_libs=yes
20762 ;;
20763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20765 shlibpath_overrides_runpath=no
20766 hardcode_into_libs=yes
20767 ;;
20768 *) # from 4.6 on, and DragonFly
20769 shlibpath_overrides_runpath=yes
20770 hardcode_into_libs=yes
20771 ;;
20772 esac
20773 ;;
20774
20775 gnu*)
20776 version_type=linux
20777 need_lib_prefix=no
20778 need_version=no
20779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20780 soname_spec='${libname}${release}${shared_ext}$major'
20781 shlibpath_var=LD_LIBRARY_PATH
20782 hardcode_into_libs=yes
20783 ;;
20784
20785 haiku*)
20786 version_type=linux
20787 need_lib_prefix=no
20788 need_version=no
20789 dynamic_linker="$host_os runtime_loader"
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LIBRARY_PATH
20793 shlibpath_overrides_runpath=yes
20794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20795 hardcode_into_libs=yes
20796 ;;
20797
20798 hpux9* | hpux10* | hpux11*)
20799 # Give a soname corresponding to the major version so that dld.sl refuses to
20800 # link against other versions.
20801 version_type=sunos
20802 need_lib_prefix=no
20803 need_version=no
20804 case $host_cpu in
20805 ia64*)
20806 shrext_cmds='.so'
20807 hardcode_into_libs=yes
20808 dynamic_linker="$host_os dld.so"
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 if test "X$HPUX_IA64_MODE" = X32; then
20814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20815 else
20816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20817 fi
20818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20819 ;;
20820 hppa*64*)
20821 shrext_cmds='.sl'
20822 hardcode_into_libs=yes
20823 dynamic_linker="$host_os dld.sl"
20824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827 soname_spec='${libname}${release}${shared_ext}$major'
20828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20830 ;;
20831 *)
20832 shrext_cmds='.sl'
20833 dynamic_linker="$host_os dld.sl"
20834 shlibpath_var=SHLIB_PATH
20835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 ;;
20839 esac
20840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20841 postinstall_cmds='chmod 555 $lib'
20842 # or fails outright, so override atomically:
20843 install_override_mode=555
20844 ;;
20845
20846 interix[3-9]*)
20847 version_type=linux
20848 need_lib_prefix=no
20849 need_version=no
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20853 shlibpath_var=LD_LIBRARY_PATH
20854 shlibpath_overrides_runpath=no
20855 hardcode_into_libs=yes
20856 ;;
20857
20858 irix5* | irix6* | nonstopux*)
20859 case $host_os in
20860 nonstopux*) version_type=nonstopux ;;
20861 *)
20862 if test "$lt_cv_prog_gnu_ld" = yes; then
20863 version_type=linux
20864 else
20865 version_type=irix
20866 fi ;;
20867 esac
20868 need_lib_prefix=no
20869 need_version=no
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20872 case $host_os in
20873 irix5* | nonstopux*)
20874 libsuff= shlibsuff=
20875 ;;
20876 *)
20877 case $LD in # libtool.m4 will add one of these switches to LD
20878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20879 libsuff= shlibsuff= libmagic=32-bit;;
20880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20881 libsuff=32 shlibsuff=N32 libmagic=N32;;
20882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20884 *) libsuff= shlibsuff= libmagic=never-match;;
20885 esac
20886 ;;
20887 esac
20888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20889 shlibpath_overrides_runpath=no
20890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20892 hardcode_into_libs=yes
20893 ;;
20894
20895 # No shared lib support for Linux oldld, aout, or coff.
20896 linux*oldld* | linux*aout* | linux*coff*)
20897 dynamic_linker=no
20898 ;;
20899
20900 # This must be Linux ELF.
20901 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20902 version_type=linux
20903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 soname_spec='${libname}${release}${shared_ext}$major'
20907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20908 shlibpath_var=LD_LIBRARY_PATH
20909 shlibpath_overrides_runpath=no
20910
20911 # Some binutils ld are patched to set DT_RUNPATH
20912 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20913 $as_echo_n "(cached) " >&6
20914 else
20915 lt_cv_shlibpath_overrides_runpath=no
20916 save_LDFLAGS=$LDFLAGS
20917 save_libdir=$libdir
20918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922
20923 int
20924 main ()
20925 {
20926
20927 ;
20928 return 0;
20929 }
20930 _ACEOF
20931 if ac_fn_cxx_try_link "$LINENO"; then :
20932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20933 lt_cv_shlibpath_overrides_runpath=yes
20934 fi
20935 fi
20936 rm -f core conftest.err conftest.$ac_objext \
20937 conftest$ac_exeext conftest.$ac_ext
20938 LDFLAGS=$save_LDFLAGS
20939 libdir=$save_libdir
20940
20941 fi
20942
20943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20944
20945 # This implies no fast_install, which is unacceptable.
20946 # Some rework will be needed to allow for fast_install
20947 # before this can be enabled.
20948 hardcode_into_libs=yes
20949
20950 # Append ld.so.conf contents to the search path
20951 if test -f /etc/ld.so.conf; then
20952 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' ' '`
20953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20954 fi
20955
20956 # We used to test for /lib/ld.so.1 and disable shared libraries on
20957 # powerpc, because MkLinux only supported shared libraries with the
20958 # GNU dynamic linker. Since this was broken with cross compilers,
20959 # most powerpc-linux boxes support dynamic linking these days and
20960 # people can always --disable-shared, the test was removed, and we
20961 # assume the GNU/Linux dynamic linker is in use.
20962 dynamic_linker='GNU/Linux ld.so'
20963 ;;
20964
20965 netbsd*)
20966 version_type=sunos
20967 need_lib_prefix=no
20968 need_version=no
20969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20972 dynamic_linker='NetBSD (a.out) ld.so'
20973 else
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20975 soname_spec='${libname}${release}${shared_ext}$major'
20976 dynamic_linker='NetBSD ld.elf_so'
20977 fi
20978 shlibpath_var=LD_LIBRARY_PATH
20979 shlibpath_overrides_runpath=yes
20980 hardcode_into_libs=yes
20981 ;;
20982
20983 newsos6)
20984 version_type=linux
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 shlibpath_overrides_runpath=yes
20988 ;;
20989
20990 *nto* | *qnx*)
20991 version_type=qnx
20992 need_lib_prefix=no
20993 need_version=no
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20996 shlibpath_var=LD_LIBRARY_PATH
20997 shlibpath_overrides_runpath=no
20998 hardcode_into_libs=yes
20999 dynamic_linker='ldqnx.so'
21000 ;;
21001
21002 openbsd*)
21003 version_type=sunos
21004 sys_lib_dlsearch_path_spec="/usr/lib"
21005 need_lib_prefix=no
21006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21007 case $host_os in
21008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21009 *) need_version=no ;;
21010 esac
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21015 case $host_os in
21016 openbsd2.[89] | openbsd2.[89].*)
21017 shlibpath_overrides_runpath=no
21018 ;;
21019 *)
21020 shlibpath_overrides_runpath=yes
21021 ;;
21022 esac
21023 else
21024 shlibpath_overrides_runpath=yes
21025 fi
21026 ;;
21027
21028 os2*)
21029 libname_spec='$name'
21030 shrext_cmds=".dll"
21031 need_lib_prefix=no
21032 library_names_spec='$libname${shared_ext} $libname.a'
21033 dynamic_linker='OS/2 ld.exe'
21034 shlibpath_var=LIBPATH
21035 ;;
21036
21037 osf3* | osf4* | osf5*)
21038 version_type=osf
21039 need_lib_prefix=no
21040 need_version=no
21041 soname_spec='${libname}${release}${shared_ext}$major'
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 shlibpath_var=LD_LIBRARY_PATH
21044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21046 ;;
21047
21048 rdos*)
21049 dynamic_linker=no
21050 ;;
21051
21052 solaris*)
21053 version_type=linux
21054 need_lib_prefix=no
21055 need_version=no
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 soname_spec='${libname}${release}${shared_ext}$major'
21058 shlibpath_var=LD_LIBRARY_PATH
21059 shlibpath_overrides_runpath=yes
21060 hardcode_into_libs=yes
21061 # ldd complains unless libraries are executable
21062 postinstall_cmds='chmod +x $lib'
21063 ;;
21064
21065 sunos4*)
21066 version_type=sunos
21067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21069 shlibpath_var=LD_LIBRARY_PATH
21070 shlibpath_overrides_runpath=yes
21071 if test "$with_gnu_ld" = yes; then
21072 need_lib_prefix=no
21073 fi
21074 need_version=yes
21075 ;;
21076
21077 sysv4 | sysv4.3*)
21078 version_type=linux
21079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21080 soname_spec='${libname}${release}${shared_ext}$major'
21081 shlibpath_var=LD_LIBRARY_PATH
21082 case $host_vendor in
21083 sni)
21084 shlibpath_overrides_runpath=no
21085 need_lib_prefix=no
21086 runpath_var=LD_RUN_PATH
21087 ;;
21088 siemens)
21089 need_lib_prefix=no
21090 ;;
21091 motorola)
21092 need_lib_prefix=no
21093 need_version=no
21094 shlibpath_overrides_runpath=no
21095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21096 ;;
21097 esac
21098 ;;
21099
21100 sysv4*MP*)
21101 if test -d /usr/nec ;then
21102 version_type=linux
21103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21104 soname_spec='$libname${shared_ext}.$major'
21105 shlibpath_var=LD_LIBRARY_PATH
21106 fi
21107 ;;
21108
21109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21110 version_type=freebsd-elf
21111 need_lib_prefix=no
21112 need_version=no
21113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 shlibpath_var=LD_LIBRARY_PATH
21116 shlibpath_overrides_runpath=yes
21117 hardcode_into_libs=yes
21118 if test "$with_gnu_ld" = yes; then
21119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21120 else
21121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21122 case $host_os in
21123 sco3.2v5*)
21124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21125 ;;
21126 esac
21127 fi
21128 sys_lib_dlsearch_path_spec='/usr/lib'
21129 ;;
21130
21131 tpf*)
21132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21133 version_type=linux
21134 need_lib_prefix=no
21135 need_version=no
21136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21137 shlibpath_var=LD_LIBRARY_PATH
21138 shlibpath_overrides_runpath=no
21139 hardcode_into_libs=yes
21140 ;;
21141
21142 uts4*)
21143 version_type=linux
21144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 soname_spec='${libname}${release}${shared_ext}$major'
21146 shlibpath_var=LD_LIBRARY_PATH
21147 ;;
21148
21149 *)
21150 dynamic_linker=no
21151 ;;
21152 esac
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21154 $as_echo "$dynamic_linker" >&6; }
21155 test "$dynamic_linker" = no && can_build_shared=no
21156
21157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21158 if test "$GCC" = yes; then
21159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21160 fi
21161
21162 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21163 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21164 fi
21165 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21166 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21167 fi
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21207 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21208 hardcode_action_CXX=
21209 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21210 test -n "$runpath_var_CXX" ||
21211 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21212
21213 # We can hardcode non-existent directories.
21214 if test "$hardcode_direct_CXX" != no &&
21215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21216 # have to relink, otherwise we might link with an installed library
21217 # when we should be linking with a yet-to-be-installed one
21218 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21219 test "$hardcode_minus_L_CXX" != no; then
21220 # Linking always hardcodes the temporary library directory.
21221 hardcode_action_CXX=relink
21222 else
21223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21224 hardcode_action_CXX=immediate
21225 fi
21226 else
21227 # We cannot hardcode anything, or else we can only hardcode existing
21228 # directories.
21229 hardcode_action_CXX=unsupported
21230 fi
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21232 $as_echo "$hardcode_action_CXX" >&6; }
21233
21234 if test "$hardcode_action_CXX" = relink ||
21235 test "$inherit_rpath_CXX" = yes; then
21236 # Fast installation is not supported
21237 enable_fast_install=no
21238 elif test "$shlibpath_overrides_runpath" = yes ||
21239 test "$enable_shared" = no; then
21240 # Fast installation is not necessary
21241 enable_fast_install=needless
21242 fi
21243
21244
21245
21246
21247
21248
21249
21250 fi # test -n "$compiler"
21251
21252 CC=$lt_save_CC
21253 LDCXX=$LD
21254 LD=$lt_save_LD
21255 GCC=$lt_save_GCC
21256 with_gnu_ld=$lt_save_with_gnu_ld
21257 lt_cv_path_LDCXX=$lt_cv_path_LD
21258 lt_cv_path_LD=$lt_save_path_LD
21259 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21260 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21261 fi # test "$_lt_caught_CXX_error" != yes
21262
21263 ac_ext=c
21264 ac_cpp='$CPP $CPPFLAGS'
21265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284 # Only expand once:
21285
21286
21287
21288
21289
21290 # Identify the assembler which will work hand-in-glove with the newly
21291 # built GCC, so that we can examine its features. This is the assembler
21292 # which will be driven by the driver program.
21293 #
21294 # If build != host, and we aren't building gas in-tree, we identify a
21295 # build->target assembler and hope that it will have the same features
21296 # as the host->target assembler we'll be using.
21297 gcc_cv_gas_major_version=
21298 gcc_cv_gas_minor_version=
21299 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21300
21301 if test "${gcc_cv_as+set}" = set; then :
21302
21303 else
21304
21305 if test -x "$DEFAULT_ASSEMBLER"; then
21306 gcc_cv_as="$DEFAULT_ASSEMBLER"
21307 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21308 && test -f ../gas/Makefile \
21309 && test x$build = x$host; then
21310 gcc_cv_as=../gas/as-new$build_exeext
21311 elif test -x as$build_exeext; then
21312 # Build using assembler in the current directory.
21313 gcc_cv_as=./as$build_exeext
21314 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21315 gcc_cv_as="$AS_FOR_TARGET"
21316 else
21317 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21318 set dummy $AS_FOR_TARGET; ac_word=$2
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21320 $as_echo_n "checking for $ac_word... " >&6; }
21321 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21322 $as_echo_n "(cached) " >&6
21323 else
21324 case $gcc_cv_as in
21325 [\\/]* | ?:[\\/]*)
21326 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21327 ;;
21328 *)
21329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21330 for as_dir in $PATH
21331 do
21332 IFS=$as_save_IFS
21333 test -z "$as_dir" && as_dir=.
21334 for ac_exec_ext in '' $ac_executable_extensions; do
21335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21336 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21338 break 2
21339 fi
21340 done
21341 done
21342 IFS=$as_save_IFS
21343
21344 ;;
21345 esac
21346 fi
21347 gcc_cv_as=$ac_cv_path_gcc_cv_as
21348 if test -n "$gcc_cv_as"; then
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21350 $as_echo "$gcc_cv_as" >&6; }
21351 else
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21353 $as_echo "no" >&6; }
21354 fi
21355
21356
21357 fi
21358 fi
21359
21360 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21361
21362 case "$ORIGINAL_AS_FOR_TARGET" in
21363 ./as | ./as$build_exeext) ;;
21364 *) ac_config_files="$ac_config_files as:exec-tool.in"
21365 ;;
21366 esac
21367
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21369 $as_echo_n "checking what assembler to use... " >&6; }
21370 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21371 # Single tree build which includes gas. We want to prefer it
21372 # over whatever linker top-level may have detected, since
21373 # we'll use what we're building after installation anyway.
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21375 $as_echo "newly built gas" >&6; }
21376 in_tree_gas=yes
21377 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21378 for f in $gcc_cv_as_bfd_srcdir/configure \
21379 $gcc_cv_as_gas_srcdir/configure \
21380 $gcc_cv_as_gas_srcdir/configure.in \
21381 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21382 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21383 if test x$gcc_cv_gas_version != x; then
21384 break
21385 fi
21386 done
21387 case $gcc_cv_gas_version in
21388 VERSION=[0-9]*) ;;
21389 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21390 esac
21391 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21392 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21393 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21394 case $gcc_cv_gas_patch_version in
21395 "") gcc_cv_gas_patch_version="0" ;;
21396 esac
21397 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21398 + $gcc_cv_gas_minor_version \) \* 1000 \
21399 + $gcc_cv_gas_patch_version`
21400
21401 in_tree_gas_is_elf=no
21402 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21403 || (grep 'obj_format = multi' ../gas/Makefile \
21404 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21405 then
21406 in_tree_gas_is_elf=yes
21407 fi
21408 else
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21410 $as_echo "$gcc_cv_as" >&6; }
21411 in_tree_gas=no
21412 fi
21413
21414 default_ld=
21415 # Check whether --enable-ld was given.
21416 if test "${enable_ld+set}" = set; then :
21417 enableval=$enable_ld; case "${enableval}" in
21418 no)
21419 default_ld=ld.gold
21420 ;;
21421 esac
21422 fi
21423
21424
21425 # Check whether --enable-gold was given.
21426 if test "${enable_gold+set}" = set; then :
21427 enableval=$enable_gold; case "${enableval}" in
21428 default)
21429 install_gold_as_default=yes
21430 ;;
21431 yes)
21432 if test x${default_ld} != x; then
21433 install_gold_as_default=yes
21434 fi
21435 ;;
21436 no)
21437 ;;
21438 *)
21439 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21440 ;;
21441 esac
21442 else
21443 install_gold_as_default=no
21444 fi
21445
21446
21447 # Identify the linker which will work hand-in-glove with the newly
21448 # built GCC, so that we can examine its features. This is the linker
21449 # which will be driven by the driver program.
21450 #
21451 # If build != host, and we aren't building gas in-tree, we identify a
21452 # build->target linker and hope that it will have the same features
21453 # as the host->target linker we'll be using.
21454 gcc_cv_gld_major_version=
21455 gcc_cv_gld_minor_version=
21456 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21457 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21458 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21459
21460 if test "${gcc_cv_ld+set}" = set; then :
21461
21462 else
21463
21464 if test -x "$DEFAULT_LINKER"; then
21465 gcc_cv_ld="$DEFAULT_LINKER"
21466 elif test $install_gold_as_default = yes \
21467 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21468 && test -f ../gold/Makefile \
21469 && test x$build = x$host; then
21470 gcc_cv_ld=../gold/ld-new$build_exeext
21471 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21472 && test -f ../ld/Makefile \
21473 && test x$build = x$host; then
21474 gcc_cv_ld=../ld/ld-new$build_exeext
21475 elif test -x collect-ld$build_exeext; then
21476 # Build using linker in the current directory.
21477 gcc_cv_ld=./collect-ld$build_exeext
21478 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21479 gcc_cv_ld="$LD_FOR_TARGET"
21480 else
21481 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21482 set dummy $LD_FOR_TARGET; ac_word=$2
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21484 $as_echo_n "checking for $ac_word... " >&6; }
21485 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 case $gcc_cv_ld in
21489 [\\/]* | ?:[\\/]*)
21490 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21491 ;;
21492 *)
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21495 do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504 done
21505 done
21506 IFS=$as_save_IFS
21507
21508 ;;
21509 esac
21510 fi
21511 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21512 if test -n "$gcc_cv_ld"; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21514 $as_echo "$gcc_cv_ld" >&6; }
21515 else
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21517 $as_echo "no" >&6; }
21518 fi
21519
21520
21521 fi
21522 fi
21523
21524 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21525 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21526 # if the PLUGIN_LD is set ld-new, just have it as ld
21527 # as that is the installed named.
21528 if test x$PLUGIN_LD_SUFFIX = xld-new \
21529 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21530 PLUGIN_LD_SUFFIX=ld
21531 fi
21532
21533 # Check whether --with-plugin-ld was given.
21534 if test "${with_plugin_ld+set}" = set; then :
21535 withval=$with_plugin_ld; if test x"$withval" != x; then
21536 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21537 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21538 fi
21539 fi
21540
21541
21542
21543 cat >>confdefs.h <<_ACEOF
21544 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21545 _ACEOF
21546
21547
21548 # Check to see if we are using gold instead of ld
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21550 $as_echo_n "checking whether we are using gold... " >&6; }
21551 ld_is_gold=no
21552 if test x$gcc_cv_ld != x; then
21553 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21554 | grep "GNU gold" > /dev/null; then
21555 ld_is_gold=yes
21556 fi
21557 fi
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21559 $as_echo "$ld_is_gold" >&6; }
21560
21561 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21562
21563 case "$ORIGINAL_LD_FOR_TARGET" in
21564 ./collect-ld | ./collect-ld$build_exeext) ;;
21565 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21566 ;;
21567 esac
21568
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21570 $as_echo_n "checking what linker to use... " >&6; }
21571 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21572 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21573 # Single tree build which includes ld. We want to prefer it
21574 # over whatever linker top-level may have detected, since
21575 # we'll use what we're building after installation anyway.
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21577 $as_echo "newly built ld" >&6; }
21578 in_tree_ld=yes
21579 in_tree_ld_is_elf=no
21580 if (grep 'EMUL = .*elf' ../ld/Makefile \
21581 || grep 'EMUL = .*linux' ../ld/Makefile \
21582 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21583 in_tree_ld_is_elf=yes
21584 elif test "$ld_is_gold" = yes; then
21585 in_tree_ld_is_elf=yes
21586 fi
21587 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21588 do
21589 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21590 if test x$gcc_cv_gld_version != x; then
21591 break
21592 fi
21593 done
21594 case $gcc_cv_gld_version in
21595 VERSION=[0-9]*) ;;
21596 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21597 esac
21598 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21599 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21600 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21601 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21602 else
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21604 $as_echo "$gcc_cv_ld" >&6; }
21605 in_tree_ld=no
21606 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21607 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21608 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21609 fi
21610
21611
21612
21613
21614 # Figure out what nm we will be using.
21615 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21616 if test "${gcc_cv_nm+set}" = set; then :
21617
21618 else
21619
21620 if test -f $gcc_cv_binutils_srcdir/configure.in \
21621 && test -f ../binutils/Makefile \
21622 && test x$build = x$host; then
21623 gcc_cv_nm=../binutils/nm-new$build_exeext
21624 elif test -x nm$build_exeext; then
21625 gcc_cv_nm=./nm$build_exeext
21626 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21627 gcc_cv_nm="$NM_FOR_TARGET"
21628 else
21629 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21630 set dummy $NM_FOR_TARGET; ac_word=$2
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21632 $as_echo_n "checking for $ac_word... " >&6; }
21633 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 case $gcc_cv_nm in
21637 [\\/]* | ?:[\\/]*)
21638 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21639 ;;
21640 *)
21641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21642 for as_dir in $PATH
21643 do
21644 IFS=$as_save_IFS
21645 test -z "$as_dir" && as_dir=.
21646 for ac_exec_ext in '' $ac_executable_extensions; do
21647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21648 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21650 break 2
21651 fi
21652 done
21653 done
21654 IFS=$as_save_IFS
21655
21656 ;;
21657 esac
21658 fi
21659 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21660 if test -n "$gcc_cv_nm"; then
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21662 $as_echo "$gcc_cv_nm" >&6; }
21663 else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21665 $as_echo "no" >&6; }
21666 fi
21667
21668
21669 fi
21670 fi
21671
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21673 $as_echo_n "checking what nm to use... " >&6; }
21674 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21675 # Single tree build which includes binutils.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21677 $as_echo "newly built nm" >&6; }
21678 in_tree_nm=yes
21679 else
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21681 $as_echo "$gcc_cv_nm" >&6; }
21682 in_tree_nm=no
21683 fi
21684
21685 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21686
21687 case "$ORIGINAL_NM_FOR_TARGET" in
21688 ./nm | ./nm$build_exeext) ;;
21689 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21690 ;;
21691 esac
21692
21693
21694 # Figure out what objdump we will be using.
21695 if test "${gcc_cv_objdump+set}" = set; then :
21696
21697 else
21698
21699 if test -f $gcc_cv_binutils_srcdir/configure.in \
21700 && test -f ../binutils/Makefile \
21701 && test x$build = x$host; then
21702 # Single tree build which includes binutils.
21703 gcc_cv_objdump=../binutils/objdump$build_exeext
21704 elif test -x objdump$build_exeext; then
21705 gcc_cv_objdump=./objdump$build_exeext
21706 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21707 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21708 else
21709 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21710 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21712 $as_echo_n "checking for $ac_word... " >&6; }
21713 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21714 $as_echo_n "(cached) " >&6
21715 else
21716 case $gcc_cv_objdump in
21717 [\\/]* | ?:[\\/]*)
21718 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21719 ;;
21720 *)
21721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21722 for as_dir in $PATH
21723 do
21724 IFS=$as_save_IFS
21725 test -z "$as_dir" && as_dir=.
21726 for ac_exec_ext in '' $ac_executable_extensions; do
21727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21728 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21730 break 2
21731 fi
21732 done
21733 done
21734 IFS=$as_save_IFS
21735
21736 ;;
21737 esac
21738 fi
21739 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21740 if test -n "$gcc_cv_objdump"; then
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21742 $as_echo "$gcc_cv_objdump" >&6; }
21743 else
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 $as_echo "no" >&6; }
21746 fi
21747
21748
21749 fi
21750 fi
21751
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21753 $as_echo_n "checking what objdump to use... " >&6; }
21754 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21755 # Single tree build which includes binutils.
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21757 $as_echo "newly built objdump" >&6; }
21758 elif test x$gcc_cv_objdump = x; then
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21760 $as_echo "not found" >&6; }
21761 else
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21763 $as_echo "$gcc_cv_objdump" >&6; }
21764 fi
21765
21766 # Figure out what readelf we will be using.
21767 if test "${gcc_cv_readelf+set}" = set; then :
21768
21769 else
21770
21771 if test -f $gcc_cv_binutils_srcdir/configure.in \
21772 && test -f ../binutils/Makefile \
21773 && test x$build = x$host; then
21774 # Single tree build which includes binutils.
21775 gcc_cv_readelf=../binutils/readelf$build_exeext
21776 elif test -x readelf$build_exeext; then
21777 gcc_cv_readelf=./readelf$build_exeext
21778 else
21779 # Extract the first word of "readelf", so it can be a program name with args.
21780 set dummy readelf; ac_word=$2
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21782 $as_echo_n "checking for $ac_word... " >&6; }
21783 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21785 else
21786 case $gcc_cv_readelf in
21787 [\\/]* | ?:[\\/]*)
21788 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21789 ;;
21790 *)
21791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21793 do
21794 IFS=$as_save_IFS
21795 test -z "$as_dir" && as_dir=.
21796 for ac_exec_ext in '' $ac_executable_extensions; do
21797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21798 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21800 break 2
21801 fi
21802 done
21803 done
21804 IFS=$as_save_IFS
21805
21806 ;;
21807 esac
21808 fi
21809 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21810 if test -n "$gcc_cv_readelf"; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21812 $as_echo "$gcc_cv_readelf" >&6; }
21813 else
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21816 fi
21817
21818
21819 fi
21820 fi
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21823 $as_echo_n "checking what readelf to use... " >&6; }
21824 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21825 # Single tree build which includes binutils.
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21827 $as_echo "newly built readelf" >&6; }
21828 elif test x$gcc_cv_readelf = x; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21830 $as_echo "not found" >&6; }
21831 else
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21833 $as_echo "$gcc_cv_readelf" >&6; }
21834 fi
21835
21836 # Figure out what assembler alignment features are present.
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21838 $as_echo_n "checking assembler flags... " >&6; }
21839 if test "${gcc_cv_as_flags+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21841 else
21842 case "$target" in
21843 i[34567]86-*-linux*)
21844 gcc_cv_as_flags=--32
21845 ;;
21846 x86_64-*-linux-gnux32)
21847 gcc_cv_as_flags=--x32
21848 ;;
21849 x86_64-*-linux*)
21850 gcc_cv_as_flags=--64
21851 ;;
21852 powerpc*-*-darwin*)
21853 gcc_cv_as_flags="-arch ppc"
21854 ;;
21855 *)
21856 gcc_cv_as_flags=" "
21857 ;;
21858 esac
21859 fi
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21861 $as_echo "$gcc_cv_as_flags" >&6; }
21862
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21864 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21865 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21866 $as_echo_n "(cached) " >&6
21867 else
21868 gcc_cv_as_balign_and_p2align=no
21869 if test $in_tree_gas = yes; then
21870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21871 then gcc_cv_as_balign_and_p2align=yes
21872 fi
21873 elif test x$gcc_cv_as != x; then
21874 $as_echo '.balign 4
21875 .p2align 2' > conftest.s
21876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; }
21882 then
21883 gcc_cv_as_balign_and_p2align=yes
21884 else
21885 echo "configure: failed program was" >&5
21886 cat conftest.s >&5
21887 fi
21888 rm -f conftest.o conftest.s
21889 fi
21890 fi
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21892 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21893 if test $gcc_cv_as_balign_and_p2align = yes; then
21894
21895 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21896
21897 fi
21898
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21900 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21901 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 gcc_cv_as_max_skip_p2align=no
21905 if test $in_tree_gas = yes; then
21906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21907 then gcc_cv_as_max_skip_p2align=yes
21908 fi
21909 elif test x$gcc_cv_as != x; then
21910 $as_echo '.p2align 4,,7' > conftest.s
21911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }; }
21917 then
21918 gcc_cv_as_max_skip_p2align=yes
21919 else
21920 echo "configure: failed program was" >&5
21921 cat conftest.s >&5
21922 fi
21923 rm -f conftest.o conftest.s
21924 fi
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21927 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21928 if test $gcc_cv_as_max_skip_p2align = yes; then
21929
21930 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21931
21932 fi
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21935 $as_echo_n "checking assembler for .literal16... " >&6; }
21936 if test "${gcc_cv_as_literal16+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 gcc_cv_as_literal16=no
21940 if test $in_tree_gas = yes; then
21941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21942 then gcc_cv_as_literal16=yes
21943 fi
21944 elif test x$gcc_cv_as != x; then
21945 $as_echo '.literal16' > conftest.s
21946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21951 test $ac_status = 0; }; }
21952 then
21953 gcc_cv_as_literal16=yes
21954 else
21955 echo "configure: failed program was" >&5
21956 cat conftest.s >&5
21957 fi
21958 rm -f conftest.o conftest.s
21959 fi
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21962 $as_echo "$gcc_cv_as_literal16" >&6; }
21963 if test $gcc_cv_as_literal16 = yes; then
21964
21965 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21966
21967 fi
21968
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21970 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21971 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21973 else
21974 gcc_cv_as_subsection_m1=no
21975 if test $in_tree_gas = yes; then
21976 if test $in_tree_gas_is_elf = yes \
21977 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21978 then gcc_cv_as_subsection_m1=yes
21979 fi
21980 elif test x$gcc_cv_as != x; then
21981 $as_echo 'conftest_label1: .word 0
21982 .subsection -1
21983 conftest_label2: .word 0
21984 .previous' > conftest.s
21985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; }
21991 then
21992 if test x$gcc_cv_nm != x; then
21993 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21994 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21995 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21996 then :
21997 else gcc_cv_as_subsection_m1=yes
21998 fi
21999 rm -f conftest.nm1 conftest.nm2
22000 fi
22001 else
22002 echo "configure: failed program was" >&5
22003 cat conftest.s >&5
22004 fi
22005 rm -f conftest.o conftest.s
22006 fi
22007 fi
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22009 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22010 if test $gcc_cv_as_subsection_m1 = yes; then
22011
22012 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22013
22014 fi
22015
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22017 $as_echo_n "checking assembler for .weak... " >&6; }
22018 if test "${gcc_cv_as_weak+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 gcc_cv_as_weak=no
22022 if test $in_tree_gas = yes; then
22023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22024 then gcc_cv_as_weak=yes
22025 fi
22026 elif test x$gcc_cv_as != x; then
22027 $as_echo ' .weak foobar' > conftest.s
22028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22033 test $ac_status = 0; }; }
22034 then
22035 gcc_cv_as_weak=yes
22036 else
22037 echo "configure: failed program was" >&5
22038 cat conftest.s >&5
22039 fi
22040 rm -f conftest.o conftest.s
22041 fi
22042 fi
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22044 $as_echo "$gcc_cv_as_weak" >&6; }
22045 if test $gcc_cv_as_weak = yes; then
22046
22047 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22048
22049 fi
22050
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22052 $as_echo_n "checking assembler for .weakref... " >&6; }
22053 if test "${gcc_cv_as_weakref+set}" = set; then :
22054 $as_echo_n "(cached) " >&6
22055 else
22056 gcc_cv_as_weakref=no
22057 if test $in_tree_gas = yes; then
22058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22059 then gcc_cv_as_weakref=yes
22060 fi
22061 elif test x$gcc_cv_as != x; then
22062 $as_echo ' .weakref foobar, barfnot' > conftest.s
22063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068 test $ac_status = 0; }; }
22069 then
22070 gcc_cv_as_weakref=yes
22071 else
22072 echo "configure: failed program was" >&5
22073 cat conftest.s >&5
22074 fi
22075 rm -f conftest.o conftest.s
22076 fi
22077 fi
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22079 $as_echo "$gcc_cv_as_weakref" >&6; }
22080 if test $gcc_cv_as_weakref = yes; then
22081
22082 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22083
22084 fi
22085
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22087 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22088 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22089 $as_echo_n "(cached) " >&6
22090 else
22091 gcc_cv_as_nsubspa_comdat=no
22092 if test $in_tree_gas = yes; then
22093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22094 then gcc_cv_as_nsubspa_comdat=yes
22095 fi
22096 elif test x$gcc_cv_as != x; then
22097 $as_echo ' .SPACE $TEXT$
22098 .NSUBSPA $CODE$,COMDAT' > conftest.s
22099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22101 (eval $ac_try) 2>&5
22102 ac_status=$?
22103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22104 test $ac_status = 0; }; }
22105 then
22106 gcc_cv_as_nsubspa_comdat=yes
22107 else
22108 echo "configure: failed program was" >&5
22109 cat conftest.s >&5
22110 fi
22111 rm -f conftest.o conftest.s
22112 fi
22113 fi
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22115 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22116 if test $gcc_cv_as_nsubspa_comdat = yes; then
22117
22118 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22119
22120 fi
22121
22122 # .hidden needs to be supported in both the assembler and the linker,
22123 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22124 # This is irritatingly difficult to feature test for; we have to check the
22125 # date string after the version number. If we've got an in-tree
22126 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22127 # to be safe.
22128 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22130 $as_echo_n "checking assembler for .hidden... " >&6; }
22131 if test "${gcc_cv_as_hidden+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22133 else
22134 gcc_cv_as_hidden=no
22135 if test $in_tree_gas = yes; then
22136 if test $in_tree_gas_is_elf = yes \
22137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22138 then gcc_cv_as_hidden=yes
22139 fi
22140 elif test x$gcc_cv_as != x; then
22141 $as_echo ' .hidden foobar
22142 foobar:' > conftest.s
22143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22148 test $ac_status = 0; }; }
22149 then
22150
22151 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22152 # STV_HIDDEN, so disable .hidden support if so.
22153 case "${target}" in
22154 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22155 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22156 cat > conftest.s <<EOF
22157 .globl hidden
22158 .hidden hidden
22159 hidden:
22160 .globl default
22161 .set default,hidden
22162 EOF
22163 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22164 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22165 grep '\.hidden default' > /dev/null; then
22166 gcc_cv_as_hidden=no
22167 else
22168 gcc_cv_as_hidden=yes
22169 fi
22170 else
22171 # Assume bug is present if objdump is missing.
22172 gcc_cv_as_hidden=no
22173 fi
22174 ;;
22175 *)
22176 gcc_cv_as_hidden=yes
22177 ;;
22178 esac
22179 else
22180 echo "configure: failed program was" >&5
22181 cat conftest.s >&5
22182 fi
22183 rm -f conftest.o conftest.s
22184 fi
22185 fi
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22187 $as_echo "$gcc_cv_as_hidden" >&6; }
22188
22189 case "${target}" in
22190 *-*-darwin*)
22191 # Darwin as has some visibility support, though with a different syntax.
22192 gcc_cv_as_hidden=yes
22193 ;;
22194 esac
22195
22196 # gnu_indirect_function type is an extension proposed at
22197 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22198 # selection of function implementation
22199 # Check whether --enable-gnu-indirect-function was given.
22200 if test "${enable_gnu_indirect_function+set}" = set; then :
22201 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22202 yes | no) ;;
22203 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22205 esac
22206 else
22207 enable_gnu_indirect_function="$default_gnu_indirect_function"
22208 fi
22209
22210
22211 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22212
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22215 _ACEOF
22216
22217
22218
22219 if test $in_tree_ld != yes ; then
22220 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22221 if echo "$ld_ver" | grep GNU > /dev/null; then
22222 if test x"$ld_is_gold" = xyes; then
22223 # GNU gold --version looks like this:
22224 #
22225 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22226 #
22227 # We extract the binutils version which is more familiar and specific
22228 # than the gold version.
22229 ld_vers=`echo $ld_ver | sed -n \
22230 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22231 else
22232 # GNU ld --version looks like this:
22233 #
22234 # GNU ld (GNU Binutils) 2.21.51.20110225
22235 ld_vers=`echo $ld_ver | sed -n \
22236 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22237 fi
22238 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'`
22239 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22240 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22241 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22242 else
22243 case "${target}" in
22244 *-*-solaris2*)
22245 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22246 # format.
22247 #
22248 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22249 # /usr/ccs/bin/ld has been configured.
22250 ld_ver=`$gcc_cv_ld -V 2>&1`
22251 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22252 ld_vers=`echo $ld_ver | sed -n \
22253 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22254 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22255 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22256 fi
22257 ;;
22258 esac
22259 fi
22260 fi
22261
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22263 $as_echo_n "checking linker for .hidden support... " >&6; }
22264 if test "${gcc_cv_ld_hidden+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22266 else
22267 if test $in_tree_ld = yes ; then
22268 gcc_cv_ld_hidden=no
22269 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 \
22270 && test $in_tree_ld_is_elf = yes; then
22271 gcc_cv_ld_hidden=yes
22272 fi
22273 else
22274 gcc_cv_ld_hidden=yes
22275 if test x"$ld_is_gold" = xyes; then
22276 :
22277 elif echo "$ld_ver" | grep GNU > /dev/null; then
22278 case "${target}" in
22279 mmix-knuth-mmixware)
22280 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22281 gcc_cv_ld_hidden=no
22282 ;;
22283 esac
22284 if test 0"$ld_date" -lt 20020404; then
22285 if test -n "$ld_date"; then
22286 # If there was date string, but was earlier than 2002-04-04, fail
22287 gcc_cv_ld_hidden=no
22288 elif test -z "$ld_vers"; then
22289 # If there was no date string nor ld version number, something is wrong
22290 gcc_cv_ld_hidden=no
22291 else
22292 test -z "$ld_vers_patch" && ld_vers_patch=0
22293 if test "$ld_vers_major" -lt 2; then
22294 gcc_cv_ld_hidden=no
22295 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22296 gcc_cv_ld_hidden="no"
22297 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22298 gcc_cv_ld_hidden=no
22299 fi
22300 fi
22301 fi
22302 else
22303 case "${target}" in
22304 *-*-darwin*)
22305 # Darwin ld has some visibility support.
22306 gcc_cv_ld_hidden=yes
22307 ;;
22308 hppa64*-*-hpux* | ia64*-*-hpux*)
22309 gcc_cv_ld_hidden=yes
22310 ;;
22311 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22312 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22313 # .symbolic was only added in Solaris 9 12/02.
22314 gcc_cv_ld_hidden=yes
22315 ;;
22316 *)
22317 gcc_cv_ld_hidden=no
22318 ;;
22319 esac
22320 fi
22321 fi
22322 fi
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22324 $as_echo "$gcc_cv_ld_hidden" >&6; }
22325 libgcc_visibility=no
22326
22327
22328 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22329 libgcc_visibility=yes
22330
22331 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22332
22333 fi
22334
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22336 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22337 gcc_cv_ld_ro_rw_mix=unknown
22338 if test $in_tree_ld = yes ; then
22339 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 \
22340 && test $in_tree_ld_is_elf = yes; then
22341 gcc_cv_ld_ro_rw_mix=read-write
22342 fi
22343 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22344 echo '.section myfoosect, "a"' > conftest1.s
22345 echo '.section myfoosect, "aw"' > conftest2.s
22346 echo '.byte 1' >> conftest2.s
22347 echo '.section myfoosect, "a"' > conftest3.s
22348 echo '.byte 0' >> conftest3.s
22349 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22350 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22351 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22352 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22353 conftest2.o conftest3.o > /dev/null 2>&1; then
22354 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22355 | sed -e '/myfoosect/!d' -e N`
22356 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22357 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22358 gcc_cv_ld_ro_rw_mix=read-only
22359 else
22360 gcc_cv_ld_ro_rw_mix=read-write
22361 fi
22362 fi
22363 fi
22364 rm -f conftest.* conftest[123].*
22365 fi
22366 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22367
22368 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22369
22370 fi
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22372 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22373
22374 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22375 case "${target}" in
22376 *-*-solaris2*)
22377 #
22378 # Solaris 2 ld -V output looks like this for a regular version:
22379 #
22380 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22381 #
22382 # but test versions add stuff at the end:
22383 #
22384 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22385 #
22386 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22387 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22388 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22389 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22390 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22391 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22392 fi
22393 ;;
22394 esac
22395 fi
22396
22397 # Check whether --enable-initfini-array was given.
22398 if test "${enable_initfini_array+set}" = set; then :
22399 enableval=$enable_initfini_array;
22400 else
22401
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22403 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22404 if test "${gcc_cv_initfini_array+set}" = set; then :
22405 $as_echo_n "(cached) " >&6
22406 else
22407 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22408 case "${target}" in
22409 ia64-*)
22410 if test "$cross_compiling" = yes; then :
22411 gcc_cv_initfini_array=no
22412 else
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22415
22416 #ifndef __ELF__
22417 #error Not an ELF OS
22418 #endif
22419 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22420 if it can be used. */
22421 static int x = -1;
22422 int main (void) { return x; }
22423 int foo (void) { x = 0; }
22424 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22425
22426 _ACEOF
22427 if ac_fn_c_try_run "$LINENO"; then :
22428 gcc_cv_initfini_array=yes
22429 else
22430 gcc_cv_initfini_array=no
22431 fi
22432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22433 conftest.$ac_objext conftest.beam conftest.$ac_ext
22434 fi
22435 ;;
22436 *)
22437 gcc_cv_initfini_array=no
22438 if test $in_tree_ld = yes ; then
22439 if test "$gcc_cv_gld_major_version" -eq 2 \
22440 -a "$gcc_cv_gld_minor_version" -ge 22 \
22441 -o "$gcc_cv_gld_major_version" -gt 2 \
22442 && test $in_tree_ld_is_elf = yes; then
22443 gcc_cv_initfini_array=yes
22444 fi
22445 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22446 cat > conftest.s <<\EOF
22447 .section .dtors,"a",%progbits
22448 .balign 4
22449 .byte 'A', 'A', 'A', 'A'
22450 .section .ctors,"a",%progbits
22451 .balign 4
22452 .byte 'B', 'B', 'B', 'B'
22453 .section .fini_array.65530,"a",%progbits
22454 .balign 4
22455 .byte 'C', 'C', 'C', 'C'
22456 .section .init_array.65530,"a",%progbits
22457 .balign 4
22458 .byte 'D', 'D', 'D', 'D'
22459 .section .dtors.64528,"a",%progbits
22460 .balign 4
22461 .byte 'E', 'E', 'E', 'E'
22462 .section .ctors.64528,"a",%progbits
22463 .balign 4
22464 .byte 'F', 'F', 'F', 'F'
22465 .section .fini_array.01005,"a",%progbits
22466 .balign 4
22467 .byte 'G', 'G', 'G', 'G'
22468 .section .init_array.01005,"a",%progbits
22469 .balign 4
22470 .byte 'H', 'H', 'H', 'H'
22471 .text
22472 .globl _start
22473 _start:
22474 EOF
22475 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22476 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22477 && $gcc_cv_objdump -s -j .init_array conftest \
22478 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22479 && $gcc_cv_objdump -s -j .fini_array conftest \
22480 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22481 gcc_cv_initfini_array=yes
22482 fi
22483 rm -f conftest conftest.*
22484 fi
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h. */
22487
22488 #ifndef __ELF__
22489 # error Not an ELF OS
22490 #endif
22491 #include <stdlib.h>
22492 #if defined __GLIBC_PREREQ
22493 # if __GLIBC_PREREQ (2, 4)
22494 # else
22495 # error GLIBC 2.4 required
22496 # endif
22497 #else
22498 # if defined __sun__ && defined __svr4__
22499 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22500 # else
22501 # error The C library not known to support .init_array/.fini_array
22502 # endif
22503 #endif
22504
22505 _ACEOF
22506 if ac_fn_c_try_cpp "$LINENO"; then :
22507
22508 else
22509 gcc_cv_initfini_array=no
22510 fi
22511 rm -f conftest.err conftest.$ac_ext;;
22512 esac
22513 else
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22515 $as_echo_n "checking cross compile... guessing... " >&6; }
22516 gcc_cv_initfini_array=no
22517 fi
22518 fi
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22520 $as_echo "$gcc_cv_initfini_array" >&6; }
22521 enable_initfini_array=$gcc_cv_initfini_array
22522
22523 fi
22524
22525 if test $enable_initfini_array = yes; then
22526
22527 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22528
22529 fi
22530
22531 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22533 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22534 if test "${gcc_cv_as_leb128+set}" = set; then :
22535 $as_echo_n "(cached) " >&6
22536 else
22537 gcc_cv_as_leb128=no
22538 if test $in_tree_gas = yes; then
22539 if test $in_tree_gas_is_elf = yes \
22540 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22541 then gcc_cv_as_leb128=yes
22542 fi
22543 elif test x$gcc_cv_as != x; then
22544 $as_echo ' .data
22545 .uleb128 L2 - L1
22546 L1:
22547 .uleb128 1280
22548 .sleb128 -1010
22549 L2:' > conftest.s
22550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22555 test $ac_status = 0; }; }
22556 then
22557 # GAS versions before 2.11 do not support uleb128,
22558 # despite appearing to.
22559 # ??? There exists an elf-specific test that will crash
22560 # the assembler. Perhaps it's better to figure out whether
22561 # arbitrary sections are supported and try the test.
22562 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22563 if echo "$as_ver" | grep GNU > /dev/null; then
22564 as_vers=`echo $as_ver | sed -n \
22565 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22566 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22567 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22568 if test $as_major -eq 2 && test $as_minor -lt 11
22569 then :
22570 else gcc_cv_as_leb128=yes
22571 fi
22572 fi
22573 else
22574 echo "configure: failed program was" >&5
22575 cat conftest.s >&5
22576 fi
22577 rm -f conftest.o conftest.s
22578 fi
22579 fi
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22581 $as_echo "$gcc_cv_as_leb128" >&6; }
22582 if test $gcc_cv_as_leb128 = yes; then
22583
22584 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22585
22586 fi
22587
22588 # Check if we have assembler support for unwind directives.
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22590 $as_echo_n "checking assembler for cfi directives... " >&6; }
22591 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22593 else
22594 gcc_cv_as_cfi_directive=no
22595 if test x$gcc_cv_as != x; then
22596 $as_echo ' .text
22597 .cfi_startproc
22598 .cfi_offset 0, 0
22599 .cfi_same_value 1
22600 .cfi_def_cfa 1, 2
22601 .cfi_escape 1, 2, 3, 4, 5
22602 .cfi_endproc' > conftest.s
22603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608 test $ac_status = 0; }; }
22609 then
22610 case "$target" in
22611 *-*-solaris*)
22612 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22613 # read-only and read-write sections, we need to make sure that the
22614 # assembler used emits read-write .eh_frame sections.
22615 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22616 if test "x$gcc_cv_objdump" != x; then
22617 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22618 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22619 gcc_cv_as_cfi_directive=no
22620 else
22621 case "$target" in
22622 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22623 # On Solaris/x86, make sure that GCC and gas agree on using
22624 # read-only .eh_frame sections for 64-bit.
22625 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22626 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22627 sed -e /.eh_frame/!d -e N | \
22628 grep READONLY > /dev/null; then
22629 gcc_cv_as_cfi_directive=yes
22630 else
22631 gcc_cv_as_cfi_directive=no
22632 fi
22633 ;;
22634 *)
22635 gcc_cv_as_cfi_directive=yes
22636 ;;
22637 esac
22638 fi
22639 else
22640 # no objdump, err on the side of caution
22641 gcc_cv_as_cfi_directive=no
22642 fi
22643 else
22644 gcc_cv_as_cfi_directive=yes
22645 fi
22646 ;;
22647 *-*-*)
22648 gcc_cv_as_cfi_directive=yes
22649 ;;
22650 esac
22651 else
22652 echo "configure: failed program was" >&5
22653 cat conftest.s >&5
22654 fi
22655 rm -f conftest.o conftest.s
22656 fi
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22659 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22660
22661 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22663 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22664 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22666 else
22667 gcc_cv_as_cfi_advance_working=no
22668 if test x$gcc_cv_as != x; then
22669 $as_echo ' .text
22670 .cfi_startproc
22671 .cfi_adjust_cfa_offset 64
22672 .skip 75040, 0
22673 .cfi_adjust_cfa_offset 128
22674 .cfi_endproc' > conftest.s
22675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22680 test $ac_status = 0; }; }
22681 then
22682
22683 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22684 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22685 gcc_cv_as_cfi_advance_working=yes
22686 fi
22687
22688 else
22689 echo "configure: failed program was" >&5
22690 cat conftest.s >&5
22691 fi
22692 rm -f conftest.o conftest.s
22693 fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22696 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22697
22698 else
22699 # no objdump, err on the side of caution
22700 gcc_cv_as_cfi_advance_working=no
22701 fi
22702
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22706 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22707 _ACEOF
22708
22709
22710
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22712 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22713 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22714 $as_echo_n "(cached) " >&6
22715 else
22716 gcc_cv_as_cfi_personality_directive=no
22717 if test x$gcc_cv_as != x; then
22718 $as_echo ' .text
22719 .cfi_startproc
22720 .cfi_personality 0, symbol
22721 .cfi_endproc' > conftest.s
22722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22727 test $ac_status = 0; }; }
22728 then
22729 gcc_cv_as_cfi_personality_directive=yes
22730 else
22731 echo "configure: failed program was" >&5
22732 cat conftest.s >&5
22733 fi
22734 rm -f conftest.o conftest.s
22735 fi
22736 fi
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22738 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22739
22740
22741 cat >>confdefs.h <<_ACEOF
22742 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22743 then echo 1; else echo 0; fi`
22744 _ACEOF
22745
22746
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22748 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22749 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22751 else
22752 gcc_cv_as_cfi_sections_directive=no
22753 if test x$gcc_cv_as != x; then
22754 $as_echo ' .text
22755 .cfi_sections .debug_frame, .eh_frame
22756 .cfi_startproc
22757 .cfi_endproc' > conftest.s
22758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22764 then
22765 case $target_os in
22766 win32 | pe | cygwin* | mingw32* | uwin*)
22767 # Need to check that we generated the correct relocation for the
22768 # .debug_frame section. This was fixed for binutils 2.21.
22769 gcc_cv_as_cfi_sections_directive=no
22770 if test "x$gcc_cv_objdump" != x; then
22771 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22772 grep secrel > /dev/null; then
22773 gcc_cv_as_cfi_sections_directive=yes
22774 fi
22775 fi
22776 ;;
22777 *)
22778 gcc_cv_as_cfi_sections_directive=yes
22779 ;;
22780 esac
22781 else
22782 echo "configure: failed program was" >&5
22783 cat conftest.s >&5
22784 fi
22785 rm -f conftest.o conftest.s
22786 fi
22787 fi
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22789 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22790
22791
22792
22793 cat >>confdefs.h <<_ACEOF
22794 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22795 then echo 1; else echo 0; fi`
22796 _ACEOF
22797
22798
22799 # GAS versions up to and including 2.11.0 may mis-optimize
22800 # .eh_frame data.
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22802 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22803 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22804 $as_echo_n "(cached) " >&6
22805 else
22806 gcc_cv_as_eh_frame=no
22807 if test $in_tree_gas = yes; then
22808 if test $in_tree_gas_is_elf = yes \
22809 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22810 then gcc_cv_as_eh_frame=yes
22811 fi
22812 elif test x$gcc_cv_as != x; then
22813 $as_echo ' .text
22814 .LFB1:
22815 .4byte 0
22816 .L1:
22817 .4byte 0
22818 .LFE1:
22819 .section .eh_frame,"aw",@progbits
22820 __FRAME_BEGIN__:
22821 .4byte .LECIE1-.LSCIE1
22822 .LSCIE1:
22823 .4byte 0x0
22824 .byte 0x1
22825 .ascii "z\0"
22826 .byte 0x1
22827 .byte 0x78
22828 .byte 0x1a
22829 .byte 0x0
22830 .byte 0x4
22831 .4byte 1
22832 .p2align 1
22833 .LECIE1:
22834 .LSFDE1:
22835 .4byte .LEFDE1-.LASFDE1
22836 .LASFDE1:
22837 .4byte .LASFDE1-__FRAME_BEGIN__
22838 .4byte .LFB1
22839 .4byte .LFE1-.LFB1
22840 .byte 0x4
22841 .4byte .LFE1-.LFB1
22842 .byte 0x4
22843 .4byte .L1-.LFB1
22844 .LEFDE1:' > conftest.s
22845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22847 (eval $ac_try) 2>&5
22848 ac_status=$?
22849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22850 test $ac_status = 0; }; }
22851 then
22852 cat > conftest.lit <<EOF
22853 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22854 0010 01000000 12000000 18000000 00000000 ................
22855 0020 08000000 04080000 0044 .........D
22856 EOF
22857 cat > conftest.big <<EOF
22858 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22859 0010 00000001 00000012 00000018 00000000 ................
22860 0020 00000008 04000000 0844 .........D
22861 EOF
22862 # If the assembler didn't choke, and we can objdump,
22863 # and we got the correct data, then succeed.
22864 # The text in the here-document typically retains its unix-style line
22865 # endings, while the output of objdump will use host line endings.
22866 # Therefore, use diff -b for the comparisons.
22867 if test x$gcc_cv_objdump != x \
22868 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22869 | tail -3 > conftest.got \
22870 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22871 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22872 then
22873 gcc_cv_as_eh_frame=yes
22874 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; }; then
22880 gcc_cv_as_eh_frame=buggy
22881 else
22882 # Uh oh, what do we do now?
22883 gcc_cv_as_eh_frame=no
22884 fi
22885 else
22886 echo "configure: failed program was" >&5
22887 cat conftest.s >&5
22888 fi
22889 rm -f conftest.o conftest.s
22890 fi
22891 fi
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22893 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22894
22895
22896 if test $gcc_cv_as_eh_frame = buggy; then
22897
22898 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22899
22900 fi
22901
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22903 $as_echo_n "checking assembler for section merging support... " >&6; }
22904 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 gcc_cv_as_shf_merge=no
22908 if test $in_tree_gas = yes; then
22909 if test $in_tree_gas_is_elf = yes \
22910 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22911 then gcc_cv_as_shf_merge=yes
22912 fi
22913 elif test x$gcc_cv_as != x; then
22914 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22920 test $ac_status = 0; }; }
22921 then
22922 gcc_cv_as_shf_merge=yes
22923 else
22924 echo "configure: failed program was" >&5
22925 cat conftest.s >&5
22926 fi
22927 rm -f conftest.o conftest.s
22928 fi
22929 fi
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22931 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22932
22933 if test $gcc_cv_as_shf_merge = no; then
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22935 $as_echo_n "checking assembler for section merging support... " >&6; }
22936 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22937 $as_echo_n "(cached) " >&6
22938 else
22939 gcc_cv_as_shf_merge=no
22940 if test $in_tree_gas = yes; then
22941 if test $in_tree_gas_is_elf = yes \
22942 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22943 then gcc_cv_as_shf_merge=yes
22944 fi
22945 elif test x$gcc_cv_as != x; then
22946 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22952 test $ac_status = 0; }; }
22953 then
22954 gcc_cv_as_shf_merge=yes
22955 else
22956 echo "configure: failed program was" >&5
22957 cat conftest.s >&5
22958 fi
22959 rm -f conftest.o conftest.s
22960 fi
22961 fi
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22963 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22964
22965 fi
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22969 _ACEOF
22970
22971
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22973 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22974 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22976 else
22977 gcc_cv_as_comdat_group=no
22978 if test $in_tree_gas = yes; then
22979 if test $in_tree_gas_is_elf = yes \
22980 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22981 then gcc_cv_as_comdat_group=yes
22982 fi
22983 elif test x$gcc_cv_as != x; then
22984 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22990 test $ac_status = 0; }; }
22991 then
22992 gcc_cv_as_comdat_group=yes
22993 else
22994 echo "configure: failed program was" >&5
22995 cat conftest.s >&5
22996 fi
22997 rm -f conftest.o conftest.s
22998 fi
22999 fi
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23001 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23002
23003 if test $gcc_cv_as_comdat_group = yes; then
23004 gcc_cv_as_comdat_group_percent=no
23005 gcc_cv_as_comdat_group_group=no
23006 else
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23008 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23009 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23011 else
23012 gcc_cv_as_comdat_group_percent=no
23013 if test $in_tree_gas = yes; then
23014 if test $in_tree_gas_is_elf = yes \
23015 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23016 then gcc_cv_as_comdat_group_percent=yes
23017 fi
23018 elif test x$gcc_cv_as != x; then
23019 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23025 test $ac_status = 0; }; }
23026 then
23027 gcc_cv_as_comdat_group_percent=yes
23028 else
23029 echo "configure: failed program was" >&5
23030 cat conftest.s >&5
23031 fi
23032 rm -f conftest.o conftest.s
23033 fi
23034 fi
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23036 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23037
23038 if test $gcc_cv_as_comdat_group_percent = yes; then
23039 gcc_cv_as_comdat_group_group=no
23040 else
23041 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23042 gcc_cv_as_comdat_group_group=no
23043 fi
23044 case "${target}" in
23045 # Sun as uses a completely different syntax.
23046 *-*-solaris2*)
23047 case "${target}" in
23048 sparc*-*-solaris2*)
23049 conftest_s='
23050 .group foo,".text%foo",#comdat
23051 .section ".text%foo", #alloc,#execinstr,#progbits
23052 .globl foo
23053 foo:
23054 '
23055 ;;
23056 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23057 conftest_s='
23058 .group foo,.text%foo,#comdat
23059 .section .text%foo, "ax", @progbits
23060 .globl foo
23061 foo:
23062 '
23063 ;;
23064 esac
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23066 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23067 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 gcc_cv_as_comdat_group_group=no
23071 if test x$gcc_cv_as != x; then
23072 $as_echo "$conftest_s" > conftest.s
23073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23079 then
23080 gcc_cv_as_comdat_group_group=yes
23081 else
23082 echo "configure: failed program was" >&5
23083 cat conftest.s >&5
23084 fi
23085 rm -f conftest.o conftest.s
23086 fi
23087 fi
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23089 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23090
23091 ;;
23092 esac
23093 fi
23094 fi
23095 if test x"$ld_is_gold" = xyes; then
23096 comdat_group=yes
23097 elif test $in_tree_ld = yes ; then
23098 comdat_group=no
23099 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 \
23100 && test $in_tree_ld_is_elf = yes; then
23101 comdat_group=yes
23102 fi
23103 elif echo "$ld_ver" | grep GNU > /dev/null; then
23104 comdat_group=yes
23105 if test 0"$ld_date" -lt 20050308; then
23106 if test -n "$ld_date"; then
23107 # If there was date string, but was earlier than 2005-03-08, fail
23108 comdat_group=no
23109 elif test "$ld_vers_major" -lt 2; then
23110 comdat_group=no
23111 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23112 comdat_group=no
23113 fi
23114 fi
23115 else
23116 case "${target}" in
23117 *-*-solaris2.1[1-9]*)
23118 comdat_group=no
23119 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23120 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23121 # version 1.688.
23122 #
23123 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23124 # least ld version 1.2267.
23125 if test "$ld_vers_major" -gt 1; then
23126 comdat_group=yes
23127 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23128 comdat_group=yes
23129 elif test "$ld_vers_minor" -ge 2267; then
23130 comdat_group=yes
23131 fi
23132 ;;
23133 *)
23134 # Assume linkers other than GNU ld don't support COMDAT group.
23135 comdat_group=no
23136 ;;
23137 esac
23138 fi
23139 # Allow overriding the automatic COMDAT group tests above.
23140 # Check whether --enable-comdat was given.
23141 if test "${enable_comdat+set}" = set; then :
23142 enableval=$enable_comdat; comdat_group="$enable_comdat"
23143 fi
23144
23145 if test $comdat_group = no; then
23146 gcc_cv_as_comdat_group=no
23147 gcc_cv_as_comdat_group_percent=no
23148 gcc_cv_as_comdat_group_group=no
23149 fi
23150
23151 cat >>confdefs.h <<_ACEOF
23152 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23153 || test $gcc_cv_as_comdat_group_percent = yes \
23154 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23155 _ACEOF
23156
23157
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23159 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23160 if test "${gcc_cv_as_discriminator+set}" = set; then :
23161 $as_echo_n "(cached) " >&6
23162 else
23163 gcc_cv_as_discriminator=no
23164 if test $in_tree_gas = yes; then
23165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23166 then gcc_cv_as_discriminator=yes
23167 fi
23168 elif test x$gcc_cv_as != x; then
23169 $as_echo ' .text
23170 .file 1 "conf.c"
23171 .loc 1 1 0 discriminator 1' > conftest.s
23172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23177 test $ac_status = 0; }; }
23178 then
23179 gcc_cv_as_discriminator=yes
23180 else
23181 echo "configure: failed program was" >&5
23182 cat conftest.s >&5
23183 fi
23184 rm -f conftest.o conftest.s
23185 fi
23186 fi
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23188 $as_echo "$gcc_cv_as_discriminator" >&6; }
23189 if test $gcc_cv_as_discriminator = yes; then
23190
23191 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23192
23193 fi
23194
23195 # Thread-local storage - the check is heavily parameterized.
23196 conftest_s=
23197 tls_first_major=
23198 tls_first_minor=
23199 tls_as_opt=
23200 case "$target" in
23201 alpha*-*-*)
23202 conftest_s='
23203 .section ".tdata","awT",@progbits
23204 foo: .long 25
23205 .text
23206 ldq $27,__tls_get_addr($29) !literal!1
23207 lda $16,foo($29) !tlsgd!1
23208 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23209 ldq $27,__tls_get_addr($29) !literal!2
23210 lda $16,foo($29) !tlsldm!2
23211 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23212 ldq $1,foo($29) !gotdtprel
23213 ldah $2,foo($29) !dtprelhi
23214 lda $3,foo($2) !dtprello
23215 lda $4,foo($29) !dtprel
23216 ldq $1,foo($29) !gottprel
23217 ldah $2,foo($29) !tprelhi
23218 lda $3,foo($2) !tprello
23219 lda $4,foo($29) !tprel'
23220 tls_first_major=2
23221 tls_first_minor=13
23222 tls_as_opt=--fatal-warnings
23223 ;;
23224 cris-*-*|crisv32-*-*)
23225 conftest_s='
23226 .section ".tdata","awT",@progbits
23227 x: .long 25
23228 .text
23229 move.d x:IE,$r10
23230 nop'
23231 tls_first_major=2
23232 tls_first_minor=20
23233 tls_as_opt=--fatal-warnings
23234 ;;
23235 frv*-*-*)
23236 conftest_s='
23237 .section ".tdata","awT",@progbits
23238 x: .long 25
23239 .text
23240 call #gettlsoff(x)'
23241 tls_first_major=2
23242 tls_first_minor=14
23243 ;;
23244 hppa*-*-linux*)
23245 conftest_s='
23246 t1: .reg %r20
23247 t2: .reg %r21
23248 gp: .reg %r19
23249 .section ".tdata","awT",@progbits
23250 foo: .long 25
23251 .text
23252 .align 4
23253 addil LT%foo-$tls_gdidx$,gp
23254 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23255 b __tls_get_addr
23256 nop
23257 addil LT%foo-$tls_ldidx$,gp
23258 b __tls_get_addr
23259 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23260 addil LR%foo-$tls_dtpoff$,%ret0
23261 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23262 mfctl %cr27,%t1
23263 addil LT%foo-$tls_ieoff$,gp
23264 ldw RT%foo-$tls_ieoff$(%r1),%t2
23265 add %t1,%t2,%t3
23266 mfctl %cr27,%t1
23267 addil LR%foo-$tls_leoff$,%t1
23268 ldo RR%foo-$tls_leoff$(%r1),%t2'
23269 tls_first_major=2
23270 tls_first_minor=15
23271 tls_as_opt=--fatal-warnings
23272 ;;
23273 arm*-*-*)
23274 conftest_s='
23275 .section ".tdata","awT",%progbits
23276 foo: .long 25
23277 .text
23278 .word foo(gottpoff)
23279 .word foo(tpoff)
23280 .word foo(tlsgd)
23281 .word foo(tlsldm)
23282 .word foo(tlsldo)'
23283 tls_first_major=2
23284 tls_first_minor=17
23285 ;;
23286 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23287 case "$target" in
23288 i[34567]86-*-solaris2.*)
23289 on_solaris=yes
23290 tga_func=___tls_get_addr
23291 ;;
23292 x86_64-*-solaris2.1[0-9]*)
23293 on_solaris=yes
23294 tga_func=__tls_get_addr
23295 ;;
23296 *)
23297 on_solaris=no
23298 ;;
23299 esac
23300 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23301 conftest_s='
23302 .section .tdata,"awt",@progbits'
23303 tls_first_major=0
23304 tls_first_minor=0
23305 tls_section_flag=t
23306
23307 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23308
23309 else
23310 conftest_s='
23311 .section ".tdata","awT",@progbits'
23312 tls_first_major=2
23313 tls_first_minor=14
23314 tls_section_flag=T
23315 tls_as_opt="--fatal-warnings"
23316 fi
23317 conftest_s="$conftest_s
23318 foo: .long 25
23319 .text
23320 movl %gs:0, %eax
23321 leal foo@tlsgd(,%ebx,1), %eax
23322 leal foo@tlsldm(%ebx), %eax
23323 leal foo@dtpoff(%eax), %edx
23324 movl foo@gottpoff(%ebx), %eax
23325 subl foo@gottpoff(%ebx), %eax
23326 addl foo@gotntpoff(%ebx), %eax
23327 movl foo@indntpoff, %eax
23328 movl \$foo@tpoff, %eax
23329 subl \$foo@tpoff, %eax
23330 leal foo@ntpoff(%ecx), %eax"
23331 ;;
23332 x86_64-*-*)
23333 conftest_s='
23334 .section ".tdata","awT",@progbits
23335 foo: .long 25
23336 .text
23337 movq %fs:0, %rax
23338 leaq foo@TLSGD(%rip), %rdi
23339 leaq foo@TLSLD(%rip), %rdi
23340 leaq foo@DTPOFF(%rax), %rdx
23341 movq foo@GOTTPOFF(%rip), %rax
23342 movq $foo@TPOFF, %rax'
23343 tls_first_major=2
23344 tls_first_minor=14
23345 tls_section_flag=T
23346 tls_as_opt=--fatal-warnings
23347 ;;
23348 ia64-*-*)
23349 conftest_s='
23350 .section ".tdata","awT",@progbits
23351 foo: data8 25
23352 .text
23353 addl r16 = @ltoff(@dtpmod(foo#)), gp
23354 addl r17 = @ltoff(@dtprel(foo#)), gp
23355 addl r18 = @ltoff(@tprel(foo#)), gp
23356 addl r19 = @dtprel(foo#), gp
23357 adds r21 = @dtprel(foo#), r13
23358 movl r23 = @dtprel(foo#)
23359 addl r20 = @tprel(foo#), gp
23360 adds r22 = @tprel(foo#), r13
23361 movl r24 = @tprel(foo#)'
23362 tls_first_major=2
23363 tls_first_minor=13
23364 tls_as_opt=--fatal-warnings
23365 ;;
23366 microblaze*-*-*)
23367 conftest_s='
23368 .section .tdata,"awT",@progbits
23369 x:
23370 .word 2
23371 .text
23372 addik r5,r20,x@TLSGD
23373 addik r5,r20,x@TLSLDM'
23374 tls_first_major=2
23375 tls_first_minor=20
23376 tls_as_opt='--fatal-warnings'
23377 ;;
23378 mips*-*-*)
23379 conftest_s='
23380 .section .tdata,"awT",@progbits
23381 x:
23382 .word 2
23383 .text
23384 addiu $4, $28, %tlsgd(x)
23385 addiu $4, $28, %tlsldm(x)
23386 lui $4, %dtprel_hi(x)
23387 addiu $4, $4, %dtprel_lo(x)
23388 lw $4, %gottprel(x)($28)
23389 lui $4, %tprel_hi(x)
23390 addiu $4, $4, %tprel_lo(x)'
23391 tls_first_major=2
23392 tls_first_minor=16
23393 tls_as_opt='-32 --fatal-warnings'
23394 ;;
23395 m68k-*-*)
23396 conftest_s='
23397 .section .tdata,"awT",@progbits
23398 x:
23399 .word 2
23400 .text
23401 foo:
23402 move.l x@TLSGD(%a5),%a0
23403 move.l x@TLSLDM(%a5),%a0
23404 move.l x@TLSLDO(%a5),%a0
23405 move.l x@TLSIE(%a5),%a0
23406 move.l x@TLSLE(%a5),%a0'
23407 tls_first_major=2
23408 tls_first_minor=19
23409 tls_as_opt='--fatal-warnings'
23410 ;;
23411 nios2-*-*)
23412 conftest_s='
23413 .section ".tdata","awT",@progbits'
23414 tls_first_major=2
23415 tls_first_minor=23
23416 tls_as_opt="--fatal-warnings"
23417 ;;
23418 aarch64*-*-*)
23419 conftest_s='
23420 .section ".tdata","awT",%progbits
23421 foo: .long 25
23422 .text
23423 adrp x0, :tlsgd:x
23424 add x0, x0, #:tlsgd_lo12:x
23425 bl __tls_get_addr
23426 nop'
23427 tls_first_major=2
23428 tls_first_minor=20
23429 tls_as_opt='--fatal-warnings'
23430 ;;
23431 powerpc-ibm-aix*)
23432 conftest_s='
23433 .extern __get_tpointer
23434 .toc
23435 LC..1:
23436 .tc a[TC],a[TL]@le
23437 .csect .text[PR]
23438 .tlstest:
23439 lwz 9,LC..1(2)
23440 bla __get_tpointer
23441 lwzx 3,9,3
23442 .globl a
23443 .csect a[TL],4
23444 a:
23445 .space 4'
23446 tls_first_major=0
23447 tls_first_minor=0
23448 ;;
23449 powerpc64*-*-*)
23450 conftest_s='
23451 .section ".tdata","awT",@progbits
23452 .align 3
23453 ld0: .space 8
23454 ld1: .space 8
23455 x1: .space 8
23456 x2: .space 8
23457 x3: .space 8
23458 .text
23459 addi 3,2,ld0@got@tlsgd
23460 bl .__tls_get_addr
23461 nop
23462 addi 3,2,ld1@toc
23463 bl .__tls_get_addr
23464 nop
23465 addi 3,2,x1@got@tlsld
23466 bl .__tls_get_addr
23467 nop
23468 addi 9,3,x1@dtprel
23469 bl .__tls_get_addr
23470 nop
23471 addis 9,3,x2@dtprel@ha
23472 addi 9,9,x2@dtprel@l
23473 bl .__tls_get_addr
23474 nop
23475 ld 9,x3@got@dtprel(2)
23476 add 9,9,3
23477 bl .__tls_get_addr
23478 nop'
23479 tls_first_major=2
23480 tls_first_minor=14
23481 tls_as_opt="-a64 --fatal-warnings"
23482 ;;
23483 powerpc*-*-*)
23484 conftest_s='
23485 .section ".tdata","awT",@progbits
23486 .align 2
23487 ld0: .space 4
23488 ld1: .space 4
23489 x1: .space 4
23490 x2: .space 4
23491 x3: .space 4
23492 .text
23493 addi 3,31,ld0@got@tlsgd
23494 bl __tls_get_addr
23495 addi 3,31,x1@got@tlsld
23496 bl __tls_get_addr
23497 addi 9,3,x1@dtprel
23498 addis 9,3,x2@dtprel@ha
23499 addi 9,9,x2@dtprel@l
23500 lwz 9,x3@got@tprel(31)
23501 add 9,9,x@tls
23502 addi 9,2,x1@tprel
23503 addis 9,2,x2@tprel@ha
23504 addi 9,9,x2@tprel@l'
23505 tls_first_major=2
23506 tls_first_minor=14
23507 tls_as_opt="-a32 --fatal-warnings"
23508 ;;
23509 s390-*-*)
23510 conftest_s='
23511 .section ".tdata","awT",@progbits
23512 foo: .long 25
23513 .text
23514 .long foo@TLSGD
23515 .long foo@TLSLDM
23516 .long foo@DTPOFF
23517 .long foo@NTPOFF
23518 .long foo@GOTNTPOFF
23519 .long foo@INDNTPOFF
23520 l %r1,foo@GOTNTPOFF(%r12)
23521 l %r1,0(%r1):tls_load:foo
23522 bas %r14,0(%r1,%r13):tls_gdcall:foo
23523 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23524 tls_first_major=2
23525 tls_first_minor=14
23526 tls_as_opt="-m31 --fatal-warnings"
23527 ;;
23528 s390x-*-*)
23529 conftest_s='
23530 .section ".tdata","awT",@progbits
23531 foo: .long 25
23532 .text
23533 .quad foo@TLSGD
23534 .quad foo@TLSLDM
23535 .quad foo@DTPOFF
23536 .quad foo@NTPOFF
23537 .quad foo@GOTNTPOFF
23538 lg %r1,foo@GOTNTPOFF(%r12)
23539 larl %r1,foo@INDNTPOFF
23540 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23541 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23542 tls_first_major=2
23543 tls_first_minor=14
23544 tls_as_opt="-m64 -Aesame --fatal-warnings"
23545 ;;
23546 sh-*-* | sh[34]-*-*)
23547 conftest_s='
23548 .section ".tdata","awT",@progbits
23549 foo: .long 25
23550 .text
23551 .long foo@TLSGD
23552 .long foo@TLSLDM
23553 .long foo@DTPOFF
23554 .long foo@GOTTPOFF
23555 .long foo@TPOFF'
23556 tls_first_major=2
23557 tls_first_minor=13
23558 tls_as_opt=--fatal-warnings
23559 ;;
23560 sparc*-*-*)
23561 case "$target" in
23562 sparc*-sun-solaris2.*)
23563 on_solaris=yes
23564 tga_func=__tls_get_addr
23565 ;;
23566 *)
23567 on_solaris=no
23568 ;;
23569 esac
23570 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23571 conftest_s='
23572 .section ".tdata",#alloc,#write,#tls'
23573 tls_first_major=0
23574 tls_first_minor=0
23575 else
23576 conftest_s='
23577 .section ".tdata","awT",@progbits'
23578 tls_first_major=2
23579 tls_first_minor=14
23580 tls_as_opt="-32 --fatal-warnings"
23581 fi
23582 conftest_s="$conftest_s
23583 foo: .long 25
23584 .text
23585 sethi %tgd_hi22(foo), %o0
23586 add %o0, %tgd_lo10(foo), %o1
23587 add %l7, %o1, %o0, %tgd_add(foo)
23588 call __tls_get_addr, %tgd_call(foo)
23589 sethi %tldm_hi22(foo), %l1
23590 add %l1, %tldm_lo10(foo), %l2
23591 add %l7, %l2, %o0, %tldm_add(foo)
23592 call __tls_get_addr, %tldm_call(foo)
23593 sethi %tldo_hix22(foo), %l3
23594 xor %l3, %tldo_lox10(foo), %l4
23595 add %o0, %l4, %l5, %tldo_add(foo)
23596 sethi %tie_hi22(foo), %o3
23597 add %o3, %tie_lo10(foo), %o3
23598 ld [%l7 + %o3], %o2, %tie_ld(foo)
23599 add %g7, %o2, %o4, %tie_add(foo)
23600 sethi %tle_hix22(foo), %l1
23601 xor %l1, %tle_lox10(foo), %o5
23602 ld [%g7 + %o5], %o1"
23603 ;;
23604 tilepro*-*-*)
23605 conftest_s='
23606 .section ".tdata","awT",@progbits
23607 foo: .long 25
23608 .text
23609 addli r0, zero, tls_gd(foo)
23610 auli r0, zero, tls_gd_ha16(foo)
23611 addli r0, r0, tls_gd_lo16(foo)
23612 jal __tls_get_addr
23613 addli r0, zero, tls_ie(foo)
23614 auli r0, r0, tls_ie_ha16(foo)
23615 addli r0, r0, tls_ie_lo16(foo)'
23616 tls_first_major=2
23617 tls_first_minor=22
23618 tls_as_opt="--fatal-warnings"
23619 ;;
23620 tilegx*-*-*)
23621 conftest_s='
23622 .section ".tdata","awT",@progbits
23623 foo: .long 25
23624 .text
23625 shl16insli r0, zero, hw0_last_tls_gd(foo)
23626 shl16insli r0, zero, hw1_last_tls_gd(foo)
23627 shl16insli r0, r0, hw0_tls_gd(foo)
23628 jal __tls_get_addr
23629 shl16insli r0, zero, hw1_last_tls_ie(foo)
23630 shl16insli r0, r0, hw0_tls_ie(foo)'
23631 tls_first_major=2
23632 tls_first_minor=22
23633 tls_as_opt="--fatal-warnings"
23634 ;;
23635 xtensa*-*-*)
23636 conftest_s='
23637 .section ".tdata","awT",@progbits
23638 foo: .long 25
23639 .text
23640 movi a8, foo@TLSFUNC
23641 movi a10, foo@TLSARG
23642 callx8.tls a8, foo@TLSCALL'
23643 tls_first_major=2
23644 tls_first_minor=19
23645 ;;
23646 esac
23647 set_have_as_tls=no
23648 if test "x$enable_tls" = xno ; then
23649 : # TLS explicitly disabled.
23650 elif test "x$enable_tls" = xyes ; then
23651 set_have_as_tls=yes # TLS explicitly enabled.
23652 elif test -z "$tls_first_major"; then
23653 : # If we don't have a check, assume no support.
23654 else
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23656 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23657 if test "${gcc_cv_as_tls+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 gcc_cv_as_tls=no
23661 if test $in_tree_gas = yes; then
23662 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23663 then gcc_cv_as_tls=yes
23664 fi
23665 elif test x$gcc_cv_as != x; then
23666 $as_echo "$conftest_s" > conftest.s
23667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669 (eval $ac_try) 2>&5
23670 ac_status=$?
23671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672 test $ac_status = 0; }; }
23673 then
23674 gcc_cv_as_tls=yes
23675 else
23676 echo "configure: failed program was" >&5
23677 cat conftest.s >&5
23678 fi
23679 rm -f conftest.o conftest.s
23680 fi
23681 fi
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23683 $as_echo "$gcc_cv_as_tls" >&6; }
23684 if test $gcc_cv_as_tls = yes; then
23685 set_have_as_tls=yes
23686 fi
23687 fi
23688 case "$target" in
23689 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23690 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23691 # Sun style that Sun ld and GCC don't support any longer.
23692 *-*-solaris2.*)
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23694 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23695 ld_tls_support=no
23696 # Check ld and ld.so.1 TLS support.
23697 if echo "$ld_ver" | grep GNU > /dev/null; then
23698 # Assume all interesting versions of GNU ld have TLS support.
23699 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23700 ld_tls_support=yes
23701 else
23702 case "$target" in
23703 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23704 i?86-*-solaris2.9)
23705 min_tls_ld_vers_minor=374
23706 ;;
23707 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23708 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23709 min_tls_ld_vers_minor=343
23710 ;;
23711 esac
23712 if test "$ld_vers_major" -gt 1 || \
23713 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23714 ld_tls_support=yes
23715 else
23716 set_have_as_tls=no
23717 fi
23718 fi
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23720 $as_echo "$ld_tls_support" >&6; }
23721
23722 save_LIBS="$LIBS"
23723 save_LDFLAGS="$LDFLAGS"
23724 LIBS=
23725 LDFLAGS=
23726
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23728 $as_echo_n "checking library containing $tga_func... " >&6; }
23729 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23730 # (32-bit x86) only lived in libthread, so check for that. Keep
23731 # set_have_as_tls if found, disable if not.
23732 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23734 $as_echo_n "checking for library containing $tga_func... " >&6; }
23735 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23736 $as_echo_n "(cached) " >&6
23737 else
23738 ac_func_search_save_LIBS=$LIBS
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char $tga_func ();
23749 int
23750 main ()
23751 {
23752 return $tga_func ();
23753 ;
23754 return 0;
23755 }
23756 _ACEOF
23757 for ac_lib in '' thread; do
23758 if test -z "$ac_lib"; then
23759 ac_res="none required"
23760 else
23761 ac_res=-l$ac_lib
23762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23763 fi
23764 if ac_fn_c_try_link "$LINENO"; then :
23765 eval "$as_ac_Search=\$ac_res"
23766 fi
23767 rm -f core conftest.err conftest.$ac_objext \
23768 conftest$ac_exeext
23769 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23770 break
23771 fi
23772 done
23773 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23774
23775 else
23776 eval "$as_ac_Search=no"
23777 fi
23778 rm conftest.$ac_ext
23779 LIBS=$ac_func_search_save_LIBS
23780 fi
23781 eval ac_res=\$$as_ac_Search
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23783 $as_echo "$ac_res" >&6; }
23784 eval ac_res=\$$as_ac_Search
23785 if test "$ac_res" != no; then :
23786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23787
23788 else
23789 set_have_as_tls=no
23790 fi
23791
23792 ld_tls_libs="$LIBS"
23793 # Clear LIBS if we cannot support TLS.
23794 if test $set_have_as_tls = no; then
23795 LIBS=
23796 fi
23797 # Always define LIB_TLS_SPEC, even without TLS support.
23798
23799 cat >>confdefs.h <<_ACEOF
23800 #define LIB_TLS_SPEC "$LIBS"
23801 _ACEOF
23802
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23804 $as_echo "$LIBS" >&6; }
23805
23806 LIBS="$save_LIBS"
23807 LDFLAGS="$save_LDFLAGS"
23808 ;;
23809 esac
23810 if test $set_have_as_tls = yes ; then
23811
23812 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23813
23814 fi
23815
23816 # Target-specific assembler checks.
23817
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23819 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23820 gcc_cv_ld_static_dynamic=no
23821 gcc_cv_ld_static_option='-Bstatic'
23822 gcc_cv_ld_dynamic_option='-Bdynamic'
23823 if test $in_tree_ld = yes ; then
23824 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
23825 gcc_cv_ld_static_dynamic=yes
23826 fi
23827 elif test x$gcc_cv_ld != x; then
23828 # Check if linker supports -Bstatic/-Bdynamic option
23829 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23830 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23831 gcc_cv_ld_static_dynamic=yes
23832 else
23833 case "$target" in
23834 # AIX ld uses -b flags
23835 *-*-aix4.[23]* | *-*-aix[5-9]*)
23836 gcc_cv_ld_static_dynamic=yes
23837 gcc_cv_ld_static_option="-bstatic"
23838 gcc_cv_ld_dynamic_option="-bdynamic"
23839 ;;
23840 # HP-UX ld uses -a flags to select between shared and archive.
23841 *-*-hpux*)
23842 if test x"$gnu_ld" = xno; then
23843 gcc_cv_ld_static_dynamic=yes
23844 gcc_cv_ld_static_option="-aarchive_shared"
23845 gcc_cv_ld_dynamic_option="-adefault"
23846 fi
23847 ;;
23848 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23849 *-*-solaris2*)
23850 gcc_cv_ld_static_dynamic=yes
23851 ;;
23852 esac
23853 fi
23854 fi
23855 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23856
23857 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23858
23859
23860 cat >>confdefs.h <<_ACEOF
23861 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23862 _ACEOF
23863
23864
23865 cat >>confdefs.h <<_ACEOF
23866 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23867 _ACEOF
23868
23869 fi
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23871 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23872
23873 if test x"$demangler_in_ld" = xyes; then
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23875 $as_echo_n "checking linker --demangle support... " >&6; }
23876 gcc_cv_ld_demangle=no
23877 if test $in_tree_ld = yes; then
23878 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 \
23879 gcc_cv_ld_demangle=yes
23880 fi
23881 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23882 # Check if the GNU linker supports --demangle option
23883 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23884 gcc_cv_ld_demangle=yes
23885 fi
23886 fi
23887 if test x"$gcc_cv_ld_demangle" = xyes; then
23888
23889 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23890
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23893 $as_echo "$gcc_cv_ld_demangle" >&6; }
23894 fi
23895
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23897 $as_echo_n "checking linker plugin support... " >&6; }
23898 gcc_cv_lto_plugin=0
23899 if test -f liblto_plugin.la; then
23900 save_ld_ver="$ld_ver"
23901 save_ld_vers_major="$ld_vers_major"
23902 save_ld_vers_minor="$ld_vers_minor"
23903 save_ld_is_gold="$ld_is_gold"
23904
23905 ld_is_gold=no
23906
23907 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23908 ld_ver="GNU ld"
23909 # FIXME: ld_is_gold?
23910 ld_vers_major="$gcc_cv_gld_major_version"
23911 ld_vers_minor="$gcc_cv_gld_minor_version"
23912 else
23913 # Determine plugin linker version.
23914 # FIXME: Partial duplicate from above, generalize.
23915 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23916 if echo "$ld_ver" | grep GNU > /dev/null; then
23917 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23918 ld_is_gold=yes
23919 ld_vers=`echo $ld_ver | sed -n \
23920 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23921 else
23922 ld_vers=`echo $ld_ver | sed -n \
23923 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23924 fi
23925 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23926 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23927 fi
23928 fi
23929
23930 # Determine plugin support.
23931 if echo "$ld_ver" | grep GNU > /dev/null; then
23932 # Require GNU ld or gold 2.21+ for plugin support by default.
23933 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23934 gcc_cv_lto_plugin=2
23935 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23936 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23937 gcc_cv_lto_plugin=1
23938 fi
23939 fi
23940
23941 ld_ver="$save_ld_ver"
23942 ld_vers_major="$save_ld_vers_major"
23943 ld_vers_minor="$save_ld_vers_minor"
23944 ld_is_gold="$save_ld_is_gold"
23945 fi
23946
23947 cat >>confdefs.h <<_ACEOF
23948 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23949 _ACEOF
23950
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23952 $as_echo "$gcc_cv_lto_plugin" >&6; }
23953
23954 case "$target" in
23955 aarch64*-*-*)
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23957 $as_echo_n "checking assembler for -mabi option... " >&6; }
23958 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23959 $as_echo_n "(cached) " >&6
23960 else
23961 gcc_cv_as_aarch64_mabi=no
23962 if test x$gcc_cv_as != x; then
23963 $as_echo '.text' > conftest.s
23964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23970 then
23971 gcc_cv_as_aarch64_mabi=yes
23972 else
23973 echo "configure: failed program was" >&5
23974 cat conftest.s >&5
23975 fi
23976 rm -f conftest.o conftest.s
23977 fi
23978 fi
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23980 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23981
23982 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23983
23984 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23985
23986 else
23987 if test x$with_abi = xilp32; then
23988 as_fn_error "Assembler does not support -mabi=ilp32.\
23989 Upgrade the Assembler." "$LINENO" 5
23990 fi
23991 if test x"$with_multilib_list" = xdefault; then
23992 TM_MULTILIB_CONFIG=lp64
23993 else
23994 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23995 for aarch64_multilib in ${aarch64_multilibs}; do
23996 case ${aarch64_multilib} in
23997 ilp32)
23998 as_fn_error "Assembler does not support -mabi=ilp32.\
23999 Upgrade the Assembler." "$LINENO" 5
24000 ;;
24001 *)
24002 ;;
24003 esac
24004 done
24005 fi
24006 fi
24007 ;;
24008
24009 # All TARGET_ABI_OSF targets.
24010 alpha*-*-linux* | alpha*-*-*bsd*)
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24012 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24013 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24015 else
24016 gcc_cv_as_alpha_explicit_relocs=no
24017 if test $in_tree_gas = yes; then
24018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24019 then gcc_cv_as_alpha_explicit_relocs=yes
24020 fi
24021 elif test x$gcc_cv_as != x; then
24022 $as_echo ' .set nomacro
24023 .text
24024 extbl $3, $2, $3 !lituse_bytoff!1
24025 ldq $2, a($29) !literal!1
24026 ldq $4, b($29) !literal!2
24027 ldq_u $3, 0($2) !lituse_base!1
24028 ldq $27, f($29) !literal!5
24029 jsr $26, ($27), f !lituse_jsr!5
24030 ldah $29, 0($26) !gpdisp!3
24031 lda $0, c($29) !gprel
24032 ldah $1, d($29) !gprelhigh
24033 lda $1, d($1) !gprellow
24034 lda $29, 0($29) !gpdisp!3' > conftest.s
24035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24037 (eval $ac_try) 2>&5
24038 ac_status=$?
24039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24040 test $ac_status = 0; }; }
24041 then
24042 gcc_cv_as_alpha_explicit_relocs=yes
24043 else
24044 echo "configure: failed program was" >&5
24045 cat conftest.s >&5
24046 fi
24047 rm -f conftest.o conftest.s
24048 fi
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24051 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24052 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24053
24054 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24055
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24058 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24059 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24060 $as_echo_n "(cached) " >&6
24061 else
24062 gcc_cv_as_alpha_jsrdirect_relocs=no
24063 if test $in_tree_gas = yes; then
24064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24065 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24066 fi
24067 elif test x$gcc_cv_as != x; then
24068 $as_echo ' .set nomacro
24069 .text
24070 ldq $27, a($29) !literal!1
24071 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }; }
24078 then
24079 gcc_cv_as_alpha_jsrdirect_relocs=yes
24080 else
24081 echo "configure: failed program was" >&5
24082 cat conftest.s >&5
24083 fi
24084 rm -f conftest.o conftest.s
24085 fi
24086 fi
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24088 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24089 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24090
24091 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24092
24093 fi
24094 ;;
24095
24096 cris-*-*)
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24098 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24099 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24100 $as_echo_n "(cached) " >&6
24101 else
24102 gcc_cv_as_cris_no_mul_bug=no
24103 if test $in_tree_gas = yes; then
24104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24105 then gcc_cv_as_cris_no_mul_bug=yes
24106 fi
24107 elif test x$gcc_cv_as != x; then
24108 $as_echo '.text' > conftest.s
24109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24114 test $ac_status = 0; }; }
24115 then
24116 gcc_cv_as_cris_no_mul_bug=yes
24117 else
24118 echo "configure: failed program was" >&5
24119 cat conftest.s >&5
24120 fi
24121 rm -f conftest.o conftest.s
24122 fi
24123 fi
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24125 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24126 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24127
24128 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24129
24130 fi
24131 ;;
24132
24133 sparc*-*-*)
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24135 $as_echo_n "checking assembler for .register... " >&6; }
24136 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24139 gcc_cv_as_sparc_register_op=no
24140 if test x$gcc_cv_as != x; then
24141 $as_echo '.register %g2, #scratch' > conftest.s
24142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24148 then
24149 gcc_cv_as_sparc_register_op=yes
24150 else
24151 echo "configure: failed program was" >&5
24152 cat conftest.s >&5
24153 fi
24154 rm -f conftest.o conftest.s
24155 fi
24156 fi
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24158 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24159 if test $gcc_cv_as_sparc_register_op = yes; then
24160
24161 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24162
24163 fi
24164
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24166 $as_echo_n "checking assembler for #nobits... " >&6; }
24167 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24168 $as_echo_n "(cached) " >&6
24169 else
24170 gcc_cv_as_sparc_nobits=no
24171 if test x$gcc_cv_as != x; then
24172 $as_echo '.section "nobits",#alloc,#write,#nobits
24173 .section "progbits",#alloc,#write,#progbits' > conftest.s
24174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179 test $ac_status = 0; }; }
24180 then
24181 gcc_cv_as_sparc_nobits=yes
24182 else
24183 echo "configure: failed program was" >&5
24184 cat conftest.s >&5
24185 fi
24186 rm -f conftest.o conftest.s
24187 fi
24188 fi
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24190 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24191
24192
24193 cat >>confdefs.h <<_ACEOF
24194 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24195 _ACEOF
24196
24197
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24199 $as_echo_n "checking assembler for -relax option... " >&6; }
24200 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24201 $as_echo_n "(cached) " >&6
24202 else
24203 gcc_cv_as_sparc_relax=no
24204 if test x$gcc_cv_as != x; then
24205 $as_echo '.text' > conftest.s
24206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }
24212 then
24213 gcc_cv_as_sparc_relax=yes
24214 else
24215 echo "configure: failed program was" >&5
24216 cat conftest.s >&5
24217 fi
24218 rm -f conftest.o conftest.s
24219 fi
24220 fi
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24222 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24223 if test $gcc_cv_as_sparc_relax = yes; then
24224
24225 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24226
24227 fi
24228
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24230 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24231 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24232 $as_echo_n "(cached) " >&6
24233 else
24234 gcc_cv_as_sparc_gotdata_op=no
24235 if test x$gcc_cv_as != x; then
24236 $as_echo '.text
24237 .align 4
24238 foo:
24239 nop
24240 bar:
24241 sethi %gdop_hix22(foo), %g1
24242 xor %g1, %gdop_lox10(foo), %g1
24243 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24247 ac_status=$?
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }
24250 then
24251 if test x$gcc_cv_ld != x \
24252 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24253 if test x$gcc_cv_objdump != x; then
24254 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24255 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24256 gcc_cv_as_sparc_gotdata_op=no
24257 else
24258 gcc_cv_as_sparc_gotdata_op=yes
24259 fi
24260 fi
24261 fi
24262 rm -f conftest
24263 else
24264 echo "configure: failed program was" >&5
24265 cat conftest.s >&5
24266 fi
24267 rm -f conftest.o conftest.s
24268 fi
24269 fi
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24271 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24272 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24273
24274 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24275
24276 fi
24277
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24279 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24280 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24282 else
24283 gcc_cv_as_sparc_ua_pcrel=no
24284 if test x$gcc_cv_as != x; then
24285 $as_echo '.text
24286 foo:
24287 nop
24288 .data
24289 .align 4
24290 .byte 0
24291 .uaword %r_disp32(foo)' > conftest.s
24292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24297 test $ac_status = 0; }; }
24298 then
24299 if test x$gcc_cv_ld != x \
24300 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24301 gcc_cv_as_sparc_ua_pcrel=yes
24302 fi
24303 rm -f conftest
24304 else
24305 echo "configure: failed program was" >&5
24306 cat conftest.s >&5
24307 fi
24308 rm -f conftest.o conftest.s
24309 fi
24310 fi
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24312 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24313 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24314
24315 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24316
24317
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24319 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24320 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 gcc_cv_as_sparc_ua_pcrel_hidden=no
24324 if test x$gcc_cv_as != x; then
24325 $as_echo '.data
24326 .align 4
24327 .byte 0x31
24328 .uaword %r_disp32(foo)
24329 .byte 0x32, 0x33, 0x34
24330 .global foo
24331 .hidden foo
24332 foo:
24333 .skip 4' > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24340 then
24341 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24342 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24343 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24344 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24345 if $gcc_cv_objdump -R conftest 2> /dev/null \
24346 | grep 'DISP32' > /dev/null 2>&1; then
24347 :
24348 else
24349 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24350 fi
24351 fi
24352 rm -f conftest
24353 else
24354 echo "configure: failed program was" >&5
24355 cat conftest.s >&5
24356 fi
24357 rm -f conftest.o conftest.s
24358 fi
24359 fi
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24361 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24362 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24363
24364 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24365
24366 fi
24367
24368 fi # unaligned pcrel relocs
24369
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24371 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24372 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 gcc_cv_as_sparc_offsetable_lo10=no
24376 if test x$gcc_cv_as != x; then
24377 $as_echo '.text
24378 or %g1, %lo(ab) + 12, %g1
24379 or %g1, %lo(ab + 12), %g1' > conftest.s
24380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24382 (eval $ac_try) 2>&5
24383 ac_status=$?
24384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24385 test $ac_status = 0; }; }
24386 then
24387 if test x$gcc_cv_objdump != x \
24388 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24389 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24390 gcc_cv_as_sparc_offsetable_lo10=yes
24391 fi
24392 else
24393 echo "configure: failed program was" >&5
24394 cat conftest.s >&5
24395 fi
24396 rm -f conftest.o conftest.s
24397 fi
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24400 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24401 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24402
24403 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24404
24405 fi
24406
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24408 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24409 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24410 $as_echo_n "(cached) " >&6
24411 else
24412 gcc_cv_as_sparc_fmaf=no
24413 if test x$gcc_cv_as != x; then
24414 $as_echo '.text
24415 .register %g2, #scratch
24416 .register %g3, #scratch
24417 .align 4
24418 fmaddd %f0, %f2, %f4, %f6
24419 addxccc %g1, %g2, %g3
24420 fsrl32 %f2, %f4, %f8
24421 fnaddd %f10, %f12, %f14' > conftest.s
24422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24424 (eval $ac_try) 2>&5
24425 ac_status=$?
24426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24427 test $ac_status = 0; }; }
24428 then
24429 gcc_cv_as_sparc_fmaf=yes
24430 else
24431 echo "configure: failed program was" >&5
24432 cat conftest.s >&5
24433 fi
24434 rm -f conftest.o conftest.s
24435 fi
24436 fi
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24438 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24439 if test $gcc_cv_as_sparc_fmaf = yes; then
24440
24441 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24442
24443 fi
24444
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24446 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24447 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24448 $as_echo_n "(cached) " >&6
24449 else
24450 gcc_cv_as_sparc_sparc4=no
24451 if test x$gcc_cv_as != x; then
24452 $as_echo '.text
24453 .register %g2, #scratch
24454 .register %g3, #scratch
24455 .align 4
24456 cxbe %g2, %g3, 1f
24457 1: cwbneg %g2, %g3, 1f
24458 1: sha1
24459 md5
24460 aes_kexpand0 %f4, %f6, %f8
24461 des_round %f38, %f40, %f42, %f44
24462 camellia_f %f54, %f56, %f58, %f60
24463 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24470 then
24471 gcc_cv_as_sparc_sparc4=yes
24472 else
24473 echo "configure: failed program was" >&5
24474 cat conftest.s >&5
24475 fi
24476 rm -f conftest.o conftest.s
24477 fi
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24480 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24481 if test $gcc_cv_as_sparc_sparc4 = yes; then
24482
24483 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24484
24485 fi
24486
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24488 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24489 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
24491 else
24492 gcc_cv_as_sparc_leon=no
24493 if test x$gcc_cv_as != x; then
24494 $as_echo '.text
24495 .register %g2, #scratch
24496 .register %g3, #scratch
24497 .align 4
24498 smac %g2, %g3, %g1
24499 umac %g2, %g3, %g1
24500 cas [%g2], %g3, %g1' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_sparc_leon=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24512 fi
24513 rm -f conftest.o conftest.s
24514 fi
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24517 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24518 if test $gcc_cv_as_sparc_leon = yes; then
24519
24520 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24521
24522 fi
24523 ;;
24524
24525 i[34567]86-*-* | x86_64-*-*)
24526 case $target_os in
24527 cygwin*)
24528 # Full C++ conformance when using a shared libstdc++-v3 requires some
24529 # support from the Cygwin DLL, which in more recent versions exports
24530 # wrappers to aid in interposing and redirecting operators new, delete,
24531 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24532 # are configuring for a version of Cygwin that exports the wrappers.
24533 if test x$host = x$target && test x$host_cpu = xi686; then
24534 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24535 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24536 gcc_ac_cygwin_dll_wrappers=yes
24537 else
24538 gcc_ac_cygwin_dll_wrappers=no
24539 fi
24540
24541 else
24542 # Can't check presence of libc functions during cross-compile, so
24543 # we just have to assume we're building for an up-to-date target.
24544 gcc_ac_cygwin_dll_wrappers=yes
24545 fi
24546
24547 cat >>confdefs.h <<_ACEOF
24548 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24549 _ACEOF
24550
24551 esac
24552 case $target_os in
24553 cygwin* | pe | mingw32* | interix*)
24554 # Recent binutils allows the three-operand form of ".comm" on PE. This
24555 # definition is used unconditionally to initialise the default state of
24556 # the target option variable that governs usage of the feature.
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24558 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24559 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24561 else
24562 gcc_cv_as_comm_has_align=no
24563 if test $in_tree_gas = yes; then
24564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24565 then gcc_cv_as_comm_has_align=yes
24566 fi
24567 elif test x$gcc_cv_as != x; then
24568 $as_echo '.comm foo,1,32' > conftest.s
24569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24575 then
24576 gcc_cv_as_comm_has_align=yes
24577 else
24578 echo "configure: failed program was" >&5
24579 cat conftest.s >&5
24580 fi
24581 rm -f conftest.o conftest.s
24582 fi
24583 fi
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24585 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24586
24587
24588 cat >>confdefs.h <<_ACEOF
24589 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24590 _ACEOF
24591
24592 # Used for DWARF 2 in PE
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24594 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24595 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24597 else
24598 gcc_cv_as_ix86_pe_secrel32=no
24599 if test $in_tree_gas = yes; then
24600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24601 then gcc_cv_as_ix86_pe_secrel32=yes
24602 fi
24603 elif test x$gcc_cv_as != x; then
24604 $as_echo '.text
24605 foo: nop
24606 .data
24607 .secrel32 foo' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 if test x$gcc_cv_ld != x \
24616 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24617 gcc_cv_as_ix86_pe_secrel32=yes
24618 fi
24619 rm -f conftest
24620 else
24621 echo "configure: failed program was" >&5
24622 cat conftest.s >&5
24623 fi
24624 rm -f conftest.o conftest.s
24625 fi
24626 fi
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24628 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24629 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24630
24631 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24632
24633 fi
24634 # Test if the assembler supports the extended form of the .section
24635 # directive that specifies section alignment. LTO support uses this,
24636 # but normally only after installation, so we warn but don't fail the
24637 # configure if LTO is enabled but the assembler does not support it.
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24639 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24640 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24641 $as_echo_n "(cached) " >&6
24642 else
24643 gcc_cv_as_section_has_align=no
24644 if test $in_tree_gas = yes; then
24645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24646 then gcc_cv_as_section_has_align=yes
24647 fi
24648 elif test x$gcc_cv_as != x; then
24649 $as_echo '.section lto_test,"dr0"' > conftest.s
24650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655 test $ac_status = 0; }; }
24656 then
24657 gcc_cv_as_section_has_align=yes
24658 else
24659 echo "configure: failed program was" >&5
24660 cat conftest.s >&5
24661 fi
24662 rm -f conftest.o conftest.s
24663 fi
24664 fi
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24666 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24667
24668 if test x$gcc_cv_as_section_has_align != xyes; then
24669 case ",$enable_languages," in
24670 *,lto,*)
24671 { $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
24672 $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;}
24673 ;;
24674 esac
24675 fi
24676 # Test if the assembler supports the section flag 'e' for specifying
24677 # an excluded section.
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24679 $as_echo_n "checking assembler for .section with e... " >&6; }
24680 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24681 $as_echo_n "(cached) " >&6
24682 else
24683 gcc_cv_as_section_has_e=no
24684 if test $in_tree_gas = yes; then
24685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24686 then gcc_cv_as_section_has_e=yes
24687 fi
24688 elif test x$gcc_cv_as != x; then
24689 $as_echo '.section foo1,"e"
24690 .byte 0,0,0,0' > conftest.s
24691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24696 test $ac_status = 0; }; }
24697 then
24698 gcc_cv_as_section_has_e=yes
24699 else
24700 echo "configure: failed program was" >&5
24701 cat conftest.s >&5
24702 fi
24703 rm -f conftest.o conftest.s
24704 fi
24705 fi
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24707 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24708
24709
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24712 _ACEOF
24713
24714 ;;
24715 esac
24716
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24718 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24719 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_ix86_filds=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo 'filds mem; fists mem' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24731 then
24732 gcc_cv_as_ix86_filds=yes
24733 else
24734 echo "configure: failed program was" >&5
24735 cat conftest.s >&5
24736 fi
24737 rm -f conftest.o conftest.s
24738 fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24741 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24742 if test $gcc_cv_as_ix86_filds = yes; then
24743
24744 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24745
24746 fi
24747
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24749 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24750 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 gcc_cv_as_ix86_fildq=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo 'fildq mem; fistpq mem' > conftest.s
24756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24762 then
24763 gcc_cv_as_ix86_fildq=yes
24764 else
24765 echo "configure: failed program was" >&5
24766 cat conftest.s >&5
24767 fi
24768 rm -f conftest.o conftest.s
24769 fi
24770 fi
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24772 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24773 if test $gcc_cv_as_ix86_fildq = yes; then
24774
24775 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24776
24777 fi
24778
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24780 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24781 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24783 else
24784 gcc_cv_as_ix86_cmov_sun_syntax=no
24785 if test x$gcc_cv_as != x; then
24786 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24792 test $ac_status = 0; }; }
24793 then
24794 gcc_cv_as_ix86_cmov_sun_syntax=yes
24795 else
24796 echo "configure: failed program was" >&5
24797 cat conftest.s >&5
24798 fi
24799 rm -f conftest.o conftest.s
24800 fi
24801 fi
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24803 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24804 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24805
24806 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24807
24808 fi
24809
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24811 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24812 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24814 else
24815 gcc_cv_as_ix86_ffreep=no
24816 if test x$gcc_cv_as != x; then
24817 $as_echo 'ffreep %st(1)' > conftest.s
24818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24824 then
24825 gcc_cv_as_ix86_ffreep=yes
24826 else
24827 echo "configure: failed program was" >&5
24828 cat conftest.s >&5
24829 fi
24830 rm -f conftest.o conftest.s
24831 fi
24832 fi
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24834 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24835 if test $gcc_cv_as_ix86_ffreep = yes; then
24836
24837 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24838
24839 fi
24840
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24842 $as_echo_n "checking assembler for .quad directive... " >&6; }
24843 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24845 else
24846 gcc_cv_as_ix86_quad=no
24847 if test x$gcc_cv_as != x; then
24848 $as_echo '.quad 0' > conftest.s
24849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; }
24855 then
24856 gcc_cv_as_ix86_quad=yes
24857 else
24858 echo "configure: failed program was" >&5
24859 cat conftest.s >&5
24860 fi
24861 rm -f conftest.o conftest.s
24862 fi
24863 fi
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24865 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24866 if test $gcc_cv_as_ix86_quad = yes; then
24867
24868 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24869
24870 fi
24871
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24873 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24874 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24875 $as_echo_n "(cached) " >&6
24876 else
24877 gcc_cv_as_ix86_sahf=no
24878 if test x$gcc_cv_as != x; then
24879 $as_echo '.code64
24880 sahf' > conftest.s
24881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24887 then
24888 gcc_cv_as_ix86_sahf=yes
24889 else
24890 echo "configure: failed program was" >&5
24891 cat conftest.s >&5
24892 fi
24893 rm -f conftest.o conftest.s
24894 fi
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24897 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24898 if test $gcc_cv_as_ix86_sahf = yes; then
24899
24900 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24901
24902 fi
24903
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24905 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24906 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24908 else
24909 gcc_cv_as_ix86_interunit_movq=no
24910 if test x$gcc_cv_as != x; then
24911 $as_echo '.code64
24912 movq %mm0, %rax
24913 movq %rax, %xmm0' > conftest.s
24914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24919 test $ac_status = 0; }; }
24920 then
24921 gcc_cv_as_ix86_interunit_movq=yes
24922 else
24923 echo "configure: failed program was" >&5
24924 cat conftest.s >&5
24925 fi
24926 rm -f conftest.o conftest.s
24927 fi
24928 fi
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24930 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24931
24932
24933 cat >>confdefs.h <<_ACEOF
24934 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24935 _ACEOF
24936
24937
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24939 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24940 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_as_ix86_hle=no
24944 if test x$gcc_cv_as != x; then
24945 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24952 then
24953 gcc_cv_as_ix86_hle=yes
24954 else
24955 echo "configure: failed program was" >&5
24956 cat conftest.s >&5
24957 fi
24958 rm -f conftest.o conftest.s
24959 fi
24960 fi
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24962 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24963 if test $gcc_cv_as_ix86_hle = yes; then
24964
24965 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24966
24967 fi
24968
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24970 $as_echo_n "checking assembler for swap suffix... " >&6; }
24971 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 gcc_cv_as_ix86_swap=no
24975 if test x$gcc_cv_as != x; then
24976 $as_echo 'movl.s %esp, %ebp' > conftest.s
24977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24982 test $ac_status = 0; }; }
24983 then
24984 gcc_cv_as_ix86_swap=yes
24985 else
24986 echo "configure: failed program was" >&5
24987 cat conftest.s >&5
24988 fi
24989 rm -f conftest.o conftest.s
24990 fi
24991 fi
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24993 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24994 if test $gcc_cv_as_ix86_swap = yes; then
24995
24996 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24997
24998 fi
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25001 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25002 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25004 else
25005 gcc_cv_as_ix86_diff_sect_delta=no
25006 if test x$gcc_cv_as != x; then
25007 $as_echo '.section .rodata
25008 .L1:
25009 .long .L2-.L1
25010 .long .L3-.L1
25011 .text
25012 .L3: nop
25013 .L2: nop' > conftest.s
25014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019 test $ac_status = 0; }; }
25020 then
25021 gcc_cv_as_ix86_diff_sect_delta=yes
25022 else
25023 echo "configure: failed program was" >&5
25024 cat conftest.s >&5
25025 fi
25026 rm -f conftest.o conftest.s
25027 fi
25028 fi
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25030 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25031 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25032
25033 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25034
25035 fi
25036
25037 # These two are used unconditionally by i386.[ch]; it is to be defined
25038 # to 1 if the feature is present, 0 otherwise.
25039 as_ix86_gotoff_in_data_opt=
25040 if test x$gas = xyes; then
25041 as_ix86_gotoff_in_data_opt="--32"
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25044 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25045 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25046 $as_echo_n "(cached) " >&6
25047 else
25048 gcc_cv_as_ix86_gotoff_in_data=no
25049 if test $in_tree_gas = yes; then
25050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25051 then gcc_cv_as_ix86_gotoff_in_data=yes
25052 fi
25053 elif test x$gcc_cv_as != x; then
25054 $as_echo ' .text
25055 .L0:
25056 nop
25057 .data
25058 .long .L0@GOTOFF' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_ix86_gotoff_in_data=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25070 fi
25071 rm -f conftest.o conftest.s
25072 fi
25073 fi
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25075 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25076
25077
25078 cat >>confdefs.h <<_ACEOF
25079 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25080 _ACEOF
25081
25082
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25084 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25085 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_ix86_rep_lock_prefix=no
25089 if test x$gcc_cv_as != x; then
25090 $as_echo 'rep movsl
25091 rep ret
25092 rep nop
25093 rep bsf %ecx, %eax
25094 rep bsr %ecx, %eax
25095 lock addl %edi, (%eax,%esi)
25096 lock orl $0, (%esp)' > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_ix86_rep_lock_prefix=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25108 fi
25109 rm -f conftest.o conftest.s
25110 fi
25111 fi
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25113 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25114 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25115
25116 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25117
25118 fi
25119
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25121 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25122 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25123 $as_echo_n "(cached) " >&6
25124 else
25125 gcc_cv_as_ix86_ud2=no
25126 if test x$gcc_cv_as != x; then
25127 $as_echo 'ud2' > conftest.s
25128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133 test $ac_status = 0; }; }
25134 then
25135 gcc_cv_as_ix86_ud2=yes
25136 else
25137 echo "configure: failed program was" >&5
25138 cat conftest.s >&5
25139 fi
25140 rm -f conftest.o conftest.s
25141 fi
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25144 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25145 if test $gcc_cv_as_ix86_ud2 = yes; then
25146
25147 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25148
25149 fi
25150
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25152 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25153 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25155 else
25156 gcc_cv_as_ix86_tlsgdplt=no
25157 if test x$gcc_cv_as != x; then
25158 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25164 test $ac_status = 0; }; }
25165 then
25166 if test x$gcc_cv_ld != x \
25167 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25168 gcc_cv_as_ix86_tlsgdplt=yes
25169 fi
25170 rm -f conftest
25171 else
25172 echo "configure: failed program was" >&5
25173 cat conftest.s >&5
25174 fi
25175 rm -f conftest.o conftest.s
25176 fi
25177 fi
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25179 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25180 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25181
25182 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25183
25184 fi
25185
25186 conftest_s='
25187 .section .tdata,"aw'$tls_section_flag'",@progbits
25188 tls_ld:
25189 .section .text,"ax",@progbits
25190 call tls_ld@tlsldmplt'
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25192 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25193 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25195 else
25196 gcc_cv_as_ix86_tlsldmplt=no
25197 if test x$gcc_cv_as != x; then
25198 $as_echo "$conftest_s" > conftest.s
25199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25205 then
25206 if test x$gcc_cv_ld != x \
25207 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25208 gcc_cv_as_ix86_tlsldmplt=yes
25209 fi
25210 rm -f conftest
25211 else
25212 echo "configure: failed program was" >&5
25213 cat conftest.s >&5
25214 fi
25215 rm -f conftest.o conftest.s
25216 fi
25217 fi
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25219 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25220
25221
25222 cat >>confdefs.h <<_ACEOF
25223 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25224 _ACEOF
25225
25226
25227 # Enforce 32-bit output with gas and gld.
25228 if test x$gas = xyes; then
25229 as_ix86_tls_ldm_opt="--32"
25230 fi
25231 if echo "$ld_ver" | grep GNU > /dev/null; then
25232 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25233 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25234 else
25235 ld_ix86_tls_ldm_opt="-melf_i386"
25236 fi
25237 fi
25238 conftest_s='
25239 .section .text,"ax",@progbits
25240 .globl _start
25241 .type _start, @function
25242 _start:
25243 leal value@tlsldm(%ebx), %eax
25244 call ___tls_get_addr@plt
25245
25246 .section .tdata,"aw'$tls_section_flag'",@progbits
25247 .type value, @object
25248 value:'
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25250 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25251 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 gcc_cv_as_ix86_tlsldm=no
25255 if test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25265 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25266 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25267 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25268 gcc_cv_as_ix86_tlsldm=yes
25269 fi
25270 fi
25271 rm -f conftest
25272 else
25273 echo "configure: failed program was" >&5
25274 cat conftest.s >&5
25275 fi
25276 rm -f conftest.o conftest.s
25277 fi
25278 fi
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25280 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25281
25282
25283 cat >>confdefs.h <<_ACEOF
25284 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25285 _ACEOF
25286
25287
25288 ;;
25289
25290 ia64*-*-*)
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25292 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25293 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25294 $as_echo_n "(cached) " >&6
25295 else
25296 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25297 if test $in_tree_gas = yes; then
25298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25299 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25300 fi
25301 elif test x$gcc_cv_as != x; then
25302 $as_echo ' .text
25303 addl r15 = @ltoffx(x#), gp
25304 ;;
25305 ld8.mov r16 = [r15], x#' > conftest.s
25306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311 test $ac_status = 0; }; }
25312 then
25313 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25314 else
25315 echo "configure: failed program was" >&5
25316 cat conftest.s >&5
25317 fi
25318 rm -f conftest.o conftest.s
25319 fi
25320 fi
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25322 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25323 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25324
25325 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25326
25327 fi
25328
25329 ;;
25330
25331 powerpc*-*-*)
25332 case $target in
25333 *-*-aix*) conftest_s=' .machine "pwr5"
25334 .csect .text[PR]
25335 mfcr 3,128';;
25336 *-*-darwin*)
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25338 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25339 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_as_machine_directive=no
25343 if test x$gcc_cv_as != x; then
25344 $as_echo ' .machine ppc7400' > conftest.s
25345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25351 then
25352 gcc_cv_as_machine_directive=yes
25353 else
25354 echo "configure: failed program was" >&5
25355 cat conftest.s >&5
25356 fi
25357 rm -f conftest.o conftest.s
25358 fi
25359 fi
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25361 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25362
25363 if test x$gcc_cv_as_machine_directive != xyes; then
25364 echo "*** This target requires an assembler supporting \".machine\"" >&2
25365 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25366 test x$build = x$target && exit 1
25367 fi
25368 conftest_s=' .text
25369 mfcr r3,128';;
25370 *) conftest_s=' .machine power4
25371 .text
25372 mfcr 3,128';;
25373 esac
25374
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25376 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25377 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25379 else
25380 gcc_cv_as_powerpc_mfcrf=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25383 then gcc_cv_as_powerpc_mfcrf=yes
25384 fi
25385 elif test x$gcc_cv_as != x; then
25386 $as_echo "$conftest_s" > conftest.s
25387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25393 then
25394 gcc_cv_as_powerpc_mfcrf=yes
25395 else
25396 echo "configure: failed program was" >&5
25397 cat conftest.s >&5
25398 fi
25399 rm -f conftest.o conftest.s
25400 fi
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25403 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25404 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25405
25406 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25407
25408 fi
25409
25410 case $target in
25411 *-*-aix*) conftest_s=' .machine "pwr5"
25412 .csect .text[PR]
25413 popcntb 3,3';;
25414 *) conftest_s=' .machine power5
25415 .text
25416 popcntb 3,3';;
25417 esac
25418
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25420 $as_echo_n "checking assembler for popcntb support... " >&6; }
25421 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_powerpc_popcntb=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25427 then gcc_cv_as_powerpc_popcntb=yes
25428 fi
25429 elif test x$gcc_cv_as != x; then
25430 $as_echo "$conftest_s" > conftest.s
25431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25437 then
25438 gcc_cv_as_powerpc_popcntb=yes
25439 else
25440 echo "configure: failed program was" >&5
25441 cat conftest.s >&5
25442 fi
25443 rm -f conftest.o conftest.s
25444 fi
25445 fi
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25447 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25448 if test $gcc_cv_as_powerpc_popcntb = yes; then
25449
25450 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25451
25452 fi
25453
25454 case $target in
25455 *-*-aix*) conftest_s=' .machine "pwr5x"
25456 .csect .text[PR]
25457 frin 1,1';;
25458 *) conftest_s=' .machine power5
25459 .text
25460 frin 1,1';;
25461 esac
25462
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25464 $as_echo_n "checking assembler for fp round support... " >&6; }
25465 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_powerpc_fprnd=no
25469 if test $in_tree_gas = yes; then
25470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25471 then gcc_cv_as_powerpc_fprnd=yes
25472 fi
25473 elif test x$gcc_cv_as != x; then
25474 $as_echo "$conftest_s" > conftest.s
25475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; }
25481 then
25482 gcc_cv_as_powerpc_fprnd=yes
25483 else
25484 echo "configure: failed program was" >&5
25485 cat conftest.s >&5
25486 fi
25487 rm -f conftest.o conftest.s
25488 fi
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25491 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25492 if test $gcc_cv_as_powerpc_fprnd = yes; then
25493
25494 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25495
25496 fi
25497
25498 case $target in
25499 *-*-aix*) conftest_s=' .machine "pwr6"
25500 .csect .text[PR]
25501 mffgpr 1,3';;
25502 *) conftest_s=' .machine power6
25503 .text
25504 mffgpr 1,3';;
25505 esac
25506
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25508 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25509 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25511 else
25512 gcc_cv_as_powerpc_mfpgpr=no
25513 if test $in_tree_gas = yes; then
25514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25515 then gcc_cv_as_powerpc_mfpgpr=yes
25516 fi
25517 elif test x$gcc_cv_as != x; then
25518 $as_echo "$conftest_s" > conftest.s
25519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524 test $ac_status = 0; }; }
25525 then
25526 gcc_cv_as_powerpc_mfpgpr=yes
25527 else
25528 echo "configure: failed program was" >&5
25529 cat conftest.s >&5
25530 fi
25531 rm -f conftest.o conftest.s
25532 fi
25533 fi
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25535 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25536 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25537
25538 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25539
25540 fi
25541
25542 case $target in
25543 *-*-aix*) conftest_s=' .csect .text[PR]
25544 LCF..0:
25545 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25546 *-*-darwin*)
25547 conftest_s=' .text
25548 LCF0:
25549 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25550 *) conftest_s=' .text
25551 .LCF0:
25552 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25553 esac
25554
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25556 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25557 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_powerpc_rel16=no
25561 if test $in_tree_gas = yes; then
25562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25563 then gcc_cv_as_powerpc_rel16=yes
25564 fi
25565 elif test x$gcc_cv_as != x; then
25566 $as_echo "$conftest_s" > conftest.s
25567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25573 then
25574 gcc_cv_as_powerpc_rel16=yes
25575 else
25576 echo "configure: failed program was" >&5
25577 cat conftest.s >&5
25578 fi
25579 rm -f conftest.o conftest.s
25580 fi
25581 fi
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25583 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25584 if test $gcc_cv_as_powerpc_rel16 = yes; then
25585
25586 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25587
25588 fi
25589
25590 case $target in
25591 *-*-aix*) conftest_s=' .machine "pwr6"
25592 .csect .text[PR]
25593 cmpb 3,4,5';;
25594 *) conftest_s=' .machine power6
25595 .text
25596 cmpb 3,4,5';;
25597 esac
25598
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25600 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25601 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25603 else
25604 gcc_cv_as_powerpc_cmpb=no
25605 if test $in_tree_gas = yes; then
25606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25607 then gcc_cv_as_powerpc_cmpb=yes
25608 fi
25609 elif test x$gcc_cv_as != x; then
25610 $as_echo "$conftest_s" > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_cmpb=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_powerpc_cmpb" >&5
25627 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25628 if test $gcc_cv_as_powerpc_cmpb = yes; then
25629
25630 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25631
25632 fi
25633
25634 case $target in
25635 *-*-aix*) conftest_s=' .machine "pwr6"
25636 .csect .text[PR]
25637 dadd 1,2,3';;
25638 *) conftest_s=' .machine power6
25639 .text
25640 dadd 1,2,3';;
25641 esac
25642
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25644 $as_echo_n "checking assembler for decimal float support... " >&6; }
25645 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25646 $as_echo_n "(cached) " >&6
25647 else
25648 gcc_cv_as_powerpc_dfp=no
25649 if test $in_tree_gas = yes; then
25650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25651 then gcc_cv_as_powerpc_dfp=yes
25652 fi
25653 elif test x$gcc_cv_as != x; then
25654 $as_echo "$conftest_s" > conftest.s
25655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25660 test $ac_status = 0; }; }
25661 then
25662 gcc_cv_as_powerpc_dfp=yes
25663 else
25664 echo "configure: failed program was" >&5
25665 cat conftest.s >&5
25666 fi
25667 rm -f conftest.o conftest.s
25668 fi
25669 fi
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25671 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25672 if test $gcc_cv_as_powerpc_dfp = yes; then
25673
25674 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25675
25676 fi
25677
25678 case $target in
25679 *-*-aix*) conftest_s=' .machine "pwr7"
25680 .csect .text[PR]
25681 lxvd2x 1,2,3';;
25682 *) conftest_s=' .machine power7
25683 .text
25684 lxvd2x 1,2,3';;
25685 esac
25686
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25688 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25689 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25691 else
25692 gcc_cv_as_powerpc_vsx=no
25693 if test $in_tree_gas = yes; then
25694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25695 then gcc_cv_as_powerpc_vsx=yes
25696 fi
25697 elif test x$gcc_cv_as != x; then
25698 $as_echo "$conftest_s" > conftest.s
25699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25704 test $ac_status = 0; }; }
25705 then
25706 gcc_cv_as_powerpc_vsx=yes
25707 else
25708 echo "configure: failed program was" >&5
25709 cat conftest.s >&5
25710 fi
25711 rm -f conftest.o conftest.s
25712 fi
25713 fi
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25715 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25716 if test $gcc_cv_as_powerpc_vsx = yes; then
25717
25718 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25719
25720 fi
25721
25722 case $target in
25723 *-*-aix*) conftest_s=' .machine "pwr7"
25724 .csect .text[PR]
25725 popcntd 3,3';;
25726 *) conftest_s=' .machine power7
25727 .text
25728 popcntd 3,3';;
25729 esac
25730
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25732 $as_echo_n "checking assembler for popcntd support... " >&6; }
25733 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25734 $as_echo_n "(cached) " >&6
25735 else
25736 gcc_cv_as_powerpc_popcntd=no
25737 if test $in_tree_gas = yes; then
25738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25739 then gcc_cv_as_powerpc_popcntd=yes
25740 fi
25741 elif test x$gcc_cv_as != x; then
25742 $as_echo "$conftest_s" > conftest.s
25743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_popcntd=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_powerpc_popcntd" >&5
25759 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25760 if test $gcc_cv_as_powerpc_popcntd = yes; then
25761
25762 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25763
25764 fi
25765
25766 case $target in
25767 *-*-aix*) conftest_s=' .machine "pwr8"
25768 .csect .text[PR]';;
25769 *) conftest_s=' .machine power8
25770 .text';;
25771 esac
25772
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25774 $as_echo_n "checking assembler for power8 support... " >&6; }
25775 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25777 else
25778 gcc_cv_as_powerpc_power8=no
25779 if test $in_tree_gas = yes; then
25780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25781 then gcc_cv_as_powerpc_power8=yes
25782 fi
25783 elif test x$gcc_cv_as != x; then
25784 $as_echo "$conftest_s" > conftest.s
25785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25790 test $ac_status = 0; }; }
25791 then
25792 gcc_cv_as_powerpc_power8=yes
25793 else
25794 echo "configure: failed program was" >&5
25795 cat conftest.s >&5
25796 fi
25797 rm -f conftest.o conftest.s
25798 fi
25799 fi
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25801 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25802 if test $gcc_cv_as_powerpc_power8 = yes; then
25803
25804 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25805
25806 fi
25807
25808 case $target in
25809 *-*-aix*) conftest_s=' .csect .text[PR]
25810 lwsync';;
25811 *) conftest_s=' .text
25812 lwsync';;
25813 esac
25814
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25816 $as_echo_n "checking assembler for lwsync support... " >&6; }
25817 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25819 else
25820 gcc_cv_as_powerpc_lwsync=no
25821 if test $in_tree_gas = yes; then
25822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25823 then gcc_cv_as_powerpc_lwsync=yes
25824 fi
25825 elif test x$gcc_cv_as != x; then
25826 $as_echo "$conftest_s" > conftest.s
25827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25832 test $ac_status = 0; }; }
25833 then
25834 gcc_cv_as_powerpc_lwsync=yes
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_powerpc_lwsync" >&5
25843 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25844 if test $gcc_cv_as_powerpc_lwsync = yes; then
25845
25846 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25847
25848 fi
25849
25850 case $target in
25851 *-*-aix*) conftest_s=' .machine "476"
25852 .csect .text[PR]
25853 dci 0';;
25854 *) conftest_s=' .machine "476"
25855 .text
25856 dci 0';;
25857 esac
25858
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25860 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25861 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25862 $as_echo_n "(cached) " >&6
25863 else
25864 gcc_cv_as_powerpc_dci=no
25865 if test $in_tree_gas = yes; then
25866 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25867 then gcc_cv_as_powerpc_dci=yes
25868 fi
25869 elif test x$gcc_cv_as != x; then
25870 $as_echo "$conftest_s" > conftest.s
25871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25873 (eval $ac_try) 2>&5
25874 ac_status=$?
25875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25876 test $ac_status = 0; }; }
25877 then
25878 gcc_cv_as_powerpc_dci=yes
25879 else
25880 echo "configure: failed program was" >&5
25881 cat conftest.s >&5
25882 fi
25883 rm -f conftest.o conftest.s
25884 fi
25885 fi
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25887 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25888 if test $gcc_cv_as_powerpc_dci = yes; then
25889
25890 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25891
25892 fi
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25895 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25896 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_powerpc_gnu_attribute=no
25900 if test $in_tree_gas = yes; then
25901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25902 then gcc_cv_as_powerpc_gnu_attribute=yes
25903 fi
25904 elif test x$gcc_cv_as != x; then
25905 $as_echo '.gnu_attribute 4,1' > conftest.s
25906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25912 then
25913 gcc_cv_as_powerpc_gnu_attribute=yes
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25917 fi
25918 rm -f conftest.o conftest.s
25919 fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25922 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25923 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25924
25925 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25926
25927 fi
25928
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25930 $as_echo_n "checking assembler for tls marker support... " >&6; }
25931 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_powerpc_tls_markers=no
25935 if test $in_tree_gas = yes; then
25936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25937 then gcc_cv_as_powerpc_tls_markers=yes
25938 fi
25939 elif test x$gcc_cv_as != x; then
25940 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25946 test $ac_status = 0; }; }
25947 then
25948 gcc_cv_as_powerpc_tls_markers=yes
25949 else
25950 echo "configure: failed program was" >&5
25951 cat conftest.s >&5
25952 fi
25953 rm -f conftest.o conftest.s
25954 fi
25955 fi
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25957 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25958 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25959
25960 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25961
25962 fi
25963
25964 case $target in
25965 *-*-aix*)
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25967 $as_echo_n "checking assembler for .ref support... " >&6; }
25968 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_as_aix_ref=no
25972 if test $in_tree_gas = yes; then
25973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25974 then gcc_cv_as_aix_ref=yes
25975 fi
25976 elif test x$gcc_cv_as != x; then
25977 $as_echo ' .csect stuff[rw]
25978 stuff:
25979 .long 1
25980 .extern sym
25981 .ref sym
25982 ' > conftest.s
25983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; }
25989 then
25990 gcc_cv_as_aix_ref=yes
25991 else
25992 echo "configure: failed program was" >&5
25993 cat conftest.s >&5
25994 fi
25995 rm -f conftest.o conftest.s
25996 fi
25997 fi
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25999 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26000 if test $gcc_cv_as_aix_ref = yes; then
26001
26002 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26003
26004 fi
26005 ;;
26006 esac
26007 ;;
26008
26009 mips*-*-*)
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26011 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26012 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26013 $as_echo_n "(cached) " >&6
26014 else
26015 gcc_cv_as_mips_explicit_relocs=no
26016 if test $in_tree_gas = yes; then
26017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26018 then gcc_cv_as_mips_explicit_relocs=yes
26019 fi
26020 elif test x$gcc_cv_as != x; then
26021 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26027 test $ac_status = 0; }; }
26028 then
26029 gcc_cv_as_mips_explicit_relocs=yes
26030 else
26031 echo "configure: failed program was" >&5
26032 cat conftest.s >&5
26033 fi
26034 rm -f conftest.o conftest.s
26035 fi
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26038 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26039 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26040 if test x$target_cpu_default = x
26041 then target_cpu_default=MASK_EXPLICIT_RELOCS
26042 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26043 fi
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26046 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26047 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_mips_no_shared=no
26051 if test $in_tree_gas = yes; then
26052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26053 then gcc_cv_as_mips_no_shared=yes
26054 fi
26055 elif test x$gcc_cv_as != x; then
26056 $as_echo 'nop' > conftest.s
26057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26063 then
26064 gcc_cv_as_mips_no_shared=yes
26065 else
26066 echo "configure: failed program was" >&5
26067 cat conftest.s >&5
26068 fi
26069 rm -f conftest.o conftest.s
26070 fi
26071 fi
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26073 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26074 if test $gcc_cv_as_mips_no_shared = yes; then
26075
26076 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26077
26078 fi
26079
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26081 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26082 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26083 $as_echo_n "(cached) " >&6
26084 else
26085 gcc_cv_as_mips_gnu_attribute=no
26086 if test $in_tree_gas = yes; then
26087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26088 then gcc_cv_as_mips_gnu_attribute=yes
26089 fi
26090 elif test x$gcc_cv_as != x; then
26091 $as_echo '.gnu_attribute 4,1' > conftest.s
26092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; }
26098 then
26099 gcc_cv_as_mips_gnu_attribute=yes
26100 else
26101 echo "configure: failed program was" >&5
26102 cat conftest.s >&5
26103 fi
26104 rm -f conftest.o conftest.s
26105 fi
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26108 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26109 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26110
26111 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26112
26113 fi
26114
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26116 $as_echo_n "checking assembler for .micromips support... " >&6; }
26117 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26118 $as_echo_n "(cached) " >&6
26119 else
26120 gcc_cv_as_micromips_support=no
26121 if test x$gcc_cv_as != x; then
26122 $as_echo '.set micromips' > conftest.s
26123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26128 test $ac_status = 0; }; }
26129 then
26130 gcc_cv_as_micromips_support=yes
26131 else
26132 echo "configure: failed program was" >&5
26133 cat conftest.s >&5
26134 fi
26135 rm -f conftest.o conftest.s
26136 fi
26137 fi
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26139 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26140 if test $gcc_cv_as_micromips_support = yes; then
26141
26142 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26143
26144 fi
26145
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26147 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26148 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150 else
26151 gcc_cv_as_mips_dtprelword=no
26152 if test $in_tree_gas = yes; then
26153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26154 then gcc_cv_as_mips_dtprelword=yes
26155 fi
26156 elif test x$gcc_cv_as != x; then
26157 $as_echo '.section .tdata,"awT",@progbits
26158 x:
26159 .word 2
26160 .text
26161 .dtprelword x+0x8000' > conftest.s
26162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26164 (eval $ac_try) 2>&5
26165 ac_status=$?
26166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26167 test $ac_status = 0; }; }
26168 then
26169 gcc_cv_as_mips_dtprelword=yes
26170 else
26171 echo "configure: failed program was" >&5
26172 cat conftest.s >&5
26173 fi
26174 rm -f conftest.o conftest.s
26175 fi
26176 fi
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26178 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26179 if test $gcc_cv_as_mips_dtprelword = yes; then
26180
26181 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26182
26183 fi
26184
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26186 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26187 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26188 $as_echo_n "(cached) " >&6
26189 else
26190 gcc_cv_as_mips_dspr1_mult=no
26191 if test x$gcc_cv_as != x; then
26192 $as_echo ' .set mips32r2
26193 .set nodspr2
26194 .set dsp
26195 madd $ac3,$4,$5
26196 maddu $ac3,$4,$5
26197 msub $ac3,$4,$5
26198 msubu $ac3,$4,$5
26199 mult $ac3,$4,$5
26200 multu $ac3,$4,$5' > conftest.s
26201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26206 test $ac_status = 0; }; }
26207 then
26208 gcc_cv_as_mips_dspr1_mult=yes
26209 else
26210 echo "configure: failed program was" >&5
26211 cat conftest.s >&5
26212 fi
26213 rm -f conftest.o conftest.s
26214 fi
26215 fi
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26217 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26218 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26219
26220 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26221
26222 fi
26223
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26225 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26226 gcc_cv_as_ld_jalr_reloc=no
26227 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26228 if test $in_tree_ld = yes ; then
26229 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 \
26230 && test $in_tree_ld_is_elf = yes; then
26231 gcc_cv_as_ld_jalr_reloc=yes
26232 fi
26233 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26234 echo ' .ent x' > conftest.s
26235 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26236 echo ' ld $25,%call16(y)($28)' >> conftest.s
26237 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26238 echo '1: jalr $25' >> conftest.s
26239 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26240 echo '1: jalr $25' >> conftest.s
26241 echo ' .end x' >> conftest.s
26242 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26243 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26244 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26245 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26246 gcc_cv_as_ld_jalr_reloc=yes
26247 fi
26248 fi
26249 rm -f conftest.*
26250 fi
26251 fi
26252 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26253 if test x$target_cpu_default = x; then
26254 target_cpu_default=MASK_RELAX_PIC_CALLS
26255 else
26256 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26257 fi
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26260 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26263 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26264 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26265 $as_echo_n "(cached) " >&6
26266 else
26267 gcc_cv_ld_mips_personality_relaxation=no
26268 if test $in_tree_ld = yes ; then
26269 if test "$gcc_cv_gld_major_version" -eq 2 \
26270 -a "$gcc_cv_gld_minor_version" -ge 21 \
26271 -o "$gcc_cv_gld_major_version" -gt 2; then
26272 gcc_cv_ld_mips_personality_relaxation=yes
26273 fi
26274 elif test x$gcc_cv_as != x \
26275 -a x$gcc_cv_ld != x \
26276 -a x$gcc_cv_readelf != x ; then
26277 cat > conftest.s <<EOF
26278 .cfi_startproc
26279 .cfi_personality 0x80,indirect_ptr
26280 .ent test
26281 test:
26282 nop
26283 .end test
26284 .cfi_endproc
26285
26286 .section .data,"aw",@progbits
26287 indirect_ptr:
26288 .dc.a personality
26289 EOF
26290 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26291 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26292 if $gcc_cv_readelf -d conftest 2>&1 \
26293 | grep TEXTREL > /dev/null 2>&1; then
26294 :
26295 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26296 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26297 :
26298 else
26299 gcc_cv_ld_mips_personality_relaxation=yes
26300 fi
26301 fi
26302 fi
26303 rm -f conftest.s conftest.o conftest
26304 fi
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26306 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26307 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26308
26309 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26310
26311 fi
26312
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26314 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26315 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 gcc_cv_as_mips_nan=no
26319 if test x$gcc_cv_as != x; then
26320 $as_echo '' > conftest.s
26321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26324 ac_status=$?
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26327 then
26328 gcc_cv_as_mips_nan=yes
26329 else
26330 echo "configure: failed program was" >&5
26331 cat conftest.s >&5
26332 fi
26333 rm -f conftest.o conftest.s
26334 fi
26335 fi
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26337 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26338 if test $gcc_cv_as_mips_nan = yes; then
26339
26340 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26341
26342 fi
26343 if test x$gcc_cv_as_mips_nan = xno \
26344 && test x$with_nan != x; then
26345 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26346 fi
26347 ;;
26348 esac
26349
26350 # Mips and HP-UX need the GNU assembler.
26351 # Linux on IA64 might be able to use the Intel assembler.
26352
26353 case "$target" in
26354 mips*-*-* | *-*-hpux* )
26355 if test x$gas_flag = xyes \
26356 || test x"$host" != x"$build" \
26357 || test ! -x "$gcc_cv_as" \
26358 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26359 :
26360 else
26361 echo "*** This configuration requires the GNU assembler" >&2
26362 exit 1
26363 fi
26364 ;;
26365 esac
26366
26367 # ??? Not all targets support dwarf2 debug_line, even within a version
26368 # of gas. Moreover, we need to emit a valid instruction to trigger any
26369 # info to the output file. So, as supported targets are added to gas 2.11,
26370 # add some instruction here to (also) show we expect this might work.
26371 # ??? Once 2.11 is released, probably need to add first known working
26372 # version to the per-target configury.
26373 case "$cpu_type" in
26374 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26375 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26376 | xstormy16 | xtensa)
26377 insn="nop"
26378 ;;
26379 ia64 | s390)
26380 insn="nop 0"
26381 ;;
26382 mmix)
26383 insn="swym 0"
26384 ;;
26385 esac
26386 if test x"$insn" != x; then
26387 conftest_s="\
26388 .file 1 \"conftest.s\"
26389 .loc 1 3 0
26390 $insn"
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26392 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26393 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26395 else
26396 gcc_cv_as_dwarf2_debug_line=no
26397 if test $in_tree_gas = yes; then
26398 if test $in_tree_gas_is_elf = yes \
26399 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26400 then gcc_cv_as_dwarf2_debug_line=yes
26401 fi
26402 elif test x$gcc_cv_as != x; then
26403 $as_echo "$conftest_s" > conftest.s
26404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; }
26410 then
26411 if test x$gcc_cv_objdump != x \
26412 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26413 | grep debug_line > /dev/null 2>&1; then
26414 gcc_cv_as_dwarf2_debug_line=yes
26415 fi
26416 else
26417 echo "configure: failed program was" >&5
26418 cat conftest.s >&5
26419 fi
26420 rm -f conftest.o conftest.s
26421 fi
26422 fi
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26424 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26425
26426
26427 # The .debug_line file table must be in the exact order that
26428 # we specified the files, since these indices are also used
26429 # by DW_AT_decl_file. Approximate this test by testing if
26430 # the assembler bitches if the same index is assigned twice.
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26432 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26433 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26434 $as_echo_n "(cached) " >&6
26435 else
26436 gcc_cv_as_dwarf2_file_buggy=no
26437 if test x$gcc_cv_as != x; then
26438 $as_echo ' .file 1 "foo.s"
26439 .file 1 "bar.s"' > conftest.s
26440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26446 then
26447 gcc_cv_as_dwarf2_file_buggy=yes
26448 else
26449 echo "configure: failed program was" >&5
26450 cat conftest.s >&5
26451 fi
26452 rm -f conftest.o conftest.s
26453 fi
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26456 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26457
26458
26459 if test $gcc_cv_as_dwarf2_debug_line = yes \
26460 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26461
26462 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26463
26464 fi
26465
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26467 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26468 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_as_gdwarf2_flag=no
26472 if test $in_tree_gas = yes; then
26473 if test $in_tree_gas_is_elf = yes \
26474 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26475 then gcc_cv_as_gdwarf2_flag=yes
26476 fi
26477 elif test x$gcc_cv_as != x; then
26478 $as_echo "$insn" > conftest.s
26479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; }
26485 then
26486 gcc_cv_as_gdwarf2_flag=yes
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26490 fi
26491 rm -f conftest.o conftest.s
26492 fi
26493 fi
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26495 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26496 if test $gcc_cv_as_gdwarf2_flag = yes; then
26497
26498 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26499
26500 fi
26501
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26503 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26504 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26506 else
26507 gcc_cv_as_gstabs_flag=no
26508 if test $in_tree_gas = yes; then
26509 if test $in_tree_gas_is_elf = yes \
26510 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26511 then gcc_cv_as_gstabs_flag=yes
26512 fi
26513 elif test x$gcc_cv_as != x; then
26514 $as_echo "$insn" > conftest.s
26515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26517 (eval $ac_try) 2>&5
26518 ac_status=$?
26519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26520 test $ac_status = 0; }; }
26521 then
26522 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26523 # and warns about it, but still exits successfully. So check for
26524 # this.
26525 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530 test $ac_status = 0; }; }
26531 then :
26532 else gcc_cv_as_gstabs_flag=yes
26533 fi
26534 else
26535 echo "configure: failed program was" >&5
26536 cat conftest.s >&5
26537 fi
26538 rm -f conftest.o conftest.s
26539 fi
26540 fi
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26542 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26543 if test $gcc_cv_as_gstabs_flag = yes; then
26544
26545 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26546
26547 fi
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26550 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26551 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_debug_prefix_map_flag=no
26555 if test $in_tree_gas = yes; then
26556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26557 then gcc_cv_as_debug_prefix_map_flag=yes
26558 fi
26559 elif test x$gcc_cv_as != x; then
26560 $as_echo "$insn" > conftest.s
26561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566 test $ac_status = 0; }; }
26567 then
26568 gcc_cv_as_debug_prefix_map_flag=yes
26569 else
26570 echo "configure: failed program was" >&5
26571 cat conftest.s >&5
26572 fi
26573 rm -f conftest.o conftest.s
26574 fi
26575 fi
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26577 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26578 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26579
26580 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26581
26582 fi
26583 fi
26584
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26586 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26587 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_lcomm_with_alignment=no
26591 if test x$gcc_cv_as != x; then
26592 $as_echo '.lcomm bar,4,16' > conftest.s
26593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; }
26599 then
26600 gcc_cv_as_lcomm_with_alignment=yes
26601 else
26602 echo "configure: failed program was" >&5
26603 cat conftest.s >&5
26604 fi
26605 rm -f conftest.o conftest.s
26606 fi
26607 fi
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26609 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26610 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26611
26612 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26613
26614 fi
26615
26616 if test x$with_sysroot = x && test x$host = x$target \
26617 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26618 && test "$prefix" != "NONE"; then
26619
26620 cat >>confdefs.h <<_ACEOF
26621 #define PREFIX_INCLUDE_DIR "$prefix/include"
26622 _ACEOF
26623
26624 fi
26625
26626 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26627 if test "x$with_headers" != x; then
26628 target_header_dir=$with_headers
26629 elif test "x$with_sysroot" = x; then
26630 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26631 elif test "x$with_build_sysroot" != "x"; then
26632 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26633 elif test "x$with_sysroot" = xyes; then
26634 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26635 else
26636 target_header_dir="${with_sysroot}${native_system_header_dir}"
26637 fi
26638 else
26639 target_header_dir=${native_system_header_dir}
26640 fi
26641
26642 # Determine the version of glibc, if any, used on the target.
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26644 $as_echo_n "checking for target glibc version... " >&6; }
26645
26646 # Check whether --with-glibc-version was given.
26647 if test "${with_glibc_version+set}" = set; then :
26648 withval=$with_glibc_version;
26649 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26650 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26651 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26652 else
26653 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26654 fi
26655 else
26656
26657 glibc_version_major=0
26658 glibc_version_minor=0
26659 if test -f $target_header_dir/features.h \
26660 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26661 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26662 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26663 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26664 fi
26665 fi
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26668 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26669
26670 # Check whether --enable-gnu-unique-object was given.
26671 if test "${enable_gnu_unique_object+set}" = set; then :
26672 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26673 yes | no) ;;
26674 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26675 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26676 esac
26677 else
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26679 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26680 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26682 else
26683 gcc_cv_as_gnu_unique_object=no
26684 if test $in_tree_gas = yes; then
26685 if test $in_tree_gas_is_elf = yes \
26686 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26687 then gcc_cv_as_gnu_unique_object=yes
26688 fi
26689 elif test x$gcc_cv_as != x; then
26690 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; }
26697 then
26698 gcc_cv_as_gnu_unique_object=yes
26699 else
26700 echo "configure: failed program was" >&5
26701 cat conftest.s >&5
26702 fi
26703 rm -f conftest.o conftest.s
26704 fi
26705 fi
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26707 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26708 if test $gcc_cv_as_gnu_unique_object = yes; then
26709 # We need to unquote above to to use the definition from config.gcc.
26710 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26711
26712 if test $glibc_version_major -gt 2 \
26713 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26714 enable_gnu_unique_object=yes
26715 fi
26716
26717 fi
26718 fi
26719
26720 if test x$enable_gnu_unique_object = xyes; then
26721
26722 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26723
26724 fi
26725
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26727 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26728 if test "${gcc_cv_as_line_zero+set}" = set; then :
26729 $as_echo_n "(cached) " >&6
26730 else
26731 gcc_cv_as_line_zero=no
26732 if test $in_tree_gas = yes; then
26733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26734 then gcc_cv_as_line_zero=yes
26735 fi
26736 elif test "x$gcc_cv_as" != x; then
26737 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26738 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26743 test $ac_status = 0; }; } &&
26744 test "x`cat conftest.out`" = x
26745 then
26746 gcc_cv_as_line_zero=yes
26747 else
26748 echo "configure: failed program was" >&5
26749 cat conftest.s >&5
26750 echo "configure: error output was" >&5
26751 cat conftest.out >&5
26752 fi
26753 rm -f conftest.o conftest.s conftest.out
26754 fi
26755 fi
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26757 $as_echo "$gcc_cv_as_line_zero" >&6; }
26758 if test "x$gcc_cv_as_line_zero" = xyes; then
26759
26760 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26761
26762 fi
26763
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26765 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26766 gcc_cv_ld_eh_frame_hdr=no
26767 if test $in_tree_ld = yes ; then
26768 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 \
26769 && test $in_tree_ld_is_elf = yes; then
26770 gcc_cv_ld_eh_frame_hdr=yes
26771 fi
26772 elif test x$gcc_cv_ld != x; then
26773 if echo "$ld_ver" | grep GNU > /dev/null; then
26774 # Check if linker supports --eh-frame-hdr option
26775 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26776 gcc_cv_ld_eh_frame_hdr=yes
26777 fi
26778 else
26779 case "$target" in
26780 *-*-solaris2*)
26781 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26782 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26783 gcc_cv_ld_eh_frame_hdr=yes
26784 fi
26785 ;;
26786 esac
26787 fi
26788 fi
26789
26790 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26791
26792 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26793
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26796 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26797
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26799 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26800 gcc_cv_ld_eh_frame_ciev3=no
26801 if test $in_tree_ld = yes ; then
26802 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 \
26803 && test $in_tree_ld_is_elf = yes; then
26804 gcc_cv_ld_eh_frame_ciev3=yes
26805 fi
26806 elif test x$gcc_cv_ld != x; then
26807 if echo "$ld_ver" | grep GNU > /dev/null; then
26808 gcc_cv_ld_eh_frame_ciev3=yes
26809 if test 0"$ld_date" -lt 20040513; then
26810 if test -n "$ld_date"; then
26811 # If there was date string, but was earlier than 2004-05-13, fail
26812 gcc_cv_ld_eh_frame_ciev3=no
26813 elif test "$ld_vers_major" -lt 2; then
26814 gcc_cv_ld_eh_frame_ciev3=no
26815 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26816 gcc_cv_ld_eh_frame_ciev3=no
26817 fi
26818 fi
26819 else
26820 case "$target" in
26821 *-*-solaris2*)
26822 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26823 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26824 gcc_cv_ld_eh_frame_ciev3=yes
26825 fi
26826 ;;
26827 esac
26828 fi
26829 fi
26830
26831 cat >>confdefs.h <<_ACEOF
26832 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26833 _ACEOF
26834
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26836 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26837
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26839 $as_echo_n "checking linker position independent executable support... " >&6; }
26840 gcc_cv_ld_pie=no
26841 if test $in_tree_ld = yes ; then
26842 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26843 && test $in_tree_ld_is_elf = yes; then
26844 gcc_cv_ld_pie=yes
26845 fi
26846 elif test x$gcc_cv_ld != x; then
26847 # Check if linker supports -pie option
26848 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26849 gcc_cv_ld_pie=yes
26850 fi
26851 fi
26852 if test x"$gcc_cv_ld_pie" = xyes; then
26853
26854 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26855
26856 fi
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26858 $as_echo "$gcc_cv_ld_pie" >&6; }
26859
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26861 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26862 gcc_cv_ld_eh_gc_sections=no
26863 if test $in_tree_ld = yes ; then
26864 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 \
26865 && test $in_tree_ld_is_elf = yes; then
26866 gcc_cv_ld_eh_gc_sections=yes
26867 fi
26868 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26869 cat > conftest.s <<EOF
26870 .section .text
26871 .globl _start
26872 .type _start, @function
26873 _start:
26874 .long foo
26875 .size _start, .-_start
26876 .section .text.foo,"ax",@progbits
26877 .type foo, @function
26878 foo:
26879 .long 0
26880 .size foo, .-foo
26881 .section .gcc_except_table.foo,"a",@progbits
26882 .L0:
26883 .long 0
26884 .section .eh_frame,"a",@progbits
26885 .long .L0
26886 EOF
26887 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26888 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26889 | grep "gc-sections option ignored" > /dev/null; then
26890 gcc_cv_ld_eh_gc_sections=no
26891 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26892 | grep gcc_except_table > /dev/null; then
26893 gcc_cv_ld_eh_gc_sections=yes
26894 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26895 if test x$gcc_cv_as_comdat_group != xyes; then
26896 gcc_cv_ld_eh_gc_sections=no
26897 cat > conftest.s <<EOF
26898 .section .text
26899 .globl _start
26900 .type _start, @function
26901 _start:
26902 .long foo
26903 .size _start, .-_start
26904 .section .gnu.linkonce.t.foo,"ax",@progbits
26905 .type foo, @function
26906 foo:
26907 .long 0
26908 .size foo, .-foo
26909 .section .gcc_except_table.foo,"a",@progbits
26910 .L0:
26911 .long 0
26912 .section .eh_frame,"a",@progbits
26913 .long .L0
26914 EOF
26915 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26916 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26917 | grep "gc-sections option ignored" > /dev/null; then
26918 gcc_cv_ld_eh_gc_sections=no
26919 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26920 | grep gcc_except_table > /dev/null; then
26921 gcc_cv_ld_eh_gc_sections=yes
26922 fi
26923 fi
26924 fi
26925 fi
26926 fi
26927 rm -f conftest.s conftest.o conftest
26928 fi
26929 case "$target" in
26930 hppa*-*-linux*)
26931 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26932 gcc_cv_ld_eh_gc_sections=no
26933 ;;
26934 esac
26935 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26936
26937 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26938
26939 fi
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26941 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26942
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26944 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26945 gcc_cv_ld_eh_gc_sections_bug=no
26946 if test $in_tree_ld = yes ; then
26947 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 \
26948 && test $in_tree_ld_is_elf = yes; then
26949 gcc_cv_ld_eh_gc_sections_bug=yes
26950 fi
26951 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
26952 gcc_cv_ld_eh_gc_sections_bug=yes
26953 cat > conftest.s <<EOF
26954 .section .text
26955 .globl _start
26956 .type _start, @function
26957 _start:
26958 .long foo
26959 .size _start, .-_start
26960 .section .text.startup.foo,"ax",@progbits
26961 .type foo, @function
26962 foo:
26963 .long 0
26964 .size foo, .-foo
26965 .section .gcc_except_table.foo,"a",@progbits
26966 .L0:
26967 .long 0
26968 .section .eh_frame,"a",@progbits
26969 .long .L0
26970 EOF
26971 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26972 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26973 | grep "gc-sections option ignored" > /dev/null; then
26974 :
26975 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26976 | grep gcc_except_table > /dev/null; then
26977 gcc_cv_ld_eh_gc_sections_bug=no
26978 fi
26979 fi
26980 rm -f conftest.s conftest.o conftest
26981 fi
26982 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26983
26984 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26985
26986 fi
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26988 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26989
26990 # --------
26991 # UNSORTED
26992 # --------
26993
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26995 $as_echo_n "checking linker --as-needed support... " >&6; }
26996 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26997 $as_echo_n "(cached) " >&6
26998 else
26999 gcc_cv_ld_as_needed=no
27000 gcc_cv_ld_as_needed_option='--as-needed'
27001 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27002 if test $in_tree_ld = yes ; then
27003 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 \
27004 && test $in_tree_ld_is_elf = yes; then
27005 gcc_cv_ld_as_needed=yes
27006 fi
27007 elif test x$gcc_cv_ld != x; then
27008 # Check if linker supports --as-needed and --no-as-needed options
27009 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27010 gcc_cv_ld_as_needed=yes
27011 else
27012 case "$target" in
27013 # Solaris 2 ld always supports -z ignore/-z record.
27014 *-*-solaris2*)
27015 gcc_cv_ld_as_needed=yes
27016 gcc_cv_ld_as_needed_option="-z ignore"
27017 gcc_cv_ld_no_as_needed_option="-z record"
27018 ;;
27019 esac
27020 fi
27021 fi
27022 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27023 # dl_iterate_phdr, i.e. since Solaris 11.
27024 case "$target" in
27025 *-*-solaris2.1[1-9]*)
27026 case "$target" in
27027 i?86-*-* | x86_64-*-*)
27028 if echo "$ld_ver" | grep GNU > /dev/null; then
27029 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27030 gcc_cv_ld_as_needed=no
27031 fi
27032 ;;
27033 esac
27034 ;;
27035 *-*-solaris2*)
27036 gcc_cv_ld_as_needed=no
27037 ;;
27038 esac
27039
27040 fi
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27042 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27043 if test x"$gcc_cv_ld_as_needed" = xyes; then
27044
27045 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27046
27047
27048 cat >>confdefs.h <<_ACEOF
27049 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27050 _ACEOF
27051
27052
27053 cat >>confdefs.h <<_ACEOF
27054 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27055 _ACEOF
27056
27057 fi
27058
27059 case "$target:$tm_file" in
27060 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27061 case "$target" in
27062 *le-*-linux*)
27063 emul_name="-melf64lppc"
27064 ;;
27065 *-*-linux*)
27066 emul_name="-melf64ppc"
27067 ;;
27068 *-*-freebsd*)
27069 emul_name="-melf64ppc_fbsd"
27070 ;;
27071 esac
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27073 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27074 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27076 else
27077 gcc_cv_ld_no_dot_syms=no
27078 if test x"$ld_is_gold" = xyes; then
27079 gcc_cv_ld_no_dot_syms=yes
27080 elif test $in_tree_ld = yes ; then
27081 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
27082 gcc_cv_ld_no_dot_syms=yes
27083 fi
27084 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27085 cat > conftest1.s <<EOF
27086 .text
27087 bl .foo
27088 EOF
27089 cat > conftest2.s <<EOF
27090 .section ".opd","aw"
27091 .align 3
27092 .globl foo
27093 .type foo,@function
27094 foo:
27095 .quad .LEfoo,.TOC.@tocbase,0
27096 .text
27097 .LEfoo:
27098 blr
27099 .size foo,.-.LEfoo
27100 EOF
27101 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27102 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27103 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27104 gcc_cv_ld_no_dot_syms=yes
27105 fi
27106 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27107 fi
27108
27109 fi
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27111 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27112 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27113
27114 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27115
27116 fi
27117
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27119 $as_echo_n "checking linker large toc support... " >&6; }
27120 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27121 $as_echo_n "(cached) " >&6
27122 else
27123 gcc_cv_ld_large_toc=no
27124 if test x"$ld_is_gold" = xyes; then
27125 gcc_cv_ld_large_toc=yes
27126 elif test $in_tree_ld = yes ; then
27127 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
27128 gcc_cv_ld_large_toc=yes
27129 fi
27130 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27131 cat > conftest.s <<EOF
27132 .section ".tbss","awT",@nobits
27133 .align 3
27134 ie0: .space 8
27135 .global _start
27136 .text
27137 _start:
27138 addis 9,13,ie0@got@tprel@ha
27139 ld 9,ie0@got@tprel@l(9)
27140 EOF
27141 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27142 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27143 gcc_cv_ld_large_toc=yes
27144 fi
27145 rm -f conftest conftest.o conftest.s
27146 fi
27147
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27150 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27151 if test x"$gcc_cv_ld_large_toc" = xyes; then
27152
27153 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27154
27155 fi
27156 ;;
27157 esac
27158
27159 case "$target" in
27160 *-*-aix*)
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27162 $as_echo_n "checking linker large toc support... " >&6; }
27163 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27164 $as_echo_n "(cached) " >&6
27165 else
27166 gcc_cv_ld_large_toc=no
27167 if test x$gcc_cv_as != x ; then
27168 cat > conftest.s <<EOF
27169 .toc
27170 LC..1:
27171 .tc a[TC],a[RW]
27172 .extern a[RW]
27173 .csect .text[PR]
27174 .largetoctest:
27175 addis 9,LC..1@u(2)
27176 ld 3,LC..1@l(9)
27177 EOF
27178 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27179 gcc_cv_ld_large_toc=yes
27180 fi
27181 rm -f conftest conftest.o conftest.s
27182 fi
27183
27184 fi
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27186 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27187 if test x"$gcc_cv_ld_large_toc" = xyes; then
27188
27189 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27190
27191 fi
27192 ;;
27193 esac
27194
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27196 $as_echo_n "checking linker --build-id support... " >&6; }
27197 if test "${gcc_cv_ld_buildid+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27199 else
27200 gcc_cv_ld_buildid=no
27201 if test $in_tree_ld = yes ; then
27202 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27203 "$gcc_cv_gld_minor_version" -ge 18 -o \
27204 "$gcc_cv_gld_major_version" -gt 2 \
27205 && test $in_tree_ld_is_elf = yes; then
27206 gcc_cv_ld_buildid=yes
27207 fi
27208 elif test x$gcc_cv_ld != x; then
27209 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27210 gcc_cv_ld_buildid=yes
27211 fi
27212 fi
27213 fi
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27215 $as_echo "$gcc_cv_ld_buildid" >&6; }
27216 if test x"$gcc_cv_ld_buildid" = xyes; then
27217
27218 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27219
27220 fi
27221
27222 # Check whether --enable-linker-build-id was given.
27223 if test "${enable_linker_build_id+set}" = set; then :
27224 enableval=$enable_linker_build_id;
27225 else
27226 enable_linker_build_id=no
27227 fi
27228
27229
27230 if test x"$enable_linker_build_id" = xyes; then
27231 if test x"$gcc_cv_ld_buildid" = xyes; then
27232
27233 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27234
27235 else
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27237 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27238 fi
27239 fi
27240
27241 # In binutils 2.21, GNU ld gained support for new emulations fully
27242 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27244 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27245 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27246 $as_echo_n "(cached) " >&6
27247 else
27248 gcc_cv_ld_sol2_emulation=no
27249 if test $in_tree_ld = yes ; then
27250 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27251 "$gcc_cv_gld_minor_version" -ge 21 -o \
27252 "$gcc_cv_gld_major_version" -gt 2 \
27253 && test $in_tree_ld_is_elf = yes; then
27254 gcc_cv_ld_sol2_emulation=yes
27255 fi
27256 elif test x$gcc_cv_ld != x; then
27257 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27258 grep _sol2 > /dev/null; then
27259 gcc_cv_ld_sol2_emulation=yes
27260 fi
27261 fi
27262 fi
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27264 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27265 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27266
27267 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27268
27269 fi
27270
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27272 $as_echo_n "checking linker --sysroot support... " >&6; }
27273 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_ld_sysroot=no
27277 if test $in_tree_ld = yes ; then
27278 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
27279 gcc_cv_ld_sysroot=yes
27280 fi
27281 elif test x$gcc_cv_ld != x; then
27282 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27283 gcc_cv_ld_sysroot=yes
27284 fi
27285 fi
27286 fi
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27288 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27289 if test x"$gcc_cv_ld_sysroot" = xyes; then
27290
27291 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27292
27293 fi
27294
27295 # Test for stack protector support in target C library.
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27297 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27298 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27299 $as_echo_n "(cached) " >&6
27300 else
27301 gcc_cv_libc_provides_ssp=no
27302 case "$target" in
27303 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27304 # glibc 2.4 and later provides __stack_chk_fail and
27305 # either __stack_chk_guard, or TLS access to stack guard canary.
27306
27307 if test $glibc_version_major -gt 2 \
27308 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27309 gcc_cv_libc_provides_ssp=yes
27310 else
27311
27312 if test -f $target_header_dir/features.h \
27313 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27314 $target_header_dir/features.h > /dev/null; then
27315 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27316 $target_header_dir/features.h > /dev/null && \
27317 test -f $target_header_dir/bits/uClibc_config.h && \
27318 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27319 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27320 gcc_cv_libc_provides_ssp=yes
27321 fi
27322 # all versions of Bionic support stack protector
27323 elif test -f $target_header_dir/sys/cdefs.h \
27324 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27325 $target_header_dir/sys/cdefs.h > /dev/null; then
27326 gcc_cv_libc_provides_ssp=yes
27327 fi
27328 fi
27329 ;;
27330 *-*-gnu*)
27331 # Avoid complicated tests (see
27332 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27333 # simply assert that glibc does provide this, which is true for all
27334 # realistically usable GNU/Hurd configurations.
27335 gcc_cv_libc_provides_ssp=yes;;
27336 *-*-darwin* | *-*-freebsd*)
27337 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27338 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27339 gcc_cv_libc_provides_ssp=yes
27340 else
27341 echo "no __stack_chk_fail on this target"
27342 fi
27343
27344 ;;
27345 *) gcc_cv_libc_provides_ssp=no ;;
27346 esac
27347 fi
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27349 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27350
27351 if test x$gcc_cv_libc_provides_ssp = xyes; then
27352
27353 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27354
27355 fi
27356
27357 # Test for <sys/sdt.h> on the target.
27358
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27360 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27361 have_sys_sdt_h=no
27362 if test -f $target_header_dir/sys/sdt.h; then
27363 have_sys_sdt_h=yes
27364
27365 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27366
27367 fi
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27369 $as_echo "$have_sys_sdt_h" >&6; }
27370
27371 # Check if TFmode long double should be used by default or not.
27372 # Some glibc targets used DFmode long double, but with glibc 2.4
27373 # and later they can use TFmode.
27374 case "$target" in
27375 powerpc*-*-linux* | \
27376 sparc*-*-linux* | \
27377 s390*-*-linux* | \
27378 alpha*-*-linux*)
27379
27380 # Check whether --with-long-double-128 was given.
27381 if test "${with_long_double_128+set}" = set; then :
27382 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27383 else
27384
27385 if test $glibc_version_major -gt 2 \
27386 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27387 gcc_cv_target_ldbl128=yes
27388 else
27389
27390 gcc_cv_target_ldbl128=no
27391 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27392 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27393 && gcc_cv_target_ldbl128=yes
27394
27395 fi
27396 fi
27397
27398 ;;
27399 esac
27400 if test x$gcc_cv_target_ldbl128 = xyes; then
27401
27402 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27403
27404 fi
27405
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27407 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27408 gcc_cv_target_dl_iterate_phdr=unknown
27409 case "$target" in
27410 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27411 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27412 # libdl there, both complicating its use and breaking compatibility
27413 # between Solaris 10 updates.
27414 *-*-solaris2.1[1-9]*)
27415 # <link.h> needs both a dl_iterate_phdr declaration and support for
27416 # compilation with largefile support.
27417 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27418 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27419 gcc_cv_target_dl_iterate_phdr=yes
27420 else
27421 gcc_cv_target_dl_iterate_phdr=no
27422 fi
27423 ;;
27424 esac
27425
27426 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27427
27428 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27429
27430 fi
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27432 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27433
27434 # We no longer support different GC mechanisms. Emit an error if
27435 # the user configures with --with-gc.
27436
27437 # Check whether --with-gc was given.
27438 if test "${with_gc+set}" = set; then :
27439 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27440 fi
27441
27442
27443 # Libraries to use on the host. This will normally be set by the top
27444 # level Makefile. Here we simply capture the value for our Makefile.
27445 if test -z "${HOST_LIBS+set}"; then
27446 HOST_LIBS=
27447 fi
27448
27449
27450 # Use the system's zlib library.
27451 zlibdir=-L../zlib
27452 zlibinc="-I\$(srcdir)/../zlib"
27453
27454 # Check whether --with-system-zlib was given.
27455 if test "${with_system_zlib+set}" = set; then :
27456 withval=$with_system_zlib; zlibdir=
27457 zlibinc=
27458
27459 fi
27460
27461
27462
27463
27464
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27466 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27467 # Check whether --enable-maintainer-mode was given.
27468 if test "${enable_maintainer_mode+set}" = set; then :
27469 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27470 else
27471 maintainer_mode=no
27472 fi
27473
27474
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27476 $as_echo "$maintainer_mode" >&6; }
27477
27478 if test "$maintainer_mode" = "yes"; then
27479 MAINT=''
27480 else
27481 MAINT='#'
27482 fi
27483
27484
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27486 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27487 # Check whether --enable-link-mutex was given.
27488 if test "${enable_link_mutex+set}" = set; then :
27489 enableval=$enable_link_mutex; do_link_mutex=$enableval
27490 else
27491 do_link_mutex=no
27492 fi
27493
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27495 $as_echo "$do_link_mutex" >&6; }
27496
27497 if test "$do_link_mutex" = "yes"; then
27498 DO_LINK_MUTEX=true
27499 else
27500 DO_LINK_MUTEX=false
27501 fi
27502
27503
27504 # --------------
27505 # Language hooks
27506 # --------------
27507
27508 # Make empty files to contain the specs and options for each language.
27509 # Then add #include lines to for a compiler that has specs and/or options.
27510
27511 subdirs=
27512 lang_opt_files=
27513 lang_specs_files=
27514 lang_tree_files=
27515 # These (without "all_") are set in each config-lang.in.
27516 # `language' must be a single word so is spelled singularly.
27517 all_languages=
27518 all_compilers=
27519 all_outputs='Makefile'
27520 # List of language makefile fragments.
27521 all_lang_makefrags=
27522 # Additional files for gengtype
27523 all_gtfiles="$target_gtfiles"
27524
27525 # These are the languages that are set in --enable-languages,
27526 # and are available in the GCC tree.
27527 all_selected_languages=
27528
27529 # Add the language fragments.
27530 # Languages are added via two mechanisms. Some information must be
27531 # recorded in makefile variables, these are defined in config-lang.in.
27532 # We accumulate them and plug them into the main Makefile.
27533 # The other mechanism is a set of hooks for each of the main targets
27534 # like `clean', `install', etc.
27535
27536 language_hooks="Make-hooks"
27537
27538 for lang in ${srcdir}/*/config-lang.in
27539 do
27540 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27541
27542 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27543 if test "x$lang_alias" = x
27544 then
27545 echo "$lang doesn't set \$language." 1>&2
27546 exit 1
27547 fi
27548 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27549 subdirs="$subdirs $subdir"
27550
27551 # $gcc_subdir is where the gcc integration files are to be found
27552 # for a language, both for internal compiler purposes (compiler
27553 # sources implementing front-end to GCC tree converters), and for
27554 # build infrastructure purposes (Make-lang.in, etc.)
27555 #
27556 # This will be <subdir> (relative to $srcdir) if a line like
27557 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27558 # is found in <langdir>/config-lang.in, and will remain <langdir>
27559 # otherwise.
27560 #
27561 # Except for the language alias (fetched above), the regular
27562 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27563 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27564 # only this and the language alias.
27565
27566 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27567 if [ "$gcc_subdir" = "" ]; then
27568 gcc_subdir="$subdir"
27569 fi
27570
27571 case ",$enable_languages," in
27572 *,$lang_alias,*)
27573 all_selected_languages="$all_selected_languages $lang_alias"
27574 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27575 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27576 fi
27577 ;;
27578 esac
27579
27580 language=
27581 boot_language=
27582 compilers=
27583 outputs=
27584 gtfiles=
27585 subdir_requires=
27586 . ${srcdir}/$gcc_subdir/config-lang.in
27587 if test "x$language" = x
27588 then
27589 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27590 exit 1
27591 fi
27592
27593 ok=:
27594 case ",$enable_languages," in
27595 *,$lang_alias,*) ;;
27596 *)
27597 for i in $subdir_requires; do
27598 test -f "${srcdir}/$i/config-lang.in" && continue
27599 ok=false
27600 break
27601 done
27602 ;;
27603 esac
27604 $ok || continue
27605
27606 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27607 if test -f $srcdir/$gcc_subdir/lang.opt; then
27608 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27609 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27610 fi
27611 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27612 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27613 fi
27614 all_languages="$all_languages $language"
27615 all_compilers="$all_compilers $compilers"
27616 all_outputs="$all_outputs $outputs"
27617 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27618 case ",$enable_languages," in
27619 *,lto,*)
27620
27621 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27622
27623 enable_lto=yes
27624
27625 ;;
27626 *) ;;
27627 esac
27628 done
27629
27630 check_languages=
27631 for language in $all_selected_languages
27632 do
27633 check_languages="$check_languages check-$language"
27634 done
27635
27636 # We link each language in with a set of hooks, reached indirectly via
27637 # lang.${target}. Only do so for selected languages.
27638
27639 rm -f Make-hooks
27640 touch Make-hooks
27641 target_list="all.cross start.encap rest.encap tags \
27642 install-common install-man install-info install-pdf install-html dvi \
27643 pdf html uninstall info man srcextra srcman srcinfo \
27644 mostlyclean clean distclean maintainer-clean install-plugin"
27645
27646 for t in $target_list
27647 do
27648 x=
27649 for lang in $all_selected_languages
27650 do
27651 x="$x $lang.$t"
27652 done
27653 echo "lang.$t: $x" >> Make-hooks
27654 done
27655
27656 # --------
27657 # Option include files
27658 # --------
27659
27660 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27661 option_includes="option-includes.mk"
27662
27663
27664 # --------
27665 # UNSORTED
27666 # --------
27667
27668 # Create .gdbinit.
27669
27670 echo "dir ." > .gdbinit
27671 echo "dir ${srcdir}" >> .gdbinit
27672 if test x$gdb_needs_out_file_path = xyes
27673 then
27674 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27675 fi
27676 if test "x$subdirs" != x; then
27677 for s in $subdirs
27678 do
27679 echo "dir ${srcdir}/$s" >> .gdbinit
27680 done
27681 fi
27682 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27683 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27684
27685 # Put a breakpoint on __asan_report_error to help with debugging buffer
27686 # overflow.
27687 case "$CFLAGS" in
27688 *-fsanitize=address*)
27689 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27690 ;;
27691 esac
27692
27693 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27694
27695
27696
27697 # Find a directory in which to install a shared libgcc.
27698
27699 # Check whether --enable-version-specific-runtime-libs was given.
27700 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27701 enableval=$enable_version_specific_runtime_libs;
27702 fi
27703
27704
27705 # Substitute configuration variables
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768 # Echo link setup.
27769 if test x${build} = x${host} ; then
27770 if test x${host} = x${target} ; then
27771 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27772 else
27773 echo "Links are now set up to build a cross-compiler" 1>&2
27774 echo " from ${host} to ${target}." 1>&2
27775 fi
27776 else
27777 if test x${host} = x${target} ; then
27778 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27779 echo " for ${target}." 1>&2
27780 else
27781 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27782 echo " from ${host} to ${target}." 1>&2
27783 fi
27784 fi
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794 if test "x${CLOOGLIBS}" != "x" ; then
27795
27796 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27797
27798 fi
27799
27800 # Check for plugin support
27801 # Check whether --enable-plugin was given.
27802 if test "${enable_plugin+set}" = set; then :
27803 enableval=$enable_plugin; enable_plugin=$enableval
27804 else
27805 enable_plugin=yes; default_plugin=yes
27806 fi
27807
27808
27809 pluginlibs=
27810
27811 case "${host}" in
27812 *-*-darwin*)
27813 if test x$build = x$host; then
27814 export_sym_check="nm${exeext} -g"
27815 elif test x$host = x$target; then
27816 export_sym_check="$gcc_cv_nm -g"
27817 else
27818 export_sym_check=
27819 fi
27820 ;;
27821 *)
27822 if test x$build = x$host; then
27823 export_sym_check="objdump${exeext} -T"
27824 elif test x$host = x$target; then
27825 export_sym_check="$gcc_cv_objdump -T"
27826 else
27827 export_sym_check=
27828 fi
27829 ;;
27830 esac
27831
27832 if test x"$enable_plugin" = x"yes"; then
27833
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27835 $as_echo_n "checking for exported symbols... " >&6; }
27836 if test "x$export_sym_check" != x; then
27837 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27838 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27839 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27840 : # No need to use a flag
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27842 $as_echo "yes" >&6; }
27843 else
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27845 $as_echo "yes" >&6; }
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27847 $as_echo_n "checking for -rdynamic... " >&6; }
27848 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27849 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27850 plugin_rdynamic=yes
27851 pluginlibs="-rdynamic"
27852 else
27853 plugin_rdynamic=no
27854 enable_plugin=no
27855 fi
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27857 $as_echo "$plugin_rdynamic" >&6; }
27858 fi
27859 else
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27861 $as_echo "unable to check" >&6; }
27862 fi
27863
27864 # Check -ldl
27865 saved_LIBS="$LIBS"
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27867 $as_echo_n "checking for library containing dlopen... " >&6; }
27868 if test "${ac_cv_search_dlopen+set}" = set; then :
27869 $as_echo_n "(cached) " >&6
27870 else
27871 ac_func_search_save_LIBS=$LIBS
27872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27873 /* end confdefs.h. */
27874
27875 /* Override any GCC internal prototype to avoid an error.
27876 Use char because int might match the return type of a GCC
27877 builtin and then its argument prototype would still apply. */
27878 #ifdef __cplusplus
27879 extern "C"
27880 #endif
27881 char dlopen ();
27882 int
27883 main ()
27884 {
27885 return dlopen ();
27886 ;
27887 return 0;
27888 }
27889 _ACEOF
27890 for ac_lib in '' dl; do
27891 if test -z "$ac_lib"; then
27892 ac_res="none required"
27893 else
27894 ac_res=-l$ac_lib
27895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27896 fi
27897 if ac_fn_c_try_link "$LINENO"; then :
27898 ac_cv_search_dlopen=$ac_res
27899 fi
27900 rm -f core conftest.err conftest.$ac_objext \
27901 conftest$ac_exeext
27902 if test "${ac_cv_search_dlopen+set}" = set; then :
27903 break
27904 fi
27905 done
27906 if test "${ac_cv_search_dlopen+set}" = set; then :
27907
27908 else
27909 ac_cv_search_dlopen=no
27910 fi
27911 rm conftest.$ac_ext
27912 LIBS=$ac_func_search_save_LIBS
27913 fi
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27915 $as_echo "$ac_cv_search_dlopen" >&6; }
27916 ac_res=$ac_cv_search_dlopen
27917 if test "$ac_res" != no; then :
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27919
27920 fi
27921
27922 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27923 pluginlibs="$pluginlibs -ldl"
27924 fi
27925 LIBS="$saved_LIBS"
27926
27927 # Check that we can build shared objects with -fPIC -shared
27928 saved_LDFLAGS="$LDFLAGS"
27929 saved_CFLAGS="$CFLAGS"
27930 case "${host}" in
27931 *-*-darwin*)
27932 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27933 CFLAGS="$CFLAGS -fPIC"
27934 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27935 ;;
27936 *)
27937 CFLAGS="$CFLAGS -fPIC"
27938 LDFLAGS="$LDFLAGS -fPIC -shared"
27939 ;;
27940 esac
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27942 $as_echo_n "checking for -fPIC -shared... " >&6; }
27943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27944 /* end confdefs.h. */
27945 extern int X;
27946 int
27947 main ()
27948 {
27949 return X == 0;
27950 ;
27951 return 0;
27952 }
27953 _ACEOF
27954 if ac_fn_c_try_link "$LINENO"; then :
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27956 $as_echo "yes" >&6; }; have_pic_shared=yes
27957 else
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27959 $as_echo "no" >&6; }; have_pic_shared=no
27960 fi
27961 rm -f core conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27963 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27964 pluginlibs=
27965 enable_plugin=no
27966 fi
27967 LDFLAGS="$saved_LDFLAGS"
27968 CFLAGS="$saved_CFLAGS"
27969
27970 # If plugin support had been requested but not available, fail.
27971 if test x"$enable_plugin" = x"no" ; then
27972 if test x"$default_plugin" != x"yes"; then
27973 as_fn_error "
27974 Building GCC with plugin support requires a host that supports
27975 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27976 fi
27977 fi
27978 fi
27979
27980
27981
27982 if test x"$enable_plugin" = x"yes"; then
27983
27984 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27985
27986 fi
27987
27988
27989 # Enable --enable-host-shared
27990 # Check whether --enable-host-shared was given.
27991 if test "${enable_host_shared+set}" = set; then :
27992 enableval=$enable_host_shared; PICFLAG=-fPIC
27993 else
27994 PICFLAG=
27995 fi
27996
27997
27998
27999
28000
28001 # Check whether --enable-libquadmath-support was given.
28002 if test "${enable_libquadmath_support+set}" = set; then :
28003 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28004 else
28005 ENABLE_LIBQUADMATH_SUPPORT=yes
28006 fi
28007
28008 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28009
28010 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28011
28012 fi
28013
28014
28015 # Specify what hash style to use by default.
28016
28017 # Check whether --with-linker-hash-style was given.
28018 if test "${with_linker_hash_style+set}" = set; then :
28019 withval=$with_linker_hash_style; case x"$withval" in
28020 xsysv)
28021 LINKER_HASH_STYLE=sysv
28022 ;;
28023 xgnu)
28024 LINKER_HASH_STYLE=gnu
28025 ;;
28026 xboth)
28027 LINKER_HASH_STYLE=both
28028 ;;
28029 *)
28030 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28031 ;;
28032 esac
28033 else
28034 LINKER_HASH_STYLE=''
28035 fi
28036
28037 if test x"${LINKER_HASH_STYLE}" != x; then
28038
28039 cat >>confdefs.h <<_ACEOF
28040 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28041 _ACEOF
28042
28043 fi
28044
28045 # Configure the subdirectories
28046 # AC_CONFIG_SUBDIRS($subdirs)
28047
28048 # Create the Makefile
28049 # and configure language subdirectories
28050 ac_config_files="$ac_config_files $all_outputs"
28051
28052
28053 ac_config_commands="$ac_config_commands default"
28054
28055 cat >confcache <<\_ACEOF
28056 # This file is a shell script that caches the results of configure
28057 # tests run on this system so they can be shared between configure
28058 # scripts and configure runs, see configure's option --config-cache.
28059 # It is not useful on other systems. If it contains results you don't
28060 # want to keep, you may remove or edit it.
28061 #
28062 # config.status only pays attention to the cache file if you give it
28063 # the --recheck option to rerun configure.
28064 #
28065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28067 # following values.
28068
28069 _ACEOF
28070
28071 # The following way of writing the cache mishandles newlines in values,
28072 # but we know of no workaround that is simple, portable, and efficient.
28073 # So, we kill variables containing newlines.
28074 # Ultrix sh set writes to stderr and can't be redirected directly,
28075 # and sets the high bit in the cache file unless we assign to the vars.
28076 (
28077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28078 eval ac_val=\$$ac_var
28079 case $ac_val in #(
28080 *${as_nl}*)
28081 case $ac_var in #(
28082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28084 esac
28085 case $ac_var in #(
28086 _ | IFS | as_nl) ;; #(
28087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28088 *) { eval $ac_var=; unset $ac_var;} ;;
28089 esac ;;
28090 esac
28091 done
28092
28093 (set) 2>&1 |
28094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28095 *${as_nl}ac_space=\ *)
28096 # `set' does not quote correctly, so add quotes: double-quote
28097 # substitution turns \\\\ into \\, and sed turns \\ into \.
28098 sed -n \
28099 "s/'/'\\\\''/g;
28100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28101 ;; #(
28102 *)
28103 # `set' quotes correctly as required by POSIX, so do not add quotes.
28104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28105 ;;
28106 esac |
28107 sort
28108 ) |
28109 sed '
28110 /^ac_cv_env_/b end
28111 t clear
28112 :clear
28113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28114 t end
28115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28116 :end' >>confcache
28117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28118 if test -w "$cache_file"; then
28119 test "x$cache_file" != "x/dev/null" &&
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28121 $as_echo "$as_me: updating cache $cache_file" >&6;}
28122 cat confcache >$cache_file
28123 else
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28126 fi
28127 fi
28128 rm -f confcache
28129
28130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28131 # Let make expand exec_prefix.
28132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28133
28134 DEFS=-DHAVE_CONFIG_H
28135
28136 ac_libobjs=
28137 ac_ltlibobjs=
28138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28139 # 1. Remove the extension, and $U if already installed.
28140 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28141 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28143 # will be set to the directory where LIBOBJS objects are built.
28144 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28145 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28146 done
28147 LIBOBJS=$ac_libobjs
28148
28149 LTLIBOBJS=$ac_ltlibobjs
28150
28151
28152
28153
28154 : ${CONFIG_STATUS=./config.status}
28155 ac_write_fail=0
28156 ac_clean_files_save=$ac_clean_files
28157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28160 as_write_fail=0
28161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28162 #! $SHELL
28163 # Generated by $as_me.
28164 # Run this file to recreate the current configuration.
28165 # Compiler output produced by configure, useful for debugging
28166 # configure, is in config.log if it exists.
28167
28168 debug=false
28169 ac_cs_recheck=false
28170 ac_cs_silent=false
28171
28172 SHELL=\${CONFIG_SHELL-$SHELL}
28173 export SHELL
28174 _ASEOF
28175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28176 ## -------------------- ##
28177 ## M4sh Initialization. ##
28178 ## -------------------- ##
28179
28180 # Be more Bourne compatible
28181 DUALCASE=1; export DUALCASE # for MKS sh
28182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28183 emulate sh
28184 NULLCMD=:
28185 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28186 # is contrary to our usage. Disable this feature.
28187 alias -g '${1+"$@"}'='"$@"'
28188 setopt NO_GLOB_SUBST
28189 else
28190 case `(set -o) 2>/dev/null` in #(
28191 *posix*) :
28192 set -o posix ;; #(
28193 *) :
28194 ;;
28195 esac
28196 fi
28197
28198
28199 as_nl='
28200 '
28201 export as_nl
28202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28206 # Prefer a ksh shell builtin over an external printf program on Solaris,
28207 # but without wasting forks for bash or zsh.
28208 if test -z "$BASH_VERSION$ZSH_VERSION" \
28209 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28210 as_echo='print -r --'
28211 as_echo_n='print -rn --'
28212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28213 as_echo='printf %s\n'
28214 as_echo_n='printf %s'
28215 else
28216 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28217 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28218 as_echo_n='/usr/ucb/echo -n'
28219 else
28220 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28221 as_echo_n_body='eval
28222 arg=$1;
28223 case $arg in #(
28224 *"$as_nl"*)
28225 expr "X$arg" : "X\\(.*\\)$as_nl";
28226 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28227 esac;
28228 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28229 '
28230 export as_echo_n_body
28231 as_echo_n='sh -c $as_echo_n_body as_echo'
28232 fi
28233 export as_echo_body
28234 as_echo='sh -c $as_echo_body as_echo'
28235 fi
28236
28237 # The user is always right.
28238 if test "${PATH_SEPARATOR+set}" != set; then
28239 PATH_SEPARATOR=:
28240 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28241 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28242 PATH_SEPARATOR=';'
28243 }
28244 fi
28245
28246
28247 # IFS
28248 # We need space, tab and new line, in precisely that order. Quoting is
28249 # there to prevent editors from complaining about space-tab.
28250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28251 # splitting by setting IFS to empty value.)
28252 IFS=" "" $as_nl"
28253
28254 # Find who we are. Look in the path if we contain no directory separator.
28255 case $0 in #((
28256 *[\\/]* ) as_myself=$0 ;;
28257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28258 for as_dir in $PATH
28259 do
28260 IFS=$as_save_IFS
28261 test -z "$as_dir" && as_dir=.
28262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28263 done
28264 IFS=$as_save_IFS
28265
28266 ;;
28267 esac
28268 # We did not find ourselves, most probably we were run as `sh COMMAND'
28269 # in which case we are not to be found in the path.
28270 if test "x$as_myself" = x; then
28271 as_myself=$0
28272 fi
28273 if test ! -f "$as_myself"; then
28274 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28275 exit 1
28276 fi
28277
28278 # Unset variables that we do not need and which cause bugs (e.g. in
28279 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28280 # suppresses any "Segmentation fault" message there. '((' could
28281 # trigger a bug in pdksh 5.2.14.
28282 for as_var in BASH_ENV ENV MAIL MAILPATH
28283 do eval test x\${$as_var+set} = xset \
28284 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28285 done
28286 PS1='$ '
28287 PS2='> '
28288 PS4='+ '
28289
28290 # NLS nuisances.
28291 LC_ALL=C
28292 export LC_ALL
28293 LANGUAGE=C
28294 export LANGUAGE
28295
28296 # CDPATH.
28297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28298
28299
28300 # as_fn_error ERROR [LINENO LOG_FD]
28301 # ---------------------------------
28302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28304 # script with status $?, using 1 if that was 0.
28305 as_fn_error ()
28306 {
28307 as_status=$?; test $as_status -eq 0 && as_status=1
28308 if test "$3"; then
28309 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28310 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28311 fi
28312 $as_echo "$as_me: error: $1" >&2
28313 as_fn_exit $as_status
28314 } # as_fn_error
28315
28316
28317 # as_fn_set_status STATUS
28318 # -----------------------
28319 # Set $? to STATUS, without forking.
28320 as_fn_set_status ()
28321 {
28322 return $1
28323 } # as_fn_set_status
28324
28325 # as_fn_exit STATUS
28326 # -----------------
28327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28328 as_fn_exit ()
28329 {
28330 set +e
28331 as_fn_set_status $1
28332 exit $1
28333 } # as_fn_exit
28334
28335 # as_fn_unset VAR
28336 # ---------------
28337 # Portably unset VAR.
28338 as_fn_unset ()
28339 {
28340 { eval $1=; unset $1;}
28341 }
28342 as_unset=as_fn_unset
28343 # as_fn_append VAR VALUE
28344 # ----------------------
28345 # Append the text in VALUE to the end of the definition contained in VAR. Take
28346 # advantage of any shell optimizations that allow amortized linear growth over
28347 # repeated appends, instead of the typical quadratic growth present in naive
28348 # implementations.
28349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28350 eval 'as_fn_append ()
28351 {
28352 eval $1+=\$2
28353 }'
28354 else
28355 as_fn_append ()
28356 {
28357 eval $1=\$$1\$2
28358 }
28359 fi # as_fn_append
28360
28361 # as_fn_arith ARG...
28362 # ------------------
28363 # Perform arithmetic evaluation on the ARGs, and store the result in the
28364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28365 # must be portable across $(()) and expr.
28366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28367 eval 'as_fn_arith ()
28368 {
28369 as_val=$(( $* ))
28370 }'
28371 else
28372 as_fn_arith ()
28373 {
28374 as_val=`expr "$@" || test $? -eq 1`
28375 }
28376 fi # as_fn_arith
28377
28378
28379 if expr a : '\(a\)' >/dev/null 2>&1 &&
28380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28381 as_expr=expr
28382 else
28383 as_expr=false
28384 fi
28385
28386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28387 as_basename=basename
28388 else
28389 as_basename=false
28390 fi
28391
28392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28393 as_dirname=dirname
28394 else
28395 as_dirname=false
28396 fi
28397
28398 as_me=`$as_basename -- "$0" ||
28399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28400 X"$0" : 'X\(//\)$' \| \
28401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28402 $as_echo X/"$0" |
28403 sed '/^.*\/\([^/][^/]*\)\/*$/{
28404 s//\1/
28405 q
28406 }
28407 /^X\/\(\/\/\)$/{
28408 s//\1/
28409 q
28410 }
28411 /^X\/\(\/\).*/{
28412 s//\1/
28413 q
28414 }
28415 s/.*/./; q'`
28416
28417 # Avoid depending upon Character Ranges.
28418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28421 as_cr_digits='0123456789'
28422 as_cr_alnum=$as_cr_Letters$as_cr_digits
28423
28424 ECHO_C= ECHO_N= ECHO_T=
28425 case `echo -n x` in #(((((
28426 -n*)
28427 case `echo 'xy\c'` in
28428 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28429 xy) ECHO_C='\c';;
28430 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28431 ECHO_T=' ';;
28432 esac;;
28433 *)
28434 ECHO_N='-n';;
28435 esac
28436
28437 rm -f conf$$ conf$$.exe conf$$.file
28438 if test -d conf$$.dir; then
28439 rm -f conf$$.dir/conf$$.file
28440 else
28441 rm -f conf$$.dir
28442 mkdir conf$$.dir 2>/dev/null
28443 fi
28444 if (echo >conf$$.file) 2>/dev/null; then
28445 if ln -s conf$$.file conf$$ 2>/dev/null; then
28446 as_ln_s='ln -s'
28447 # ... but there are two gotchas:
28448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28450 # In both cases, we have to default to `cp -p'.
28451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28452 as_ln_s='cp -p'
28453 elif ln conf$$.file conf$$ 2>/dev/null; then
28454 as_ln_s=ln
28455 else
28456 as_ln_s='cp -p'
28457 fi
28458 else
28459 as_ln_s='cp -p'
28460 fi
28461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28462 rmdir conf$$.dir 2>/dev/null
28463
28464
28465 # as_fn_mkdir_p
28466 # -------------
28467 # Create "$as_dir" as a directory, including parents if necessary.
28468 as_fn_mkdir_p ()
28469 {
28470
28471 case $as_dir in #(
28472 -*) as_dir=./$as_dir;;
28473 esac
28474 test -d "$as_dir" || eval $as_mkdir_p || {
28475 as_dirs=
28476 while :; do
28477 case $as_dir in #(
28478 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28479 *) as_qdir=$as_dir;;
28480 esac
28481 as_dirs="'$as_qdir' $as_dirs"
28482 as_dir=`$as_dirname -- "$as_dir" ||
28483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28484 X"$as_dir" : 'X\(//\)[^/]' \| \
28485 X"$as_dir" : 'X\(//\)$' \| \
28486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28487 $as_echo X"$as_dir" |
28488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28489 s//\1/
28490 q
28491 }
28492 /^X\(\/\/\)[^/].*/{
28493 s//\1/
28494 q
28495 }
28496 /^X\(\/\/\)$/{
28497 s//\1/
28498 q
28499 }
28500 /^X\(\/\).*/{
28501 s//\1/
28502 q
28503 }
28504 s/.*/./; q'`
28505 test -d "$as_dir" && break
28506 done
28507 test -z "$as_dirs" || eval "mkdir $as_dirs"
28508 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28509
28510
28511 } # as_fn_mkdir_p
28512 if mkdir -p . 2>/dev/null; then
28513 as_mkdir_p='mkdir -p "$as_dir"'
28514 else
28515 test -d ./-p && rmdir ./-p
28516 as_mkdir_p=false
28517 fi
28518
28519 if test -x / >/dev/null 2>&1; then
28520 as_test_x='test -x'
28521 else
28522 if ls -dL / >/dev/null 2>&1; then
28523 as_ls_L_option=L
28524 else
28525 as_ls_L_option=
28526 fi
28527 as_test_x='
28528 eval sh -c '\''
28529 if test -d "$1"; then
28530 test -d "$1/.";
28531 else
28532 case $1 in #(
28533 -*)set "./$1";;
28534 esac;
28535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28536 ???[sx]*):;;*)false;;esac;fi
28537 '\'' sh
28538 '
28539 fi
28540 as_executable_p=$as_test_x
28541
28542 # Sed expression to map a string onto a valid CPP name.
28543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28544
28545 # Sed expression to map a string onto a valid variable name.
28546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28547
28548
28549 exec 6>&1
28550 ## ----------------------------------- ##
28551 ## Main body of $CONFIG_STATUS script. ##
28552 ## ----------------------------------- ##
28553 _ASEOF
28554 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28555
28556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28557 # Save the log message, to keep $0 and so on meaningful, and to
28558 # report actual input values of CONFIG_FILES etc. instead of their
28559 # values after options handling.
28560 ac_log="
28561 This file was extended by $as_me, which was
28562 generated by GNU Autoconf 2.64. Invocation command line was
28563
28564 CONFIG_FILES = $CONFIG_FILES
28565 CONFIG_HEADERS = $CONFIG_HEADERS
28566 CONFIG_LINKS = $CONFIG_LINKS
28567 CONFIG_COMMANDS = $CONFIG_COMMANDS
28568 $ $0 $@
28569
28570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28571 "
28572
28573 _ACEOF
28574
28575 case $ac_config_files in *"
28576 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28577 esac
28578
28579 case $ac_config_headers in *"
28580 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28581 esac
28582
28583
28584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28585 # Files that config.status was made for.
28586 config_files="$ac_config_files"
28587 config_headers="$ac_config_headers"
28588 config_commands="$ac_config_commands"
28589
28590 _ACEOF
28591
28592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28593 ac_cs_usage="\
28594 \`$as_me' instantiates files and other configuration actions
28595 from templates according to the current configuration. Unless the files
28596 and actions are specified as TAGs, all are instantiated by default.
28597
28598 Usage: $0 [OPTION]... [TAG]...
28599
28600 -h, --help print this help, then exit
28601 -V, --version print version number and configuration settings, then exit
28602 -q, --quiet, --silent
28603 do not print progress messages
28604 -d, --debug don't remove temporary files
28605 --recheck update $as_me by reconfiguring in the same conditions
28606 --file=FILE[:TEMPLATE]
28607 instantiate the configuration file FILE
28608 --header=FILE[:TEMPLATE]
28609 instantiate the configuration header FILE
28610
28611 Configuration files:
28612 $config_files
28613
28614 Configuration headers:
28615 $config_headers
28616
28617 Configuration commands:
28618 $config_commands
28619
28620 Report bugs to the package provider."
28621
28622 _ACEOF
28623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28624 ac_cs_version="\\
28625 config.status
28626 configured by $0, generated by GNU Autoconf 2.64,
28627 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28628
28629 Copyright (C) 2009 Free Software Foundation, Inc.
28630 This config.status script is free software; the Free Software Foundation
28631 gives unlimited permission to copy, distribute and modify it."
28632
28633 ac_pwd='$ac_pwd'
28634 srcdir='$srcdir'
28635 AWK='$AWK'
28636 test -n "\$AWK" || AWK=awk
28637 _ACEOF
28638
28639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28640 # The default lists apply if the user does not specify any file.
28641 ac_need_defaults=:
28642 while test $# != 0
28643 do
28644 case $1 in
28645 --*=*)
28646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28647 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28648 ac_shift=:
28649 ;;
28650 *)
28651 ac_option=$1
28652 ac_optarg=$2
28653 ac_shift=shift
28654 ;;
28655 esac
28656
28657 case $ac_option in
28658 # Handling of the options.
28659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28660 ac_cs_recheck=: ;;
28661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28662 $as_echo "$ac_cs_version"; exit ;;
28663 --debug | --debu | --deb | --de | --d | -d )
28664 debug=: ;;
28665 --file | --fil | --fi | --f )
28666 $ac_shift
28667 case $ac_optarg in
28668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28669 esac
28670 as_fn_append CONFIG_FILES " '$ac_optarg'"
28671 ac_need_defaults=false;;
28672 --header | --heade | --head | --hea )
28673 $ac_shift
28674 case $ac_optarg in
28675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28676 esac
28677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28678 ac_need_defaults=false;;
28679 --he | --h)
28680 # Conflict between --help and --header
28681 as_fn_error "ambiguous option: \`$1'
28682 Try \`$0 --help' for more information.";;
28683 --help | --hel | -h )
28684 $as_echo "$ac_cs_usage"; exit ;;
28685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28687 ac_cs_silent=: ;;
28688
28689 # This is an error.
28690 -*) as_fn_error "unrecognized option: \`$1'
28691 Try \`$0 --help' for more information." ;;
28692
28693 *) as_fn_append ac_config_targets " $1"
28694 ac_need_defaults=false ;;
28695
28696 esac
28697 shift
28698 done
28699
28700 ac_configure_extra_args=
28701
28702 if $ac_cs_silent; then
28703 exec 6>/dev/null
28704 ac_configure_extra_args="$ac_configure_extra_args --silent"
28705 fi
28706
28707 _ACEOF
28708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28709 if \$ac_cs_recheck; then
28710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28711 shift
28712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28713 CONFIG_SHELL='$SHELL'
28714 export CONFIG_SHELL
28715 exec "\$@"
28716 fi
28717
28718 _ACEOF
28719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28720 exec 5>>config.log
28721 {
28722 echo
28723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28724 ## Running $as_me. ##
28725 _ASBOX
28726 $as_echo "$ac_log"
28727 } >&5
28728
28729 _ACEOF
28730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28731 #
28732 # INIT-COMMANDS
28733 #
28734 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28735 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28736 subdirs='$subdirs'
28737
28738 _ACEOF
28739
28740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28741
28742 # Handling of arguments.
28743 for ac_config_target in $ac_config_targets
28744 do
28745 case $ac_config_target in
28746 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28747 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28748 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28749 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28750 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28751 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28752 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28753 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28754
28755 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28756 esac
28757 done
28758
28759
28760 # If the user did not use the arguments to specify the items to instantiate,
28761 # then the envvar interface is used. Set only those that are not.
28762 # We use the long form for the default assignment because of an extremely
28763 # bizarre bug on SunOS 4.1.3.
28764 if $ac_need_defaults; then
28765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28768 fi
28769
28770 # Have a temporary directory for convenience. Make it in the build tree
28771 # simply because there is no reason against having it here, and in addition,
28772 # creating and moving files from /tmp can sometimes cause problems.
28773 # Hook for its removal unless debugging.
28774 # Note that there is a small window in which the directory will not be cleaned:
28775 # after its creation but before its name has been assigned to `$tmp'.
28776 $debug ||
28777 {
28778 tmp=
28779 trap 'exit_status=$?
28780 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28781 ' 0
28782 trap 'as_fn_exit 1' 1 2 13 15
28783 }
28784 # Create a (secure) tmp directory for tmp files.
28785
28786 {
28787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28788 test -n "$tmp" && test -d "$tmp"
28789 } ||
28790 {
28791 tmp=./conf$$-$RANDOM
28792 (umask 077 && mkdir "$tmp")
28793 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28794
28795 # Set up the scripts for CONFIG_FILES section.
28796 # No need to generate them if there are no CONFIG_FILES.
28797 # This happens for instance with `./config.status config.h'.
28798 if test -n "$CONFIG_FILES"; then
28799
28800 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28801 ac_cs_awk_getline=:
28802 ac_cs_awk_pipe_init=
28803 ac_cs_awk_read_file='
28804 while ((getline aline < (F[key])) > 0)
28805 print(aline)
28806 close(F[key])'
28807 ac_cs_awk_pipe_fini=
28808 else
28809 ac_cs_awk_getline=false
28810 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28811 ac_cs_awk_read_file='
28812 print "|#_!!_#|"
28813 print "cat " F[key] " &&"
28814 '$ac_cs_awk_pipe_init
28815 # The final `:' finishes the AND list.
28816 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28817 fi
28818 ac_cr=`echo X | tr X '\015'`
28819 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28820 # But we know of no other shell where ac_cr would be empty at this
28821 # point, so we can use a bashism as a fallback.
28822 if test "x$ac_cr" = x; then
28823 eval ac_cr=\$\'\\r\'
28824 fi
28825 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28826 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28827 ac_cs_awk_cr='\r'
28828 else
28829 ac_cs_awk_cr=$ac_cr
28830 fi
28831
28832 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28833 _ACEOF
28834
28835 # Create commands to substitute file output variables.
28836 {
28837 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28838 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28839 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28840 echo "_ACAWK" &&
28841 echo "_ACEOF"
28842 } >conf$$files.sh &&
28843 . ./conf$$files.sh ||
28844 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28845 rm -f conf$$files.sh
28846
28847 {
28848 echo "cat >conf$$subs.awk <<_ACEOF" &&
28849 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28850 echo "_ACEOF"
28851 } >conf$$subs.sh ||
28852 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28853 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28854 ac_delim='%!_!# '
28855 for ac_last_try in false false false false false :; do
28856 . ./conf$$subs.sh ||
28857 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28858
28859 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28860 if test $ac_delim_n = $ac_delim_num; then
28861 break
28862 elif $ac_last_try; then
28863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28864 else
28865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28866 fi
28867 done
28868 rm -f conf$$subs.sh
28869
28870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28872 _ACEOF
28873 sed -n '
28874 h
28875 s/^/S["/; s/!.*/"]=/
28876 p
28877 g
28878 s/^[^!]*!//
28879 :repl
28880 t repl
28881 s/'"$ac_delim"'$//
28882 t delim
28883 :nl
28884 h
28885 s/\(.\{148\}\).*/\1/
28886 t more1
28887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28888 p
28889 n
28890 b repl
28891 :more1
28892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28893 p
28894 g
28895 s/.\{148\}//
28896 t nl
28897 :delim
28898 h
28899 s/\(.\{148\}\).*/\1/
28900 t more2
28901 s/["\\]/\\&/g; s/^/"/; s/$/"/
28902 p
28903 b
28904 :more2
28905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28906 p
28907 g
28908 s/.\{148\}//
28909 t delim
28910 ' <conf$$subs.awk | sed '
28911 /^[^""]/{
28912 N
28913 s/\n//
28914 }
28915 ' >>$CONFIG_STATUS || ac_write_fail=1
28916 rm -f conf$$subs.awk
28917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28918 _ACAWK
28919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28920 for (key in S) S_is_set[key] = 1
28921 FS = "\a"
28922 \$ac_cs_awk_pipe_init
28923 }
28924 {
28925 line = $ 0
28926 nfields = split(line, field, "@")
28927 substed = 0
28928 len = length(field[1])
28929 for (i = 2; i < nfields; i++) {
28930 key = field[i]
28931 keylen = length(key)
28932 if (S_is_set[key]) {
28933 value = S[key]
28934 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28935 len += length(value) + length(field[++i])
28936 substed = 1
28937 } else
28938 len += 1 + keylen
28939 }
28940 if (nfields == 3 && !substed) {
28941 key = field[2]
28942 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28943 \$ac_cs_awk_read_file
28944 next
28945 }
28946 }
28947 print line
28948 }
28949 \$ac_cs_awk_pipe_fini
28950 _ACAWK
28951 _ACEOF
28952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28953 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28954 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28955 else
28956 cat
28957 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28958 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28959 _ACEOF
28960
28961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28963 # trailing colons and then remove the whole line if VPATH becomes empty
28964 # (actually we leave an empty line to preserve line numbers).
28965 if test "x$srcdir" = x.; then
28966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28967 s/:*\$(srcdir):*/:/
28968 s/:*\${srcdir}:*/:/
28969 s/:*@srcdir@:*/:/
28970 s/^\([^=]*=[ ]*\):*/\1/
28971 s/:*$//
28972 s/^[^=]*=[ ]*$//
28973 }'
28974 fi
28975
28976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28977 fi # test -n "$CONFIG_FILES"
28978
28979 # Set up the scripts for CONFIG_HEADERS section.
28980 # No need to generate them if there are no CONFIG_HEADERS.
28981 # This happens for instance with `./config.status Makefile'.
28982 if test -n "$CONFIG_HEADERS"; then
28983 cat >"$tmp/defines.awk" <<\_ACAWK ||
28984 BEGIN {
28985 _ACEOF
28986
28987 # Transform confdefs.h into an awk script `defines.awk', embedded as
28988 # here-document in config.status, that substitutes the proper values into
28989 # config.h.in to produce config.h.
28990
28991 # Create a delimiter string that does not exist in confdefs.h, to ease
28992 # handling of long lines.
28993 ac_delim='%!_!# '
28994 for ac_last_try in false false :; do
28995 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28996 if test -z "$ac_t"; then
28997 break
28998 elif $ac_last_try; then
28999 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29000 else
29001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29002 fi
29003 done
29004
29005 # For the awk script, D is an array of macro values keyed by name,
29006 # likewise P contains macro parameters if any. Preserve backslash
29007 # newline sequences.
29008
29009 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29010 sed -n '
29011 s/.\{148\}/&'"$ac_delim"'/g
29012 t rset
29013 :rset
29014 s/^[ ]*#[ ]*define[ ][ ]*/ /
29015 t def
29016 d
29017 :def
29018 s/\\$//
29019 t bsnl
29020 s/["\\]/\\&/g
29021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29022 D["\1"]=" \3"/p
29023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29024 d
29025 :bsnl
29026 s/["\\]/\\&/g
29027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29028 D["\1"]=" \3\\\\\\n"\\/p
29029 t cont
29030 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29031 t cont
29032 d
29033 :cont
29034 n
29035 s/.\{148\}/&'"$ac_delim"'/g
29036 t clear
29037 :clear
29038 s/\\$//
29039 t bsnlc
29040 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29041 d
29042 :bsnlc
29043 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29044 b cont
29045 ' <confdefs.h | sed '
29046 s/'"$ac_delim"'/"\\\
29047 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29048
29049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29050 for (key in D) D_is_set[key] = 1
29051 FS = "\a"
29052 }
29053 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29054 line = \$ 0
29055 split(line, arg, " ")
29056 if (arg[1] == "#") {
29057 defundef = arg[2]
29058 mac1 = arg[3]
29059 } else {
29060 defundef = substr(arg[1], 2)
29061 mac1 = arg[2]
29062 }
29063 split(mac1, mac2, "(") #)
29064 macro = mac2[1]
29065 prefix = substr(line, 1, index(line, defundef) - 1)
29066 if (D_is_set[macro]) {
29067 # Preserve the white space surrounding the "#".
29068 print prefix "define", macro P[macro] D[macro]
29069 next
29070 } else {
29071 # Replace #undef with comments. This is necessary, for example,
29072 # in the case of _POSIX_SOURCE, which is predefined and required
29073 # on some systems where configure will not decide to define it.
29074 if (defundef == "undef") {
29075 print "/*", prefix defundef, macro, "*/"
29076 next
29077 }
29078 }
29079 }
29080 { print }
29081 _ACAWK
29082 _ACEOF
29083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29084 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29085 fi # test -n "$CONFIG_HEADERS"
29086
29087
29088 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29089 shift
29090 for ac_tag
29091 do
29092 case $ac_tag in
29093 :[FHLC]) ac_mode=$ac_tag; continue;;
29094 esac
29095 case $ac_mode$ac_tag in
29096 :[FHL]*:*);;
29097 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29098 :[FH]-) ac_tag=-:-;;
29099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29100 esac
29101 ac_save_IFS=$IFS
29102 IFS=:
29103 set x $ac_tag
29104 IFS=$ac_save_IFS
29105 shift
29106 ac_file=$1
29107 shift
29108
29109 case $ac_mode in
29110 :L) ac_source=$1;;
29111 :[FH])
29112 ac_file_inputs=
29113 for ac_f
29114 do
29115 case $ac_f in
29116 -) ac_f="$tmp/stdin";;
29117 *) # Look for the file first in the build tree, then in the source tree
29118 # (if the path is not absolute). The absolute path cannot be DOS-style,
29119 # because $ac_f cannot contain `:'.
29120 test -f "$ac_f" ||
29121 case $ac_f in
29122 [\\/$]*) false;;
29123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29124 esac ||
29125 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29126 esac
29127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29128 as_fn_append ac_file_inputs " '$ac_f'"
29129 done
29130
29131 # Let's still pretend it is `configure' which instantiates (i.e., don't
29132 # use $as_me), people would be surprised to read:
29133 # /* config.h. Generated by config.status. */
29134 configure_input='Generated from '`
29135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29136 `' by configure.'
29137 if test x"$ac_file" != x-; then
29138 configure_input="$ac_file. $configure_input"
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29140 $as_echo "$as_me: creating $ac_file" >&6;}
29141 fi
29142 # Neutralize special characters interpreted by sed in replacement strings.
29143 case $configure_input in #(
29144 *\&* | *\|* | *\\* )
29145 ac_sed_conf_input=`$as_echo "$configure_input" |
29146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29147 *) ac_sed_conf_input=$configure_input;;
29148 esac
29149
29150 case $ac_tag in
29151 *:-:* | *:-) cat >"$tmp/stdin" \
29152 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29153 esac
29154 ;;
29155 esac
29156
29157 ac_dir=`$as_dirname -- "$ac_file" ||
29158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29159 X"$ac_file" : 'X\(//\)[^/]' \| \
29160 X"$ac_file" : 'X\(//\)$' \| \
29161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29162 $as_echo X"$ac_file" |
29163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29164 s//\1/
29165 q
29166 }
29167 /^X\(\/\/\)[^/].*/{
29168 s//\1/
29169 q
29170 }
29171 /^X\(\/\/\)$/{
29172 s//\1/
29173 q
29174 }
29175 /^X\(\/\).*/{
29176 s//\1/
29177 q
29178 }
29179 s/.*/./; q'`
29180 as_dir="$ac_dir"; as_fn_mkdir_p
29181 ac_builddir=.
29182
29183 case "$ac_dir" in
29184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29185 *)
29186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29187 # A ".." for each directory in $ac_dir_suffix.
29188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29189 case $ac_top_builddir_sub in
29190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29192 esac ;;
29193 esac
29194 ac_abs_top_builddir=$ac_pwd
29195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29196 # for backward compatibility:
29197 ac_top_builddir=$ac_top_build_prefix
29198
29199 case $srcdir in
29200 .) # We are building in place.
29201 ac_srcdir=.
29202 ac_top_srcdir=$ac_top_builddir_sub
29203 ac_abs_top_srcdir=$ac_pwd ;;
29204 [\\/]* | ?:[\\/]* ) # Absolute name.
29205 ac_srcdir=$srcdir$ac_dir_suffix;
29206 ac_top_srcdir=$srcdir
29207 ac_abs_top_srcdir=$srcdir ;;
29208 *) # Relative name.
29209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29210 ac_top_srcdir=$ac_top_build_prefix$srcdir
29211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29212 esac
29213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29214
29215
29216 case $ac_mode in
29217 :F)
29218 #
29219 # CONFIG_FILE
29220 #
29221
29222 _ACEOF
29223
29224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29225 # If the template does not know about datarootdir, expand it.
29226 # FIXME: This hack should be removed a few years after 2.60.
29227 ac_datarootdir_hack=; ac_datarootdir_seen=
29228 ac_sed_dataroot='
29229 /datarootdir/ {
29230 p
29231 q
29232 }
29233 /@datadir@/p
29234 /@docdir@/p
29235 /@infodir@/p
29236 /@localedir@/p
29237 /@mandir@/p'
29238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29239 *datarootdir*) ac_datarootdir_seen=yes;;
29240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29243 _ACEOF
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 ac_datarootdir_hack='
29246 s&@datadir@&$datadir&g
29247 s&@docdir@&$docdir&g
29248 s&@infodir@&$infodir&g
29249 s&@localedir@&$localedir&g
29250 s&@mandir@&$mandir&g
29251 s&\\\${datarootdir}&$datarootdir&g' ;;
29252 esac
29253 _ACEOF
29254
29255 # Neutralize VPATH when `$srcdir' = `.'.
29256 # Shell code in configure.ac might set extrasub.
29257 # FIXME: do we really want to maintain this feature?
29258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29259 ac_sed_extra="$ac_vpsub
29260 $extrasub
29261 _ACEOF
29262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29263 :t
29264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29265 s|@configure_input@|$ac_sed_conf_input|;t t
29266 s&@top_builddir@&$ac_top_builddir_sub&;t t
29267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29268 s&@srcdir@&$ac_srcdir&;t t
29269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29270 s&@top_srcdir@&$ac_top_srcdir&;t t
29271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29272 s&@builddir@&$ac_builddir&;t t
29273 s&@abs_builddir@&$ac_abs_builddir&;t t
29274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29275 $ac_datarootdir_hack
29276 "
29277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29278 if $ac_cs_awk_getline; then
29279 $AWK -f "$tmp/subs.awk"
29280 else
29281 $AWK -f "$tmp/subs.awk" | $SHELL
29282 fi >$tmp/out \
29283 || as_fn_error "could not create $ac_file" "$LINENO" 5
29284
29285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29289 which seems to be undefined. Please make sure it is defined." >&5
29290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29291 which seems to be undefined. Please make sure it is defined." >&2;}
29292
29293 rm -f "$tmp/stdin"
29294 case $ac_file in
29295 -) cat "$tmp/out" && rm -f "$tmp/out";;
29296 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29297 esac \
29298 || as_fn_error "could not create $ac_file" "$LINENO" 5
29299 ;;
29300 :H)
29301 #
29302 # CONFIG_HEADER
29303 #
29304 if test x"$ac_file" != x-; then
29305 {
29306 $as_echo "/* $configure_input */" \
29307 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29308 } >"$tmp/config.h" \
29309 || as_fn_error "could not create $ac_file" "$LINENO" 5
29310 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29313 else
29314 rm -f "$ac_file"
29315 mv "$tmp/config.h" "$ac_file" \
29316 || as_fn_error "could not create $ac_file" "$LINENO" 5
29317 fi
29318 else
29319 $as_echo "/* $configure_input */" \
29320 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29321 || as_fn_error "could not create -" "$LINENO" 5
29322 fi
29323 ;;
29324
29325 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29326 $as_echo "$as_me: executing $ac_file commands" >&6;}
29327 ;;
29328 esac
29329
29330
29331 case $ac_file$ac_mode in
29332 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29333 "gccdepdir":C)
29334 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29335 for lang in $subdirs c-family common
29336 do
29337 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29338 done ;;
29339 "as":F) chmod +x as ;;
29340 "collect-ld":F) chmod +x collect-ld ;;
29341 "nm":F) chmod +x nm ;;
29342 "default":C)
29343 case ${CONFIG_HEADERS} in
29344 *auto-host.h:config.in*)
29345 echo > cstamp-h ;;
29346 esac
29347 # Make sure all the subdirs exist.
29348 for d in $subdirs doc build common c-family
29349 do
29350 test -d $d || mkdir $d
29351 done
29352 ;;
29353
29354 esac
29355 done # for ac_tag
29356
29357
29358 as_fn_exit 0
29359 _ACEOF
29360 ac_clean_files=$ac_clean_files_save
29361
29362 test $ac_write_fail = 0 ||
29363 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29364
29365
29366 # configure is writing to config.log, and then calls config.status.
29367 # config.status does its own redirection, appending to config.log.
29368 # Unfortunately, on DOS this fails, as config.log is still kept open
29369 # by configure, so config.status won't be able to write to it; its
29370 # output is simply discarded. So we exec the FD to /dev/null,
29371 # effectively closing config.log, so it can be properly (re)opened and
29372 # appended to by config.status. When coming back to configure, we
29373 # need to make the FD available again.
29374 if test "$no_create" != yes; then
29375 ac_cs_success=:
29376 ac_config_status_args=
29377 test "$silent" = yes &&
29378 ac_config_status_args="$ac_config_status_args --quiet"
29379 exec 5>/dev/null
29380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29381 exec 5>>config.log
29382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29383 # would make configure fail if this is the last instruction.
29384 $ac_cs_success || as_fn_exit $?
29385 fi
29386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29389 fi
29390
29391