common.opt (fstack-protector): Initialize to -1.
[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 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CXXFLAGS
713 BUILD_CFLAGS
714 CXX_FOR_BUILD
715 CC_FOR_BUILD
716 inhibit_libc
717 SYSTEM_HEADER_DIR
718 ALL
719 CROSS
720 CATOBJEXT
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATALOGS
725 POSUB
726 GMSGFMT
727 XGETTEXT
728 INCINTL
729 LIBINTL_DEP
730 LIBINTL
731 USE_NLS
732 extra_opt_files
733 extra_modes_file
734 NATIVE_SYSTEM_HEADER_DIR
735 objext
736 manext
737 LIBICONV_DEP
738 LTLIBICONV
739 LIBICONV
740 LDEXP_LIB
741 EXTRA_GCC_LIBS
742 GNAT_LIBEXC
743 COLLECT2_LIBS
744 CXXDEPMODE
745 DEPDIR
746 am__leading_dot
747 doc_build_sys
748 AR
749 NM
750 BISON
751 FLEX
752 GENERATED_MANPAGES
753 BUILD_INFO
754 MAKEINFO
755 have_mktemp_command
756 make_compare_target
757 INSTALL_DATA
758 INSTALL_PROGRAM
759 INSTALL
760 ranlib_flags
761 RANLIB
762 LN
763 LN_S
764 AWK
765 SET_MAKE
766 accel_dir_suffix
767 real_target_noncanonical
768 enable_as_accelerator
769 REPORT_BUGS_TEXI
770 REPORT_BUGS_TO
771 PKGVERSION
772 CONFIGURE_SPECS
773 enable_shared
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
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 aliasing_flags
794 CPP
795 EGREP
796 GREP
797 CXXCPP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
803 CXX
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
810 CC
811 GENINSRC
812 CROSS_SYSTEM_HEADER_DIR
813 TARGET_SYSTEM_ROOT_DEFINE
814 TARGET_SYSTEM_ROOT
815 SYSROOT_CFLAGS_FOR_TARGET
816 target_subdir
817 host_subdir
818 build_subdir
819 build_libsubdir
820 target_noncanonical
821 target_os
822 target_vendor
823 target_cpu
824 target
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files='option_includes
872 language_hooks'
873 ac_user_opts='
874 enable_option_checking
875 with_build_libsubdir
876 with_local_prefix
877 with_native_system_header_dir
878 with_build_sysroot
879 with_sysroot
880 with_gxx_include_dir
881 with_cpp_install_dir
882 enable_generated_files_in_srcdir
883 with_gnu_ld
884 with_ld
885 with_demangler_in_ld
886 with_gnu_as
887 with_as
888 enable_largefile
889 enable_build_format_warnings
890 enable_werror_always
891 enable_checking
892 enable_coverage
893 enable_gather_detailed_mem_stats
894 enable_valgrind_annotations
895 with_stabs
896 enable_multilib
897 enable_multiarch
898 enable___cxa_atexit
899 enable_decimal_float
900 enable_fixed_point
901 enable_threads
902 enable_tls
903 enable_objc_gc
904 with_dwarf2
905 enable_shared
906 with_specs
907 with_pkgversion
908 with_bugurl
909 enable_languages
910 with_multilib_list
911 enable_rpath
912 with_libiconv_prefix
913 enable_sjlj_exceptions
914 enable_secureplt
915 enable_leading_mingw64_underscores
916 enable_cld
917 enable_frame_pointer
918 enable_win32_registry
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_libtool_lock
923 enable_ld
924 enable_gold
925 with_plugin_ld
926 enable_gnu_indirect_function
927 enable_initfini_array
928 enable_comdat
929 enable_fix_cortex_a53_835769
930 enable_fix_cortex_a53_843419
931 with_glibc_version
932 enable_gnu_unique_object
933 enable_linker_build_id
934 enable_default_ssp
935 with_long_double_128
936 with_gc
937 with_system_zlib
938 enable_maintainer_mode
939 enable_link_mutex
940 enable_version_specific_runtime_libs
941 enable_plugin
942 enable_host_shared
943 enable_libquadmath_support
944 with_linker_hash_style
945 with_diagnostics_color
946 enable_default_pie
947 '
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CXX
957 CXXFLAGS
958 CCC
959 CXXCPP
960 CPP
961 GMPLIBS
962 GMPINC
963 ISLLIBS
964 ISLINC'
965
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
988
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1014
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1018 do
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1022 ac_prev=
1023 continue
1024 fi
1025
1026 case $ac_option in
1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 *) ac_optarg=yes ;;
1029 esac
1030
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033 case $ac_dashdash$ac_option in
1034 --)
1035 ac_dashdash=yes ;;
1036
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1041
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1046
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1053
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1056
1057 -datadir | --datadir | --datadi | --datad)
1058 ac_prev=datadir ;;
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1061
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1068
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1094
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1119
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1123
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1130
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1135
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1141
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1148
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1153
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1158
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1165
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1170
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1177
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1182
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1186
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1190
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1194
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1203
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1208
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1215
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1222
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1239
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1244
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1249
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1253
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1259
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1270
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1275
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1280
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1287
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1292
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1295
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1298
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
1314
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1330
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1334
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1341
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1348
1349 -*) as_fn_error "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1351 ;;
1352
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1359 esac
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1362
1363 *)
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 ;;
1370
1371 esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error "missing argument to $ac_option"
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1385 fi
1386
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1392 do
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1407
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1414
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1422 cross_compiling=yes
1423 fi
1424 fi
1425
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428
1429 test "$silent" = yes && exec 6>/dev/null
1430
1431
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error "pwd does not report name of working directory"
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\).*/{
1463 s//\1/
1464 q
1465 }
1466 s/.*/./; q'`
1467 srcdir=$ac_confdir
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 srcdir=..
1470 fi
1471 else
1472 ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1477 fi
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures this package to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1559 _ACEOF
1560
1561 cat <<\_ACEOF
1562
1563 Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567
1568 System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576
1577 cat <<\_ACEOF
1578
1579 Optional Features:
1580 --disable-option-checking ignore unrecognized --enable/--with options
1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files in source dir intended
1585 for creating source tarballs for users without
1586 texinfo bison or flex
1587 --disable-largefile omit support for large files
1588 --disable-build-format-warnings
1589 don't use -Wformat while building GCC
1590 --enable-werror-always enable -Werror despite compiler version
1591 --enable-checking[=LIST]
1592 enable expensive run-time checks. With LIST, enable
1593 only specific categories of checks. Categories are:
1594 yes,no,all,none,release. Flags are:
1595 assert,df,fold,gc,gcac,gimple,misc,
1596 rtlflag,rtl,runtime,tree,valgrind,types
1597 --enable-coverage[=LEVEL]
1598 enable compiler's code coverage collection. Use to
1599 measure compiler performance and locate unused parts
1600 of the compiler. With LEVEL, specify optimization.
1601 Values are opt, noopt, default is noopt
1602 --enable-gather-detailed-mem-stats
1603 enable detailed memory allocation stats gathering
1604 --enable-valgrind-annotations
1605 enable valgrind runtime interaction
1606 --enable-multilib enable library support for multiple ABIs
1607 --enable-multiarch enable support for multiarch paths
1608 --enable-__cxa_atexit enable __cxa_atexit for C++
1609 --enable-decimal-float={no,yes,bid,dpd}
1610 enable decimal float extension to C. Selecting 'bid'
1611 or 'dpd' choses which decimal floating point format
1612 to use
1613 --enable-fixed-point enable fixed-point arithmetic extension to C
1614 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1615 package
1616 --enable-tls enable or disable generation of tls code overriding
1617 the assembler check for tls support
1618 --enable-objc-gc enable the use of Boehm's garbage collector with the
1619 GNU Objective-C runtime
1620 --disable-shared don't provide a shared libgcc
1621 --enable-languages=LIST specify which front-ends to build
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-sjlj-exceptions
1624 arrange to use setjmp/longjmp exception handling
1625 --enable-secureplt enable -msecure-plt by default for PowerPC
1626 --enable-leading-mingw64-underscores
1627 enable leading underscores on 64 bit mingw targets
1628 --enable-cld enable -mcld by default for 32bit x86
1629 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1630 x86
1631 --disable-win32-registry
1632 disable lookup of installation paths in the Registry
1633 on Windows hosts
1634 --enable-win32-registry enable registry lookup (default)
1635 --enable-win32-registry=KEY
1636 use KEY instead of GCC version as the last portion
1637 of the registry key
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1644 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1645 --enable-gnu-indirect-function
1646 enable the use of the @gnu_indirect_function to
1647 glibc systems
1648 --enable-initfini-array use .init_array/.fini_array sections
1649 --enable-comdat enable COMDAT group support
1650
1651 --enable-fix-cortex-a53-835769
1652 enable workaround for AArch64 Cortex-A53 erratum
1653 835769 by default
1654 --disable-fix-cortex-a53-835769
1655 disable workaround for AArch64 Cortex-A53 erratum
1656 835769 by default
1657
1658
1659 --enable-fix-cortex-a53-843419
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 843419 by default
1662 --disable-fix-cortex-a53-843419
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 843419 by default
1665
1666 --enable-gnu-unique-object
1667 enable the use of the @gnu_unique_object ELF
1668 extension on glibc systems
1669 --enable-linker-build-id
1670 compiler will always pass --build-id to linker
1671 --enable-default-ssp enable Stack Smashing Protection as default
1672 --enable-maintainer-mode
1673 enable make rules and dependencies not useful (and
1674 sometimes confusing) to the casual installer
1675 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1676 thrashing on the build machine
1677 --enable-version-specific-runtime-libs
1678 specify that runtime libraries should be installed
1679 in a compiler-specific directory
1680 --enable-plugin enable plugin support
1681 --enable-host-shared build host code as shared libraries
1682 --disable-libquadmath-support
1683 disable libquadmath support for Fortran
1684 --enable-default-pie enable Position Independent Executable as default
1685
1686 Optional Packages:
1687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1689 --with-build-libsubdir=DIR Directory where to find libraries for build system
1690 --with-local-prefix=DIR specifies directory to put local include
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-gxx-include-dir=DIR
1698 specifies directory to put g++ header files
1699 --with-cpp-install-dir=DIR
1700 install the user visible C preprocessor in DIR
1701 (relative to PREFIX) as well as PREFIX/bin
1702 --with-gnu-ld arrange to work with GNU ld
1703 --with-ld arrange to use the specified ld (full pathname)
1704 --with-demangler-in-ld try to use demangler in GNU ld
1705 --with-gnu-as arrange to work with GNU as
1706 --with-as arrange to use the specified as (full pathname)
1707 --with-stabs arrange to use stabs instead of host debug format
1708 --with-dwarf2 force the default debug format to be DWARF 2
1709 --with-specs=SPECS add SPECS to driver command-line processing
1710 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1711 --with-bugurl=URL Direct users to URL to report a bug
1712 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1713 --with-gnu-ld assume the C compiler uses GNU ld default=no
1714 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1715 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1716 --with-pic try to use only PIC/non-PIC objects [default=use
1717 both]
1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1719 --with-plugin-ld=[ARG] specify the plugin linker
1720 --with-glibc-version=M.N
1721 assume GCC used with glibc version M.N or later
1722 --with-long-double-128 use 128-bit long double by default
1723 --with-gc={page,zone} this option is not supported anymore. It used to
1724 choose the garbage collection mechanism to use with
1725 the compiler
1726 --with-system-zlib use installed libz
1727 --with-linker-hash-style={sysv,gnu,both}
1728 specify the linker hash style
1729 --with-diagnostics-color={never,auto,auto-if-env,always}
1730 specify the default of -fdiagnostics-color option
1731 auto-if-env stands for -fdiagnostics-color=auto if
1732 GCC_COLOR environment variable is present and
1733 -fdiagnostics-color=never otherwise
1734
1735 Some influential environment variables:
1736 CC C compiler command
1737 CFLAGS C compiler flags
1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1739 nonstandard directory <lib dir>
1740 LIBS libraries to pass to the linker, e.g. -l<library>
1741 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1742 you have headers in a nonstandard directory <include dir>
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1746 CPP C preprocessor
1747 GMPLIBS How to link GMP
1748 GMPINC How to find GMP include files
1749 ISLLIBS How to link ISL
1750 ISLINC How to find ISL include files
1751
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1754
1755 Report bugs to the package provider.
1756 _ACEOF
1757 ac_status=$?
1758 fi
1759
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 continue
1766 ac_builddir=.
1767
1768 case "$ac_dir" in
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *)
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 esac ;;
1778 esac
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1783
1784 case $srcdir in
1785 .) # We are building in place.
1786 ac_srcdir=.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1793 *) # Relative name.
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 esac
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1799
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1806 echo &&
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1808 else
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 fi || ac_status=$?
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1812 done
1813 fi
1814
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1817 cat <<\_ACEOF
1818 configure
1819 generated by GNU Autoconf 2.64
1820
1821 Copyright (C) 2009 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1824 _ACEOF
1825 exit
1826 fi
1827
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1831
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1867
1868 } # ac_fn_c_try_compile
1869
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1905
1906 } # ac_fn_cxx_try_compile
1907
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } >/dev/null && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 return $ac_retval
1942
1943 } # ac_fn_cxx_try_cpp
1944
1945 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # ---------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1949 # accordingly.
1950 ac_fn_cxx_check_header_mongrel ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 else
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_cxx_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1973 else
1974 ac_header_compiler=no
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1979
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_cxx_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1989 else
1990 ac_header_preproc=no
1991 fi
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1995
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1998 yes:no: )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ;;
2004 no:yes:* )
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ;;
2016 esac
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 eval "$3=\$ac_header_compiler"
2023 fi
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029
2030 } # ac_fn_cxx_check_header_mongrel
2031
2032 # ac_fn_cxx_try_run LINENO
2033 # ------------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_cxx_try_run ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2040 case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2047 ac_status=$?
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2060 ac_retval=0
2061 else
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 ac_retval=$ac_status
2067 fi
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 return $ac_retval
2071
2072 } # ac_fn_cxx_try_run
2073
2074 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2075 # ---------------------------------------------------------
2076 # Tests whether HEADER exists and can be compiled using the include files in
2077 # INCLUDES, setting the cache variable VAR accordingly.
2078 ac_fn_cxx_check_header_compile ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 #include <$2>
2090 _ACEOF
2091 if ac_fn_cxx_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102
2103 } # ac_fn_cxx_check_header_compile
2104
2105 # ac_fn_c_try_cpp LINENO
2106 # ----------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_cpp ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2112 case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } >/dev/null && {
2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 }; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136 fi
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 return $ac_retval
2139
2140 } # ac_fn_c_try_cpp
2141
2142 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2143 # ----------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_cxx_compute_int ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_cxx_try_compile "$LINENO"; then :
2166 ac_lo=0 ac_mid=0
2167 while :; do
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_cxx_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid; break
2183 else
2184 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185 if test $ac_lo -le $ac_mid; then
2186 ac_lo= ac_hi=
2187 break
2188 fi
2189 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main ()
2199 {
2200 static int test_array [1 - 2 * !(($2) < 0)];
2201 test_array [0] = 0
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_cxx_try_compile "$LINENO"; then :
2208 ac_hi=-1 ac_mid=-1
2209 while :; do
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $4
2213 int
2214 main ()
2215 {
2216 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2217 test_array [0] = 0
2218
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_cxx_try_compile "$LINENO"; then :
2224 ac_lo=$ac_mid; break
2225 else
2226 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2227 if test $ac_mid -le $ac_hi; then
2228 ac_lo= ac_hi=
2229 break
2230 fi
2231 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 else
2236 ac_lo= ac_hi=
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 # Binary search between lo and hi bounds.
2242 while test "x$ac_lo" != "x$ac_hi"; do
2243 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 test_array [0] = 0
2252
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_hi=$ac_mid
2259 else
2260 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2276 int
2277 main ()
2278 {
2279
2280 FILE *f = fopen ("conftest.val", "w");
2281 if (! f)
2282 return 1;
2283 if (($2) < 0)
2284 {
2285 long int i = longval ();
2286 if (i != ($2))
2287 return 1;
2288 fprintf (f, "%ld", i);
2289 }
2290 else
2291 {
2292 unsigned long int i = ulongval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%lu", i);
2296 }
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_cxx_try_run "$LINENO"; then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else
2308 ac_retval=1
2309 fi
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311 conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 rm -f conftest.val
2313
2314 fi
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 return $ac_retval
2317
2318 } # ac_fn_cxx_compute_int
2319
2320 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_cxx_check_type ()
2325 {
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main ()
2338 {
2339 if (sizeof ($2))
2340 return 0;
2341 ;
2342 return 0;
2343 }
2344 _ACEOF
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $4
2349 int
2350 main ()
2351 {
2352 if (sizeof (($2)))
2353 return 0;
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2359
2360 else
2361 eval "$3=yes"
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371
2372 } # ac_fn_cxx_check_type
2373
2374 # ac_fn_c_find_intX_t LINENO BITS VAR
2375 # -----------------------------------
2376 # Finds a signed integer type with width BITS, setting cache variable VAR
2377 # accordingly.
2378 ac_fn_c_find_intX_t ()
2379 {
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2382 $as_echo_n "checking for int$2_t... " >&6; }
2383 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 eval "$3=no"
2387 for ac_type in int$2_t 'int' 'long int' \
2388 'long long int' 'short int' 'signed char'; do
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $ac_includes_default
2392 int
2393 main ()
2394 {
2395 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2396 test_array [0] = 0
2397
2398 ;
2399 return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_cxx_try_compile "$LINENO"; then :
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2410 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2411 test_array [0] = 0
2412
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_cxx_try_compile "$LINENO"; then :
2418
2419 else
2420 case $ac_type in #(
2421 int$2_t) :
2422 eval "$3=yes" ;; #(
2423 *) :
2424 eval "$3=\$ac_type" ;;
2425 esac
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 eval as_val=\$$3
2431 if test "x$as_val" = x""no; then :
2432
2433 else
2434 break
2435 fi
2436 done
2437 fi
2438 eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442
2443 } # ac_fn_c_find_intX_t
2444
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link ()
2449 {
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453 case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475 else
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480 fi
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 return $ac_retval
2488
2489 } # ac_fn_cxx_try_link
2490
2491 # ac_fn_c_find_uintX_t LINENO BITS VAR
2492 # ------------------------------------
2493 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2494 # accordingly.
2495 ac_fn_c_find_uintX_t ()
2496 {
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2499 $as_echo_n "checking for uint$2_t... " >&6; }
2500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 eval "$3=no"
2504 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2505 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 $ac_includes_default
2509 int
2510 main ()
2511 {
2512 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2513 test_array [0] = 0
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 case $ac_type in #(
2521 uint$2_t) :
2522 eval "$3=yes" ;; #(
2523 *) :
2524 eval "$3=\$ac_type" ;;
2525 esac
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 eval as_val=\$$3
2529 if test "x$as_val" = x""no; then :
2530
2531 else
2532 break
2533 fi
2534 done
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_c_find_uintX_t
2542
2543 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2544 # ------------------------------------------------
2545 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2546 ac_fn_cxx_check_header_preproc ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 #include <$2>
2557 _ACEOF
2558 if ac_fn_cxx_try_cpp "$LINENO"; then :
2559 eval "$3=yes"
2560 else
2561 eval "$3=no"
2562 fi
2563 rm -f conftest.err conftest.$ac_ext
2564 fi
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569
2570 } # ac_fn_cxx_check_header_preproc
2571
2572 # ac_fn_cxx_check_func LINENO FUNC VAR
2573 # ------------------------------------
2574 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2575 ac_fn_cxx_check_func ()
2576 {
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2579 $as_echo_n "checking for $2... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2587 #define $2 innocuous_$2
2588
2589 /* System header to define __stub macros and hopefully few prototypes,
2590 which can conflict with char $2 (); below.
2591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 <limits.h> exists even on freestanding compilers. */
2593
2594 #ifdef __STDC__
2595 # include <limits.h>
2596 #else
2597 # include <assert.h>
2598 #endif
2599
2600 #undef $2
2601
2602 /* Override any GCC internal prototype to avoid an error.
2603 Use char because int might match the return type of a GCC
2604 builtin and then its argument prototype would still apply. */
2605 #ifdef __cplusplus
2606 extern "C"
2607 #endif
2608 char $2 ();
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined __stub_$2 || defined __stub___$2
2613 choke me
2614 #endif
2615
2616 int
2617 main ()
2618 {
2619 return $2 ();
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_cxx_try_link "$LINENO"; then :
2625 eval "$3=yes"
2626 else
2627 eval "$3=no"
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631 fi
2632 eval ac_res=\$$3
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636
2637 } # ac_fn_cxx_check_func
2638
2639 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2640 # --------------------------------------
2641 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2642 ac_fn_cxx_check_decl ()
2643 {
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 as_decl_name=`echo $2|sed 's/ *(.*//'`
2646 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2648 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2654 $4
2655 int
2656 main ()
2657 {
2658 #ifndef $as_decl_name
2659 #ifdef __cplusplus
2660 (void) $as_decl_use;
2661 #else
2662 (void) $as_decl_name;
2663 #endif
2664 #endif
2665
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 if ac_fn_cxx_try_compile "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2674 fi
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2681
2682 } # ac_fn_cxx_check_decl
2683
2684 # ac_fn_c_try_link LINENO
2685 # -----------------------
2686 # Try to link conftest.$ac_ext, and return whether this succeeded.
2687 ac_fn_c_try_link ()
2688 {
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { { ac_try="$ac_link"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link") 2>conftest.err
2699 ac_status=$?
2700 if test -s conftest.err; then
2701 grep -v '^ *+' conftest.err >conftest.er1
2702 cat conftest.er1 >&5
2703 mv -f conftest.er1 conftest.err
2704 fi
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest$ac_exeext && {
2710 test "$cross_compiling" = yes ||
2711 $as_test_x conftest$ac_exeext
2712 }; then :
2713 ac_retval=0
2714 else
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_retval=1
2719 fi
2720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2722 # interfere with the next link command; also delete a directory that is
2723 # left behind by Apple's compiler. We do this before executing the actions.
2724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2726 return $ac_retval
2727
2728 } # ac_fn_c_try_link
2729
2730 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2731 # ----------------------------------------------
2732 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2733 ac_fn_c_check_header_preproc ()
2734 {
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 #include <$2>
2744 _ACEOF
2745 if ac_fn_c_try_cpp "$LINENO"; then :
2746 eval "$3=yes"
2747 else
2748 eval "$3=no"
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751 fi
2752 eval ac_res=\$$3
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2756
2757 } # ac_fn_c_check_header_preproc
2758
2759 # ac_fn_c_check_func LINENO FUNC VAR
2760 # ----------------------------------
2761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2762 ac_fn_c_check_func ()
2763 {
2764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766 $as_echo_n "checking for $2... " >&6; }
2767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2774 #define $2 innocuous_$2
2775
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $2 (); below.
2778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 <limits.h> exists even on freestanding compilers. */
2780
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786
2787 #undef $2
2788
2789 /* Override any GCC internal prototype to avoid an error.
2790 Use char because int might match the return type of a GCC
2791 builtin and then its argument prototype would still apply. */
2792 #ifdef __cplusplus
2793 extern "C"
2794 #endif
2795 char $2 ();
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined __stub_$2 || defined __stub___$2
2800 choke me
2801 #endif
2802
2803 int
2804 main ()
2805 {
2806 return $2 ();
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_link "$LINENO"; then :
2812 eval "$3=yes"
2813 else
2814 eval "$3=no"
2815 fi
2816 rm -f core conftest.err conftest.$ac_objext \
2817 conftest$ac_exeext conftest.$ac_ext
2818 fi
2819 eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821 $as_echo "$ac_res" >&6; }
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2823
2824 } # ac_fn_c_check_func
2825 cat >config.log <<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2828
2829 It was created by $as_me, which was
2830 generated by GNU Autoconf 2.64. Invocation command line was
2831
2832 $ $0 $@
2833
2834 _ACEOF
2835 exec 5>>config.log
2836 {
2837 cat <<_ASUNAME
2838 ## --------- ##
2839 ## Platform. ##
2840 ## --------- ##
2841
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2847
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2850
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2858
2859 _ASUNAME
2860
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 $as_echo "PATH: $as_dir"
2867 done
2868 IFS=$as_save_IFS
2869
2870 } >&5
2871
2872 cat >&5 <<_ACEOF
2873
2874
2875 ## ----------- ##
2876 ## Core tests. ##
2877 ## ----------- ##
2878
2879 _ACEOF
2880
2881
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2887 ac_configure_args=
2888 ac_configure_args0=
2889 ac_configure_args1=
2890 ac_must_keep_next=false
2891 for ac_pass in 1 2
2892 do
2893 for ac_arg
2894 do
2895 case $ac_arg in
2896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2898 | -silent | --silent | --silen | --sile | --sil)
2899 continue ;;
2900 *\'*)
2901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2902 esac
2903 case $ac_pass in
2904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2905 2)
2906 as_fn_append ac_configure_args1 " '$ac_arg'"
2907 if test $ac_must_keep_next = true; then
2908 ac_must_keep_next=false # Got value, back to normal.
2909 else
2910 case $ac_arg in
2911 *=* | --config-cache | -C | -disable-* | --disable-* \
2912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2914 | -with-* | --with-* | -without-* | --without-* | --x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2917 esac
2918 ;;
2919 -* ) ac_must_keep_next=true ;;
2920 esac
2921 fi
2922 as_fn_append ac_configure_args " '$ac_arg'"
2923 ;;
2924 esac
2925 done
2926 done
2927 { ac_configure_args0=; unset ac_configure_args0;}
2928 { ac_configure_args1=; unset ac_configure_args1;}
2929
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2937 {
2938 echo
2939
2940 cat <<\_ASBOX
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2944 _ASBOX
2945 echo
2946 # The following way of writing the cache mishandles newlines in values,
2947 (
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2950 case $ac_val in #(
2951 *${as_nl}*)
2952 case $ac_var in #(
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2955 esac
2956 case $ac_var in #(
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2960 esac ;;
2961 esac
2962 done
2963 (set) 2>&1 |
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2966 sed -n \
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2969 ;; #(
2970 *)
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2972 ;;
2973 esac |
2974 sort
2975 )
2976 echo
2977
2978 cat <<\_ASBOX
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2982 _ASBOX
2983 echo
2984 for ac_var in $ac_subst_vars
2985 do
2986 eval ac_val=\$$ac_var
2987 case $ac_val in
2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989 esac
2990 $as_echo "$ac_var='\''$ac_val'\''"
2991 done | sort
2992 echo
2993
2994 if test -n "$ac_subst_files"; then
2995 cat <<\_ASBOX
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_files
3002 do
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3010 fi
3011
3012 if test -s confdefs.h; then
3013 cat <<\_ASBOX
3014 ## ----------- ##
3015 ## confdefs.h. ##
3016 ## ----------- ##
3017 _ASBOX
3018 echo
3019 cat confdefs.h
3020 echo
3021 fi
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3025 } >&5
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3028 exit $exit_status
3029 ' 0
3030 for ac_signal in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 done
3033 ac_signal=0
3034
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3037
3038 $as_echo "/* confdefs.h */" > confdefs.h
3039
3040 # Predefined preprocessor variables.
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3064 _ACEOF
3065
3066
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3069 ac_site_file1=NONE
3070 ac_site_file2=NONE
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE; then
3074 ac_site_file1=$prefix/share/config.site
3075 ac_site_file2=$prefix/etc/config.site
3076 else
3077 ac_site_file1=$ac_default_prefix/share/config.site
3078 ac_site_file2=$ac_default_prefix/etc/config.site
3079 fi
3080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3081 do
3082 test "x$ac_site_file" = xNONE && continue
3083 if test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3087 . "$ac_site_file"
3088 fi
3089 done
3090
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special
3093 # files actually), so we avoid doing that.
3094 if test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097 case $cache_file in
3098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099 *) . "./$cache_file";;
3100 esac
3101 fi
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105 >$cache_file
3106 fi
3107
3108 # Check that the precious variables saved in the cache have kept the same
3109 # value.
3110 ac_cache_corrupted=false
3111 for ac_var in $ac_precious_vars; do
3112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3113 eval ac_new_set=\$ac_env_${ac_var}_set
3114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3115 eval ac_new_val=\$ac_env_${ac_var}_value
3116 case $ac_old_set,$ac_new_set in
3117 set,)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120 ac_cache_corrupted=: ;;
3121 ,set)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,);;
3126 *)
3127 if test "x$ac_old_val" != "x$ac_new_val"; then
3128 # differences in whitespace do not lead to failure.
3129 ac_old_val_w=`echo x $ac_old_val`
3130 ac_new_val_w=`echo x $ac_new_val`
3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134 ac_cache_corrupted=:
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138 eval $ac_var=\$ac_old_val
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3144 fi;;
3145 esac
3146 # Pass precious variables to config.status.
3147 if test "$ac_new_set" = set; then
3148 case $ac_new_val in
3149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150 *) ac_arg=$ac_var=$ac_new_val ;;
3151 esac
3152 case " $ac_configure_args " in
3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3155 esac
3156 fi
3157 done
3158 if $ac_cache_corrupted; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3164 fi
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176
3177
3178
3179
3180 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3181
3182
3183 gcc_version=`cat $srcdir/BASE-VER`
3184
3185 # Determine the host, build, and target systems
3186 ac_aux_dir=
3187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3188 for ac_t in install-sh install.sh shtool; do
3189 if test -f "$ac_dir/$ac_t"; then
3190 ac_aux_dir=$ac_dir
3191 ac_install_sh="$ac_aux_dir/$ac_t -c"
3192 break 2
3193 fi
3194 done
3195 done
3196 if test -z "$ac_aux_dir"; then
3197 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3198 fi
3199
3200 # These three variables are undocumented and unsupported,
3201 # and are intended to be withdrawn in a future Autoconf release.
3202 # They can cause serious problems if a builder's source tree is in a directory
3203 # whose full name contains unusual characters.
3204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3207
3208
3209 # Make sure we can run config.sub.
3210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3212
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214 $as_echo_n "checking build system type... " >&6; }
3215 if test "${ac_cv_build+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 ac_build_alias=$build_alias
3219 test "x$ac_build_alias" = x &&
3220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3221 test "x$ac_build_alias" = x &&
3222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3225
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228 $as_echo "$ac_cv_build" >&6; }
3229 case $ac_cv_build in
3230 *-*-*) ;;
3231 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3232 esac
3233 build=$ac_cv_build
3234 ac_save_IFS=$IFS; IFS='-'
3235 set x $ac_cv_build
3236 shift
3237 build_cpu=$1
3238 build_vendor=$2
3239 shift; shift
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3242 build_os=$*
3243 IFS=$ac_save_IFS
3244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3245
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248 $as_echo_n "checking host system type... " >&6; }
3249 if test "${ac_cv_host+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test "x$host_alias" = x; then
3253 ac_cv_host=$ac_cv_build
3254 else
3255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 fi
3258
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261 $as_echo "$ac_cv_host" >&6; }
3262 case $ac_cv_host in
3263 *-*-*) ;;
3264 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3265 esac
3266 host=$ac_cv_host
3267 ac_save_IFS=$IFS; IFS='-'
3268 set x $ac_cv_host
3269 shift
3270 host_cpu=$1
3271 host_vendor=$2
3272 shift; shift
3273 # Remember, the first character of IFS is used to create $*,
3274 # except with old shells:
3275 host_os=$*
3276 IFS=$ac_save_IFS
3277 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3278
3279
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3281 $as_echo_n "checking target system type... " >&6; }
3282 if test "${ac_cv_target+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test "x$target_alias" = x; then
3286 ac_cv_target=$ac_cv_host
3287 else
3288 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3289 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 fi
3291
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3294 $as_echo "$ac_cv_target" >&6; }
3295 case $ac_cv_target in
3296 *-*-*) ;;
3297 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3298 esac
3299 target=$ac_cv_target
3300 ac_save_IFS=$IFS; IFS='-'
3301 set x $ac_cv_target
3302 shift
3303 target_cpu=$1
3304 target_vendor=$2
3305 shift; shift
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3308 target_os=$*
3309 IFS=$ac_save_IFS
3310 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3311
3312
3313 # The aliases save the names the user supplied, while $host etc.
3314 # will get canonicalized.
3315 test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3317 NONENONEs,x,x, &&
3318 program_prefix=${target_alias}-
3319
3320 # Determine the noncanonical target name, for directory use.
3321 case ${build_alias} in
3322 "") build_noncanonical=${build} ;;
3323 *) build_noncanonical=${build_alias} ;;
3324 esac
3325
3326 case ${host_alias} in
3327 "") host_noncanonical=${build_noncanonical} ;;
3328 *) host_noncanonical=${host_alias} ;;
3329 esac
3330
3331 case ${target_alias} in
3332 "") target_noncanonical=${host_noncanonical} ;;
3333 *) target_noncanonical=${target_alias} ;;
3334 esac
3335
3336
3337
3338
3339 # Used for constructing correct paths for offload compilers.
3340 real_target_noncanonical=${target_noncanonical}
3341 accel_dir_suffix=
3342
3343 # Determine the target- and build-specific subdirectories
3344
3345 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3346 # have matching libraries, they should use host libraries: Makefile.tpl
3347 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3348 # However, they still use the build modules, because the corresponding
3349 # host modules (e.g. bison) are only built for the host when bootstrap
3350 # finishes. So:
3351 # - build_subdir is where we find build modules, and never changes.
3352 # - build_libsubdir is where we find build libraries, and can be overridden.
3353
3354 # Prefix 'build-' so this never conflicts with target_subdir.
3355 build_subdir="build-${build_noncanonical}"
3356
3357 # Check whether --with-build-libsubdir was given.
3358 if test "${with_build_libsubdir+set}" = set; then :
3359 withval=$with_build_libsubdir; build_libsubdir="$withval"
3360 else
3361 build_libsubdir="$build_subdir"
3362 fi
3363
3364 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3365 if ( test $srcdir = . && test -d gcc ) \
3366 || test -d $srcdir/../host-${host_noncanonical}; then
3367 host_subdir="host-${host_noncanonical}"
3368 else
3369 host_subdir=.
3370 fi
3371 # No prefix.
3372 target_subdir=${target_noncanonical}
3373
3374
3375 # Set program_transform_name
3376 test "$program_prefix" != NONE &&
3377 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3378 # Use a double $ so make ignores it.
3379 test "$program_suffix" != NONE &&
3380 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3381 # Double any \ or $.
3382 # By default was `s,x,x', remove it if useless.
3383 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3384 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3385
3386
3387 # Check for bogus environment variables.
3388 # Test if LIBRARY_PATH contains the notation for the current directory
3389 # since this would lead to problems installing/building glibc.
3390 # LIBRARY_PATH contains the current directory if one of the following
3391 # is true:
3392 # - one of the terminals (":" and ";") is the first or last sign
3393 # - two terminals occur directly after each other
3394 # - the path contains an element with a dot in it
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3396 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3397 case ${LIBRARY_PATH} in
3398 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3399 library_path_setting="contains current directory"
3400 ;;
3401 *)
3402 library_path_setting="ok"
3403 ;;
3404 esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3406 $as_echo "$library_path_setting" >&6; }
3407 if test "$library_path_setting" != "ok"; then
3408 as_fn_error "
3409 *** LIBRARY_PATH shouldn't contain the current directory when
3410 *** building gcc. Please change the environment variable
3411 *** and run configure again." "$LINENO" 5
3412 fi
3413
3414 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # GCC_EXEC_PREFIX contains the current directory if one of the following
3417 # is true:
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3422 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3423 case ${GCC_EXEC_PREFIX} in
3424 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3425 gcc_exec_prefix_setting="contains current directory"
3426 ;;
3427 *)
3428 gcc_exec_prefix_setting="ok"
3429 ;;
3430 esac
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3432 $as_echo "$gcc_exec_prefix_setting" >&6; }
3433 if test "$gcc_exec_prefix_setting" != "ok"; then
3434 as_fn_error "
3435 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3438 fi
3439
3440 # -----------
3441 # Directories
3442 # -----------
3443
3444 # Specify the local prefix
3445 local_prefix=
3446
3447 # Check whether --with-local-prefix was given.
3448 if test "${with_local_prefix+set}" = set; then :
3449 withval=$with_local_prefix; case "${withval}" in
3450 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3451 no) ;;
3452 *) local_prefix=$with_local_prefix ;;
3453 esac
3454 fi
3455
3456
3457 # Default local prefix if it is empty
3458 if test x$local_prefix = x; then
3459 local_prefix=/usr/local
3460 fi
3461
3462
3463 # Check whether --with-native-system-header-dir was given.
3464 if test "${with_native_system_header_dir+set}" = set; then :
3465 withval=$with_native_system_header_dir;
3466 case ${with_native_system_header_dir} in
3467 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3468 /* | [A-Za-z]:[\\/]*) ;;
3469 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3470 esac
3471 configured_native_system_header_dir="${withval}"
3472
3473 else
3474 configured_native_system_header_dir=
3475 fi
3476
3477
3478
3479 # Check whether --with-build-sysroot was given.
3480 if test "${with_build_sysroot+set}" = set; then :
3481 withval=$with_build_sysroot; if test x"$withval" != x ; then
3482 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3483 fi
3484 else
3485 SYSROOT_CFLAGS_FOR_TARGET=
3486 fi
3487
3488
3489
3490 if test "x$prefix" = xNONE; then
3491 test_prefix=/usr/local
3492 else
3493 test_prefix=$prefix
3494 fi
3495 if test "x$exec_prefix" = xNONE; then
3496 test_exec_prefix=$test_prefix
3497 else
3498 test_exec_prefix=$exec_prefix
3499 fi
3500
3501
3502 # Check whether --with-sysroot was given.
3503 if test "${with_sysroot+set}" = set; then :
3504 withval=$with_sysroot;
3505 case ${with_sysroot} in
3506 /) ;;
3507 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3508 esac
3509 case ${with_sysroot} in
3510 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3511 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3512 esac
3513
3514 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3515 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3516
3517 case ${TARGET_SYSTEM_ROOT} in
3518 "${test_prefix}"|"${test_prefix}/"*|\
3519 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3520 '${prefix}'|'${prefix}/'*|\
3521 '${exec_prefix}'|'${exec_prefix}/'*)
3522 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3523 TARGET_SYSTEM_ROOT_DEFINE="$t"
3524 ;;
3525 esac
3526
3527 else
3528
3529 TARGET_SYSTEM_ROOT=
3530 TARGET_SYSTEM_ROOT_DEFINE=
3531 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3532
3533 fi
3534
3535
3536
3537
3538
3539 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3540 # passed in by the toplevel make and thus we'd get different behavior
3541 # depending on where we built the sources.
3542 gcc_gxx_include_dir=
3543 # Specify the g++ header file directory
3544
3545 # Check whether --with-gxx-include-dir was given.
3546 if test "${with_gxx_include_dir+set}" = set; then :
3547 withval=$with_gxx_include_dir; case "${withval}" in
3548 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3549 no) ;;
3550 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3551 esac
3552 fi
3553
3554
3555 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3556 if test x${gcc_gxx_include_dir} = x; then
3557 if test x${enable_version_specific_runtime_libs} = xyes; then
3558 gcc_gxx_include_dir='${libsubdir}/include/c++'
3559 else
3560 libstdcxx_incdir='include/c++/$(version)'
3561 if test x$host != x$target; then
3562 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3563 fi
3564 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3565 fi
3566 fi
3567
3568 gcc_gxx_include_dir_add_sysroot=0
3569 if test "${with_sysroot+set}" = set; then
3570 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3571 if test "${gcc_gxx_without_sysroot}"; then
3572 if test x${with_sysroot} != x/; then
3573 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3574 fi
3575 gcc_gxx_include_dir_add_sysroot=1
3576 fi
3577 fi
3578
3579
3580 # Check whether --with-cpp_install_dir was given.
3581 if test "${with_cpp_install_dir+set}" = set; then :
3582 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3583 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3584 elif test x$withval != xno; then
3585 cpp_install_dir=$withval
3586 fi
3587 fi
3588
3589
3590 # We would like to our source tree to be readonly. However when releases or
3591 # pre-releases are generated, the flex/bison generated files as well as the
3592 # various formats of manuals need to be included along with the rest of the
3593 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3594 # just that.
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3597 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3598 # Check whether --enable-generated-files-in-srcdir was given.
3599 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3600 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3601 else
3602 generated_files_in_srcdir=no
3603 fi
3604
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3607 $as_echo "$generated_files_in_srcdir" >&6; }
3608
3609 if test "$generated_files_in_srcdir" = "yes"; then
3610 GENINSRC=''
3611 else
3612 GENINSRC='#'
3613 fi
3614
3615
3616 # -------------------
3617 # Find default linker
3618 # -------------------
3619
3620 # With GNU ld
3621
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3625 else
3626 gnu_ld_flag=no
3627 fi
3628
3629
3630 # With pre-defined ld
3631
3632 # Check whether --with-ld was given.
3633 if test "${with_ld+set}" = set; then :
3634 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3635 fi
3636
3637 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3638 if test ! -x "$DEFAULT_LINKER"; then
3639 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3640 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3641 gnu_ld_flag=yes
3642 fi
3643
3644 cat >>confdefs.h <<_ACEOF
3645 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3646 _ACEOF
3647
3648 fi
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3651 $as_echo_n "checking whether a default linker was specified... " >&6; }
3652 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3653 if test x"$gnu_ld_flag" = x"no"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3658 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3659 fi
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665 # With demangler in GNU ld
3666
3667 # Check whether --with-demangler-in-ld was given.
3668 if test "${with_demangler_in_ld+set}" = set; then :
3669 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3670 else
3671 demangler_in_ld=yes
3672 fi
3673
3674
3675 # ----------------------
3676 # Find default assembler
3677 # ----------------------
3678
3679 # With GNU as
3680
3681 # Check whether --with-gnu-as was given.
3682 if test "${with_gnu_as+set}" = set; then :
3683 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3684 else
3685 gas_flag=no
3686 fi
3687
3688
3689
3690 # Check whether --with-as was given.
3691 if test "${with_as+set}" = set; then :
3692 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3693 fi
3694
3695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3696 if test ! -x "$DEFAULT_ASSEMBLER"; then
3697 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3698 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3699 gas_flag=yes
3700 fi
3701
3702 cat >>confdefs.h <<_ACEOF
3703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3704 _ACEOF
3705
3706 fi
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3709 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3710 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3711 if test x"$gas_flag" = x"no"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3716 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3717 fi
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723 # ---------------
3724 # Find C compiler
3725 # ---------------
3726
3727 # If a non-executable a.out is present (e.g. created by GNU as above even if
3728 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3729 # file, even when creating an executable, so an execution test fails.
3730 # Remove possible default executable files to avoid this.
3731 #
3732 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3733 # Autoconf includes it.
3734 rm -f a.out a.exe b.out
3735
3736 # Find the native compiler
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 fi
3781 if test -z "$ac_cv_prog_CC"; then
3782 ac_ct_CC=$CC
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 else
3831 CC="$ac_cv_prog_CC"
3832 fi
3833
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873 fi
3874 fi
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 ac_prog_rejected=no
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3896 continue
3897 fi
3898 ac_cv_prog_CC="cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3909 shift
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3914 shift
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3916 fi
3917 fi
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3934 do
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 test -n "$CC" && break
3973 done
3974 fi
3975 if test -z "$CC"; then
3976 ac_ct_CC=$CC
3977 for ac_prog in cl.exe
3978 do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 test -n "$ac_ct_CC" && break
4017 done
4018
4019 if test "x$ac_ct_CC" = x; then
4020 CC=""
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 CC=$ac_ct_CC
4029 fi
4030 fi
4031
4032 fi
4033
4034
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details." "$LINENO" 5; }
4039
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042 set X $ac_compile
4043 ac_compiler=$2
4044 for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053 ac_status=$?
4054 if test -s conftest.err; then
4055 sed '10a\
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4060 fi
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 done
4064
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067
4068 int
4069 main ()
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4078 # Try to create an executable without -o first, disregard a.out.
4079 # It will help us diagnose broken compilers, and finding out an intuition
4080 # of exeext.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082 $as_echo_n "checking for C compiler default output file name... " >&6; }
4083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4084
4085 # The possible output files:
4086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4087
4088 ac_rmfiles=
4089 for ac_file in $ac_files
4090 do
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4094 esac
4095 done
4096 rm -f $ac_rmfiles
4097
4098 if { { ac_try="$ac_link_default"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link_default") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4112 # so that the user can short-circuit this test for compilers unknown to
4113 # Autoconf.
4114 for ac_file in $ac_files ''
4115 do
4116 test -f "$ac_file" || continue
4117 case $ac_file in
4118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4119 ;;
4120 [ab].out )
4121 # We found the default executable, but exeext='' is most
4122 # certainly right.
4123 break;;
4124 *.* )
4125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4126 then :; else
4127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4128 fi
4129 # We set ac_cv_exeext here because the later test for it is not
4130 # safe: cross compilers may not add the suffix if given an `-o'
4131 # argument, so we may need to know it at that point already.
4132 # Even if this section looks crufty: it has the advantage of
4133 # actually working.
4134 break;;
4135 * )
4136 break;;
4137 esac
4138 done
4139 test "$ac_cv_exeext" = no && ac_cv_exeext=
4140
4141 else
4142 ac_file=''
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4145 $as_echo "$ac_file" >&6; }
4146 if test -z "$ac_file"; then :
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 { as_fn_set_status 77
4153 as_fn_error "C compiler cannot create executables
4154 See \`config.log' for more details." "$LINENO" 5; }; }
4155 fi
4156 ac_exeext=$ac_cv_exeext
4157
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4161 $as_echo_n "checking whether the C compiler works... " >&6; }
4162 # If not cross compiling, check that we can run a simple program.
4163 if test "$cross_compiling" != yes; then
4164 if { ac_try='./$ac_file'
4165 { { case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 $as_echo "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4175 cross_compiling=no
4176 else
4177 if test "$cross_compiling" = maybe; then
4178 cross_compiling=yes
4179 else
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot run C compiled programs.
4183 If you meant to cross compile, use \`--host'.
4184 See \`config.log' for more details." "$LINENO" 5; }
4185 fi
4186 fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190
4191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4192 ac_clean_files=$ac_clean_files_save
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4198 $as_echo "$cross_compiling" >&6; }
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201 $as_echo_n "checking for suffix of executables... " >&6; }
4202 if { { ac_try="$ac_link"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; then :
4213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4215 # work properly (i.e., refer to `conftest.exe'), while it won't with
4216 # `rm'.
4217 for ac_file in conftest.exe conftest conftest.*; do
4218 test -f "$ac_file" || continue
4219 case $ac_file in
4220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4222 break;;
4223 * ) break;;
4224 esac
4225 done
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error "cannot compute suffix of executables: cannot compile and link
4230 See \`config.log' for more details." "$LINENO" 5; }
4231 fi
4232 rm -f conftest$ac_cv_exeext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234 $as_echo "$ac_cv_exeext" >&6; }
4235
4236 rm -f conftest.$ac_ext
4237 EXEEXT=$ac_cv_exeext
4238 ac_exeext=$EXEEXT
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if test "${ac_cv_objext+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246
4247 int
4248 main ()
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try="$ac_compile"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4264 ac_status=$?
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272 break;;
4273 esac
4274 done
4275 else
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of object files: cannot compile
4282 See \`config.log' for more details." "$LINENO" 5; }
4283 fi
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4289 ac_objext=$OBJEXT
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main ()
4300 {
4301 #ifndef __GNUC__
4302 choke me
4303 #endif
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_compiler_gnu=yes
4311 else
4312 ac_compiler_gnu=no
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4321 GCC=yes
4322 else
4323 GCC=
4324 fi
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 ac_cv_prog_cc_g=no
4335 CFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_prog_cc_g=yes
4349 else
4350 CFLAGS=""
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 int
4355 main ()
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363
4364 else
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main ()
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
4396 CFLAGS="-g"
4397 fi
4398 else
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 ac_cv_prog_cc_c89=no
4411 ac_save_CC=$CC
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <stdarg.h>
4415 #include <stdio.h>
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4422 char **p;
4423 int i;
4424 {
4425 return p[i];
4426 }
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4428 {
4429 char *s;
4430 va_list v;
4431 va_start (v,p);
4432 s = g (p, va_arg (v,int));
4433 va_end (v);
4434 return s;
4435 }
4436
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4448 #define FOO(x) 'x'
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 int argc;
4456 char **argv;
4457 int
4458 main ()
4459 {
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467 do
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 done
4475 rm -f conftest.$ac_ext
4476 CC=$ac_save_CC
4477
4478 fi
4479 # AC_CACHE_VAL
4480 case "x$ac_cv_prog_cc_c89" in
4481 x)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4484 xno)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4487 *)
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 esac
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494 fi
4495
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502 ac_ext=cpp
4503 ac_cpp='$CXXCPP $CPPFLAGS'
4504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507 if test -z "$CXX"; then
4508 if test -n "$CCC"; then
4509 CXX=$CCC
4510 else
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4513 do
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_CXX+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537 IFS=$as_save_IFS
4538
4539 fi
4540 fi
4541 CXX=$ac_cv_prog_CXX
4542 if test -n "$CXX"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544 $as_echo "$CXX" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549
4550
4551 test -n "$CXX" && break
4552 done
4553 fi
4554 if test -z "$CXX"; then
4555 ac_ct_CXX=$CXX
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4557 do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586 if test -n "$ac_ct_CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588 $as_echo "$ac_ct_CXX" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 test -n "$ac_ct_CXX" && break
4596 done
4597
4598 if test "x$ac_ct_CXX" = x; then
4599 CXX="g++"
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607 CXX=$ac_ct_CXX
4608 fi
4609 fi
4610
4611 fi
4612 fi
4613 # Provide some information about the compiler.
4614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4615 set X $ac_compile
4616 ac_compiler=$2
4617 for ac_option in --version -v -V -qversion; do
4618 { { ac_try="$ac_compiler $ac_option >&5"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4626 ac_status=$?
4627 if test -s conftest.err; then
4628 sed '10a\
4629 ... rest of stderr output deleted ...
4630 10q' conftest.err >conftest.er1
4631 cat conftest.er1 >&5
4632 rm -f conftest.er1 conftest.err
4633 fi
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4636 done
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 int
4647 main ()
4648 {
4649 #ifndef __GNUC__
4650 choke me
4651 #endif
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_cxx_try_compile "$LINENO"; then :
4658 ac_compiler_gnu=yes
4659 else
4660 ac_compiler_gnu=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4669 GXX=yes
4670 else
4671 GXX=
4672 fi
4673 ac_test_CXXFLAGS=${CXXFLAGS+set}
4674 ac_save_CXXFLAGS=$CXXFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4681 ac_cxx_werror_flag=yes
4682 ac_cv_prog_cxx_g=no
4683 CXXFLAGS="-g"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 int
4688 main ()
4689 {
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696 ac_cv_prog_cxx_g=yes
4697 else
4698 CXXFLAGS=""
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main ()
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_cxx_try_compile "$LINENO"; then :
4711
4712 else
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714 CXXFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 int
4719 main ()
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_cxx_try_compile "$LINENO"; then :
4727 ac_cv_prog_cxx_g=yes
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4738 if test "$ac_test_CXXFLAGS" = set; then
4739 CXXFLAGS=$ac_save_CXXFLAGS
4740 elif test $ac_cv_prog_cxx_g = yes; then
4741 if test "$GXX" = yes; then
4742 CXXFLAGS="-g -O2"
4743 else
4744 CXXFLAGS="-g"
4745 fi
4746 else
4747 if test "$GXX" = yes; then
4748 CXXFLAGS="-O2"
4749 else
4750 CXXFLAGS=
4751 fi
4752 fi
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759
4760
4761
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 GNATBIND=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 fi
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839 if test "x$ac_ct_GNATBIND" = x; then
4840 GNATBIND="no"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 GNATBIND=$ac_ct_GNATBIND
4849 fi
4850 else
4851 GNATBIND="$ac_cv_prog_GNATBIND"
4852 fi
4853
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 GNATMAKE=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931 if test "x$ac_ct_GNATMAKE" = x; then
4932 GNATMAKE="no"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 GNATMAKE=$ac_ct_GNATMAKE
4941 fi
4942 else
4943 GNATMAKE="$ac_cv_prog_GNATMAKE"
4944 fi
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat >conftest.adb <<EOF
4952 procedure conftest is begin null; end conftest;
4953 EOF
4954 acx_cv_cc_gcc_supports_ada=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4964 if test x"$errors" = x && test -f conftest.$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada=yes
4966 fi
4967 rm -f conftest.*
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4971
4972 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4973 have_gnat=yes
4974 else
4975 have_gnat=no
4976 fi
4977
4978
4979 # Do configure tests with the C++ compiler, since that's what we build with.
4980 ac_ext=cpp
4981 ac_cpp='$CXXCPP $CPPFLAGS'
4982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4985
4986
4987 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4988 # optimizations to be activated explicitly by the toplevel.
4989 case "$CC" in
4990 */prev-gcc/xgcc*) ;;
4991 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4992 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4993 esac
4994
4995
4996
4997 # Determine PICFLAG for target gnatlib.
4998
4999
5000
5001
5002 case "${target}" in
5003 # PIC is the default on some targets or must not be used.
5004 *-*-darwin*)
5005 # For darwin, common symbols are not allowed in MH_DYLIB files
5006 case "${CFLAGS}" in
5007 # If we are using a compiler supporting mdynamic-no-pic
5008 # and the option has been tested as safe to add, then cancel
5009 # it here, since the code generated is incompatible with shared
5010 # libs.
5011 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5012 *) PICFLAG_FOR_TARGET=-fno-common ;;
5013 esac
5014 ;;
5015 alpha*-dec-osf5*)
5016 # PIC is the default.
5017 ;;
5018 hppa*64*-*-hpux*)
5019 # PIC is the default for 64-bit PA HP-UX.
5020 ;;
5021 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5022 ;;
5023 i[34567]86-*-mingw* | x86_64-*-mingw*)
5024 ;;
5025 i[34567]86-*-interix[3-9]*)
5026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5027 # Instead, we relocate shared libraries at runtime.
5028 ;;
5029 i[34567]86-*-nto-qnx*)
5030 # QNX uses GNU C++, but need to define -shared option too, otherwise
5031 # it will coredump.
5032 PICFLAG_FOR_TARGET='-fPIC -shared'
5033 ;;
5034 i[34567]86-pc-msdosdjgpp*)
5035 # DJGPP does not support shared libraries at all.
5036 ;;
5037 ia64*-*-hpux*)
5038 # On IA64 HP-UX, PIC is the default but the pic flag
5039 # sets the default TLS model and affects inlining.
5040 PICFLAG_FOR_TARGET=-fPIC
5041 ;;
5042 mips-sgi-irix6*)
5043 # PIC is the default.
5044 ;;
5045 rs6000-ibm-aix* | powerpc-ibm-aix*)
5046 # All AIX code is PIC.
5047 ;;
5048
5049 # Some targets support both -fPIC and -fpic, but prefer the latter.
5050 # FIXME: Why?
5051 i[34567]86-*-* | x86_64-*-*)
5052 PICFLAG_FOR_TARGET=-fpic
5053 ;;
5054 # FIXME: Override -fPIC default in libgcc only?
5055 sh-*-linux* | sh[2346lbe]*-*-linux*)
5056 PICFLAG_FOR_TARGET=-fpic
5057 ;;
5058 # FIXME: Simplify to sh*-*-netbsd*?
5059 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5060 sh64-*-netbsd* | sh64l*-*-netbsd*)
5061 PICFLAG_FOR_TARGET=-fpic
5062 ;;
5063 # Default to -fPIC unless specified otherwise.
5064 *)
5065 PICFLAG_FOR_TARGET=-fPIC
5066 ;;
5067 esac
5068
5069 # If the user explicitly uses -fpic/-fPIC, keep that.
5070 case "${CFLAGS_FOR_TARGET}" in
5071 *-fpic*)
5072 PICFLAG_FOR_TARGET=-fpic
5073 ;;
5074 *-fPIC*)
5075 PICFLAG_FOR_TARGET=-fPIC
5076 ;;
5077 esac
5078
5079
5080
5081 # -------------------------
5082 # Check C compiler features
5083 # -------------------------
5084
5085
5086 ac_ext=cpp
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5093 if test -z "$CXXCPP"; then
5094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 # Double quotes because CXXCPP needs to be expanded
5098 for CXXCPP in "$CXX -E" "/lib/cpp"
5099 do
5100 ac_preproc_ok=false
5101 for ac_cxx_preproc_warn_flag in '' yes
5102 do
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #ifdef __STDC__
5112 # include <limits.h>
5113 #else
5114 # include <assert.h>
5115 #endif
5116 Syntax error
5117 _ACEOF
5118 if ac_fn_cxx_try_cpp "$LINENO"; then :
5119
5120 else
5121 # Broken: fails on valid input.
5122 continue
5123 fi
5124 rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5131 _ACEOF
5132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 # Passes both tests.
5137 ac_preproc_ok=:
5138 break
5139 fi
5140 rm -f conftest.err conftest.$ac_ext
5141
5142 done
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.$ac_ext
5145 if $ac_preproc_ok; then :
5146 break
5147 fi
5148
5149 done
5150 ac_cv_prog_CXXCPP=$CXXCPP
5151
5152 fi
5153 CXXCPP=$ac_cv_prog_CXXCPP
5154 else
5155 ac_cv_prog_CXXCPP=$CXXCPP
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5158 $as_echo "$CXXCPP" >&6; }
5159 ac_preproc_ok=false
5160 for ac_cxx_preproc_warn_flag in '' yes
5161 do
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #ifdef __STDC__
5171 # include <limits.h>
5172 #else
5173 # include <assert.h>
5174 #endif
5175 Syntax error
5176 _ACEOF
5177 if ac_fn_cxx_try_cpp "$LINENO"; then :
5178
5179 else
5180 # Broken: fails on valid input.
5181 continue
5182 fi
5183 rm -f conftest.err conftest.$ac_ext
5184
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5190 _ACEOF
5191 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193 continue
5194 else
5195 # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5198 fi
5199 rm -f conftest.err conftest.$ac_ext
5200
5201 done
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.$ac_ext
5204 if $ac_preproc_ok; then :
5205
5206 else
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5210 See \`config.log' for more details." "$LINENO" 5; }
5211 fi
5212
5213 ac_ext=cpp
5214 ac_cpp='$CXXCPP $CPPFLAGS'
5215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5218
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if test "${ac_cv_path_GREP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in grep ggrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5242 *)
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5246 do
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP="$ac_path_GREP"
5257 ac_path_GREP_max=$ac_count
5258 fi
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5264
5265 $ac_path_GREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5272 fi
5273 else
5274 ac_cv_path_GREP=$GREP
5275 fi
5276
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP="$ac_cv_path_GREP"
5281
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if test "${ac_cv_path_EGREP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5289 then ac_cv_path_EGREP="$GREP -E"
5290 else
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_prog in egrep; do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5306 *GNU*)
5307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5308 *)
5309 ac_count=0
5310 $as_echo_n 0123456789 >"conftest.in"
5311 while :
5312 do
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5319 as_fn_arith $ac_count + 1 && ac_count=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP="$ac_path_EGREP"
5323 ac_path_EGREP_max=$ac_count
5324 fi
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5327 done
5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5329 esac
5330
5331 $ac_path_EGREP_found && break 3
5332 done
5333 done
5334 done
5335 IFS=$as_save_IFS
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5338 fi
5339 else
5340 ac_cv_path_EGREP=$EGREP
5341 fi
5342
5343 fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP="$ac_cv_path_EGREP"
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #include <stdlib.h>
5358 #include <stdarg.h>
5359 #include <string.h>
5360 #include <float.h>
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_cxx_try_compile "$LINENO"; then :
5371 ac_cv_header_stdc=yes
5372 else
5373 ac_cv_header_stdc=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <string.h>
5382
5383 _ACEOF
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev/null 2>&1; then :
5386
5387 else
5388 ac_cv_header_stdc=no
5389 fi
5390 rm -f conftest*
5391
5392 fi
5393
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5399
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then :
5403
5404 else
5405 ac_cv_header_stdc=no
5406 fi
5407 rm -f conftest*
5408
5409 fi
5410
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5414 :
5415 else
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5430
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 int
5433 main ()
5434 {
5435 int i;
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5439 return 2;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_cxx_try_run "$LINENO"; then :
5444
5445 else
5446 ac_cv_header_stdc=no
5447 fi
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5449 conftest.$ac_objext conftest.beam conftest.$ac_ext
5450 fi
5451
5452 fi
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5457
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459
5460 fi
5461
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5464 inttypes.h stdint.h unistd.h
5465 do :
5466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5468 "
5469 eval as_val=\$$as_ac_Header
5470 if test "x$as_val" = x""yes; then :
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5474
5475 fi
5476
5477 done
5478
5479
5480
5481 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5482 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5483 MINIX=yes
5484 else
5485 MINIX=
5486 fi
5487
5488
5489 if test "$MINIX" = yes; then
5490
5491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5492
5493
5494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5495
5496
5497 $as_echo "#define _MINIX 1" >>confdefs.h
5498
5499 fi
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_cxx_try_compile "$LINENO"; then :
5521 ac_cv_safe_to_define___extensions__=yes
5522 else
5523 ac_cv_safe_to_define___extensions__=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5529 test $ac_cv_safe_to_define___extensions__ = yes &&
5530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5531
5532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5533
5534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5535
5536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5537
5538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5539
5540
5541 ac_ext=c
5542 ac_cpp='$CPP $CPPFLAGS'
5543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5548 # On Suns, sometimes $CPP names a directory.
5549 if test -n "$CPP" && test -d "$CPP"; then
5550 CPP=
5551 fi
5552 if test -z "$CPP"; then
5553 if test "${ac_cv_prog_CPP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 # Double quotes because CPP needs to be expanded
5557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5558 do
5559 ac_preproc_ok=false
5560 for ac_c_preproc_warn_flag in '' yes
5561 do
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575 Syntax error
5576 _ACEOF
5577 if ac_fn_c_try_cpp "$LINENO"; then :
5578
5579 else
5580 # Broken: fails on valid input.
5581 continue
5582 fi
5583 rm -f conftest.err conftest.$ac_ext
5584
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"; then :
5592 # Broken: success on invalid input.
5593 continue
5594 else
5595 # Passes both tests.
5596 ac_preproc_ok=:
5597 break
5598 fi
5599 rm -f conftest.err conftest.$ac_ext
5600
5601 done
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then :
5605 break
5606 fi
5607
5608 done
5609 ac_cv_prog_CPP=$CPP
5610
5611 fi
5612 CPP=$ac_cv_prog_CPP
5613 else
5614 ac_cv_prog_CPP=$CPP
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 $as_echo "$CPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_c_preproc_warn_flag in '' yes
5620 do
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #ifdef __STDC__
5630 # include <limits.h>
5631 #else
5632 # include <assert.h>
5633 #endif
5634 Syntax error
5635 _ACEOF
5636 if ac_fn_c_try_cpp "$LINENO"; then :
5637
5638 else
5639 # Broken: fails on valid input.
5640 continue
5641 fi
5642 rm -f conftest.err conftest.$ac_ext
5643
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"; then :
5651 # Broken: success on invalid input.
5652 continue
5653 else
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5657 fi
5658 rm -f conftest.err conftest.$ac_ext
5659
5660 done
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.err conftest.$ac_ext
5663 if $ac_preproc_ok; then :
5664
5665 else
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5669 See \`config.log' for more details." "$LINENO" 5; }
5670 fi
5671
5672 ac_ext=cpp
5673 ac_cpp='$CXXCPP $CPPFLAGS'
5674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 ac_cv_c_inline=no
5684 for ac_kw in inline __inline__ __inline; do
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #ifndef __cplusplus
5688 typedef int foo_t;
5689 static $ac_kw foo_t static_foo () {return 0; }
5690 $ac_kw foo_t foo () {return 0; }
5691 #endif
5692
5693 _ACEOF
5694 if ac_fn_cxx_try_compile "$LINENO"; then :
5695 ac_cv_c_inline=$ac_kw
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 test "$ac_cv_c_inline" != no && break
5699 done
5700
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5703 $as_echo "$ac_cv_c_inline" >&6; }
5704
5705 case $ac_cv_c_inline in
5706 inline | yes) ;;
5707 *)
5708 case $ac_cv_c_inline in
5709 no) ac_val=;;
5710 *) ac_val=$ac_cv_c_inline;;
5711 esac
5712 cat >>confdefs.h <<_ACEOF
5713 #ifndef __cplusplus
5714 #define inline $ac_val
5715 #endif
5716 _ACEOF
5717 ;;
5718 esac
5719
5720
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval=$enable_largefile;
5724 fi
5725
5726 if test "$enable_largefile" != no; then
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 ac_cv_sys_largefile_CC=no
5734 if test "$GCC" != yes; then
5735 ac_save_CC=$CC
5736 while :; do
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5749 ? 1 : -1];
5750 int
5751 main ()
5752 {
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_cxx_try_compile "$LINENO"; then :
5759 break
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext
5762 CC="$CC -n32"
5763 if ac_fn_cxx_try_compile "$LINENO"; then :
5764 ac_cv_sys_largefile_CC=' -n32'; break
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext
5767 break
5768 done
5769 CC=$ac_save_CC
5770 rm -f conftest.$ac_ext
5771 fi
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no; then
5776 CC=$CC$ac_cv_sys_largefile_CC
5777 fi
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 while :; do
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_cxx_try_compile "$LINENO"; then :
5805 ac_cv_sys_file_offset_bits=no; break
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5819 ? 1 : -1];
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_cxx_try_compile "$LINENO"; then :
5829 ac_cv_sys_file_offset_bits=64; break
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_file_offset_bits=unknown
5833 break
5834 done
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5839 no | unknown) ;;
5840 *)
5841 cat >>confdefs.h <<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5843 _ACEOF
5844 ;;
5845 esac
5846 rm -rf conftest*
5847 if test $ac_cv_sys_file_offset_bits = unknown; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 while :; do
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5865 int
5866 main ()
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_cxx_try_compile "$LINENO"; then :
5874 ac_cv_sys_large_files=no; break
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5889 int
5890 main ()
5891 {
5892
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_cxx_try_compile "$LINENO"; then :
5898 ac_cv_sys_large_files=1; break
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 ac_cv_sys_large_files=unknown
5902 break
5903 done
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5908 no | unknown) ;;
5909 *)
5910 cat >>confdefs.h <<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5912 _ACEOF
5913 ;;
5914 esac
5915 rm -rf conftest*
5916 fi
5917 fi
5918
5919
5920 # sizeof(char) is 1 by definition.
5921 # The cast to long int works around a bug in the HP C Compiler
5922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5924 # This bug is HP SR number 8606223364.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5926 $as_echo_n "checking size of void *... " >&6; }
5927 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5931
5932 else
5933 if test "$ac_cv_type_void_p" = yes; then
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 { as_fn_set_status 77
5937 as_fn_error "cannot compute sizeof (void *)
5938 See \`config.log' for more details." "$LINENO" 5; }; }
5939 else
5940 ac_cv_sizeof_void_p=0
5941 fi
5942 fi
5943
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5946 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5947
5948
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5952 _ACEOF
5953
5954
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5960 $as_echo_n "checking size of short... " >&6; }
5961 if test "${ac_cv_sizeof_short+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5965
5966 else
5967 if test "$ac_cv_type_short" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status 77
5971 as_fn_error "cannot compute sizeof (short)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5973 else
5974 ac_cv_sizeof_short=0
5975 fi
5976 fi
5977
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5980 $as_echo "$ac_cv_sizeof_short" >&6; }
5981
5982
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_SHORT $ac_cv_sizeof_short
5986 _ACEOF
5987
5988
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5994 $as_echo_n "checking size of int... " >&6; }
5995 if test "${ac_cv_sizeof_int+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5999
6000 else
6001 if test "$ac_cv_type_int" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (int)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof_int=0
6009 fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014 $as_echo "$ac_cv_sizeof_int" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF_INT $ac_cv_sizeof_int
6020 _ACEOF
6021
6022
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028 $as_echo_n "checking size of long... " >&6; }
6029 if test "${ac_cv_sizeof_long+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6033
6034 else
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { as_fn_set_status 77
6039 as_fn_error "cannot compute sizeof (long)
6040 See \`config.log' for more details." "$LINENO" 5; }; }
6041 else
6042 ac_cv_sizeof_long=0
6043 fi
6044 fi
6045
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6048 $as_echo "$ac_cv_sizeof_long" >&6; }
6049
6050
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6054 _ACEOF
6055
6056
6057 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6058 if test "x$ac_cv_type_long_long" = x""yes; then :
6059
6060 cat >>confdefs.h <<_ACEOF
6061 #define HAVE_LONG_LONG 1
6062 _ACEOF
6063
6064 # The cast to long int works around a bug in the HP C Compiler
6065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6067 # This bug is HP SR number 8606223364.
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6069 $as_echo_n "checking size of long long... " >&6; }
6070 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6074
6075 else
6076 if test "$ac_cv_type_long_long" = yes; then
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 { as_fn_set_status 77
6080 as_fn_error "cannot compute sizeof (long long)
6081 See \`config.log' for more details." "$LINENO" 5; }; }
6082 else
6083 ac_cv_sizeof_long_long=0
6084 fi
6085 fi
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6090
6091
6092
6093 cat >>confdefs.h <<_ACEOF
6094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6095 _ACEOF
6096
6097
6098 fi
6099
6100 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6101 case $ac_cv_c_int8_t in #(
6102 no|yes) ;; #(
6103 *)
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define int8_t $ac_cv_c_int8_t
6107 _ACEOF
6108 ;;
6109 esac
6110
6111 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6112 case $ac_cv_c_int16_t in #(
6113 no|yes) ;; #(
6114 *)
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define int16_t $ac_cv_c_int16_t
6118 _ACEOF
6119 ;;
6120 esac
6121
6122 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6123 case $ac_cv_c_int32_t in #(
6124 no|yes) ;; #(
6125 *)
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define int32_t $ac_cv_c_int32_t
6129 _ACEOF
6130 ;;
6131 esac
6132
6133 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6134 case $ac_cv_c_int64_t in #(
6135 no|yes) ;; #(
6136 *)
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define int64_t $ac_cv_c_int64_t
6140 _ACEOF
6141 ;;
6142 esac
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6146 $as_echo_n "checking for long long int... " >&6; }
6147 if test "${ac_cv_type_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6163 ? 1 : -1)];
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6165 ? 1 : -1)];
6166 int i = 63;
6167 int
6168 main ()
6169 {
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6177 ;
6178 return 0;
6179 }
6180
6181 _ACEOF
6182 if ac_fn_cxx_try_link "$LINENO"; then :
6183 if test "$cross_compiling" = yes; then :
6184 ac_cv_type_long_long_int=yes
6185 else
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #include <limits.h>
6189 #ifndef LLONG_MAX
6190 # define HALF \
6191 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6192 # define LLONG_MAX (HALF - 1 + HALF)
6193 #endif
6194 int
6195 main ()
6196 {
6197 long long int n = 1;
6198 int i;
6199 for (i = 0; ; i++)
6200 {
6201 long long int m = n << i;
6202 if (m >> i != n)
6203 return 1;
6204 if (LLONG_MAX / 2 < m)
6205 break;
6206 }
6207 return 0;
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 if ac_fn_cxx_try_run "$LINENO"; then :
6213 ac_cv_type_long_long_int=yes
6214 else
6215 ac_cv_type_long_long_int=no
6216 fi
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6218 conftest.$ac_objext conftest.beam conftest.$ac_ext
6219 fi
6220
6221 else
6222 ac_cv_type_long_long_int=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6228 $as_echo "$ac_cv_type_long_long_int" >&6; }
6229 if test $ac_cv_type_long_long_int = yes; then
6230
6231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6232
6233 fi
6234
6235
6236
6237 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6239
6240 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6241
6242 else
6243 test $ac_cv_type_long_long_int = yes \
6244 && ac_type='long long int' \
6245 || ac_type='long int'
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define intmax_t $ac_type
6249 _ACEOF
6250
6251 fi
6252
6253
6254
6255 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6256 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6257
6258 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6259
6260 else
6261 for ac_type in 'int' 'long int' 'long long int'; do
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6265 int
6266 main ()
6267 {
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6269 test_array [0] = 0
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_cxx_try_compile "$LINENO"; then :
6276
6277 cat >>confdefs.h <<_ACEOF
6278 #define intptr_t $ac_type
6279 _ACEOF
6280
6281 ac_type=
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 test -z "$ac_type" && break
6285 done
6286 fi
6287
6288
6289 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6290 case $ac_cv_c_uint8_t in #(
6291 no|yes) ;; #(
6292 *)
6293
6294 $as_echo "#define _UINT8_T 1" >>confdefs.h
6295
6296
6297 cat >>confdefs.h <<_ACEOF
6298 #define uint8_t $ac_cv_c_uint8_t
6299 _ACEOF
6300 ;;
6301 esac
6302
6303 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6304 case $ac_cv_c_uint16_t in #(
6305 no|yes) ;; #(
6306 *)
6307
6308
6309 cat >>confdefs.h <<_ACEOF
6310 #define uint16_t $ac_cv_c_uint16_t
6311 _ACEOF
6312 ;;
6313 esac
6314
6315 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6316 case $ac_cv_c_uint32_t in #(
6317 no|yes) ;; #(
6318 *)
6319
6320 $as_echo "#define _UINT32_T 1" >>confdefs.h
6321
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define uint32_t $ac_cv_c_uint32_t
6325 _ACEOF
6326 ;;
6327 esac
6328
6329 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6330 case $ac_cv_c_uint64_t in #(
6331 no|yes) ;; #(
6332 *)
6333
6334 $as_echo "#define _UINT64_T 1" >>confdefs.h
6335
6336
6337 cat >>confdefs.h <<_ACEOF
6338 #define uint64_t $ac_cv_c_uint64_t
6339 _ACEOF
6340 ;;
6341 esac
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351
6352 /* For now, do not test the preprocessor; as of 2007 there are too many
6353 implementations with broken preprocessors. Perhaps this can
6354 be revisited in 2012. In the meantime, code should not expect
6355 #if to work with literals wider than 32 bits. */
6356 /* Test literals. */
6357 long long int ll = 9223372036854775807ll;
6358 long long int nll = -9223372036854775807LL;
6359 unsigned long long int ull = 18446744073709551615ULL;
6360 /* Test constant expressions. */
6361 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6362 ? 1 : -1)];
6363 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6364 ? 1 : -1)];
6365 int i = 63;
6366 int
6367 main ()
6368 {
6369 /* Test availability of runtime routines for shift and division. */
6370 long long int llmax = 9223372036854775807ll;
6371 unsigned long long int ullmax = 18446744073709551615ull;
6372 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6373 | (llmax / ll) | (llmax % ll)
6374 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6375 | (ullmax / ull) | (ullmax % ull));
6376 ;
6377 return 0;
6378 }
6379
6380 _ACEOF
6381 if ac_fn_cxx_try_link "$LINENO"; then :
6382 ac_cv_type_unsigned_long_long_int=yes
6383 else
6384 ac_cv_type_unsigned_long_long_int=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6390 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6391 if test $ac_cv_type_unsigned_long_long_int = yes; then
6392
6393 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6394
6395 fi
6396
6397
6398
6399 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6401
6402 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6403
6404 else
6405 test $ac_cv_type_unsigned_long_long_int = yes \
6406 && ac_type='unsigned long long int' \
6407 || ac_type='unsigned long int'
6408
6409 cat >>confdefs.h <<_ACEOF
6410 #define uintmax_t $ac_type
6411 _ACEOF
6412
6413 fi
6414
6415
6416
6417 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6419
6420 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6421
6422 else
6423 for ac_type in 'unsigned int' 'unsigned long int' \
6424 'unsigned long long int'; do
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 int
6429 main ()
6430 {
6431 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6432 test_array [0] = 0
6433
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 if ac_fn_cxx_try_compile "$LINENO"; then :
6439
6440 cat >>confdefs.h <<_ACEOF
6441 #define uintptr_t $ac_type
6442 _ACEOF
6443
6444 ac_type=
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 test -z "$ac_type" && break
6448 done
6449 fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6465 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6466 fi
6467
6468 # check what underlying integer type int64_t uses
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6470 $as_echo_n "checking for int64_t underlying type... " >&6; }
6471 if test "${ac_cv_int64_t_type+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 #ifdef HAVE_STDINT_H
6479 #include <stdint.h>
6480 #endif
6481 template <typename T> struct X { };
6482 template <>
6483 struct X<long> { typedef long t; };
6484
6485 int
6486 main ()
6487 {
6488 X<int64_t>::t x;
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_int64_t_type=long
6495 else
6496 ac_cv_int64_t_type="long long"
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6501 $as_echo "$ac_cv_int64_t_type" >&6; }
6502 if test "$ac_cv_int64_t_type" = "long"; then
6503
6504 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6505
6506 else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509
6510 #ifdef HAVE_STDINT_H
6511 #include <stdint.h>
6512 #endif
6513 template <typename T> struct X { };
6514 template <>
6515 struct X<long long> { typedef long long t; };
6516
6517 int
6518 main ()
6519 {
6520 X<int64_t>::t x;
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526
6527 else
6528 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532
6533 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6534 # If the host compiler is affected by the bug, and we build with optimization
6535 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6536 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6537 # Since there is no reliable feature check for the presence of this bug,
6538 # we simply use a GCC version number check. (This should never trigger for
6539 # stages 2 or 3 of a native bootstrap.)
6540 aliasing_flags=
6541 if test "$GCC" = yes; then
6542 saved_CXXFLAGS="$CXXFLAGS"
6543
6544 # The following test compilation will succeed if and only if $CXX accepts
6545 # -fno-strict-aliasing *and* is older than GCC 4.3.
6546 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6548 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6553 #error compiler not affected by placement new aliasing bug
6554 #endif
6555
6556 _ACEOF
6557 if ac_fn_cxx_try_compile "$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565
6566 CXXFLAGS="$saved_CXXFLAGS"
6567 fi
6568
6569
6570
6571
6572 # ---------------------
6573 # Warnings and checking
6574 # ---------------------
6575
6576 # Check $CC warning features (if it's GCC).
6577 # We want to use -pedantic, but we don't want warnings about
6578 # * 'long long'
6579 # * variadic macros
6580 # * overlong strings
6581 # * C++11 narrowing conversions in { }
6582 # So, we only use -pedantic if we can disable those warnings.
6583
6584 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6585 # Check whether --enable-build-format-warnings was given.
6586 if test "${enable_build_format_warnings+set}" = set; then :
6587 enableval=$enable_build_format_warnings;
6588 else
6589 enable_build_format_warnings=yes
6590 fi
6591
6592 if test $enable_build_format_warnings = no; then :
6593 wf_opt=-Wno-format
6594 else
6595 wf_opt=
6596 fi
6597 ac_ext=cpp
6598 ac_cpp='$CXXCPP $CPPFLAGS'
6599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6602
6603 loose_warn=
6604 save_CXXFLAGS="$CXXFLAGS"
6605 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6606 # Do the check with the no- prefix removed since gcc silently
6607 # accepts any -Wno-* option on purpose
6608 case $real_option in
6609 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6610 *) option=$real_option ;;
6611 esac
6612 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6615 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6616 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 CXXFLAGS="$option"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622
6623 int
6624 main ()
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_cxx_try_compile "$LINENO"; then :
6632 eval "$as_acx_Woption=yes"
6633 else
6634 eval "$as_acx_Woption=no"
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637
6638 fi
6639 eval ac_res=\$$as_acx_Woption
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6643 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6644 fi
6645 done
6646 CXXFLAGS="$save_CXXFLAGS"
6647 ac_ext=cpp
6648 ac_cpp='$CXXCPP $CPPFLAGS'
6649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6652
6653
6654
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661 c_loose_warn=
6662 save_CFLAGS="$CFLAGS"
6663 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option=$real_option ;;
6669 esac
6670 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6673 $as_echo_n "checking whether $CC supports $option... " >&6; }
6674 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 CFLAGS="$option"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680
6681 int
6682 main ()
6683 {
6684
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6691 else
6692 eval "$as_acx_Woption=no"
6693 fi
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695
6696 fi
6697 eval ac_res=\$$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6702 fi
6703 done
6704 CFLAGS="$save_CFLAGS"
6705 ac_ext=cpp
6706 ac_cpp='$CXXCPP $CPPFLAGS'
6707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710
6711
6712 ac_ext=cpp
6713 ac_cpp='$CXXCPP $CPPFLAGS'
6714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6717
6718 strict_warn=
6719 save_CXXFLAGS="$CXXFLAGS"
6720 for real_option in -Wmissing-format-attribute; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option=$real_option ;;
6726 esac
6727 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6730 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6731 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 CXXFLAGS="$option"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737
6738 int
6739 main ()
6740 {
6741
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_cxx_try_compile "$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6748 else
6749 eval "$as_acx_Woption=no"
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752
6753 fi
6754 eval ac_res=\$$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6759 fi
6760 done
6761 CXXFLAGS="$save_CXXFLAGS"
6762 ac_ext=cpp
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6767
6768
6769 ac_ext=cpp
6770 ac_cpp='$CXXCPP $CPPFLAGS'
6771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6774
6775 save_CXXFLAGS="$CXXFLAGS"
6776 for real_option in -Woverloaded-virtual; do
6777 # Do the check with the no- prefix removed since gcc silently
6778 # accepts any -Wno-* option on purpose
6779 case $real_option in
6780 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6781 *) option=$real_option ;;
6782 esac
6783 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6784
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6786 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6787 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 CXXFLAGS="$option"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793
6794 int
6795 main ()
6796 {
6797
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_cxx_try_compile "$LINENO"; then :
6803 eval "$as_acx_Woption=yes"
6804 else
6805 eval "$as_acx_Woption=no"
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808
6809 fi
6810 eval ac_res=\$$as_acx_Woption
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6814 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6815 fi
6816 done
6817 CXXFLAGS="$save_CXXFLAGS"
6818 ac_ext=cpp
6819 ac_cpp='$CXXCPP $CPPFLAGS'
6820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6823
6824
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831 c_strict_warn=
6832 save_CFLAGS="$CFLAGS"
6833 for real_option in -Wold-style-definition -Wc++-compat; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option=$real_option ;;
6839 esac
6840 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 CFLAGS="$option"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6861 else
6862 eval "$as_acx_Woption=no"
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865
6866 fi
6867 eval ac_res=\$$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6872 fi
6873 done
6874 CFLAGS="$save_CFLAGS"
6875 ac_ext=cpp
6876 ac_cpp='$CXXCPP $CPPFLAGS'
6877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880
6881
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888 # Do the check with the no- prefix removed from the warning options
6889 # since gcc silently accepts any -Wno-* option on purpose
6890 if test "$GXX" = yes; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6892 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6893 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 save_CXXFLAGS="$CXXFLAGS"
6897 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900
6901 int
6902 main ()
6903 {
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_cxx_try_compile "$LINENO"; then :
6910 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6911 else
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 CXXFLAGS="$save_CXXFLAGS"
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6918 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6919 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6920 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6921 fi
6922
6923 fi
6924 ac_ext=cpp
6925 ac_cpp='$CXXCPP $CPPFLAGS'
6926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929
6930
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936
6937 # Check whether --enable-werror-always was given.
6938 if test "${enable_werror_always+set}" = set; then :
6939 enableval=$enable_werror_always;
6940 else
6941 enable_werror_always=no
6942 fi
6943
6944 if test $enable_werror_always = yes; then :
6945 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6946 fi
6947
6948 ac_ext=cpp
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953
6954
6955
6956 # The above macros do nothing if the compiler is not GCC. However, the
6957 # Makefile has more goo to add other flags, so these variables are used
6958 # to enable warnings only for GCC.
6959 warn_cflags=
6960 warn_cxxflags=
6961 if test "x$GCC" = "xyes"; then
6962 warn_cflags='$(GCC_WARN_CFLAGS)'
6963 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6964 fi
6965
6966
6967
6968 # Disable exceptions and RTTI if building with g++
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974
6975 noexception_flags=
6976 save_CFLAGS="$CFLAGS"
6977 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6978 # Do the check with the no- prefix removed since gcc silently
6979 # accepts any -Wno-* option on purpose
6980 case $real_option in
6981 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6982 *) option=$real_option ;;
6983 esac
6984 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6987 $as_echo_n "checking whether $CC supports $option... " >&6; }
6988 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 CFLAGS="$option"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994
6995 int
6996 main ()
6997 {
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 eval "$as_acx_Woption=yes"
7005 else
7006 eval "$as_acx_Woption=no"
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009
7010 fi
7011 eval ac_res=\$$as_acx_Woption
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7013 $as_echo "$ac_res" >&6; }
7014 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7015 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7016 fi
7017 done
7018 CFLAGS="$save_CFLAGS"
7019 ac_ext=cpp
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024
7025
7026
7027 # Enable expensive internal checks
7028 is_release=
7029 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7030 is_release=yes
7031 fi
7032
7033 # Check whether --enable-checking was given.
7034 if test "${enable_checking+set}" = set; then :
7035 enableval=$enable_checking; ac_checking_flags="${enableval}"
7036 else
7037
7038 # Determine the default checks.
7039 if test x$is_release = x ; then
7040 ac_checking_flags=yes
7041 else
7042 ac_checking_flags=release
7043 fi
7044 fi
7045
7046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7047 for check in release $ac_checking_flags
7048 do
7049 case $check in
7050 # these set all the flags to specific states
7051 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7052 ac_fold_checking= ; ac_gc_checking=1 ;
7053 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7054 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7055 ac_tree_checking=1 ; ac_valgrind_checking= ;
7056 ac_types_checking=1 ;;
7057 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7058 ac_fold_checking= ; ac_gc_checking= ;
7059 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7060 ac_rtlflag_checking= ; ac_runtime_checking= ;
7061 ac_tree_checking= ; ac_valgrind_checking= ;
7062 ac_types_checking= ;;
7063 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7064 ac_fold_checking=1 ; ac_gc_checking=1 ;
7065 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7066 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7067 ac_tree_checking=1 ; ac_valgrind_checking= ;
7068 ac_types_checking=1 ;;
7069 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7070 ac_fold_checking= ; ac_gc_checking= ;
7071 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7072 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7073 ac_tree_checking= ; ac_valgrind_checking= ;
7074 ac_types_checking= ;;
7075 # these enable particular checks
7076 assert) ac_assert_checking=1 ;;
7077 df) ac_df_checking=1 ;;
7078 fold) ac_fold_checking=1 ;;
7079 gc) ac_gc_checking=1 ;;
7080 gcac) ac_gc_always_collect=1 ;;
7081 gimple) ac_gimple_checking=1 ;;
7082 misc) ac_checking=1 ;;
7083 rtl) ac_rtl_checking=1 ;;
7084 rtlflag) ac_rtlflag_checking=1 ;;
7085 runtime) ac_runtime_checking=1 ;;
7086 tree) ac_tree_checking=1 ;;
7087 types) ac_types_checking=1 ;;
7088 valgrind) ac_valgrind_checking=1 ;;
7089 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7090 esac
7091 done
7092 IFS="$ac_save_IFS"
7093
7094 nocommon_flag=""
7095 if test x$ac_checking != x ; then
7096
7097 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7098
7099 nocommon_flag=-fno-common
7100 fi
7101
7102 if test x$ac_df_checking != x ; then
7103
7104 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7105
7106 fi
7107 if test x$ac_assert_checking != x ; then
7108
7109 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7110
7111 fi
7112 if test x$ac_gimple_checking != x ; then
7113
7114 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7115
7116 fi
7117
7118 if test x$ac_runtime_checking != x ; then
7119
7120 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7121
7122 fi
7123 if test x$ac_tree_checking != x ; then
7124
7125 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7126
7127 TREECHECKING=yes
7128 fi
7129 if test x$ac_types_checking != x ; then
7130
7131 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7132
7133 fi
7134
7135 if test x$ac_rtl_checking != x ; then
7136
7137 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7138
7139 fi
7140 if test x$ac_rtlflag_checking != x ; then
7141
7142 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7143
7144 fi
7145 if test x$ac_gc_checking != x ; then
7146
7147 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7148
7149 fi
7150 if test x$ac_gc_always_collect != x ; then
7151
7152 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7153
7154 fi
7155 if test x$ac_fold_checking != x ; then
7156
7157 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7158
7159 fi
7160 valgrind_path_defines=
7161 valgrind_command=
7162
7163 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7165 have_valgrind_h=yes
7166 else
7167 have_valgrind_h=no
7168 fi
7169
7170
7171
7172 # It is certainly possible that there's valgrind but no valgrind.h.
7173 # GCC relies on making annotations so we must have both.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7175 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <valgrind/memcheck.h>
7179 #ifndef VALGRIND_DISCARD
7180 #error VALGRIND_DISCARD not defined
7181 #endif
7182 _ACEOF
7183 if ac_fn_cxx_try_cpp "$LINENO"; then :
7184 gcc_cv_header_valgrind_memcheck_h=yes
7185 else
7186 gcc_cv_header_valgrind_memcheck_h=no
7187 fi
7188 rm -f conftest.err conftest.$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7190 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7198 #endif
7199 _ACEOF
7200 if ac_fn_cxx_try_cpp "$LINENO"; then :
7201 gcc_cv_header_memcheck_h=yes
7202 else
7203 gcc_cv_header_memcheck_h=no
7204 fi
7205 rm -f conftest.err conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7208 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7209
7210 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7211
7212 fi
7213 if test $gcc_cv_header_memcheck_h = yes; then
7214
7215 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7216
7217 fi
7218
7219 if test x$ac_valgrind_checking != x ; then
7220
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 echo "#! /bin/sh" >conf$$.sh
7225 echo "exit 0" >>conf$$.sh
7226 chmod +x conf$$.sh
7227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7228 PATH_SEPARATOR=';'
7229 else
7230 PATH_SEPARATOR=:
7231 fi
7232 rm -f conf$$.sh
7233 fi
7234
7235 # Find out how to test for executable files. Don't use a zero-byte file,
7236 # as systems may use methods other than mode bits to determine executability.
7237 cat >conf$$.file <<_ASEOF
7238 #! /bin/sh
7239 exit 0
7240 _ASEOF
7241 chmod +x conf$$.file
7242 if test -x conf$$.file >/dev/null 2>&1; then
7243 ac_executable_p="test -x"
7244 else
7245 ac_executable_p="test -f"
7246 fi
7247 rm -f conf$$.file
7248
7249 # Extract the first word of "valgrind", so it can be a program name with args.
7250 set dummy valgrind; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 case "$valgrind_path" in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7259 ;;
7260 *)
7261 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7262 for ac_dir in $PATH; do
7263 IFS="$ac_save_IFS"
7264 test -z "$ac_dir" && ac_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7267 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7268 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7269 break 2
7270 fi
7271 fi
7272 done
7273 done
7274 IFS="$ac_save_IFS"
7275 ;;
7276 esac
7277 fi
7278 valgrind_path="$ac_cv_path_valgrind_path"
7279 if test -n "$valgrind_path"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7281 $as_echo "$valgrind_path" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287 if test "x$valgrind_path" = "x" \
7288 || (test $have_valgrind_h = no \
7289 && test $gcc_cv_header_memcheck_h = no \
7290 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7291 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7292 fi
7293 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7294 valgrind_command="$valgrind_path -q"
7295
7296 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7297
7298 fi
7299
7300
7301
7302 # Enable code coverage collection
7303 # Check whether --enable-coverage was given.
7304 if test "${enable_coverage+set}" = set; then :
7305 enableval=$enable_coverage; case "${enableval}" in
7306 yes|noopt)
7307 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7308 ;;
7309 opt)
7310 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7311 ;;
7312 no)
7313 # a.k.a. --disable-coverage
7314 coverage_flags=""
7315 ;;
7316 *)
7317 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7318 ;;
7319 esac
7320 else
7321 coverage_flags=""
7322 fi
7323
7324
7325
7326 # Check whether --enable-gather-detailed-mem-stats was given.
7327 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7328 enableval=$enable_gather_detailed_mem_stats;
7329 else
7330 enable_gather_detailed_mem_stats=no
7331 fi
7332
7333 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7334
7335 cat >>confdefs.h <<_ACEOF
7336 #define GATHER_STATISTICS $gather_stats
7337 _ACEOF
7338
7339
7340 # Check whether --enable-valgrind-annotations was given.
7341 if test "${enable_valgrind_annotations+set}" = set; then :
7342 enableval=$enable_valgrind_annotations;
7343 else
7344 enable_valgrind_annotations=no
7345 fi
7346
7347 if test x$enable_valgrind_annotations != xno \
7348 || test x$ac_valgrind_checking != x; then
7349 if (test $have_valgrind_h = no \
7350 && test $gcc_cv_header_memcheck_h = no \
7351 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7352 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7353 fi
7354
7355 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7356
7357 fi
7358
7359 # -------------------------------
7360 # Miscenalleous configure options
7361 # -------------------------------
7362
7363 # With stabs
7364
7365 # Check whether --with-stabs was given.
7366 if test "${with_stabs+set}" = set; then :
7367 withval=$with_stabs; stabs="$with_stabs"
7368 else
7369 stabs=no
7370 fi
7371
7372
7373 # Determine whether or not multilibs are enabled.
7374 # Check whether --enable-multilib was given.
7375 if test "${enable_multilib+set}" = set; then :
7376 enableval=$enable_multilib;
7377 else
7378 enable_multilib=yes
7379 fi
7380
7381
7382
7383 # Determine whether or not multiarch is enabled.
7384 # Check whether --enable-multiarch was given.
7385 if test "${enable_multiarch+set}" = set; then :
7386 enableval=$enable_multiarch; case "${enableval}" in
7387 yes|no|auto) enable_multiarch=$enableval;;
7388 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7389 esac
7390 else
7391 enable_multiarch=auto
7392 fi
7393
7394 if test x${enable_multiarch} = xauto; then
7395 if test x${with_native_system_header_dir} != x; then
7396 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7397 enable_multiarch=no
7398 fi
7399 if test x$host != x$target && test "x$with_sysroot" = x; then
7400 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7401 enable_multiarch=no
7402 fi
7403 fi
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7405 $as_echo_n "checking for multiarch configuration... " >&6; }
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7408 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7409
7410 # needed for setting the multiarch name for soft-float/hard-float ABIs
7411
7412
7413
7414 # Enable __cxa_atexit for C++.
7415 # Check whether --enable-__cxa_atexit was given.
7416 if test "${enable___cxa_atexit+set}" = set; then :
7417 enableval=$enable___cxa_atexit;
7418 fi
7419
7420
7421 # Enable C extension for decimal float if target supports it.
7422
7423 # Check whether --enable-decimal-float was given.
7424 if test "${enable_decimal_float+set}" = set; then :
7425 enableval=$enable_decimal_float;
7426 case $enable_decimal_float in
7427 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7428 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7429 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7430 esac
7431
7432 else
7433
7434 case $target in
7435 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7436 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7437 i?86*-*-mingw* | x86_64*-*-mingw* | \
7438 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7439 enable_decimal_float=yes
7440 ;;
7441 *)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7443 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7444 enable_decimal_float=no
7445 ;;
7446 esac
7447
7448 fi
7449
7450
7451 # x86's use BID format instead of DPD
7452 case x$enable_decimal_float in
7453 xyes)
7454 case $target in
7455 i?86*-*-* | x86_64*-*-*)
7456 enable_decimal_float=bid
7457 ;;
7458 *)
7459 enable_decimal_float=dpd
7460 ;;
7461 esac
7462 default_decimal_float=$enable_decimal_float
7463 ;;
7464 xno)
7465 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7466 # dependency on libdecnumber.
7467 default_decimal_float=dpd
7468 ;;
7469 esac
7470
7471
7472
7473
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7478 _ACEOF
7479
7480
7481 # Use default_decimal_float for dependency.
7482 enable_decimal_float=$default_decimal_float
7483
7484 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define ENABLE_DECIMAL_BID_FORMAT $bid
7488 _ACEOF
7489
7490
7491 # Enable C extension for fixed-point arithmetic.
7492 # Check whether --enable-fixed-point was given.
7493 if test "${enable_fixed_point+set}" = set; then :
7494 enableval=$enable_fixed_point;
7495 else
7496
7497 case $target in
7498 arm*)
7499 enable_fixed_point=yes
7500 ;;
7501
7502 mips*-*-*)
7503 enable_fixed_point=yes
7504 ;;
7505 *)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7508 enable_fixed_point=no
7509 ;;
7510 esac
7511
7512 fi
7513
7514
7515
7516 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7517
7518 cat >>confdefs.h <<_ACEOF
7519 #define ENABLE_FIXED_POINT $fixedpoint
7520 _ACEOF
7521
7522
7523 # Enable threads
7524 # Pass with no value to take the default
7525 # Pass with a value to specify a thread package
7526 # Check whether --enable-threads was given.
7527 if test "${enable_threads+set}" = set; then :
7528 enableval=$enable_threads;
7529 else
7530 enable_threads=''
7531 fi
7532
7533
7534 # Check whether --enable-tls was given.
7535 if test "${enable_tls+set}" = set; then :
7536 enableval=$enable_tls;
7537 case $enable_tls in
7538 yes | no) ;;
7539 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7540 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7541 esac
7542
7543 else
7544 enable_tls=''
7545 fi
7546
7547
7548 # Check whether --enable-objc-gc was given.
7549 if test "${enable_objc_gc+set}" = set; then :
7550 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7551 objc_boehm_gc=''
7552 else
7553 objc_boehm_gc=1
7554 fi
7555 else
7556 objc_boehm_gc=''
7557 fi
7558
7559
7560
7561 # Check whether --with-dwarf2 was given.
7562 if test "${with_dwarf2+set}" = set; then :
7563 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7564 else
7565 dwarf2=no
7566 fi
7567
7568
7569 # Check whether --enable-shared was given.
7570 if test "${enable_shared+set}" = set; then :
7571 enableval=$enable_shared;
7572 case $enable_shared in
7573 yes | no) ;;
7574 *)
7575 enable_shared=no
7576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7577 for pkg in $enableval; do
7578 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7579 enable_shared=yes
7580 fi
7581 done
7582 IFS="$ac_save_ifs"
7583 ;;
7584 esac
7585
7586 else
7587 enable_shared=yes
7588 fi
7589
7590
7591
7592
7593 # Check whether --with-specs was given.
7594 if test "${with_specs+set}" = set; then :
7595 withval=$with_specs; CONFIGURE_SPECS=$withval
7596 else
7597 CONFIGURE_SPECS=
7598
7599 fi
7600
7601
7602
7603
7604
7605 # Check whether --with-pkgversion was given.
7606 if test "${with_pkgversion+set}" = set; then :
7607 withval=$with_pkgversion; case "$withval" in
7608 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7609 no) PKGVERSION= ;;
7610 *) PKGVERSION="($withval) " ;;
7611 esac
7612 else
7613 PKGVERSION="(GCC) "
7614
7615 fi
7616
7617
7618
7619
7620
7621 # Check whether --with-bugurl was given.
7622 if test "${with_bugurl+set}" = set; then :
7623 withval=$with_bugurl; case "$withval" in
7624 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7625 no) BUGURL=
7626 ;;
7627 *) BUGURL="$withval"
7628 ;;
7629 esac
7630 else
7631 BUGURL="http://gcc.gnu.org/bugs.html"
7632
7633 fi
7634
7635 case ${BUGURL} in
7636 "")
7637 REPORT_BUGS_TO=
7638 REPORT_BUGS_TEXI=
7639 ;;
7640 *)
7641 REPORT_BUGS_TO="<$BUGURL>"
7642 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7643 ;;
7644 esac;
7645
7646
7647
7648
7649 # Sanity check enable_languages in case someone does not run the toplevel
7650 # configure # script.
7651 # Check whether --enable-languages was given.
7652 if test "${enable_languages+set}" = set; then :
7653 enableval=$enable_languages; case ,${enable_languages}, in
7654 ,,|,yes,)
7655 # go safe -- we cannot be much sure without the toplevel
7656 # configure's
7657 # analysis of which target libs are present and usable
7658 enable_languages=c
7659 ;;
7660 *,all,*)
7661 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7662 ;;
7663 *,c,*)
7664 ;;
7665 *)
7666 enable_languages=c,${enable_languages}
7667 ;;
7668 esac
7669 else
7670 enable_languages=c
7671 fi
7672
7673
7674 if test x"$enable_as_accelerator_for" != x; then
7675
7676 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7677
7678 enable_as_accelerator=yes
7679 case "${target}" in
7680 *-intelmicemul-*)
7681 # In this case we expect offload compiler to be built as native, so we
7682 # need to rename the driver to avoid clashes with host's drivers.
7683 program_transform_name="s&^&${target}-&" ;;
7684 esac
7685 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7686 program_transform_name=`echo $program_transform_name | sed $sedscript`
7687 accel_dir_suffix=/accel/${target_noncanonical}
7688 real_target_noncanonical=${enable_as_accelerator_for}
7689 fi
7690
7691
7692
7693
7694 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7695 tgt=`echo $tgt | sed 's/=.*//'`
7696 if test x"$offload_targets" = x; then
7697 offload_targets=$tgt
7698 else
7699 offload_targets="$offload_targets:$tgt"
7700 fi
7701 done
7702
7703 cat >>confdefs.h <<_ACEOF
7704 #define OFFLOAD_TARGETS "$offload_targets"
7705 _ACEOF
7706
7707 if test x"$offload_targets" != x; then
7708
7709 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7710
7711 fi
7712
7713
7714 # Check whether --with-multilib-list was given.
7715 if test "${with_multilib_list+set}" = set; then :
7716 withval=$with_multilib_list; :
7717 else
7718 with_multilib_list=default
7719 fi
7720
7721
7722 # -------------------------
7723 # Checks for other programs
7724 # -------------------------
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7728 set x ${MAKE-make}
7729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat >conftest.make <<\_ACEOF
7734 SHELL = /bin/sh
7735 all:
7736 @echo '@@@%%%=$(MAKE)=@@@%%%'
7737 _ACEOF
7738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7740 *@@@%%%=?*=@@@%%%*)
7741 eval ac_cv_prog_make_${ac_make}_set=yes;;
7742 *)
7743 eval ac_cv_prog_make_${ac_make}_set=no;;
7744 esac
7745 rm -f conftest.make
7746 fi
7747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7750 SET_MAKE=
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 SET_MAKE="MAKE=${MAKE-make}"
7755 fi
7756
7757
7758 # Find some useful tools
7759 for ac_prog in gawk mawk nawk awk
7760 do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_AWK+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$AWK"; then
7769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_AWK="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 AWK=$ac_cv_prog_AWK
7789 if test -n "$AWK"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7791 $as_echo "$AWK" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 test -n "$AWK" && break
7799 done
7800
7801 # We need awk to create options.c and options.h.
7802 # Bail out if it's missing.
7803 case ${AWK} in
7804 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7805 esac
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7808 $as_echo_n "checking whether ln -s works... " >&6; }
7809 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7815 then
7816 gcc_cv_prog_LN_S="ln -s"
7817 else
7818 if ln conftestdata_f conftestdata_t 2>/dev/null
7819 then
7820 gcc_cv_prog_LN_S=ln
7821 else
7822 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7823 then
7824 gcc_cv_prog_LN_S="cp -p"
7825 else
7826 gcc_cv_prog_LN_S=cp
7827 fi
7828 fi
7829 fi
7830 rm -f conftestdata_f conftestdata_t
7831
7832 fi
7833 LN_S="$gcc_cv_prog_LN_S"
7834 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7837 else
7838 if test "$gcc_cv_prog_LN_S" = "ln"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7840 $as_echo "no, using ln" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7843 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7844 fi
7845 fi
7846
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7848 $as_echo_n "checking whether ln works... " >&6; }
7849 if test "${acx_cv_prog_LN+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln conftestdata_f conftestdata_t 2>/dev/null
7855 then
7856 acx_cv_prog_LN=ln
7857 else
7858 acx_cv_prog_LN=no
7859 fi
7860 rm -f conftestdata_f conftestdata_t
7861
7862 fi
7863 if test $acx_cv_prog_LN = no; then
7864 LN="$LN_S"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7866 $as_echo "no, using $LN" >&6; }
7867 else
7868 LN="$acx_cv_prog_LN"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7871 fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 RANLIB=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7904 $as_echo "$RANLIB" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB="ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7944 $as_echo "$ac_ct_RANLIB" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_RANLIB" = x; then
7951 RANLIB=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 RANLIB=$ac_ct_RANLIB
7960 fi
7961 else
7962 RANLIB="$ac_cv_prog_RANLIB"
7963 fi
7964
7965 ranlib_flags=""
7966
7967
7968 # Find a good install program. We prefer a C program (faster),
7969 # so one script is as good as another. But avoid the broken or
7970 # incompatible versions:
7971 # SysV /etc/install, /usr/sbin/install
7972 # SunOS /usr/etc/install
7973 # IRIX /sbin/install
7974 # AIX /bin/install
7975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7977 # ./install, which can be erroneously created by make from ./install.sh.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7979 $as_echo_n "checking for a BSD compatible install... " >&6; }
7980 if test -z "$INSTALL"; then
7981 if test "${ac_cv_path_install+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7985 for ac_dir in $PATH; do
7986 # Account for people who put trailing slashes in PATH elements.
7987 case "$ac_dir/" in
7988 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7989 *)
7990 # OSF1 and SCO ODT 3.0 have their own names for install.
7991 for ac_prog in ginstall scoinst install; do
7992 if test -f $ac_dir/$ac_prog; then
7993 if test $ac_prog = install &&
7994 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7995 # AIX install. It has an incompatible calling convention.
7996 # OSF/1 installbsd also uses dspmsg, but is usable.
7997 :
7998 else
7999 ac_cv_path_install="$ac_dir/$ac_prog -c"
8000 break 2
8001 fi
8002 fi
8003 done
8004 ;;
8005 esac
8006 done
8007 IFS="$ac_save_IFS"
8008
8009 fi
8010 if test "${ac_cv_path_install+set}" = set; then
8011 INSTALL="$ac_cv_path_install"
8012 else
8013 # As a last resort, use the slow shell script. We don't cache a
8014 # path for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the path is relative.
8017 INSTALL="$ac_install_sh"
8018 fi
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 $as_echo "$INSTALL" >&6; }
8022
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8026
8027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8028
8029
8030 # See if cmp has --ignore-initial.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8032 $as_echo_n "checking for cmp's capabilities... " >&6; }
8033 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 echo abfoo >t1
8037 echo cdfoo >t2
8038 gcc_cv_prog_cmp_skip=slowcompare
8039 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8040 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8041 :
8042 else
8043 gcc_cv_prog_cmp_skip=gnucompare
8044 fi
8045 fi
8046 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8047 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8048 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8049 :
8050 else
8051 gcc_cv_prog_cmp_skip=fastcompare
8052 fi
8053 fi
8054 fi
8055 rm t1 t2
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8060 make_compare_target=$gcc_cv_prog_cmp_skip
8061
8062
8063
8064 # See if we have the mktemp command.
8065 # Extract the first word of "mktemp", so it can be a program name with args.
8066 set dummy mktemp; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$have_mktemp_command"; then
8073 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_have_mktemp_command="yes"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8091 fi
8092 fi
8093 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8094 if test -n "$have_mktemp_command"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8096 $as_echo "$have_mktemp_command" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101
8102
8103
8104 # See if makeinfo has been installed and is modern enough
8105 # that we can use it.
8106
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$MAKEINFO"; then
8115 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_MAKEINFO="makeinfo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 MAKEINFO=$ac_cv_prog_MAKEINFO
8135 if test -n "$MAKEINFO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8137 $as_echo "$MAKEINFO" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143
8144 if test -n "$MAKEINFO"; then
8145 # Found it, now check the version.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8147 $as_echo_n "checking for modern makeinfo... " >&6; }
8148 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8153
8154 case $ac_prog_version in
8155 '') gcc_cv_prog_makeinfo_modern=no;;
8156 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8157 *) gcc_cv_prog_makeinfo_modern=no;;
8158 esac
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8162 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8163 else
8164 gcc_cv_prog_makeinfo_modern=no
8165 fi
8166 if test $gcc_cv_prog_makeinfo_modern = no; then
8167 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8168 fi
8169
8170 if test $gcc_cv_prog_makeinfo_modern = no; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&5
8174 $as_echo "$as_me: WARNING:
8175 *** Makeinfo is missing or too old.
8176 *** Info documentation will not be built." >&2;}
8177 BUILD_INFO=
8178 else
8179 BUILD_INFO=info
8180 fi
8181
8182
8183 # Is pod2man recent enough to regenerate manpages?
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8185 $as_echo_n "checking for recent Pod::Man... " >&6; }
8186 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 GENERATED_MANPAGES=generated-manpages
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 GENERATED_MANPAGES=
8194 fi
8195
8196
8197 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8198
8199 # How about lex?
8200 for ac_prog in flex
8201 do
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_FLEX+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$FLEX"; then
8210 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_FLEX="$ac_prog"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 FLEX=$ac_cv_prog_FLEX
8230 if test -n "$FLEX"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8232 $as_echo "$FLEX" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 test -n "$FLEX" && break
8240 done
8241 test -n "$FLEX" || FLEX="$MISSING flex"
8242
8243
8244 # Bison?
8245 for ac_prog in bison
8246 do
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_BISON+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$BISON"; then
8255 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_BISON="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 BISON=$ac_cv_prog_BISON
8275 if test -n "$BISON"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8277 $as_echo "$BISON" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 test -n "$BISON" && break
8285 done
8286 test -n "$BISON" || BISON="$MISSING bison"
8287
8288
8289 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8290 # check for build == host before using them.
8291
8292 # NM
8293 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8294 && test -d ../binutils ; then
8295 NM='${objdir}/../binutils/nm-new'
8296 else
8297 # Extract the first word of "nm", so it can be a program name with args.
8298 set dummy nm; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_NM+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$NM"; then
8305 ac_cv_prog_NM="$NM" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_NM="nm"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8323 fi
8324 fi
8325 NM=$ac_cv_prog_NM
8326 if test -n "$NM"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8328 $as_echo "$NM" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 fi
8336
8337 # AR
8338 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8339 && test -d ../binutils ; then
8340 AR='${objdir}/../binutils/ar'
8341 else
8342 # Extract the first word of "ar", so it can be a program name with args.
8343 set dummy ar; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_AR+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$AR"; then
8350 ac_cv_prog_AR="$AR" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_AR="ar"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8368 fi
8369 fi
8370 AR=$ac_cv_prog_AR
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373 $as_echo "$AR" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381
8382 # The jit documentation looks better if built with sphinx, but can be
8383 # built with texinfo if sphinx is not available.
8384 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8385 # Extract the first word of "sphinx-build", so it can be a program name with args.
8386 set dummy sphinx-build; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 if test -n "$doc_build_sys"; then
8393 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_doc_build_sys="sphinx"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406 done
8407 done
8408 IFS=$as_save_IFS
8409
8410 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8411 fi
8412 fi
8413 doc_build_sys=$ac_cv_prog_doc_build_sys
8414 if test -n "$doc_build_sys"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8416 $as_echo "$doc_build_sys" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423
8424 # --------------------
8425 # Checks for C headers
8426 # --------------------
8427
8428 # Need to reject headers which give warnings, so that the -Werror bootstrap
8429 # works later. *sigh* This needs to come before all header checks.
8430
8431 ac_c_preproc_warn_flag=yes
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8434 $as_echo_n "checking for ANSI C header files... " >&6; }
8435 if test "${ac_cv_header_stdc+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <stdlib.h>
8441 #include <stdarg.h>
8442 #include <string.h>
8443 #include <float.h>
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_cxx_try_compile "$LINENO"; then :
8454 ac_cv_header_stdc=yes
8455 else
8456 ac_cv_header_stdc=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459
8460 if test $ac_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <string.h>
8465
8466 _ACEOF
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 $EGREP "memchr" >/dev/null 2>&1; then :
8469
8470 else
8471 ac_cv_header_stdc=no
8472 fi
8473 rm -f conftest*
8474
8475 fi
8476
8477 if test $ac_cv_header_stdc = yes; then
8478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <stdlib.h>
8482
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "free" >/dev/null 2>&1; then :
8486
8487 else
8488 ac_cv_header_stdc=no
8489 fi
8490 rm -f conftest*
8491
8492 fi
8493
8494 if test $ac_cv_header_stdc = yes; then
8495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8496 if test "$cross_compiling" = yes; then :
8497 :
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <ctype.h>
8502 #include <stdlib.h>
8503 #if ((' ' & 0x0FF) == 0x020)
8504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8506 #else
8507 # define ISLOWER(c) \
8508 (('a' <= (c) && (c) <= 'i') \
8509 || ('j' <= (c) && (c) <= 'r') \
8510 || ('s' <= (c) && (c) <= 'z'))
8511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8512 #endif
8513
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8515 int
8516 main ()
8517 {
8518 int i;
8519 for (i = 0; i < 256; i++)
8520 if (XOR (islower (i), ISLOWER (i))
8521 || toupper (i) != TOUPPER (i))
8522 return 2;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_cxx_try_run "$LINENO"; then :
8527
8528 else
8529 ac_cv_header_stdc=no
8530 fi
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8532 conftest.$ac_objext conftest.beam conftest.$ac_ext
8533 fi
8534
8535 fi
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8538 $as_echo "$ac_cv_header_stdc" >&6; }
8539 if test $ac_cv_header_stdc = yes; then
8540
8541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8542
8543 fi
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8554 #include <time.h>
8555
8556 int
8557 main ()
8558 {
8559 if ((struct tm *) 0)
8560 return 0;
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_cxx_try_compile "$LINENO"; then :
8566 ac_cv_header_time=yes
8567 else
8568 ac_cv_header_time=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8575
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8577
8578 fi
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8581 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8582 if test "${gcc_cv_header_string+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <string.h>
8588 #include <strings.h>
8589 int
8590 main ()
8591 {
8592
8593 ;
8594 return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_cxx_try_compile "$LINENO"; then :
8598 gcc_cv_header_string=yes
8599 else
8600 gcc_cv_header_string=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8605 $as_echo "$gcc_cv_header_string" >&6; }
8606 if test $gcc_cv_header_string = yes; then
8607
8608 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8609
8610 fi
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8614 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/wait.h>
8621 #ifndef WEXITSTATUS
8622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8623 #endif
8624 #ifndef WIFEXITED
8625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8626 #endif
8627
8628 int
8629 main ()
8630 {
8631 int s;
8632 wait (&s);
8633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8634 ;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_cxx_try_compile "$LINENO"; then :
8639 ac_cv_header_sys_wait_h=yes
8640 else
8641 ac_cv_header_sys_wait_h=no
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8646 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8647 if test $ac_cv_header_sys_wait_h = yes; then
8648
8649 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8650
8651 fi
8652
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8654 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8655 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <sys/types.h>
8661 #include <termios.h>
8662 #ifdef TIOCGWINSZ
8663 yes
8664 #endif
8665
8666 _ACEOF
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev/null 2>&1; then :
8669 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8670 else
8671 ac_cv_sys_tiocgwinsz_in_termios_h=no
8672 fi
8673 rm -f conftest*
8674
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8677 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8678
8679 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8681 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8682 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/ioctl.h>
8689 #ifdef TIOCGWINSZ
8690 yes
8691 #endif
8692
8693 _ACEOF
8694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8695 $EGREP "yes" >/dev/null 2>&1; then :
8696 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8697 else
8698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8699 fi
8700 rm -f conftest*
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8704 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8705
8706 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8707
8708 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8709
8710 fi
8711 fi
8712
8713 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8714 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8715 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8716 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8717 do :
8718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8720 eval as_val=\$$as_ac_Header
8721 if test "x$as_val" = x""yes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8724 _ACEOF
8725
8726 fi
8727 done
8728
8729
8730 # Check for thread headers.
8731 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8732 if test "x$ac_cv_header_thread_h" = x""yes; then :
8733 have_thread_h=yes
8734 else
8735 have_thread_h=
8736 fi
8737
8738 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8739 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8740 have_pthread_h=yes
8741 else
8742 have_pthread_h=
8743 fi
8744
8745
8746 # These tests can't be done till we know if we have limits.h.
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8748 $as_echo_n "checking for CHAR_BIT... " >&6; }
8749 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #ifdef HAVE_LIMITS_H
8755 #include <limits.h>
8756 #endif
8757 #ifdef CHAR_BIT
8758 found
8759 #endif
8760 _ACEOF
8761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8762 $EGREP "found" >/dev/null 2>&1; then :
8763 gcc_cv_decl_char_bit=yes
8764 else
8765 gcc_cv_decl_char_bit=no
8766 fi
8767 rm -f conftest*
8768
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8772 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8773 if test $gcc_cv_decl_char_bit = no; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8775 $as_echo_n "checking number of bits in a byte... " >&6; }
8776 if test "${gcc_cv_c_nbby+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 i=8
8780 gcc_cv_c_nbby=
8781 while test $i -lt 65; do
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784
8785 int
8786 main ()
8787 {
8788 switch(0) {
8789 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8790 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8791 ; }
8792 ;
8793 return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_cxx_try_compile "$LINENO"; then :
8797 gcc_cv_c_nbby=$i; break
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 i=`expr $i + 1`
8801 done
8802 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8806 $as_echo "$gcc_cv_c_nbby" >&6; }
8807 if test $gcc_cv_c_nbby = failed; then
8808 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8809 else
8810
8811 cat >>confdefs.h <<_ACEOF
8812 #define CHAR_BIT $gcc_cv_c_nbby
8813 _ACEOF
8814
8815 fi
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8819 if test "${ac_cv_c_bigendian+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 ac_cv_c_bigendian=unknown
8823 # See if we're dealing with a universal compiler.
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #ifndef __APPLE_CC__
8827 not a universal capable compiler
8828 #endif
8829 typedef int dummy;
8830
8831 _ACEOF
8832 if ac_fn_cxx_try_compile "$LINENO"; then :
8833
8834 # Check for potential -arch flags. It is not universal unless
8835 # there are at least two -arch flags with different values.
8836 ac_arch=
8837 ac_prev=
8838 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8839 if test -n "$ac_prev"; then
8840 case $ac_word in
8841 i?86 | x86_64 | ppc | ppc64)
8842 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8843 ac_arch=$ac_word
8844 else
8845 ac_cv_c_bigendian=universal
8846 break
8847 fi
8848 ;;
8849 esac
8850 ac_prev=
8851 elif test "x$ac_word" = "x-arch"; then
8852 ac_prev=arch
8853 fi
8854 done
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 if test $ac_cv_c_bigendian = unknown; then
8858 # See if sys/param.h defines the BYTE_ORDER macro.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8863
8864 int
8865 main ()
8866 {
8867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8869 && LITTLE_ENDIAN)
8870 bogus endian macros
8871 #endif
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 # It does; now see whether it defined to BIG_ENDIAN or not.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/param.h>
8883
8884 int
8885 main ()
8886 {
8887 #if BYTE_ORDER != BIG_ENDIAN
8888 not big endian
8889 #endif
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896 ac_cv_c_bigendian=yes
8897 else
8898 ac_cv_c_bigendian=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 if test $ac_cv_c_bigendian = unknown; then
8905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <limits.h>
8909
8910 int
8911 main ()
8912 {
8913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8914 bogus endian macros
8915 #endif
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"; then :
8922 # It does; now see whether it defined to _BIG_ENDIAN or not.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <limits.h>
8926
8927 int
8928 main ()
8929 {
8930 #ifndef _BIG_ENDIAN
8931 not big endian
8932 #endif
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_cxx_try_compile "$LINENO"; then :
8939 ac_cv_c_bigendian=yes
8940 else
8941 ac_cv_c_bigendian=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 if test $ac_cv_c_bigendian = unknown; then
8948 # Compile a test program.
8949 if test "$cross_compiling" = yes; then :
8950 # Try to guess by grepping values from an object file.
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 short int ascii_mm[] =
8954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8955 short int ascii_ii[] =
8956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8957 int use_ascii (int i) {
8958 return ascii_mm[i] + ascii_ii[i];
8959 }
8960 short int ebcdic_ii[] =
8961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8962 short int ebcdic_mm[] =
8963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8964 int use_ebcdic (int i) {
8965 return ebcdic_mm[i] + ebcdic_ii[i];
8966 }
8967 extern int foo;
8968
8969 int
8970 main ()
8971 {
8972 return use_ascii (foo) == use_ebcdic (foo);
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_cxx_try_compile "$LINENO"; then :
8978 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8979 ac_cv_c_bigendian=yes
8980 fi
8981 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8982 if test "$ac_cv_c_bigendian" = unknown; then
8983 ac_cv_c_bigendian=no
8984 else
8985 # finding both strings is unlikely to happen, but who knows?
8986 ac_cv_c_bigendian=unknown
8987 fi
8988 fi
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 int
8996 main ()
8997 {
8998
8999 /* Are we little or big endian? From Harbison&Steele. */
9000 union
9001 {
9002 long int l;
9003 char c[sizeof (long int)];
9004 } u;
9005 u.l = 1;
9006 return u.c[sizeof (long int) - 1] == 1;
9007
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_cxx_try_run "$LINENO"; then :
9013 ac_cv_c_bigendian=no
9014 else
9015 ac_cv_c_bigendian=yes
9016 fi
9017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9018 conftest.$ac_objext conftest.beam conftest.$ac_ext
9019 fi
9020
9021 fi
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9024 $as_echo "$ac_cv_c_bigendian" >&6; }
9025 case $ac_cv_c_bigendian in #(
9026 yes)
9027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9028 ;; #(
9029 no)
9030 ;; #(
9031 universal)
9032
9033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9034
9035 ;; #(
9036 *)
9037 as_fn_error "unknown endianness
9038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9039 esac
9040
9041
9042 # ----------------------
9043 # Checks for C++ headers
9044 # ----------------------
9045
9046 ac_ext=cpp
9047 ac_cpp='$CXXCPP $CPPFLAGS'
9048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9053 if test -z "$CXXCPP"; then
9054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 # Double quotes because CXXCPP needs to be expanded
9058 for CXXCPP in "$CXX -E" "/lib/cpp"
9059 do
9060 ac_preproc_ok=false
9061 for ac_cxx_preproc_warn_flag in '' yes
9062 do
9063 # Use a header file that comes with gcc, so configuring glibc
9064 # with a fresh cross-compiler works.
9065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 # <limits.h> exists even on freestanding compilers.
9067 # On the NeXT, cc -E runs the code through the compiler's parser,
9068 # not just through cpp. "Syntax error" is here to catch this case.
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #ifdef __STDC__
9072 # include <limits.h>
9073 #else
9074 # include <assert.h>
9075 #endif
9076 Syntax error
9077 _ACEOF
9078 if ac_fn_cxx_try_cpp "$LINENO"; then :
9079
9080 else
9081 # Broken: fails on valid input.
9082 continue
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085
9086 # OK, works on sane cases. Now check whether nonexistent headers
9087 # can be detected and how.
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <ac_nonexistent.h>
9091 _ACEOF
9092 if ac_fn_cxx_try_cpp "$LINENO"; then :
9093 # Broken: success on invalid input.
9094 continue
9095 else
9096 # Passes both tests.
9097 ac_preproc_ok=:
9098 break
9099 fi
9100 rm -f conftest.err conftest.$ac_ext
9101
9102 done
9103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9104 rm -f conftest.err conftest.$ac_ext
9105 if $ac_preproc_ok; then :
9106 break
9107 fi
9108
9109 done
9110 ac_cv_prog_CXXCPP=$CXXCPP
9111
9112 fi
9113 CXXCPP=$ac_cv_prog_CXXCPP
9114 else
9115 ac_cv_prog_CXXCPP=$CXXCPP
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9118 $as_echo "$CXXCPP" >&6; }
9119 ac_preproc_ok=false
9120 for ac_cxx_preproc_warn_flag in '' yes
9121 do
9122 # Use a header file that comes with gcc, so configuring glibc
9123 # with a fresh cross-compiler works.
9124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 # <limits.h> exists even on freestanding compilers.
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp. "Syntax error" is here to catch this case.
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 #ifdef __STDC__
9131 # include <limits.h>
9132 #else
9133 # include <assert.h>
9134 #endif
9135 Syntax error
9136 _ACEOF
9137 if ac_fn_cxx_try_cpp "$LINENO"; then :
9138
9139 else
9140 # Broken: fails on valid input.
9141 continue
9142 fi
9143 rm -f conftest.err conftest.$ac_ext
9144
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9150 _ACEOF
9151 if ac_fn_cxx_try_cpp "$LINENO"; then :
9152 # Broken: success on invalid input.
9153 continue
9154 else
9155 # Passes both tests.
9156 ac_preproc_ok=:
9157 break
9158 fi
9159 rm -f conftest.err conftest.$ac_ext
9160
9161 done
9162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9163 rm -f conftest.err conftest.$ac_ext
9164 if $ac_preproc_ok; then :
9165
9166 else
9167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9170 See \`config.log' for more details." >&5
9171 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9172 See \`config.log' for more details." >&2;}; }
9173 fi
9174
9175 ac_ext=cpp
9176 ac_cpp='$CXXCPP $CPPFLAGS'
9177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9180
9181
9182 for ac_header in unordered_map
9183 do :
9184 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9185 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_UNORDERED_MAP 1
9188 _ACEOF
9189
9190 fi
9191 done
9192
9193 for ac_header in tr1/unordered_map
9194 do :
9195 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9196 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_TR1_UNORDERED_MAP 1
9199 _ACEOF
9200
9201 fi
9202 done
9203
9204 for ac_header in ext/hash_map
9205 do :
9206 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9207 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_EXT_HASH_MAP 1
9210 _ACEOF
9211
9212 fi
9213 done
9214
9215
9216 # --------
9217 # Dependency checking.
9218 # --------
9219
9220 rm -rf .tst 2>/dev/null
9221 mkdir .tst 2>/dev/null
9222 if test -d .tst; then
9223 am__leading_dot=.
9224 else
9225 am__leading_dot=_
9226 fi
9227 rmdir .tst 2>/dev/null
9228
9229 DEPDIR="${am__leading_dot}deps"
9230
9231 ac_config_commands="$ac_config_commands depdir"
9232
9233
9234 ac_config_commands="$ac_config_commands gccdepdir"
9235
9236
9237 depcc="$CXX" am_compiler_list=
9238
9239 am_depcomp=$ac_aux_dir/depcomp
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9241 $as_echo_n "checking dependency style of $depcc... " >&6; }
9242 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -f "$am_depcomp"; then
9246 # We make a subdir and do the tests there. Otherwise we can end up
9247 # making bogus files that we don't know about and never remove. For
9248 # instance it was reported that on HP-UX the gcc test will end up
9249 # making a dummy file named `D' -- because `-MD' means `put the output
9250 # in D'.
9251 mkdir conftest.dir
9252 # Copy depcomp to subdir because otherwise we won't find it if we're
9253 # using a relative directory.
9254 cp "$am_depcomp" conftest.dir
9255 cd conftest.dir
9256 # We will build objects and dependencies in a subdirectory because
9257 # it helps to detect inapplicable dependency modes. For instance
9258 # both Tru64's cc and ICC support -MD to output dependencies as a
9259 # side effect of compilation, but ICC will put the dependencies in
9260 # the current directory while Tru64 will put them in the object
9261 # directory.
9262 mkdir sub
9263
9264 am_cv_CXX_dependencies_compiler_type=none
9265 if test "$am_compiler_list" = ""; then
9266 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9267 fi
9268 for depmode in $am_compiler_list; do
9269 if test $depmode = none; then break; fi
9270
9271 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9272 # Setup a source with many dependencies, because some compilers
9273 # like to wrap large dependency lists on column 80 (with \), and
9274 # we should not choose a depcomp mode which is confused by this.
9275 #
9276 # We need to recreate these files for each test, as the compiler may
9277 # overwrite some of them when testing with obscure command lines.
9278 # This happens at least with the AIX C compiler.
9279 : > sub/conftest.c
9280 for i in 1 2 3 4 5 6; do
9281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9283 # Solaris 8's {/usr,}/bin/sh.
9284 touch sub/conftst$i.h
9285 done
9286 echo "include sub/conftest.Po" > confmf
9287
9288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9289 # mode. It turns out that the SunPro C++ compiler does not properly
9290 # handle `-M -o', and we need to detect this.
9291 depcmd="depmode=$depmode \
9292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9295 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9296 if env $depcmd > conftest.err 2>&1 &&
9297 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9299 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9300 # icc doesn't choke on unknown options, it will just issue warnings
9301 # or remarks (even with -Werror). So we grep stderr for any message
9302 # that says an option was ignored or not supported.
9303 # When given -MP, icc 7.0 and 7.1 complain thusly:
9304 # icc: Command line warning: ignoring option '-M'; no argument required
9305 # The diagnosis changed in icc 8.0:
9306 # icc: Command line remark: option '-MP' not supported
9307 if (grep 'ignoring option' conftest.err ||
9308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9309 am_cv_CXX_dependencies_compiler_type=$depmode
9310 $as_echo "$as_me:$LINENO: success" >&5
9311 break
9312 fi
9313 fi
9314 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9315 sed -e 's/^/| /' < conftest.err >&5
9316 done
9317
9318 cd ..
9319 rm -rf conftest.dir
9320 else
9321 am_cv_CXX_dependencies_compiler_type=none
9322 fi
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9326 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9327 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9328 then as_fn_error "no usable dependency style found" "$LINENO" 5
9329 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9330
9331 fi
9332
9333
9334 # --------
9335 # UNSORTED
9336 # --------
9337
9338
9339 # These libraries may be used by collect2.
9340 # We may need a special search path to get them linked.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9342 $as_echo_n "checking for collect2 libraries... " >&6; }
9343 if test "${gcc_cv_collect2_libs+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 save_LIBS="$LIBS"
9347 for libs in '' -lld -lmld \
9348 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9349 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9350 do
9351 LIBS="$libs"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char ldopen ();
9362 int
9363 main ()
9364 {
9365 return ldopen ();
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_cxx_try_link "$LINENO"; then :
9371 gcc_cv_collect2_libs="$libs"; break
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 done
9376 LIBS="$save_LIBS"
9377 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9380 $as_echo "$gcc_cv_collect2_libs" >&6; }
9381 case $gcc_cv_collect2_libs in
9382 "none required") ;;
9383 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9384 esac
9385
9386
9387 # When building Ada code on Alpha, we need exc_resume which is usually in
9388 # -lexc. So test for it.
9389 save_LIBS="$LIBS"
9390 LIBS=
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9392 $as_echo_n "checking for library containing exc_resume... " >&6; }
9393 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_func_search_save_LIBS=$LIBS
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char exc_resume ();
9407 int
9408 main ()
9409 {
9410 return exc_resume ();
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 for ac_lib in '' exc; do
9416 if test -z "$ac_lib"; then
9417 ac_res="none required"
9418 else
9419 ac_res=-l$ac_lib
9420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9421 fi
9422 if ac_fn_cxx_try_link "$LINENO"; then :
9423 ac_cv_search_exc_resume=$ac_res
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext
9427 if test "${ac_cv_search_exc_resume+set}" = set; then :
9428 break
9429 fi
9430 done
9431 if test "${ac_cv_search_exc_resume+set}" = set; then :
9432
9433 else
9434 ac_cv_search_exc_resume=no
9435 fi
9436 rm conftest.$ac_ext
9437 LIBS=$ac_func_search_save_LIBS
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9440 $as_echo "$ac_cv_search_exc_resume" >&6; }
9441 ac_res=$ac_cv_search_exc_resume
9442 if test "$ac_res" != no; then :
9443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444
9445 fi
9446
9447 GNAT_LIBEXC="$LIBS"
9448 LIBS="$save_LIBS"
9449
9450
9451 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9452 save_LIBS="$LIBS"
9453 LIBS=
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9455 $as_echo_n "checking for library containing kstat_open... " >&6; }
9456 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 ac_func_search_save_LIBS=$LIBS
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char kstat_open ();
9470 int
9471 main ()
9472 {
9473 return kstat_open ();
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 for ac_lib in '' kstat; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9481 else
9482 ac_res=-l$ac_lib
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9484 fi
9485 if ac_fn_cxx_try_link "$LINENO"; then :
9486 ac_cv_search_kstat_open=$ac_res
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext
9490 if test "${ac_cv_search_kstat_open+set}" = set; then :
9491 break
9492 fi
9493 done
9494 if test "${ac_cv_search_kstat_open+set}" = set; then :
9495
9496 else
9497 ac_cv_search_kstat_open=no
9498 fi
9499 rm conftest.$ac_ext
9500 LIBS=$ac_func_search_save_LIBS
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9503 $as_echo "$ac_cv_search_kstat_open" >&6; }
9504 ac_res=$ac_cv_search_kstat_open
9505 if test "$ac_res" != no; then :
9506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507
9508 fi
9509
9510 EXTRA_GCC_LIBS="$LIBS"
9511 LIBS="$save_LIBS"
9512
9513
9514 # Some systems put ldexp and frexp in libm instead of libc; assume
9515 # they're both in the same place. jcf-dump needs them.
9516 save_LIBS="$LIBS"
9517 LIBS=
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9519 $as_echo_n "checking for library containing ldexp... " >&6; }
9520 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 ac_func_search_save_LIBS=$LIBS
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char ldexp ();
9534 int
9535 main ()
9536 {
9537 return ldexp ();
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 for ac_lib in '' m; do
9543 if test -z "$ac_lib"; then
9544 ac_res="none required"
9545 else
9546 ac_res=-l$ac_lib
9547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9548 fi
9549 if ac_fn_cxx_try_link "$LINENO"; then :
9550 ac_cv_search_ldexp=$ac_res
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext
9554 if test "${ac_cv_search_ldexp+set}" = set; then :
9555 break
9556 fi
9557 done
9558 if test "${ac_cv_search_ldexp+set}" = set; then :
9559
9560 else
9561 ac_cv_search_ldexp=no
9562 fi
9563 rm conftest.$ac_ext
9564 LIBS=$ac_func_search_save_LIBS
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9567 $as_echo "$ac_cv_search_ldexp" >&6; }
9568 ac_res=$ac_cv_search_ldexp
9569 if test "$ac_res" != no; then :
9570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9571
9572 fi
9573
9574 LDEXP_LIB="$LIBS"
9575 LIBS="$save_LIBS"
9576
9577
9578 # Use <inttypes.h> only if it exists,
9579 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9580 # PRId64
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9582 $as_echo_n "checking for inttypes.h... " >&6; }
9583 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #define __STDC_FORMAT_MACROS
9589 #include <sys/types.h>
9590 #include <inttypes.h>
9591 int
9592 main ()
9593 {
9594 intmax_t i = -1;
9595 #ifndef PRId64
9596 choke me
9597 #endif
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_cxx_try_compile "$LINENO"; then :
9603 gcc_cv_header_inttypes_h=yes
9604 else
9605 gcc_cv_header_inttypes_h=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9611 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9612 if test $gcc_cv_header_inttypes_h = yes; then
9613
9614 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9615
9616 fi
9617
9618
9619
9620 for ac_func in times clock kill getrlimit setrlimit atoq \
9621 popen sysconf strsignal getrusage nl_langinfo \
9622 gettimeofday mbstowcs wcswidth mmap setlocale \
9623 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
9624 do :
9625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9627 eval as_val=\$$as_ac_var
9628 if test "x$as_val" = x""yes; then :
9629 cat >>confdefs.h <<_ACEOF
9630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 _ACEOF
9632
9633 fi
9634 done
9635
9636
9637 if test x$ac_cv_func_mbstowcs = xyes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9639 $as_echo_n "checking whether mbstowcs works... " >&6; }
9640 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test "$cross_compiling" = yes; then :
9644 gcc_cv_func_mbstowcs_works=yes
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #include <stdlib.h>
9649 int main()
9650 {
9651 mbstowcs(0, "", 0);
9652 return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_cxx_try_run "$LINENO"; then :
9656 gcc_cv_func_mbstowcs_works=yes
9657 else
9658 gcc_cv_func_mbstowcs_works=no
9659 fi
9660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9661 conftest.$ac_objext conftest.beam conftest.$ac_ext
9662 fi
9663
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9666 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9667 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9668
9669 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9670
9671 fi
9672 fi
9673
9674 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9675 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9676
9677 else
9678
9679 cat >>confdefs.h <<_ACEOF
9680 #define ssize_t int
9681 _ACEOF
9682
9683 fi
9684
9685 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9687
9688 else
9689
9690 cat >>confdefs.h <<_ACEOF
9691 #define caddr_t char *
9692 _ACEOF
9693
9694 fi
9695
9696
9697
9698 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9699 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9700 gcc_header_sys_mman_h=yes
9701 else
9702 gcc_header_sys_mman_h=no
9703 fi
9704
9705 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9706 if test "x$ac_cv_func_mmap" = x""yes; then :
9707 gcc_func_mmap=yes
9708 else
9709 gcc_func_mmap=no
9710 fi
9711
9712 if test "$gcc_header_sys_mman_h" != yes \
9713 || test "$gcc_func_mmap" != yes; then
9714 gcc_cv_func_mmap_file=no
9715 gcc_cv_func_mmap_dev_zero=no
9716 gcc_cv_func_mmap_anon=no
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9720 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 # Add a system to this blacklist if
9724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9725 # memory area containing the same data that you'd get if you applied
9726 # read() to the same fd. The only system known to have a problem here
9727 # is VMS, where text files have record structure.
9728 case "$host_os" in
9729 *vms* | ultrix*)
9730 gcc_cv_func_mmap_file=no ;;
9731 *)
9732 gcc_cv_func_mmap_file=yes;;
9733 esac
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9739 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 # Add a system to this blacklist if it has mmap() but /dev/zero
9743 # does not exist, or if mmapping /dev/zero does not give anonymous
9744 # zeroed pages with both the following properties:
9745 # 1. If you map N consecutive pages in with one call, and then
9746 # unmap any subset of those pages, the pages that were not
9747 # explicitly unmapped remain accessible.
9748 # 2. If you map two adjacent blocks of memory and then unmap them
9749 # both at once, they must both go away.
9750 # Systems known to be in this category are Windows (all variants),
9751 # VMS, and Darwin.
9752 case "$host_os" in
9753 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9754 gcc_cv_func_mmap_dev_zero=no ;;
9755 *)
9756 gcc_cv_func_mmap_dev_zero=yes;;
9757 esac
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9761
9762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9765 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <sys/types.h>
9771 #include <sys/mman.h>
9772 #include <unistd.h>
9773
9774 #ifndef MAP_ANONYMOUS
9775 #define MAP_ANONYMOUS MAP_ANON
9776 #endif
9777
9778 int
9779 main ()
9780 {
9781 int n = MAP_ANONYMOUS;
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_cxx_try_compile "$LINENO"; then :
9787 gcc_cv_decl_map_anon=yes
9788 else
9789 gcc_cv_decl_map_anon=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9795
9796 if test $gcc_cv_decl_map_anon = no; then
9797 gcc_cv_func_mmap_anon=no
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9801 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9806 # doesn't give anonymous zeroed pages with the same properties listed
9807 # above for use of /dev/zero.
9808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9809 case "$host_os" in
9810 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9811 gcc_cv_func_mmap_anon=no ;;
9812 *)
9813 gcc_cv_func_mmap_anon=yes;;
9814 esac
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9818 fi
9819 fi
9820
9821 if test $gcc_cv_func_mmap_file = yes; then
9822
9823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9824
9825 fi
9826 if test $gcc_cv_func_mmap_dev_zero = yes; then
9827
9828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9829
9830 fi
9831 if test $gcc_cv_func_mmap_anon = yes; then
9832
9833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9834
9835 fi
9836
9837
9838 case "${host}" in
9839 *-*-*vms*)
9840 # Under VMS, vfork works very differently than on Unix. The standard test
9841 # won't work, and it isn't easily adaptable. It makes more sense to
9842 # just force it.
9843 ac_cv_func_vfork_works=yes
9844 ;;
9845 esac
9846 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9847 if test "x$ac_cv_type_pid_t" = x""yes; then :
9848
9849 else
9850
9851 cat >>confdefs.h <<_ACEOF
9852 #define pid_t int
9853 _ACEOF
9854
9855 fi
9856
9857 for ac_header in vfork.h
9858 do :
9859 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9860 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_VFORK_H 1
9863 _ACEOF
9864
9865 fi
9866 done
9867
9868 for ac_func in fork vfork
9869 do :
9870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9872 eval as_val=\$$as_ac_var
9873 if test "x$as_val" = x""yes; then :
9874 cat >>confdefs.h <<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879 done
9880
9881 if test "x$ac_cv_func_fork" = xyes; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9883 $as_echo_n "checking for working fork... " >&6; }
9884 if test "${ac_cv_func_fork_works+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test "$cross_compiling" = yes; then :
9888 ac_cv_func_fork_works=cross
9889 else
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 $ac_includes_default
9893 int
9894 main ()
9895 {
9896
9897 /* By Ruediger Kuhlmann. */
9898 return fork () < 0;
9899
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 if ac_fn_cxx_try_run "$LINENO"; then :
9905 ac_cv_func_fork_works=yes
9906 else
9907 ac_cv_func_fork_works=no
9908 fi
9909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9910 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 fi
9912
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9915 $as_echo "$ac_cv_func_fork_works" >&6; }
9916
9917 else
9918 ac_cv_func_fork_works=$ac_cv_func_fork
9919 fi
9920 if test "x$ac_cv_func_fork_works" = xcross; then
9921 case $host in
9922 *-*-amigaos* | *-*-msdosdjgpp*)
9923 # Override, as these systems have only a dummy fork() stub
9924 ac_cv_func_fork_works=no
9925 ;;
9926 *)
9927 ac_cv_func_fork_works=yes
9928 ;;
9929 esac
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9932 fi
9933 ac_cv_func_vfork_works=$ac_cv_func_vfork
9934 if test "x$ac_cv_func_vfork" = xyes; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9936 $as_echo_n "checking for working vfork... " >&6; }
9937 if test "${ac_cv_func_vfork_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test "$cross_compiling" = yes; then :
9941 ac_cv_func_vfork_works=cross
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 /* Thanks to Paul Eggert for this test. */
9946 $ac_includes_default
9947 #include <sys/wait.h>
9948 #ifdef HAVE_VFORK_H
9949 # include <vfork.h>
9950 #endif
9951 /* On some sparc systems, changes by the child to local and incoming
9952 argument registers are propagated back to the parent. The compiler
9953 is told about this with #include <vfork.h>, but some compilers
9954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9955 static variable whose address is put into a register that is
9956 clobbered by the vfork. */
9957 static void
9958 #ifdef __cplusplus
9959 sparc_address_test (int arg)
9960 # else
9961 sparc_address_test (arg) int arg;
9962 #endif
9963 {
9964 static pid_t child;
9965 if (!child) {
9966 child = vfork ();
9967 if (child < 0) {
9968 perror ("vfork");
9969 _exit(2);
9970 }
9971 if (!child) {
9972 arg = getpid();
9973 write(-1, "", 0);
9974 _exit (arg);
9975 }
9976 }
9977 }
9978
9979 int
9980 main ()
9981 {
9982 pid_t parent = getpid ();
9983 pid_t child;
9984
9985 sparc_address_test (0);
9986
9987 child = vfork ();
9988
9989 if (child == 0) {
9990 /* Here is another test for sparc vfork register problems. This
9991 test uses lots of local variables, at least as many local
9992 variables as main has allocated so far including compiler
9993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9995 reuse the register of parent for one of the local variables,
9996 since it will think that parent can't possibly be used any more
9997 in this routine. Assigning to the local variable will thus
9998 munge parent in the parent process. */
9999 pid_t
10000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10002 /* Convince the compiler that p..p7 are live; otherwise, it might
10003 use the same hardware register for all 8 local variables. */
10004 if (p != p1 || p != p2 || p != p3 || p != p4
10005 || p != p5 || p != p6 || p != p7)
10006 _exit(1);
10007
10008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10009 from child file descriptors. If the child closes a descriptor
10010 before it execs or exits, this munges the parent's descriptor
10011 as well. Test for this by closing stdout in the child. */
10012 _exit(close(fileno(stdout)) != 0);
10013 } else {
10014 int status;
10015 struct stat st;
10016
10017 while (wait(&status) != child)
10018 ;
10019 return (
10020 /* Was there some problem with vforking? */
10021 child < 0
10022
10023 /* Did the child fail? (This shouldn't happen.) */
10024 || status
10025
10026 /* Did the vfork/compiler bug occur? */
10027 || parent != getpid()
10028
10029 /* Did the file descriptor bug occur? */
10030 || fstat(fileno(stdout), &st) != 0
10031 );
10032 }
10033 }
10034 _ACEOF
10035 if ac_fn_cxx_try_run "$LINENO"; then :
10036 ac_cv_func_vfork_works=yes
10037 else
10038 ac_cv_func_vfork_works=no
10039 fi
10040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 fi
10043
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10046 $as_echo "$ac_cv_func_vfork_works" >&6; }
10047
10048 fi;
10049 if test "x$ac_cv_func_fork_works" = xcross; then
10050 ac_cv_func_vfork_works=$ac_cv_func_vfork
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10053 fi
10054
10055 if test "x$ac_cv_func_vfork_works" = xyes; then
10056
10057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10058
10059 else
10060
10061 $as_echo "#define vfork fork" >>confdefs.h
10062
10063 fi
10064 if test "x$ac_cv_func_fork_works" = xyes; then
10065
10066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10067
10068 fi
10069
10070
10071
10072 if test "X$prefix" = "XNONE"; then
10073 acl_final_prefix="$ac_default_prefix"
10074 else
10075 acl_final_prefix="$prefix"
10076 fi
10077 if test "X$exec_prefix" = "XNONE"; then
10078 acl_final_exec_prefix='${prefix}'
10079 else
10080 acl_final_exec_prefix="$exec_prefix"
10081 fi
10082 acl_save_prefix="$prefix"
10083 prefix="$acl_final_prefix"
10084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10085 prefix="$acl_save_prefix"
10086
10087
10088 # Check whether --with-gnu-ld was given.
10089 if test "${with_gnu_ld+set}" = set; then :
10090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10091 else
10092 with_gnu_ld=no
10093 fi
10094
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10100 chmod +x conf$$.sh
10101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10102 PATH_SEPARATOR=';'
10103 else
10104 PATH_SEPARATOR=:
10105 fi
10106 rm -f conf$$.sh
10107 fi
10108 ac_prog=ld
10109 if test "$GCC" = yes; then
10110 # Check if gcc -print-prog-name=ld gives a path.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10112 $as_echo_n "checking for ld used by GCC... " >&6; }
10113 case $host in
10114 *-*-mingw*)
10115 # gcc leaves a trailing carriage return which upsets mingw
10116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10117 *)
10118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10119 esac
10120 case $ac_prog in
10121 # Accept absolute paths.
10122 [\\/]* | [A-Za-z]:[\\/]*)
10123 re_direlt='/[^/][^/]*/\.\./'
10124 # Canonicalize the path of ld
10125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10128 done
10129 test -z "$LD" && LD="$ac_prog"
10130 ;;
10131 "")
10132 # If it fails, then pretend we aren't using GCC.
10133 ac_prog=ld
10134 ;;
10135 *)
10136 # If it is relative, then search for the first ld in PATH.
10137 with_gnu_ld=unknown
10138 ;;
10139 esac
10140 elif test "$with_gnu_ld" = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10142 $as_echo_n "checking for GNU ld... " >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10145 $as_echo_n "checking for non-GNU ld... " >&6; }
10146 fi
10147 if test "${acl_cv_path_LD+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 if test -z "$LD"; then
10151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10152 for ac_dir in $PATH; do
10153 test -z "$ac_dir" && ac_dir=.
10154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 acl_cv_path_LD="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some GNU ld's only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10160 test "$with_gnu_ld" != no && break
10161 else
10162 test "$with_gnu_ld" != yes && break
10163 fi
10164 fi
10165 done
10166 IFS="$ac_save_ifs"
10167 else
10168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10169 fi
10170 fi
10171
10172 LD="$acl_cv_path_LD"
10173 if test -n "$LD"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10175 $as_echo "$LD" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10183 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10187 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10188 acl_cv_prog_gnu_ld=yes
10189 else
10190 acl_cv_prog_gnu_ld=no
10191 fi
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10195 with_gnu_ld=$acl_cv_prog_gnu_ld
10196
10197
10198
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10200 $as_echo_n "checking for shared library run path origin... " >&6; }
10201 if test "${acl_cv_rpath+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204
10205 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10207 . ./conftest.sh
10208 rm -f ./conftest.sh
10209 acl_cv_rpath=done
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10213 $as_echo "$acl_cv_rpath" >&6; }
10214 wl="$acl_cv_wl"
10215 libext="$acl_cv_libext"
10216 shlibext="$acl_cv_shlibext"
10217 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10218 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10219 hardcode_direct="$acl_cv_hardcode_direct"
10220 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10221 # Check whether --enable-rpath was given.
10222 if test "${enable_rpath+set}" = set; then :
10223 enableval=$enable_rpath; :
10224 else
10225 enable_rpath=yes
10226 fi
10227
10228
10229
10230
10231
10232
10233
10234
10235 use_additional=yes
10236
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 acl_save_exec_prefix="$exec_prefix"
10240 exec_prefix="$acl_final_exec_prefix"
10241
10242 eval additional_includedir=\"$includedir\"
10243 eval additional_libdir=\"$libdir\"
10244
10245 exec_prefix="$acl_save_exec_prefix"
10246 prefix="$acl_save_prefix"
10247
10248
10249 # Check whether --with-libiconv-prefix was given.
10250 if test "${with_libiconv_prefix+set}" = set; then :
10251 withval=$with_libiconv_prefix;
10252 if test "X$withval" = "Xno"; then
10253 use_additional=no
10254 else
10255 if test "X$withval" = "X"; then
10256
10257 acl_save_prefix="$prefix"
10258 prefix="$acl_final_prefix"
10259 acl_save_exec_prefix="$exec_prefix"
10260 exec_prefix="$acl_final_exec_prefix"
10261
10262 eval additional_includedir=\"$includedir\"
10263 eval additional_libdir=\"$libdir\"
10264
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10267
10268 else
10269 additional_includedir="$withval/include"
10270 additional_libdir="$withval/lib"
10271 fi
10272 fi
10273
10274 fi
10275
10276 LIBICONV=
10277 LTLIBICONV=
10278 INCICONV=
10279 rpathdirs=
10280 ltrpathdirs=
10281 names_already_handled=
10282 names_next_round='iconv '
10283 while test -n "$names_next_round"; do
10284 names_this_round="$names_next_round"
10285 names_next_round=
10286 for name in $names_this_round; do
10287 already_handled=
10288 for n in $names_already_handled; do
10289 if test "$n" = "$name"; then
10290 already_handled=yes
10291 break
10292 fi
10293 done
10294 if test -z "$already_handled"; then
10295 names_already_handled="$names_already_handled $name"
10296 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10297 eval value=\"\$HAVE_LIB$uppername\"
10298 if test -n "$value"; then
10299 if test "$value" = yes; then
10300 eval value=\"\$LIB$uppername\"
10301 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10302 eval value=\"\$LTLIB$uppername\"
10303 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10304 else
10305 :
10306 fi
10307 else
10308 found_dir=
10309 found_la=
10310 found_so=
10311 found_a=
10312 if test $use_additional = yes; then
10313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10314 found_dir="$additional_libdir"
10315 found_so="$additional_libdir/lib$name.$shlibext"
10316 if test -f "$additional_libdir/lib$name.la"; then
10317 found_la="$additional_libdir/lib$name.la"
10318 fi
10319 else
10320 if test -f "$additional_libdir/lib$name.$libext"; then
10321 found_dir="$additional_libdir"
10322 found_a="$additional_libdir/lib$name.$libext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la="$additional_libdir/lib$name.la"
10325 fi
10326 fi
10327 fi
10328 fi
10329 if test "X$found_dir" = "X"; then
10330 for x in $LDFLAGS $LTLIBICONV; do
10331
10332 acl_save_prefix="$prefix"
10333 prefix="$acl_final_prefix"
10334 acl_save_exec_prefix="$exec_prefix"
10335 exec_prefix="$acl_final_exec_prefix"
10336 eval x=\"$x\"
10337 exec_prefix="$acl_save_exec_prefix"
10338 prefix="$acl_save_prefix"
10339
10340 case "$x" in
10341 -L*)
10342 dir=`echo "X$x" | sed -e 's/^X-L//'`
10343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10344 found_dir="$dir"
10345 found_so="$dir/lib$name.$shlibext"
10346 if test -f "$dir/lib$name.la"; then
10347 found_la="$dir/lib$name.la"
10348 fi
10349 else
10350 if test -f "$dir/lib$name.$libext"; then
10351 found_dir="$dir"
10352 found_a="$dir/lib$name.$libext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la="$dir/lib$name.la"
10355 fi
10356 fi
10357 fi
10358 ;;
10359 esac
10360 if test "X$found_dir" != "X"; then
10361 break
10362 fi
10363 done
10364 fi
10365 if test "X$found_dir" != "X"; then
10366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10367 if test "X$found_so" != "X"; then
10368 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10370 else
10371 haveit=
10372 for x in $ltrpathdirs; do
10373 if test "X$x" = "X$found_dir"; then
10374 haveit=yes
10375 break
10376 fi
10377 done
10378 if test -z "$haveit"; then
10379 ltrpathdirs="$ltrpathdirs $found_dir"
10380 fi
10381 if test "$hardcode_direct" = yes; then
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10383 else
10384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10386 haveit=
10387 for x in $rpathdirs; do
10388 if test "X$x" = "X$found_dir"; then
10389 haveit=yes
10390 break
10391 fi
10392 done
10393 if test -z "$haveit"; then
10394 rpathdirs="$rpathdirs $found_dir"
10395 fi
10396 else
10397 haveit=
10398 for x in $LDFLAGS $LIBICONV; do
10399
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10404 eval x=\"$x\"
10405 exec_prefix="$acl_save_exec_prefix"
10406 prefix="$acl_save_prefix"
10407
10408 if test "X$x" = "X-L$found_dir"; then
10409 haveit=yes
10410 break
10411 fi
10412 done
10413 if test -z "$haveit"; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10415 fi
10416 if test "$hardcode_minus_L" != no; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10420 fi
10421 fi
10422 fi
10423 fi
10424 else
10425 if test "X$found_a" != "X"; then
10426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10427 else
10428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10429 fi
10430 fi
10431 additional_includedir=
10432 case "$found_dir" in
10433 */lib | */lib/)
10434 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10435 additional_includedir="$basedir/include"
10436 ;;
10437 esac
10438 if test "X$additional_includedir" != "X"; then
10439 if test "X$additional_includedir" != "X/usr/include"; then
10440 haveit=
10441 if test "X$additional_includedir" = "X/usr/local/include"; then
10442 if test -n "$GCC"; then
10443 case $host_os in
10444 linux*) haveit=yes;;
10445 esac
10446 fi
10447 fi
10448 if test -z "$haveit"; then
10449 for x in $CPPFLAGS $INCICONV; do
10450
10451 acl_save_prefix="$prefix"
10452 prefix="$acl_final_prefix"
10453 acl_save_exec_prefix="$exec_prefix"
10454 exec_prefix="$acl_final_exec_prefix"
10455 eval x=\"$x\"
10456 exec_prefix="$acl_save_exec_prefix"
10457 prefix="$acl_save_prefix"
10458
10459 if test "X$x" = "X-I$additional_includedir"; then
10460 haveit=yes
10461 break
10462 fi
10463 done
10464 if test -z "$haveit"; then
10465 if test -d "$additional_includedir"; then
10466 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10467 fi
10468 fi
10469 fi
10470 fi
10471 fi
10472 if test -n "$found_la"; then
10473 save_libdir="$libdir"
10474 case "$found_la" in
10475 */* | *\\*) . "$found_la" ;;
10476 *) . "./$found_la" ;;
10477 esac
10478 libdir="$save_libdir"
10479 for dep in $dependency_libs; do
10480 case "$dep" in
10481 -L*)
10482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10483 if test "X$additional_libdir" != "X/usr/lib"; then
10484 haveit=
10485 if test "X$additional_libdir" = "X/usr/local/lib"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux*) haveit=yes;;
10489 esac
10490 fi
10491 fi
10492 if test -z "$haveit"; then
10493 haveit=
10494 for x in $LDFLAGS $LIBICONV; do
10495
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10500 eval x=\"$x\"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10503
10504 if test "X$x" = "X-L$additional_libdir"; then
10505 haveit=yes
10506 break
10507 fi
10508 done
10509 if test -z "$haveit"; then
10510 if test -d "$additional_libdir"; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10512 fi
10513 fi
10514 haveit=
10515 for x in $LDFLAGS $LTLIBICONV; do
10516
10517 acl_save_prefix="$prefix"
10518 prefix="$acl_final_prefix"
10519 acl_save_exec_prefix="$exec_prefix"
10520 exec_prefix="$acl_final_exec_prefix"
10521 eval x=\"$x\"
10522 exec_prefix="$acl_save_exec_prefix"
10523 prefix="$acl_save_prefix"
10524
10525 if test "X$x" = "X-L$additional_libdir"; then
10526 haveit=yes
10527 break
10528 fi
10529 done
10530 if test -z "$haveit"; then
10531 if test -d "$additional_libdir"; then
10532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10533 fi
10534 fi
10535 fi
10536 fi
10537 ;;
10538 -R*)
10539 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10540 if test "$enable_rpath" != no; then
10541 haveit=
10542 for x in $rpathdirs; do
10543 if test "X$x" = "X$dir"; then
10544 haveit=yes
10545 break
10546 fi
10547 done
10548 if test -z "$haveit"; then
10549 rpathdirs="$rpathdirs $dir"
10550 fi
10551 haveit=
10552 for x in $ltrpathdirs; do
10553 if test "X$x" = "X$dir"; then
10554 haveit=yes
10555 break
10556 fi
10557 done
10558 if test -z "$haveit"; then
10559 ltrpathdirs="$ltrpathdirs $dir"
10560 fi
10561 fi
10562 ;;
10563 -l*)
10564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10565 ;;
10566 *.la)
10567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10568 ;;
10569 *)
10570 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10572 ;;
10573 esac
10574 done
10575 fi
10576 else
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10579 fi
10580 fi
10581 fi
10582 done
10583 done
10584 if test "X$rpathdirs" != "X"; then
10585 if test -n "$hardcode_libdir_separator"; then
10586 alldirs=
10587 for found_dir in $rpathdirs; do
10588 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10589 done
10590 acl_save_libdir="$libdir"
10591 libdir="$alldirs"
10592 eval flag=\"$hardcode_libdir_flag_spec\"
10593 libdir="$acl_save_libdir"
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10595 else
10596 for found_dir in $rpathdirs; do
10597 acl_save_libdir="$libdir"
10598 libdir="$found_dir"
10599 eval flag=\"$hardcode_libdir_flag_spec\"
10600 libdir="$acl_save_libdir"
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10602 done
10603 fi
10604 fi
10605 if test "X$ltrpathdirs" != "X"; then
10606 for found_dir in $ltrpathdirs; do
10607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10608 done
10609 fi
10610
10611
10612
10613
10614
10615
10616
10617 am_save_CPPFLAGS="$CPPFLAGS"
10618
10619 for element in $INCICONV; do
10620 haveit=
10621 for x in $CPPFLAGS; do
10622
10623 acl_save_prefix="$prefix"
10624 prefix="$acl_final_prefix"
10625 acl_save_exec_prefix="$exec_prefix"
10626 exec_prefix="$acl_final_exec_prefix"
10627 eval x=\"$x\"
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10630
10631 if test "X$x" = "X$element"; then
10632 haveit=yes
10633 break
10634 fi
10635 done
10636 if test -z "$haveit"; then
10637 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10638 fi
10639 done
10640
10641
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10643 $as_echo_n "checking for iconv... " >&6; }
10644 if test "${am_cv_func_iconv+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647
10648 am_cv_func_iconv="no, consider installing GNU libiconv"
10649 am_cv_lib_iconv=no
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #include <stdlib.h>
10653 #include <iconv.h>
10654 int
10655 main ()
10656 {
10657 iconv_t cd = iconv_open("","");
10658 iconv(cd,NULL,NULL,NULL,NULL);
10659 iconv_close(cd);
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 if ac_fn_cxx_try_link "$LINENO"; then :
10665 am_cv_func_iconv=yes
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 if test "$am_cv_func_iconv" != yes; then
10670 am_save_LIBS="$LIBS"
10671 LIBS="$LIBS $LIBICONV"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <stdlib.h>
10675 #include <iconv.h>
10676 int
10677 main ()
10678 {
10679 iconv_t cd = iconv_open("","");
10680 iconv(cd,NULL,NULL,NULL,NULL);
10681 iconv_close(cd);
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_cxx_try_link "$LINENO"; then :
10687 am_cv_lib_iconv=yes
10688 am_cv_func_iconv=yes
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS="$am_save_LIBS"
10693 fi
10694
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10697 $as_echo "$am_cv_func_iconv" >&6; }
10698 if test "$am_cv_func_iconv" = yes; then
10699
10700 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10701
10702 fi
10703 if test "$am_cv_lib_iconv" = yes; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10705 $as_echo_n "checking how to link with libiconv... " >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10707 $as_echo "$LIBICONV" >&6; }
10708 else
10709 CPPFLAGS="$am_save_CPPFLAGS"
10710 LIBICONV=
10711 LTLIBICONV=
10712 fi
10713
10714
10715
10716 if test "$am_cv_func_iconv" = yes; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10718 $as_echo_n "checking for iconv declaration... " >&6; }
10719 if test "${am_cv_proto_iconv+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725
10726 #include <stdlib.h>
10727 #include <iconv.h>
10728 extern
10729 #ifdef __cplusplus
10730 "C"
10731 #endif
10732 #if defined(__STDC__) || defined(__cplusplus)
10733 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10734 #else
10735 size_t iconv();
10736 #endif
10737
10738 int
10739 main ()
10740 {
10741
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_cxx_try_compile "$LINENO"; then :
10747 am_cv_proto_iconv_arg1=""
10748 else
10749 am_cv_proto_iconv_arg1="const"
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 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);"
10753 fi
10754
10755 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10757 }$am_cv_proto_iconv" >&5
10758 $as_echo "${ac_t:-
10759 }$am_cv_proto_iconv" >&6; }
10760
10761 cat >>confdefs.h <<_ACEOF
10762 #define ICONV_CONST $am_cv_proto_iconv_arg1
10763 _ACEOF
10764
10765 fi
10766
10767
10768 # Until we have in-tree GNU iconv:
10769 LIBICONV_DEP=
10770 if test -f "$LTLIBICONV"; then
10771 LIBICONV_DEP=$LTLIBICONV
10772 fi
10773
10774
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10777 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10778 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <locale.h>
10784 int
10785 main ()
10786 {
10787 return LC_MESSAGES
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_cxx_try_link "$LINENO"; then :
10793 am_cv_val_LC_MESSAGES=yes
10794 else
10795 am_cv_val_LC_MESSAGES=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10801 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10802 if test $am_cv_val_LC_MESSAGES = yes; then
10803
10804 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10805
10806 fi
10807
10808
10809
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10812 if test "${am_cv_langinfo_codeset+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <langinfo.h>
10818 int
10819 main ()
10820 {
10821 char* cs = nl_langinfo(CODESET);
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_cxx_try_link "$LINENO"; then :
10827 am_cv_langinfo_codeset=yes
10828 else
10829 am_cv_langinfo_codeset=no
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10836 $as_echo "$am_cv_langinfo_codeset" >&6; }
10837 if test $am_cv_langinfo_codeset = yes; then
10838
10839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10840
10841 fi
10842
10843
10844 # We will need to find libiberty.h and ansidecl.h
10845 saved_CFLAGS="$CFLAGS"
10846 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10847 saved_CXXFLAGS="$CXXFLAGS"
10848 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10849
10850 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10851 # normal autoconf function for these. But force definition of
10852 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10853 # basename handling in libiberty.h.
10854 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10855 #undef HAVE_DECL_BASENAME
10856 #define HAVE_DECL_BASENAME 1
10857 #include \"ansidecl.h\"
10858 #include \"system.h\"
10859 "
10860 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10861 ac_have_decl=1
10862 else
10863 ac_have_decl=0
10864 fi
10865
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_DECL_BASENAME $ac_have_decl
10868 _ACEOF
10869 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10870 #undef HAVE_DECL_BASENAME
10871 #define HAVE_DECL_BASENAME 1
10872 #include \"ansidecl.h\"
10873 #include \"system.h\"
10874 "
10875 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10876 ac_have_decl=1
10877 else
10878 ac_have_decl=0
10879 fi
10880
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_DECL_STRSTR $ac_have_decl
10883 _ACEOF
10884
10885
10886 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10887 madvise stpcpy strnlen strsignal strverscmp \
10888 strtol strtoul strtoll strtoull \
10889 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10890 free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10891 do
10892 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10895 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 #undef $ac_tr_decl
10901 #define $ac_tr_decl 1
10902
10903 #include "ansidecl.h"
10904 #include "system.h"
10905
10906 int
10907 main ()
10908 {
10909 #ifndef $ac_func
10910 char *(*pfn) = (char *(*)) $ac_func ;
10911 #endif
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_cxx_try_compile "$LINENO"; then :
10917 eval "gcc_cv_have_decl_$ac_func=yes"
10918 else
10919 eval "gcc_cv_have_decl_$ac_func=no"
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 fi
10923
10924 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10927 #define $ac_tr_decl 1
10928 _ACEOF
10929
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10933 #define $ac_tr_decl 0
10934 _ACEOF
10935
10936 fi
10937
10938 done
10939
10940
10941 for ac_func in getrlimit setrlimit getrusage
10942 do
10943 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10945 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10946 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 #undef $ac_tr_decl
10952 #define $ac_tr_decl 1
10953
10954 #include "ansidecl.h"
10955 #include "system.h"
10956 #ifdef HAVE_SYS_RESOURCE_H
10957 #include <sys/resource.h>
10958 #endif
10959
10960
10961 int
10962 main ()
10963 {
10964 #ifndef $ac_func
10965 char *(*pfn) = (char *(*)) $ac_func ;
10966 #endif
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_cxx_try_compile "$LINENO"; then :
10972 eval "gcc_cv_have_decl_$ac_func=yes"
10973 else
10974 eval "gcc_cv_have_decl_$ac_func=no"
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 fi
10978
10979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10982 #define $ac_tr_decl 1
10983 _ACEOF
10984
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10988 #define $ac_tr_decl 0
10989 _ACEOF
10990
10991 fi
10992
10993 done
10994
10995
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 #include "ansidecl.h"
11000 #include "system.h"
11001 #ifdef HAVE_SYS_RESOURCE_H
11002 #include <sys/resource.h>
11003 #endif
11004
11005 int
11006 main ()
11007 {
11008 rlim_t l = 0;
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_cxx_try_compile "$LINENO"; then :
11014
11015 else
11016
11017 $as_echo "#define rlim_t long" >>confdefs.h
11018
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021
11022 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11023 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11024 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11025 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11026 for ac_func in ldgetname
11027 do
11028 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11030 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11031 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 #undef $ac_tr_decl
11037 #define $ac_tr_decl 1
11038
11039 #include "ansidecl.h"
11040 #include "system.h"
11041 #ifdef HAVE_LDFCN_H
11042 #undef FREAD
11043 #undef FWRITE
11044 #include <ldfcn.h>
11045 #endif
11046
11047
11048 int
11049 main ()
11050 {
11051 #ifndef $ac_func
11052 char *(*pfn) = (char *(*)) $ac_func ;
11053 #endif
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_cxx_try_compile "$LINENO"; then :
11059 eval "gcc_cv_have_decl_$ac_func=yes"
11060 else
11061 eval "gcc_cv_have_decl_$ac_func=no"
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 fi
11065
11066 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11069 #define $ac_tr_decl 1
11070 _ACEOF
11071
11072 else
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11075 #define $ac_tr_decl 0
11076 _ACEOF
11077
11078 fi
11079
11080 done
11081
11082
11083 for ac_func in times
11084 do
11085 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11087 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11088 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #undef $ac_tr_decl
11094 #define $ac_tr_decl 1
11095
11096 #include "ansidecl.h"
11097 #include "system.h"
11098 #ifdef HAVE_SYS_TIMES_H
11099 #include <sys/times.h>
11100 #endif
11101
11102
11103 int
11104 main ()
11105 {
11106 #ifndef $ac_func
11107 char *(*pfn) = (char *(*)) $ac_func ;
11108 #endif
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_cxx_try_compile "$LINENO"; then :
11114 eval "gcc_cv_have_decl_$ac_func=yes"
11115 else
11116 eval "gcc_cv_have_decl_$ac_func=no"
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 fi
11120
11121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11124 #define $ac_tr_decl 1
11125 _ACEOF
11126
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11130 #define $ac_tr_decl 0
11131 _ACEOF
11132
11133 fi
11134
11135 done
11136
11137
11138 for ac_func in sigaltstack
11139 do
11140 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11142 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11143 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 #undef $ac_tr_decl
11149 #define $ac_tr_decl 1
11150
11151 #include "ansidecl.h"
11152 #include "system.h"
11153 #include <signal.h>
11154
11155
11156 int
11157 main ()
11158 {
11159 #ifndef $ac_func
11160 char *(*pfn) = (char *(*)) $ac_func ;
11161 #endif
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_cxx_try_compile "$LINENO"; then :
11167 eval "gcc_cv_have_decl_$ac_func=yes"
11168 else
11169 eval "gcc_cv_have_decl_$ac_func=no"
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 fi
11173
11174 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11177 #define $ac_tr_decl 1
11178 _ACEOF
11179
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11183 #define $ac_tr_decl 0
11184 _ACEOF
11185
11186 fi
11187
11188 done
11189
11190
11191 # More time-related stuff.
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11193 $as_echo_n "checking for struct tms... " >&6; }
11194 if test "${ac_cv_struct_tms+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 #include "ansidecl.h"
11202 #include "system.h"
11203 #ifdef HAVE_SYS_TIMES_H
11204 #include <sys/times.h>
11205 #endif
11206
11207 int
11208 main ()
11209 {
11210 struct tms tms;
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_cxx_try_compile "$LINENO"; then :
11216 ac_cv_struct_tms=yes
11217 else
11218 ac_cv_struct_tms=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11223 $as_echo "$ac_cv_struct_tms" >&6; }
11224 if test $ac_cv_struct_tms = yes; then
11225
11226 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11227
11228 fi
11229
11230 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11231 # revisit after autoconf 2.50.
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11233 $as_echo_n "checking for clock_t... " >&6; }
11234 if test "${gcc_cv_type_clock_t+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 #include "ansidecl.h"
11242 #include "system.h"
11243
11244 int
11245 main ()
11246 {
11247 clock_t x;
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_cxx_try_compile "$LINENO"; then :
11253 gcc_cv_type_clock_t=yes
11254 else
11255 gcc_cv_type_clock_t=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11260 $as_echo "$gcc_cv_type_clock_t" >&6; }
11261 if test $gcc_cv_type_clock_t = yes; then
11262
11263 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11264
11265 fi
11266
11267 # Check if F_SETLKW is supported by fcntl.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11269 $as_echo_n "checking for F_SETLKW... " >&6; }
11270 if test "${ac_cv_f_setlkw+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276
11277 #include <fcntl.h>
11278 int
11279 main ()
11280 {
11281
11282 struct flock fl;
11283 fl.l_whence = 0;
11284 fl.l_start = 0;
11285 fl.l_len = 0;
11286 fl.l_pid = 0;
11287 return fcntl (1, F_SETLKW, &fl);
11288 ;
11289 return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_cxx_try_compile "$LINENO"; then :
11293 ac_cv_f_setlkw=yes
11294 else
11295 ac_cv_f_setlkw=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11300 $as_echo "$ac_cv_f_setlkw" >&6; }
11301 if test $ac_cv_f_setlkw = yes; then
11302
11303 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11304
11305 fi
11306
11307 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11308 CFLAGS="$saved_CFLAGS"
11309 CXXFLAGS="$saved_CXXFLAGS"
11310
11311 # mkdir takes a single argument on some systems.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11313 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11314 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319
11320 #include <sys/types.h>
11321 #ifdef HAVE_SYS_STAT_H
11322 # include <sys/stat.h>
11323 #endif
11324 #ifdef HAVE_UNISTD_H
11325 # include <unistd.h>
11326 #endif
11327 #ifdef HAVE_DIRECT_H
11328 # include <direct.h>
11329 #endif
11330 int
11331 main ()
11332 {
11333 mkdir ("foo", 0);
11334 ;
11335 return 0;
11336 }
11337 _ACEOF
11338 if ac_fn_cxx_try_compile "$LINENO"; then :
11339 gcc_cv_mkdir_takes_one_arg=no
11340 else
11341 gcc_cv_mkdir_takes_one_arg=yes
11342 fi
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11346 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11347 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11348
11349 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11350
11351 fi
11352
11353
11354 # File extensions
11355 manext='.1'
11356 objext='.o'
11357
11358
11359
11360 # With Setjmp/Longjmp based exception handling.
11361 # Check whether --enable-sjlj-exceptions was given.
11362 if test "${enable_sjlj_exceptions+set}" = set; then :
11363 enableval=$enable_sjlj_exceptions; case $target in
11364 *-*-hpux10*)
11365 if test $enableval != yes; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11367 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11368 enableval=yes
11369 fi
11370 ;;
11371 esac
11372 force_sjlj_exceptions=yes
11373 else
11374 case $target in
11375 *-*-hpux10*)
11376 force_sjlj_exceptions=yes
11377 enableval=yes
11378 ;;
11379 lm32*-*-*)
11380 force_sjlj_exceptions=yes
11381 enableval=yes
11382 ;;
11383 *)
11384 force_sjlj_exceptions=no
11385 ;;
11386 esac
11387 fi
11388
11389 if test $force_sjlj_exceptions = yes; then
11390 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11391
11392 cat >>confdefs.h <<_ACEOF
11393 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11394 _ACEOF
11395
11396 fi
11397
11398 # --------------------------------------------------------
11399 # Build, host, and target specific configuration fragments
11400 # --------------------------------------------------------
11401
11402 # Collect build-machine-specific information.
11403 . ${srcdir}/config.build
11404
11405 # Collect host-machine-specific information.
11406 . ${srcdir}/config.host
11407
11408 target_gtfiles=
11409
11410 # Collect target-machine-specific information.
11411 . ${srcdir}/config.gcc
11412
11413 extra_objs="${host_extra_objs} ${extra_objs}"
11414 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11415
11416 # Default the target-machine variables that were not explicitly set.
11417 if test x"$tm_file" = x
11418 then tm_file=$cpu_type/$cpu_type.h; fi
11419
11420 if test x"$extra_headers" = x
11421 then extra_headers=; fi
11422
11423 if test x$md_file = x
11424 then md_file=$cpu_type/$cpu_type.md; fi
11425
11426 if test x$out_file = x
11427 then out_file=$cpu_type/$cpu_type.c; fi
11428
11429 if test x"$tmake_file" = x
11430 then tmake_file=$cpu_type/t-$cpu_type
11431 fi
11432
11433 # Support --enable-initfini-array.
11434 if test x$enable_initfini_array != xno; then
11435 tm_file="${tm_file} initfini-array.h"
11436 fi
11437
11438 if test x"$dwarf2" = xyes
11439 then tm_file="$tm_file tm-dwarf2.h"
11440 fi
11441
11442 # Say what files are being used for the output code and MD file.
11443 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11444 echo "Using \`$srcdir/config/$md_file' as machine description file."
11445
11446 # If any of the xm_file variables contain nonexistent files, warn
11447 # about them and drop them.
11448
11449 bx=
11450 for x in $build_xm_file; do
11451 if test -f $srcdir/config/$x
11452 then bx="$bx $x"
11453 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11454 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11455 fi
11456 done
11457 build_xm_file="$bx"
11458
11459 hx=
11460 for x in $host_xm_file; do
11461 if test -f $srcdir/config/$x
11462 then hx="$hx $x"
11463 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11464 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11465 fi
11466 done
11467 host_xm_file="$hx"
11468
11469 tx=
11470 for x in $xm_file; do
11471 if test -f $srcdir/config/$x
11472 then tx="$tx $x"
11473 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11474 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11475 fi
11476 done
11477 xm_file="$tx"
11478
11479 count=a
11480 for f in $tm_file; do
11481 count=${count}x
11482 done
11483 if test $count = ax; then
11484 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11485 else
11486 echo "Using the following target machine macro files:"
11487 for f in $tm_file; do
11488 echo " $srcdir/config/$f"
11489 done
11490 fi
11491
11492 if test x$use_long_long_for_widest_fast_int = xyes; then
11493
11494 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11495
11496 fi
11497
11498 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11499
11500 cat >>confdefs.h <<_ACEOF
11501 #define HAVE_GNU_LD $gnu_ld_bool
11502 _ACEOF
11503
11504
11505 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define HAVE_GNU_AS $gnu_as_bool
11509 _ACEOF
11510
11511
11512 count=a
11513 for f in $host_xm_file; do
11514 count=${count}x
11515 done
11516 if test $count = a; then
11517 :
11518 elif test $count = ax; then
11519 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11520 else
11521 echo "Using the following host machine macro files:"
11522 for f in $host_xm_file; do
11523 echo " $srcdir/config/$f"
11524 done
11525 fi
11526 echo "Using ${out_host_hook_obj} for host machine hooks."
11527
11528 if test "$host_xm_file" != "$build_xm_file"; then
11529 count=a
11530 for f in $build_xm_file; do
11531 count=${count}x
11532 done
11533 if test $count = a; then
11534 :
11535 elif test $count = ax; then
11536 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11537 else
11538 echo "Using the following build machine macro files:"
11539 for f in $build_xm_file; do
11540 echo " $srcdir/config/$f"
11541 done
11542 fi
11543 fi
11544
11545 if test -n "$configured_native_system_header_dir"; then
11546 native_system_header_dir=$configured_native_system_header_dir
11547 fi
11548 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11549
11550
11551 case ${host} in
11552 powerpc*-*-darwin*)
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11554 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11555 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560
11561 #include <sys/cdefs.h>
11562 #include <sys/signal.h>
11563 #include <ucontext.h>
11564 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11565
11566 _ACEOF
11567 if ac_fn_cxx_try_compile "$LINENO"; then :
11568 gcc_cv_mcontext_underscores=no
11569 else
11570 gcc_cv_mcontext_underscores=yes
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11575 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11576 if test $gcc_cv_mcontext_underscores = yes; then
11577
11578 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11579
11580 fi
11581 ;;
11582 esac
11583
11584 # ---------
11585 # Threading
11586 # ---------
11587
11588 # Check if a valid thread package
11589 case ${enable_threads} in
11590 "" | no)
11591 # No threads
11592 target_thread_file='single'
11593 ;;
11594 yes)
11595 # default
11596 target_thread_file='single'
11597 ;;
11598 aix | dce | lynx | mipssde | posix | rtems | \
11599 single | tpf | vxworks | win32)
11600 target_thread_file=${enable_threads}
11601 ;;
11602 *)
11603 echo "${enable_threads} is an unknown thread package" 1>&2
11604 exit 1
11605 ;;
11606 esac
11607
11608 if test x${thread_file} = x; then
11609 # No thread file set by target-specific clauses in config.gcc,
11610 # so use file chosen by default logic above
11611 thread_file=${target_thread_file}
11612 fi
11613
11614 # --------
11615 # UNSORTED
11616 # --------
11617
11618 use_cxa_atexit=no
11619 if test x$enable___cxa_atexit = xyes || \
11620 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11621 if test x$host = x$target; then
11622 case $host in
11623 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11624 # keyed to flag_use_cxa_atexit
11625 *-*-mingw32*)
11626 use_cxa_atexit=yes
11627 ;;
11628 powerpc-ibm-aix*)
11629 use_cxa_atexit=yes
11630 ;;
11631 *)
11632 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11633 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11634 use_cxa_atexit=yes
11635 else
11636 echo "__cxa_atexit can't be enabled on this target"
11637 fi
11638
11639 ;;
11640 esac
11641 else
11642 # We can't check for __cxa_atexit when building a cross, so assume
11643 # it is available
11644 use_cxa_atexit=yes
11645 fi
11646 if test x$use_cxa_atexit = xyes; then
11647
11648 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11649
11650 fi
11651 fi
11652
11653 # Look for a file containing extra machine modes.
11654 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11655 extra_modes_file='$(srcdir)'/config/${extra_modes}
11656
11657
11658 cat >>confdefs.h <<_ACEOF
11659 #define EXTRA_MODES_FILE "config/$extra_modes"
11660 _ACEOF
11661
11662 fi
11663
11664 # Convert extra_options into a form suitable for Makefile use.
11665 extra_opt_files=
11666 all_opt_files=
11667 for f in $extra_options; do
11668 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11669 all_opt_files="$all_opt_files $srcdir/config/$f"
11670 done
11671
11672
11673 # auto-host.h is the file containing items generated by autoconf and is
11674 # the first file included by config.h.
11675 # If host=build, it is correct to have bconfig include auto-host.h
11676 # as well. If host!=build, we are in error and need to do more
11677 # work to find out the build config parameters.
11678 if test x$host = x$build
11679 then
11680 build_auto=auto-host.h
11681 else
11682 # We create a subdir, then run autoconf in the subdir.
11683 # To prevent recursion we set host and build for the new
11684 # invocation of configure to the build for this invocation
11685 # of configure.
11686 tempdir=build.$$
11687 rm -rf $tempdir
11688 mkdir $tempdir
11689 cd $tempdir
11690 case ${srcdir} in
11691 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11692 *) realsrcdir=../${srcdir};;
11693 esac
11694 # Clearing GMPINC is necessary to prevent host headers being
11695 # used by the build compiler. Defining GENERATOR_FILE stops
11696 # system.h from including gmp.h.
11697 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11698 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11699 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11700 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11701 ${realsrcdir}/configure \
11702 --enable-languages=${enable_languages-all} \
11703 --target=$target_alias --host=$build_alias --build=$build_alias
11704
11705 # We just finished tests for the build machine, so rename
11706 # the file auto-build.h in the gcc directory.
11707 mv auto-host.h ../auto-build.h
11708 cd ..
11709 rm -rf $tempdir
11710 build_auto=auto-build.h
11711 fi
11712
11713
11714 tm_file="${tm_file} defaults.h"
11715 tm_p_file="${tm_p_file} tm-preds.h"
11716 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11717 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11718 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11719 # put this back in temporarily.
11720 xm_file="auto-host.h ansidecl.h ${xm_file}"
11721
11722 # --------
11723 # UNSORTED
11724 # --------
11725
11726 # Compile in configure arguments.
11727 if test -f configargs.h ; then
11728 # Being re-configured.
11729 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11730 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11731 else
11732 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11733 fi
11734
11735 # Double all backslashes and backslash all quotes to turn
11736 # gcc_config_arguments into a C string.
11737 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11738 $gcc_config_arguments
11739 EOF
11740 gcc_config_arguments_str=`cat conftest.out`
11741 rm -f conftest.out
11742
11743 cat > configargs.h <<EOF
11744 /* Generated automatically. */
11745 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11746 static const char thread_model[] = "$thread_file";
11747
11748 static const struct {
11749 const char *name, *value;
11750 } configure_default_options[] = $configure_default_options;
11751 EOF
11752
11753 gcc_BASEVER=`cat $srcdir/BASE-VER`
11754 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11755 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11756 if test -f $srcdir/REVISION ; then
11757 gcc_REVISION=`cat $srcdir/REVISION`
11758 else
11759 gcc_REVISION=""
11760 fi
11761 cat > plugin-version.h <<EOF
11762 #include "configargs.h"
11763
11764 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11765 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11766 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11767 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11768
11769 static char basever[] = "$gcc_BASEVER";
11770 static char datestamp[] = "$gcc_DATESTAMP";
11771 static char devphase[] = "$gcc_DEVPHASE";
11772 static char revision[] = "$gcc_REVISION";
11773
11774 /* FIXME plugins: We should make the version information more precise.
11775 One way to do is to add a checksum. */
11776
11777 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11778 devphase, revision,
11779 configuration_arguments};
11780 EOF
11781
11782 # Internationalization
11783 # If we haven't got the data from the intl directory,
11784 # assume NLS is disabled.
11785 USE_NLS=no
11786 LIBINTL=
11787 LIBINTL_DEP=
11788 INCINTL=
11789 XGETTEXT=
11790 GMSGFMT=
11791 POSUB=
11792
11793 if test -f ../intl/config.intl; then
11794 . ../intl/config.intl
11795 fi
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11797 $as_echo_n "checking whether NLS is requested... " >&6; }
11798 if test x"$USE_NLS" != xyes; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11804
11805 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11806
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11809 $as_echo_n "checking for catalogs to be installed... " >&6; }
11810 # Look for .po and .gmo files in the source directory.
11811 CATALOGS=
11812 XLINGUAS=
11813 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11814 # If there aren't any .gmo files the shell will give us the
11815 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11816 # weeded out.
11817 case "$cat" in *\**)
11818 continue;;
11819 esac
11820 # The quadruple backslash is collapsed to a double backslash
11821 # by the backticks, then collapsed again by the double quotes,
11822 # leaving us with one backslash in the sed expression (right
11823 # before the dot that mustn't act as a wildcard).
11824 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11825 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11826 # The user is allowed to set LINGUAS to a list of languages to
11827 # install catalogs for. If it's empty that means "all of them."
11828 if test "x$LINGUAS" = x; then
11829 CATALOGS="$CATALOGS $cat"
11830 XLINGUAS="$XLINGUAS $lang"
11831 else
11832 case "$LINGUAS" in *$lang*)
11833 CATALOGS="$CATALOGS $cat"
11834 XLINGUAS="$XLINGUAS $lang"
11835 ;;
11836 esac
11837 fi
11838 done
11839 LINGUAS="$XLINGUAS"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11841 $as_echo "$LINGUAS" >&6; }
11842
11843
11844 DATADIRNAME=share
11845
11846 INSTOBJEXT=.mo
11847
11848 GENCAT=gencat
11849
11850 CATOBJEXT=.gmo
11851
11852 fi
11853
11854 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11855 # -liconv on the link line twice.
11856 case "$LIBINTL" in *$LIBICONV*)
11857 LIBICONV= ;;
11858 esac
11859
11860 # Check whether --enable-secureplt was given.
11861 if test "${enable_secureplt+set}" = set; then :
11862 enableval=$enable_secureplt;
11863 fi
11864
11865
11866 # Check whether --enable-leading-mingw64-underscores was given.
11867 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11868 enableval=$enable_leading_mingw64_underscores;
11869 fi
11870
11871 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11872
11873 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11874
11875 fi
11876
11877 # Check whether --enable-cld was given.
11878 if test "${enable_cld+set}" = set; then :
11879 enableval=$enable_cld;
11880 else
11881 enable_cld=no
11882 fi
11883
11884
11885 # Check whether --enable-frame-pointer was given.
11886 if test "${enable_frame_pointer+set}" = set; then :
11887 enableval=$enable_frame_pointer;
11888 else
11889
11890 case $target_os in
11891 linux* | darwin[8912]*)
11892 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11893 # DWARF2.
11894 enable_frame_pointer=no
11895 ;;
11896 *)
11897 enable_frame_pointer=yes
11898 ;;
11899 esac
11900
11901 fi
11902
11903
11904 # Windows32 Registry support for specifying GCC installation paths.
11905 # Check whether --enable-win32-registry was given.
11906 if test "${enable_win32_registry+set}" = set; then :
11907 enableval=$enable_win32_registry;
11908 fi
11909
11910
11911 case $host_os in
11912 win32 | pe | cygwin* | mingw32* | uwin*)
11913 if test "x$enable_win32_registry" != xno; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11915 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11916 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 ac_func_search_save_LIBS=$LIBS
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char RegOpenKeyExA ();
11930 int
11931 main ()
11932 {
11933 return RegOpenKeyExA ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 for ac_lib in '' advapi32; do
11939 if test -z "$ac_lib"; then
11940 ac_res="none required"
11941 else
11942 ac_res=-l$ac_lib
11943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11944 fi
11945 if ac_fn_cxx_try_link "$LINENO"; then :
11946 ac_cv_search_RegOpenKeyExA=$ac_res
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext
11950 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11951 break
11952 fi
11953 done
11954 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11955
11956 else
11957 ac_cv_search_RegOpenKeyExA=no
11958 fi
11959 rm conftest.$ac_ext
11960 LIBS=$ac_func_search_save_LIBS
11961 fi
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11963 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11964 ac_res=$ac_cv_search_RegOpenKeyExA
11965 if test "$ac_res" != no; then :
11966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11967
11968 else
11969 enable_win32_registry=no
11970 fi
11971
11972 fi
11973
11974 if test "x$enable_win32_registry" != xno; then
11975
11976 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11977
11978
11979 if test "x$enable_win32_registry" != xyes \
11980 && test "x$enable_win32_registry" != x; then
11981
11982 cat >>confdefs.h <<_ACEOF
11983 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11984 _ACEOF
11985
11986 fi
11987 fi
11988 ;;
11989 esac
11990
11991 # Get an absolute path to the GCC top-level source directory
11992 holddir=`${PWDCMD-pwd}`
11993 cd $srcdir
11994 topdir=`${PWDCMD-pwd}`
11995 cd $holddir
11996
11997 # Conditionalize the makefile for this host machine.
11998 xmake_file=
11999 for f in ${host_xmake_file}
12000 do
12001 if test -f ${srcdir}/config/$f
12002 then
12003 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12004 fi
12005 done
12006
12007 # Conditionalize the makefile for this target machine.
12008 tmake_file_=
12009 for f in ${tmake_file}
12010 do
12011 if test -f ${srcdir}/config/$f
12012 then
12013 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12014 fi
12015 done
12016 tmake_file="${tmake_file_}"
12017
12018 out_object_file=`basename $out_file .c`.o
12019 common_out_object_file=`basename $common_out_file .c`.o
12020
12021 tm_file_list="options.h"
12022 tm_include_list="options.h insn-constants.h"
12023 for f in $tm_file; do
12024 case $f in
12025 ./* )
12026 f=`echo $f | sed 's/^..//'`
12027 tm_file_list="${tm_file_list} $f"
12028 tm_include_list="${tm_include_list} $f"
12029 ;;
12030 defaults.h )
12031 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12032 tm_include_list="${tm_include_list} $f"
12033 ;;
12034 * )
12035 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12036 tm_include_list="${tm_include_list} config/$f"
12037 ;;
12038 esac
12039 done
12040
12041 tm_p_file_list=
12042 tm_p_include_list=
12043 for f in $tm_p_file; do
12044 case $f in
12045 tm-preds.h )
12046 tm_p_file_list="${tm_p_file_list} $f"
12047 tm_p_include_list="${tm_p_include_list} $f"
12048 ;;
12049 * )
12050 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12051 tm_p_include_list="${tm_p_include_list} config/$f"
12052 esac
12053 done
12054
12055 xm_file_list=
12056 xm_include_list=
12057 for f in $xm_file; do
12058 case $f in
12059 ansidecl.h )
12060 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12061 xm_include_list="${xm_include_list} $f"
12062 ;;
12063 auto-host.h )
12064 xm_file_list="${xm_file_list} $f"
12065 xm_include_list="${xm_include_list} $f"
12066 ;;
12067 * )
12068 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12069 xm_include_list="${xm_include_list} config/$f"
12070 ;;
12071 esac
12072 done
12073
12074 host_xm_file_list=
12075 host_xm_include_list=
12076 for f in $host_xm_file; do
12077 case $f in
12078 ansidecl.h )
12079 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12080 host_xm_include_list="${host_xm_include_list} $f"
12081 ;;
12082 auto-host.h )
12083 host_xm_file_list="${host_xm_file_list} $f"
12084 host_xm_include_list="${host_xm_include_list} $f"
12085 ;;
12086 * )
12087 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12088 host_xm_include_list="${host_xm_include_list} config/$f"
12089 ;;
12090 esac
12091 done
12092
12093 build_xm_file_list=
12094 for f in $build_xm_file; do
12095 case $f in
12096 ansidecl.h )
12097 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12098 build_xm_include_list="${build_xm_include_list} $f"
12099 ;;
12100 auto-build.h | auto-host.h )
12101 build_xm_file_list="${build_xm_file_list} $f"
12102 build_xm_include_list="${build_xm_include_list} $f"
12103 ;;
12104 * )
12105 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12106 build_xm_include_list="${build_xm_include_list} config/$f"
12107 ;;
12108 esac
12109 done
12110
12111 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12112 # cross-compiler which does not use the native headers and libraries.
12113 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12114 CROSS=
12115 ALL=all.internal
12116 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12117
12118 if test "x$with_build_sysroot" != x; then
12119 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12120 else
12121 # This value is used, even on a native system, because
12122 # CROSS_SYSTEM_HEADER_DIR is just
12123 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12124 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12125 fi
12126
12127 if test x$host != x$target
12128 then
12129 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12130 ALL=all.cross
12131 SYSTEM_HEADER_DIR=$build_system_header_dir
12132 case "$host","$target" in
12133 # Darwin crosses can use the host system's libraries and headers,
12134 # because of the fat library support. Of course, it must be the
12135 # same version of Darwin on both sides. Allow the user to
12136 # just say --target=foo-darwin without a version number to mean
12137 # "the version on this system".
12138 *-*-darwin*,*-*-darwin*)
12139 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12140 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12141 if test $hostos = $targetos -o $targetos = darwin ; then
12142 CROSS=
12143 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12144 with_headers=yes
12145 fi
12146 ;;
12147
12148 i?86-*-*,x86_64-*-* \
12149 | powerpc*-*-*,powerpc64*-*-*)
12150 CROSS="$CROSS -DNATIVE_CROSS" ;;
12151 esac
12152
12153 case $target in
12154 *-*-mingw*)
12155 if test "x$with_headers" = x; then
12156 with_headers=yes
12157 fi
12158 ;;
12159 *)
12160 ;;
12161 esac
12162 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12163 SYSTEM_HEADER_DIR=$build_system_header_dir
12164 fi
12165
12166 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12167 if test "x$with_headers" != x; then
12168 target_header_dir=$with_headers
12169 elif test "x$with_sysroot" = x; then
12170 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12171 elif test "x$with_build_sysroot" != "x"; then
12172 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12173 elif test "x$with_sysroot" = xyes; then
12174 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12175 else
12176 target_header_dir="${with_sysroot}${native_system_header_dir}"
12177 fi
12178 else
12179 target_header_dir=${native_system_header_dir}
12180 fi
12181
12182 # If this is a cross-compiler that does not
12183 # have its own set of headers then define
12184 # inhibit_libc
12185
12186 # If this is using newlib, without having the headers available now,
12187 # then define inhibit_libc in LIBGCC2_CFLAGS.
12188 # This prevents libgcc2 from containing any code which requires libc
12189 # support.
12190 : ${inhibit_libc=false}
12191 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12192 test x$with_newlib = xyes ; } &&
12193 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12194 inhibit_libc=true
12195 fi
12196
12197
12198 # When building gcc with a cross-compiler, we need to adjust things so
12199 # that the generator programs are still built with the native compiler.
12200 # Also, we cannot run fixincludes.
12201
12202 # These are the normal (build=host) settings:
12203 CC_FOR_BUILD='$(CC)'
12204 CXX_FOR_BUILD='$(CXX)'
12205 BUILD_CFLAGS='$(ALL_CFLAGS)'
12206 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12207 BUILD_LDFLAGS='$(LDFLAGS)'
12208 STMP_FIXINC=stmp-fixinc
12209
12210 # And these apply if build != host, or we are generating coverage data
12211 if test x$build != x$host || test "x$coverage_flags" != x
12212 then
12213 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12214 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12215 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12216 fi
12217
12218 # Expand extra_headers to include complete path.
12219 # This substitutes for lots of t-* files.
12220 extra_headers_list=
12221 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12222 for file in ${extra_headers} ; do
12223 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12224 done
12225
12226 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12227 if test x"$use_gcc_tgmath" = xyes
12228 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12229 fi
12230
12231 # Define collect2 in Makefile.
12232 case $host_can_use_collect2 in
12233 no) collect2= ;;
12234 *) collect2='collect2$(exeext)' ;;
12235 esac
12236
12237
12238 # Add a definition of USE_COLLECT2 if system wants one.
12239 case $use_collect2 in
12240 no) use_collect2= ;;
12241 "") ;;
12242 *)
12243 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12244 xm_defines="${xm_defines} USE_COLLECT2"
12245 case $host_can_use_collect2 in
12246 no)
12247 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12248 ;;
12249 esac
12250 ;;
12251 esac
12252
12253
12254 cat >>confdefs.h <<_ACEOF
12255 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12256 _ACEOF
12257
12258
12259 # ---------------------------
12260 # Assembler & linker features
12261 # ---------------------------
12262
12263 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12264 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12265 # However when ld-new is first executed from the build tree, libtool will
12266 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12267 # to the build tree. While doing this we need to use the previous-stage
12268 # linker, or we have an infinite loop. The presence of a shell script as
12269 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12270 # the gcc/collect-ld script. So we need to know how libtool works, or
12271 # exec-tool will fail.
12272
12273
12274 case `pwd` in
12275 *\ * | *\ *)
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12277 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12278 esac
12279
12280
12281
12282 macro_version='2.2.7a'
12283 macro_revision='1.3134'
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297 ltmain="$ac_aux_dir/ltmain.sh"
12298
12299 # Backslashify metacharacters that are still active within
12300 # double-quoted strings.
12301 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12302
12303 # Same as above, but do not quote variable references.
12304 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12305
12306 # Sed substitution to delay expansion of an escaped shell variable in a
12307 # double_quote_subst'ed string.
12308 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12309
12310 # Sed substitution to delay expansion of an escaped single quote.
12311 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12312
12313 # Sed substitution to avoid accidental globbing in evaled expressions
12314 no_glob_subst='s/\*/\\\*/g'
12315
12316 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12317 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12318 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12321 $as_echo_n "checking how to print strings... " >&6; }
12322 # Test print first, because it will be a builtin if present.
12323 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12324 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12325 ECHO='print -r --'
12326 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12327 ECHO='printf %s\n'
12328 else
12329 # Use this function as a fallback that always works.
12330 func_fallback_echo ()
12331 {
12332 eval 'cat <<_LTECHO_EOF
12333 $1
12334 _LTECHO_EOF'
12335 }
12336 ECHO='func_fallback_echo'
12337 fi
12338
12339 # func_echo_all arg...
12340 # Invoke $ECHO with all args, space-separated.
12341 func_echo_all ()
12342 {
12343 $ECHO ""
12344 }
12345
12346 case "$ECHO" in
12347 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12348 $as_echo "printf" >&6; } ;;
12349 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12350 $as_echo "print -r" >&6; } ;;
12351 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12352 $as_echo "cat" >&6; } ;;
12353 esac
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12369 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12370 if test "${ac_cv_path_SED+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12374 for ac_i in 1 2 3 4 5 6 7; do
12375 ac_script="$ac_script$as_nl$ac_script"
12376 done
12377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12378 { ac_script=; unset ac_script;}
12379 if test -z "$SED"; then
12380 ac_path_SED_found=false
12381 # Loop through the user's path and test for each of PROGNAME-LIST
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_prog in sed gsed; do
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12390 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12391 # Check for GNU ac_path_SED and select it if it is found.
12392 # Check for GNU $ac_path_SED
12393 case `"$ac_path_SED" --version 2>&1` in
12394 *GNU*)
12395 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12396 *)
12397 ac_count=0
12398 $as_echo_n 0123456789 >"conftest.in"
12399 while :
12400 do
12401 cat "conftest.in" "conftest.in" >"conftest.tmp"
12402 mv "conftest.tmp" "conftest.in"
12403 cp "conftest.in" "conftest.nl"
12404 $as_echo '' >> "conftest.nl"
12405 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12407 as_fn_arith $ac_count + 1 && ac_count=$as_val
12408 if test $ac_count -gt ${ac_path_SED_max-0}; then
12409 # Best one so far, save it but keep looking for a better one
12410 ac_cv_path_SED="$ac_path_SED"
12411 ac_path_SED_max=$ac_count
12412 fi
12413 # 10*(2^10) chars as input seems more than enough
12414 test $ac_count -gt 10 && break
12415 done
12416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12417 esac
12418
12419 $ac_path_SED_found && break 3
12420 done
12421 done
12422 done
12423 IFS=$as_save_IFS
12424 if test -z "$ac_cv_path_SED"; then
12425 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12426 fi
12427 else
12428 ac_cv_path_SED=$SED
12429 fi
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12433 $as_echo "$ac_cv_path_SED" >&6; }
12434 SED="$ac_cv_path_SED"
12435 rm -f conftest.sed
12436
12437 test -z "$SED" && SED=sed
12438 Xsed="$SED -e 1s/^X//"
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12451 $as_echo_n "checking for fgrep... " >&6; }
12452 if test "${ac_cv_path_FGREP+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12456 then ac_cv_path_FGREP="$GREP -F"
12457 else
12458 if test -z "$FGREP"; then
12459 ac_path_FGREP_found=false
12460 # Loop through the user's path and test for each of PROGNAME-LIST
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12463 do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_prog in fgrep; do
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12469 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12470 # Check for GNU ac_path_FGREP and select it if it is found.
12471 # Check for GNU $ac_path_FGREP
12472 case `"$ac_path_FGREP" --version 2>&1` in
12473 *GNU*)
12474 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12475 *)
12476 ac_count=0
12477 $as_echo_n 0123456789 >"conftest.in"
12478 while :
12479 do
12480 cat "conftest.in" "conftest.in" >"conftest.tmp"
12481 mv "conftest.tmp" "conftest.in"
12482 cp "conftest.in" "conftest.nl"
12483 $as_echo 'FGREP' >> "conftest.nl"
12484 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12486 as_fn_arith $ac_count + 1 && ac_count=$as_val
12487 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12488 # Best one so far, save it but keep looking for a better one
12489 ac_cv_path_FGREP="$ac_path_FGREP"
12490 ac_path_FGREP_max=$ac_count
12491 fi
12492 # 10*(2^10) chars as input seems more than enough
12493 test $ac_count -gt 10 && break
12494 done
12495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12496 esac
12497
12498 $ac_path_FGREP_found && break 3
12499 done
12500 done
12501 done
12502 IFS=$as_save_IFS
12503 if test -z "$ac_cv_path_FGREP"; then
12504 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12505 fi
12506 else
12507 ac_cv_path_FGREP=$FGREP
12508 fi
12509
12510 fi
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12513 $as_echo "$ac_cv_path_FGREP" >&6; }
12514 FGREP="$ac_cv_path_FGREP"
12515
12516
12517 test -z "$GREP" && GREP=grep
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537 # Check whether --with-gnu-ld was given.
12538 if test "${with_gnu_ld+set}" = set; then :
12539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12540 else
12541 with_gnu_ld=no
12542 fi
12543
12544 ac_prog=ld
12545 if test "$GCC" = yes; then
12546 # Check if gcc -print-prog-name=ld gives a path.
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12548 $as_echo_n "checking for ld used by $CC... " >&6; }
12549 case $host in
12550 *-*-mingw*)
12551 # gcc leaves a trailing carriage return which upsets mingw
12552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12553 *)
12554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12555 esac
12556 case $ac_prog in
12557 # Accept absolute paths.
12558 [\\/]* | ?:[\\/]*)
12559 re_direlt='/[^/][^/]*/\.\./'
12560 # Canonicalize the pathname of ld
12561 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12562 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12563 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12564 done
12565 test -z "$LD" && LD="$ac_prog"
12566 ;;
12567 "")
12568 # If it fails, then pretend we aren't using GCC.
12569 ac_prog=ld
12570 ;;
12571 *)
12572 # If it is relative, then search for the first ld in PATH.
12573 with_gnu_ld=unknown
12574 ;;
12575 esac
12576 elif test "$with_gnu_ld" = yes; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12578 $as_echo_n "checking for GNU ld... " >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12581 $as_echo_n "checking for non-GNU ld... " >&6; }
12582 fi
12583 if test "${lt_cv_path_LD+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 if test -z "$LD"; then
12587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12588 for ac_dir in $PATH; do
12589 IFS="$lt_save_ifs"
12590 test -z "$ac_dir" && ac_dir=.
12591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12592 lt_cv_path_LD="$ac_dir/$ac_prog"
12593 # Check to see if the program is GNU ld. I'd rather use --version,
12594 # but apparently some variants of GNU ld only accept -v.
12595 # Break only if it was the GNU/non-GNU ld that we prefer.
12596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12597 *GNU* | *'with BFD'*)
12598 test "$with_gnu_ld" != no && break
12599 ;;
12600 *)
12601 test "$with_gnu_ld" != yes && break
12602 ;;
12603 esac
12604 fi
12605 done
12606 IFS="$lt_save_ifs"
12607 else
12608 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12609 fi
12610 fi
12611
12612 LD="$lt_cv_path_LD"
12613 if test -n "$LD"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12615 $as_echo "$LD" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 fi
12620 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12623 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12627 case `$LD -v 2>&1 </dev/null` in
12628 *GNU* | *'with BFD'*)
12629 lt_cv_prog_gnu_ld=yes
12630 ;;
12631 *)
12632 lt_cv_prog_gnu_ld=no
12633 ;;
12634 esac
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12637 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12638 with_gnu_ld=$lt_cv_prog_gnu_ld
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12649 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12650 if test "${lt_cv_path_NM+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 if test -n "$NM"; then
12654 # Let the user override the test.
12655 lt_cv_path_NM="$NM"
12656 else
12657 lt_nm_to_check="${ac_tool_prefix}nm"
12658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12659 lt_nm_to_check="$lt_nm_to_check nm"
12660 fi
12661 for lt_tmp_nm in $lt_nm_to_check; do
12662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12664 IFS="$lt_save_ifs"
12665 test -z "$ac_dir" && ac_dir=.
12666 tmp_nm="$ac_dir/$lt_tmp_nm"
12667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12668 # Check to see if the nm accepts a BSD-compat flag.
12669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12670 # nm: unknown option "B" ignored
12671 # Tru64's nm complains that /dev/null is an invalid object file
12672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12673 */dev/null* | *'Invalid file or object type'*)
12674 lt_cv_path_NM="$tmp_nm -B"
12675 break
12676 ;;
12677 *)
12678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12679 */dev/null*)
12680 lt_cv_path_NM="$tmp_nm -p"
12681 break
12682 ;;
12683 *)
12684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12685 continue # so that we can try to find one that supports BSD flags
12686 ;;
12687 esac
12688 ;;
12689 esac
12690 fi
12691 done
12692 IFS="$lt_save_ifs"
12693 done
12694 : ${lt_cv_path_NM=no}
12695 fi
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12698 $as_echo "$lt_cv_path_NM" >&6; }
12699 if test "$lt_cv_path_NM" != "no"; then
12700 NM="$lt_cv_path_NM"
12701 else
12702 # Didn't find any BSD compatible name lister, look for dumpbin.
12703 if test -n "$DUMPBIN"; then :
12704 # Let the user override the test.
12705 else
12706 if test -n "$ac_tool_prefix"; then
12707 for ac_prog in dumpbin "link -dump"
12708 do
12709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 if test -n "$DUMPBIN"; then
12717 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12718 else
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12721 do
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12729 fi
12730 done
12731 done
12732 IFS=$as_save_IFS
12733
12734 fi
12735 fi
12736 DUMPBIN=$ac_cv_prog_DUMPBIN
12737 if test -n "$DUMPBIN"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12739 $as_echo "$DUMPBIN" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746 test -n "$DUMPBIN" && break
12747 done
12748 fi
12749 if test -z "$DUMPBIN"; then
12750 ac_ct_DUMPBIN=$DUMPBIN
12751 for ac_prog in dumpbin "link -dump"
12752 do
12753 # Extract the first word of "$ac_prog", so it can be a program name with args.
12754 set dummy $ac_prog; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 if test -n "$ac_ct_DUMPBIN"; then
12761 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12762 else
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12770 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774 done
12775 done
12776 IFS=$as_save_IFS
12777
12778 fi
12779 fi
12780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12781 if test -n "$ac_ct_DUMPBIN"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12783 $as_echo "$ac_ct_DUMPBIN" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788
12789
12790 test -n "$ac_ct_DUMPBIN" && break
12791 done
12792
12793 if test "x$ac_ct_DUMPBIN" = x; then
12794 DUMPBIN=":"
12795 else
12796 case $cross_compiling:$ac_tool_warned in
12797 yes:)
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12800 ac_tool_warned=yes ;;
12801 esac
12802 DUMPBIN=$ac_ct_DUMPBIN
12803 fi
12804 fi
12805
12806 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12807 *COFF*)
12808 DUMPBIN="$DUMPBIN -symbols"
12809 ;;
12810 *)
12811 DUMPBIN=:
12812 ;;
12813 esac
12814 fi
12815
12816 if test "$DUMPBIN" != ":"; then
12817 NM="$DUMPBIN"
12818 fi
12819 fi
12820 test -z "$NM" && NM=nm
12821
12822
12823
12824
12825
12826
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12828 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12829 if test "${lt_cv_nm_interface+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 lt_cv_nm_interface="BSD nm"
12833 echo "int some_variable = 0;" > conftest.$ac_ext
12834 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12835 (eval "$ac_compile" 2>conftest.err)
12836 cat conftest.err >&5
12837 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12838 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12839 cat conftest.err >&5
12840 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12841 cat conftest.out >&5
12842 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12843 lt_cv_nm_interface="MS dumpbin"
12844 fi
12845 rm -f conftest*
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12848 $as_echo "$lt_cv_nm_interface" >&6; }
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12851 $as_echo_n "checking whether ln -s works... " >&6; }
12852 LN_S=$as_ln_s
12853 if test "$LN_S" = "ln -s"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12858 $as_echo "no, using $LN_S" >&6; }
12859 fi
12860
12861 # find the maximum length of command line arguments
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12863 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12864 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 i=0
12868 teststring="ABCD"
12869
12870 case $build_os in
12871 msdosdjgpp*)
12872 # On DJGPP, this test can blow up pretty badly due to problems in libc
12873 # (any single argument exceeding 2000 bytes causes a buffer overrun
12874 # during glob expansion). Even if it were fixed, the result of this
12875 # check would be larger than it should be.
12876 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12877 ;;
12878
12879 gnu*)
12880 # Under GNU Hurd, this test is not required because there is
12881 # no limit to the length of command line arguments.
12882 # Libtool will interpret -1 as no limit whatsoever
12883 lt_cv_sys_max_cmd_len=-1;
12884 ;;
12885
12886 cygwin* | mingw* | cegcc*)
12887 # On Win9x/ME, this test blows up -- it succeeds, but takes
12888 # about 5 minutes as the teststring grows exponentially.
12889 # Worse, since 9x/ME are not pre-emptively multitasking,
12890 # you end up with a "frozen" computer, even though with patience
12891 # the test eventually succeeds (with a max line length of 256k).
12892 # Instead, let's just punt: use the minimum linelength reported by
12893 # all of the supported platforms: 8192 (on NT/2K/XP).
12894 lt_cv_sys_max_cmd_len=8192;
12895 ;;
12896
12897 mint*)
12898 # On MiNT this can take a long time and run out of memory.
12899 lt_cv_sys_max_cmd_len=8192;
12900 ;;
12901
12902 amigaos*)
12903 # On AmigaOS with pdksh, this test takes hours, literally.
12904 # So we just punt and use a minimum line length of 8192.
12905 lt_cv_sys_max_cmd_len=8192;
12906 ;;
12907
12908 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12909 # This has been around since 386BSD, at least. Likely further.
12910 if test -x /sbin/sysctl; then
12911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12912 elif test -x /usr/sbin/sysctl; then
12913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12914 else
12915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12916 fi
12917 # And add a safety zone
12918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12920 ;;
12921
12922 interix*)
12923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12924 lt_cv_sys_max_cmd_len=196608
12925 ;;
12926
12927 osf*)
12928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12930 # nice to cause kernel panics so lets avoid the loop below.
12931 # First set a reasonable default.
12932 lt_cv_sys_max_cmd_len=16384
12933 #
12934 if test -x /sbin/sysconfig; then
12935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12936 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12937 esac
12938 fi
12939 ;;
12940 sco3.2v5*)
12941 lt_cv_sys_max_cmd_len=102400
12942 ;;
12943 sysv5* | sco5v6* | sysv4.2uw2*)
12944 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12945 if test -n "$kargmax"; then
12946 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12947 else
12948 lt_cv_sys_max_cmd_len=32768
12949 fi
12950 ;;
12951 *)
12952 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12953 if test -n "$lt_cv_sys_max_cmd_len"; then
12954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12956 else
12957 # Make teststring a little bigger before we do anything with it.
12958 # a 1K string should be a reasonable start.
12959 for i in 1 2 3 4 5 6 7 8 ; do
12960 teststring=$teststring$teststring
12961 done
12962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12963 # If test is not a shell built-in, we'll probably end up computing a
12964 # maximum length that is only half of the actual maximum length, but
12965 # we can't tell.
12966 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12967 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12968 test $i != 17 # 1/2 MB should be enough
12969 do
12970 i=`expr $i + 1`
12971 teststring=$teststring$teststring
12972 done
12973 # Only check the string length outside the loop.
12974 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12975 teststring=
12976 # Add a significant safety factor because C++ compilers can tack on
12977 # massive amounts of additional arguments before passing them to the
12978 # linker. It appears as though 1/2 is a usable value.
12979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12980 fi
12981 ;;
12982 esac
12983
12984 fi
12985
12986 if test -n $lt_cv_sys_max_cmd_len ; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12988 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12989 else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12991 $as_echo "none" >&6; }
12992 fi
12993 max_cmd_len=$lt_cv_sys_max_cmd_len
12994
12995
12996
12997
12998
12999
13000 : ${CP="cp -f"}
13001 : ${MV="mv -f"}
13002 : ${RM="rm -f"}
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13005 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13006 # Try some XSI features
13007 xsi_shell=no
13008 ( _lt_dummy="a/b/c"
13009 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13010 = c,a/b,, \
13011 && eval 'test $(( 1 + 1 )) -eq 2 \
13012 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13013 && xsi_shell=yes
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13015 $as_echo "$xsi_shell" >&6; }
13016
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13019 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13020 lt_shell_append=no
13021 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13022 >/dev/null 2>&1 \
13023 && lt_shell_append=yes
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13025 $as_echo "$lt_shell_append" >&6; }
13026
13027
13028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13029 lt_unset=unset
13030 else
13031 lt_unset=false
13032 fi
13033
13034
13035
13036
13037
13038 # test EBCDIC or ASCII
13039 case `echo X|tr X '\101'` in
13040 A) # ASCII based system
13041 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13042 lt_SP2NL='tr \040 \012'
13043 lt_NL2SP='tr \015\012 \040\040'
13044 ;;
13045 *) # EBCDIC based system
13046 lt_SP2NL='tr \100 \n'
13047 lt_NL2SP='tr \r\n \100\100'
13048 ;;
13049 esac
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13061 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 lt_cv_ld_reload_flag='-r'
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13068 reload_flag=$lt_cv_ld_reload_flag
13069 case $reload_flag in
13070 "" | " "*) ;;
13071 *) reload_flag=" $reload_flag" ;;
13072 esac
13073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13074 case $host_os in
13075 darwin*)
13076 if test "$GCC" = yes; then
13077 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13078 else
13079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13080 fi
13081 ;;
13082 esac
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092 if test -n "$ac_tool_prefix"; then
13093 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 if test -n "$OBJDUMP"; then
13101 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 OBJDUMP=$ac_cv_prog_OBJDUMP
13121 if test -n "$OBJDUMP"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13123 $as_echo "$OBJDUMP" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 fi
13128
13129
13130 fi
13131 if test -z "$ac_cv_prog_OBJDUMP"; then
13132 ac_ct_OBJDUMP=$OBJDUMP
13133 # Extract the first word of "objdump", so it can be a program name with args.
13134 set dummy objdump; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 if test -n "$ac_ct_OBJDUMP"; then
13141 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13142 else
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13145 do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 fi
13159 fi
13160 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13161 if test -n "$ac_ct_OBJDUMP"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13163 $as_echo "$ac_ct_OBJDUMP" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 fi
13168
13169 if test "x$ac_ct_OBJDUMP" = x; then
13170 OBJDUMP="false"
13171 else
13172 case $cross_compiling:$ac_tool_warned in
13173 yes:)
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13176 ac_tool_warned=yes ;;
13177 esac
13178 OBJDUMP=$ac_ct_OBJDUMP
13179 fi
13180 else
13181 OBJDUMP="$ac_cv_prog_OBJDUMP"
13182 fi
13183
13184 test -z "$OBJDUMP" && OBJDUMP=objdump
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13195 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13196 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 lt_cv_file_magic_cmd='$MAGIC_CMD'
13200 lt_cv_file_magic_test_file=
13201 lt_cv_deplibs_check_method='unknown'
13202 # Need to set the preceding variable on all platforms that support
13203 # interlibrary dependencies.
13204 # 'none' -- dependencies not supported.
13205 # `unknown' -- same as none, but documents that we really don't know.
13206 # 'pass_all' -- all dependencies passed with no checks.
13207 # 'test_compile' -- check by making test program.
13208 # 'file_magic [[regex]]' -- check by looking for files in library path
13209 # which responds to the $file_magic_cmd with a given extended regex.
13210 # If you have `file' or equivalent on your system and you're not sure
13211 # whether `pass_all' will *always* work, you probably want this one.
13212
13213 case $host_os in
13214 aix[4-9]*)
13215 lt_cv_deplibs_check_method=pass_all
13216 ;;
13217
13218 beos*)
13219 lt_cv_deplibs_check_method=pass_all
13220 ;;
13221
13222 bsdi[45]*)
13223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13224 lt_cv_file_magic_cmd='/usr/bin/file -L'
13225 lt_cv_file_magic_test_file=/shlib/libc.so
13226 ;;
13227
13228 cygwin*)
13229 # func_win32_libid is a shell function defined in ltmain.sh
13230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13231 lt_cv_file_magic_cmd='func_win32_libid'
13232 ;;
13233
13234 mingw* | pw32*)
13235 # Base MSYS/MinGW do not provide the 'file' command needed by
13236 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13237 # unless we find 'file', for example because we are cross-compiling.
13238 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13239 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13241 lt_cv_file_magic_cmd='func_win32_libid'
13242 else
13243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13244 lt_cv_file_magic_cmd='$OBJDUMP -f'
13245 fi
13246 ;;
13247
13248 cegcc*)
13249 # use the weaker test based on 'objdump'. See mingw*.
13250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13251 lt_cv_file_magic_cmd='$OBJDUMP -f'
13252 ;;
13253
13254 darwin* | rhapsody*)
13255 lt_cv_deplibs_check_method=pass_all
13256 ;;
13257
13258 freebsd* | dragonfly*)
13259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13260 case $host_cpu in
13261 i*86 )
13262 # Not sure whether the presence of OpenBSD here was a mistake.
13263 # Let's accept both of them until this is cleared up.
13264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13265 lt_cv_file_magic_cmd=/usr/bin/file
13266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13267 ;;
13268 esac
13269 else
13270 lt_cv_deplibs_check_method=pass_all
13271 fi
13272 ;;
13273
13274 gnu*)
13275 lt_cv_deplibs_check_method=pass_all
13276 ;;
13277
13278 haiku*)
13279 lt_cv_deplibs_check_method=pass_all
13280 ;;
13281
13282 hpux10.20* | hpux11*)
13283 lt_cv_file_magic_cmd=/usr/bin/file
13284 case $host_cpu in
13285 ia64*)
13286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13287 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13288 ;;
13289 hppa*64*)
13290 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]'
13291 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13292 ;;
13293 *)
13294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13295 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13296 ;;
13297 esac
13298 ;;
13299
13300 interix[3-9]*)
13301 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13303 ;;
13304
13305 irix5* | irix6* | nonstopux*)
13306 case $LD in
13307 *-32|*"-32 ") libmagic=32-bit;;
13308 *-n32|*"-n32 ") libmagic=N32;;
13309 *-64|*"-64 ") libmagic=64-bit;;
13310 *) libmagic=never-match;;
13311 esac
13312 lt_cv_deplibs_check_method=pass_all
13313 ;;
13314
13315 # This must be Linux ELF.
13316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13317 lt_cv_deplibs_check_method=pass_all
13318 ;;
13319
13320 netbsd*)
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13323 else
13324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13325 fi
13326 ;;
13327
13328 newos6*)
13329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13330 lt_cv_file_magic_cmd=/usr/bin/file
13331 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13332 ;;
13333
13334 *nto* | *qnx*)
13335 lt_cv_deplibs_check_method=pass_all
13336 ;;
13337
13338 openbsd*)
13339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13341 else
13342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13343 fi
13344 ;;
13345
13346 osf3* | osf4* | osf5*)
13347 lt_cv_deplibs_check_method=pass_all
13348 ;;
13349
13350 rdos*)
13351 lt_cv_deplibs_check_method=pass_all
13352 ;;
13353
13354 solaris*)
13355 lt_cv_deplibs_check_method=pass_all
13356 ;;
13357
13358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13359 lt_cv_deplibs_check_method=pass_all
13360 ;;
13361
13362 sysv4 | sysv4.3*)
13363 case $host_vendor in
13364 motorola)
13365 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]'
13366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13367 ;;
13368 ncr)
13369 lt_cv_deplibs_check_method=pass_all
13370 ;;
13371 sequent)
13372 lt_cv_file_magic_cmd='/bin/file'
13373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13374 ;;
13375 sni)
13376 lt_cv_file_magic_cmd='/bin/file'
13377 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13378 lt_cv_file_magic_test_file=/lib/libc.so
13379 ;;
13380 siemens)
13381 lt_cv_deplibs_check_method=pass_all
13382 ;;
13383 pc)
13384 lt_cv_deplibs_check_method=pass_all
13385 ;;
13386 esac
13387 ;;
13388
13389 tpf*)
13390 lt_cv_deplibs_check_method=pass_all
13391 ;;
13392 esac
13393
13394 fi
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13397 file_magic_cmd=$lt_cv_file_magic_cmd
13398 deplibs_check_method=$lt_cv_deplibs_check_method
13399 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412 if test -n "$ac_tool_prefix"; then
13413 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13414 set dummy ${ac_tool_prefix}ar; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if test "${ac_cv_prog_AR+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 if test -n "$AR"; then
13421 ac_cv_prog_AR="$AR" # Let the user override the test.
13422 else
13423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424 for as_dir in $PATH
13425 do
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430 ac_cv_prog_AR="${ac_tool_prefix}ar"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 break 2
13433 fi
13434 done
13435 done
13436 IFS=$as_save_IFS
13437
13438 fi
13439 fi
13440 AR=$ac_cv_prog_AR
13441 if test -n "$AR"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13443 $as_echo "$AR" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447 fi
13448
13449
13450 fi
13451 if test -z "$ac_cv_prog_AR"; then
13452 ac_ct_AR=$AR
13453 # Extract the first word of "ar", so it can be a program name with args.
13454 set dummy ar; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 if test -n "$ac_ct_AR"; then
13461 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13462 else
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13465 do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_ac_ct_AR="ar"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474 done
13475 done
13476 IFS=$as_save_IFS
13477
13478 fi
13479 fi
13480 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13481 if test -n "$ac_ct_AR"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13483 $as_echo "$ac_ct_AR" >&6; }
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13487 fi
13488
13489 if test "x$ac_ct_AR" = x; then
13490 AR="false"
13491 else
13492 case $cross_compiling:$ac_tool_warned in
13493 yes:)
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13496 ac_tool_warned=yes ;;
13497 esac
13498 AR=$ac_ct_AR
13499 fi
13500 else
13501 AR="$ac_cv_prog_AR"
13502 fi
13503
13504 test -z "$AR" && AR=ar
13505 test -z "$AR_FLAGS" && AR_FLAGS=cru
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 if test -n "$ac_tool_prefix"; then
13518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13519 set dummy ${ac_tool_prefix}strip; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if test "${ac_cv_prog_STRIP+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$STRIP"; then
13526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 STRIP=$ac_cv_prog_STRIP
13546 if test -n "$STRIP"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13548 $as_echo "$STRIP" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554
13555 fi
13556 if test -z "$ac_cv_prog_STRIP"; then
13557 ac_ct_STRIP=$STRIP
13558 # Extract the first word of "strip", so it can be a program name with args.
13559 set dummy strip; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 if test -n "$ac_ct_STRIP"; then
13566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571 IFS=$as_save_IFS
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575 ac_cv_prog_ac_ct_STRIP="strip"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 break 2
13578 fi
13579 done
13580 done
13581 IFS=$as_save_IFS
13582
13583 fi
13584 fi
13585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13586 if test -n "$ac_ct_STRIP"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13588 $as_echo "$ac_ct_STRIP" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593
13594 if test "x$ac_ct_STRIP" = x; then
13595 STRIP=":"
13596 else
13597 case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601 ac_tool_warned=yes ;;
13602 esac
13603 STRIP=$ac_ct_STRIP
13604 fi
13605 else
13606 STRIP="$ac_cv_prog_STRIP"
13607 fi
13608
13609 test -z "$STRIP" && STRIP=:
13610
13611
13612
13613
13614
13615
13616 if test -n "$ac_tool_prefix"; then
13617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$RANLIB"; then
13625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 RANLIB=$ac_cv_prog_RANLIB
13645 if test -n "$RANLIB"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13647 $as_echo "$RANLIB" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654 fi
13655 if test -z "$ac_cv_prog_RANLIB"; then
13656 ac_ct_RANLIB=$RANLIB
13657 # Extract the first word of "ranlib", so it can be a program name with args.
13658 set dummy ranlib; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$ac_ct_RANLIB"; then
13665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_prog_ac_ct_RANLIB="ranlib"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13677 fi
13678 done
13679 done
13680 IFS=$as_save_IFS
13681
13682 fi
13683 fi
13684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13685 if test -n "$ac_ct_RANLIB"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13687 $as_echo "$ac_ct_RANLIB" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13691 fi
13692
13693 if test "x$ac_ct_RANLIB" = x; then
13694 RANLIB=":"
13695 else
13696 case $cross_compiling:$ac_tool_warned in
13697 yes:)
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13700 ac_tool_warned=yes ;;
13701 esac
13702 RANLIB=$ac_ct_RANLIB
13703 fi
13704 else
13705 RANLIB="$ac_cv_prog_RANLIB"
13706 fi
13707
13708 test -z "$RANLIB" && RANLIB=:
13709
13710
13711
13712
13713
13714
13715 # Determine commands to create old-style static archives.
13716 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13717 old_postinstall_cmds='chmod 644 $oldlib'
13718 old_postuninstall_cmds=
13719
13720 if test -n "$RANLIB"; then
13721 case $host_os in
13722 openbsd*)
13723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13724 ;;
13725 *)
13726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13727 ;;
13728 esac
13729 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13730 fi
13731
13732 case $host_os in
13733 darwin*)
13734 lock_old_archive_extraction=yes ;;
13735 *)
13736 lock_old_archive_extraction=no ;;
13737 esac
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777 # If no C compiler was specified, use CC.
13778 LTCC=${LTCC-"$CC"}
13779
13780 # If no C compiler flags were specified, use CFLAGS.
13781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13782
13783 # Allow CC to be a program name with arguments.
13784 compiler=$CC
13785
13786
13787 # Check for command to grab the raw symbol name followed by C symbol from nm.
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793
13794 # These are sane defaults that work on at least a few old systems.
13795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13796
13797 # Character class describing NM global symbol codes.
13798 symcode='[BCDEGRST]'
13799
13800 # Regexp to match symbols that can be accessed directly from C.
13801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13802
13803 # Define system-specific variables.
13804 case $host_os in
13805 aix*)
13806 symcode='[BCDT]'
13807 ;;
13808 cygwin* | mingw* | pw32* | cegcc*)
13809 symcode='[ABCDGISTW]'
13810 ;;
13811 hpux*)
13812 if test "$host_cpu" = ia64; then
13813 symcode='[ABCDEGRST]'
13814 fi
13815 ;;
13816 irix* | nonstopux*)
13817 symcode='[BCDEGRST]'
13818 ;;
13819 osf*)
13820 symcode='[BCDEGQRST]'
13821 ;;
13822 solaris*)
13823 symcode='[BDRT]'
13824 ;;
13825 sco3.2v5*)
13826 symcode='[DT]'
13827 ;;
13828 sysv4.2uw2*)
13829 symcode='[DT]'
13830 ;;
13831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13832 symcode='[ABDT]'
13833 ;;
13834 sysv4)
13835 symcode='[DFNSTU]'
13836 ;;
13837 esac
13838
13839 # If we're using GNU nm, then use its standard symbol codes.
13840 case `$NM -V 2>&1` in
13841 *GNU* | *'with BFD'*)
13842 symcode='[ABCDGIRSTW]' ;;
13843 esac
13844
13845 # Transform an extracted symbol line into a proper C declaration.
13846 # Some systems (esp. on ia64) link data and code symbols differently,
13847 # so use this general approach.
13848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13849
13850 # Transform an extracted symbol line into symbol name and symbol address
13851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13852 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'"
13853
13854 # Handle CRLF in mingw tool chain
13855 opt_cr=
13856 case $build_os in
13857 mingw*)
13858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13859 ;;
13860 esac
13861
13862 # Try without a prefix underscore, then with it.
13863 for ac_symprfx in "" "_"; do
13864
13865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13866 symxfrm="\\1 $ac_symprfx\\2 \\2"
13867
13868 # Write the raw and C identifiers.
13869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13870 # Fake it for dumpbin and say T for any non-static function
13871 # and D for any global variable.
13872 # Also find C++ and __fastcall symbols from MSVC++,
13873 # which start with @ or ?.
13874 lt_cv_sys_global_symbol_pipe="$AWK '"\
13875 " {last_section=section; section=\$ 3};"\
13876 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13877 " \$ 0!~/External *\|/{next};"\
13878 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13879 " {if(hide[section]) next};"\
13880 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13881 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13882 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13883 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13884 " ' prfx=^$ac_symprfx"
13885 else
13886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13887 fi
13888
13889 # Check to see that the pipe works correctly.
13890 pipe_works=no
13891
13892 rm -f conftest*
13893 cat > conftest.$ac_ext <<_LT_EOF
13894 #ifdef __cplusplus
13895 extern "C" {
13896 #endif
13897 char nm_test_var;
13898 void nm_test_func(void);
13899 void nm_test_func(void){}
13900 #ifdef __cplusplus
13901 }
13902 #endif
13903 int main(){nm_test_var='a';nm_test_func();return(0);}
13904 _LT_EOF
13905
13906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907 (eval $ac_compile) 2>&5
13908 ac_status=$?
13909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910 test $ac_status = 0; }; then
13911 # Now try to grab the symbols.
13912 nlist=conftest.nm
13913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13914 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13915 ac_status=$?
13916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13917 test $ac_status = 0; } && test -s "$nlist"; then
13918 # Try sorting and uniquifying the output.
13919 if sort "$nlist" | uniq > "$nlist"T; then
13920 mv -f "$nlist"T "$nlist"
13921 else
13922 rm -f "$nlist"T
13923 fi
13924
13925 # Make sure that we snagged all the symbols we need.
13926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13928 cat <<_LT_EOF > conftest.$ac_ext
13929 #ifdef __cplusplus
13930 extern "C" {
13931 #endif
13932
13933 _LT_EOF
13934 # Now generate the symbol file.
13935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13936
13937 cat <<_LT_EOF >> conftest.$ac_ext
13938
13939 /* The mapping between symbol names and symbols. */
13940 const struct {
13941 const char *name;
13942 void *address;
13943 }
13944 lt__PROGRAM__LTX_preloaded_symbols[] =
13945 {
13946 { "@PROGRAM@", (void *) 0 },
13947 _LT_EOF
13948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13949 cat <<\_LT_EOF >> conftest.$ac_ext
13950 {0, (void *) 0}
13951 };
13952
13953 /* This works around a problem in FreeBSD linker */
13954 #ifdef FREEBSD_WORKAROUND
13955 static const void *lt_preloaded_setup() {
13956 return lt__PROGRAM__LTX_preloaded_symbols;
13957 }
13958 #endif
13959
13960 #ifdef __cplusplus
13961 }
13962 #endif
13963 _LT_EOF
13964 # Now try linking the two files.
13965 mv conftest.$ac_objext conftstm.$ac_objext
13966 lt_save_LIBS="$LIBS"
13967 lt_save_CFLAGS="$CFLAGS"
13968 LIBS="conftstm.$ac_objext"
13969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13971 (eval $ac_link) 2>&5
13972 ac_status=$?
13973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13974 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13975 pipe_works=yes
13976 fi
13977 LIBS="$lt_save_LIBS"
13978 CFLAGS="$lt_save_CFLAGS"
13979 else
13980 echo "cannot find nm_test_func in $nlist" >&5
13981 fi
13982 else
13983 echo "cannot find nm_test_var in $nlist" >&5
13984 fi
13985 else
13986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13987 fi
13988 else
13989 echo "$progname: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 fi
13992 rm -rf conftest* conftst*
13993
13994 # Do not use the global_symbol_pipe unless it works.
13995 if test "$pipe_works" = yes; then
13996 break
13997 else
13998 lt_cv_sys_global_symbol_pipe=
13999 fi
14000 done
14001
14002 fi
14003
14004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14005 lt_cv_sys_global_symbol_to_cdecl=
14006 fi
14007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14009 $as_echo "failed" >&6; }
14010 else
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14012 $as_echo "ok" >&6; }
14013 fi
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 # Check whether --enable-libtool-lock was given.
14037 if test "${enable_libtool_lock+set}" = set; then :
14038 enableval=$enable_libtool_lock;
14039 fi
14040
14041 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14042
14043 # Some flags need to be propagated to the compiler or linker for good
14044 # libtool support.
14045 case $host in
14046 ia64-*-hpux*)
14047 # Find out which ABI we are using.
14048 echo 'int i;' > conftest.$ac_ext
14049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14050 (eval $ac_compile) 2>&5
14051 ac_status=$?
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053 test $ac_status = 0; }; then
14054 case `/usr/bin/file conftest.$ac_objext` in
14055 *ELF-32*)
14056 HPUX_IA64_MODE="32"
14057 ;;
14058 *ELF-64*)
14059 HPUX_IA64_MODE="64"
14060 ;;
14061 esac
14062 fi
14063 rm -rf conftest*
14064 ;;
14065 *-*-irix6*)
14066 # Find out which ABI we are using.
14067 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14069 (eval $ac_compile) 2>&5
14070 ac_status=$?
14071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14072 test $ac_status = 0; }; then
14073 if test "$lt_cv_prog_gnu_ld" = yes; then
14074 case `/usr/bin/file conftest.$ac_objext` in
14075 *32-bit*)
14076 LD="${LD-ld} -melf32bsmip"
14077 ;;
14078 *N32*)
14079 LD="${LD-ld} -melf32bmipn32"
14080 ;;
14081 *64-bit*)
14082 LD="${LD-ld} -melf64bmip"
14083 ;;
14084 esac
14085 else
14086 case `/usr/bin/file conftest.$ac_objext` in
14087 *32-bit*)
14088 LD="${LD-ld} -32"
14089 ;;
14090 *N32*)
14091 LD="${LD-ld} -n32"
14092 ;;
14093 *64-bit*)
14094 LD="${LD-ld} -64"
14095 ;;
14096 esac
14097 fi
14098 fi
14099 rm -rf conftest*
14100 ;;
14101
14102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14103 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14104 # Find out which ABI we are using.
14105 echo 'int i;' > conftest.$ac_ext
14106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14107 (eval $ac_compile) 2>&5
14108 ac_status=$?
14109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14110 test $ac_status = 0; }; then
14111 case `/usr/bin/file conftest.o` in
14112 *32-bit*)
14113 case $host in
14114 x86_64-*kfreebsd*-gnu)
14115 LD="${LD-ld} -m elf_i386_fbsd"
14116 ;;
14117 x86_64-*linux*)
14118 case `/usr/bin/file conftest.o` in
14119 *x86-64*)
14120 LD="${LD-ld} -m elf32_x86_64"
14121 ;;
14122 *)
14123 LD="${LD-ld} -m elf_i386"
14124 ;;
14125 esac
14126 ;;
14127 powerpc64le-*linux*)
14128 LD="${LD-ld} -m elf32lppclinux"
14129 ;;
14130 powerpc64-*linux*)
14131 LD="${LD-ld} -m elf32ppclinux"
14132 ;;
14133 s390x-*linux*)
14134 LD="${LD-ld} -m elf_s390"
14135 ;;
14136 sparc64-*linux*)
14137 LD="${LD-ld} -m elf32_sparc"
14138 ;;
14139 esac
14140 ;;
14141 *64-bit*)
14142 case $host in
14143 x86_64-*kfreebsd*-gnu)
14144 LD="${LD-ld} -m elf_x86_64_fbsd"
14145 ;;
14146 x86_64-*linux*)
14147 LD="${LD-ld} -m elf_x86_64"
14148 ;;
14149 powerpcle-*linux*)
14150 LD="${LD-ld} -m elf64lppc"
14151 ;;
14152 powerpc-*linux*)
14153 LD="${LD-ld} -m elf64ppc"
14154 ;;
14155 s390*-*linux*|s390*-*tpf*)
14156 LD="${LD-ld} -m elf64_s390"
14157 ;;
14158 sparc*-*linux*)
14159 LD="${LD-ld} -m elf64_sparc"
14160 ;;
14161 esac
14162 ;;
14163 esac
14164 fi
14165 rm -rf conftest*
14166 ;;
14167
14168 *-*-sco3.2v5*)
14169 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14170 SAVE_CFLAGS="$CFLAGS"
14171 CFLAGS="$CFLAGS -belf"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14173 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14174 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 ac_ext=c
14178 ac_cpp='$CPP $CPPFLAGS'
14179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185
14186 int
14187 main ()
14188 {
14189
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 lt_cv_cc_needs_belf=yes
14196 else
14197 lt_cv_cc_needs_belf=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 ac_ext=c
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14209 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14212 CFLAGS="$SAVE_CFLAGS"
14213 fi
14214 ;;
14215 sparc*-*solaris*)
14216 # Find out which ABI we are using.
14217 echo 'int i;' > conftest.$ac_ext
14218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14219 (eval $ac_compile) 2>&5
14220 ac_status=$?
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222 test $ac_status = 0; }; then
14223 case `/usr/bin/file conftest.o` in
14224 *64-bit*)
14225 case $lt_cv_prog_gnu_ld in
14226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14227 *)
14228 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14229 LD="${LD-ld} -64"
14230 fi
14231 ;;
14232 esac
14233 ;;
14234 esac
14235 fi
14236 rm -rf conftest*
14237 ;;
14238 esac
14239
14240 need_locks="$enable_libtool_lock"
14241
14242
14243 case $host_os in
14244 rhapsody* | darwin*)
14245 if test -n "$ac_tool_prefix"; then
14246 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14247 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test -n "$DSYMUTIL"; then
14254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14255 else
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14258 do
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14266 fi
14267 done
14268 done
14269 IFS=$as_save_IFS
14270
14271 fi
14272 fi
14273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14274 if test -n "$DSYMUTIL"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14276 $as_echo "$DSYMUTIL" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280 fi
14281
14282
14283 fi
14284 if test -z "$ac_cv_prog_DSYMUTIL"; then
14285 ac_ct_DSYMUTIL=$DSYMUTIL
14286 # Extract the first word of "dsymutil", so it can be a program name with args.
14287 set dummy dsymutil; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test -n "$ac_ct_DSYMUTIL"; then
14294 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14298 do
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14306 fi
14307 done
14308 done
14309 IFS=$as_save_IFS
14310
14311 fi
14312 fi
14313 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14314 if test -n "$ac_ct_DSYMUTIL"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14316 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14320 fi
14321
14322 if test "x$ac_ct_DSYMUTIL" = x; then
14323 DSYMUTIL=":"
14324 else
14325 case $cross_compiling:$ac_tool_warned in
14326 yes:)
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14329 ac_tool_warned=yes ;;
14330 esac
14331 DSYMUTIL=$ac_ct_DSYMUTIL
14332 fi
14333 else
14334 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14335 fi
14336
14337 if test -n "$ac_tool_prefix"; then
14338 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$NMEDIT"; then
14346 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 NMEDIT=$ac_cv_prog_NMEDIT
14366 if test -n "$NMEDIT"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14368 $as_echo "$NMEDIT" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372 fi
14373
14374
14375 fi
14376 if test -z "$ac_cv_prog_NMEDIT"; then
14377 ac_ct_NMEDIT=$NMEDIT
14378 # Extract the first word of "nmedit", so it can be a program name with args.
14379 set dummy nmedit; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 if test -n "$ac_ct_NMEDIT"; then
14386 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14390 do
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14398 fi
14399 done
14400 done
14401 IFS=$as_save_IFS
14402
14403 fi
14404 fi
14405 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14406 if test -n "$ac_ct_NMEDIT"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14408 $as_echo "$ac_ct_NMEDIT" >&6; }
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14412 fi
14413
14414 if test "x$ac_ct_NMEDIT" = x; then
14415 NMEDIT=":"
14416 else
14417 case $cross_compiling:$ac_tool_warned in
14418 yes:)
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14421 ac_tool_warned=yes ;;
14422 esac
14423 NMEDIT=$ac_ct_NMEDIT
14424 fi
14425 else
14426 NMEDIT="$ac_cv_prog_NMEDIT"
14427 fi
14428
14429 if test -n "$ac_tool_prefix"; then
14430 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14431 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if test "${ac_cv_prog_LIPO+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 if test -n "$LIPO"; then
14438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14442 do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451 done
14452 done
14453 IFS=$as_save_IFS
14454
14455 fi
14456 fi
14457 LIPO=$ac_cv_prog_LIPO
14458 if test -n "$LIPO"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14460 $as_echo "$LIPO" >&6; }
14461 else
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14464 fi
14465
14466
14467 fi
14468 if test -z "$ac_cv_prog_LIPO"; then
14469 ac_ct_LIPO=$LIPO
14470 # Extract the first word of "lipo", so it can be a program name with args.
14471 set dummy lipo; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$ac_ct_LIPO"; then
14478 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_ac_ct_LIPO="lipo"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491 done
14492 done
14493 IFS=$as_save_IFS
14494
14495 fi
14496 fi
14497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14498 if test -n "$ac_ct_LIPO"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14500 $as_echo "$ac_ct_LIPO" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 fi
14505
14506 if test "x$ac_ct_LIPO" = x; then
14507 LIPO=":"
14508 else
14509 case $cross_compiling:$ac_tool_warned in
14510 yes:)
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14513 ac_tool_warned=yes ;;
14514 esac
14515 LIPO=$ac_ct_LIPO
14516 fi
14517 else
14518 LIPO="$ac_cv_prog_LIPO"
14519 fi
14520
14521 if test -n "$ac_tool_prefix"; then
14522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14523 set dummy ${ac_tool_prefix}otool; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 $as_echo_n "checking for $ac_word... " >&6; }
14526 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 if test -n "$OTOOL"; then
14530 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14531 else
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14534 do
14535 IFS=$as_save_IFS
14536 test -z "$as_dir" && as_dir=.
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14539 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14541 break 2
14542 fi
14543 done
14544 done
14545 IFS=$as_save_IFS
14546
14547 fi
14548 fi
14549 OTOOL=$ac_cv_prog_OTOOL
14550 if test -n "$OTOOL"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14552 $as_echo "$OTOOL" >&6; }
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 fi
14557
14558
14559 fi
14560 if test -z "$ac_cv_prog_OTOOL"; then
14561 ac_ct_OTOOL=$OTOOL
14562 # Extract the first word of "otool", so it can be a program name with args.
14563 set dummy otool; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565 $as_echo_n "checking for $ac_word... " >&6; }
14566 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 if test -n "$ac_ct_OTOOL"; then
14570 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14571 else
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575 IFS=$as_save_IFS
14576 test -z "$as_dir" && as_dir=.
14577 for ac_exec_ext in '' $ac_executable_extensions; do
14578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14579 ac_cv_prog_ac_ct_OTOOL="otool"
14580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14581 break 2
14582 fi
14583 done
14584 done
14585 IFS=$as_save_IFS
14586
14587 fi
14588 fi
14589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14590 if test -n "$ac_ct_OTOOL"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14592 $as_echo "$ac_ct_OTOOL" >&6; }
14593 else
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14596 fi
14597
14598 if test "x$ac_ct_OTOOL" = x; then
14599 OTOOL=":"
14600 else
14601 case $cross_compiling:$ac_tool_warned in
14602 yes:)
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14605 ac_tool_warned=yes ;;
14606 esac
14607 OTOOL=$ac_ct_OTOOL
14608 fi
14609 else
14610 OTOOL="$ac_cv_prog_OTOOL"
14611 fi
14612
14613 if test -n "$ac_tool_prefix"; then
14614 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14615 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617 $as_echo_n "checking for $ac_word... " >&6; }
14618 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 if test -n "$OTOOL64"; then
14622 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14623 else
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14631 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 break 2
14634 fi
14635 done
14636 done
14637 IFS=$as_save_IFS
14638
14639 fi
14640 fi
14641 OTOOL64=$ac_cv_prog_OTOOL64
14642 if test -n "$OTOOL64"; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14644 $as_echo "$OTOOL64" >&6; }
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649
14650
14651 fi
14652 if test -z "$ac_cv_prog_OTOOL64"; then
14653 ac_ct_OTOOL64=$OTOOL64
14654 # Extract the first word of "otool64", so it can be a program name with args.
14655 set dummy otool64; ac_word=$2
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14657 $as_echo_n "checking for $ac_word... " >&6; }
14658 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 if test -n "$ac_ct_OTOOL64"; then
14662 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14663 else
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14666 do
14667 IFS=$as_save_IFS
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14671 ac_cv_prog_ac_ct_OTOOL64="otool64"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 break 2
14674 fi
14675 done
14676 done
14677 IFS=$as_save_IFS
14678
14679 fi
14680 fi
14681 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14682 if test -n "$ac_ct_OTOOL64"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14684 $as_echo "$ac_ct_OTOOL64" >&6; }
14685 else
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14688 fi
14689
14690 if test "x$ac_ct_OTOOL64" = x; then
14691 OTOOL64=":"
14692 else
14693 case $cross_compiling:$ac_tool_warned in
14694 yes:)
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14697 ac_tool_warned=yes ;;
14698 esac
14699 OTOOL64=$ac_ct_OTOOL64
14700 fi
14701 else
14702 OTOOL64="$ac_cv_prog_OTOOL64"
14703 fi
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14732 $as_echo_n "checking for -single_module linker flag... " >&6; }
14733 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 lt_cv_apple_cc_single_mod=no
14737 if test -z "${LT_MULTI_MODULE}"; then
14738 # By default we will add the -single_module flag. You can override
14739 # by either setting the environment variable LT_MULTI_MODULE
14740 # non-empty at configure time, or by adding -multi_module to the
14741 # link flags.
14742 rm -rf libconftest.dylib*
14743 echo "int foo(void){return 1;}" > conftest.c
14744 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14745 -dynamiclib -Wl,-single_module conftest.c" >&5
14746 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14747 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14748 _lt_result=$?
14749 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14750 lt_cv_apple_cc_single_mod=yes
14751 else
14752 cat conftest.err >&5
14753 fi
14754 rm -rf libconftest.dylib*
14755 rm -f conftest.*
14756 fi
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14761 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14762 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 lt_cv_ld_exported_symbols_list=no
14766 save_LDFLAGS=$LDFLAGS
14767 echo "_main" > conftest.sym
14768 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14771
14772 int
14773 main ()
14774 {
14775
14776 ;
14777 return 0;
14778 }
14779 _ACEOF
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 lt_cv_ld_exported_symbols_list=yes
14782 else
14783 lt_cv_ld_exported_symbols_list=no
14784 fi
14785 rm -f core conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LDFLAGS="$save_LDFLAGS"
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14793 $as_echo_n "checking for -force_load linker flag... " >&6; }
14794 if test "${lt_cv_ld_force_load+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 lt_cv_ld_force_load=no
14798 cat > conftest.c << _LT_EOF
14799 int forced_loaded() { return 2;}
14800 _LT_EOF
14801 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14802 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14803 echo "$AR cru libconftest.a conftest.o" >&5
14804 $AR cru libconftest.a conftest.o 2>&5
14805 cat > conftest.c << _LT_EOF
14806 int main() { return 0;}
14807 _LT_EOF
14808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14810 _lt_result=$?
14811 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14812 lt_cv_ld_force_load=yes
14813 else
14814 cat conftest.err >&5
14815 fi
14816 rm -f conftest.err libconftest.a conftest conftest.c
14817 rm -rf conftest.dSYM
14818
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14821 $as_echo "$lt_cv_ld_force_load" >&6; }
14822 case $host_os in
14823 rhapsody* | darwin1.[012])
14824 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14825 darwin1.*)
14826 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14827 darwin*) # darwin 5.x on
14828 # if running on 10.5 or later, the deployment target defaults
14829 # to the OS version, if on x86, and 10.4, the deployment
14830 # target defaults to 10.4. Don't you love it?
14831 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14832 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14833 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14834 10.[012][,.]*)
14835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14836 10.*)
14837 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14838 esac
14839 ;;
14840 esac
14841 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14842 _lt_dar_single_mod='$single_module'
14843 fi
14844 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14845 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14846 else
14847 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14848 fi
14849 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14850 _lt_dsymutil='~$DSYMUTIL $lib || :'
14851 else
14852 _lt_dsymutil=
14853 fi
14854 ;;
14855 esac
14856
14857
14858 for ac_header in dlfcn.h
14859 do :
14860 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14861 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define HAVE_DLFCN_H 1
14864 _ACEOF
14865
14866 fi
14867 done
14868
14869
14870
14871
14872
14873 # Set options
14874
14875
14876
14877 enable_dlopen=no
14878
14879
14880 enable_win32_dll=no
14881
14882
14883 # Check whether --enable-shared was given.
14884 if test "${enable_shared+set}" = set; then :
14885 enableval=$enable_shared; p=${PACKAGE-default}
14886 case $enableval in
14887 yes) enable_shared=yes ;;
14888 no) enable_shared=no ;;
14889 *)
14890 enable_shared=no
14891 # Look at the argument we got. We use all the common list separators.
14892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14893 for pkg in $enableval; do
14894 IFS="$lt_save_ifs"
14895 if test "X$pkg" = "X$p"; then
14896 enable_shared=yes
14897 fi
14898 done
14899 IFS="$lt_save_ifs"
14900 ;;
14901 esac
14902 else
14903 enable_shared=yes
14904 fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914 # Check whether --enable-static was given.
14915 if test "${enable_static+set}" = set; then :
14916 enableval=$enable_static; p=${PACKAGE-default}
14917 case $enableval in
14918 yes) enable_static=yes ;;
14919 no) enable_static=no ;;
14920 *)
14921 enable_static=no
14922 # Look at the argument we got. We use all the common list separators.
14923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14924 for pkg in $enableval; do
14925 IFS="$lt_save_ifs"
14926 if test "X$pkg" = "X$p"; then
14927 enable_static=yes
14928 fi
14929 done
14930 IFS="$lt_save_ifs"
14931 ;;
14932 esac
14933 else
14934 enable_static=yes
14935 fi
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 # Check whether --with-pic was given.
14947 if test "${with_pic+set}" = set; then :
14948 withval=$with_pic; pic_mode="$withval"
14949 else
14950 pic_mode=default
14951 fi
14952
14953
14954 test -z "$pic_mode" && pic_mode=default
14955
14956
14957
14958
14959
14960
14961
14962 # Check whether --enable-fast-install was given.
14963 if test "${enable_fast_install+set}" = set; then :
14964 enableval=$enable_fast_install; p=${PACKAGE-default}
14965 case $enableval in
14966 yes) enable_fast_install=yes ;;
14967 no) enable_fast_install=no ;;
14968 *)
14969 enable_fast_install=no
14970 # Look at the argument we got. We use all the common list separators.
14971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14972 for pkg in $enableval; do
14973 IFS="$lt_save_ifs"
14974 if test "X$pkg" = "X$p"; then
14975 enable_fast_install=yes
14976 fi
14977 done
14978 IFS="$lt_save_ifs"
14979 ;;
14980 esac
14981 else
14982 enable_fast_install=yes
14983 fi
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995 # This can be used to rebuild libtool when needed
14996 LIBTOOL_DEPS="$ltmain"
14997
14998 # Always use our own libtool.
14999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 test -z "$LN_S" && LN_S="ln -s"
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041 if test -n "${ZSH_VERSION+set}" ; then
15042 setopt NO_GLOB_SUBST
15043 fi
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15046 $as_echo_n "checking for objdir... " >&6; }
15047 if test "${lt_cv_objdir+set}" = set; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 rm -f .libs 2>/dev/null
15051 mkdir .libs 2>/dev/null
15052 if test -d .libs; then
15053 lt_cv_objdir=.libs
15054 else
15055 # MS-DOS does not allow filenames that begin with a dot.
15056 lt_cv_objdir=_libs
15057 fi
15058 rmdir .libs 2>/dev/null
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15061 $as_echo "$lt_cv_objdir" >&6; }
15062 objdir=$lt_cv_objdir
15063
15064
15065
15066
15067
15068 cat >>confdefs.h <<_ACEOF
15069 #define LT_OBJDIR "$lt_cv_objdir/"
15070 _ACEOF
15071
15072
15073
15074
15075 case $host_os in
15076 aix3*)
15077 # AIX sometimes has problems with the GCC collect2 program. For some
15078 # reason, if we set the COLLECT_NAMES environment variable, the problems
15079 # vanish in a puff of smoke.
15080 if test "X${COLLECT_NAMES+set}" != Xset; then
15081 COLLECT_NAMES=
15082 export COLLECT_NAMES
15083 fi
15084 ;;
15085 esac
15086
15087 # Global variables:
15088 ofile=libtool
15089 can_build_shared=yes
15090
15091 # All known linkers require a `.a' archive for static linking (except MSVC,
15092 # which needs '.lib').
15093 libext=a
15094
15095 with_gnu_ld="$lt_cv_prog_gnu_ld"
15096
15097 old_CC="$CC"
15098 old_CFLAGS="$CFLAGS"
15099
15100 # Set sane defaults for various variables
15101 test -z "$CC" && CC=cc
15102 test -z "$LTCC" && LTCC=$CC
15103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15104 test -z "$LD" && LD=ld
15105 test -z "$ac_objext" && ac_objext=o
15106
15107 for cc_temp in $compiler""; do
15108 case $cc_temp in
15109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15111 \-*) ;;
15112 *) break;;
15113 esac
15114 done
15115 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15116
15117
15118 # Only perform the check for file, if the check method requires it
15119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15120 case $deplibs_check_method in
15121 file_magic*)
15122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15126 $as_echo_n "(cached) " >&6
15127 else
15128 case $MAGIC_CMD in
15129 [\\/*] | ?:[\\/]*)
15130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15131 ;;
15132 *)
15133 lt_save_MAGIC_CMD="$MAGIC_CMD"
15134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15136 for ac_dir in $ac_dummy; do
15137 IFS="$lt_save_ifs"
15138 test -z "$ac_dir" && ac_dir=.
15139 if test -f $ac_dir/${ac_tool_prefix}file; then
15140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15141 if test -n "$file_magic_test_file"; then
15142 case $deplibs_check_method in
15143 "file_magic "*)
15144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15147 $EGREP "$file_magic_regex" > /dev/null; then
15148 :
15149 else
15150 cat <<_LT_EOF 1>&2
15151
15152 *** Warning: the command libtool uses to detect shared libraries,
15153 *** $file_magic_cmd, produces output that libtool cannot recognize.
15154 *** The result is that libtool may fail to recognize shared libraries
15155 *** as such. This will affect the creation of libtool libraries that
15156 *** depend on shared libraries, but programs linked with such libtool
15157 *** libraries will work regardless of this problem. Nevertheless, you
15158 *** may want to report the problem to your system manager and/or to
15159 *** bug-libtool@gnu.org
15160
15161 _LT_EOF
15162 fi ;;
15163 esac
15164 fi
15165 break
15166 fi
15167 done
15168 IFS="$lt_save_ifs"
15169 MAGIC_CMD="$lt_save_MAGIC_CMD"
15170 ;;
15171 esac
15172 fi
15173
15174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15175 if test -n "$MAGIC_CMD"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15177 $as_echo "$MAGIC_CMD" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15181 fi
15182
15183
15184
15185
15186
15187 if test -z "$lt_cv_path_MAGIC_CMD"; then
15188 if test -n "$ac_tool_prefix"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15190 $as_echo_n "checking for file... " >&6; }
15191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 case $MAGIC_CMD in
15195 [\\/*] | ?:[\\/]*)
15196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15197 ;;
15198 *)
15199 lt_save_MAGIC_CMD="$MAGIC_CMD"
15200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15202 for ac_dir in $ac_dummy; do
15203 IFS="$lt_save_ifs"
15204 test -z "$ac_dir" && ac_dir=.
15205 if test -f $ac_dir/file; then
15206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15207 if test -n "$file_magic_test_file"; then
15208 case $deplibs_check_method in
15209 "file_magic "*)
15210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15213 $EGREP "$file_magic_regex" > /dev/null; then
15214 :
15215 else
15216 cat <<_LT_EOF 1>&2
15217
15218 *** Warning: the command libtool uses to detect shared libraries,
15219 *** $file_magic_cmd, produces output that libtool cannot recognize.
15220 *** The result is that libtool may fail to recognize shared libraries
15221 *** as such. This will affect the creation of libtool libraries that
15222 *** depend on shared libraries, but programs linked with such libtool
15223 *** libraries will work regardless of this problem. Nevertheless, you
15224 *** may want to report the problem to your system manager and/or to
15225 *** bug-libtool@gnu.org
15226
15227 _LT_EOF
15228 fi ;;
15229 esac
15230 fi
15231 break
15232 fi
15233 done
15234 IFS="$lt_save_ifs"
15235 MAGIC_CMD="$lt_save_MAGIC_CMD"
15236 ;;
15237 esac
15238 fi
15239
15240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15241 if test -n "$MAGIC_CMD"; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15243 $as_echo "$MAGIC_CMD" >&6; }
15244 else
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 $as_echo "no" >&6; }
15247 fi
15248
15249
15250 else
15251 MAGIC_CMD=:
15252 fi
15253 fi
15254
15255 fi
15256 ;;
15257 esac
15258
15259 # Use C for the default configuration in the libtool script
15260
15261 lt_save_CC="$CC"
15262 ac_ext=c
15263 ac_cpp='$CPP $CPPFLAGS'
15264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15267
15268
15269 # Source file extension for C test sources.
15270 ac_ext=c
15271
15272 # Object file extension for compiled C test sources.
15273 objext=o
15274 objext=$objext
15275
15276 # Code to be used in simple compile tests
15277 lt_simple_compile_test_code="int some_variable = 0;"
15278
15279 # Code to be used in simple link tests
15280 lt_simple_link_test_code='int main(){return(0);}'
15281
15282
15283
15284
15285
15286
15287
15288 # If no C compiler was specified, use CC.
15289 LTCC=${LTCC-"$CC"}
15290
15291 # If no C compiler flags were specified, use CFLAGS.
15292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15293
15294 # Allow CC to be a program name with arguments.
15295 compiler=$CC
15296
15297 # Save the default compiler, since it gets overwritten when the other
15298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15299 compiler_DEFAULT=$CC
15300
15301 # save warnings/boilerplate of simple test code
15302 ac_outfile=conftest.$ac_objext
15303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15305 _lt_compiler_boilerplate=`cat conftest.err`
15306 $RM conftest*
15307
15308 ac_outfile=conftest.$ac_objext
15309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15311 _lt_linker_boilerplate=`cat conftest.err`
15312 $RM -r conftest*
15313
15314
15315 ## CAVEAT EMPTOR:
15316 ## There is no encapsulation within the following macros, do not change
15317 ## the running order or otherwise move them around unless you know exactly
15318 ## what you are doing...
15319 if test -n "$compiler"; then
15320
15321 lt_prog_compiler_no_builtin_flag=
15322
15323 if test "$GCC" = yes; then
15324 case $cc_basename in
15325 nvcc*)
15326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15327 *)
15328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15329 esac
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15333 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 lt_cv_prog_compiler_rtti_exceptions=no
15337 ac_outfile=conftest.$ac_objext
15338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15339 lt_compiler_flag="-fno-rtti -fno-exceptions"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 # The option is referenced via a variable to avoid confusing sed.
15345 lt_compile=`echo "$ac_compile" | $SED \
15346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15348 -e 's:$: $lt_compiler_flag:'`
15349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15350 (eval "$lt_compile" 2>conftest.err)
15351 ac_status=$?
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 if (exit $ac_status) && test -s "$ac_outfile"; then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings other than the usual output.
15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_rtti_exceptions=yes
15361 fi
15362 fi
15363 $RM conftest*
15364
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15368
15369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15371 else
15372 :
15373 fi
15374
15375 fi
15376
15377
15378
15379
15380
15381
15382 lt_prog_compiler_wl=
15383 lt_prog_compiler_pic=
15384 lt_prog_compiler_static=
15385
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15388
15389 if test "$GCC" = yes; then
15390 lt_prog_compiler_wl='-Wl,'
15391 lt_prog_compiler_static='-static'
15392
15393 case $host_os in
15394 aix*)
15395 # All AIX code is PIC.
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 now supports IA64 processor
15398 lt_prog_compiler_static='-Bstatic'
15399 fi
15400 lt_prog_compiler_pic='-fPIC'
15401 ;;
15402
15403 amigaos*)
15404 case $host_cpu in
15405 powerpc)
15406 # see comment about AmigaOS4 .so support
15407 lt_prog_compiler_pic='-fPIC'
15408 ;;
15409 m68k)
15410 # FIXME: we need at least 68020 code to build shared libraries, but
15411 # adding the `-m68020' flag to GCC prevents building anything better,
15412 # like `-m68040'.
15413 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15414 ;;
15415 esac
15416 ;;
15417
15418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15419 # PIC is the default for these OSes.
15420 ;;
15421
15422 mingw* | cygwin* | pw32* | os2* | cegcc*)
15423 # This hack is so that the source file can tell whether it is being
15424 # built for inclusion in a dll (and should export symbols for example).
15425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15426 # (--disable-auto-import) libraries
15427 lt_prog_compiler_pic='-DDLL_EXPORT'
15428 ;;
15429
15430 darwin* | rhapsody*)
15431 # PIC is the default on this platform
15432 # Common symbols not allowed in MH_DYLIB files
15433 lt_prog_compiler_pic='-fno-common'
15434 ;;
15435
15436 haiku*)
15437 # PIC is the default for Haiku.
15438 # The "-static" flag exists, but is broken.
15439 lt_prog_compiler_static=
15440 ;;
15441
15442 hpux*)
15443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15445 # sets the default TLS model and affects inlining.
15446 case $host_cpu in
15447 hppa*64*)
15448 # +Z the default
15449 ;;
15450 *)
15451 lt_prog_compiler_pic='-fPIC'
15452 ;;
15453 esac
15454 ;;
15455
15456 interix[3-9]*)
15457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15458 # Instead, we relocate shared libraries at runtime.
15459 ;;
15460
15461 msdosdjgpp*)
15462 # Just because we use GCC doesn't mean we suddenly get shared libraries
15463 # on systems that don't support them.
15464 lt_prog_compiler_can_build_shared=no
15465 enable_shared=no
15466 ;;
15467
15468 *nto* | *qnx*)
15469 # QNX uses GNU C++, but need to define -shared option too, otherwise
15470 # it will coredump.
15471 lt_prog_compiler_pic='-fPIC -shared'
15472 ;;
15473
15474 sysv4*MP*)
15475 if test -d /usr/nec; then
15476 lt_prog_compiler_pic=-Kconform_pic
15477 fi
15478 ;;
15479
15480 *)
15481 lt_prog_compiler_pic='-fPIC'
15482 ;;
15483 esac
15484
15485 case $cc_basename in
15486 nvcc*) # Cuda Compiler Driver 2.2
15487 lt_prog_compiler_wl='-Xlinker '
15488 lt_prog_compiler_pic='-Xcompiler -fPIC'
15489 ;;
15490 esac
15491 else
15492 # PORTME Check for flag to pass linker flags through the system compiler.
15493 case $host_os in
15494 aix*)
15495 lt_prog_compiler_wl='-Wl,'
15496 if test "$host_cpu" = ia64; then
15497 # AIX 5 now supports IA64 processor
15498 lt_prog_compiler_static='-Bstatic'
15499 else
15500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15501 fi
15502 ;;
15503
15504 mingw* | cygwin* | pw32* | os2* | cegcc*)
15505 # This hack is so that the source file can tell whether it is being
15506 # built for inclusion in a dll (and should export symbols for example).
15507 lt_prog_compiler_pic='-DDLL_EXPORT'
15508 ;;
15509
15510 hpux9* | hpux10* | hpux11*)
15511 lt_prog_compiler_wl='-Wl,'
15512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513 # not for PA HP-UX.
15514 case $host_cpu in
15515 hppa*64*|ia64*)
15516 # +Z the default
15517 ;;
15518 *)
15519 lt_prog_compiler_pic='+Z'
15520 ;;
15521 esac
15522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15523 lt_prog_compiler_static='${wl}-a ${wl}archive'
15524 ;;
15525
15526 irix5* | irix6* | nonstopux*)
15527 lt_prog_compiler_wl='-Wl,'
15528 # PIC (with -KPIC) is the default.
15529 lt_prog_compiler_static='-non_shared'
15530 ;;
15531
15532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15533 case $cc_basename in
15534 # old Intel for x86_64 which still supported -KPIC.
15535 ecc*)
15536 lt_prog_compiler_wl='-Wl,'
15537 lt_prog_compiler_pic='-KPIC'
15538 lt_prog_compiler_static='-static'
15539 ;;
15540 # icc used to be incompatible with GCC.
15541 # ICC 10 doesn't accept -KPIC any more.
15542 icc* | ifort*)
15543 lt_prog_compiler_wl='-Wl,'
15544 lt_prog_compiler_pic='-fPIC'
15545 lt_prog_compiler_static='-static'
15546 ;;
15547 # Lahey Fortran 8.1.
15548 lf95*)
15549 lt_prog_compiler_wl='-Wl,'
15550 lt_prog_compiler_pic='--shared'
15551 lt_prog_compiler_static='--static'
15552 ;;
15553 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15554 # Portland Group compilers (*not* the Pentium gcc compiler,
15555 # which looks to be a dead project)
15556 lt_prog_compiler_wl='-Wl,'
15557 lt_prog_compiler_pic='-fpic'
15558 lt_prog_compiler_static='-Bstatic'
15559 ;;
15560 ccc*)
15561 lt_prog_compiler_wl='-Wl,'
15562 # All Alpha code is PIC.
15563 lt_prog_compiler_static='-non_shared'
15564 ;;
15565 xl* | bgxl* | bgf* | mpixl*)
15566 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15567 lt_prog_compiler_wl='-Wl,'
15568 lt_prog_compiler_pic='-qpic'
15569 lt_prog_compiler_static='-qstaticlink'
15570 ;;
15571 *)
15572 case `$CC -V 2>&1 | sed 5q` in
15573 *Sun\ F* | *Sun*Fortran*)
15574 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15575 lt_prog_compiler_pic='-KPIC'
15576 lt_prog_compiler_static='-Bstatic'
15577 lt_prog_compiler_wl=''
15578 ;;
15579 *Sun\ C*)
15580 # Sun C 5.9
15581 lt_prog_compiler_pic='-KPIC'
15582 lt_prog_compiler_static='-Bstatic'
15583 lt_prog_compiler_wl='-Wl,'
15584 ;;
15585 esac
15586 ;;
15587 esac
15588 ;;
15589
15590 newsos6)
15591 lt_prog_compiler_pic='-KPIC'
15592 lt_prog_compiler_static='-Bstatic'
15593 ;;
15594
15595 *nto* | *qnx*)
15596 # QNX uses GNU C++, but need to define -shared option too, otherwise
15597 # it will coredump.
15598 lt_prog_compiler_pic='-fPIC -shared'
15599 ;;
15600
15601 osf3* | osf4* | osf5*)
15602 lt_prog_compiler_wl='-Wl,'
15603 # All OSF/1 code is PIC.
15604 lt_prog_compiler_static='-non_shared'
15605 ;;
15606
15607 rdos*)
15608 lt_prog_compiler_static='-non_shared'
15609 ;;
15610
15611 solaris*)
15612 lt_prog_compiler_pic='-KPIC'
15613 lt_prog_compiler_static='-Bstatic'
15614 case $cc_basename in
15615 f77* | f90* | f95*)
15616 lt_prog_compiler_wl='-Qoption ld ';;
15617 *)
15618 lt_prog_compiler_wl='-Wl,';;
15619 esac
15620 ;;
15621
15622 sunos4*)
15623 lt_prog_compiler_wl='-Qoption ld '
15624 lt_prog_compiler_pic='-PIC'
15625 lt_prog_compiler_static='-Bstatic'
15626 ;;
15627
15628 sysv4 | sysv4.2uw2* | sysv4.3*)
15629 lt_prog_compiler_wl='-Wl,'
15630 lt_prog_compiler_pic='-KPIC'
15631 lt_prog_compiler_static='-Bstatic'
15632 ;;
15633
15634 sysv4*MP*)
15635 if test -d /usr/nec ;then
15636 lt_prog_compiler_pic='-Kconform_pic'
15637 lt_prog_compiler_static='-Bstatic'
15638 fi
15639 ;;
15640
15641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_pic='-KPIC'
15644 lt_prog_compiler_static='-Bstatic'
15645 ;;
15646
15647 unicos*)
15648 lt_prog_compiler_wl='-Wl,'
15649 lt_prog_compiler_can_build_shared=no
15650 ;;
15651
15652 uts4*)
15653 lt_prog_compiler_pic='-pic'
15654 lt_prog_compiler_static='-Bstatic'
15655 ;;
15656
15657 *)
15658 lt_prog_compiler_can_build_shared=no
15659 ;;
15660 esac
15661 fi
15662
15663 case $host_os in
15664 # For platforms which do not support PIC, -DPIC is meaningless:
15665 *djgpp*)
15666 lt_prog_compiler_pic=
15667 ;;
15668 *)
15669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15670 ;;
15671 esac
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15673 $as_echo "$lt_prog_compiler_pic" >&6; }
15674
15675
15676
15677
15678
15679
15680 #
15681 # Check to make sure the PIC flag actually works.
15682 #
15683 if test -n "$lt_prog_compiler_pic"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15686 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 lt_cv_prog_compiler_pic_works=no
15690 ac_outfile=conftest.$ac_objext
15691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15693 # Insert the option either (1) after the last *FLAGS variable, or
15694 # (2) before a word containing "conftest.", or (3) at the end.
15695 # Note that $ac_compile itself does not contain backslashes and begins
15696 # with a dollar sign (not a hyphen), so the echo should work correctly.
15697 # The option is referenced via a variable to avoid confusing sed.
15698 lt_compile=`echo "$ac_compile" | $SED \
15699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15701 -e 's:$: $lt_compiler_flag:'`
15702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15703 (eval "$lt_compile" 2>conftest.err)
15704 ac_status=$?
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 if (exit $ac_status) && test -s "$ac_outfile"; then
15708 # The compiler can only warn and ignore the option if not recognized
15709 # So say no if there are warnings other than the usual output.
15710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15713 lt_cv_prog_compiler_pic_works=yes
15714 fi
15715 fi
15716 $RM conftest*
15717
15718 fi
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15721
15722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15723 case $lt_prog_compiler_pic in
15724 "" | " "*) ;;
15725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15726 esac
15727 else
15728 lt_prog_compiler_pic=
15729 lt_prog_compiler_can_build_shared=no
15730 fi
15731
15732 fi
15733
15734
15735
15736
15737
15738
15739 #
15740 # Check to make sure the static flag actually works.
15741 #
15742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15745 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 lt_cv_prog_compiler_static_works=no
15749 save_LDFLAGS="$LDFLAGS"
15750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15753 # The linker can only warn and ignore the option if not recognized
15754 # So say no if there are warnings
15755 if test -s conftest.err; then
15756 # Append any errors to the config.log.
15757 cat conftest.err 1>&5
15758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15760 if diff conftest.exp conftest.er2 >/dev/null; then
15761 lt_cv_prog_compiler_static_works=yes
15762 fi
15763 else
15764 lt_cv_prog_compiler_static_works=yes
15765 fi
15766 fi
15767 $RM -r conftest*
15768 LDFLAGS="$save_LDFLAGS"
15769
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15773
15774 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15775 :
15776 else
15777 lt_prog_compiler_static=
15778 fi
15779
15780
15781
15782
15783
15784
15785
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15788 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 lt_cv_prog_compiler_c_o=no
15792 $RM -r conftest 2>/dev/null
15793 mkdir conftest
15794 cd conftest
15795 mkdir out
15796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797
15798 lt_compiler_flag="-o out/conftest2.$ac_objext"
15799 # Insert the option either (1) after the last *FLAGS variable, or
15800 # (2) before a word containing "conftest.", or (3) at the end.
15801 # Note that $ac_compile itself does not contain backslashes and begins
15802 # with a dollar sign (not a hyphen), so the echo should work correctly.
15803 lt_compile=`echo "$ac_compile" | $SED \
15804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15806 -e 's:$: $lt_compiler_flag:'`
15807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15808 (eval "$lt_compile" 2>out/conftest.err)
15809 ac_status=$?
15810 cat out/conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15813 then
15814 # The compiler can only warn and ignore the option if not recognized
15815 # So say no if there are warnings
15816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler_c_o=yes
15820 fi
15821 fi
15822 chmod u+w . 2>&5
15823 $RM conftest*
15824 # SGI C++ compiler will create directory out/ii_files/ for
15825 # template instantiation
15826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15827 $RM out/* && rmdir out
15828 cd ..
15829 $RM -r conftest
15830 $RM conftest*
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15835
15836
15837
15838
15839
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 lt_cv_prog_compiler_c_o=no
15847 $RM -r conftest 2>/dev/null
15848 mkdir conftest
15849 cd conftest
15850 mkdir out
15851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15852
15853 lt_compiler_flag="-o out/conftest2.$ac_objext"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 lt_compile=`echo "$ac_compile" | $SED \
15859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861 -e 's:$: $lt_compiler_flag:'`
15862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15863 (eval "$lt_compile" 2>out/conftest.err)
15864 ac_status=$?
15865 cat out/conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15868 then
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_c_o=yes
15875 fi
15876 fi
15877 chmod u+w . 2>&5
15878 $RM conftest*
15879 # SGI C++ compiler will create directory out/ii_files/ for
15880 # template instantiation
15881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15882 $RM out/* && rmdir out
15883 cd ..
15884 $RM -r conftest
15885 $RM conftest*
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15890
15891
15892
15893
15894 hard_links="nottested"
15895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15896 # do not overwrite the value of need_locks provided by the user
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15898 $as_echo_n "checking if we can lock with hard links... " >&6; }
15899 hard_links=yes
15900 $RM conftest*
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 touch conftest.a
15903 ln conftest.a conftest.b 2>&5 || hard_links=no
15904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15906 $as_echo "$hard_links" >&6; }
15907 if test "$hard_links" = no; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15909 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15910 need_locks=warn
15911 fi
15912 else
15913 need_locks=no
15914 fi
15915
15916
15917
15918
15919
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15923
15924 runpath_var=
15925 allow_undefined_flag=
15926 always_export_symbols=no
15927 archive_cmds=
15928 archive_expsym_cmds=
15929 compiler_needs_object=no
15930 enable_shared_with_static_runtimes=no
15931 export_dynamic_flag_spec=
15932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15933 hardcode_automatic=no
15934 hardcode_direct=no
15935 hardcode_direct_absolute=no
15936 hardcode_libdir_flag_spec=
15937 hardcode_libdir_flag_spec_ld=
15938 hardcode_libdir_separator=
15939 hardcode_minus_L=no
15940 hardcode_shlibpath_var=unsupported
15941 inherit_rpath=no
15942 link_all_deplibs=unknown
15943 module_cmds=
15944 module_expsym_cmds=
15945 old_archive_from_new_cmds=
15946 old_archive_from_expsyms_cmds=
15947 thread_safe_flag_spec=
15948 whole_archive_flag_spec=
15949 # include_expsyms should be a list of space-separated symbols to be *always*
15950 # included in the symbol list
15951 include_expsyms=
15952 # exclude_expsyms can be an extended regexp of symbols to exclude
15953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15955 # as well as any symbol that contains `d'.
15956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15958 # platforms (ab)use it in PIC code, but their linkers get confused if
15959 # the symbol is explicitly referenced. Since portable code cannot
15960 # rely on this symbol name, it's probably fine to never include it in
15961 # preloaded symbol tables.
15962 # Exclude shared library initialization/finalization symbols.
15963 extract_expsyms_cmds=
15964
15965 case $host_os in
15966 cygwin* | mingw* | pw32* | cegcc*)
15967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15968 # When not using gcc, we currently assume that we are using
15969 # Microsoft Visual C++.
15970 if test "$GCC" != yes; then
15971 with_gnu_ld=no
15972 fi
15973 ;;
15974 interix*)
15975 # we just hope/assume this is gcc and not c89 (= MSVC++)
15976 with_gnu_ld=yes
15977 ;;
15978 openbsd*)
15979 with_gnu_ld=no
15980 ;;
15981 esac
15982
15983 ld_shlibs=yes
15984
15985 # On some targets, GNU ld is compatible enough with the native linker
15986 # that we're better off using the native interface for both.
15987 lt_use_gnu_ld_interface=no
15988 if test "$with_gnu_ld" = yes; then
15989 case $host_os in
15990 aix*)
15991 # The AIX port of GNU ld has always aspired to compatibility
15992 # with the native linker. However, as the warning in the GNU ld
15993 # block says, versions before 2.19.5* couldn't really create working
15994 # shared libraries, regardless of the interface used.
15995 case `$LD -v 2>&1` in
15996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15999 *)
16000 lt_use_gnu_ld_interface=yes
16001 ;;
16002 esac
16003 ;;
16004 *)
16005 lt_use_gnu_ld_interface=yes
16006 ;;
16007 esac
16008 fi
16009
16010 if test "$lt_use_gnu_ld_interface" = yes; then
16011 # If archive_cmds runs LD, not CC, wlarc should be empty
16012 wlarc='${wl}'
16013
16014 # Set some defaults for GNU ld with shared library support. These
16015 # are reset later if shared libraries are not supported. Putting them
16016 # here allows them to be overridden if necessary.
16017 runpath_var=LD_RUN_PATH
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 export_dynamic_flag_spec='${wl}--export-dynamic'
16020 # ancient GNU ld didn't support --whole-archive et. al.
16021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16022 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16023 else
16024 whole_archive_flag_spec=
16025 fi
16026 supports_anon_versioning=no
16027 case `$LD -v 2>&1` in
16028 *GNU\ gold*) supports_anon_versioning=yes ;;
16029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032 *\ 2.11.*) ;; # other 2.11 versions
16033 *) supports_anon_versioning=yes ;;
16034 esac
16035
16036 # See if GNU ld supports shared libraries.
16037 case $host_os in
16038 aix[3-9]*)
16039 # On AIX/PPC, the GNU linker is very broken
16040 if test "$host_cpu" != ia64; then
16041 ld_shlibs=no
16042 cat <<_LT_EOF 1>&2
16043
16044 *** Warning: the GNU linker, at least up to release 2.19, is reported
16045 *** to be unable to reliably create shared libraries on AIX.
16046 *** Therefore, libtool is disabling shared libraries support. If you
16047 *** really care for shared libraries, you may want to install binutils
16048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16049 *** You will then need to restart the configuration process.
16050
16051 _LT_EOF
16052 fi
16053 ;;
16054
16055 amigaos*)
16056 case $host_cpu in
16057 powerpc)
16058 # see comment about AmigaOS4 .so support
16059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds=''
16061 ;;
16062 m68k)
16063 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)'
16064 hardcode_libdir_flag_spec='-L$libdir'
16065 hardcode_minus_L=yes
16066 ;;
16067 esac
16068 ;;
16069
16070 beos*)
16071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16072 allow_undefined_flag=unsupported
16073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16074 # support --undefined. This deserves some investigation. FIXME
16075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 else
16077 ld_shlibs=no
16078 fi
16079 ;;
16080
16081 cygwin* | mingw* | pw32* | cegcc*)
16082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16083 # as there is no search path for DLLs.
16084 hardcode_libdir_flag_spec='-L$libdir'
16085 export_dynamic_flag_spec='${wl}--export-all-symbols'
16086 allow_undefined_flag=unsupported
16087 always_export_symbols=no
16088 enable_shared_with_static_runtimes=yes
16089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16090
16091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093 # If the export-symbols file already is a .def file (1st line
16094 # is EXPORTS), use it as is; otherwise, prepend...
16095 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16096 cp $export_symbols $output_objdir/$soname.def;
16097 else
16098 echo EXPORTS > $output_objdir/$soname.def;
16099 cat $export_symbols >> $output_objdir/$soname.def;
16100 fi~
16101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16102 else
16103 ld_shlibs=no
16104 fi
16105 ;;
16106
16107 haiku*)
16108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16109 link_all_deplibs=yes
16110 ;;
16111
16112 interix[3-9]*)
16113 hardcode_direct=no
16114 hardcode_shlibpath_var=no
16115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16116 export_dynamic_flag_spec='${wl}-E'
16117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16118 # Instead, shared libraries are loaded at an image base (0x10000000 by
16119 # default) and relocated if they conflict, which is a slow very memory
16120 # consuming and fragmenting process. To avoid this, we pick a random,
16121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16124 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'
16125 ;;
16126
16127 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16128 tmp_diet=no
16129 if test "$host_os" = linux-dietlibc; then
16130 case $cc_basename in
16131 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16132 esac
16133 fi
16134 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16135 && test "$tmp_diet" = no
16136 then
16137 tmp_addflag=' $pic_flag'
16138 tmp_sharedflag='-shared'
16139 case $cc_basename,$host_cpu in
16140 pgcc*) # Portland Group C compiler
16141 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'
16142 tmp_addflag=' $pic_flag'
16143 ;;
16144 pgf77* | pgf90* | pgf95* | pgfortran*)
16145 # Portland Group f77 and f90 compilers
16146 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'
16147 tmp_addflag=' $pic_flag -Mnomain' ;;
16148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16149 tmp_addflag=' -i_dynamic' ;;
16150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16151 tmp_addflag=' -i_dynamic -nofor_main' ;;
16152 ifc* | ifort*) # Intel Fortran compiler
16153 tmp_addflag=' -nofor_main' ;;
16154 lf95*) # Lahey Fortran 8.1
16155 whole_archive_flag_spec=
16156 tmp_sharedflag='--shared' ;;
16157 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16158 tmp_sharedflag='-qmkshrobj'
16159 tmp_addflag= ;;
16160 nvcc*) # Cuda Compiler Driver 2.2
16161 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'
16162 compiler_needs_object=yes
16163 ;;
16164 esac
16165 case `$CC -V 2>&1 | sed 5q` in
16166 *Sun\ C*) # Sun C 5.9
16167 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'
16168 compiler_needs_object=yes
16169 tmp_sharedflag='-G' ;;
16170 *Sun\ F*) # Sun Fortran 8.3
16171 tmp_sharedflag='-G' ;;
16172 esac
16173 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174
16175 if test "x$supports_anon_versioning" = xyes; then
16176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16178 echo "local: *; };" >> $output_objdir/$libname.ver~
16179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16180 fi
16181
16182 case $cc_basename in
16183 xlf* | bgf* | bgxlf* | mpixlf*)
16184 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16185 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16186 hardcode_libdir_flag_spec=
16187 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16188 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16189 if test "x$supports_anon_versioning" = xyes; then
16190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16192 echo "local: *; };" >> $output_objdir/$libname.ver~
16193 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16194 fi
16195 ;;
16196 esac
16197 else
16198 ld_shlibs=no
16199 fi
16200 ;;
16201
16202 netbsd*)
16203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16205 wlarc=
16206 else
16207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16209 fi
16210 ;;
16211
16212 solaris*)
16213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16214 ld_shlibs=no
16215 cat <<_LT_EOF 1>&2
16216
16217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16218 *** create shared libraries on Solaris systems. Therefore, libtool
16219 *** is disabling shared libraries support. We urge you to upgrade GNU
16220 *** binutils to release 2.9.1 or newer. Another option is to modify
16221 *** your PATH or compiler configuration so that the native linker is
16222 *** used, and then restart.
16223
16224 _LT_EOF
16225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16228 else
16229 ld_shlibs=no
16230 fi
16231 ;;
16232
16233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16234 case `$LD -v 2>&1` in
16235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16236 ld_shlibs=no
16237 cat <<_LT_EOF 1>&2
16238
16239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16240 *** reliably create shared libraries on SCO systems. Therefore, libtool
16241 *** is disabling shared libraries support. We urge you to upgrade GNU
16242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16243 *** your PATH or compiler configuration so that the native linker is
16244 *** used, and then restart.
16245
16246 _LT_EOF
16247 ;;
16248 *)
16249 # For security reasons, it is highly recommended that you always
16250 # use absolute paths for naming shared libraries, and exclude the
16251 # DT_RUNPATH tag from executables and libraries. But doing so
16252 # requires that you compile everything twice, which is a pain.
16253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16257 else
16258 ld_shlibs=no
16259 fi
16260 ;;
16261 esac
16262 ;;
16263
16264 sunos4*)
16265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16266 wlarc=
16267 hardcode_direct=yes
16268 hardcode_shlibpath_var=no
16269 ;;
16270
16271 *)
16272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16275 else
16276 ld_shlibs=no
16277 fi
16278 ;;
16279 esac
16280
16281 if test "$ld_shlibs" = no; then
16282 runpath_var=
16283 hardcode_libdir_flag_spec=
16284 export_dynamic_flag_spec=
16285 whole_archive_flag_spec=
16286 fi
16287 else
16288 # PORTME fill in a description of your system's linker (not GNU ld)
16289 case $host_os in
16290 aix3*)
16291 allow_undefined_flag=unsupported
16292 always_export_symbols=yes
16293 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'
16294 # Note: this linker hardcodes the directories in LIBPATH if there
16295 # are no directories specified by -L.
16296 hardcode_minus_L=yes
16297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16298 # Neither direct hardcoding nor static linking is supported with a
16299 # broken collect2.
16300 hardcode_direct=unsupported
16301 fi
16302 ;;
16303
16304 aix[4-9]*)
16305 if test "$host_cpu" = ia64; then
16306 # On IA64, the linker does run time linking by default, so we don't
16307 # have to do anything special.
16308 aix_use_runtimelinking=no
16309 exp_sym_flag='-Bexport'
16310 no_entry_flag=""
16311 else
16312 # If we're using GNU nm, then we don't want the "-C" option.
16313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16314 # Also, AIX nm treats weak defined symbols like other global
16315 # defined symbols, whereas GNU nm marks them as "W".
16316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16317 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'
16318 else
16319 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'
16320 fi
16321 aix_use_runtimelinking=no
16322
16323 # Test if we are trying to use run time linking or normal
16324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16325 # need to do runtime linking.
16326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16327 for ld_flag in $LDFLAGS; do
16328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16329 aix_use_runtimelinking=yes
16330 break
16331 fi
16332 done
16333 ;;
16334 esac
16335
16336 exp_sym_flag='-bexport'
16337 no_entry_flag='-bnoentry'
16338 fi
16339
16340 # When large executables or shared objects are built, AIX ld can
16341 # have problems creating the table of contents. If linking a library
16342 # or program results in "error TOC overflow" add -mminimal-toc to
16343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16345
16346 archive_cmds=''
16347 hardcode_direct=yes
16348 hardcode_direct_absolute=yes
16349 hardcode_libdir_separator=':'
16350 link_all_deplibs=yes
16351 file_list_spec='${wl}-f,'
16352
16353 if test "$GCC" = yes; then
16354 case $host_os in aix4.[012]|aix4.[012].*)
16355 # We only want to do this on AIX 4.2 and lower, the check
16356 # below for broken collect2 doesn't work under 4.3+
16357 collect2name=`${CC} -print-prog-name=collect2`
16358 if test -f "$collect2name" &&
16359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16360 then
16361 # We have reworked collect2
16362 :
16363 else
16364 # We have old collect2
16365 hardcode_direct=unsupported
16366 # It fails to find uninstalled libraries when the uninstalled
16367 # path is not listed in the libpath. Setting hardcode_minus_L
16368 # to unsupported forces relinking
16369 hardcode_minus_L=yes
16370 hardcode_libdir_flag_spec='-L$libdir'
16371 hardcode_libdir_separator=
16372 fi
16373 ;;
16374 esac
16375 shared_flag='-shared'
16376 if test "$aix_use_runtimelinking" = yes; then
16377 shared_flag="$shared_flag "'${wl}-G'
16378 fi
16379 else
16380 # not using gcc
16381 if test "$host_cpu" = ia64; then
16382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16383 # chokes on -Wl,-G. The following line is correct:
16384 shared_flag='-G'
16385 else
16386 if test "$aix_use_runtimelinking" = yes; then
16387 shared_flag='${wl}-G'
16388 else
16389 shared_flag='${wl}-bM:SRE'
16390 fi
16391 fi
16392 fi
16393
16394 export_dynamic_flag_spec='${wl}-bexpall'
16395 # It seems that -bexpall does not export symbols beginning with
16396 # underscore (_), so it is better to generate a list of symbols to export.
16397 always_export_symbols=yes
16398 if test "$aix_use_runtimelinking" = yes; then
16399 # Warning - without using the other runtime loading flags (-brtl),
16400 # -berok will link without error, but may produce a broken library.
16401 allow_undefined_flag='-berok'
16402 # Determine the default libpath from the value encoded in an
16403 # empty executable.
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406
16407 int
16408 main ()
16409 {
16410
16411 ;
16412 return 0;
16413 }
16414 _ACEOF
16415 if ac_fn_c_try_link "$LINENO"; then :
16416
16417 lt_aix_libpath_sed='
16418 /Import File Strings/,/^$/ {
16419 /^0/ {
16420 s/^0 *\(.*\)$/\1/
16421 p
16422 }
16423 }'
16424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16425 # Check for a 64-bit object if we didn't find anything.
16426 if test -z "$aix_libpath"; then
16427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16428 fi
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16433
16434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 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"
16436 else
16437 if test "$host_cpu" = ia64; then
16438 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16439 allow_undefined_flag="-z nodefs"
16440 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"
16441 else
16442 # Determine the default libpath from the value encoded in an
16443 # empty executable.
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446
16447 int
16448 main ()
16449 {
16450
16451 ;
16452 return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456
16457 lt_aix_libpath_sed='
16458 /Import File Strings/,/^$/ {
16459 /^0/ {
16460 s/^0 *\(.*\)$/\1/
16461 p
16462 }
16463 }'
16464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16465 # Check for a 64-bit object if we didn't find anything.
16466 if test -z "$aix_libpath"; then
16467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16468 fi
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16473
16474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16475 # Warning - without using the other run time loading flags,
16476 # -berok will link without error, but may produce a broken library.
16477 no_undefined_flag=' ${wl}-bernotok'
16478 allow_undefined_flag=' ${wl}-berok'
16479 if test "$with_gnu_ld" = yes; then
16480 # We only use this code for GNU lds that support --whole-archive.
16481 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16482 else
16483 # Exported symbols can be pulled into shared objects from archives
16484 whole_archive_flag_spec='$convenience'
16485 fi
16486 archive_cmds_need_lc=yes
16487 # This is similar to how AIX traditionally builds its shared libraries.
16488 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'
16489 fi
16490 fi
16491 ;;
16492
16493 amigaos*)
16494 case $host_cpu in
16495 powerpc)
16496 # see comment about AmigaOS4 .so support
16497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16498 archive_expsym_cmds=''
16499 ;;
16500 m68k)
16501 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)'
16502 hardcode_libdir_flag_spec='-L$libdir'
16503 hardcode_minus_L=yes
16504 ;;
16505 esac
16506 ;;
16507
16508 bsdi[45]*)
16509 export_dynamic_flag_spec=-rdynamic
16510 ;;
16511
16512 cygwin* | mingw* | pw32* | cegcc*)
16513 # When not using gcc, we currently assume that we are using
16514 # Microsoft Visual C++.
16515 # hardcode_libdir_flag_spec is actually meaningless, as there is
16516 # no search path for DLLs.
16517 hardcode_libdir_flag_spec=' '
16518 allow_undefined_flag=unsupported
16519 # Tell ltmain to make .lib files, not .a files.
16520 libext=lib
16521 # Tell ltmain to make .dll files, not .so files.
16522 shrext_cmds=".dll"
16523 # FIXME: Setting linknames here is a bad hack.
16524 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16525 # The linker will automatically build a .lib file if we build a DLL.
16526 old_archive_from_new_cmds='true'
16527 # FIXME: Should let the user specify the lib program.
16528 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16529 fix_srcfile_path='`cygpath -w "$srcfile"`'
16530 enable_shared_with_static_runtimes=yes
16531 ;;
16532
16533 darwin* | rhapsody*)
16534
16535
16536 archive_cmds_need_lc=no
16537 hardcode_direct=no
16538 hardcode_automatic=yes
16539 hardcode_shlibpath_var=unsupported
16540 if test "$lt_cv_ld_force_load" = "yes"; then
16541 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\"`'
16542 else
16543 whole_archive_flag_spec=''
16544 fi
16545 link_all_deplibs=yes
16546 allow_undefined_flag="$_lt_dar_allow_undefined"
16547 case $cc_basename in
16548 ifort*) _lt_dar_can_shared=yes ;;
16549 *) _lt_dar_can_shared=$GCC ;;
16550 esac
16551 if test "$_lt_dar_can_shared" = "yes"; then
16552 output_verbose_link_cmd=func_echo_all
16553 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16554 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16555 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}"
16556 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}"
16557
16558 else
16559 ld_shlibs=no
16560 fi
16561
16562 ;;
16563
16564 dgux*)
16565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_libdir_flag_spec='-L$libdir'
16567 hardcode_shlibpath_var=no
16568 ;;
16569
16570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16571 # support. Future versions do this automatically, but an explicit c++rt0.o
16572 # does not break anything, and helps significantly (at the cost of a little
16573 # extra space).
16574 freebsd2.2*)
16575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16576 hardcode_libdir_flag_spec='-R$libdir'
16577 hardcode_direct=yes
16578 hardcode_shlibpath_var=no
16579 ;;
16580
16581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16582 freebsd2.*)
16583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_direct=yes
16585 hardcode_minus_L=yes
16586 hardcode_shlibpath_var=no
16587 ;;
16588
16589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16590 freebsd* | dragonfly*)
16591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16592 hardcode_libdir_flag_spec='-R$libdir'
16593 hardcode_direct=yes
16594 hardcode_shlibpath_var=no
16595 ;;
16596
16597 hpux9*)
16598 if test "$GCC" = yes; then
16599 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'
16600 else
16601 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'
16602 fi
16603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16604 hardcode_libdir_separator=:
16605 hardcode_direct=yes
16606
16607 # hardcode_minus_L: Not really in the search PATH,
16608 # but as the default location of the library.
16609 hardcode_minus_L=yes
16610 export_dynamic_flag_spec='${wl}-E'
16611 ;;
16612
16613 hpux10*)
16614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16616 else
16617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16618 fi
16619 if test "$with_gnu_ld" = no; then
16620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16621 hardcode_libdir_flag_spec_ld='+b $libdir'
16622 hardcode_libdir_separator=:
16623 hardcode_direct=yes
16624 hardcode_direct_absolute=yes
16625 export_dynamic_flag_spec='${wl}-E'
16626 # hardcode_minus_L: Not really in the search PATH,
16627 # but as the default location of the library.
16628 hardcode_minus_L=yes
16629 fi
16630 ;;
16631
16632 hpux11*)
16633 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16634 case $host_cpu in
16635 hppa*64*)
16636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16637 ;;
16638 ia64*)
16639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16640 ;;
16641 *)
16642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16643 ;;
16644 esac
16645 else
16646 case $host_cpu in
16647 hppa*64*)
16648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649 ;;
16650 ia64*)
16651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16652 ;;
16653 *)
16654
16655 # Older versions of the 11.00 compiler do not understand -b yet
16656 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16658 $as_echo_n "checking if $CC understands -b... " >&6; }
16659 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 lt_cv_prog_compiler__b=no
16663 save_LDFLAGS="$LDFLAGS"
16664 LDFLAGS="$LDFLAGS -b"
16665 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16667 # The linker can only warn and ignore the option if not recognized
16668 # So say no if there are warnings
16669 if test -s conftest.err; then
16670 # Append any errors to the config.log.
16671 cat conftest.err 1>&5
16672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16674 if diff conftest.exp conftest.er2 >/dev/null; then
16675 lt_cv_prog_compiler__b=yes
16676 fi
16677 else
16678 lt_cv_prog_compiler__b=yes
16679 fi
16680 fi
16681 $RM -r conftest*
16682 LDFLAGS="$save_LDFLAGS"
16683
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16686 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16687
16688 if test x"$lt_cv_prog_compiler__b" = xyes; then
16689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16690 else
16691 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16692 fi
16693
16694 ;;
16695 esac
16696 fi
16697 if test "$with_gnu_ld" = no; then
16698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16699 hardcode_libdir_separator=:
16700
16701 case $host_cpu in
16702 hppa*64*|ia64*)
16703 hardcode_direct=no
16704 hardcode_shlibpath_var=no
16705 ;;
16706 *)
16707 hardcode_direct=yes
16708 hardcode_direct_absolute=yes
16709 export_dynamic_flag_spec='${wl}-E'
16710
16711 # hardcode_minus_L: Not really in the search PATH,
16712 # but as the default location of the library.
16713 hardcode_minus_L=yes
16714 ;;
16715 esac
16716 fi
16717 ;;
16718
16719 irix5* | irix6* | nonstopux*)
16720 if test "$GCC" = yes; then
16721 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'
16722 # Try to use the -exported_symbol ld option, if it does not
16723 # work, assume that -exports_file does not work either and
16724 # implicitly export all symbols.
16725 save_LDFLAGS="$LDFLAGS"
16726 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 int foo(void) {}
16730 _ACEOF
16731 if ac_fn_c_try_link "$LINENO"; then :
16732 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'
16733
16734 fi
16735 rm -f core conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 LDFLAGS="$save_LDFLAGS"
16738 else
16739 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'
16740 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'
16741 fi
16742 archive_cmds_need_lc='no'
16743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator=:
16745 inherit_rpath=yes
16746 link_all_deplibs=yes
16747 ;;
16748
16749 netbsd*)
16750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16752 else
16753 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16754 fi
16755 hardcode_libdir_flag_spec='-R$libdir'
16756 hardcode_direct=yes
16757 hardcode_shlibpath_var=no
16758 ;;
16759
16760 newsos6)
16761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16762 hardcode_direct=yes
16763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16764 hardcode_libdir_separator=:
16765 hardcode_shlibpath_var=no
16766 ;;
16767
16768 *nto* | *qnx*)
16769 ;;
16770
16771 openbsd*)
16772 if test -f /usr/libexec/ld.so; then
16773 hardcode_direct=yes
16774 hardcode_shlibpath_var=no
16775 hardcode_direct_absolute=yes
16776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16778 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16780 export_dynamic_flag_spec='${wl}-E'
16781 else
16782 case $host_os in
16783 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16785 hardcode_libdir_flag_spec='-R$libdir'
16786 ;;
16787 *)
16788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16790 ;;
16791 esac
16792 fi
16793 else
16794 ld_shlibs=no
16795 fi
16796 ;;
16797
16798 os2*)
16799 hardcode_libdir_flag_spec='-L$libdir'
16800 hardcode_minus_L=yes
16801 allow_undefined_flag=unsupported
16802 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'
16803 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16804 ;;
16805
16806 osf3*)
16807 if test "$GCC" = yes; then
16808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16809 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'
16810 else
16811 allow_undefined_flag=' -expect_unresolved \*'
16812 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'
16813 fi
16814 archive_cmds_need_lc='no'
16815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16816 hardcode_libdir_separator=:
16817 ;;
16818
16819 osf4* | osf5*) # as osf3* with the addition of -msym flag
16820 if test "$GCC" = yes; then
16821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16822 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'
16823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16824 else
16825 allow_undefined_flag=' -expect_unresolved \*'
16826 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'
16827 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~
16828 $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'
16829
16830 # Both c and cxx compiler support -rpath directly
16831 hardcode_libdir_flag_spec='-rpath $libdir'
16832 fi
16833 archive_cmds_need_lc='no'
16834 hardcode_libdir_separator=:
16835 ;;
16836
16837 solaris*)
16838 no_undefined_flag=' -z defs'
16839 if test "$GCC" = yes; then
16840 wlarc='${wl}'
16841 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16843 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16844 else
16845 case `$CC -V 2>&1` in
16846 *"Compilers 5.0"*)
16847 wlarc=''
16848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16851 ;;
16852 *)
16853 wlarc='${wl}'
16854 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16856 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16857 ;;
16858 esac
16859 fi
16860 hardcode_libdir_flag_spec='-R$libdir'
16861 hardcode_shlibpath_var=no
16862 case $host_os in
16863 solaris2.[0-5] | solaris2.[0-5].*) ;;
16864 *)
16865 # The compiler driver will combine and reorder linker options,
16866 # but understands `-z linker_flag'. GCC discards it without `$wl',
16867 # but is careful enough not to reorder.
16868 # Supported since Solaris 2.6 (maybe 2.5.1?)
16869 if test "$GCC" = yes; then
16870 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16871 else
16872 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16873 fi
16874 ;;
16875 esac
16876 link_all_deplibs=yes
16877 ;;
16878
16879 sunos4*)
16880 if test "x$host_vendor" = xsequent; then
16881 # Use $CC to link under sequent, because it throws in some extra .o
16882 # files that make .init and .fini sections work.
16883 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16884 else
16885 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16886 fi
16887 hardcode_libdir_flag_spec='-L$libdir'
16888 hardcode_direct=yes
16889 hardcode_minus_L=yes
16890 hardcode_shlibpath_var=no
16891 ;;
16892
16893 sysv4)
16894 case $host_vendor in
16895 sni)
16896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct=yes # is this really true???
16898 ;;
16899 siemens)
16900 ## LD is ld it makes a PLAMLIB
16901 ## CC just makes a GrossModule.
16902 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16903 reload_cmds='$CC -r -o $output$reload_objs'
16904 hardcode_direct=no
16905 ;;
16906 motorola)
16907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16909 ;;
16910 esac
16911 runpath_var='LD_RUN_PATH'
16912 hardcode_shlibpath_var=no
16913 ;;
16914
16915 sysv4.3*)
16916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_shlibpath_var=no
16918 export_dynamic_flag_spec='-Bexport'
16919 ;;
16920
16921 sysv4*MP*)
16922 if test -d /usr/nec; then
16923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_shlibpath_var=no
16925 runpath_var=LD_RUN_PATH
16926 hardcode_runpath_var=yes
16927 ld_shlibs=yes
16928 fi
16929 ;;
16930
16931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16932 no_undefined_flag='${wl}-z,text'
16933 archive_cmds_need_lc=no
16934 hardcode_shlibpath_var=no
16935 runpath_var='LD_RUN_PATH'
16936
16937 if test "$GCC" = yes; then
16938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 else
16941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 fi
16944 ;;
16945
16946 sysv5* | sco3.2v5* | sco5v6*)
16947 # Note: We can NOT use -z defs as we might desire, because we do not
16948 # link with -lc, and that would cause any symbols used from libc to
16949 # always be unresolved, which means just about no library would
16950 # ever link correctly. If we're not using GNU ld we use -z text
16951 # though, which does catch some bad symbols but isn't as heavy-handed
16952 # as -z defs.
16953 no_undefined_flag='${wl}-z,text'
16954 allow_undefined_flag='${wl}-z,nodefs'
16955 archive_cmds_need_lc=no
16956 hardcode_shlibpath_var=no
16957 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16958 hardcode_libdir_separator=':'
16959 link_all_deplibs=yes
16960 export_dynamic_flag_spec='${wl}-Bexport'
16961 runpath_var='LD_RUN_PATH'
16962
16963 if test "$GCC" = yes; then
16964 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16965 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16966 else
16967 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16968 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 fi
16970 ;;
16971
16972 uts4*)
16973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 hardcode_libdir_flag_spec='-L$libdir'
16975 hardcode_shlibpath_var=no
16976 ;;
16977
16978 *)
16979 ld_shlibs=no
16980 ;;
16981 esac
16982
16983 if test x$host_vendor = xsni; then
16984 case $host in
16985 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16986 export_dynamic_flag_spec='${wl}-Blargedynsym'
16987 ;;
16988 esac
16989 fi
16990 fi
16991
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16993 $as_echo "$ld_shlibs" >&6; }
16994 test "$ld_shlibs" = no && can_build_shared=no
16995
16996 with_gnu_ld=$with_gnu_ld
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012 #
17013 # Do we need to explicitly link libc?
17014 #
17015 case "x$archive_cmds_need_lc" in
17016 x|xyes)
17017 # Assume -lc should be added
17018 archive_cmds_need_lc=yes
17019
17020 if test "$enable_shared" = yes && test "$GCC" = yes; then
17021 case $archive_cmds in
17022 *'~'*)
17023 # FIXME: we may have to deal with multi-command sequences.
17024 ;;
17025 '$CC '*)
17026 # Test whether the compiler implicitly links with -lc since on some
17027 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17028 # to ld, don't add -lc before -lgcc.
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17030 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17031 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17032 $as_echo_n "(cached) " >&6
17033 else
17034 $RM conftest*
17035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17036
17037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17038 (eval $ac_compile) 2>&5
17039 ac_status=$?
17040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17041 test $ac_status = 0; } 2>conftest.err; then
17042 soname=conftest
17043 lib=conftest
17044 libobjs=conftest.$ac_objext
17045 deplibs=
17046 wl=$lt_prog_compiler_wl
17047 pic_flag=$lt_prog_compiler_pic
17048 compiler_flags=-v
17049 linker_flags=-v
17050 verstring=
17051 output_objdir=.
17052 libname=conftest
17053 lt_save_allow_undefined_flag=$allow_undefined_flag
17054 allow_undefined_flag=
17055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17056 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17057 ac_status=$?
17058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17059 test $ac_status = 0; }
17060 then
17061 lt_cv_archive_cmds_need_lc=no
17062 else
17063 lt_cv_archive_cmds_need_lc=yes
17064 fi
17065 allow_undefined_flag=$lt_save_allow_undefined_flag
17066 else
17067 cat conftest.err 1>&5
17068 fi
17069 $RM conftest*
17070
17071 fi
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17073 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17074 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17075 ;;
17076 esac
17077 fi
17078 ;;
17079 esac
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17239
17240 if test "$GCC" = yes; then
17241 case $host_os in
17242 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17243 *) lt_awk_arg="/^libraries:/" ;;
17244 esac
17245 case $host_os in
17246 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17247 *) lt_sed_strip_eq="s,=/,/,g" ;;
17248 esac
17249 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17250 case $lt_search_path_spec in
17251 *\;*)
17252 # if the path contains ";" then we assume it to be the separator
17253 # otherwise default to the standard path separator (i.e. ":") - it is
17254 # assumed that no part of a normal pathname contains ";" but that should
17255 # okay in the real world where ";" in dirpaths is itself problematic.
17256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17257 ;;
17258 *)
17259 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17260 ;;
17261 esac
17262 # Ok, now we have the path, separated by spaces, we can step through it
17263 # and add multilib dir if necessary.
17264 lt_tmp_lt_search_path_spec=
17265 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17266 for lt_sys_path in $lt_search_path_spec; do
17267 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17269 else
17270 test -d "$lt_sys_path" && \
17271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17272 fi
17273 done
17274 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17275 BEGIN {RS=" "; FS="/|\n";} {
17276 lt_foo="";
17277 lt_count=0;
17278 for (lt_i = NF; lt_i > 0; lt_i--) {
17279 if ($lt_i != "" && $lt_i != ".") {
17280 if ($lt_i == "..") {
17281 lt_count++;
17282 } else {
17283 if (lt_count == 0) {
17284 lt_foo="/" $lt_i lt_foo;
17285 } else {
17286 lt_count--;
17287 }
17288 }
17289 }
17290 }
17291 if (lt_foo != "") { lt_freq[lt_foo]++; }
17292 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17293 }'`
17294 # AWK program above erroneously prepends '/' to C:/dos/paths
17295 # for these hosts.
17296 case $host_os in
17297 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17298 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17299 esac
17300 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17301 else
17302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17303 fi
17304 library_names_spec=
17305 libname_spec='lib$name'
17306 soname_spec=
17307 shrext_cmds=".so"
17308 postinstall_cmds=
17309 postuninstall_cmds=
17310 finish_cmds=
17311 finish_eval=
17312 shlibpath_var=
17313 shlibpath_overrides_runpath=unknown
17314 version_type=none
17315 dynamic_linker="$host_os ld.so"
17316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17317 need_lib_prefix=unknown
17318 hardcode_into_libs=no
17319
17320 # when you set need_version to no, make sure it does not cause -set_version
17321 # flags to be left without arguments
17322 need_version=unknown
17323
17324 case $host_os in
17325 aix3*)
17326 version_type=linux
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17328 shlibpath_var=LIBPATH
17329
17330 # AIX 3 has no versioning support, so we append a major version to the name.
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 ;;
17333
17334 aix[4-9]*)
17335 version_type=linux
17336 need_lib_prefix=no
17337 need_version=no
17338 hardcode_into_libs=yes
17339 if test "$host_cpu" = ia64; then
17340 # AIX 5 supports IA64
17341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 else
17344 # With GCC up to 2.95.x, collect2 would create an import file
17345 # for dependence libraries. The import file would start with
17346 # the line `#! .'. This would cause the generated library to
17347 # depend on `.', always an invalid library. This was fixed in
17348 # development snapshots of GCC prior to 3.0.
17349 case $host_os in
17350 aix4 | aix4.[01] | aix4.[01].*)
17351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17352 echo ' yes '
17353 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17354 :
17355 else
17356 can_build_shared=no
17357 fi
17358 ;;
17359 esac
17360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17361 # soname into executable. Probably we can add versioning support to
17362 # collect2, so additional links can be useful in future.
17363 if test "$aix_use_runtimelinking" = yes; then
17364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17365 # instead of lib<name>.a to let people know that these are not
17366 # typical AIX shared libraries.
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 else
17369 # We preserve .a as extension for shared libraries through AIX4.2
17370 # and later when we are not doing run time linking.
17371 library_names_spec='${libname}${release}.a $libname.a'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 fi
17374 shlibpath_var=LIBPATH
17375 fi
17376 ;;
17377
17378 amigaos*)
17379 case $host_cpu in
17380 powerpc)
17381 # Since July 2007 AmigaOS4 officially supports .so libraries.
17382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 ;;
17385 m68k)
17386 library_names_spec='$libname.ixlibrary $libname.a'
17387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388 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'
17389 ;;
17390 esac
17391 ;;
17392
17393 beos*)
17394 library_names_spec='${libname}${shared_ext}'
17395 dynamic_linker="$host_os ld.so"
17396 shlibpath_var=LIBRARY_PATH
17397 ;;
17398
17399 bsdi[45]*)
17400 version_type=linux
17401 need_version=no
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17408 # the default ld.so.conf also contains /usr/contrib/lib and
17409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17410 # libtool to hard-code these into programs
17411 ;;
17412
17413 cygwin* | mingw* | pw32* | cegcc*)
17414 version_type=windows
17415 shrext_cmds=".dll"
17416 need_version=no
17417 need_lib_prefix=no
17418
17419 case $GCC,$host_os in
17420 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17421 library_names_spec='$libname.dll.a'
17422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17423 postinstall_cmds='base_file=`basename \${file}`~
17424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17425 dldir=$destdir/`dirname \$dlpath`~
17426 test -d \$dldir || mkdir -p \$dldir~
17427 $install_prog $dir/$dlname \$dldir/$dlname~
17428 chmod a+x \$dldir/$dlname~
17429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17431 fi'
17432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17433 dlpath=$dir/\$dldll~
17434 $RM \$dlpath'
17435 shlibpath_overrides_runpath=yes
17436
17437 case $host_os in
17438 cygwin*)
17439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17441
17442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17443 ;;
17444 mingw* | cegcc*)
17445 # MinGW DLLs use traditional 'lib' prefix
17446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17447 ;;
17448 pw32*)
17449 # pw32 DLLs use 'pw' prefix rather than 'lib'
17450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17451 ;;
17452 esac
17453 ;;
17454
17455 *)
17456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17457 ;;
17458 esac
17459 dynamic_linker='Win32 ld.exe'
17460 # FIXME: first we should search . and the directory the executable is in
17461 shlibpath_var=PATH
17462 ;;
17463
17464 darwin* | rhapsody*)
17465 dynamic_linker="$host_os dyld"
17466 version_type=darwin
17467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17470 soname_spec='${libname}${release}${major}$shared_ext'
17471 shlibpath_overrides_runpath=yes
17472 shlibpath_var=DYLD_LIBRARY_PATH
17473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17474
17475 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17477 ;;
17478
17479 dgux*)
17480 version_type=linux
17481 need_lib_prefix=no
17482 need_version=no
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 ;;
17487
17488 freebsd* | dragonfly*)
17489 # DragonFly does not have aout. When/if they implement a new
17490 # versioning mechanism, adjust this.
17491 if test -x /usr/bin/objformat; then
17492 objformat=`/usr/bin/objformat`
17493 else
17494 case $host_os in
17495 freebsd[23].*) objformat=aout ;;
17496 *) objformat=elf ;;
17497 esac
17498 fi
17499 version_type=freebsd-$objformat
17500 case $version_type in
17501 freebsd-elf*)
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17503 need_version=no
17504 need_lib_prefix=no
17505 ;;
17506 freebsd-*)
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17508 need_version=yes
17509 ;;
17510 esac
17511 shlibpath_var=LD_LIBRARY_PATH
17512 case $host_os in
17513 freebsd2.*)
17514 shlibpath_overrides_runpath=yes
17515 ;;
17516 freebsd3.[01]* | freebsdelf3.[01]*)
17517 shlibpath_overrides_runpath=yes
17518 hardcode_into_libs=yes
17519 ;;
17520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17522 shlibpath_overrides_runpath=no
17523 hardcode_into_libs=yes
17524 ;;
17525 *) # from 4.6 on, and DragonFly
17526 shlibpath_overrides_runpath=yes
17527 hardcode_into_libs=yes
17528 ;;
17529 esac
17530 ;;
17531
17532 gnu*)
17533 version_type=linux
17534 need_lib_prefix=no
17535 need_version=no
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 hardcode_into_libs=yes
17540 ;;
17541
17542 haiku*)
17543 version_type=linux
17544 need_lib_prefix=no
17545 need_version=no
17546 dynamic_linker="$host_os runtime_loader"
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 shlibpath_var=LIBRARY_PATH
17550 shlibpath_overrides_runpath=yes
17551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17552 hardcode_into_libs=yes
17553 ;;
17554
17555 hpux9* | hpux10* | hpux11*)
17556 # Give a soname corresponding to the major version so that dld.sl refuses to
17557 # link against other versions.
17558 version_type=sunos
17559 need_lib_prefix=no
17560 need_version=no
17561 case $host_cpu in
17562 ia64*)
17563 shrext_cmds='.so'
17564 hardcode_into_libs=yes
17565 dynamic_linker="$host_os dld.so"
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 if test "X$HPUX_IA64_MODE" = X32; then
17571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17572 else
17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17574 fi
17575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17576 ;;
17577 hppa*64*)
17578 shrext_cmds='.sl'
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17587 ;;
17588 *)
17589 shrext_cmds='.sl'
17590 dynamic_linker="$host_os dld.sl"
17591 shlibpath_var=SHLIB_PATH
17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17595 ;;
17596 esac
17597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17598 postinstall_cmds='chmod 555 $lib'
17599 # or fails outright, so override atomically:
17600 install_override_mode=555
17601 ;;
17602
17603 interix[3-9]*)
17604 version_type=linux
17605 need_lib_prefix=no
17606 need_version=no
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 shlibpath_overrides_runpath=no
17612 hardcode_into_libs=yes
17613 ;;
17614
17615 irix5* | irix6* | nonstopux*)
17616 case $host_os in
17617 nonstopux*) version_type=nonstopux ;;
17618 *)
17619 if test "$lt_cv_prog_gnu_ld" = yes; then
17620 version_type=linux
17621 else
17622 version_type=irix
17623 fi ;;
17624 esac
17625 need_lib_prefix=no
17626 need_version=no
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17629 case $host_os in
17630 irix5* | nonstopux*)
17631 libsuff= shlibsuff=
17632 ;;
17633 *)
17634 case $LD in # libtool.m4 will add one of these switches to LD
17635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17636 libsuff= shlibsuff= libmagic=32-bit;;
17637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17638 libsuff=32 shlibsuff=N32 libmagic=N32;;
17639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17641 *) libsuff= shlibsuff= libmagic=never-match;;
17642 esac
17643 ;;
17644 esac
17645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17646 shlibpath_overrides_runpath=no
17647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17649 hardcode_into_libs=yes
17650 ;;
17651
17652 # No shared lib support for Linux oldld, aout, or coff.
17653 linux*oldld* | linux*aout* | linux*coff*)
17654 dynamic_linker=no
17655 ;;
17656
17657 # This must be Linux ELF.
17658 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17659 version_type=linux
17660 need_lib_prefix=no
17661 need_version=no
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17665 shlibpath_var=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath=no
17667
17668 # Some binutils ld are patched to set DT_RUNPATH
17669 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 lt_cv_shlibpath_overrides_runpath=no
17673 save_LDFLAGS=$LDFLAGS
17674 save_libdir=$libdir
17675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 int
17681 main ()
17682 {
17683
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17690 lt_cv_shlibpath_overrides_runpath=yes
17691 fi
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 LDFLAGS=$save_LDFLAGS
17696 libdir=$save_libdir
17697
17698 fi
17699
17700 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17701
17702 # This implies no fast_install, which is unacceptable.
17703 # Some rework will be needed to allow for fast_install
17704 # before this can be enabled.
17705 hardcode_into_libs=yes
17706
17707 # Append ld.so.conf contents to the search path
17708 if test -f /etc/ld.so.conf; then
17709 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' ' '`
17710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17711 fi
17712
17713 # We used to test for /lib/ld.so.1 and disable shared libraries on
17714 # powerpc, because MkLinux only supported shared libraries with the
17715 # GNU dynamic linker. Since this was broken with cross compilers,
17716 # most powerpc-linux boxes support dynamic linking these days and
17717 # people can always --disable-shared, the test was removed, and we
17718 # assume the GNU/Linux dynamic linker is in use.
17719 dynamic_linker='GNU/Linux ld.so'
17720 ;;
17721
17722 netbsd*)
17723 version_type=sunos
17724 need_lib_prefix=no
17725 need_version=no
17726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17729 dynamic_linker='NetBSD (a.out) ld.so'
17730 else
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17733 dynamic_linker='NetBSD ld.elf_so'
17734 fi
17735 shlibpath_var=LD_LIBRARY_PATH
17736 shlibpath_overrides_runpath=yes
17737 hardcode_into_libs=yes
17738 ;;
17739
17740 newsos6)
17741 version_type=linux
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath=yes
17745 ;;
17746
17747 *nto* | *qnx*)
17748 version_type=qnx
17749 need_lib_prefix=no
17750 need_version=no
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17752 soname_spec='${libname}${release}${shared_ext}$major'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath=no
17755 hardcode_into_libs=yes
17756 dynamic_linker='ldqnx.so'
17757 ;;
17758
17759 openbsd*)
17760 version_type=sunos
17761 sys_lib_dlsearch_path_spec="/usr/lib"
17762 need_lib_prefix=no
17763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17764 case $host_os in
17765 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17766 *) need_version=no ;;
17767 esac
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772 case $host_os in
17773 openbsd2.[89] | openbsd2.[89].*)
17774 shlibpath_overrides_runpath=no
17775 ;;
17776 *)
17777 shlibpath_overrides_runpath=yes
17778 ;;
17779 esac
17780 else
17781 shlibpath_overrides_runpath=yes
17782 fi
17783 ;;
17784
17785 os2*)
17786 libname_spec='$name'
17787 shrext_cmds=".dll"
17788 need_lib_prefix=no
17789 library_names_spec='$libname${shared_ext} $libname.a'
17790 dynamic_linker='OS/2 ld.exe'
17791 shlibpath_var=LIBPATH
17792 ;;
17793
17794 osf3* | osf4* | osf5*)
17795 version_type=osf
17796 need_lib_prefix=no
17797 need_version=no
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17803 ;;
17804
17805 rdos*)
17806 dynamic_linker=no
17807 ;;
17808
17809 solaris*)
17810 version_type=linux
17811 need_lib_prefix=no
17812 need_version=no
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec='${libname}${release}${shared_ext}$major'
17815 shlibpath_var=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath=yes
17817 hardcode_into_libs=yes
17818 # ldd complains unless libraries are executable
17819 postinstall_cmds='chmod +x $lib'
17820 ;;
17821
17822 sunos4*)
17823 version_type=sunos
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=yes
17828 if test "$with_gnu_ld" = yes; then
17829 need_lib_prefix=no
17830 fi
17831 need_version=yes
17832 ;;
17833
17834 sysv4 | sysv4.3*)
17835 version_type=linux
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 case $host_vendor in
17840 sni)
17841 shlibpath_overrides_runpath=no
17842 need_lib_prefix=no
17843 runpath_var=LD_RUN_PATH
17844 ;;
17845 siemens)
17846 need_lib_prefix=no
17847 ;;
17848 motorola)
17849 need_lib_prefix=no
17850 need_version=no
17851 shlibpath_overrides_runpath=no
17852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17853 ;;
17854 esac
17855 ;;
17856
17857 sysv4*MP*)
17858 if test -d /usr/nec ;then
17859 version_type=linux
17860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17861 soname_spec='$libname${shared_ext}.$major'
17862 shlibpath_var=LD_LIBRARY_PATH
17863 fi
17864 ;;
17865
17866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17867 version_type=freebsd-elf
17868 need_lib_prefix=no
17869 need_version=no
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath=yes
17874 hardcode_into_libs=yes
17875 if test "$with_gnu_ld" = yes; then
17876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17877 else
17878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17879 case $host_os in
17880 sco3.2v5*)
17881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17882 ;;
17883 esac
17884 fi
17885 sys_lib_dlsearch_path_spec='/usr/lib'
17886 ;;
17887
17888 tpf*)
17889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17890 version_type=linux
17891 need_lib_prefix=no
17892 need_version=no
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=no
17896 hardcode_into_libs=yes
17897 ;;
17898
17899 uts4*)
17900 version_type=linux
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902 soname_spec='${libname}${release}${shared_ext}$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 ;;
17905
17906 *)
17907 dynamic_linker=no
17908 ;;
17909 esac
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17911 $as_echo "$dynamic_linker" >&6; }
17912 test "$dynamic_linker" = no && can_build_shared=no
17913
17914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17915 if test "$GCC" = yes; then
17916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17917 fi
17918
17919 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17920 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17921 fi
17922 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17923 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17924 fi
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18018 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18019 hardcode_action=
18020 if test -n "$hardcode_libdir_flag_spec" ||
18021 test -n "$runpath_var" ||
18022 test "X$hardcode_automatic" = "Xyes" ; then
18023
18024 # We can hardcode non-existent directories.
18025 if test "$hardcode_direct" != no &&
18026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18027 # have to relink, otherwise we might link with an installed library
18028 # when we should be linking with a yet-to-be-installed one
18029 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18030 test "$hardcode_minus_L" != no; then
18031 # Linking always hardcodes the temporary library directory.
18032 hardcode_action=relink
18033 else
18034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18035 hardcode_action=immediate
18036 fi
18037 else
18038 # We cannot hardcode anything, or else we can only hardcode existing
18039 # directories.
18040 hardcode_action=unsupported
18041 fi
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18043 $as_echo "$hardcode_action" >&6; }
18044
18045 if test "$hardcode_action" = relink ||
18046 test "$inherit_rpath" = yes; then
18047 # Fast installation is not supported
18048 enable_fast_install=no
18049 elif test "$shlibpath_overrides_runpath" = yes ||
18050 test "$enable_shared" = no; then
18051 # Fast installation is not necessary
18052 enable_fast_install=needless
18053 fi
18054
18055
18056
18057
18058
18059
18060 if test "x$enable_dlopen" != xyes; then
18061 enable_dlopen=unknown
18062 enable_dlopen_self=unknown
18063 enable_dlopen_self_static=unknown
18064 else
18065 lt_cv_dlopen=no
18066 lt_cv_dlopen_libs=
18067
18068 case $host_os in
18069 beos*)
18070 lt_cv_dlopen="load_add_on"
18071 lt_cv_dlopen_libs=
18072 lt_cv_dlopen_self=yes
18073 ;;
18074
18075 mingw* | pw32* | cegcc*)
18076 lt_cv_dlopen="LoadLibrary"
18077 lt_cv_dlopen_libs=
18078 ;;
18079
18080 cygwin*)
18081 lt_cv_dlopen="dlopen"
18082 lt_cv_dlopen_libs=
18083 ;;
18084
18085 darwin*)
18086 # if libdl is installed we need to link against it
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18090 $as_echo_n "(cached) " >&6
18091 else
18092 ac_check_lib_save_LIBS=$LIBS
18093 LIBS="-ldl $LIBS"
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096
18097 /* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
18100 #ifdef __cplusplus
18101 extern "C"
18102 #endif
18103 char dlopen ();
18104 int
18105 main ()
18106 {
18107 return dlopen ();
18108 ;
18109 return 0;
18110 }
18111 _ACEOF
18112 if ac_fn_c_try_link "$LINENO"; then :
18113 ac_cv_lib_dl_dlopen=yes
18114 else
18115 ac_cv_lib_dl_dlopen=no
18116 fi
18117 rm -f core conftest.err conftest.$ac_objext \
18118 conftest$ac_exeext conftest.$ac_ext
18119 LIBS=$ac_check_lib_save_LIBS
18120 fi
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18123 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18125 else
18126
18127 lt_cv_dlopen="dyld"
18128 lt_cv_dlopen_libs=
18129 lt_cv_dlopen_self=yes
18130
18131 fi
18132
18133 ;;
18134
18135 *)
18136 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18137 if test "x$ac_cv_func_shl_load" = x""yes; then :
18138 lt_cv_dlopen="shl_load"
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18141 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18142 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18145 ac_check_lib_save_LIBS=$LIBS
18146 LIBS="-ldld $LIBS"
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char shl_load ();
18157 int
18158 main ()
18159 {
18160 return shl_load ();
18161 ;
18162 return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166 ac_cv_lib_dld_shl_load=yes
18167 else
18168 ac_cv_lib_dld_shl_load=no
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 LIBS=$ac_check_lib_save_LIBS
18173 fi
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18175 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18176 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18177 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18178 else
18179 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18180 if test "x$ac_cv_func_dlopen" = x""yes; then :
18181 lt_cv_dlopen="dlopen"
18182 else
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-ldl $LIBS"
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char dlopen ();
18200 int
18201 main ()
18202 {
18203 return dlopen ();
18204 ;
18205 return 0;
18206 }
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209 ac_cv_lib_dl_dlopen=yes
18210 else
18211 ac_cv_lib_dl_dlopen=no
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18221 else
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18223 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18224 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-lsvld $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char dlopen ();
18239 int
18240 main ()
18241 {
18242 return dlopen ();
18243 ;
18244 return 0;
18245 }
18246 _ACEOF
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 ac_cv_lib_svld_dlopen=yes
18249 else
18250 ac_cv_lib_svld_dlopen=no
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18257 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18258 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18260 else
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18262 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18263 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18264 $as_echo_n "(cached) " >&6
18265 else
18266 ac_check_lib_save_LIBS=$LIBS
18267 LIBS="-ldld $LIBS"
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18274 #ifdef __cplusplus
18275 extern "C"
18276 #endif
18277 char dld_link ();
18278 int
18279 main ()
18280 {
18281 return dld_link ();
18282 ;
18283 return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287 ac_cv_lib_dld_dld_link=yes
18288 else
18289 ac_cv_lib_dld_dld_link=no
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18294 fi
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18296 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18297 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18298 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18299 fi
18300
18301
18302 fi
18303
18304
18305 fi
18306
18307
18308 fi
18309
18310
18311 fi
18312
18313
18314 fi
18315
18316 ;;
18317 esac
18318
18319 if test "x$lt_cv_dlopen" != xno; then
18320 enable_dlopen=yes
18321 else
18322 enable_dlopen=no
18323 fi
18324
18325 case $lt_cv_dlopen in
18326 dlopen)
18327 save_CPPFLAGS="$CPPFLAGS"
18328 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18329
18330 save_LDFLAGS="$LDFLAGS"
18331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18332
18333 save_LIBS="$LIBS"
18334 LIBS="$lt_cv_dlopen_libs $LIBS"
18335
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18337 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18338 if test "${lt_cv_dlopen_self+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 if test "$cross_compiling" = yes; then :
18342 lt_cv_dlopen_self=cross
18343 else
18344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18345 lt_status=$lt_dlunknown
18346 cat > conftest.$ac_ext <<_LT_EOF
18347 #line 18347 "configure"
18348 #include "confdefs.h"
18349
18350 #if HAVE_DLFCN_H
18351 #include <dlfcn.h>
18352 #endif
18353
18354 #include <stdio.h>
18355
18356 #ifdef RTLD_GLOBAL
18357 # define LT_DLGLOBAL RTLD_GLOBAL
18358 #else
18359 # ifdef DL_GLOBAL
18360 # define LT_DLGLOBAL DL_GLOBAL
18361 # else
18362 # define LT_DLGLOBAL 0
18363 # endif
18364 #endif
18365
18366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18367 find out it does not work in some platform. */
18368 #ifndef LT_DLLAZY_OR_NOW
18369 # ifdef RTLD_LAZY
18370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18371 # else
18372 # ifdef DL_LAZY
18373 # define LT_DLLAZY_OR_NOW DL_LAZY
18374 # else
18375 # ifdef RTLD_NOW
18376 # define LT_DLLAZY_OR_NOW RTLD_NOW
18377 # else
18378 # ifdef DL_NOW
18379 # define LT_DLLAZY_OR_NOW DL_NOW
18380 # else
18381 # define LT_DLLAZY_OR_NOW 0
18382 # endif
18383 # endif
18384 # endif
18385 # endif
18386 #endif
18387
18388 /* When -fvisbility=hidden is used, assume the code has been annotated
18389 correspondingly for the symbols needed. */
18390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18391 void fnord () __attribute__((visibility("default")));
18392 #endif
18393
18394 void fnord () { int i=42; }
18395 int main ()
18396 {
18397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18398 int status = $lt_dlunknown;
18399
18400 if (self)
18401 {
18402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18403 else
18404 {
18405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18406 else puts (dlerror ());
18407 }
18408 /* dlclose (self); */
18409 }
18410 else
18411 puts (dlerror ());
18412
18413 return status;
18414 }
18415 _LT_EOF
18416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18417 (eval $ac_link) 2>&5
18418 ac_status=$?
18419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18421 (./conftest; exit; ) >&5 2>/dev/null
18422 lt_status=$?
18423 case x$lt_status in
18424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18426 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18427 esac
18428 else :
18429 # compilation failed
18430 lt_cv_dlopen_self=no
18431 fi
18432 fi
18433 rm -fr conftest*
18434
18435
18436 fi
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18438 $as_echo "$lt_cv_dlopen_self" >&6; }
18439
18440 if test "x$lt_cv_dlopen_self" = xyes; then
18441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18443 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18444 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 if test "$cross_compiling" = yes; then :
18448 lt_cv_dlopen_self_static=cross
18449 else
18450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18451 lt_status=$lt_dlunknown
18452 cat > conftest.$ac_ext <<_LT_EOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18455
18456 #if HAVE_DLFCN_H
18457 #include <dlfcn.h>
18458 #endif
18459
18460 #include <stdio.h>
18461
18462 #ifdef RTLD_GLOBAL
18463 # define LT_DLGLOBAL RTLD_GLOBAL
18464 #else
18465 # ifdef DL_GLOBAL
18466 # define LT_DLGLOBAL DL_GLOBAL
18467 # else
18468 # define LT_DLGLOBAL 0
18469 # endif
18470 #endif
18471
18472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473 find out it does not work in some platform. */
18474 #ifndef LT_DLLAZY_OR_NOW
18475 # ifdef RTLD_LAZY
18476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18477 # else
18478 # ifdef DL_LAZY
18479 # define LT_DLLAZY_OR_NOW DL_LAZY
18480 # else
18481 # ifdef RTLD_NOW
18482 # define LT_DLLAZY_OR_NOW RTLD_NOW
18483 # else
18484 # ifdef DL_NOW
18485 # define LT_DLLAZY_OR_NOW DL_NOW
18486 # else
18487 # define LT_DLLAZY_OR_NOW 0
18488 # endif
18489 # endif
18490 # endif
18491 # endif
18492 #endif
18493
18494 /* When -fvisbility=hidden is used, assume the code has been annotated
18495 correspondingly for the symbols needed. */
18496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18497 void fnord () __attribute__((visibility("default")));
18498 #endif
18499
18500 void fnord () { int i=42; }
18501 int main ()
18502 {
18503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18504 int status = $lt_dlunknown;
18505
18506 if (self)
18507 {
18508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18509 else
18510 {
18511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18512 else puts (dlerror ());
18513 }
18514 /* dlclose (self); */
18515 }
18516 else
18517 puts (dlerror ());
18518
18519 return status;
18520 }
18521 _LT_EOF
18522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18523 (eval $ac_link) 2>&5
18524 ac_status=$?
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18527 (./conftest; exit; ) >&5 2>/dev/null
18528 lt_status=$?
18529 case x$lt_status in
18530 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18531 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18532 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18533 esac
18534 else :
18535 # compilation failed
18536 lt_cv_dlopen_self_static=no
18537 fi
18538 fi
18539 rm -fr conftest*
18540
18541
18542 fi
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18544 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18545 fi
18546
18547 CPPFLAGS="$save_CPPFLAGS"
18548 LDFLAGS="$save_LDFLAGS"
18549 LIBS="$save_LIBS"
18550 ;;
18551 esac
18552
18553 case $lt_cv_dlopen_self in
18554 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18555 *) enable_dlopen_self=unknown ;;
18556 esac
18557
18558 case $lt_cv_dlopen_self_static in
18559 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18560 *) enable_dlopen_self_static=unknown ;;
18561 esac
18562 fi
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580 striplib=
18581 old_striplib=
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18583 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18584 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18585 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18586 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18588 $as_echo "yes" >&6; }
18589 else
18590 # FIXME - insert some real tests, host_os isn't really good enough
18591 case $host_os in
18592 darwin*)
18593 if test -n "$STRIP" ; then
18594 striplib="$STRIP -x"
18595 old_striplib="$STRIP -S"
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598 else
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600 $as_echo "no" >&6; }
18601 fi
18602 ;;
18603 *)
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18606 ;;
18607 esac
18608 fi
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621 # Report which library types will actually be built
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18623 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18625 $as_echo "$can_build_shared" >&6; }
18626
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18628 $as_echo_n "checking whether to build shared libraries... " >&6; }
18629 test "$can_build_shared" = "no" && enable_shared=no
18630
18631 # On AIX, shared libraries and static libraries use the same namespace, and
18632 # are all built from PIC.
18633 case $host_os in
18634 aix3*)
18635 test "$enable_shared" = yes && enable_static=no
18636 if test -n "$RANLIB"; then
18637 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18638 postinstall_cmds='$RANLIB $lib'
18639 fi
18640 ;;
18641
18642 aix[4-9]*)
18643 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18644 test "$enable_shared" = yes && enable_static=no
18645 fi
18646 ;;
18647 esac
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18649 $as_echo "$enable_shared" >&6; }
18650
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18652 $as_echo_n "checking whether to build static libraries... " >&6; }
18653 # Make sure either enable_shared or enable_static is yes.
18654 test "$enable_shared" = yes || enable_static=yes
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18656 $as_echo "$enable_static" >&6; }
18657
18658
18659
18660
18661 fi
18662 ac_ext=cpp
18663 ac_cpp='$CXXCPP $CPPFLAGS'
18664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18667
18668 CC="$lt_save_CC"
18669
18670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18672 (test "X$CXX" != "Xg++"))) ; then
18673 ac_ext=cpp
18674 ac_cpp='$CXXCPP $CPPFLAGS'
18675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18679 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18680 if test -z "$CXXCPP"; then
18681 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18683 else
18684 # Double quotes because CXXCPP needs to be expanded
18685 for CXXCPP in "$CXX -E" "/lib/cpp"
18686 do
18687 ac_preproc_ok=false
18688 for ac_cxx_preproc_warn_flag in '' yes
18689 do
18690 # Use a header file that comes with gcc, so configuring glibc
18691 # with a fresh cross-compiler works.
18692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18693 # <limits.h> exists even on freestanding compilers.
18694 # On the NeXT, cc -E runs the code through the compiler's parser,
18695 # not just through cpp. "Syntax error" is here to catch this case.
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698 #ifdef __STDC__
18699 # include <limits.h>
18700 #else
18701 # include <assert.h>
18702 #endif
18703 Syntax error
18704 _ACEOF
18705 if ac_fn_cxx_try_cpp "$LINENO"; then :
18706
18707 else
18708 # Broken: fails on valid input.
18709 continue
18710 fi
18711 rm -f conftest.err conftest.$ac_ext
18712
18713 # OK, works on sane cases. Now check whether nonexistent headers
18714 # can be detected and how.
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #include <ac_nonexistent.h>
18718 _ACEOF
18719 if ac_fn_cxx_try_cpp "$LINENO"; then :
18720 # Broken: success on invalid input.
18721 continue
18722 else
18723 # Passes both tests.
18724 ac_preproc_ok=:
18725 break
18726 fi
18727 rm -f conftest.err conftest.$ac_ext
18728
18729 done
18730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18731 rm -f conftest.err conftest.$ac_ext
18732 if $ac_preproc_ok; then :
18733 break
18734 fi
18735
18736 done
18737 ac_cv_prog_CXXCPP=$CXXCPP
18738
18739 fi
18740 CXXCPP=$ac_cv_prog_CXXCPP
18741 else
18742 ac_cv_prog_CXXCPP=$CXXCPP
18743 fi
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18745 $as_echo "$CXXCPP" >&6; }
18746 ac_preproc_ok=false
18747 for ac_cxx_preproc_warn_flag in '' yes
18748 do
18749 # Use a header file that comes with gcc, so configuring glibc
18750 # with a fresh cross-compiler works.
18751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 # <limits.h> exists even on freestanding compilers.
18753 # On the NeXT, cc -E runs the code through the compiler's parser,
18754 # not just through cpp. "Syntax error" is here to catch this case.
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18757 #ifdef __STDC__
18758 # include <limits.h>
18759 #else
18760 # include <assert.h>
18761 #endif
18762 Syntax error
18763 _ACEOF
18764 if ac_fn_cxx_try_cpp "$LINENO"; then :
18765
18766 else
18767 # Broken: fails on valid input.
18768 continue
18769 fi
18770 rm -f conftest.err conftest.$ac_ext
18771
18772 # OK, works on sane cases. Now check whether nonexistent headers
18773 # can be detected and how.
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 #include <ac_nonexistent.h>
18777 _ACEOF
18778 if ac_fn_cxx_try_cpp "$LINENO"; then :
18779 # Broken: success on invalid input.
18780 continue
18781 else
18782 # Passes both tests.
18783 ac_preproc_ok=:
18784 break
18785 fi
18786 rm -f conftest.err conftest.$ac_ext
18787
18788 done
18789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18790 rm -f conftest.err conftest.$ac_ext
18791 if $ac_preproc_ok; then :
18792
18793 else
18794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18796 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18797 See \`config.log' for more details." "$LINENO" 5; }
18798 fi
18799
18800 ac_ext=cpp
18801 ac_cpp='$CXXCPP $CPPFLAGS'
18802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18805
18806 else
18807 _lt_caught_CXX_error=yes
18808 fi
18809
18810 ac_ext=cpp
18811 ac_cpp='$CXXCPP $CPPFLAGS'
18812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18815
18816 archive_cmds_need_lc_CXX=no
18817 allow_undefined_flag_CXX=
18818 always_export_symbols_CXX=no
18819 archive_expsym_cmds_CXX=
18820 compiler_needs_object_CXX=no
18821 export_dynamic_flag_spec_CXX=
18822 hardcode_direct_CXX=no
18823 hardcode_direct_absolute_CXX=no
18824 hardcode_libdir_flag_spec_CXX=
18825 hardcode_libdir_flag_spec_ld_CXX=
18826 hardcode_libdir_separator_CXX=
18827 hardcode_minus_L_CXX=no
18828 hardcode_shlibpath_var_CXX=unsupported
18829 hardcode_automatic_CXX=no
18830 inherit_rpath_CXX=no
18831 module_cmds_CXX=
18832 module_expsym_cmds_CXX=
18833 link_all_deplibs_CXX=unknown
18834 old_archive_cmds_CXX=$old_archive_cmds
18835 reload_flag_CXX=$reload_flag
18836 reload_cmds_CXX=$reload_cmds
18837 no_undefined_flag_CXX=
18838 whole_archive_flag_spec_CXX=
18839 enable_shared_with_static_runtimes_CXX=no
18840
18841 # Source file extension for C++ test sources.
18842 ac_ext=cpp
18843
18844 # Object file extension for compiled C++ test sources.
18845 objext=o
18846 objext_CXX=$objext
18847
18848 # No sense in running all these tests if we already determined that
18849 # the CXX compiler isn't working. Some variables (like enable_shared)
18850 # are currently assumed to apply to all compilers on this platform,
18851 # and will be corrupted by setting them based on a non-working compiler.
18852 if test "$_lt_caught_CXX_error" != yes; then
18853 # Code to be used in simple compile tests
18854 lt_simple_compile_test_code="int some_variable = 0;"
18855
18856 # Code to be used in simple link tests
18857 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18858
18859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18860
18861
18862
18863
18864
18865
18866 # If no C compiler was specified, use CC.
18867 LTCC=${LTCC-"$CC"}
18868
18869 # If no C compiler flags were specified, use CFLAGS.
18870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18871
18872 # Allow CC to be a program name with arguments.
18873 compiler=$CC
18874
18875
18876 # save warnings/boilerplate of simple test code
18877 ac_outfile=conftest.$ac_objext
18878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18880 _lt_compiler_boilerplate=`cat conftest.err`
18881 $RM conftest*
18882
18883 ac_outfile=conftest.$ac_objext
18884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18886 _lt_linker_boilerplate=`cat conftest.err`
18887 $RM -r conftest*
18888
18889
18890 # Allow CC to be a program name with arguments.
18891 lt_save_CC=$CC
18892 lt_save_LD=$LD
18893 lt_save_GCC=$GCC
18894 GCC=$GXX
18895 lt_save_with_gnu_ld=$with_gnu_ld
18896 lt_save_path_LD=$lt_cv_path_LD
18897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18899 else
18900 $as_unset lt_cv_prog_gnu_ld
18901 fi
18902 if test -n "${lt_cv_path_LDCXX+set}"; then
18903 lt_cv_path_LD=$lt_cv_path_LDCXX
18904 else
18905 $as_unset lt_cv_path_LD
18906 fi
18907 test -z "${LDCXX+set}" || LD=$LDCXX
18908 CC=${CXX-"c++"}
18909 compiler=$CC
18910 compiler_CXX=$CC
18911 for cc_temp in $compiler""; do
18912 case $cc_temp in
18913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18915 \-*) ;;
18916 *) break;;
18917 esac
18918 done
18919 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18920
18921
18922 if test -n "$compiler"; then
18923 # We don't want -fno-exception when compiling C++ code, so set the
18924 # no_builtin_flag separately
18925 if test "$GXX" = yes; then
18926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18927 else
18928 lt_prog_compiler_no_builtin_flag_CXX=
18929 fi
18930
18931 if test "$GXX" = yes; then
18932 # Set up default GNU C++ configuration
18933
18934
18935
18936 # Check whether --with-gnu-ld was given.
18937 if test "${with_gnu_ld+set}" = set; then :
18938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18939 else
18940 with_gnu_ld=no
18941 fi
18942
18943 ac_prog=ld
18944 if test "$GCC" = yes; then
18945 # Check if gcc -print-prog-name=ld gives a path.
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18947 $as_echo_n "checking for ld used by $CC... " >&6; }
18948 case $host in
18949 *-*-mingw*)
18950 # gcc leaves a trailing carriage return which upsets mingw
18951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18952 *)
18953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18954 esac
18955 case $ac_prog in
18956 # Accept absolute paths.
18957 [\\/]* | ?:[\\/]*)
18958 re_direlt='/[^/][^/]*/\.\./'
18959 # Canonicalize the pathname of ld
18960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18963 done
18964 test -z "$LD" && LD="$ac_prog"
18965 ;;
18966 "")
18967 # If it fails, then pretend we aren't using GCC.
18968 ac_prog=ld
18969 ;;
18970 *)
18971 # If it is relative, then search for the first ld in PATH.
18972 with_gnu_ld=unknown
18973 ;;
18974 esac
18975 elif test "$with_gnu_ld" = yes; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18977 $as_echo_n "checking for GNU ld... " >&6; }
18978 else
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18980 $as_echo_n "checking for non-GNU ld... " >&6; }
18981 fi
18982 if test "${lt_cv_path_LD+set}" = set; then :
18983 $as_echo_n "(cached) " >&6
18984 else
18985 if test -z "$LD"; then
18986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18987 for ac_dir in $PATH; do
18988 IFS="$lt_save_ifs"
18989 test -z "$ac_dir" && ac_dir=.
18990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18991 lt_cv_path_LD="$ac_dir/$ac_prog"
18992 # Check to see if the program is GNU ld. I'd rather use --version,
18993 # but apparently some variants of GNU ld only accept -v.
18994 # Break only if it was the GNU/non-GNU ld that we prefer.
18995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18996 *GNU* | *'with BFD'*)
18997 test "$with_gnu_ld" != no && break
18998 ;;
18999 *)
19000 test "$with_gnu_ld" != yes && break
19001 ;;
19002 esac
19003 fi
19004 done
19005 IFS="$lt_save_ifs"
19006 else
19007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19008 fi
19009 fi
19010
19011 LD="$lt_cv_path_LD"
19012 if test -n "$LD"; then
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19014 $as_echo "$LD" >&6; }
19015 else
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017 $as_echo "no" >&6; }
19018 fi
19019 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19022 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19023 $as_echo_n "(cached) " >&6
19024 else
19025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19026 case `$LD -v 2>&1 </dev/null` in
19027 *GNU* | *'with BFD'*)
19028 lt_cv_prog_gnu_ld=yes
19029 ;;
19030 *)
19031 lt_cv_prog_gnu_ld=no
19032 ;;
19033 esac
19034 fi
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19037 with_gnu_ld=$lt_cv_prog_gnu_ld
19038
19039
19040
19041
19042
19043
19044
19045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19046 # archiving commands below assume that GNU ld is being used.
19047 if test "$with_gnu_ld" = yes; then
19048 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19049 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19050
19051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19053
19054 # If archive_cmds runs LD, not CC, wlarc should be empty
19055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19056 # investigate it a little bit more. (MM)
19057 wlarc='${wl}'
19058
19059 # ancient GNU ld didn't support --whole-archive et. al.
19060 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19061 $GREP 'no-whole-archive' > /dev/null; then
19062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19063 else
19064 whole_archive_flag_spec_CXX=
19065 fi
19066 else
19067 with_gnu_ld=no
19068 wlarc=
19069
19070 # A generic and very simple default shared library creation
19071 # command for GNU C++ for the case where it uses the native
19072 # linker, instead of GNU ld. If possible, this setting should
19073 # overridden to take advantage of the native linker features on
19074 # the platform it is being used on.
19075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19076 fi
19077
19078 # Commands to make compiler produce verbose output that lists
19079 # what "hidden" libraries, object files and flags are used when
19080 # linking a shared library.
19081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19082
19083 else
19084 GXX=no
19085 with_gnu_ld=no
19086 wlarc=
19087 fi
19088
19089 # PORTME: fill in a description of your system's C++ link characteristics
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19092 ld_shlibs_CXX=yes
19093 case $host_os in
19094 aix3*)
19095 # FIXME: insert proper C++ library support
19096 ld_shlibs_CXX=no
19097 ;;
19098 aix[4-9]*)
19099 if test "$host_cpu" = ia64; then
19100 # On IA64, the linker does run time linking by default, so we don't
19101 # have to do anything special.
19102 aix_use_runtimelinking=no
19103 exp_sym_flag='-Bexport'
19104 no_entry_flag=""
19105 else
19106 aix_use_runtimelinking=no
19107
19108 # Test if we are trying to use run time linking or normal
19109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19110 # need to do runtime linking.
19111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19112 for ld_flag in $LDFLAGS; do
19113 case $ld_flag in
19114 *-brtl*)
19115 aix_use_runtimelinking=yes
19116 break
19117 ;;
19118 esac
19119 done
19120 ;;
19121 esac
19122
19123 exp_sym_flag='-bexport'
19124 no_entry_flag='-bnoentry'
19125 fi
19126
19127 # When large executables or shared objects are built, AIX ld can
19128 # have problems creating the table of contents. If linking a library
19129 # or program results in "error TOC overflow" add -mminimal-toc to
19130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19132
19133 archive_cmds_CXX=''
19134 hardcode_direct_CXX=yes
19135 hardcode_direct_absolute_CXX=yes
19136 hardcode_libdir_separator_CXX=':'
19137 link_all_deplibs_CXX=yes
19138 file_list_spec_CXX='${wl}-f,'
19139
19140 if test "$GXX" = yes; then
19141 case $host_os in aix4.[012]|aix4.[012].*)
19142 # We only want to do this on AIX 4.2 and lower, the check
19143 # below for broken collect2 doesn't work under 4.3+
19144 collect2name=`${CC} -print-prog-name=collect2`
19145 if test -f "$collect2name" &&
19146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19147 then
19148 # We have reworked collect2
19149 :
19150 else
19151 # We have old collect2
19152 hardcode_direct_CXX=unsupported
19153 # It fails to find uninstalled libraries when the uninstalled
19154 # path is not listed in the libpath. Setting hardcode_minus_L
19155 # to unsupported forces relinking
19156 hardcode_minus_L_CXX=yes
19157 hardcode_libdir_flag_spec_CXX='-L$libdir'
19158 hardcode_libdir_separator_CXX=
19159 fi
19160 esac
19161 shared_flag='-shared'
19162 if test "$aix_use_runtimelinking" = yes; then
19163 shared_flag="$shared_flag "'${wl}-G'
19164 fi
19165 else
19166 # not using gcc
19167 if test "$host_cpu" = ia64; then
19168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19169 # chokes on -Wl,-G. The following line is correct:
19170 shared_flag='-G'
19171 else
19172 if test "$aix_use_runtimelinking" = yes; then
19173 shared_flag='${wl}-G'
19174 else
19175 shared_flag='${wl}-bM:SRE'
19176 fi
19177 fi
19178 fi
19179
19180 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19181 # It seems that -bexpall does not export symbols beginning with
19182 # underscore (_), so it is better to generate a list of symbols to
19183 # export.
19184 always_export_symbols_CXX=yes
19185 if test "$aix_use_runtimelinking" = yes; then
19186 # Warning - without using the other runtime loading flags (-brtl),
19187 # -berok will link without error, but may produce a broken library.
19188 allow_undefined_flag_CXX='-berok'
19189 # Determine the default libpath from the value encoded in an empty
19190 # executable.
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193
19194 int
19195 main ()
19196 {
19197
19198 ;
19199 return 0;
19200 }
19201 _ACEOF
19202 if ac_fn_cxx_try_link "$LINENO"; then :
19203
19204 lt_aix_libpath_sed='
19205 /Import File Strings/,/^$/ {
19206 /^0/ {
19207 s/^0 *\(.*\)$/\1/
19208 p
19209 }
19210 }'
19211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19212 # Check for a 64-bit object if we didn't find anything.
19213 if test -z "$aix_libpath"; then
19214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19215 fi
19216 fi
19217 rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19220
19221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19222
19223 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"
19224 else
19225 if test "$host_cpu" = ia64; then
19226 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19227 allow_undefined_flag_CXX="-z nodefs"
19228 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"
19229 else
19230 # Determine the default libpath from the value encoded in an
19231 # empty executable.
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19234
19235 int
19236 main ()
19237 {
19238
19239 ;
19240 return 0;
19241 }
19242 _ACEOF
19243 if ac_fn_cxx_try_link "$LINENO"; then :
19244
19245 lt_aix_libpath_sed='
19246 /Import File Strings/,/^$/ {
19247 /^0/ {
19248 s/^0 *\(.*\)$/\1/
19249 p
19250 }
19251 }'
19252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253 # Check for a 64-bit object if we didn't find anything.
19254 if test -z "$aix_libpath"; then
19255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19256 fi
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19261
19262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19263 # Warning - without using the other run time loading flags,
19264 # -berok will link without error, but may produce a broken library.
19265 no_undefined_flag_CXX=' ${wl}-bernotok'
19266 allow_undefined_flag_CXX=' ${wl}-berok'
19267 if test "$with_gnu_ld" = yes; then
19268 # We only use this code for GNU lds that support --whole-archive.
19269 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19270 else
19271 # Exported symbols can be pulled into shared objects from archives
19272 whole_archive_flag_spec_CXX='$convenience'
19273 fi
19274 archive_cmds_need_lc_CXX=yes
19275 # This is similar to how AIX traditionally builds its shared
19276 # libraries.
19277 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'
19278 fi
19279 fi
19280 ;;
19281
19282 beos*)
19283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19284 allow_undefined_flag_CXX=unsupported
19285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19286 # support --undefined. This deserves some investigation. FIXME
19287 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19288 else
19289 ld_shlibs_CXX=no
19290 fi
19291 ;;
19292
19293 chorus*)
19294 case $cc_basename in
19295 *)
19296 # FIXME: insert proper C++ library support
19297 ld_shlibs_CXX=no
19298 ;;
19299 esac
19300 ;;
19301
19302 cygwin* | mingw* | pw32* | cegcc*)
19303 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19304 # as there is no search path for DLLs.
19305 hardcode_libdir_flag_spec_CXX='-L$libdir'
19306 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19307 allow_undefined_flag_CXX=unsupported
19308 always_export_symbols_CXX=no
19309 enable_shared_with_static_runtimes_CXX=yes
19310
19311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19312 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'
19313 # If the export-symbols file already is a .def file (1st line
19314 # is EXPORTS), use it as is; otherwise, prepend...
19315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19316 cp $export_symbols $output_objdir/$soname.def;
19317 else
19318 echo EXPORTS > $output_objdir/$soname.def;
19319 cat $export_symbols >> $output_objdir/$soname.def;
19320 fi~
19321 $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'
19322 else
19323 ld_shlibs_CXX=no
19324 fi
19325 ;;
19326 darwin* | rhapsody*)
19327
19328
19329 archive_cmds_need_lc_CXX=no
19330 hardcode_direct_CXX=no
19331 hardcode_automatic_CXX=yes
19332 hardcode_shlibpath_var_CXX=unsupported
19333 if test "$lt_cv_ld_force_load" = "yes"; then
19334 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\"`'
19335 else
19336 whole_archive_flag_spec_CXX=''
19337 fi
19338 link_all_deplibs_CXX=yes
19339 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19340 case $cc_basename in
19341 ifort*) _lt_dar_can_shared=yes ;;
19342 *) _lt_dar_can_shared=$GCC ;;
19343 esac
19344 if test "$_lt_dar_can_shared" = "yes"; then
19345 output_verbose_link_cmd=func_echo_all
19346 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}"
19347 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19348 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}"
19349 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}"
19350 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19351 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}"
19352 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}"
19353 fi
19354
19355 else
19356 ld_shlibs_CXX=no
19357 fi
19358
19359 ;;
19360
19361 dgux*)
19362 case $cc_basename in
19363 ec++*)
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19366 ;;
19367 ghcx*)
19368 # Green Hills C++ Compiler
19369 # FIXME: insert proper C++ library support
19370 ld_shlibs_CXX=no
19371 ;;
19372 *)
19373 # FIXME: insert proper C++ library support
19374 ld_shlibs_CXX=no
19375 ;;
19376 esac
19377 ;;
19378
19379 freebsd2.*)
19380 # C++ shared libraries reported to be fairly broken before
19381 # switch to ELF
19382 ld_shlibs_CXX=no
19383 ;;
19384
19385 freebsd-elf*)
19386 archive_cmds_need_lc_CXX=no
19387 ;;
19388
19389 freebsd* | dragonfly*)
19390 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19391 # conventions
19392 ld_shlibs_CXX=yes
19393 ;;
19394
19395 gnu*)
19396 ;;
19397
19398 haiku*)
19399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400 link_all_deplibs_CXX=yes
19401 ;;
19402
19403 hpux9*)
19404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19405 hardcode_libdir_separator_CXX=:
19406 export_dynamic_flag_spec_CXX='${wl}-E'
19407 hardcode_direct_CXX=yes
19408 hardcode_minus_L_CXX=yes # Not in the search PATH,
19409 # but as the default
19410 # location of the library.
19411
19412 case $cc_basename in
19413 CC*)
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
19417 aCC*)
19418 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'
19419 # Commands to make compiler produce verbose output that lists
19420 # what "hidden" libraries, object files and flags are used when
19421 # linking a shared library.
19422 #
19423 # There doesn't appear to be a way to prevent this compiler from
19424 # explicitly linking system object files so we need to strip them
19425 # from the output so that they don't get included in the library
19426 # dependencies.
19427 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"'
19428 ;;
19429 *)
19430 if test "$GXX" = yes; then
19431 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'
19432 else
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 fi
19436 ;;
19437 esac
19438 ;;
19439
19440 hpux10*|hpux11*)
19441 if test $with_gnu_ld = no; then
19442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19443 hardcode_libdir_separator_CXX=:
19444
19445 case $host_cpu in
19446 hppa*64*|ia64*)
19447 ;;
19448 *)
19449 export_dynamic_flag_spec_CXX='${wl}-E'
19450 ;;
19451 esac
19452 fi
19453 case $host_cpu in
19454 hppa*64*|ia64*)
19455 hardcode_direct_CXX=no
19456 hardcode_shlibpath_var_CXX=no
19457 ;;
19458 *)
19459 hardcode_direct_CXX=yes
19460 hardcode_direct_absolute_CXX=yes
19461 hardcode_minus_L_CXX=yes # Not in the search PATH,
19462 # but as the default
19463 # location of the library.
19464 ;;
19465 esac
19466
19467 case $cc_basename in
19468 CC*)
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19471 ;;
19472 aCC*)
19473 case $host_cpu in
19474 hppa*64*)
19475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476 ;;
19477 ia64*)
19478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19479 ;;
19480 *)
19481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19482 ;;
19483 esac
19484 # Commands to make compiler produce verbose output that lists
19485 # what "hidden" libraries, object files and flags are used when
19486 # linking a shared library.
19487 #
19488 # There doesn't appear to be a way to prevent this compiler from
19489 # explicitly linking system object files so we need to strip them
19490 # from the output so that they don't get included in the library
19491 # dependencies.
19492 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"'
19493 ;;
19494 *)
19495 if test "$GXX" = yes; then
19496 if test $with_gnu_ld = no; then
19497 case $host_cpu in
19498 hppa*64*)
19499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19500 ;;
19501 ia64*)
19502 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19503 ;;
19504 *)
19505 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'
19506 ;;
19507 esac
19508 fi
19509 else
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19512 fi
19513 ;;
19514 esac
19515 ;;
19516
19517 interix[3-9]*)
19518 hardcode_direct_CXX=no
19519 hardcode_shlibpath_var_CXX=no
19520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19521 export_dynamic_flag_spec_CXX='${wl}-E'
19522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19523 # Instead, shared libraries are loaded at an image base (0x10000000 by
19524 # default) and relocated if they conflict, which is a slow very memory
19525 # consuming and fragmenting process. To avoid this, we pick a random,
19526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19528 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'
19529 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'
19530 ;;
19531 irix5* | irix6*)
19532 case $cc_basename in
19533 CC*)
19534 # SGI C++
19535 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'
19536
19537 # Archives containing C++ object files must be created using
19538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19539 # necessary to make sure instantiated templates are included
19540 # in the archive.
19541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19542 ;;
19543 *)
19544 if test "$GXX" = yes; then
19545 if test "$with_gnu_ld" = no; then
19546 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'
19547 else
19548 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'
19549 fi
19550 fi
19551 link_all_deplibs_CXX=yes
19552 ;;
19553 esac
19554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19555 hardcode_libdir_separator_CXX=:
19556 inherit_rpath_CXX=yes
19557 ;;
19558
19559 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19560 case $cc_basename in
19561 KCC*)
19562 # Kuck and Associates, Inc. (KAI) C++ Compiler
19563
19564 # KCC will only create a shared library if the output file
19565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19566 # to its proper name (with version) after linking.
19567 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'
19568 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'
19569 # Commands to make compiler produce verbose output that lists
19570 # what "hidden" libraries, object files and flags are used when
19571 # linking a shared library.
19572 #
19573 # There doesn't appear to be a way to prevent this compiler from
19574 # explicitly linking system object files so we need to strip them
19575 # from the output so that they don't get included in the library
19576 # dependencies.
19577 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"'
19578
19579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19581
19582 # Archives containing C++ object files must be created using
19583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19585 ;;
19586 icpc* | ecpc* )
19587 # Intel C++
19588 with_gnu_ld=yes
19589 # version 8.0 and above of icpc choke on multiply defined symbols
19590 # if we add $predep_objects and $postdep_objects, however 7.1 and
19591 # earlier do not add the objects themselves.
19592 case `$CC -V 2>&1` in
19593 *"Version 7."*)
19594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19595 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'
19596 ;;
19597 *) # Version 8.0 or newer
19598 tmp_idyn=
19599 case $host_cpu in
19600 ia64*) tmp_idyn=' -i_dynamic';;
19601 esac
19602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19603 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'
19604 ;;
19605 esac
19606 archive_cmds_need_lc_CXX=no
19607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19610 ;;
19611 pgCC* | pgcpp*)
19612 # Portland Group C++ compiler
19613 case `$CC -V` in
19614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19615 prelink_cmds_CXX='tpldir=Template.dir~
19616 rm -rf $tpldir~
19617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19618 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19619 old_archive_cmds_CXX='tpldir=Template.dir~
19620 rm -rf $tpldir~
19621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19623 $RANLIB $oldlib'
19624 archive_cmds_CXX='tpldir=Template.dir~
19625 rm -rf $tpldir~
19626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19628 archive_expsym_cmds_CXX='tpldir=Template.dir~
19629 rm -rf $tpldir~
19630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19631 $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'
19632 ;;
19633 *) # Version 6 and above use weak symbols
19634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19635 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'
19636 ;;
19637 esac
19638
19639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19641 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'
19642 ;;
19643 cxx*)
19644 # Compaq C++
19645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19646 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'
19647
19648 runpath_var=LD_RUN_PATH
19649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19650 hardcode_libdir_separator_CXX=:
19651
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19655 #
19656 # There doesn't appear to be a way to prevent this compiler from
19657 # explicitly linking system object files so we need to strip them
19658 # from the output so that they don't get included in the library
19659 # dependencies.
19660 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'
19661 ;;
19662 xl* | mpixl* | bgxl*)
19663 # IBM XL 8.0 on PPC, with GNU ld
19664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19667 if test "x$supports_anon_versioning" = xyes; then
19668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19670 echo "local: *; };" >> $output_objdir/$libname.ver~
19671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19672 fi
19673 ;;
19674 *)
19675 case `$CC -V 2>&1 | sed 5q` in
19676 *Sun\ C*)
19677 # Sun C++ 5.9
19678 no_undefined_flag_CXX=' -zdefs'
19679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19680 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'
19681 hardcode_libdir_flag_spec_CXX='-R$libdir'
19682 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'
19683 compiler_needs_object_CXX=yes
19684
19685 # Not sure whether something based on
19686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19687 # would be better.
19688 output_verbose_link_cmd='func_echo_all'
19689
19690 # Archives containing C++ object files must be created using
19691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19692 # necessary to make sure instantiated templates are included
19693 # in the archive.
19694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19695 ;;
19696 esac
19697 ;;
19698 esac
19699 ;;
19700
19701 lynxos*)
19702 # FIXME: insert proper C++ library support
19703 ld_shlibs_CXX=no
19704 ;;
19705
19706 m88k*)
19707 # FIXME: insert proper C++ library support
19708 ld_shlibs_CXX=no
19709 ;;
19710
19711 mvs*)
19712 case $cc_basename in
19713 cxx*)
19714 # FIXME: insert proper C++ library support
19715 ld_shlibs_CXX=no
19716 ;;
19717 *)
19718 # FIXME: insert proper C++ library support
19719 ld_shlibs_CXX=no
19720 ;;
19721 esac
19722 ;;
19723
19724 netbsd*)
19725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19727 wlarc=
19728 hardcode_libdir_flag_spec_CXX='-R$libdir'
19729 hardcode_direct_CXX=yes
19730 hardcode_shlibpath_var_CXX=no
19731 fi
19732 # Workaround some broken pre-1.5 toolchains
19733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19734 ;;
19735
19736 *nto* | *qnx*)
19737 ld_shlibs_CXX=yes
19738 ;;
19739
19740 openbsd2*)
19741 # C++ shared libraries are fairly broken
19742 ld_shlibs_CXX=no
19743 ;;
19744
19745 openbsd*)
19746 if test -f /usr/libexec/ld.so; then
19747 hardcode_direct_CXX=yes
19748 hardcode_shlibpath_var_CXX=no
19749 hardcode_direct_absolute_CXX=yes
19750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19754 export_dynamic_flag_spec_CXX='${wl}-E'
19755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19756 fi
19757 output_verbose_link_cmd=func_echo_all
19758 else
19759 ld_shlibs_CXX=no
19760 fi
19761 ;;
19762
19763 osf3* | osf4* | osf5*)
19764 case $cc_basename in
19765 KCC*)
19766 # Kuck and Associates, Inc. (KAI) C++ Compiler
19767
19768 # KCC will only create a shared library if the output file
19769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19770 # to its proper name (with version) after linking.
19771 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'
19772
19773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19774 hardcode_libdir_separator_CXX=:
19775
19776 # Archives containing C++ object files must be created using
19777 # the KAI C++ compiler.
19778 case $host in
19779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19781 esac
19782 ;;
19783 RCC*)
19784 # Rational C++ 2.4.1
19785 # FIXME: insert proper C++ library support
19786 ld_shlibs_CXX=no
19787 ;;
19788 cxx*)
19789 case $host in
19790 osf3*)
19791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19792 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'
19793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19794 ;;
19795 *)
19796 allow_undefined_flag_CXX=' -expect_unresolved \*'
19797 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'
19798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19799 echo "-hidden">> $lib.exp~
19800 $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~
19801 $RM $lib.exp'
19802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19803 ;;
19804 esac
19805
19806 hardcode_libdir_separator_CXX=:
19807
19808 # Commands to make compiler produce verbose output that lists
19809 # what "hidden" libraries, object files and flags are used when
19810 # linking a shared library.
19811 #
19812 # There doesn't appear to be a way to prevent this compiler from
19813 # explicitly linking system object files so we need to strip them
19814 # from the output so that they don't get included in the library
19815 # dependencies.
19816 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"'
19817 ;;
19818 *)
19819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19821 case $host in
19822 osf3*)
19823 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'
19824 ;;
19825 *)
19826 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'
19827 ;;
19828 esac
19829
19830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19831 hardcode_libdir_separator_CXX=:
19832
19833 # Commands to make compiler produce verbose output that lists
19834 # what "hidden" libraries, object files and flags are used when
19835 # linking a shared library.
19836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19837
19838 else
19839 # FIXME: insert proper C++ library support
19840 ld_shlibs_CXX=no
19841 fi
19842 ;;
19843 esac
19844 ;;
19845
19846 psos*)
19847 # FIXME: insert proper C++ library support
19848 ld_shlibs_CXX=no
19849 ;;
19850
19851 sunos4*)
19852 case $cc_basename in
19853 CC*)
19854 # Sun C++ 4.x
19855 # FIXME: insert proper C++ library support
19856 ld_shlibs_CXX=no
19857 ;;
19858 lcc*)
19859 # Lucid
19860 # FIXME: insert proper C++ library support
19861 ld_shlibs_CXX=no
19862 ;;
19863 *)
19864 # FIXME: insert proper C++ library support
19865 ld_shlibs_CXX=no
19866 ;;
19867 esac
19868 ;;
19869
19870 solaris*)
19871 case $cc_basename in
19872 CC*)
19873 # Sun C++ 4.2, 5.x and Centerline C++
19874 archive_cmds_need_lc_CXX=yes
19875 no_undefined_flag_CXX=' -zdefs'
19876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19878 $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'
19879
19880 hardcode_libdir_flag_spec_CXX='-R$libdir'
19881 hardcode_shlibpath_var_CXX=no
19882 case $host_os in
19883 solaris2.[0-5] | solaris2.[0-5].*) ;;
19884 *)
19885 # The compiler driver will combine and reorder linker options,
19886 # but understands `-z linker_flag'.
19887 # Supported since Solaris 2.6 (maybe 2.5.1?)
19888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19889 ;;
19890 esac
19891 link_all_deplibs_CXX=yes
19892
19893 output_verbose_link_cmd='func_echo_all'
19894
19895 # Archives containing C++ object files must be created using
19896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19897 # necessary to make sure instantiated templates are included
19898 # in the archive.
19899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19900 ;;
19901 gcx*)
19902 # Green Hills C++ Compiler
19903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19904
19905 # The C++ compiler must be used to create the archive.
19906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19907 ;;
19908 *)
19909 # GNU C++ compiler with Solaris linker
19910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19916
19917 # Commands to make compiler produce verbose output that lists
19918 # what "hidden" libraries, object files and flags are used when
19919 # linking a shared library.
19920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19921 else
19922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19923 # platform.
19924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19927
19928 # Commands to make compiler produce verbose output that lists
19929 # what "hidden" libraries, object files and flags are used when
19930 # linking a shared library.
19931 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19932 fi
19933
19934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19935 case $host_os in
19936 solaris2.[0-5] | solaris2.[0-5].*) ;;
19937 *)
19938 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19939 ;;
19940 esac
19941 fi
19942 ;;
19943 esac
19944 ;;
19945
19946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19947 no_undefined_flag_CXX='${wl}-z,text'
19948 archive_cmds_need_lc_CXX=no
19949 hardcode_shlibpath_var_CXX=no
19950 runpath_var='LD_RUN_PATH'
19951
19952 case $cc_basename in
19953 CC*)
19954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 ;;
19957 *)
19958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19960 ;;
19961 esac
19962 ;;
19963
19964 sysv5* | sco3.2v5* | sco5v6*)
19965 # Note: We can NOT use -z defs as we might desire, because we do not
19966 # link with -lc, and that would cause any symbols used from libc to
19967 # always be unresolved, which means just about no library would
19968 # ever link correctly. If we're not using GNU ld we use -z text
19969 # though, which does catch some bad symbols but isn't as heavy-handed
19970 # as -z defs.
19971 no_undefined_flag_CXX='${wl}-z,text'
19972 allow_undefined_flag_CXX='${wl}-z,nodefs'
19973 archive_cmds_need_lc_CXX=no
19974 hardcode_shlibpath_var_CXX=no
19975 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19976 hardcode_libdir_separator_CXX=':'
19977 link_all_deplibs_CXX=yes
19978 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19979 runpath_var='LD_RUN_PATH'
19980
19981 case $cc_basename in
19982 CC*)
19983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19986 '"$old_archive_cmds_CXX"
19987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19988 '"$reload_cmds_CXX"
19989 ;;
19990 *)
19991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19993 ;;
19994 esac
19995 ;;
19996
19997 tandem*)
19998 case $cc_basename in
19999 NCC*)
20000 # NonStop-UX NCC 3.20
20001 # FIXME: insert proper C++ library support
20002 ld_shlibs_CXX=no
20003 ;;
20004 *)
20005 # FIXME: insert proper C++ library support
20006 ld_shlibs_CXX=no
20007 ;;
20008 esac
20009 ;;
20010
20011 vxworks*)
20012 # FIXME: insert proper C++ library support
20013 ld_shlibs_CXX=no
20014 ;;
20015
20016 *)
20017 # FIXME: insert proper C++ library support
20018 ld_shlibs_CXX=no
20019 ;;
20020 esac
20021
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20023 $as_echo "$ld_shlibs_CXX" >&6; }
20024 test "$ld_shlibs_CXX" = no && can_build_shared=no
20025
20026 GCC_CXX="$GXX"
20027 LD_CXX="$LD"
20028
20029 ## CAVEAT EMPTOR:
20030 ## There is no encapsulation within the following macros, do not change
20031 ## the running order or otherwise move them around unless you know exactly
20032 ## what you are doing...
20033 # Dependencies to place before and after the object being linked:
20034 predep_objects_CXX=
20035 postdep_objects_CXX=
20036 predeps_CXX=
20037 postdeps_CXX=
20038 compiler_lib_search_path_CXX=
20039
20040 cat > conftest.$ac_ext <<_LT_EOF
20041 class Foo
20042 {
20043 public:
20044 Foo (void) { a = 0; }
20045 private:
20046 int a;
20047 };
20048 _LT_EOF
20049
20050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20051 (eval $ac_compile) 2>&5
20052 ac_status=$?
20053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20054 test $ac_status = 0; }; then
20055 # Parse the compiler output and extract the necessary
20056 # objects, libraries and library flags.
20057
20058 # Sentinel used to keep track of whether or not we are before
20059 # the conftest object file.
20060 pre_test_object_deps_done=no
20061
20062 for p in `eval "$output_verbose_link_cmd"`; do
20063 case $p in
20064
20065 -L* | -R* | -l*)
20066 # Some compilers place space between "-{L,R}" and the path.
20067 # Remove the space.
20068 if test $p = "-L" ||
20069 test $p = "-R"; then
20070 prev=$p
20071 continue
20072 else
20073 prev=
20074 fi
20075
20076 if test "$pre_test_object_deps_done" = no; then
20077 case $p in
20078 -L* | -R*)
20079 # Internal compiler library paths should come after those
20080 # provided the user. The postdeps already come after the
20081 # user supplied libs so there is no need to process them.
20082 if test -z "$compiler_lib_search_path_CXX"; then
20083 compiler_lib_search_path_CXX="${prev}${p}"
20084 else
20085 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20086 fi
20087 ;;
20088 # The "-l" case would never come before the object being
20089 # linked, so don't bother handling this case.
20090 esac
20091 else
20092 if test -z "$postdeps_CXX"; then
20093 postdeps_CXX="${prev}${p}"
20094 else
20095 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20096 fi
20097 fi
20098 ;;
20099
20100 *.$objext)
20101 # This assumes that the test object file only shows up
20102 # once in the compiler output.
20103 if test "$p" = "conftest.$objext"; then
20104 pre_test_object_deps_done=yes
20105 continue
20106 fi
20107
20108 if test "$pre_test_object_deps_done" = no; then
20109 if test -z "$predep_objects_CXX"; then
20110 predep_objects_CXX="$p"
20111 else
20112 predep_objects_CXX="$predep_objects_CXX $p"
20113 fi
20114 else
20115 if test -z "$postdep_objects_CXX"; then
20116 postdep_objects_CXX="$p"
20117 else
20118 postdep_objects_CXX="$postdep_objects_CXX $p"
20119 fi
20120 fi
20121 ;;
20122
20123 *) ;; # Ignore the rest.
20124
20125 esac
20126 done
20127
20128 # Clean up.
20129 rm -f a.out a.exe
20130 else
20131 echo "libtool.m4: error: problem compiling CXX test program"
20132 fi
20133
20134 $RM -f confest.$objext
20135
20136 # PORTME: override above test on systems where it is broken
20137 case $host_os in
20138 interix[3-9]*)
20139 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20140 # hack all around it, let's just trust "g++" to DTRT.
20141 predep_objects_CXX=
20142 postdep_objects_CXX=
20143 postdeps_CXX=
20144 ;;
20145
20146 linux*)
20147 case `$CC -V 2>&1 | sed 5q` in
20148 *Sun\ C*)
20149 # Sun C++ 5.9
20150
20151 # The more standards-conforming stlport4 library is
20152 # incompatible with the Cstd library. Avoid specifying
20153 # it if it's in CXXFLAGS. Ignore libCrun as
20154 # -library=stlport4 depends on it.
20155 case " $CXX $CXXFLAGS " in
20156 *" -library=stlport4 "*)
20157 solaris_use_stlport4=yes
20158 ;;
20159 esac
20160
20161 if test "$solaris_use_stlport4" != yes; then
20162 postdeps_CXX='-library=Cstd -library=Crun'
20163 fi
20164 ;;
20165 esac
20166 ;;
20167
20168 solaris*)
20169 case $cc_basename in
20170 CC*)
20171 # The more standards-conforming stlport4 library is
20172 # incompatible with the Cstd library. Avoid specifying
20173 # it if it's in CXXFLAGS. Ignore libCrun as
20174 # -library=stlport4 depends on it.
20175 case " $CXX $CXXFLAGS " in
20176 *" -library=stlport4 "*)
20177 solaris_use_stlport4=yes
20178 ;;
20179 esac
20180
20181 # Adding this requires a known-good setup of shared libraries for
20182 # Sun compiler versions before 5.6, else PIC objects from an old
20183 # archive will be linked into the output, leading to subtle bugs.
20184 if test "$solaris_use_stlport4" != yes; then
20185 postdeps_CXX='-library=Cstd -library=Crun'
20186 fi
20187 ;;
20188 esac
20189 ;;
20190 esac
20191
20192
20193 case " $postdeps_CXX " in
20194 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20195 esac
20196 compiler_lib_search_dirs_CXX=
20197 if test -n "${compiler_lib_search_path_CXX}"; then
20198 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20199 fi
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231 lt_prog_compiler_wl_CXX=
20232 lt_prog_compiler_pic_CXX=
20233 lt_prog_compiler_static_CXX=
20234
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20237
20238 # C++ specific cases for pic, static, wl, etc.
20239 if test "$GXX" = yes; then
20240 lt_prog_compiler_wl_CXX='-Wl,'
20241 lt_prog_compiler_static_CXX='-static'
20242
20243 case $host_os in
20244 aix*)
20245 # All AIX code is PIC.
20246 if test "$host_cpu" = ia64; then
20247 # AIX 5 now supports IA64 processor
20248 lt_prog_compiler_static_CXX='-Bstatic'
20249 fi
20250 lt_prog_compiler_pic_CXX='-fPIC'
20251 ;;
20252
20253 amigaos*)
20254 case $host_cpu in
20255 powerpc)
20256 # see comment about AmigaOS4 .so support
20257 lt_prog_compiler_pic_CXX='-fPIC'
20258 ;;
20259 m68k)
20260 # FIXME: we need at least 68020 code to build shared libraries, but
20261 # adding the `-m68020' flag to GCC prevents building anything better,
20262 # like `-m68040'.
20263 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20264 ;;
20265 esac
20266 ;;
20267
20268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20269 # PIC is the default for these OSes.
20270 ;;
20271 mingw* | cygwin* | os2* | pw32* | cegcc*)
20272 # This hack is so that the source file can tell whether it is being
20273 # built for inclusion in a dll (and should export symbols for example).
20274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20275 # (--disable-auto-import) libraries
20276 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20277 ;;
20278 darwin* | rhapsody*)
20279 # PIC is the default on this platform
20280 # Common symbols not allowed in MH_DYLIB files
20281 lt_prog_compiler_pic_CXX='-fno-common'
20282 ;;
20283 *djgpp*)
20284 # DJGPP does not support shared libraries at all
20285 lt_prog_compiler_pic_CXX=
20286 ;;
20287 haiku*)
20288 # PIC is the default for Haiku.
20289 # The "-static" flag exists, but is broken.
20290 lt_prog_compiler_static_CXX=
20291 ;;
20292 interix[3-9]*)
20293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20294 # Instead, we relocate shared libraries at runtime.
20295 ;;
20296 sysv4*MP*)
20297 if test -d /usr/nec; then
20298 lt_prog_compiler_pic_CXX=-Kconform_pic
20299 fi
20300 ;;
20301 hpux*)
20302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20304 # sets the default TLS model and affects inlining.
20305 case $host_cpu in
20306 hppa*64*)
20307 ;;
20308 *)
20309 lt_prog_compiler_pic_CXX='-fPIC'
20310 ;;
20311 esac
20312 ;;
20313 *qnx* | *nto*)
20314 # QNX uses GNU C++, but need to define -shared option too, otherwise
20315 # it will coredump.
20316 lt_prog_compiler_pic_CXX='-fPIC -shared'
20317 ;;
20318 *)
20319 lt_prog_compiler_pic_CXX='-fPIC'
20320 ;;
20321 esac
20322 else
20323 case $host_os in
20324 aix[4-9]*)
20325 # All AIX code is PIC.
20326 if test "$host_cpu" = ia64; then
20327 # AIX 5 now supports IA64 processor
20328 lt_prog_compiler_static_CXX='-Bstatic'
20329 else
20330 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20331 fi
20332 ;;
20333 chorus*)
20334 case $cc_basename in
20335 cxch68*)
20336 # Green Hills C++ Compiler
20337 # _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"
20338 ;;
20339 esac
20340 ;;
20341 dgux*)
20342 case $cc_basename in
20343 ec++*)
20344 lt_prog_compiler_pic_CXX='-KPIC'
20345 ;;
20346 ghcx*)
20347 # Green Hills C++ Compiler
20348 lt_prog_compiler_pic_CXX='-pic'
20349 ;;
20350 *)
20351 ;;
20352 esac
20353 ;;
20354 freebsd* | dragonfly*)
20355 # FreeBSD uses GNU C++
20356 ;;
20357 hpux9* | hpux10* | hpux11*)
20358 case $cc_basename in
20359 CC*)
20360 lt_prog_compiler_wl_CXX='-Wl,'
20361 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20362 if test "$host_cpu" != ia64; then
20363 lt_prog_compiler_pic_CXX='+Z'
20364 fi
20365 ;;
20366 aCC*)
20367 lt_prog_compiler_wl_CXX='-Wl,'
20368 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20369 case $host_cpu in
20370 hppa*64*|ia64*)
20371 # +Z the default
20372 ;;
20373 *)
20374 lt_prog_compiler_pic_CXX='+Z'
20375 ;;
20376 esac
20377 ;;
20378 *)
20379 ;;
20380 esac
20381 ;;
20382 interix*)
20383 # This is c89, which is MS Visual C++ (no shared libs)
20384 # Anyone wants to do a port?
20385 ;;
20386 irix5* | irix6* | nonstopux*)
20387 case $cc_basename in
20388 CC*)
20389 lt_prog_compiler_wl_CXX='-Wl,'
20390 lt_prog_compiler_static_CXX='-non_shared'
20391 # CC pic flag -KPIC is the default.
20392 ;;
20393 *)
20394 ;;
20395 esac
20396 ;;
20397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20398 case $cc_basename in
20399 KCC*)
20400 # KAI C++ Compiler
20401 lt_prog_compiler_wl_CXX='--backend -Wl,'
20402 lt_prog_compiler_pic_CXX='-fPIC'
20403 ;;
20404 ecpc* )
20405 # old Intel C++ for x86_64 which still supported -KPIC.
20406 lt_prog_compiler_wl_CXX='-Wl,'
20407 lt_prog_compiler_pic_CXX='-KPIC'
20408 lt_prog_compiler_static_CXX='-static'
20409 ;;
20410 icpc* )
20411 # Intel C++, used to be incompatible with GCC.
20412 # ICC 10 doesn't accept -KPIC any more.
20413 lt_prog_compiler_wl_CXX='-Wl,'
20414 lt_prog_compiler_pic_CXX='-fPIC'
20415 lt_prog_compiler_static_CXX='-static'
20416 ;;
20417 pgCC* | pgcpp*)
20418 # Portland Group C++ compiler
20419 lt_prog_compiler_wl_CXX='-Wl,'
20420 lt_prog_compiler_pic_CXX='-fpic'
20421 lt_prog_compiler_static_CXX='-Bstatic'
20422 ;;
20423 cxx*)
20424 # Compaq C++
20425 # Make sure the PIC flag is empty. It appears that all Alpha
20426 # Linux and Compaq Tru64 Unix objects are PIC.
20427 lt_prog_compiler_pic_CXX=
20428 lt_prog_compiler_static_CXX='-non_shared'
20429 ;;
20430 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20431 # IBM XL 8.0, 9.0 on PPC and BlueGene
20432 lt_prog_compiler_wl_CXX='-Wl,'
20433 lt_prog_compiler_pic_CXX='-qpic'
20434 lt_prog_compiler_static_CXX='-qstaticlink'
20435 ;;
20436 *)
20437 case `$CC -V 2>&1 | sed 5q` in
20438 *Sun\ C*)
20439 # Sun C++ 5.9
20440 lt_prog_compiler_pic_CXX='-KPIC'
20441 lt_prog_compiler_static_CXX='-Bstatic'
20442 lt_prog_compiler_wl_CXX='-Qoption ld '
20443 ;;
20444 esac
20445 ;;
20446 esac
20447 ;;
20448 lynxos*)
20449 ;;
20450 m88k*)
20451 ;;
20452 mvs*)
20453 case $cc_basename in
20454 cxx*)
20455 lt_prog_compiler_pic_CXX='-W c,exportall'
20456 ;;
20457 *)
20458 ;;
20459 esac
20460 ;;
20461 netbsd*)
20462 ;;
20463 *qnx* | *nto*)
20464 # QNX uses GNU C++, but need to define -shared option too, otherwise
20465 # it will coredump.
20466 lt_prog_compiler_pic_CXX='-fPIC -shared'
20467 ;;
20468 osf3* | osf4* | osf5*)
20469 case $cc_basename in
20470 KCC*)
20471 lt_prog_compiler_wl_CXX='--backend -Wl,'
20472 ;;
20473 RCC*)
20474 # Rational C++ 2.4.1
20475 lt_prog_compiler_pic_CXX='-pic'
20476 ;;
20477 cxx*)
20478 # Digital/Compaq C++
20479 lt_prog_compiler_wl_CXX='-Wl,'
20480 # Make sure the PIC flag is empty. It appears that all Alpha
20481 # Linux and Compaq Tru64 Unix objects are PIC.
20482 lt_prog_compiler_pic_CXX=
20483 lt_prog_compiler_static_CXX='-non_shared'
20484 ;;
20485 *)
20486 ;;
20487 esac
20488 ;;
20489 psos*)
20490 ;;
20491 solaris*)
20492 case $cc_basename in
20493 CC*)
20494 # Sun C++ 4.2, 5.x and Centerline C++
20495 lt_prog_compiler_pic_CXX='-KPIC'
20496 lt_prog_compiler_static_CXX='-Bstatic'
20497 lt_prog_compiler_wl_CXX='-Qoption ld '
20498 ;;
20499 gcx*)
20500 # Green Hills C++ Compiler
20501 lt_prog_compiler_pic_CXX='-PIC'
20502 ;;
20503 *)
20504 ;;
20505 esac
20506 ;;
20507 sunos4*)
20508 case $cc_basename in
20509 CC*)
20510 # Sun C++ 4.x
20511 lt_prog_compiler_pic_CXX='-pic'
20512 lt_prog_compiler_static_CXX='-Bstatic'
20513 ;;
20514 lcc*)
20515 # Lucid
20516 lt_prog_compiler_pic_CXX='-pic'
20517 ;;
20518 *)
20519 ;;
20520 esac
20521 ;;
20522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20523 case $cc_basename in
20524 CC*)
20525 lt_prog_compiler_wl_CXX='-Wl,'
20526 lt_prog_compiler_pic_CXX='-KPIC'
20527 lt_prog_compiler_static_CXX='-Bstatic'
20528 ;;
20529 esac
20530 ;;
20531 tandem*)
20532 case $cc_basename in
20533 NCC*)
20534 # NonStop-UX NCC 3.20
20535 lt_prog_compiler_pic_CXX='-KPIC'
20536 ;;
20537 *)
20538 ;;
20539 esac
20540 ;;
20541 vxworks*)
20542 ;;
20543 *)
20544 lt_prog_compiler_can_build_shared_CXX=no
20545 ;;
20546 esac
20547 fi
20548
20549 case $host_os in
20550 # For platforms which do not support PIC, -DPIC is meaningless:
20551 *djgpp*)
20552 lt_prog_compiler_pic_CXX=
20553 ;;
20554 *)
20555 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20556 ;;
20557 esac
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20559 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20560
20561
20562
20563 #
20564 # Check to make sure the PIC flag actually works.
20565 #
20566 if test -n "$lt_prog_compiler_pic_CXX"; then
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20569 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20571 else
20572 lt_cv_prog_compiler_pic_works_CXX=no
20573 ac_outfile=conftest.$ac_objext
20574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20575 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20576 # Insert the option either (1) after the last *FLAGS variable, or
20577 # (2) before a word containing "conftest.", or (3) at the end.
20578 # Note that $ac_compile itself does not contain backslashes and begins
20579 # with a dollar sign (not a hyphen), so the echo should work correctly.
20580 # The option is referenced via a variable to avoid confusing sed.
20581 lt_compile=`echo "$ac_compile" | $SED \
20582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20584 -e 's:$: $lt_compiler_flag:'`
20585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20586 (eval "$lt_compile" 2>conftest.err)
20587 ac_status=$?
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 if (exit $ac_status) && test -s "$ac_outfile"; then
20591 # The compiler can only warn and ignore the option if not recognized
20592 # So say no if there are warnings other than the usual output.
20593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20596 lt_cv_prog_compiler_pic_works_CXX=yes
20597 fi
20598 fi
20599 $RM conftest*
20600
20601 fi
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20603 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20604
20605 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20606 case $lt_prog_compiler_pic_CXX in
20607 "" | " "*) ;;
20608 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20609 esac
20610 else
20611 lt_prog_compiler_pic_CXX=
20612 lt_prog_compiler_can_build_shared_CXX=no
20613 fi
20614
20615 fi
20616
20617
20618
20619 #
20620 # Check to make sure the static flag actually works.
20621 #
20622 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20625 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20627 else
20628 lt_cv_prog_compiler_static_works_CXX=no
20629 save_LDFLAGS="$LDFLAGS"
20630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20633 # The linker can only warn and ignore the option if not recognized
20634 # So say no if there are warnings
20635 if test -s conftest.err; then
20636 # Append any errors to the config.log.
20637 cat conftest.err 1>&5
20638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20640 if diff conftest.exp conftest.er2 >/dev/null; then
20641 lt_cv_prog_compiler_static_works_CXX=yes
20642 fi
20643 else
20644 lt_cv_prog_compiler_static_works_CXX=yes
20645 fi
20646 fi
20647 $RM -r conftest*
20648 LDFLAGS="$save_LDFLAGS"
20649
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20652 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20653
20654 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20655 :
20656 else
20657 lt_prog_compiler_static_CXX=
20658 fi
20659
20660
20661
20662
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20665 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 lt_cv_prog_compiler_c_o_CXX=no
20669 $RM -r conftest 2>/dev/null
20670 mkdir conftest
20671 cd conftest
20672 mkdir out
20673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20674
20675 lt_compiler_flag="-o out/conftest2.$ac_objext"
20676 # Insert the option either (1) after the last *FLAGS variable, or
20677 # (2) before a word containing "conftest.", or (3) at the end.
20678 # Note that $ac_compile itself does not contain backslashes and begins
20679 # with a dollar sign (not a hyphen), so the echo should work correctly.
20680 lt_compile=`echo "$ac_compile" | $SED \
20681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20683 -e 's:$: $lt_compiler_flag:'`
20684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20685 (eval "$lt_compile" 2>out/conftest.err)
20686 ac_status=$?
20687 cat out/conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20690 then
20691 # The compiler can only warn and ignore the option if not recognized
20692 # So say no if there are warnings
20693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20696 lt_cv_prog_compiler_c_o_CXX=yes
20697 fi
20698 fi
20699 chmod u+w . 2>&5
20700 $RM conftest*
20701 # SGI C++ compiler will create directory out/ii_files/ for
20702 # template instantiation
20703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20704 $RM out/* && rmdir out
20705 cd ..
20706 $RM -r conftest
20707 $RM conftest*
20708
20709 fi
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20712
20713
20714
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20717 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20718 $as_echo_n "(cached) " >&6
20719 else
20720 lt_cv_prog_compiler_c_o_CXX=no
20721 $RM -r conftest 2>/dev/null
20722 mkdir conftest
20723 cd conftest
20724 mkdir out
20725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20726
20727 lt_compiler_flag="-o out/conftest2.$ac_objext"
20728 # Insert the option either (1) after the last *FLAGS variable, or
20729 # (2) before a word containing "conftest.", or (3) at the end.
20730 # Note that $ac_compile itself does not contain backslashes and begins
20731 # with a dollar sign (not a hyphen), so the echo should work correctly.
20732 lt_compile=`echo "$ac_compile" | $SED \
20733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20735 -e 's:$: $lt_compiler_flag:'`
20736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20737 (eval "$lt_compile" 2>out/conftest.err)
20738 ac_status=$?
20739 cat out/conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20742 then
20743 # The compiler can only warn and ignore the option if not recognized
20744 # So say no if there are warnings
20745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20748 lt_cv_prog_compiler_c_o_CXX=yes
20749 fi
20750 fi
20751 chmod u+w . 2>&5
20752 $RM conftest*
20753 # SGI C++ compiler will create directory out/ii_files/ for
20754 # template instantiation
20755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20756 $RM out/* && rmdir out
20757 cd ..
20758 $RM -r conftest
20759 $RM conftest*
20760
20761 fi
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20764
20765
20766
20767
20768 hard_links="nottested"
20769 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20770 # do not overwrite the value of need_locks provided by the user
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20772 $as_echo_n "checking if we can lock with hard links... " >&6; }
20773 hard_links=yes
20774 $RM conftest*
20775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20776 touch conftest.a
20777 ln conftest.a conftest.b 2>&5 || hard_links=no
20778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20780 $as_echo "$hard_links" >&6; }
20781 if test "$hard_links" = no; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20784 need_locks=warn
20785 fi
20786 else
20787 need_locks=no
20788 fi
20789
20790
20791
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20794
20795 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20796 case $host_os in
20797 aix[4-9]*)
20798 # If we're using GNU nm, then we don't want the "-C" option.
20799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20800 # Also, AIX nm treats weak defined symbols like other global defined
20801 # symbols, whereas GNU nm marks them as "W".
20802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20803 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'
20804 else
20805 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'
20806 fi
20807 ;;
20808 pw32*)
20809 export_symbols_cmds_CXX="$ltdll_cmds"
20810 ;;
20811 cygwin* | mingw* | cegcc*)
20812 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'
20813 ;;
20814 *)
20815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20816 ;;
20817 esac
20818 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20819
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20821 $as_echo "$ld_shlibs_CXX" >&6; }
20822 test "$ld_shlibs_CXX" = no && can_build_shared=no
20823
20824 with_gnu_ld_CXX=$with_gnu_ld
20825
20826
20827
20828
20829
20830
20831 #
20832 # Do we need to explicitly link libc?
20833 #
20834 case "x$archive_cmds_need_lc_CXX" in
20835 x|xyes)
20836 # Assume -lc should be added
20837 archive_cmds_need_lc_CXX=yes
20838
20839 if test "$enable_shared" = yes && test "$GCC" = yes; then
20840 case $archive_cmds_CXX in
20841 *'~'*)
20842 # FIXME: we may have to deal with multi-command sequences.
20843 ;;
20844 '$CC '*)
20845 # Test whether the compiler implicitly links with -lc since on some
20846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20847 # to ld, don't add -lc before -lgcc.
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20849 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20850 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 $RM conftest*
20854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20855
20856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20857 (eval $ac_compile) 2>&5
20858 ac_status=$?
20859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20860 test $ac_status = 0; } 2>conftest.err; then
20861 soname=conftest
20862 lib=conftest
20863 libobjs=conftest.$ac_objext
20864 deplibs=
20865 wl=$lt_prog_compiler_wl_CXX
20866 pic_flag=$lt_prog_compiler_pic_CXX
20867 compiler_flags=-v
20868 linker_flags=-v
20869 verstring=
20870 output_objdir=.
20871 libname=conftest
20872 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20873 allow_undefined_flag_CXX=
20874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20875 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20876 ac_status=$?
20877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20878 test $ac_status = 0; }
20879 then
20880 lt_cv_archive_cmds_need_lc_CXX=no
20881 else
20882 lt_cv_archive_cmds_need_lc_CXX=yes
20883 fi
20884 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20885 else
20886 cat conftest.err 1>&5
20887 fi
20888 $RM conftest*
20889
20890 fi
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20892 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20893 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20894 ;;
20895 esac
20896 fi
20897 ;;
20898 esac
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20964 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20965
20966 library_names_spec=
20967 libname_spec='lib$name'
20968 soname_spec=
20969 shrext_cmds=".so"
20970 postinstall_cmds=
20971 postuninstall_cmds=
20972 finish_cmds=
20973 finish_eval=
20974 shlibpath_var=
20975 shlibpath_overrides_runpath=unknown
20976 version_type=none
20977 dynamic_linker="$host_os ld.so"
20978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20979 need_lib_prefix=unknown
20980 hardcode_into_libs=no
20981
20982 # when you set need_version to no, make sure it does not cause -set_version
20983 # flags to be left without arguments
20984 need_version=unknown
20985
20986 case $host_os in
20987 aix3*)
20988 version_type=linux
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20990 shlibpath_var=LIBPATH
20991
20992 # AIX 3 has no versioning support, so we append a major version to the name.
20993 soname_spec='${libname}${release}${shared_ext}$major'
20994 ;;
20995
20996 aix[4-9]*)
20997 version_type=linux
20998 need_lib_prefix=no
20999 need_version=no
21000 hardcode_into_libs=yes
21001 if test "$host_cpu" = ia64; then
21002 # AIX 5 supports IA64
21003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21004 shlibpath_var=LD_LIBRARY_PATH
21005 else
21006 # With GCC up to 2.95.x, collect2 would create an import file
21007 # for dependence libraries. The import file would start with
21008 # the line `#! .'. This would cause the generated library to
21009 # depend on `.', always an invalid library. This was fixed in
21010 # development snapshots of GCC prior to 3.0.
21011 case $host_os in
21012 aix4 | aix4.[01] | aix4.[01].*)
21013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21014 echo ' yes '
21015 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21016 :
21017 else
21018 can_build_shared=no
21019 fi
21020 ;;
21021 esac
21022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21023 # soname into executable. Probably we can add versioning support to
21024 # collect2, so additional links can be useful in future.
21025 if test "$aix_use_runtimelinking" = yes; then
21026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21027 # instead of lib<name>.a to let people know that these are not
21028 # typical AIX shared libraries.
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 else
21031 # We preserve .a as extension for shared libraries through AIX4.2
21032 # and later when we are not doing run time linking.
21033 library_names_spec='${libname}${release}.a $libname.a'
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 fi
21036 shlibpath_var=LIBPATH
21037 fi
21038 ;;
21039
21040 amigaos*)
21041 case $host_cpu in
21042 powerpc)
21043 # Since July 2007 AmigaOS4 officially supports .so libraries.
21044 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 ;;
21047 m68k)
21048 library_names_spec='$libname.ixlibrary $libname.a'
21049 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21050 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'
21051 ;;
21052 esac
21053 ;;
21054
21055 beos*)
21056 library_names_spec='${libname}${shared_ext}'
21057 dynamic_linker="$host_os ld.so"
21058 shlibpath_var=LIBRARY_PATH
21059 ;;
21060
21061 bsdi[45]*)
21062 version_type=linux
21063 need_version=no
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21067 shlibpath_var=LD_LIBRARY_PATH
21068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21070 # the default ld.so.conf also contains /usr/contrib/lib and
21071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21072 # libtool to hard-code these into programs
21073 ;;
21074
21075 cygwin* | mingw* | pw32* | cegcc*)
21076 version_type=windows
21077 shrext_cmds=".dll"
21078 need_version=no
21079 need_lib_prefix=no
21080
21081 case $GCC,$host_os in
21082 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21083 library_names_spec='$libname.dll.a'
21084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21085 postinstall_cmds='base_file=`basename \${file}`~
21086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21087 dldir=$destdir/`dirname \$dlpath`~
21088 test -d \$dldir || mkdir -p \$dldir~
21089 $install_prog $dir/$dlname \$dldir/$dlname~
21090 chmod a+x \$dldir/$dlname~
21091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21093 fi'
21094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21095 dlpath=$dir/\$dldll~
21096 $RM \$dlpath'
21097 shlibpath_overrides_runpath=yes
21098
21099 case $host_os in
21100 cygwin*)
21101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21103
21104 ;;
21105 mingw* | cegcc*)
21106 # MinGW DLLs use traditional 'lib' prefix
21107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21108 ;;
21109 pw32*)
21110 # pw32 DLLs use 'pw' prefix rather than 'lib'
21111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21112 ;;
21113 esac
21114 ;;
21115
21116 *)
21117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21118 ;;
21119 esac
21120 dynamic_linker='Win32 ld.exe'
21121 # FIXME: first we should search . and the directory the executable is in
21122 shlibpath_var=PATH
21123 ;;
21124
21125 darwin* | rhapsody*)
21126 dynamic_linker="$host_os dyld"
21127 version_type=darwin
21128 need_lib_prefix=no
21129 need_version=no
21130 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21131 soname_spec='${libname}${release}${major}$shared_ext'
21132 shlibpath_overrides_runpath=yes
21133 shlibpath_var=DYLD_LIBRARY_PATH
21134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21135
21136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21137 ;;
21138
21139 dgux*)
21140 version_type=linux
21141 need_lib_prefix=no
21142 need_version=no
21143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21144 soname_spec='${libname}${release}${shared_ext}$major'
21145 shlibpath_var=LD_LIBRARY_PATH
21146 ;;
21147
21148 freebsd* | dragonfly*)
21149 # DragonFly does not have aout. When/if they implement a new
21150 # versioning mechanism, adjust this.
21151 if test -x /usr/bin/objformat; then
21152 objformat=`/usr/bin/objformat`
21153 else
21154 case $host_os in
21155 freebsd[23].*) objformat=aout ;;
21156 *) objformat=elf ;;
21157 esac
21158 fi
21159 version_type=freebsd-$objformat
21160 case $version_type in
21161 freebsd-elf*)
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21163 need_version=no
21164 need_lib_prefix=no
21165 ;;
21166 freebsd-*)
21167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21168 need_version=yes
21169 ;;
21170 esac
21171 shlibpath_var=LD_LIBRARY_PATH
21172 case $host_os in
21173 freebsd2.*)
21174 shlibpath_overrides_runpath=yes
21175 ;;
21176 freebsd3.[01]* | freebsdelf3.[01]*)
21177 shlibpath_overrides_runpath=yes
21178 hardcode_into_libs=yes
21179 ;;
21180 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21181 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21182 shlibpath_overrides_runpath=no
21183 hardcode_into_libs=yes
21184 ;;
21185 *) # from 4.6 on, and DragonFly
21186 shlibpath_overrides_runpath=yes
21187 hardcode_into_libs=yes
21188 ;;
21189 esac
21190 ;;
21191
21192 gnu*)
21193 version_type=linux
21194 need_lib_prefix=no
21195 need_version=no
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 hardcode_into_libs=yes
21200 ;;
21201
21202 haiku*)
21203 version_type=linux
21204 need_lib_prefix=no
21205 need_version=no
21206 dynamic_linker="$host_os runtime_loader"
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21208 soname_spec='${libname}${release}${shared_ext}$major'
21209 shlibpath_var=LIBRARY_PATH
21210 shlibpath_overrides_runpath=yes
21211 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21212 hardcode_into_libs=yes
21213 ;;
21214
21215 hpux9* | hpux10* | hpux11*)
21216 # Give a soname corresponding to the major version so that dld.sl refuses to
21217 # link against other versions.
21218 version_type=sunos
21219 need_lib_prefix=no
21220 need_version=no
21221 case $host_cpu in
21222 ia64*)
21223 shrext_cmds='.so'
21224 hardcode_into_libs=yes
21225 dynamic_linker="$host_os dld.so"
21226 shlibpath_var=LD_LIBRARY_PATH
21227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229 soname_spec='${libname}${release}${shared_ext}$major'
21230 if test "X$HPUX_IA64_MODE" = X32; then
21231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21232 else
21233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21234 fi
21235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21236 ;;
21237 hppa*64*)
21238 shrext_cmds='.sl'
21239 hardcode_into_libs=yes
21240 dynamic_linker="$host_os dld.sl"
21241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21244 soname_spec='${libname}${release}${shared_ext}$major'
21245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21247 ;;
21248 *)
21249 shrext_cmds='.sl'
21250 dynamic_linker="$host_os dld.sl"
21251 shlibpath_var=SHLIB_PATH
21252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 ;;
21256 esac
21257 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21258 postinstall_cmds='chmod 555 $lib'
21259 # or fails outright, so override atomically:
21260 install_override_mode=555
21261 ;;
21262
21263 interix[3-9]*)
21264 version_type=linux
21265 need_lib_prefix=no
21266 need_version=no
21267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21268 soname_spec='${libname}${release}${shared_ext}$major'
21269 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21270 shlibpath_var=LD_LIBRARY_PATH
21271 shlibpath_overrides_runpath=no
21272 hardcode_into_libs=yes
21273 ;;
21274
21275 irix5* | irix6* | nonstopux*)
21276 case $host_os in
21277 nonstopux*) version_type=nonstopux ;;
21278 *)
21279 if test "$lt_cv_prog_gnu_ld" = yes; then
21280 version_type=linux
21281 else
21282 version_type=irix
21283 fi ;;
21284 esac
21285 need_lib_prefix=no
21286 need_version=no
21287 soname_spec='${libname}${release}${shared_ext}$major'
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21289 case $host_os in
21290 irix5* | nonstopux*)
21291 libsuff= shlibsuff=
21292 ;;
21293 *)
21294 case $LD in # libtool.m4 will add one of these switches to LD
21295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21296 libsuff= shlibsuff= libmagic=32-bit;;
21297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21298 libsuff=32 shlibsuff=N32 libmagic=N32;;
21299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21301 *) libsuff= shlibsuff= libmagic=never-match;;
21302 esac
21303 ;;
21304 esac
21305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21306 shlibpath_overrides_runpath=no
21307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21309 hardcode_into_libs=yes
21310 ;;
21311
21312 # No shared lib support for Linux oldld, aout, or coff.
21313 linux*oldld* | linux*aout* | linux*coff*)
21314 dynamic_linker=no
21315 ;;
21316
21317 # This must be Linux ELF.
21318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21319 version_type=linux
21320 need_lib_prefix=no
21321 need_version=no
21322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21323 soname_spec='${libname}${release}${shared_ext}$major'
21324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21325 shlibpath_var=LD_LIBRARY_PATH
21326 shlibpath_overrides_runpath=no
21327
21328 # Some binutils ld are patched to set DT_RUNPATH
21329 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21330 $as_echo_n "(cached) " >&6
21331 else
21332 lt_cv_shlibpath_overrides_runpath=no
21333 save_LDFLAGS=$LDFLAGS
21334 save_libdir=$libdir
21335 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21336 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21339
21340 int
21341 main ()
21342 {
21343
21344 ;
21345 return 0;
21346 }
21347 _ACEOF
21348 if ac_fn_cxx_try_link "$LINENO"; then :
21349 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21350 lt_cv_shlibpath_overrides_runpath=yes
21351 fi
21352 fi
21353 rm -f core conftest.err conftest.$ac_objext \
21354 conftest$ac_exeext conftest.$ac_ext
21355 LDFLAGS=$save_LDFLAGS
21356 libdir=$save_libdir
21357
21358 fi
21359
21360 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21361
21362 # This implies no fast_install, which is unacceptable.
21363 # Some rework will be needed to allow for fast_install
21364 # before this can be enabled.
21365 hardcode_into_libs=yes
21366
21367 # Append ld.so.conf contents to the search path
21368 if test -f /etc/ld.so.conf; then
21369 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' ' '`
21370 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21371 fi
21372
21373 # We used to test for /lib/ld.so.1 and disable shared libraries on
21374 # powerpc, because MkLinux only supported shared libraries with the
21375 # GNU dynamic linker. Since this was broken with cross compilers,
21376 # most powerpc-linux boxes support dynamic linking these days and
21377 # people can always --disable-shared, the test was removed, and we
21378 # assume the GNU/Linux dynamic linker is in use.
21379 dynamic_linker='GNU/Linux ld.so'
21380 ;;
21381
21382 netbsd*)
21383 version_type=sunos
21384 need_lib_prefix=no
21385 need_version=no
21386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21389 dynamic_linker='NetBSD (a.out) ld.so'
21390 else
21391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21392 soname_spec='${libname}${release}${shared_ext}$major'
21393 dynamic_linker='NetBSD ld.elf_so'
21394 fi
21395 shlibpath_var=LD_LIBRARY_PATH
21396 shlibpath_overrides_runpath=yes
21397 hardcode_into_libs=yes
21398 ;;
21399
21400 newsos6)
21401 version_type=linux
21402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21403 shlibpath_var=LD_LIBRARY_PATH
21404 shlibpath_overrides_runpath=yes
21405 ;;
21406
21407 *nto* | *qnx*)
21408 version_type=qnx
21409 need_lib_prefix=no
21410 need_version=no
21411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21412 soname_spec='${libname}${release}${shared_ext}$major'
21413 shlibpath_var=LD_LIBRARY_PATH
21414 shlibpath_overrides_runpath=no
21415 hardcode_into_libs=yes
21416 dynamic_linker='ldqnx.so'
21417 ;;
21418
21419 openbsd*)
21420 version_type=sunos
21421 sys_lib_dlsearch_path_spec="/usr/lib"
21422 need_lib_prefix=no
21423 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21424 case $host_os in
21425 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21426 *) need_version=no ;;
21427 esac
21428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21430 shlibpath_var=LD_LIBRARY_PATH
21431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21432 case $host_os in
21433 openbsd2.[89] | openbsd2.[89].*)
21434 shlibpath_overrides_runpath=no
21435 ;;
21436 *)
21437 shlibpath_overrides_runpath=yes
21438 ;;
21439 esac
21440 else
21441 shlibpath_overrides_runpath=yes
21442 fi
21443 ;;
21444
21445 os2*)
21446 libname_spec='$name'
21447 shrext_cmds=".dll"
21448 need_lib_prefix=no
21449 library_names_spec='$libname${shared_ext} $libname.a'
21450 dynamic_linker='OS/2 ld.exe'
21451 shlibpath_var=LIBPATH
21452 ;;
21453
21454 osf3* | osf4* | osf5*)
21455 version_type=osf
21456 need_lib_prefix=no
21457 need_version=no
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21460 shlibpath_var=LD_LIBRARY_PATH
21461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21463 ;;
21464
21465 rdos*)
21466 dynamic_linker=no
21467 ;;
21468
21469 solaris*)
21470 version_type=linux
21471 need_lib_prefix=no
21472 need_version=no
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec='${libname}${release}${shared_ext}$major'
21475 shlibpath_var=LD_LIBRARY_PATH
21476 shlibpath_overrides_runpath=yes
21477 hardcode_into_libs=yes
21478 # ldd complains unless libraries are executable
21479 postinstall_cmds='chmod +x $lib'
21480 ;;
21481
21482 sunos4*)
21483 version_type=sunos
21484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21486 shlibpath_var=LD_LIBRARY_PATH
21487 shlibpath_overrides_runpath=yes
21488 if test "$with_gnu_ld" = yes; then
21489 need_lib_prefix=no
21490 fi
21491 need_version=yes
21492 ;;
21493
21494 sysv4 | sysv4.3*)
21495 version_type=linux
21496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21497 soname_spec='${libname}${release}${shared_ext}$major'
21498 shlibpath_var=LD_LIBRARY_PATH
21499 case $host_vendor in
21500 sni)
21501 shlibpath_overrides_runpath=no
21502 need_lib_prefix=no
21503 runpath_var=LD_RUN_PATH
21504 ;;
21505 siemens)
21506 need_lib_prefix=no
21507 ;;
21508 motorola)
21509 need_lib_prefix=no
21510 need_version=no
21511 shlibpath_overrides_runpath=no
21512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21513 ;;
21514 esac
21515 ;;
21516
21517 sysv4*MP*)
21518 if test -d /usr/nec ;then
21519 version_type=linux
21520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21521 soname_spec='$libname${shared_ext}.$major'
21522 shlibpath_var=LD_LIBRARY_PATH
21523 fi
21524 ;;
21525
21526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21527 version_type=freebsd-elf
21528 need_lib_prefix=no
21529 need_version=no
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21531 soname_spec='${libname}${release}${shared_ext}$major'
21532 shlibpath_var=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath=yes
21534 hardcode_into_libs=yes
21535 if test "$with_gnu_ld" = yes; then
21536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21537 else
21538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21539 case $host_os in
21540 sco3.2v5*)
21541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21542 ;;
21543 esac
21544 fi
21545 sys_lib_dlsearch_path_spec='/usr/lib'
21546 ;;
21547
21548 tpf*)
21549 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21550 version_type=linux
21551 need_lib_prefix=no
21552 need_version=no
21553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554 shlibpath_var=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath=no
21556 hardcode_into_libs=yes
21557 ;;
21558
21559 uts4*)
21560 version_type=linux
21561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562 soname_spec='${libname}${release}${shared_ext}$major'
21563 shlibpath_var=LD_LIBRARY_PATH
21564 ;;
21565
21566 *)
21567 dynamic_linker=no
21568 ;;
21569 esac
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21571 $as_echo "$dynamic_linker" >&6; }
21572 test "$dynamic_linker" = no && can_build_shared=no
21573
21574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21575 if test "$GCC" = yes; then
21576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21577 fi
21578
21579 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21580 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21581 fi
21582 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21583 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21584 fi
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21624 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21625 hardcode_action_CXX=
21626 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21627 test -n "$runpath_var_CXX" ||
21628 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21629
21630 # We can hardcode non-existent directories.
21631 if test "$hardcode_direct_CXX" != no &&
21632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21633 # have to relink, otherwise we might link with an installed library
21634 # when we should be linking with a yet-to-be-installed one
21635 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21636 test "$hardcode_minus_L_CXX" != no; then
21637 # Linking always hardcodes the temporary library directory.
21638 hardcode_action_CXX=relink
21639 else
21640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21641 hardcode_action_CXX=immediate
21642 fi
21643 else
21644 # We cannot hardcode anything, or else we can only hardcode existing
21645 # directories.
21646 hardcode_action_CXX=unsupported
21647 fi
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21649 $as_echo "$hardcode_action_CXX" >&6; }
21650
21651 if test "$hardcode_action_CXX" = relink ||
21652 test "$inherit_rpath_CXX" = yes; then
21653 # Fast installation is not supported
21654 enable_fast_install=no
21655 elif test "$shlibpath_overrides_runpath" = yes ||
21656 test "$enable_shared" = no; then
21657 # Fast installation is not necessary
21658 enable_fast_install=needless
21659 fi
21660
21661
21662
21663
21664
21665
21666
21667 fi # test -n "$compiler"
21668
21669 CC=$lt_save_CC
21670 LDCXX=$LD
21671 LD=$lt_save_LD
21672 GCC=$lt_save_GCC
21673 with_gnu_ld=$lt_save_with_gnu_ld
21674 lt_cv_path_LDCXX=$lt_cv_path_LD
21675 lt_cv_path_LD=$lt_save_path_LD
21676 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21677 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21678 fi # test "$_lt_caught_CXX_error" != yes
21679
21680 ac_ext=cpp
21681 ac_cpp='$CXXCPP $CPPFLAGS'
21682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701 # Only expand once:
21702
21703
21704
21705
21706
21707 # Identify the assembler which will work hand-in-glove with the newly
21708 # built GCC, so that we can examine its features. This is the assembler
21709 # which will be driven by the driver program.
21710 #
21711 # If build != host, and we aren't building gas in-tree, we identify a
21712 # build->target assembler and hope that it will have the same features
21713 # as the host->target assembler we'll be using.
21714 gcc_cv_gas_major_version=
21715 gcc_cv_gas_minor_version=
21716 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21717
21718 if test "${gcc_cv_as+set}" = set; then :
21719
21720 else
21721
21722 if test -x "$DEFAULT_ASSEMBLER"; then
21723 gcc_cv_as="$DEFAULT_ASSEMBLER"
21724 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21725 && test -f ../gas/Makefile \
21726 && test x$build = x$host; then
21727 gcc_cv_as=../gas/as-new$build_exeext
21728 elif test -x as$build_exeext; then
21729 # Build using assembler in the current directory.
21730 gcc_cv_as=./as$build_exeext
21731 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21732 gcc_cv_as="$AS_FOR_TARGET"
21733 else
21734 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21735 set dummy $AS_FOR_TARGET; ac_word=$2
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21737 $as_echo_n "checking for $ac_word... " >&6; }
21738 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21741 case $gcc_cv_as in
21742 [\\/]* | ?:[\\/]*)
21743 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21744 ;;
21745 *)
21746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21747 for as_dir in $PATH
21748 do
21749 IFS=$as_save_IFS
21750 test -z "$as_dir" && as_dir=.
21751 for ac_exec_ext in '' $ac_executable_extensions; do
21752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21753 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21755 break 2
21756 fi
21757 done
21758 done
21759 IFS=$as_save_IFS
21760
21761 ;;
21762 esac
21763 fi
21764 gcc_cv_as=$ac_cv_path_gcc_cv_as
21765 if test -n "$gcc_cv_as"; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21767 $as_echo "$gcc_cv_as" >&6; }
21768 else
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21770 $as_echo "no" >&6; }
21771 fi
21772
21773
21774 fi
21775 fi
21776
21777 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21778
21779 case "$ORIGINAL_AS_FOR_TARGET" in
21780 ./as | ./as$build_exeext) ;;
21781 *) ac_config_files="$ac_config_files as:exec-tool.in"
21782 ;;
21783 esac
21784
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21786 $as_echo_n "checking what assembler to use... " >&6; }
21787 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21788 # Single tree build which includes gas. We want to prefer it
21789 # over whatever linker top-level may have detected, since
21790 # we'll use what we're building after installation anyway.
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21792 $as_echo "newly built gas" >&6; }
21793 in_tree_gas=yes
21794 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21795 for f in $gcc_cv_as_bfd_srcdir/configure \
21796 $gcc_cv_as_gas_srcdir/configure \
21797 $gcc_cv_as_gas_srcdir/configure.ac \
21798 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21799 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21800 if test x$gcc_cv_gas_version != x; then
21801 break
21802 fi
21803 done
21804 case $gcc_cv_gas_version in
21805 VERSION=[0-9]*) ;;
21806 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21807 esac
21808 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21809 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21810 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21811 case $gcc_cv_gas_patch_version in
21812 "") gcc_cv_gas_patch_version="0" ;;
21813 esac
21814 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21815 + $gcc_cv_gas_minor_version \) \* 1000 \
21816 + $gcc_cv_gas_patch_version`
21817
21818 in_tree_gas_is_elf=no
21819 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21820 || (grep 'obj_format = multi' ../gas/Makefile \
21821 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21822 then
21823 in_tree_gas_is_elf=yes
21824 fi
21825 else
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21827 $as_echo "$gcc_cv_as" >&6; }
21828 in_tree_gas=no
21829 fi
21830
21831 default_ld=
21832 # Check whether --enable-ld was given.
21833 if test "${enable_ld+set}" = set; then :
21834 enableval=$enable_ld; case "${enableval}" in
21835 no)
21836 default_ld=ld.gold
21837 ;;
21838 esac
21839 fi
21840
21841
21842 install_gold_as_default=no
21843 # Check whether --enable-gold was given.
21844 if test "${enable_gold+set}" = set; then :
21845 enableval=$enable_gold; case "${enableval}" in
21846 default)
21847 install_gold_as_default=yes
21848 ;;
21849 yes)
21850 if test x${default_ld} != x; then
21851 install_gold_as_default=yes
21852 fi
21853 ;;
21854 no)
21855 ;;
21856 *)
21857 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21858 ;;
21859 esac
21860 fi
21861
21862
21863 # Identify the linker which will work hand-in-glove with the newly
21864 # built GCC, so that we can examine its features. This is the linker
21865 # which will be driven by the driver program.
21866 #
21867 # If build != host, and we aren't building gas in-tree, we identify a
21868 # build->target linker and hope that it will have the same features
21869 # as the host->target linker we'll be using.
21870 gcc_cv_gld_major_version=
21871 gcc_cv_gld_minor_version=
21872 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21873 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21874 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21875
21876 if test "${gcc_cv_ld+set}" = set; then :
21877
21878 else
21879
21880 if test -x "$DEFAULT_LINKER"; then
21881 gcc_cv_ld="$DEFAULT_LINKER"
21882 elif test $install_gold_as_default = yes \
21883 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21884 && test -f ../gold/Makefile \
21885 && test x$build = x$host; then
21886 gcc_cv_ld=../gold/ld-new$build_exeext
21887 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21888 && test -f ../ld/Makefile \
21889 && test x$build = x$host; then
21890 gcc_cv_ld=../ld/ld-new$build_exeext
21891 elif test -x collect-ld$build_exeext; then
21892 # Build using linker in the current directory.
21893 gcc_cv_ld=./collect-ld$build_exeext
21894 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21895 gcc_cv_ld="$LD_FOR_TARGET"
21896 else
21897 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21898 set dummy $LD_FOR_TARGET; ac_word=$2
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21900 $as_echo_n "checking for $ac_word... " >&6; }
21901 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 case $gcc_cv_ld in
21905 [\\/]* | ?:[\\/]*)
21906 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21907 ;;
21908 *)
21909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21910 for as_dir in $PATH
21911 do
21912 IFS=$as_save_IFS
21913 test -z "$as_dir" && as_dir=.
21914 for ac_exec_ext in '' $ac_executable_extensions; do
21915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21916 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21918 break 2
21919 fi
21920 done
21921 done
21922 IFS=$as_save_IFS
21923
21924 ;;
21925 esac
21926 fi
21927 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21928 if test -n "$gcc_cv_ld"; then
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21930 $as_echo "$gcc_cv_ld" >&6; }
21931 else
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934 fi
21935
21936
21937 fi
21938 fi
21939
21940 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21941 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21942 # if the PLUGIN_LD is set ld-new, just have it as ld
21943 # as that is the installed named.
21944 if test x$PLUGIN_LD_SUFFIX = xld-new \
21945 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21946 PLUGIN_LD_SUFFIX=ld
21947 fi
21948
21949 # Check whether --with-plugin-ld was given.
21950 if test "${with_plugin_ld+set}" = set; then :
21951 withval=$with_plugin_ld; if test x"$withval" != x; then
21952 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21953 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21954 fi
21955 fi
21956
21957
21958
21959 cat >>confdefs.h <<_ACEOF
21960 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21961 _ACEOF
21962
21963
21964 # Check to see if we are using gold instead of ld
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21966 $as_echo_n "checking whether we are using gold... " >&6; }
21967 ld_is_gold=no
21968 if test x$gcc_cv_ld != x; then
21969 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21970 | grep "GNU gold" > /dev/null; then
21971 ld_is_gold=yes
21972 fi
21973 fi
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21975 $as_echo "$ld_is_gold" >&6; }
21976
21977 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21978
21979 case "$ORIGINAL_LD_FOR_TARGET" in
21980 ./collect-ld | ./collect-ld$build_exeext) ;;
21981 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21982 ;;
21983 esac
21984
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21986 $as_echo_n "checking what linker to use... " >&6; }
21987 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21988 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21989 # Single tree build which includes ld. We want to prefer it
21990 # over whatever linker top-level may have detected, since
21991 # we'll use what we're building after installation anyway.
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21993 $as_echo "newly built ld" >&6; }
21994 in_tree_ld=yes
21995 in_tree_ld_is_elf=no
21996 if (grep 'EMUL = .*elf' ../ld/Makefile \
21997 || grep 'EMUL = .*linux' ../ld/Makefile \
21998 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21999 in_tree_ld_is_elf=yes
22000 elif test "$ld_is_gold" = yes; then
22001 in_tree_ld_is_elf=yes
22002 fi
22003 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22004 do
22005 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22006 if test x$gcc_cv_gld_version != x; then
22007 break
22008 fi
22009 done
22010 case $gcc_cv_gld_version in
22011 VERSION=[0-9]*) ;;
22012 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22013 esac
22014 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22015 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22016 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22017 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22018 else
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22020 $as_echo "$gcc_cv_ld" >&6; }
22021 in_tree_ld=no
22022 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22023 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22024 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22025 fi
22026
22027
22028
22029
22030 # Figure out what nm we will be using.
22031 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22032 if test "${gcc_cv_nm+set}" = set; then :
22033
22034 else
22035
22036 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22037 && test -f ../binutils/Makefile \
22038 && test x$build = x$host; then
22039 gcc_cv_nm=../binutils/nm-new$build_exeext
22040 elif test -x nm$build_exeext; then
22041 gcc_cv_nm=./nm$build_exeext
22042 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22043 gcc_cv_nm="$NM_FOR_TARGET"
22044 else
22045 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22046 set dummy $NM_FOR_TARGET; ac_word=$2
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22048 $as_echo_n "checking for $ac_word... " >&6; }
22049 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 case $gcc_cv_nm in
22053 [\\/]* | ?:[\\/]*)
22054 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22055 ;;
22056 *)
22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22059 do
22060 IFS=$as_save_IFS
22061 test -z "$as_dir" && as_dir=.
22062 for ac_exec_ext in '' $ac_executable_extensions; do
22063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22064 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22066 break 2
22067 fi
22068 done
22069 done
22070 IFS=$as_save_IFS
22071
22072 ;;
22073 esac
22074 fi
22075 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22076 if test -n "$gcc_cv_nm"; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22078 $as_echo "$gcc_cv_nm" >&6; }
22079 else
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081 $as_echo "no" >&6; }
22082 fi
22083
22084
22085 fi
22086 fi
22087
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22089 $as_echo_n "checking what nm to use... " >&6; }
22090 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22091 # Single tree build which includes binutils.
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22093 $as_echo "newly built nm" >&6; }
22094 in_tree_nm=yes
22095 else
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22097 $as_echo "$gcc_cv_nm" >&6; }
22098 in_tree_nm=no
22099 fi
22100
22101 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22102
22103 case "$ORIGINAL_NM_FOR_TARGET" in
22104 ./nm | ./nm$build_exeext) ;;
22105 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22106 ;;
22107 esac
22108
22109
22110 # Figure out what objdump we will be using.
22111 if test "${gcc_cv_objdump+set}" = set; then :
22112
22113 else
22114
22115 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22116 && test -f ../binutils/Makefile \
22117 && test x$build = x$host; then
22118 # Single tree build which includes binutils.
22119 gcc_cv_objdump=../binutils/objdump$build_exeext
22120 elif test -x objdump$build_exeext; then
22121 gcc_cv_objdump=./objdump$build_exeext
22122 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22123 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22124 else
22125 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22126 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 case $gcc_cv_objdump in
22133 [\\/]* | ?:[\\/]*)
22134 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22135 ;;
22136 *)
22137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22138 for as_dir in $PATH
22139 do
22140 IFS=$as_save_IFS
22141 test -z "$as_dir" && as_dir=.
22142 for ac_exec_ext in '' $ac_executable_extensions; do
22143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22144 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22146 break 2
22147 fi
22148 done
22149 done
22150 IFS=$as_save_IFS
22151
22152 ;;
22153 esac
22154 fi
22155 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22156 if test -n "$gcc_cv_objdump"; then
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22158 $as_echo "$gcc_cv_objdump" >&6; }
22159 else
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22162 fi
22163
22164
22165 fi
22166 fi
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22169 $as_echo_n "checking what objdump to use... " >&6; }
22170 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22171 # Single tree build which includes binutils.
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22173 $as_echo "newly built objdump" >&6; }
22174 elif test x$gcc_cv_objdump = x; then
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22176 $as_echo "not found" >&6; }
22177 else
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22179 $as_echo "$gcc_cv_objdump" >&6; }
22180 fi
22181
22182 # Figure out what readelf we will be using.
22183 if test "${gcc_cv_readelf+set}" = set; then :
22184
22185 else
22186
22187 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22188 && test -f ../binutils/Makefile \
22189 && test x$build = x$host; then
22190 # Single tree build which includes binutils.
22191 gcc_cv_readelf=../binutils/readelf$build_exeext
22192 elif test -x readelf$build_exeext; then
22193 gcc_cv_readelf=./readelf$build_exeext
22194 else
22195 # Extract the first word of "readelf", so it can be a program name with args.
22196 set dummy readelf; ac_word=$2
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22198 $as_echo_n "checking for $ac_word... " >&6; }
22199 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22200 $as_echo_n "(cached) " >&6
22201 else
22202 case $gcc_cv_readelf in
22203 [\\/]* | ?:[\\/]*)
22204 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22205 ;;
22206 *)
22207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22209 do
22210 IFS=$as_save_IFS
22211 test -z "$as_dir" && as_dir=.
22212 for ac_exec_ext in '' $ac_executable_extensions; do
22213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22214 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22216 break 2
22217 fi
22218 done
22219 done
22220 IFS=$as_save_IFS
22221
22222 ;;
22223 esac
22224 fi
22225 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22226 if test -n "$gcc_cv_readelf"; then
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22228 $as_echo "$gcc_cv_readelf" >&6; }
22229 else
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22232 fi
22233
22234
22235 fi
22236 fi
22237
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22239 $as_echo_n "checking what readelf to use... " >&6; }
22240 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22241 # Single tree build which includes binutils.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22243 $as_echo "newly built readelf" >&6; }
22244 elif test x$gcc_cv_readelf = x; then
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22246 $as_echo "not found" >&6; }
22247 else
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22249 $as_echo "$gcc_cv_readelf" >&6; }
22250 fi
22251
22252 # Figure out what assembler alignment features are present.
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22254 $as_echo_n "checking assembler flags... " >&6; }
22255 if test "${gcc_cv_as_flags+set}" = set; then :
22256 $as_echo_n "(cached) " >&6
22257 else
22258 case "$target" in
22259 i[34567]86-*-linux*)
22260 gcc_cv_as_flags=--32
22261 ;;
22262 x86_64-*-linux-gnux32)
22263 gcc_cv_as_flags=--x32
22264 ;;
22265 x86_64-*-linux*)
22266 gcc_cv_as_flags=--64
22267 ;;
22268 powerpc*-*-darwin*)
22269 gcc_cv_as_flags="-arch ppc"
22270 ;;
22271 *)
22272 gcc_cv_as_flags=" "
22273 ;;
22274 esac
22275 fi
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22277 $as_echo "$gcc_cv_as_flags" >&6; }
22278
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22280 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22281 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 gcc_cv_as_balign_and_p2align=no
22285 if test $in_tree_gas = yes; then
22286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22287 then gcc_cv_as_balign_and_p2align=yes
22288 fi
22289 elif test x$gcc_cv_as != x; then
22290 $as_echo '.balign 4
22291 .p2align 2' > conftest.s
22292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22297 test $ac_status = 0; }; }
22298 then
22299 gcc_cv_as_balign_and_p2align=yes
22300 else
22301 echo "configure: failed program was" >&5
22302 cat conftest.s >&5
22303 fi
22304 rm -f conftest.o conftest.s
22305 fi
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22308 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22309 if test $gcc_cv_as_balign_and_p2align = yes; then
22310
22311 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22312
22313 fi
22314
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22316 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22317 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22318 $as_echo_n "(cached) " >&6
22319 else
22320 gcc_cv_as_max_skip_p2align=no
22321 if test $in_tree_gas = yes; then
22322 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22323 then gcc_cv_as_max_skip_p2align=yes
22324 fi
22325 elif test x$gcc_cv_as != x; then
22326 $as_echo '.p2align 4,,7' > conftest.s
22327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22332 test $ac_status = 0; }; }
22333 then
22334 gcc_cv_as_max_skip_p2align=yes
22335 else
22336 echo "configure: failed program was" >&5
22337 cat conftest.s >&5
22338 fi
22339 rm -f conftest.o conftest.s
22340 fi
22341 fi
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22343 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22344 if test $gcc_cv_as_max_skip_p2align = yes; then
22345
22346 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22347
22348 fi
22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22351 $as_echo_n "checking assembler for .literal16... " >&6; }
22352 if test "${gcc_cv_as_literal16+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 gcc_cv_as_literal16=no
22356 if test $in_tree_gas = yes; then
22357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22358 then gcc_cv_as_literal16=yes
22359 fi
22360 elif test x$gcc_cv_as != x; then
22361 $as_echo '.literal16' > conftest.s
22362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; }
22368 then
22369 gcc_cv_as_literal16=yes
22370 else
22371 echo "configure: failed program was" >&5
22372 cat conftest.s >&5
22373 fi
22374 rm -f conftest.o conftest.s
22375 fi
22376 fi
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22378 $as_echo "$gcc_cv_as_literal16" >&6; }
22379 if test $gcc_cv_as_literal16 = yes; then
22380
22381 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22382
22383 fi
22384
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22386 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22387 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22389 else
22390 gcc_cv_as_subsection_m1=no
22391 if test $in_tree_gas = yes; then
22392 if test $in_tree_gas_is_elf = yes \
22393 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22394 then gcc_cv_as_subsection_m1=yes
22395 fi
22396 elif test x$gcc_cv_as != x; then
22397 $as_echo 'conftest_label1: .word 0
22398 .subsection -1
22399 conftest_label2: .word 0
22400 .previous' > conftest.s
22401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; }
22407 then
22408 if test x$gcc_cv_nm != x; then
22409 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22410 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22411 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22412 then :
22413 else gcc_cv_as_subsection_m1=yes
22414 fi
22415 rm -f conftest.nm1 conftest.nm2
22416 fi
22417 else
22418 echo "configure: failed program was" >&5
22419 cat conftest.s >&5
22420 fi
22421 rm -f conftest.o conftest.s
22422 fi
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22425 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22426 if test $gcc_cv_as_subsection_m1 = yes; then
22427
22428 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22429
22430 fi
22431
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22433 $as_echo_n "checking assembler for .weak... " >&6; }
22434 if test "${gcc_cv_as_weak+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 gcc_cv_as_weak=no
22438 if test $in_tree_gas = yes; then
22439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22440 then gcc_cv_as_weak=yes
22441 fi
22442 elif test x$gcc_cv_as != x; then
22443 $as_echo ' .weak foobar' > conftest.s
22444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22446 (eval $ac_try) 2>&5
22447 ac_status=$?
22448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22449 test $ac_status = 0; }; }
22450 then
22451 gcc_cv_as_weak=yes
22452 else
22453 echo "configure: failed program was" >&5
22454 cat conftest.s >&5
22455 fi
22456 rm -f conftest.o conftest.s
22457 fi
22458 fi
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22460 $as_echo "$gcc_cv_as_weak" >&6; }
22461 if test $gcc_cv_as_weak = yes; then
22462
22463 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22464
22465 fi
22466
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22468 $as_echo_n "checking assembler for .weakref... " >&6; }
22469 if test "${gcc_cv_as_weakref+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 gcc_cv_as_weakref=no
22473 if test $in_tree_gas = yes; then
22474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22475 then gcc_cv_as_weakref=yes
22476 fi
22477 elif test x$gcc_cv_as != x; then
22478 $as_echo ' .weakref foobar, barfnot' > conftest.s
22479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22484 test $ac_status = 0; }; }
22485 then
22486 gcc_cv_as_weakref=yes
22487 else
22488 echo "configure: failed program was" >&5
22489 cat conftest.s >&5
22490 fi
22491 rm -f conftest.o conftest.s
22492 fi
22493 fi
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22495 $as_echo "$gcc_cv_as_weakref" >&6; }
22496 if test $gcc_cv_as_weakref = yes; then
22497
22498 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22499
22500 fi
22501
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22503 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22504 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22506 else
22507 gcc_cv_as_nsubspa_comdat=no
22508 if test $in_tree_gas = yes; then
22509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22510 then gcc_cv_as_nsubspa_comdat=yes
22511 fi
22512 elif test x$gcc_cv_as != x; then
22513 $as_echo ' .SPACE $TEXT$
22514 .NSUBSPA $CODE$,COMDAT' > conftest.s
22515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22517 (eval $ac_try) 2>&5
22518 ac_status=$?
22519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22520 test $ac_status = 0; }; }
22521 then
22522 gcc_cv_as_nsubspa_comdat=yes
22523 else
22524 echo "configure: failed program was" >&5
22525 cat conftest.s >&5
22526 fi
22527 rm -f conftest.o conftest.s
22528 fi
22529 fi
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22531 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22532 if test $gcc_cv_as_nsubspa_comdat = yes; then
22533
22534 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22535
22536 fi
22537
22538 # .hidden needs to be supported in both the assembler and the linker,
22539 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22540 # This is irritatingly difficult to feature test for; we have to check the
22541 # date string after the version number. If we've got an in-tree
22542 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22543 # to be safe.
22544 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22546 $as_echo_n "checking assembler for .hidden... " >&6; }
22547 if test "${gcc_cv_as_hidden+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 gcc_cv_as_hidden=no
22551 if test $in_tree_gas = yes; then
22552 if test $in_tree_gas_is_elf = yes \
22553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22554 then gcc_cv_as_hidden=yes
22555 fi
22556 elif test x$gcc_cv_as != x; then
22557 $as_echo ' .hidden foobar
22558 foobar:' > conftest.s
22559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22565 then
22566 gcc_cv_as_hidden=yes
22567 else
22568 echo "configure: failed program was" >&5
22569 cat conftest.s >&5
22570 fi
22571 rm -f conftest.o conftest.s
22572 fi
22573 fi
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22575 $as_echo "$gcc_cv_as_hidden" >&6; }
22576
22577 case "${target}" in
22578 *-*-darwin*)
22579 # Darwin as has some visibility support, though with a different syntax.
22580 gcc_cv_as_hidden=yes
22581 ;;
22582 esac
22583
22584 # gnu_indirect_function type is an extension proposed at
22585 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22586 # selection of function implementation
22587 # Check whether --enable-gnu-indirect-function was given.
22588 if test "${enable_gnu_indirect_function+set}" = set; then :
22589 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22590 yes | no) ;;
22591 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22592 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22593 esac
22594 else
22595 enable_gnu_indirect_function="$default_gnu_indirect_function"
22596 fi
22597
22598
22599 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22600
22601 cat >>confdefs.h <<_ACEOF
22602 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22603 _ACEOF
22604
22605
22606
22607 if test $in_tree_ld != yes ; then
22608 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22609 if echo "$ld_ver" | grep GNU > /dev/null; then
22610 if test x"$ld_is_gold" = xyes; then
22611 # GNU gold --version looks like this:
22612 #
22613 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22614 #
22615 # We extract the binutils version which is more familiar and specific
22616 # than the gold version.
22617 ld_vers=`echo $ld_ver | sed -n \
22618 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22619 else
22620 # GNU ld --version looks like this:
22621 #
22622 # GNU ld (GNU Binutils) 2.21.51.20110225
22623 ld_vers=`echo $ld_ver | sed -n \
22624 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22625 fi
22626 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'`
22627 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22628 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22629 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22630 else
22631 case "${target}" in
22632 *-*-solaris2*)
22633 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22634 # format.
22635 #
22636 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22637 # /usr/ccs/bin/ld has been configured.
22638 ld_ver=`$gcc_cv_ld -V 2>&1`
22639 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22640 ld_vers=`echo $ld_ver | sed -n \
22641 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22642 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22643 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22644 fi
22645 ;;
22646 esac
22647 fi
22648 fi
22649
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22651 $as_echo_n "checking linker for .hidden support... " >&6; }
22652 if test "${gcc_cv_ld_hidden+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654 else
22655 if test $in_tree_ld = yes ; then
22656 gcc_cv_ld_hidden=no
22657 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 \
22658 && test $in_tree_ld_is_elf = yes; then
22659 gcc_cv_ld_hidden=yes
22660 fi
22661 else
22662 gcc_cv_ld_hidden=yes
22663 if test x"$ld_is_gold" = xyes; then
22664 :
22665 elif echo "$ld_ver" | grep GNU > /dev/null; then
22666 case "${target}" in
22667 mmix-knuth-mmixware)
22668 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22669 gcc_cv_ld_hidden=no
22670 ;;
22671 esac
22672 if test 0"$ld_date" -lt 20020404; then
22673 if test -n "$ld_date"; then
22674 # If there was date string, but was earlier than 2002-04-04, fail
22675 gcc_cv_ld_hidden=no
22676 elif test -z "$ld_vers"; then
22677 # If there was no date string nor ld version number, something is wrong
22678 gcc_cv_ld_hidden=no
22679 else
22680 test -z "$ld_vers_patch" && ld_vers_patch=0
22681 if test "$ld_vers_major" -lt 2; then
22682 gcc_cv_ld_hidden=no
22683 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22684 gcc_cv_ld_hidden="no"
22685 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22686 gcc_cv_ld_hidden=no
22687 fi
22688 fi
22689 fi
22690 else
22691 case "${target}" in
22692 *-*-darwin*)
22693 # Darwin ld has some visibility support.
22694 gcc_cv_ld_hidden=yes
22695 ;;
22696 hppa64*-*-hpux* | ia64*-*-hpux*)
22697 gcc_cv_ld_hidden=yes
22698 ;;
22699 *-*-solaris2.1[0-9]*)
22700 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22701 # .symbolic was only added in Solaris 9 12/02.
22702 gcc_cv_ld_hidden=yes
22703 ;;
22704 *)
22705 gcc_cv_ld_hidden=no
22706 ;;
22707 esac
22708 fi
22709 fi
22710 fi
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22712 $as_echo "$gcc_cv_ld_hidden" >&6; }
22713 libgcc_visibility=no
22714
22715
22716 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22717 libgcc_visibility=yes
22718
22719 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22720
22721 fi
22722
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22724 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22725 gcc_cv_ld_ro_rw_mix=unknown
22726 if test $in_tree_ld = yes ; then
22727 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 \
22728 && test $in_tree_ld_is_elf = yes; then
22729 gcc_cv_ld_ro_rw_mix=read-write
22730 fi
22731 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22732 echo '.section myfoosect, "a"' > conftest1.s
22733 echo '.section myfoosect, "aw"' > conftest2.s
22734 echo '.byte 1' >> conftest2.s
22735 echo '.section myfoosect, "a"' > conftest3.s
22736 echo '.byte 0' >> conftest3.s
22737 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22738 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22739 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22740 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22741 conftest2.o conftest3.o > /dev/null 2>&1; then
22742 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22743 | sed -e '/myfoosect/!d' -e N`
22744 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22745 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22746 gcc_cv_ld_ro_rw_mix=read-only
22747 else
22748 gcc_cv_ld_ro_rw_mix=read-write
22749 fi
22750 fi
22751 fi
22752 rm -f conftest.* conftest[123].*
22753 fi
22754 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22755
22756 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22757
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22760 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22761
22762 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22763 case "${target}" in
22764 *-*-solaris2*)
22765 #
22766 # Solaris 2 ld -V output looks like this for a regular version:
22767 #
22768 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22769 #
22770 # but test versions add stuff at the end:
22771 #
22772 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22773 #
22774 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22775 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22776 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22777 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22778 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22779 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22780 fi
22781 ;;
22782 esac
22783 fi
22784
22785 # Check whether --enable-initfini-array was given.
22786 if test "${enable_initfini_array+set}" = set; then :
22787 enableval=$enable_initfini_array;
22788 else
22789
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22791 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22792 if test "${gcc_cv_initfini_array+set}" = set; then :
22793 $as_echo_n "(cached) " >&6
22794 else
22795 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22796 case "${target}" in
22797 ia64-*)
22798 if test "$cross_compiling" = yes; then :
22799 gcc_cv_initfini_array=no
22800 else
22801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22803
22804 #ifndef __ELF__
22805 #error Not an ELF OS
22806 #endif
22807 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22808 if it can be used. */
22809 static int x = -1;
22810 int main (void) { return x; }
22811 int foo (void) { x = 0; }
22812 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22813
22814 _ACEOF
22815 if ac_fn_cxx_try_run "$LINENO"; then :
22816 gcc_cv_initfini_array=yes
22817 else
22818 gcc_cv_initfini_array=no
22819 fi
22820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22821 conftest.$ac_objext conftest.beam conftest.$ac_ext
22822 fi
22823 ;;
22824 *)
22825 gcc_cv_initfini_array=no
22826 if test $in_tree_ld = yes ; then
22827 if test "$gcc_cv_gld_major_version" -eq 2 \
22828 -a "$gcc_cv_gld_minor_version" -ge 22 \
22829 -o "$gcc_cv_gld_major_version" -gt 2 \
22830 && test $in_tree_ld_is_elf = yes; then
22831 gcc_cv_initfini_array=yes
22832 fi
22833 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22834 cat > conftest.s <<\EOF
22835 .section .dtors,"a",%progbits
22836 .balign 4
22837 .byte 'A', 'A', 'A', 'A'
22838 .section .ctors,"a",%progbits
22839 .balign 4
22840 .byte 'B', 'B', 'B', 'B'
22841 .section .fini_array.65530,"a",%progbits
22842 .balign 4
22843 .byte 'C', 'C', 'C', 'C'
22844 .section .init_array.65530,"a",%progbits
22845 .balign 4
22846 .byte 'D', 'D', 'D', 'D'
22847 .section .dtors.64528,"a",%progbits
22848 .balign 4
22849 .byte 'E', 'E', 'E', 'E'
22850 .section .ctors.64528,"a",%progbits
22851 .balign 4
22852 .byte 'F', 'F', 'F', 'F'
22853 .section .fini_array.01005,"a",%progbits
22854 .balign 4
22855 .byte 'G', 'G', 'G', 'G'
22856 .section .init_array.01005,"a",%progbits
22857 .balign 4
22858 .byte 'H', 'H', 'H', 'H'
22859 .text
22860 .globl _start
22861 _start:
22862 EOF
22863 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22864 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22865 && $gcc_cv_objdump -s -j .init_array conftest \
22866 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22867 && $gcc_cv_objdump -s -j .fini_array conftest \
22868 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22869 gcc_cv_initfini_array=yes
22870 fi
22871 rm -f conftest conftest.*
22872 fi
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22875
22876 #ifndef __ELF__
22877 # error Not an ELF OS
22878 #endif
22879 #include <stdlib.h>
22880 #if defined __GLIBC_PREREQ
22881 # if __GLIBC_PREREQ (2, 4)
22882 # else
22883 # error GLIBC 2.4 required
22884 # endif
22885 #else
22886 # if defined __sun__ && defined __svr4__
22887 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22888 # else
22889 # error The C library not known to support .init_array/.fini_array
22890 # endif
22891 #endif
22892
22893 _ACEOF
22894 if ac_fn_cxx_try_cpp "$LINENO"; then :
22895
22896 else
22897 gcc_cv_initfini_array=no
22898 fi
22899 rm -f conftest.err conftest.$ac_ext;;
22900 esac
22901 else
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22903 $as_echo_n "checking cross compile... guessing... " >&6; }
22904 gcc_cv_initfini_array=no
22905 fi
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22908 $as_echo "$gcc_cv_initfini_array" >&6; }
22909 enable_initfini_array=$gcc_cv_initfini_array
22910
22911 fi
22912
22913 if test $enable_initfini_array = yes; then
22914
22915 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22916
22917 fi
22918
22919 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22921 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22922 if test "${gcc_cv_as_leb128+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925 gcc_cv_as_leb128=no
22926 if test $in_tree_gas = yes; then
22927 if test $in_tree_gas_is_elf = yes \
22928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22929 then gcc_cv_as_leb128=yes
22930 fi
22931 elif test x$gcc_cv_as != x; then
22932 $as_echo ' .data
22933 .uleb128 L2 - L1
22934 L1:
22935 .uleb128 1280
22936 .sleb128 -1010
22937 L2:' > conftest.s
22938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }
22944 then
22945 # GAS versions before 2.11 do not support uleb128,
22946 # despite appearing to.
22947 # ??? There exists an elf-specific test that will crash
22948 # the assembler. Perhaps it's better to figure out whether
22949 # arbitrary sections are supported and try the test.
22950 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22951 if echo "$as_ver" | grep GNU > /dev/null; then
22952 as_vers=`echo $as_ver | sed -n \
22953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22954 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22955 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22956 if test $as_major -eq 2 && test $as_minor -lt 11
22957 then :
22958 else gcc_cv_as_leb128=yes
22959 fi
22960 fi
22961 else
22962 echo "configure: failed program was" >&5
22963 cat conftest.s >&5
22964 fi
22965 rm -f conftest.o conftest.s
22966 fi
22967 fi
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22969 $as_echo "$gcc_cv_as_leb128" >&6; }
22970 if test $gcc_cv_as_leb128 = yes; then
22971
22972 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22973
22974 fi
22975
22976 # Check if we have assembler support for unwind directives.
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22978 $as_echo_n "checking assembler for cfi directives... " >&6; }
22979 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22980 $as_echo_n "(cached) " >&6
22981 else
22982 gcc_cv_as_cfi_directive=no
22983 if test x$gcc_cv_as != x; then
22984 $as_echo ' .text
22985 .cfi_startproc
22986 .cfi_offset 0, 0
22987 .cfi_same_value 1
22988 .cfi_def_cfa 1, 2
22989 .cfi_escape 1, 2, 3, 4, 5
22990 .cfi_endproc' > conftest.s
22991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }
22997 then
22998 case "$target" in
22999 *-*-solaris*)
23000 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23001 # read-only and read-write sections, we need to make sure that the
23002 # assembler used emits read-write .eh_frame sections.
23003 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23004 if test "x$gcc_cv_objdump" != x; then
23005 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23006 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23007 gcc_cv_as_cfi_directive=no
23008 else
23009 case "$target" in
23010 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23011 # On Solaris/x86, make sure that GCC and assembler agree on using
23012 # read-only .eh_frame sections for 64-bit.
23013 if test x$gas = xyes; then
23014 as_ix86_64_opt="--64"
23015 else
23016 as_ix86_64_opt="-xarch=amd64"
23017 fi
23018 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23019 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23020 sed -e /.eh_frame/!d -e N | \
23021 grep READONLY > /dev/null; then
23022 gcc_cv_as_cfi_directive=yes
23023 else
23024 gcc_cv_as_cfi_directive=no
23025 fi
23026 ;;
23027 *)
23028 gcc_cv_as_cfi_directive=yes
23029 ;;
23030 esac
23031 fi
23032 else
23033 # no objdump, err on the side of caution
23034 gcc_cv_as_cfi_directive=no
23035 fi
23036 else
23037 gcc_cv_as_cfi_directive=yes
23038 fi
23039 ;;
23040 *-*-*)
23041 gcc_cv_as_cfi_directive=yes
23042 ;;
23043 esac
23044 else
23045 echo "configure: failed program was" >&5
23046 cat conftest.s >&5
23047 fi
23048 rm -f conftest.o conftest.s
23049 fi
23050 fi
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23052 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23053
23054 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23056 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23057 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23058 $as_echo_n "(cached) " >&6
23059 else
23060 gcc_cv_as_cfi_advance_working=no
23061 if test x$gcc_cv_as != x; then
23062 $as_echo ' .text
23063 .cfi_startproc
23064 .cfi_adjust_cfa_offset 64
23065 .skip 75040, 0
23066 .cfi_adjust_cfa_offset 128
23067 .cfi_endproc' > conftest.s
23068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23074 then
23075
23076 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23077 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23078 gcc_cv_as_cfi_advance_working=yes
23079 fi
23080
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_cfi_advance_working" >&5
23089 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23090
23091 else
23092 # no objdump, err on the side of caution
23093 gcc_cv_as_cfi_advance_working=no
23094 fi
23095
23096
23097 cat >>confdefs.h <<_ACEOF
23098 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23099 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23100 _ACEOF
23101
23102
23103
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23105 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23106 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23108 else
23109 gcc_cv_as_cfi_personality_directive=no
23110 if test x$gcc_cv_as != x; then
23111 $as_echo ' .text
23112 .cfi_startproc
23113 .cfi_personality 0, symbol
23114 .cfi_endproc' > conftest.s
23115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23120 test $ac_status = 0; }; }
23121 then
23122 gcc_cv_as_cfi_personality_directive=yes
23123 else
23124 echo "configure: failed program was" >&5
23125 cat conftest.s >&5
23126 fi
23127 rm -f conftest.o conftest.s
23128 fi
23129 fi
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23131 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23132
23133
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23136 then echo 1; else echo 0; fi`
23137 _ACEOF
23138
23139
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23141 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23142 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23143 $as_echo_n "(cached) " >&6
23144 else
23145 gcc_cv_as_cfi_sections_directive=no
23146 if test x$gcc_cv_as != x; then
23147 $as_echo ' .text
23148 .cfi_sections .debug_frame, .eh_frame
23149 .cfi_startproc
23150 .cfi_endproc' > conftest.s
23151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156 test $ac_status = 0; }; }
23157 then
23158 case $target_os in
23159 win32 | pe | cygwin* | mingw32* | uwin*)
23160 # Need to check that we generated the correct relocation for the
23161 # .debug_frame section. This was fixed for binutils 2.21.
23162 gcc_cv_as_cfi_sections_directive=no
23163 if test "x$gcc_cv_objdump" != x; then
23164 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23165 grep secrel > /dev/null; then
23166 gcc_cv_as_cfi_sections_directive=yes
23167 fi
23168 fi
23169 ;;
23170 *)
23171 gcc_cv_as_cfi_sections_directive=yes
23172 ;;
23173 esac
23174 else
23175 echo "configure: failed program was" >&5
23176 cat conftest.s >&5
23177 fi
23178 rm -f conftest.o conftest.s
23179 fi
23180 fi
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23182 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23183
23184
23185
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23188 then echo 1; else echo 0; fi`
23189 _ACEOF
23190
23191
23192 # GAS versions up to and including 2.11.0 may mis-optimize
23193 # .eh_frame data.
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23195 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23196 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23199 gcc_cv_as_eh_frame=no
23200 if test $in_tree_gas = yes; then
23201 if test $in_tree_gas_is_elf = yes \
23202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23203 then gcc_cv_as_eh_frame=yes
23204 fi
23205 elif test x$gcc_cv_as != x; then
23206 $as_echo ' .text
23207 .LFB1:
23208 .4byte 0
23209 .L1:
23210 .4byte 0
23211 .LFE1:
23212 .section .eh_frame,"aw",@progbits
23213 __FRAME_BEGIN__:
23214 .4byte .LECIE1-.LSCIE1
23215 .LSCIE1:
23216 .4byte 0x0
23217 .byte 0x1
23218 .ascii "z\0"
23219 .byte 0x1
23220 .byte 0x78
23221 .byte 0x1a
23222 .byte 0x0
23223 .byte 0x4
23224 .4byte 1
23225 .p2align 1
23226 .LECIE1:
23227 .LSFDE1:
23228 .4byte .LEFDE1-.LASFDE1
23229 .LASFDE1:
23230 .4byte .LASFDE1-__FRAME_BEGIN__
23231 .4byte .LFB1
23232 .4byte .LFE1-.LFB1
23233 .byte 0x4
23234 .4byte .LFE1-.LFB1
23235 .byte 0x4
23236 .4byte .L1-.LFB1
23237 .LEFDE1:' > conftest.s
23238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243 test $ac_status = 0; }; }
23244 then
23245 cat > conftest.lit <<EOF
23246 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23247 0010 01000000 12000000 18000000 00000000 ................
23248 0020 08000000 04080000 0044 .........D
23249 EOF
23250 cat > conftest.big <<EOF
23251 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23252 0010 00000001 00000012 00000018 00000000 ................
23253 0020 00000008 04000000 0844 .........D
23254 EOF
23255 # If the assembler didn't choke, and we can objdump,
23256 # and we got the correct data, then succeed.
23257 # The text in the here-document typically retains its unix-style line
23258 # endings, while the output of objdump will use host line endings.
23259 # Therefore, use diff -b for the comparisons.
23260 if test x$gcc_cv_objdump != x \
23261 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23262 | tail -3 > conftest.got \
23263 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23264 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23265 then
23266 gcc_cv_as_eh_frame=yes
23267 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }; then
23273 gcc_cv_as_eh_frame=buggy
23274 else
23275 # Uh oh, what do we do now?
23276 gcc_cv_as_eh_frame=no
23277 fi
23278 else
23279 echo "configure: failed program was" >&5
23280 cat conftest.s >&5
23281 fi
23282 rm -f conftest.o conftest.s
23283 fi
23284 fi
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23286 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23287
23288
23289 if test $gcc_cv_as_eh_frame = buggy; then
23290
23291 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23292
23293 fi
23294
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23296 $as_echo_n "checking assembler for section merging support... " >&6; }
23297 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23299 else
23300 gcc_cv_as_shf_merge=no
23301 if test $in_tree_gas = yes; then
23302 if test $in_tree_gas_is_elf = yes \
23303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23304 then gcc_cv_as_shf_merge=yes
23305 fi
23306 elif test x$gcc_cv_as != x; then
23307 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23314 then
23315 gcc_cv_as_shf_merge=yes
23316 else
23317 echo "configure: failed program was" >&5
23318 cat conftest.s >&5
23319 fi
23320 rm -f conftest.o conftest.s
23321 fi
23322 fi
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23324 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23325
23326 if test $gcc_cv_as_shf_merge = no; then
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23328 $as_echo_n "checking assembler for section merging support... " >&6; }
23329 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23330 $as_echo_n "(cached) " >&6
23331 else
23332 gcc_cv_as_shf_merge=no
23333 if test $in_tree_gas = yes; then
23334 if test $in_tree_gas_is_elf = yes \
23335 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23336 then gcc_cv_as_shf_merge=yes
23337 fi
23338 elif test x$gcc_cv_as != x; then
23339 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342 (eval $ac_try) 2>&5
23343 ac_status=$?
23344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345 test $ac_status = 0; }; }
23346 then
23347 gcc_cv_as_shf_merge=yes
23348 else
23349 echo "configure: failed program was" >&5
23350 cat conftest.s >&5
23351 fi
23352 rm -f conftest.o conftest.s
23353 fi
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23356 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23357
23358 fi
23359
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23362 _ACEOF
23363
23364
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23366 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23367 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23368 $as_echo_n "(cached) " >&6
23369 else
23370 gcc_cv_as_comdat_group=no
23371 if test $in_tree_gas = yes; then
23372 if test $in_tree_gas_is_elf = yes \
23373 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23374 then gcc_cv_as_comdat_group=yes
23375 fi
23376 elif test x$gcc_cv_as != x; then
23377 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23384 then
23385 gcc_cv_as_comdat_group=yes
23386 else
23387 echo "configure: failed program was" >&5
23388 cat conftest.s >&5
23389 fi
23390 rm -f conftest.o conftest.s
23391 fi
23392 fi
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23394 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23395
23396 if test $gcc_cv_as_comdat_group = yes; then
23397 gcc_cv_as_comdat_group_percent=no
23398 gcc_cv_as_comdat_group_group=no
23399 else
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23401 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23402 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23404 else
23405 gcc_cv_as_comdat_group_percent=no
23406 if test $in_tree_gas = yes; then
23407 if test $in_tree_gas_is_elf = yes \
23408 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23409 then gcc_cv_as_comdat_group_percent=yes
23410 fi
23411 elif test x$gcc_cv_as != x; then
23412 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; }
23419 then
23420 gcc_cv_as_comdat_group_percent=yes
23421 else
23422 echo "configure: failed program was" >&5
23423 cat conftest.s >&5
23424 fi
23425 rm -f conftest.o conftest.s
23426 fi
23427 fi
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23429 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23430
23431 if test $gcc_cv_as_comdat_group_percent = yes; then
23432 gcc_cv_as_comdat_group_group=no
23433 else
23434 case "${target}" in
23435 # Sun as uses a completely different syntax.
23436 *-*-solaris2*)
23437 case "${target}" in
23438 sparc*-*-solaris2*)
23439 conftest_s='
23440 .group foo,".text%foo",#comdat
23441 .section ".text%foo", #alloc,#execinstr,#progbits
23442 .globl foo
23443 foo:
23444 '
23445 ;;
23446 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23447 conftest_s='
23448 .group foo,.text%foo,#comdat
23449 .section .text%foo, "ax", @progbits
23450 .globl foo
23451 foo:
23452 '
23453 ;;
23454 esac
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23456 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23457 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 gcc_cv_as_comdat_group_group=no
23461 if test x$gcc_cv_as != x; then
23462 $as_echo "$conftest_s" > conftest.s
23463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23469 then
23470 gcc_cv_as_comdat_group_group=yes
23471 else
23472 echo "configure: failed program was" >&5
23473 cat conftest.s >&5
23474 fi
23475 rm -f conftest.o conftest.s
23476 fi
23477 fi
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23479 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23480
23481 ;;
23482 esac
23483 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23484 gcc_cv_as_comdat_group_group=no
23485 fi
23486 fi
23487 fi
23488 if test x"$ld_is_gold" = xyes; then
23489 comdat_group=yes
23490 elif test $in_tree_ld = yes ; then
23491 comdat_group=no
23492 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 \
23493 && test $in_tree_ld_is_elf = yes; then
23494 comdat_group=yes
23495 fi
23496 elif echo "$ld_ver" | grep GNU > /dev/null; then
23497 comdat_group=yes
23498 if test 0"$ld_date" -lt 20050308; then
23499 if test -n "$ld_date"; then
23500 # If there was date string, but was earlier than 2005-03-08, fail
23501 comdat_group=no
23502 elif test "$ld_vers_major" -lt 2; then
23503 comdat_group=no
23504 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23505 comdat_group=no
23506 fi
23507 fi
23508 else
23509 case "${target}" in
23510 *-*-solaris2.1[1-9]*)
23511 comdat_group=no
23512 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23513 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23514 # version 1.688.
23515 #
23516 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23517 # least ld version 1.2267.
23518 if test "$ld_vers_major" -gt 1; then
23519 comdat_group=yes
23520 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23521 comdat_group=yes
23522 elif test "$ld_vers_minor" -ge 2267; then
23523 comdat_group=yes
23524 fi
23525 ;;
23526 *)
23527 # Assume linkers other than GNU ld don't support COMDAT group.
23528 comdat_group=no
23529 ;;
23530 esac
23531 fi
23532 # Allow overriding the automatic COMDAT group tests above.
23533 # Check whether --enable-comdat was given.
23534 if test "${enable_comdat+set}" = set; then :
23535 enableval=$enable_comdat; comdat_group="$enable_comdat"
23536 fi
23537
23538 if test $comdat_group = no; then
23539 gcc_cv_as_comdat_group=no
23540 gcc_cv_as_comdat_group_percent=no
23541 gcc_cv_as_comdat_group_group=no
23542 fi
23543
23544 cat >>confdefs.h <<_ACEOF
23545 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23546 || test $gcc_cv_as_comdat_group_percent = yes \
23547 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23548 _ACEOF
23549
23550
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23552 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23553 if test "${gcc_cv_as_discriminator+set}" = set; then :
23554 $as_echo_n "(cached) " >&6
23555 else
23556 gcc_cv_as_discriminator=no
23557 if test $in_tree_gas = yes; then
23558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23559 then gcc_cv_as_discriminator=yes
23560 fi
23561 elif test x$gcc_cv_as != x; then
23562 $as_echo ' .text
23563 .file 1 "conf.c"
23564 .loc 1 1 0 discriminator 1' > conftest.s
23565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23570 test $ac_status = 0; }; }
23571 then
23572 gcc_cv_as_discriminator=yes
23573 else
23574 echo "configure: failed program was" >&5
23575 cat conftest.s >&5
23576 fi
23577 rm -f conftest.o conftest.s
23578 fi
23579 fi
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23581 $as_echo "$gcc_cv_as_discriminator" >&6; }
23582 if test $gcc_cv_as_discriminator = yes; then
23583
23584 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23585
23586 fi
23587
23588 # Thread-local storage - the check is heavily parameterized.
23589 conftest_s=
23590 tls_first_major=
23591 tls_first_minor=
23592 tls_as_opt=
23593 case "$target" in
23594 alpha*-*-*)
23595 conftest_s='
23596 .section ".tdata","awT",@progbits
23597 foo: .long 25
23598 .text
23599 ldq $27,__tls_get_addr($29) !literal!1
23600 lda $16,foo($29) !tlsgd!1
23601 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23602 ldq $27,__tls_get_addr($29) !literal!2
23603 lda $16,foo($29) !tlsldm!2
23604 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23605 ldq $1,foo($29) !gotdtprel
23606 ldah $2,foo($29) !dtprelhi
23607 lda $3,foo($2) !dtprello
23608 lda $4,foo($29) !dtprel
23609 ldq $1,foo($29) !gottprel
23610 ldah $2,foo($29) !tprelhi
23611 lda $3,foo($2) !tprello
23612 lda $4,foo($29) !tprel'
23613 tls_first_major=2
23614 tls_first_minor=13
23615 tls_as_opt=--fatal-warnings
23616 ;;
23617 cris-*-*|crisv32-*-*)
23618 conftest_s='
23619 .section ".tdata","awT",@progbits
23620 x: .long 25
23621 .text
23622 move.d x:IE,$r10
23623 nop'
23624 tls_first_major=2
23625 tls_first_minor=20
23626 tls_as_opt=--fatal-warnings
23627 ;;
23628 frv*-*-*)
23629 conftest_s='
23630 .section ".tdata","awT",@progbits
23631 x: .long 25
23632 .text
23633 call #gettlsoff(x)'
23634 tls_first_major=2
23635 tls_first_minor=14
23636 ;;
23637 hppa*-*-linux*)
23638 conftest_s='
23639 t1: .reg %r20
23640 t2: .reg %r21
23641 gp: .reg %r19
23642 .section ".tdata","awT",@progbits
23643 foo: .long 25
23644 .text
23645 .align 4
23646 addil LT%foo-$tls_gdidx$,gp
23647 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23648 b __tls_get_addr
23649 nop
23650 addil LT%foo-$tls_ldidx$,gp
23651 b __tls_get_addr
23652 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23653 addil LR%foo-$tls_dtpoff$,%ret0
23654 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23655 mfctl %cr27,%t1
23656 addil LT%foo-$tls_ieoff$,gp
23657 ldw RT%foo-$tls_ieoff$(%r1),%t2
23658 add %t1,%t2,%t3
23659 mfctl %cr27,%t1
23660 addil LR%foo-$tls_leoff$,%t1
23661 ldo RR%foo-$tls_leoff$(%r1),%t2'
23662 tls_first_major=2
23663 tls_first_minor=15
23664 tls_as_opt=--fatal-warnings
23665 ;;
23666 arm*-*-*)
23667 conftest_s='
23668 .section ".tdata","awT",%progbits
23669 foo: .long 25
23670 .text
23671 .word foo(gottpoff)
23672 .word foo(tpoff)
23673 .word foo(tlsgd)
23674 .word foo(tlsldm)
23675 .word foo(tlsldo)'
23676 tls_first_major=2
23677 tls_first_minor=17
23678 ;;
23679 i[34567]86-*-* | x86_64-*-*)
23680 case "$target" in
23681 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23682 on_solaris=yes
23683 ;;
23684 *)
23685 on_solaris=no
23686 ;;
23687 esac
23688 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23689 conftest_s='
23690 .section .tdata,"awt",@progbits'
23691 tls_first_major=0
23692 tls_first_minor=0
23693 tls_section_flag=t
23694
23695 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23696
23697 else
23698 conftest_s='
23699 .section ".tdata","awT",@progbits'
23700 tls_first_major=2
23701 tls_first_minor=14
23702 tls_section_flag=T
23703 tls_as_opt="--fatal-warnings"
23704 fi
23705 case "$target" in
23706 i[34567]86-*-*)
23707 conftest_s="$conftest_s
23708 foo: .long 25
23709 .text
23710 movl %gs:0, %eax
23711 leal foo@tlsgd(,%ebx,1), %eax
23712 leal foo@tlsldm(%ebx), %eax
23713 leal foo@dtpoff(%eax), %edx
23714 movl foo@gottpoff(%ebx), %eax
23715 subl foo@gottpoff(%ebx), %eax
23716 addl foo@gotntpoff(%ebx), %eax
23717 movl foo@indntpoff, %eax
23718 movl \$foo@tpoff, %eax
23719 subl \$foo@tpoff, %eax
23720 leal foo@ntpoff(%ecx), %eax"
23721 ;;
23722 x86_64-*-*)
23723 if test x$on_solaris = xyes; then
23724 case $gas_flag in
23725 yes) tls_as_opt="$tls_as_opt --64" ;;
23726 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23727 esac
23728 fi
23729 conftest_s="$conftest_s
23730 foo: .long 25
23731 .text
23732 movq %fs:0, %rax
23733 leaq foo@tlsgd(%rip), %rdi
23734 leaq foo@tlsld(%rip), %rdi
23735 leaq foo@dtpoff(%rax), %rdx
23736 movq foo@gottpoff(%rip), %rax
23737 movq \$foo@tpoff, %rax"
23738 ;;
23739 esac
23740 ;;
23741 ia64-*-*)
23742 conftest_s='
23743 .section ".tdata","awT",@progbits
23744 foo: data8 25
23745 .text
23746 addl r16 = @ltoff(@dtpmod(foo#)), gp
23747 addl r17 = @ltoff(@dtprel(foo#)), gp
23748 addl r18 = @ltoff(@tprel(foo#)), gp
23749 addl r19 = @dtprel(foo#), gp
23750 adds r21 = @dtprel(foo#), r13
23751 movl r23 = @dtprel(foo#)
23752 addl r20 = @tprel(foo#), gp
23753 adds r22 = @tprel(foo#), r13
23754 movl r24 = @tprel(foo#)'
23755 tls_first_major=2
23756 tls_first_minor=13
23757 tls_as_opt=--fatal-warnings
23758 ;;
23759 microblaze*-*-*)
23760 conftest_s='
23761 .section .tdata,"awT",@progbits
23762 x:
23763 .word 2
23764 .text
23765 addik r5,r20,x@TLSGD
23766 addik r5,r20,x@TLSLDM'
23767 tls_first_major=2
23768 tls_first_minor=20
23769 tls_as_opt='--fatal-warnings'
23770 ;;
23771 mips*-*-*)
23772 conftest_s='
23773 .section .tdata,"awT",@progbits
23774 x:
23775 .word 2
23776 .text
23777 addiu $4, $28, %tlsgd(x)
23778 addiu $4, $28, %tlsldm(x)
23779 lui $4, %dtprel_hi(x)
23780 addiu $4, $4, %dtprel_lo(x)
23781 lw $4, %gottprel(x)($28)
23782 lui $4, %tprel_hi(x)
23783 addiu $4, $4, %tprel_lo(x)'
23784 tls_first_major=2
23785 tls_first_minor=16
23786 tls_as_opt='-32 --fatal-warnings'
23787 ;;
23788 m68k-*-*)
23789 conftest_s='
23790 .section .tdata,"awT",@progbits
23791 x:
23792 .word 2
23793 .text
23794 foo:
23795 move.l x@TLSGD(%a5),%a0
23796 move.l x@TLSLDM(%a5),%a0
23797 move.l x@TLSLDO(%a5),%a0
23798 move.l x@TLSIE(%a5),%a0
23799 move.l x@TLSLE(%a5),%a0'
23800 tls_first_major=2
23801 tls_first_minor=19
23802 tls_as_opt='--fatal-warnings'
23803 ;;
23804 nios2-*-*)
23805 conftest_s='
23806 .section ".tdata","awT",@progbits'
23807 tls_first_major=2
23808 tls_first_minor=23
23809 tls_as_opt="--fatal-warnings"
23810 ;;
23811 aarch64*-*-*)
23812 conftest_s='
23813 .section ".tdata","awT",%progbits
23814 foo: .long 25
23815 .text
23816 adrp x0, :tlsgd:x
23817 add x0, x0, #:tlsgd_lo12:x
23818 bl __tls_get_addr
23819 nop'
23820 tls_first_major=2
23821 tls_first_minor=20
23822 tls_as_opt='--fatal-warnings'
23823 ;;
23824 powerpc-ibm-aix*)
23825 conftest_s='
23826 .extern __get_tpointer
23827 .toc
23828 LC..1:
23829 .tc a[TC],a[TL]@le
23830 .csect .text[PR]
23831 .tlstest:
23832 lwz 9,LC..1(2)
23833 bla __get_tpointer
23834 lwzx 3,9,3
23835 .globl a
23836 .csect a[TL],4
23837 a:
23838 .space 4'
23839 tls_first_major=0
23840 tls_first_minor=0
23841 ;;
23842 powerpc64*-*-*)
23843 conftest_s='
23844 .section ".tdata","awT",@progbits
23845 .align 3
23846 ld0: .space 8
23847 ld1: .space 8
23848 x1: .space 8
23849 x2: .space 8
23850 x3: .space 8
23851 .text
23852 addi 3,2,ld0@got@tlsgd
23853 bl .__tls_get_addr
23854 nop
23855 addi 3,2,ld1@toc
23856 bl .__tls_get_addr
23857 nop
23858 addi 3,2,x1@got@tlsld
23859 bl .__tls_get_addr
23860 nop
23861 addi 9,3,x1@dtprel
23862 bl .__tls_get_addr
23863 nop
23864 addis 9,3,x2@dtprel@ha
23865 addi 9,9,x2@dtprel@l
23866 bl .__tls_get_addr
23867 nop
23868 ld 9,x3@got@dtprel(2)
23869 add 9,9,3
23870 bl .__tls_get_addr
23871 nop'
23872 tls_first_major=2
23873 tls_first_minor=14
23874 tls_as_opt="-a64 --fatal-warnings"
23875 ;;
23876 powerpc*-*-*)
23877 conftest_s='
23878 .section ".tdata","awT",@progbits
23879 .align 2
23880 ld0: .space 4
23881 ld1: .space 4
23882 x1: .space 4
23883 x2: .space 4
23884 x3: .space 4
23885 .text
23886 addi 3,31,ld0@got@tlsgd
23887 bl __tls_get_addr
23888 addi 3,31,x1@got@tlsld
23889 bl __tls_get_addr
23890 addi 9,3,x1@dtprel
23891 addis 9,3,x2@dtprel@ha
23892 addi 9,9,x2@dtprel@l
23893 lwz 9,x3@got@tprel(31)
23894 add 9,9,x@tls
23895 addi 9,2,x1@tprel
23896 addis 9,2,x2@tprel@ha
23897 addi 9,9,x2@tprel@l'
23898 tls_first_major=2
23899 tls_first_minor=14
23900 tls_as_opt="-a32 --fatal-warnings"
23901 ;;
23902 s390-*-*)
23903 conftest_s='
23904 .section ".tdata","awT",@progbits
23905 foo: .long 25
23906 .text
23907 .long foo@TLSGD
23908 .long foo@TLSLDM
23909 .long foo@DTPOFF
23910 .long foo@NTPOFF
23911 .long foo@GOTNTPOFF
23912 .long foo@INDNTPOFF
23913 l %r1,foo@GOTNTPOFF(%r12)
23914 l %r1,0(%r1):tls_load:foo
23915 bas %r14,0(%r1,%r13):tls_gdcall:foo
23916 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23917 tls_first_major=2
23918 tls_first_minor=14
23919 tls_as_opt="-m31 --fatal-warnings"
23920 ;;
23921 s390x-*-*)
23922 conftest_s='
23923 .section ".tdata","awT",@progbits
23924 foo: .long 25
23925 .text
23926 .quad foo@TLSGD
23927 .quad foo@TLSLDM
23928 .quad foo@DTPOFF
23929 .quad foo@NTPOFF
23930 .quad foo@GOTNTPOFF
23931 lg %r1,foo@GOTNTPOFF(%r12)
23932 larl %r1,foo@INDNTPOFF
23933 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23934 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23935 tls_first_major=2
23936 tls_first_minor=14
23937 tls_as_opt="-m64 -Aesame --fatal-warnings"
23938 ;;
23939 sh-*-* | sh[34]-*-*)
23940 conftest_s='
23941 .section ".tdata","awT",@progbits
23942 foo: .long 25
23943 .text
23944 .long foo@TLSGD
23945 .long foo@TLSLDM
23946 .long foo@DTPOFF
23947 .long foo@GOTTPOFF
23948 .long foo@TPOFF'
23949 tls_first_major=2
23950 tls_first_minor=13
23951 tls_as_opt=--fatal-warnings
23952 ;;
23953 sparc*-*-*)
23954 case "$target" in
23955 sparc*-sun-solaris2.*)
23956 on_solaris=yes
23957 ;;
23958 *)
23959 on_solaris=no
23960 ;;
23961 esac
23962 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23963 conftest_s='
23964 .section ".tdata",#alloc,#write,#tls'
23965 tls_first_major=0
23966 tls_first_minor=0
23967 else
23968 conftest_s='
23969 .section ".tdata","awT",@progbits'
23970 tls_first_major=2
23971 tls_first_minor=14
23972 tls_as_opt="-32 --fatal-warnings"
23973 fi
23974 conftest_s="$conftest_s
23975 foo: .long 25
23976 .text
23977 sethi %tgd_hi22(foo), %o0
23978 add %o0, %tgd_lo10(foo), %o1
23979 add %l7, %o1, %o0, %tgd_add(foo)
23980 call __tls_get_addr, %tgd_call(foo)
23981 sethi %tldm_hi22(foo), %l1
23982 add %l1, %tldm_lo10(foo), %l2
23983 add %l7, %l2, %o0, %tldm_add(foo)
23984 call __tls_get_addr, %tldm_call(foo)
23985 sethi %tldo_hix22(foo), %l3
23986 xor %l3, %tldo_lox10(foo), %l4
23987 add %o0, %l4, %l5, %tldo_add(foo)
23988 sethi %tie_hi22(foo), %o3
23989 add %o3, %tie_lo10(foo), %o3
23990 ld [%l7 + %o3], %o2, %tie_ld(foo)
23991 add %g7, %o2, %o4, %tie_add(foo)
23992 sethi %tle_hix22(foo), %l1
23993 xor %l1, %tle_lox10(foo), %o5
23994 ld [%g7 + %o5], %o1"
23995 ;;
23996 tilepro*-*-*)
23997 conftest_s='
23998 .section ".tdata","awT",@progbits
23999 foo: .long 25
24000 .text
24001 addli r0, zero, tls_gd(foo)
24002 auli r0, zero, tls_gd_ha16(foo)
24003 addli r0, r0, tls_gd_lo16(foo)
24004 jal __tls_get_addr
24005 addli r0, zero, tls_ie(foo)
24006 auli r0, r0, tls_ie_ha16(foo)
24007 addli r0, r0, tls_ie_lo16(foo)'
24008 tls_first_major=2
24009 tls_first_minor=22
24010 tls_as_opt="--fatal-warnings"
24011 ;;
24012 tilegx*-*-*)
24013 conftest_s='
24014 .section ".tdata","awT",@progbits
24015 foo: .long 25
24016 .text
24017 shl16insli r0, zero, hw0_last_tls_gd(foo)
24018 shl16insli r0, zero, hw1_last_tls_gd(foo)
24019 shl16insli r0, r0, hw0_tls_gd(foo)
24020 jal __tls_get_addr
24021 shl16insli r0, zero, hw1_last_tls_ie(foo)
24022 shl16insli r0, r0, hw0_tls_ie(foo)'
24023 tls_first_major=2
24024 tls_first_minor=22
24025 tls_as_opt="--fatal-warnings"
24026 ;;
24027 xtensa*-*-*)
24028 conftest_s='
24029 .section ".tdata","awT",@progbits
24030 foo: .long 25
24031 .text
24032 movi a8, foo@TLSFUNC
24033 movi a10, foo@TLSARG
24034 callx8.tls a8, foo@TLSCALL'
24035 tls_first_major=2
24036 tls_first_minor=19
24037 ;;
24038 esac
24039 set_have_as_tls=no
24040 if test "x$enable_tls" = xno ; then
24041 : # TLS explicitly disabled.
24042 elif test "x$enable_tls" = xyes ; then
24043 set_have_as_tls=yes # TLS explicitly enabled.
24044 elif test -z "$tls_first_major"; then
24045 : # If we don't have a check, assume no support.
24046 else
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24048 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24049 if test "${gcc_cv_as_tls+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 gcc_cv_as_tls=no
24053 if test $in_tree_gas = yes; then
24054 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24055 then gcc_cv_as_tls=yes
24056 fi
24057 elif test x$gcc_cv_as != x; then
24058 $as_echo "$conftest_s" > conftest.s
24059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24065 then
24066 gcc_cv_as_tls=yes
24067 else
24068 echo "configure: failed program was" >&5
24069 cat conftest.s >&5
24070 fi
24071 rm -f conftest.o conftest.s
24072 fi
24073 fi
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24075 $as_echo "$gcc_cv_as_tls" >&6; }
24076 if test $gcc_cv_as_tls = yes; then
24077 set_have_as_tls=yes
24078 fi
24079 fi
24080 if test $set_have_as_tls = yes ; then
24081
24082 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24083
24084 fi
24085
24086 # Target-specific assembler checks.
24087
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24089 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24090 gcc_cv_ld_static_dynamic=no
24091 gcc_cv_ld_static_option='-Bstatic'
24092 gcc_cv_ld_dynamic_option='-Bdynamic'
24093 if test $in_tree_ld = yes ; then
24094 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
24095 gcc_cv_ld_static_dynamic=yes
24096 fi
24097 elif test x$gcc_cv_ld != x; then
24098 # Check if linker supports -Bstatic/-Bdynamic option
24099 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24100 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24101 gcc_cv_ld_static_dynamic=yes
24102 else
24103 case "$target" in
24104 # AIX ld uses -b flags
24105 *-*-aix4.[23]* | *-*-aix[5-9]*)
24106 gcc_cv_ld_static_dynamic=yes
24107 gcc_cv_ld_static_option="-bstatic"
24108 gcc_cv_ld_dynamic_option="-bdynamic"
24109 ;;
24110 # HP-UX ld uses -a flags to select between shared and archive.
24111 *-*-hpux*)
24112 if test x"$gnu_ld" = xno; then
24113 gcc_cv_ld_static_dynamic=yes
24114 gcc_cv_ld_static_option="-aarchive_shared"
24115 gcc_cv_ld_dynamic_option="-adefault"
24116 fi
24117 ;;
24118 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24119 *-*-solaris2*)
24120 gcc_cv_ld_static_dynamic=yes
24121 ;;
24122 esac
24123 fi
24124 fi
24125 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24126
24127 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24128
24129
24130 cat >>confdefs.h <<_ACEOF
24131 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24132 _ACEOF
24133
24134
24135 cat >>confdefs.h <<_ACEOF
24136 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24137 _ACEOF
24138
24139 fi
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24141 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24142
24143 if test x"$demangler_in_ld" = xyes; then
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24145 $as_echo_n "checking linker --demangle support... " >&6; }
24146 gcc_cv_ld_demangle=no
24147 if test $in_tree_ld = yes; then
24148 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 \
24149 gcc_cv_ld_demangle=yes
24150 fi
24151 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24152 # Check if the GNU linker supports --demangle option
24153 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24154 gcc_cv_ld_demangle=yes
24155 fi
24156 fi
24157 if test x"$gcc_cv_ld_demangle" = xyes; then
24158
24159 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24160
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24163 $as_echo "$gcc_cv_ld_demangle" >&6; }
24164 fi
24165
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24167 $as_echo_n "checking linker plugin support... " >&6; }
24168 gcc_cv_lto_plugin=0
24169 if test -f liblto_plugin.la; then
24170 save_ld_ver="$ld_ver"
24171 save_ld_vers_major="$ld_vers_major"
24172 save_ld_vers_minor="$ld_vers_minor"
24173 save_ld_is_gold="$ld_is_gold"
24174
24175 ld_is_gold=no
24176
24177 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24178 ld_ver="GNU ld"
24179 # FIXME: ld_is_gold?
24180 ld_vers_major="$gcc_cv_gld_major_version"
24181 ld_vers_minor="$gcc_cv_gld_minor_version"
24182 else
24183 # Determine plugin linker version.
24184 # FIXME: Partial duplicate from above, generalize.
24185 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24186 if echo "$ld_ver" | grep GNU > /dev/null; then
24187 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24188 ld_is_gold=yes
24189 ld_vers=`echo $ld_ver | sed -n \
24190 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24191 else
24192 ld_vers=`echo $ld_ver | sed -n \
24193 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24194 fi
24195 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24196 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24197 fi
24198 fi
24199
24200 # Determine plugin support.
24201 if echo "$ld_ver" | grep GNU > /dev/null; then
24202 # Require GNU ld or gold 2.21+ for plugin support by default.
24203 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24204 gcc_cv_lto_plugin=2
24205 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24206 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24207 gcc_cv_lto_plugin=1
24208 fi
24209 fi
24210
24211 ld_ver="$save_ld_ver"
24212 ld_vers_major="$save_ld_vers_major"
24213 ld_vers_minor="$save_ld_vers_minor"
24214 ld_is_gold="$save_ld_is_gold"
24215 fi
24216
24217 cat >>confdefs.h <<_ACEOF
24218 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24219 _ACEOF
24220
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24222 $as_echo "$gcc_cv_lto_plugin" >&6; }
24223
24224 case "$target" in
24225 aarch64*-*-*)
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24227 $as_echo_n "checking assembler for -mabi option... " >&6; }
24228 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24230 else
24231 gcc_cv_as_aarch64_mabi=no
24232 if test x$gcc_cv_as != x; then
24233 $as_echo '.text' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_aarch64_mabi=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24245 fi
24246 rm -f conftest.o conftest.s
24247 fi
24248 fi
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24250 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24251
24252 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24253
24254 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24255
24256 else
24257 if test x$with_abi = xilp32; then
24258 as_fn_error "Assembler does not support -mabi=ilp32.\
24259 Upgrade the Assembler." "$LINENO" 5
24260 fi
24261 if test x"$with_multilib_list" = xdefault; then
24262 TM_MULTILIB_CONFIG=lp64
24263 else
24264 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24265 for aarch64_multilib in ${aarch64_multilibs}; do
24266 case ${aarch64_multilib} in
24267 ilp32)
24268 as_fn_error "Assembler does not support -mabi=ilp32.\
24269 Upgrade the Assembler." "$LINENO" 5
24270 ;;
24271 *)
24272 ;;
24273 esac
24274 done
24275 fi
24276 fi
24277 # Check if we have binutils support for relocations types needed by -fpic
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24279 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24280 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24282 else
24283 gcc_cv_as_aarch64_picreloc=no
24284 if test x$gcc_cv_as != x; then
24285 $as_echo '
24286 .text
24287 ldr x0, [x2, #:gotpage_lo15:globalsym]
24288 ' > conftest.s
24289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24295 then
24296 gcc_cv_as_aarch64_picreloc=yes
24297 else
24298 echo "configure: failed program was" >&5
24299 cat conftest.s >&5
24300 fi
24301 rm -f conftest.o conftest.s
24302 fi
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24305 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24306 if test $gcc_cv_as_aarch64_picreloc = yes; then
24307
24308 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24309
24310 fi
24311 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24312 # Check whether --enable-fix-cortex-a53-835769 was given.
24313 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24314 enableval=$enable_fix_cortex_a53_835769;
24315 case $enableval in
24316 yes)
24317 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24318 ;;
24319 no)
24320 ;;
24321 *)
24322 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24323 Valid choices are 'yes' and 'no'." "$LINENO" 5
24324 ;;
24325
24326 esac
24327
24328 fi
24329
24330 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24331 # Check whether --enable-fix-cortex-a53-843419 was given.
24332 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24333 enableval=$enable_fix_cortex_a53_843419;
24334 case $enableval in
24335 yes)
24336 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24337 ;;
24338 no)
24339 ;;
24340 *)
24341 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24342 Valid choices are 'yes' and 'no'." "$LINENO" 5
24343 ;;
24344
24345 esac
24346
24347 fi
24348
24349 ;;
24350
24351 # All TARGET_ABI_OSF targets.
24352 alpha*-*-linux* | alpha*-*-*bsd*)
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24354 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24355 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24356 $as_echo_n "(cached) " >&6
24357 else
24358 gcc_cv_as_alpha_explicit_relocs=no
24359 if test $in_tree_gas = yes; then
24360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24361 then gcc_cv_as_alpha_explicit_relocs=yes
24362 fi
24363 elif test x$gcc_cv_as != x; then
24364 $as_echo ' .set nomacro
24365 .text
24366 extbl $3, $2, $3 !lituse_bytoff!1
24367 ldq $2, a($29) !literal!1
24368 ldq $4, b($29) !literal!2
24369 ldq_u $3, 0($2) !lituse_base!1
24370 ldq $27, f($29) !literal!5
24371 jsr $26, ($27), f !lituse_jsr!5
24372 ldah $29, 0($26) !gpdisp!3
24373 lda $0, c($29) !gprel
24374 ldah $1, d($29) !gprelhigh
24375 lda $1, d($1) !gprellow
24376 lda $29, 0($29) !gpdisp!3' > conftest.s
24377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24383 then
24384 gcc_cv_as_alpha_explicit_relocs=yes
24385 else
24386 echo "configure: failed program was" >&5
24387 cat conftest.s >&5
24388 fi
24389 rm -f conftest.o conftest.s
24390 fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24393 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24394 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24395
24396 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24397
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24400 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24401 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24403 else
24404 gcc_cv_as_alpha_jsrdirect_relocs=no
24405 if test $in_tree_gas = yes; then
24406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24407 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24408 fi
24409 elif test x$gcc_cv_as != x; then
24410 $as_echo ' .set nomacro
24411 .text
24412 ldq $27, a($29) !literal!1
24413 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24417 ac_status=$?
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24420 then
24421 gcc_cv_as_alpha_jsrdirect_relocs=yes
24422 else
24423 echo "configure: failed program was" >&5
24424 cat conftest.s >&5
24425 fi
24426 rm -f conftest.o conftest.s
24427 fi
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24430 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24431 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24432
24433 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24434
24435 fi
24436 ;;
24437
24438 avr-*-*)
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24440 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24441 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 gcc_cv_as_avr_mlink_relax=no
24445 if test x$gcc_cv_as != x; then
24446 $as_echo '.text' > conftest.s
24447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24453 then
24454 gcc_cv_as_avr_mlink_relax=yes
24455 else
24456 echo "configure: failed program was" >&5
24457 cat conftest.s >&5
24458 fi
24459 rm -f conftest.o conftest.s
24460 fi
24461 fi
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24463 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24464 if test $gcc_cv_as_avr_mlink_relax = yes; then
24465
24466 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24467
24468 fi
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24471 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24472 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24474 else
24475 gcc_cv_as_avr_mrmw=no
24476 if test x$gcc_cv_as != x; then
24477 $as_echo '.text' > conftest.s
24478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24483 test $ac_status = 0; }; }
24484 then
24485 gcc_cv_as_avr_mrmw=yes
24486 else
24487 echo "configure: failed program was" >&5
24488 cat conftest.s >&5
24489 fi
24490 rm -f conftest.o conftest.s
24491 fi
24492 fi
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24494 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24495 if test $gcc_cv_as_avr_mrmw = yes; then
24496
24497 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24498
24499 fi
24500 ;;
24501
24502 cris-*-*)
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24504 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24505 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 gcc_cv_as_cris_no_mul_bug=no
24509 if test $in_tree_gas = yes; then
24510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24511 then gcc_cv_as_cris_no_mul_bug=yes
24512 fi
24513 elif test x$gcc_cv_as != x; then
24514 $as_echo '.text' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24521 then
24522 gcc_cv_as_cris_no_mul_bug=yes
24523 else
24524 echo "configure: failed program was" >&5
24525 cat conftest.s >&5
24526 fi
24527 rm -f conftest.o conftest.s
24528 fi
24529 fi
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24531 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24532 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24533
24534 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24535
24536 fi
24537 ;;
24538
24539 sparc*-*-*)
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24541 $as_echo_n "checking assembler for .register... " >&6; }
24542 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24544 else
24545 gcc_cv_as_sparc_register_op=no
24546 if test x$gcc_cv_as != x; then
24547 $as_echo '.register %g2, #scratch' > conftest.s
24548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24554 then
24555 gcc_cv_as_sparc_register_op=yes
24556 else
24557 echo "configure: failed program was" >&5
24558 cat conftest.s >&5
24559 fi
24560 rm -f conftest.o conftest.s
24561 fi
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24564 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24565 if test $gcc_cv_as_sparc_register_op = yes; then
24566
24567 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24568
24569 fi
24570
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24572 $as_echo_n "checking assembler for #nobits... " >&6; }
24573 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24574 $as_echo_n "(cached) " >&6
24575 else
24576 gcc_cv_as_sparc_nobits=no
24577 if test x$gcc_cv_as != x; then
24578 $as_echo '.section "nobits",#alloc,#write,#nobits
24579 .section "progbits",#alloc,#write,#progbits' > conftest.s
24580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then
24587 gcc_cv_as_sparc_nobits=yes
24588 else
24589 echo "configure: failed program was" >&5
24590 cat conftest.s >&5
24591 fi
24592 rm -f conftest.o conftest.s
24593 fi
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24596 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24597
24598
24599 cat >>confdefs.h <<_ACEOF
24600 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24601 _ACEOF
24602
24603
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24605 $as_echo_n "checking assembler for -relax option... " >&6; }
24606 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24608 else
24609 gcc_cv_as_sparc_relax=no
24610 if test x$gcc_cv_as != x; then
24611 $as_echo '.text' > conftest.s
24612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24618 then
24619 gcc_cv_as_sparc_relax=yes
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_sparc_relax" >&5
24628 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24629 if test $gcc_cv_as_sparc_relax = yes; then
24630
24631 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24632
24633 fi
24634
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24636 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24637 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24639 else
24640 gcc_cv_as_sparc_gotdata_op=no
24641 if test x$gcc_cv_as != x; then
24642 $as_echo '.text
24643 .align 4
24644 foo:
24645 nop
24646 bar:
24647 sethi %gdop_hix22(foo), %g1
24648 xor %g1, %gdop_lox10(foo), %g1
24649 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
24658 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24659 if test x$gcc_cv_objdump != x; then
24660 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24661 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24662 gcc_cv_as_sparc_gotdata_op=no
24663 else
24664 gcc_cv_as_sparc_gotdata_op=yes
24665 fi
24666 fi
24667 fi
24668 rm -f conftest
24669 else
24670 echo "configure: failed program was" >&5
24671 cat conftest.s >&5
24672 fi
24673 rm -f conftest.o conftest.s
24674 fi
24675 fi
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24677 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24678 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24679
24680 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24681
24682 fi
24683
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24685 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24686 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_sparc_ua_pcrel=no
24690 if test x$gcc_cv_as != x; then
24691 $as_echo '.text
24692 foo:
24693 nop
24694 .data
24695 .align 4
24696 .byte 0
24697 .uaword %r_disp32(foo)' > conftest.s
24698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24700 (eval $ac_try) 2>&5
24701 ac_status=$?
24702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24703 test $ac_status = 0; }; }
24704 then
24705 if test x$gcc_cv_ld != x \
24706 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24707 gcc_cv_as_sparc_ua_pcrel=yes
24708 fi
24709 rm -f conftest
24710 else
24711 echo "configure: failed program was" >&5
24712 cat conftest.s >&5
24713 fi
24714 rm -f conftest.o conftest.s
24715 fi
24716 fi
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24718 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24719 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24720
24721 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24722
24723
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24725 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24726 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24727 $as_echo_n "(cached) " >&6
24728 else
24729 gcc_cv_as_sparc_ua_pcrel_hidden=no
24730 if test x$gcc_cv_as != x; then
24731 $as_echo '.data
24732 .align 4
24733 .byte 0x31
24734 .uaword %r_disp32(foo)
24735 .byte 0x32, 0x33, 0x34
24736 .global foo
24737 .hidden foo
24738 foo:
24739 .skip 4' > conftest.s
24740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24745 test $ac_status = 0; }; }
24746 then
24747 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24748 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24749 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24750 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24751 if $gcc_cv_objdump -R conftest 2> /dev/null \
24752 | grep 'DISP32' > /dev/null 2>&1; then
24753 :
24754 else
24755 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24756 fi
24757 fi
24758 rm -f conftest
24759 else
24760 echo "configure: failed program was" >&5
24761 cat conftest.s >&5
24762 fi
24763 rm -f conftest.o conftest.s
24764 fi
24765 fi
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24767 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24768 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24769
24770 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24771
24772 fi
24773
24774 fi # unaligned pcrel relocs
24775
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24777 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24778 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24780 else
24781 gcc_cv_as_sparc_offsetable_lo10=no
24782 if test x$gcc_cv_as != x; then
24783 $as_echo '.text
24784 or %g1, %lo(ab) + 12, %g1
24785 or %g1, %lo(ab + 12), %g1' > conftest.s
24786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24792 then
24793 if test x$gcc_cv_objdump != x \
24794 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24795 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24796 gcc_cv_as_sparc_offsetable_lo10=yes
24797 fi
24798 else
24799 echo "configure: failed program was" >&5
24800 cat conftest.s >&5
24801 fi
24802 rm -f conftest.o conftest.s
24803 fi
24804 fi
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24806 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24807 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24808
24809 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24810
24811 fi
24812
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24814 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24815 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 gcc_cv_as_sparc_fmaf=no
24819 if test x$gcc_cv_as != x; then
24820 $as_echo '.text
24821 .register %g2, #scratch
24822 .register %g3, #scratch
24823 .align 4
24824 fmaddd %f0, %f2, %f4, %f6
24825 addxccc %g1, %g2, %g3
24826 fsrl32 %f2, %f4, %f8
24827 fnaddd %f10, %f12, %f14' > conftest.s
24828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24834 then
24835 gcc_cv_as_sparc_fmaf=yes
24836 else
24837 echo "configure: failed program was" >&5
24838 cat conftest.s >&5
24839 fi
24840 rm -f conftest.o conftest.s
24841 fi
24842 fi
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24844 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24845 if test $gcc_cv_as_sparc_fmaf = yes; then
24846
24847 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24848
24849 fi
24850
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24852 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24853 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24855 else
24856 gcc_cv_as_sparc_sparc4=no
24857 if test x$gcc_cv_as != x; then
24858 $as_echo '.text
24859 .register %g2, #scratch
24860 .register %g3, #scratch
24861 .align 4
24862 cxbe %g2, %g3, 1f
24863 1: cwbneg %g2, %g3, 1f
24864 1: sha1
24865 md5
24866 aes_kexpand0 %f4, %f6, %f8
24867 des_round %f38, %f40, %f42, %f44
24868 camellia_f %f54, %f56, %f58, %f60
24869 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24872 (eval $ac_try) 2>&5
24873 ac_status=$?
24874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24875 test $ac_status = 0; }; }
24876 then
24877 gcc_cv_as_sparc_sparc4=yes
24878 else
24879 echo "configure: failed program was" >&5
24880 cat conftest.s >&5
24881 fi
24882 rm -f conftest.o conftest.s
24883 fi
24884 fi
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24886 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24887 if test $gcc_cv_as_sparc_sparc4 = yes; then
24888
24889 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24890
24891 fi
24892
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24894 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24895 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24898 gcc_cv_as_sparc_leon=no
24899 if test x$gcc_cv_as != x; then
24900 $as_echo '.text
24901 .register %g2, #scratch
24902 .register %g3, #scratch
24903 .align 4
24904 smac %g2, %g3, %g1
24905 umac %g2, %g3, %g1
24906 casa [%g2] 0xb, %g3, %g1' > conftest.s
24907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24912 test $ac_status = 0; }; }
24913 then
24914 gcc_cv_as_sparc_leon=yes
24915 else
24916 echo "configure: failed program was" >&5
24917 cat conftest.s >&5
24918 fi
24919 rm -f conftest.o conftest.s
24920 fi
24921 fi
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24923 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24924 if test $gcc_cv_as_sparc_leon = yes; then
24925
24926 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24927
24928 fi
24929 ;;
24930
24931 i[34567]86-*-* | x86_64-*-*)
24932 case $target_os in
24933 cygwin*)
24934 # Full C++ conformance when using a shared libstdc++-v3 requires some
24935 # support from the Cygwin DLL, which in more recent versions exports
24936 # wrappers to aid in interposing and redirecting operators new, delete,
24937 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24938 # are configuring for a version of Cygwin that exports the wrappers.
24939 if test x$host = x$target && test x$host_cpu = xi686; then
24940 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24941 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24942 gcc_ac_cygwin_dll_wrappers=yes
24943 else
24944 gcc_ac_cygwin_dll_wrappers=no
24945 fi
24946
24947 else
24948 # Can't check presence of libc functions during cross-compile, so
24949 # we just have to assume we're building for an up-to-date target.
24950 gcc_ac_cygwin_dll_wrappers=yes
24951 fi
24952
24953 cat >>confdefs.h <<_ACEOF
24954 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24955 _ACEOF
24956
24957 esac
24958 case $target_os in
24959 cygwin* | pe | mingw32* | interix*)
24960 # Recent binutils allows the three-operand form of ".comm" on PE. This
24961 # definition is used unconditionally to initialise the default state of
24962 # the target option variable that governs usage of the feature.
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24964 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24965 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24967 else
24968 gcc_cv_as_comm_has_align=no
24969 if test $in_tree_gas = yes; then
24970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24971 then gcc_cv_as_comm_has_align=yes
24972 fi
24973 elif test x$gcc_cv_as != x; then
24974 $as_echo '.comm foo,1,32' > conftest.s
24975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24981 then
24982 gcc_cv_as_comm_has_align=yes
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24986 fi
24987 rm -f conftest.o conftest.s
24988 fi
24989 fi
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24991 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24992
24993
24994 cat >>confdefs.h <<_ACEOF
24995 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24996 _ACEOF
24997
24998 # Used for DWARF 2 in PE
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25000 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25001 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25003 else
25004 gcc_cv_as_ix86_pe_secrel32=no
25005 if test $in_tree_gas = yes; then
25006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25007 then gcc_cv_as_ix86_pe_secrel32=yes
25008 fi
25009 elif test x$gcc_cv_as != x; then
25010 $as_echo '.text
25011 foo: nop
25012 .data
25013 .secrel32 foo' > 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 if test x$gcc_cv_ld != x \
25022 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25023 gcc_cv_as_ix86_pe_secrel32=yes
25024 fi
25025 rm -f conftest
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25029 fi
25030 rm -f conftest.o conftest.s
25031 fi
25032 fi
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25034 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25035 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25036
25037 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25038
25039 fi
25040 # Test if the assembler supports the extended form of the .section
25041 # directive that specifies section alignment. LTO support uses this,
25042 # but normally only after installation, so we warn but don't fail the
25043 # configure if LTO is enabled but the assembler does not support it.
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25045 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25046 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_section_has_align=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25052 then gcc_cv_as_section_has_align=yes
25053 fi
25054 elif test x$gcc_cv_as != x; then
25055 $as_echo '.section lto_test,"dr0"' > conftest.s
25056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25062 then
25063 gcc_cv_as_section_has_align=yes
25064 else
25065 echo "configure: failed program was" >&5
25066 cat conftest.s >&5
25067 fi
25068 rm -f conftest.o conftest.s
25069 fi
25070 fi
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25072 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25073
25074 if test x$gcc_cv_as_section_has_align != xyes; then
25075 case ",$enable_languages," in
25076 *,lto,*)
25077 { $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
25078 $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;}
25079 ;;
25080 esac
25081 fi
25082 ;;
25083 esac
25084
25085 # Test if the assembler supports the section flag 'e' for specifying
25086 # an excluded section.
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25088 $as_echo_n "checking assembler for .section with e... " >&6; }
25089 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_section_has_e=no
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25095 then gcc_cv_as_section_has_e=yes
25096 fi
25097 elif test x$gcc_cv_as != x; then
25098 $as_echo '.section foo1,"e"
25099 .byte 0,0,0,0' > conftest.s
25100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25106 then
25107 gcc_cv_as_section_has_e=yes
25108 else
25109 echo "configure: failed program was" >&5
25110 cat conftest.s >&5
25111 fi
25112 rm -f conftest.o conftest.s
25113 fi
25114 fi
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25116 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25117
25118
25119 cat >>confdefs.h <<_ACEOF
25120 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25121 _ACEOF
25122
25123
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25125 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25126 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128 else
25129 gcc_cv_as_ix86_filds=no
25130 if test x$gcc_cv_as != x; then
25131 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25138 then
25139 gcc_cv_as_ix86_filds=yes
25140 else
25141 echo "configure: failed program was" >&5
25142 cat conftest.s >&5
25143 fi
25144 rm -f conftest.o conftest.s
25145 fi
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25148 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25149 if test $gcc_cv_as_ix86_filds = yes; then
25150
25151 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25152
25153 fi
25154
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25156 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25157 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25159 else
25160 gcc_cv_as_ix86_fildq=no
25161 if test x$gcc_cv_as != x; then
25162 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 gcc_cv_as_ix86_fildq=yes
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_fildq" >&5
25179 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25180 if test $gcc_cv_as_ix86_fildq = yes; then
25181
25182 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25183
25184 fi
25185
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25187 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25188 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25190 else
25191 gcc_cv_as_ix86_cmov_sun_syntax=no
25192 if test x$gcc_cv_as != x; then
25193 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25199 test $ac_status = 0; }; }
25200 then
25201 gcc_cv_as_ix86_cmov_sun_syntax=yes
25202 else
25203 echo "configure: failed program was" >&5
25204 cat conftest.s >&5
25205 fi
25206 rm -f conftest.o conftest.s
25207 fi
25208 fi
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25210 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25211 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25212
25213 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25214
25215 fi
25216
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25218 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25219 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25221 else
25222 gcc_cv_as_ix86_ffreep=no
25223 if test x$gcc_cv_as != x; then
25224 $as_echo 'ffreep %st(1)' > conftest.s
25225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25227 (eval $ac_try) 2>&5
25228 ac_status=$?
25229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25230 test $ac_status = 0; }; }
25231 then
25232 gcc_cv_as_ix86_ffreep=yes
25233 else
25234 echo "configure: failed program was" >&5
25235 cat conftest.s >&5
25236 fi
25237 rm -f conftest.o conftest.s
25238 fi
25239 fi
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25241 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25242 if test $gcc_cv_as_ix86_ffreep = yes; then
25243
25244 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25245
25246 fi
25247
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25249 $as_echo_n "checking assembler for .quad directive... " >&6; }
25250 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25251 $as_echo_n "(cached) " >&6
25252 else
25253 gcc_cv_as_ix86_quad=no
25254 if test x$gcc_cv_as != x; then
25255 $as_echo '.quad 0' > conftest.s
25256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25262 then
25263 gcc_cv_as_ix86_quad=yes
25264 else
25265 echo "configure: failed program was" >&5
25266 cat conftest.s >&5
25267 fi
25268 rm -f conftest.o conftest.s
25269 fi
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25272 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25273 if test $gcc_cv_as_ix86_quad = yes; then
25274
25275 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25276
25277 fi
25278
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25280 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25281 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25283 else
25284 gcc_cv_as_ix86_sahf=no
25285 if test x$gcc_cv_as != x; then
25286 $as_echo '.code64
25287 sahf' > conftest.s
25288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25294 then
25295 gcc_cv_as_ix86_sahf=yes
25296 else
25297 echo "configure: failed program was" >&5
25298 cat conftest.s >&5
25299 fi
25300 rm -f conftest.o conftest.s
25301 fi
25302 fi
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25304 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25305 if test $gcc_cv_as_ix86_sahf = yes; then
25306
25307 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25308
25309 fi
25310
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25312 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25313 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_ix86_interunit_movq=no
25317 if test x$gcc_cv_as != x; then
25318 $as_echo '.code64
25319 movq %mm0, %rax
25320 movq %rax, %xmm0' > conftest.s
25321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25327 then
25328 gcc_cv_as_ix86_interunit_movq=yes
25329 else
25330 echo "configure: failed program was" >&5
25331 cat conftest.s >&5
25332 fi
25333 rm -f conftest.o conftest.s
25334 fi
25335 fi
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25337 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25338
25339
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25342 _ACEOF
25343
25344
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25346 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25347 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_ix86_hle=no
25351 if test x$gcc_cv_as != x; then
25352 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25355 (eval $ac_try) 2>&5
25356 ac_status=$?
25357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25358 test $ac_status = 0; }; }
25359 then
25360 gcc_cv_as_ix86_hle=yes
25361 else
25362 echo "configure: failed program was" >&5
25363 cat conftest.s >&5
25364 fi
25365 rm -f conftest.o conftest.s
25366 fi
25367 fi
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25369 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25370 if test $gcc_cv_as_ix86_hle = yes; then
25371
25372 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25373
25374 fi
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25377 $as_echo_n "checking assembler for swap suffix... " >&6; }
25378 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25379 $as_echo_n "(cached) " >&6
25380 else
25381 gcc_cv_as_ix86_swap=no
25382 if test x$gcc_cv_as != x; then
25383 $as_echo 'movl.s %esp, %ebp' > conftest.s
25384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25390 then
25391 gcc_cv_as_ix86_swap=yes
25392 else
25393 echo "configure: failed program was" >&5
25394 cat conftest.s >&5
25395 fi
25396 rm -f conftest.o conftest.s
25397 fi
25398 fi
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25400 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25401 if test $gcc_cv_as_ix86_swap = yes; then
25402
25403 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25404
25405 fi
25406
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25408 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25409 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25410 $as_echo_n "(cached) " >&6
25411 else
25412 gcc_cv_as_ix86_diff_sect_delta=no
25413 if test x$gcc_cv_as != x; then
25414 $as_echo '.section .rodata
25415 .L1:
25416 .long .L2-.L1
25417 .long .L3-.L1
25418 .text
25419 .L3: nop
25420 .L2: nop' > conftest.s
25421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25427 then
25428 gcc_cv_as_ix86_diff_sect_delta=yes
25429 else
25430 echo "configure: failed program was" >&5
25431 cat conftest.s >&5
25432 fi
25433 rm -f conftest.o conftest.s
25434 fi
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25437 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25438 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25439
25440 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25441
25442 fi
25443
25444 # These two are used unconditionally by i386.[ch]; it is to be defined
25445 # to 1 if the feature is present, 0 otherwise.
25446 as_ix86_gotoff_in_data_opt=
25447 if test x$gas = xyes; then
25448 as_ix86_gotoff_in_data_opt="--32"
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25451 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25452 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25453 $as_echo_n "(cached) " >&6
25454 else
25455 gcc_cv_as_ix86_gotoff_in_data=no
25456 if test $in_tree_gas = yes; then
25457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25458 then gcc_cv_as_ix86_gotoff_in_data=yes
25459 fi
25460 elif test x$gcc_cv_as != x; then
25461 $as_echo ' .text
25462 .L0:
25463 nop
25464 .data
25465 .long .L0@GOTOFF' > conftest.s
25466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25471 test $ac_status = 0; }; }
25472 then
25473 gcc_cv_as_ix86_gotoff_in_data=yes
25474 else
25475 echo "configure: failed program was" >&5
25476 cat conftest.s >&5
25477 fi
25478 rm -f conftest.o conftest.s
25479 fi
25480 fi
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25482 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25483
25484
25485 cat >>confdefs.h <<_ACEOF
25486 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25487 _ACEOF
25488
25489
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25491 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25492 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25494 else
25495 gcc_cv_as_ix86_rep_lock_prefix=no
25496 if test x$gcc_cv_as != x; then
25497 $as_echo 'rep movsl
25498 rep ret
25499 rep nop
25500 rep bsf %ecx, %eax
25501 rep bsr %ecx, %eax
25502 lock addl %edi, (%eax,%esi)
25503 lock orl $0, (%esp)' > conftest.s
25504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25510 then
25511 gcc_cv_as_ix86_rep_lock_prefix=yes
25512 else
25513 echo "configure: failed program was" >&5
25514 cat conftest.s >&5
25515 fi
25516 rm -f conftest.o conftest.s
25517 fi
25518 fi
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25520 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25521 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25522
25523 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25524
25525 fi
25526
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25528 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25529 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
25531 else
25532 gcc_cv_as_ix86_ud2=no
25533 if test x$gcc_cv_as != x; then
25534 $as_echo 'ud2' > conftest.s
25535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25541 then
25542 gcc_cv_as_ix86_ud2=yes
25543 else
25544 echo "configure: failed program was" >&5
25545 cat conftest.s >&5
25546 fi
25547 rm -f conftest.o conftest.s
25548 fi
25549 fi
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25551 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25552 if test $gcc_cv_as_ix86_ud2 = yes; then
25553
25554 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25555
25556 fi
25557
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25559 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25560 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_ix86_tlsgdplt=no
25564 if test x$gcc_cv_as != x; then
25565 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568 (eval $ac_try) 2>&5
25569 ac_status=$?
25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571 test $ac_status = 0; }; }
25572 then
25573 if test x$gcc_cv_ld != x \
25574 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25575 gcc_cv_as_ix86_tlsgdplt=yes
25576 fi
25577 rm -f conftest
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25581 fi
25582 rm -f conftest.o conftest.s
25583 fi
25584 fi
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25586 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25587 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25588
25589 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25590
25591 fi
25592
25593 conftest_s='
25594 .section .tdata,"aw'$tls_section_flag'",@progbits
25595 tls_ld:
25596 .section .text,"ax",@progbits
25597 call tls_ld@tlsldmplt'
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25599 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25600 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25601 $as_echo_n "(cached) " >&6
25602 else
25603 gcc_cv_as_ix86_tlsldmplt=no
25604 if test x$gcc_cv_as != x; then
25605 $as_echo "$conftest_s" > conftest.s
25606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25612 then
25613 if test x$gcc_cv_ld != x \
25614 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25615 gcc_cv_as_ix86_tlsldmplt=yes
25616 fi
25617 rm -f conftest
25618 else
25619 echo "configure: failed program was" >&5
25620 cat conftest.s >&5
25621 fi
25622 rm -f conftest.o conftest.s
25623 fi
25624 fi
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25626 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25627
25628
25629 cat >>confdefs.h <<_ACEOF
25630 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25631 _ACEOF
25632
25633
25634 # Enforce 32-bit output with gas and gld.
25635 if test x$gas = xyes; then
25636 as_ix86_tls_ldm_opt="--32"
25637 fi
25638 if echo "$ld_ver" | grep GNU > /dev/null; then
25639 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25640 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25641 else
25642 ld_ix86_tls_ldm_opt="-melf_i386"
25643 fi
25644 fi
25645 conftest_s='
25646 .section .text,"ax",@progbits
25647 .globl _start
25648 .type _start, @function
25649 _start:
25650 leal value@tlsldm(%ebx), %eax
25651 call ___tls_get_addr@plt
25652
25653 .section .tdata,"aw'$tls_section_flag'",@progbits
25654 .type value, @object
25655 value:'
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25657 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25658 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661 gcc_cv_as_ix86_tlsldm=no
25662 if test x$gcc_cv_as != x; then
25663 $as_echo "$conftest_s" > conftest.s
25664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25670 then
25671 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25672 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25673 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25674 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25675 gcc_cv_as_ix86_tlsldm=yes
25676 fi
25677 fi
25678 rm -f conftest
25679 else
25680 echo "configure: failed program was" >&5
25681 cat conftest.s >&5
25682 fi
25683 rm -f conftest.o conftest.s
25684 fi
25685 fi
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25687 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25688
25689
25690 cat >>confdefs.h <<_ACEOF
25691 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25692 _ACEOF
25693
25694
25695 ;;
25696
25697 ia64*-*-*)
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25699 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25700 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25702 else
25703 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25704 if test $in_tree_gas = yes; then
25705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25706 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25707 fi
25708 elif test x$gcc_cv_as != x; then
25709 $as_echo ' .text
25710 addl r15 = @ltoffx(x#), gp
25711 ;;
25712 ld8.mov r16 = [r15], x#' > conftest.s
25713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25718 test $ac_status = 0; }; }
25719 then
25720 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25721 else
25722 echo "configure: failed program was" >&5
25723 cat conftest.s >&5
25724 fi
25725 rm -f conftest.o conftest.s
25726 fi
25727 fi
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25729 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25730 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25731
25732 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25733
25734 fi
25735
25736 ;;
25737
25738 powerpc*-*-*)
25739 case $target in
25740 *-*-aix*) conftest_s=' .machine "pwr5"
25741 .csect .text[PR]
25742 mfcr 3,128';;
25743 *-*-darwin*)
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25745 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25746 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25747 $as_echo_n "(cached) " >&6
25748 else
25749 gcc_cv_as_machine_directive=no
25750 if test x$gcc_cv_as != x; then
25751 $as_echo ' .machine ppc7400' > conftest.s
25752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25758 then
25759 gcc_cv_as_machine_directive=yes
25760 else
25761 echo "configure: failed program was" >&5
25762 cat conftest.s >&5
25763 fi
25764 rm -f conftest.o conftest.s
25765 fi
25766 fi
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25768 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25769
25770 if test x$gcc_cv_as_machine_directive != xyes; then
25771 echo "*** This target requires an assembler supporting \".machine\"" >&2
25772 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25773 test x$build = x$target && exit 1
25774 fi
25775 conftest_s=' .text
25776 mfcr r3,128';;
25777 *) conftest_s=' .machine power4
25778 .text
25779 mfcr 3,128';;
25780 esac
25781
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25783 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25784 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25785 $as_echo_n "(cached) " >&6
25786 else
25787 gcc_cv_as_powerpc_mfcrf=no
25788 if test $in_tree_gas = yes; then
25789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25790 then gcc_cv_as_powerpc_mfcrf=yes
25791 fi
25792 elif test x$gcc_cv_as != x; then
25793 $as_echo "$conftest_s" > conftest.s
25794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25797 ac_status=$?
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; }
25800 then
25801 gcc_cv_as_powerpc_mfcrf=yes
25802 else
25803 echo "configure: failed program was" >&5
25804 cat conftest.s >&5
25805 fi
25806 rm -f conftest.o conftest.s
25807 fi
25808 fi
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25810 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25811 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25812
25813 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25814
25815 fi
25816
25817 case $target in
25818 *-*-aix*) conftest_s=' .machine "pwr5"
25819 .csect .text[PR]
25820 popcntb 3,3';;
25821 *) conftest_s=' .machine power5
25822 .text
25823 popcntb 3,3';;
25824 esac
25825
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25827 $as_echo_n "checking assembler for popcntb support... " >&6; }
25828 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25830 else
25831 gcc_cv_as_powerpc_popcntb=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25834 then gcc_cv_as_powerpc_popcntb=yes
25835 fi
25836 elif test x$gcc_cv_as != x; then
25837 $as_echo "$conftest_s" > conftest.s
25838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25844 then
25845 gcc_cv_as_powerpc_popcntb=yes
25846 else
25847 echo "configure: failed program was" >&5
25848 cat conftest.s >&5
25849 fi
25850 rm -f conftest.o conftest.s
25851 fi
25852 fi
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25854 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25855 if test $gcc_cv_as_powerpc_popcntb = yes; then
25856
25857 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25858
25859 fi
25860
25861 case $target in
25862 *-*-aix*) conftest_s=' .machine "pwr5x"
25863 .csect .text[PR]
25864 frin 1,1';;
25865 *) conftest_s=' .machine power5
25866 .text
25867 frin 1,1';;
25868 esac
25869
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25871 $as_echo_n "checking assembler for fp round support... " >&6; }
25872 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25874 else
25875 gcc_cv_as_powerpc_fprnd=no
25876 if test $in_tree_gas = yes; then
25877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25878 then gcc_cv_as_powerpc_fprnd=yes
25879 fi
25880 elif test x$gcc_cv_as != x; then
25881 $as_echo "$conftest_s" > conftest.s
25882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25888 then
25889 gcc_cv_as_powerpc_fprnd=yes
25890 else
25891 echo "configure: failed program was" >&5
25892 cat conftest.s >&5
25893 fi
25894 rm -f conftest.o conftest.s
25895 fi
25896 fi
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25898 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25899 if test $gcc_cv_as_powerpc_fprnd = yes; then
25900
25901 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25902
25903 fi
25904
25905 case $target in
25906 *-*-aix*) conftest_s=' .machine "pwr6"
25907 .csect .text[PR]
25908 mffgpr 1,3';;
25909 *) conftest_s=' .machine power6
25910 .text
25911 mffgpr 1,3';;
25912 esac
25913
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25915 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25916 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25917 $as_echo_n "(cached) " >&6
25918 else
25919 gcc_cv_as_powerpc_mfpgpr=no
25920 if test $in_tree_gas = yes; then
25921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25922 then gcc_cv_as_powerpc_mfpgpr=yes
25923 fi
25924 elif test x$gcc_cv_as != x; then
25925 $as_echo "$conftest_s" > conftest.s
25926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25932 then
25933 gcc_cv_as_powerpc_mfpgpr=yes
25934 else
25935 echo "configure: failed program was" >&5
25936 cat conftest.s >&5
25937 fi
25938 rm -f conftest.o conftest.s
25939 fi
25940 fi
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25942 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25943 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25944
25945 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25946
25947 fi
25948
25949 case $target in
25950 *-*-aix*) conftest_s=' .csect .text[PR]
25951 LCF..0:
25952 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25953 *-*-darwin*)
25954 conftest_s=' .text
25955 LCF0:
25956 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25957 *) conftest_s=' .text
25958 .LCF0:
25959 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25960 esac
25961
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25963 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25964 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 gcc_cv_as_powerpc_rel16=no
25968 if test $in_tree_gas = yes; then
25969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25970 then gcc_cv_as_powerpc_rel16=yes
25971 fi
25972 elif test x$gcc_cv_as != x; then
25973 $as_echo "$conftest_s" > conftest.s
25974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25980 then
25981 gcc_cv_as_powerpc_rel16=yes
25982 else
25983 echo "configure: failed program was" >&5
25984 cat conftest.s >&5
25985 fi
25986 rm -f conftest.o conftest.s
25987 fi
25988 fi
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25990 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25991 if test $gcc_cv_as_powerpc_rel16 = yes; then
25992
25993 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25994
25995 fi
25996
25997 case $target in
25998 *-*-aix*) conftest_s=' .machine "pwr6"
25999 .csect .text[PR]
26000 cmpb 3,4,5';;
26001 *) conftest_s=' .machine power6
26002 .text
26003 cmpb 3,4,5';;
26004 esac
26005
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26007 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26008 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_as_powerpc_cmpb=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26014 then gcc_cv_as_powerpc_cmpb=yes
26015 fi
26016 elif test x$gcc_cv_as != x; then
26017 $as_echo "$conftest_s" > conftest.s
26018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26024 then
26025 gcc_cv_as_powerpc_cmpb=yes
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26029 fi
26030 rm -f conftest.o conftest.s
26031 fi
26032 fi
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26034 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26035 if test $gcc_cv_as_powerpc_cmpb = yes; then
26036
26037 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26038
26039 fi
26040
26041 case $target in
26042 *-*-aix*) conftest_s=' .machine "pwr6"
26043 .csect .text[PR]
26044 dadd 1,2,3';;
26045 *) conftest_s=' .machine power6
26046 .text
26047 dadd 1,2,3';;
26048 esac
26049
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26051 $as_echo_n "checking assembler for decimal float support... " >&6; }
26052 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_as_powerpc_dfp=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26058 then gcc_cv_as_powerpc_dfp=yes
26059 fi
26060 elif test x$gcc_cv_as != x; then
26061 $as_echo "$conftest_s" > conftest.s
26062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26068 then
26069 gcc_cv_as_powerpc_dfp=yes
26070 else
26071 echo "configure: failed program was" >&5
26072 cat conftest.s >&5
26073 fi
26074 rm -f conftest.o conftest.s
26075 fi
26076 fi
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26078 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26079 if test $gcc_cv_as_powerpc_dfp = yes; then
26080
26081 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26082
26083 fi
26084
26085 case $target in
26086 *-*-aix*) conftest_s=' .machine "pwr7"
26087 .csect .text[PR]
26088 lxvd2x 1,2,3';;
26089 *) conftest_s=' .machine power7
26090 .text
26091 lxvd2x 1,2,3';;
26092 esac
26093
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26095 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26096 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26098 else
26099 gcc_cv_as_powerpc_vsx=no
26100 if test $in_tree_gas = yes; then
26101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26102 then gcc_cv_as_powerpc_vsx=yes
26103 fi
26104 elif test x$gcc_cv_as != x; then
26105 $as_echo "$conftest_s" > conftest.s
26106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; }
26112 then
26113 gcc_cv_as_powerpc_vsx=yes
26114 else
26115 echo "configure: failed program was" >&5
26116 cat conftest.s >&5
26117 fi
26118 rm -f conftest.o conftest.s
26119 fi
26120 fi
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26122 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26123 if test $gcc_cv_as_powerpc_vsx = yes; then
26124
26125 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26126
26127 fi
26128
26129 case $target in
26130 *-*-aix*) conftest_s=' .machine "pwr7"
26131 .csect .text[PR]
26132 popcntd 3,3';;
26133 *) conftest_s=' .machine power7
26134 .text
26135 popcntd 3,3';;
26136 esac
26137
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26139 $as_echo_n "checking assembler for popcntd support... " >&6; }
26140 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26142 else
26143 gcc_cv_as_powerpc_popcntd=no
26144 if test $in_tree_gas = yes; then
26145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26146 then gcc_cv_as_powerpc_popcntd=yes
26147 fi
26148 elif test x$gcc_cv_as != x; then
26149 $as_echo "$conftest_s" > conftest.s
26150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26156 then
26157 gcc_cv_as_powerpc_popcntd=yes
26158 else
26159 echo "configure: failed program was" >&5
26160 cat conftest.s >&5
26161 fi
26162 rm -f conftest.o conftest.s
26163 fi
26164 fi
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26166 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26167 if test $gcc_cv_as_powerpc_popcntd = yes; then
26168
26169 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26170
26171 fi
26172
26173 case $target in
26174 *-*-aix*) conftest_s=' .machine "pwr8"
26175 .csect .text[PR]';;
26176 *) conftest_s=' .machine power8
26177 .text';;
26178 esac
26179
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26181 $as_echo_n "checking assembler for power8 support... " >&6; }
26182 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26184 else
26185 gcc_cv_as_powerpc_power8=no
26186 if test $in_tree_gas = yes; then
26187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26188 then gcc_cv_as_powerpc_power8=yes
26189 fi
26190 elif test x$gcc_cv_as != x; then
26191 $as_echo "$conftest_s" > conftest.s
26192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26197 test $ac_status = 0; }; }
26198 then
26199 gcc_cv_as_powerpc_power8=yes
26200 else
26201 echo "configure: failed program was" >&5
26202 cat conftest.s >&5
26203 fi
26204 rm -f conftest.o conftest.s
26205 fi
26206 fi
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26208 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26209 if test $gcc_cv_as_powerpc_power8 = yes; then
26210
26211 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26212
26213 fi
26214
26215 case $target in
26216 *-*-aix*) conftest_s=' .csect .text[PR]
26217 lwsync';;
26218 *) conftest_s=' .text
26219 lwsync';;
26220 esac
26221
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26223 $as_echo_n "checking assembler for lwsync support... " >&6; }
26224 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26225 $as_echo_n "(cached) " >&6
26226 else
26227 gcc_cv_as_powerpc_lwsync=no
26228 if test $in_tree_gas = yes; then
26229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26230 then gcc_cv_as_powerpc_lwsync=yes
26231 fi
26232 elif test x$gcc_cv_as != x; then
26233 $as_echo "$conftest_s" > conftest.s
26234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26240 then
26241 gcc_cv_as_powerpc_lwsync=yes
26242 else
26243 echo "configure: failed program was" >&5
26244 cat conftest.s >&5
26245 fi
26246 rm -f conftest.o conftest.s
26247 fi
26248 fi
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26250 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26251 if test $gcc_cv_as_powerpc_lwsync = yes; then
26252
26253 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26254
26255 fi
26256
26257 case $target in
26258 *-*-aix*) conftest_s=' .machine "476"
26259 .csect .text[PR]
26260 dci 0';;
26261 *) conftest_s=' .machine "476"
26262 .text
26263 dci 0';;
26264 esac
26265
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26267 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26268 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271 gcc_cv_as_powerpc_dci=no
26272 if test $in_tree_gas = yes; then
26273 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26274 then gcc_cv_as_powerpc_dci=yes
26275 fi
26276 elif test x$gcc_cv_as != x; then
26277 $as_echo "$conftest_s" > conftest.s
26278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26284 then
26285 gcc_cv_as_powerpc_dci=yes
26286 else
26287 echo "configure: failed program was" >&5
26288 cat conftest.s >&5
26289 fi
26290 rm -f conftest.o conftest.s
26291 fi
26292 fi
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26294 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26295 if test $gcc_cv_as_powerpc_dci = yes; then
26296
26297 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26298
26299 fi
26300
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26302 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26303 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26305 else
26306 gcc_cv_as_powerpc_gnu_attribute=no
26307 if test $in_tree_gas = yes; then
26308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26309 then gcc_cv_as_powerpc_gnu_attribute=yes
26310 fi
26311 elif test x$gcc_cv_as != x; then
26312 $as_echo '.gnu_attribute 4,1' > conftest.s
26313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26319 then
26320 gcc_cv_as_powerpc_gnu_attribute=yes
26321 else
26322 echo "configure: failed program was" >&5
26323 cat conftest.s >&5
26324 fi
26325 rm -f conftest.o conftest.s
26326 fi
26327 fi
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26329 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26330 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26331
26332 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26333
26334 fi
26335
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26337 $as_echo_n "checking assembler for tls marker support... " >&6; }
26338 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26340 else
26341 gcc_cv_as_powerpc_tls_markers=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26344 then gcc_cv_as_powerpc_tls_markers=yes
26345 fi
26346 elif test x$gcc_cv_as != x; then
26347 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26354 then
26355 gcc_cv_as_powerpc_tls_markers=yes
26356 else
26357 echo "configure: failed program was" >&5
26358 cat conftest.s >&5
26359 fi
26360 rm -f conftest.o conftest.s
26361 fi
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26364 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26365 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26366
26367 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26368
26369 fi
26370
26371 case $target in
26372 *-*-aix*)
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26374 $as_echo_n "checking assembler for .ref support... " >&6; }
26375 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26376 $as_echo_n "(cached) " >&6
26377 else
26378 gcc_cv_as_aix_ref=no
26379 if test $in_tree_gas = yes; then
26380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26381 then gcc_cv_as_aix_ref=yes
26382 fi
26383 elif test x$gcc_cv_as != x; then
26384 $as_echo ' .csect stuff[rw]
26385 stuff:
26386 .long 1
26387 .extern sym
26388 .ref sym
26389 ' > conftest.s
26390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26392 (eval $ac_try) 2>&5
26393 ac_status=$?
26394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26395 test $ac_status = 0; }; }
26396 then
26397 gcc_cv_as_aix_ref=yes
26398 else
26399 echo "configure: failed program was" >&5
26400 cat conftest.s >&5
26401 fi
26402 rm -f conftest.o conftest.s
26403 fi
26404 fi
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26406 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26407 if test $gcc_cv_as_aix_ref = yes; then
26408
26409 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26410
26411 fi
26412 ;;
26413 esac
26414 ;;
26415
26416 mips*-*-*)
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26418 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26419 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26420 $as_echo_n "(cached) " >&6
26421 else
26422 gcc_cv_as_mips_explicit_relocs=no
26423 if test $in_tree_gas = yes; then
26424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26425 then gcc_cv_as_mips_explicit_relocs=yes
26426 fi
26427 elif test x$gcc_cv_as != x; then
26428 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434 test $ac_status = 0; }; }
26435 then
26436 gcc_cv_as_mips_explicit_relocs=yes
26437 else
26438 echo "configure: failed program was" >&5
26439 cat conftest.s >&5
26440 fi
26441 rm -f conftest.o conftest.s
26442 fi
26443 fi
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26445 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26446 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26447 if test x$target_cpu_default = x
26448 then target_cpu_default=MASK_EXPLICIT_RELOCS
26449 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26450 fi
26451 fi
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26453 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26454 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26455 $as_echo_n "(cached) " >&6
26456 else
26457 gcc_cv_as_mips_no_shared=no
26458 if test $in_tree_gas = yes; then
26459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26460 then gcc_cv_as_mips_no_shared=yes
26461 fi
26462 elif test x$gcc_cv_as != x; then
26463 $as_echo 'nop' > conftest.s
26464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 then
26471 gcc_cv_as_mips_no_shared=yes
26472 else
26473 echo "configure: failed program was" >&5
26474 cat conftest.s >&5
26475 fi
26476 rm -f conftest.o conftest.s
26477 fi
26478 fi
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26480 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26481 if test $gcc_cv_as_mips_no_shared = yes; then
26482
26483 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26484
26485 fi
26486
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26488 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26489 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26490 $as_echo_n "(cached) " >&6
26491 else
26492 gcc_cv_as_mips_gnu_attribute=no
26493 if test $in_tree_gas = yes; then
26494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26495 then gcc_cv_as_mips_gnu_attribute=yes
26496 fi
26497 elif test x$gcc_cv_as != x; then
26498 $as_echo '.gnu_attribute 4,1' > conftest.s
26499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; }
26505 then
26506 gcc_cv_as_mips_gnu_attribute=yes
26507 else
26508 echo "configure: failed program was" >&5
26509 cat conftest.s >&5
26510 fi
26511 rm -f conftest.o conftest.s
26512 fi
26513 fi
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26515 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26516 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26517
26518 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26519
26520 fi
26521
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26523 $as_echo_n "checking assembler for .module support... " >&6; }
26524 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26525 $as_echo_n "(cached) " >&6
26526 else
26527 gcc_cv_as_mips_dot_module=no
26528 if test x$gcc_cv_as != x; then
26529 $as_echo '.module mips2
26530 .module fp=xx' > conftest.s
26531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; }
26537 then
26538 gcc_cv_as_mips_dot_module=yes
26539 else
26540 echo "configure: failed program was" >&5
26541 cat conftest.s >&5
26542 fi
26543 rm -f conftest.o conftest.s
26544 fi
26545 fi
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26547 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26548 if test $gcc_cv_as_mips_dot_module = yes; then
26549
26550 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26551
26552 fi
26553 if test x$gcc_cv_as_mips_dot_module = xno \
26554 && test x$with_fp_32 != x; then
26555 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26556 fi
26557
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26559 $as_echo_n "checking assembler for .micromips support... " >&6; }
26560 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26562 else
26563 gcc_cv_as_micromips_support=no
26564 if test x$gcc_cv_as != x; then
26565 $as_echo '.set micromips' > conftest.s
26566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26572 then
26573 gcc_cv_as_micromips_support=yes
26574 else
26575 echo "configure: failed program was" >&5
26576 cat conftest.s >&5
26577 fi
26578 rm -f conftest.o conftest.s
26579 fi
26580 fi
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26582 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26583 if test $gcc_cv_as_micromips_support = yes; then
26584
26585 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26586
26587 fi
26588
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26590 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26591 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26592 $as_echo_n "(cached) " >&6
26593 else
26594 gcc_cv_as_mips_dtprelword=no
26595 if test $in_tree_gas = yes; then
26596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26597 then gcc_cv_as_mips_dtprelword=yes
26598 fi
26599 elif test x$gcc_cv_as != x; then
26600 $as_echo '.section .tdata,"awT",@progbits
26601 x:
26602 .word 2
26603 .text
26604 .dtprelword x+0x8000' > conftest.s
26605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26611 then
26612 gcc_cv_as_mips_dtprelword=yes
26613 else
26614 echo "configure: failed program was" >&5
26615 cat conftest.s >&5
26616 fi
26617 rm -f conftest.o conftest.s
26618 fi
26619 fi
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26621 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26622 if test $gcc_cv_as_mips_dtprelword = yes; then
26623
26624 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26625
26626 fi
26627
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26629 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26630 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26631 $as_echo_n "(cached) " >&6
26632 else
26633 gcc_cv_as_mips_dspr1_mult=no
26634 if test x$gcc_cv_as != x; then
26635 $as_echo ' .set mips32r2
26636 .set nodspr2
26637 .set dsp
26638 madd $ac3,$4,$5
26639 maddu $ac3,$4,$5
26640 msub $ac3,$4,$5
26641 msubu $ac3,$4,$5
26642 mult $ac3,$4,$5
26643 multu $ac3,$4,$5' > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 gcc_cv_as_mips_dspr1_mult=yes
26652 else
26653 echo "configure: failed program was" >&5
26654 cat conftest.s >&5
26655 fi
26656 rm -f conftest.o conftest.s
26657 fi
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26660 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26661 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26662
26663 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26664
26665 fi
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26668 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26669 gcc_cv_as_ld_jalr_reloc=no
26670 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26671 if test $in_tree_ld = yes ; then
26672 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 \
26673 && test $in_tree_ld_is_elf = yes; then
26674 gcc_cv_as_ld_jalr_reloc=yes
26675 fi
26676 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26677 echo ' .ent x' > conftest.s
26678 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26679 echo ' lw $25,%call16(y)($28)' >> conftest.s
26680 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26681 echo '1: jalr $25' >> conftest.s
26682 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26683 echo '1: jalr $25' >> conftest.s
26684 echo ' .end x' >> conftest.s
26685 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26686 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26687 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26688 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26689 gcc_cv_as_ld_jalr_reloc=yes
26690 fi
26691 fi
26692 rm -f conftest.*
26693 fi
26694 fi
26695 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26696 if test x$target_cpu_default = x; then
26697 target_cpu_default=MASK_RELAX_PIC_CALLS
26698 else
26699 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26700 fi
26701 fi
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26703 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26704
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26706 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26707 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26708 $as_echo_n "(cached) " >&6
26709 else
26710 gcc_cv_ld_mips_personality_relaxation=no
26711 if test $in_tree_ld = yes ; then
26712 if test "$gcc_cv_gld_major_version" -eq 2 \
26713 -a "$gcc_cv_gld_minor_version" -ge 21 \
26714 -o "$gcc_cv_gld_major_version" -gt 2; then
26715 gcc_cv_ld_mips_personality_relaxation=yes
26716 fi
26717 elif test x$gcc_cv_as != x \
26718 -a x$gcc_cv_ld != x \
26719 -a x$gcc_cv_readelf != x ; then
26720 cat > conftest.s <<EOF
26721 .cfi_startproc
26722 .cfi_personality 0x80,indirect_ptr
26723 .ent test
26724 test:
26725 nop
26726 .end test
26727 .cfi_endproc
26728
26729 .section .data,"aw",@progbits
26730 indirect_ptr:
26731 .dc.a personality
26732 EOF
26733 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26734 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26735 if $gcc_cv_readelf -d conftest 2>&1 \
26736 | grep TEXTREL > /dev/null 2>&1; then
26737 :
26738 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26739 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26740 :
26741 else
26742 gcc_cv_ld_mips_personality_relaxation=yes
26743 fi
26744 fi
26745 fi
26746 rm -f conftest.s conftest.o conftest
26747 fi
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26749 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26750 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26751
26752 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26753
26754 fi
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26757 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26758 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26759 $as_echo_n "(cached) " >&6
26760 else
26761 gcc_cv_as_mips_nan=no
26762 if test x$gcc_cv_as != x; then
26763 $as_echo '' > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_mips_nan=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26775 fi
26776 rm -f conftest.o conftest.s
26777 fi
26778 fi
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26780 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26781 if test $gcc_cv_as_mips_nan = yes; then
26782
26783 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26784
26785 fi
26786 if test x$gcc_cv_as_mips_nan = xno \
26787 && test x$with_nan != x; then
26788 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26789 fi
26790 ;;
26791 s390*-*-*)
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26793 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26794 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26795 $as_echo_n "(cached) " >&6
26796 else
26797 gcc_cv_as_s390_gnu_attribute=no
26798 if test $in_tree_gas = yes; then
26799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26800 then gcc_cv_as_s390_gnu_attribute=yes
26801 fi
26802 elif test x$gcc_cv_as != x; then
26803 $as_echo '.gnu_attribute 8,1' > conftest.s
26804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26806 (eval $ac_try) 2>&5
26807 ac_status=$?
26808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26809 test $ac_status = 0; }; }
26810 then
26811 gcc_cv_as_s390_gnu_attribute=yes
26812 else
26813 echo "configure: failed program was" >&5
26814 cat conftest.s >&5
26815 fi
26816 rm -f conftest.o conftest.s
26817 fi
26818 fi
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26820 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26821 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26822
26823 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26824
26825 fi
26826 ;;
26827 esac
26828
26829 # Mips and HP-UX need the GNU assembler.
26830 # Linux on IA64 might be able to use the Intel assembler.
26831
26832 case "$target" in
26833 mips*-*-* | *-*-hpux* )
26834 if test x$gas_flag = xyes \
26835 || test x"$host" != x"$build" \
26836 || test ! -x "$gcc_cv_as" \
26837 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26838 :
26839 else
26840 echo "*** This configuration requires the GNU assembler" >&2
26841 exit 1
26842 fi
26843 ;;
26844 esac
26845
26846 # ??? Not all targets support dwarf2 debug_line, even within a version
26847 # of gas. Moreover, we need to emit a valid instruction to trigger any
26848 # info to the output file. So, as supported targets are added to gas 2.11,
26849 # add some instruction here to (also) show we expect this might work.
26850 # ??? Once 2.11 is released, probably need to add first known working
26851 # version to the per-target configury.
26852 case "$cpu_type" in
26853 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26854 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26855 | visium | xstormy16 | xtensa)
26856 insn="nop"
26857 ;;
26858 ia64 | s390)
26859 insn="nop 0"
26860 ;;
26861 mmix)
26862 insn="swym 0"
26863 ;;
26864 esac
26865 if test x"$insn" != x; then
26866 conftest_s="\
26867 .file 1 \"conftest.s\"
26868 .loc 1 3 0
26869 $insn"
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26871 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26872 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_dwarf2_debug_line=no
26876 if test $in_tree_gas = yes; then
26877 if test $in_tree_gas_is_elf = yes \
26878 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26879 then gcc_cv_as_dwarf2_debug_line=yes
26880 fi
26881 elif test x$gcc_cv_as != x; then
26882 $as_echo "$conftest_s" > conftest.s
26883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26888 test $ac_status = 0; }; }
26889 then
26890 if test x$gcc_cv_objdump != x \
26891 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26892 | grep debug_line > /dev/null 2>&1; then
26893 gcc_cv_as_dwarf2_debug_line=yes
26894 fi
26895 else
26896 echo "configure: failed program was" >&5
26897 cat conftest.s >&5
26898 fi
26899 rm -f conftest.o conftest.s
26900 fi
26901 fi
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26903 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26904
26905
26906 # The .debug_line file table must be in the exact order that
26907 # we specified the files, since these indices are also used
26908 # by DW_AT_decl_file. Approximate this test by testing if
26909 # the assembler bitches if the same index is assigned twice.
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26911 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26912 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26913 $as_echo_n "(cached) " >&6
26914 else
26915 gcc_cv_as_dwarf2_file_buggy=no
26916 if test x$gcc_cv_as != x; then
26917 $as_echo ' .file 1 "foo.s"
26918 .file 1 "bar.s"' > conftest.s
26919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924 test $ac_status = 0; }; }
26925 then
26926 gcc_cv_as_dwarf2_file_buggy=yes
26927 else
26928 echo "configure: failed program was" >&5
26929 cat conftest.s >&5
26930 fi
26931 rm -f conftest.o conftest.s
26932 fi
26933 fi
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26935 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26936
26937
26938 if test $gcc_cv_as_dwarf2_debug_line = yes \
26939 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26940
26941 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26942
26943 fi
26944
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26946 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26947 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26948 $as_echo_n "(cached) " >&6
26949 else
26950 gcc_cv_as_gdwarf2_flag=no
26951 if test $in_tree_gas = yes; then
26952 if test $in_tree_gas_is_elf = yes \
26953 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26954 then gcc_cv_as_gdwarf2_flag=yes
26955 fi
26956 elif test x$gcc_cv_as != x; then
26957 $as_echo "$insn" > conftest.s
26958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26960 (eval $ac_try) 2>&5
26961 ac_status=$?
26962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26963 test $ac_status = 0; }; }
26964 then
26965 gcc_cv_as_gdwarf2_flag=yes
26966 else
26967 echo "configure: failed program was" >&5
26968 cat conftest.s >&5
26969 fi
26970 rm -f conftest.o conftest.s
26971 fi
26972 fi
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26974 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26975 if test $gcc_cv_as_gdwarf2_flag = yes; then
26976
26977 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26978
26979 fi
26980
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26982 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26983 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26984 $as_echo_n "(cached) " >&6
26985 else
26986 gcc_cv_as_gstabs_flag=no
26987 if test $in_tree_gas = yes; then
26988 if test $in_tree_gas_is_elf = yes \
26989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26990 then gcc_cv_as_gstabs_flag=yes
26991 fi
26992 elif test x$gcc_cv_as != x; then
26993 $as_echo "$insn" > conftest.s
26994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26996 (eval $ac_try) 2>&5
26997 ac_status=$?
26998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26999 test $ac_status = 0; }; }
27000 then
27001 gcc_cv_as_gstabs_flag=yes
27002 else
27003 echo "configure: failed program was" >&5
27004 cat conftest.s >&5
27005 fi
27006 rm -f conftest.o conftest.s
27007 fi
27008 fi
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27010 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27011 if test $gcc_cv_as_gstabs_flag = yes; then
27012
27013 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27014
27015 fi
27016
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27018 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27019 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27021 else
27022 gcc_cv_as_debug_prefix_map_flag=no
27023 if test $in_tree_gas = yes; then
27024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27025 then gcc_cv_as_debug_prefix_map_flag=yes
27026 fi
27027 elif test x$gcc_cv_as != x; then
27028 $as_echo "$insn" > conftest.s
27029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27035 then
27036 gcc_cv_as_debug_prefix_map_flag=yes
27037 else
27038 echo "configure: failed program was" >&5
27039 cat conftest.s >&5
27040 fi
27041 rm -f conftest.o conftest.s
27042 fi
27043 fi
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27045 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27046 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27047
27048 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27049
27050 fi
27051 fi
27052
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27054 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27055 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27056 $as_echo_n "(cached) " >&6
27057 else
27058 gcc_cv_as_compress_debug=no
27059 if test x$gcc_cv_as != x; then
27060 $as_echo '' > conftest.s
27061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27066 test $ac_status = 0; }; }
27067 then
27068 # gas compiled without zlib cannot compress debug sections and warns
27069 # about it, but still exits successfully. So check for this, too.
27070 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27071 then
27072 gcc_cv_as_compress_debug=0
27073 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27074 then
27075 gcc_cv_as_compress_debug=1
27076 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27077 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27078 else
27079 gcc_cv_as_compress_debug=0
27080 # FIXME: Future gas versions will support ELF gABI style via
27081 # --compress-debug-sections[=type].
27082 fi
27083 else
27084 echo "configure: failed program was" >&5
27085 cat conftest.s >&5
27086 fi
27087 rm -f conftest.o conftest.s
27088 fi
27089 fi
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27091 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27092
27093
27094 cat >>confdefs.h <<_ACEOF
27095 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27096 _ACEOF
27097
27098
27099 cat >>confdefs.h <<_ACEOF
27100 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27101 _ACEOF
27102
27103
27104 cat >>confdefs.h <<_ACEOF
27105 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27106 _ACEOF
27107
27108
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27110 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27111 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27113 else
27114 gcc_cv_as_lcomm_with_alignment=no
27115 if test x$gcc_cv_as != x; then
27116 $as_echo '.lcomm bar,4,16' > conftest.s
27117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27123 then
27124 gcc_cv_as_lcomm_with_alignment=yes
27125 else
27126 echo "configure: failed program was" >&5
27127 cat conftest.s >&5
27128 fi
27129 rm -f conftest.o conftest.s
27130 fi
27131 fi
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27133 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27134 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27135
27136 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27137
27138 fi
27139
27140 if test x$with_sysroot = x && test x$host = x$target \
27141 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27142 && test "$prefix" != "NONE"; then
27143
27144 cat >>confdefs.h <<_ACEOF
27145 #define PREFIX_INCLUDE_DIR "$prefix/include"
27146 _ACEOF
27147
27148 fi
27149
27150 # Determine the version of glibc, if any, used on the target.
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27152 $as_echo_n "checking for target glibc version... " >&6; }
27153
27154 # Check whether --with-glibc-version was given.
27155 if test "${with_glibc_version+set}" = set; then :
27156 withval=$with_glibc_version;
27157 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27158 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27159 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27160 else
27161 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27162 fi
27163 else
27164
27165 glibc_version_major=0
27166 glibc_version_minor=0
27167 if test -f $target_header_dir/features.h \
27168 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27169 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27170 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27171 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27172 fi
27173 fi
27174
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27176 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27177
27178 cat >>confdefs.h <<_ACEOF
27179 #define TARGET_GLIBC_MAJOR $glibc_version_major
27180 _ACEOF
27181
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #define TARGET_GLIBC_MINOR $glibc_version_minor
27185 _ACEOF
27186
27187
27188 # Check whether --enable-gnu-unique-object was given.
27189 if test "${enable_gnu_unique_object+set}" = set; then :
27190 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27191 yes | no) ;;
27192 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27194 esac
27195 else
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27197 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27198 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27199 $as_echo_n "(cached) " >&6
27200 else
27201 gcc_cv_as_gnu_unique_object=no
27202 if test $in_tree_gas = yes; then
27203 if test $in_tree_gas_is_elf = yes \
27204 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27205 then gcc_cv_as_gnu_unique_object=yes
27206 fi
27207 elif test x$gcc_cv_as != x; then
27208 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27215 then
27216 gcc_cv_as_gnu_unique_object=yes
27217 else
27218 echo "configure: failed program was" >&5
27219 cat conftest.s >&5
27220 fi
27221 rm -f conftest.o conftest.s
27222 fi
27223 fi
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27225 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27226 if test $gcc_cv_as_gnu_unique_object = yes; then
27227 # We need to unquote above to to use the definition from config.gcc.
27228 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27229
27230 if test $glibc_version_major -gt 2 \
27231 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27232 enable_gnu_unique_object=yes
27233 fi
27234
27235 fi
27236 fi
27237
27238 if test x$enable_gnu_unique_object = xyes; then
27239
27240 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27241
27242 fi
27243
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27245 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27246 if test "${gcc_cv_as_line_zero+set}" = set; then :
27247 $as_echo_n "(cached) " >&6
27248 else
27249 gcc_cv_as_line_zero=no
27250 if test $in_tree_gas = yes; then
27251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27252 then gcc_cv_as_line_zero=yes
27253 fi
27254 elif test "x$gcc_cv_as" != x; then
27255 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27256 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27261 test $ac_status = 0; }; } &&
27262 test "x`cat conftest.out`" = x
27263 then
27264 gcc_cv_as_line_zero=yes
27265 else
27266 echo "configure: failed program was" >&5
27267 cat conftest.s >&5
27268 echo "configure: error output was" >&5
27269 cat conftest.out >&5
27270 fi
27271 rm -f conftest.o conftest.s conftest.out
27272 fi
27273 fi
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27275 $as_echo "$gcc_cv_as_line_zero" >&6; }
27276 if test "x$gcc_cv_as_line_zero" = xyes; then
27277
27278 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27279
27280 fi
27281
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27283 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27284 gcc_cv_ld_eh_frame_hdr=no
27285 if test $in_tree_ld = yes ; then
27286 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 \
27287 && test $in_tree_ld_is_elf = yes; then
27288 gcc_cv_ld_eh_frame_hdr=yes
27289 fi
27290 elif test x$gcc_cv_ld != x; then
27291 if echo "$ld_ver" | grep GNU > /dev/null; then
27292 # Check if linker supports --eh-frame-hdr option
27293 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27294 gcc_cv_ld_eh_frame_hdr=yes
27295 fi
27296 else
27297 case "$target" in
27298 *-*-solaris2*)
27299 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27300 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27301 gcc_cv_ld_eh_frame_hdr=yes
27302 fi
27303 ;;
27304 esac
27305 fi
27306 fi
27307
27308 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27309
27310 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27311
27312 fi
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27314 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27315
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27317 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27318 gcc_cv_ld_eh_frame_ciev3=no
27319 if test $in_tree_ld = yes ; then
27320 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 \
27321 && test $in_tree_ld_is_elf = yes; then
27322 gcc_cv_ld_eh_frame_ciev3=yes
27323 fi
27324 elif test x$gcc_cv_ld != x; then
27325 if echo "$ld_ver" | grep GNU > /dev/null; then
27326 gcc_cv_ld_eh_frame_ciev3=yes
27327 if test 0"$ld_date" -lt 20040513; then
27328 if test -n "$ld_date"; then
27329 # If there was date string, but was earlier than 2004-05-13, fail
27330 gcc_cv_ld_eh_frame_ciev3=no
27331 elif test "$ld_vers_major" -lt 2; then
27332 gcc_cv_ld_eh_frame_ciev3=no
27333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27334 gcc_cv_ld_eh_frame_ciev3=no
27335 fi
27336 fi
27337 else
27338 case "$target" in
27339 *-*-solaris2*)
27340 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27341 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27342 gcc_cv_ld_eh_frame_ciev3=yes
27343 fi
27344 ;;
27345 esac
27346 fi
27347 fi
27348
27349 cat >>confdefs.h <<_ACEOF
27350 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27351 _ACEOF
27352
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27354 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27355
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27357 $as_echo_n "checking linker position independent executable support... " >&6; }
27358 gcc_cv_ld_pie=no
27359 if test $in_tree_ld = yes ; then
27360 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 \
27361 && test $in_tree_ld_is_elf = yes; then
27362 gcc_cv_ld_pie=yes
27363 fi
27364 elif test x$gcc_cv_ld != x; then
27365 # Check if linker supports -pie option
27366 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27367 gcc_cv_ld_pie=yes
27368 fi
27369 fi
27370 if test x"$gcc_cv_ld_pie" = xyes; then
27371
27372 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27373
27374 fi
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27376 $as_echo "$gcc_cv_ld_pie" >&6; }
27377
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27379 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27380 gcc_cv_ld_pie_copyreloc=no
27381 if test $gcc_cv_ld_pie = yes ; then
27382 if test $in_tree_ld = yes ; then
27383 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27384 gcc_cv_ld_pie_copyreloc=yes
27385 fi
27386 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27387 # Check if linker supports -pie option with copy reloc
27388 case "$target" in
27389 i?86-*-linux* | x86_64-*-linux*)
27390 cat > conftest1.s <<EOF
27391 .globl a_glob
27392 .data
27393 .type a_glob, @object
27394 .size a_glob, 4
27395 a_glob:
27396 .long 2
27397 EOF
27398 cat > conftest2.s <<EOF
27399 .text
27400 .globl main
27401 .type main, @function
27402 main:
27403 movl %eax, a_glob(%rip)
27404 .size main, .-main
27405 .globl ptr
27406 .section .data.rel,"aw",@progbits
27407 .type ptr, @object
27408 ptr:
27409 .quad a_glob
27410 EOF
27411 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27412 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27413 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27414 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27415 gcc_cv_ld_pie_copyreloc=yes
27416 fi
27417 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27418 ;;
27419 esac
27420 fi
27421 fi
27422
27423 cat >>confdefs.h <<_ACEOF
27424 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27425 _ACEOF
27426
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27428 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27429
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27431 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27432 gcc_cv_ld_eh_gc_sections=no
27433 if test $in_tree_ld = yes ; then
27434 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 \
27435 && test $in_tree_ld_is_elf = yes; then
27436 gcc_cv_ld_eh_gc_sections=yes
27437 fi
27438 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27439 cat > conftest.s <<EOF
27440 .section .text
27441 .globl _start
27442 .type _start, @function
27443 _start:
27444 .long foo
27445 .size _start, .-_start
27446 .section .text.foo,"ax",@progbits
27447 .type foo, @function
27448 foo:
27449 .long 0
27450 .size foo, .-foo
27451 .section .gcc_except_table.foo,"a",@progbits
27452 .L0:
27453 .long 0
27454 .section .eh_frame,"a",@progbits
27455 .long .L0
27456 EOF
27457 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27458 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27459 | grep "gc-sections option ignored" > /dev/null; then
27460 gcc_cv_ld_eh_gc_sections=no
27461 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27462 | grep gcc_except_table > /dev/null; then
27463 gcc_cv_ld_eh_gc_sections=yes
27464 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27465 if test x$gcc_cv_as_comdat_group != xyes; then
27466 gcc_cv_ld_eh_gc_sections=no
27467 cat > conftest.s <<EOF
27468 .section .text
27469 .globl _start
27470 .type _start, @function
27471 _start:
27472 .long foo
27473 .size _start, .-_start
27474 .section .gnu.linkonce.t.foo,"ax",@progbits
27475 .type foo, @function
27476 foo:
27477 .long 0
27478 .size foo, .-foo
27479 .section .gcc_except_table.foo,"a",@progbits
27480 .L0:
27481 .long 0
27482 .section .eh_frame,"a",@progbits
27483 .long .L0
27484 EOF
27485 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27486 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27487 | grep "gc-sections option ignored" > /dev/null; then
27488 gcc_cv_ld_eh_gc_sections=no
27489 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27490 | grep gcc_except_table > /dev/null; then
27491 gcc_cv_ld_eh_gc_sections=yes
27492 fi
27493 fi
27494 fi
27495 fi
27496 fi
27497 rm -f conftest.s conftest.o conftest
27498 fi
27499 case "$target" in
27500 hppa*-*-linux*)
27501 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27502 gcc_cv_ld_eh_gc_sections=no
27503 ;;
27504 esac
27505 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27506
27507 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27508
27509 fi
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27511 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27512
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27514 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27515 gcc_cv_ld_eh_gc_sections_bug=no
27516 if test $in_tree_ld = yes ; then
27517 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 \
27518 && test $in_tree_ld_is_elf = yes; then
27519 gcc_cv_ld_eh_gc_sections_bug=yes
27520 fi
27521 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
27522 gcc_cv_ld_eh_gc_sections_bug=yes
27523 cat > conftest.s <<EOF
27524 .section .text
27525 .globl _start
27526 .type _start, @function
27527 _start:
27528 .long foo
27529 .size _start, .-_start
27530 .section .text.startup.foo,"ax",@progbits
27531 .type foo, @function
27532 foo:
27533 .long 0
27534 .size foo, .-foo
27535 .section .gcc_except_table.foo,"a",@progbits
27536 .L0:
27537 .long 0
27538 .section .eh_frame,"a",@progbits
27539 .long .L0
27540 EOF
27541 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27542 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27543 | grep "gc-sections option ignored" > /dev/null; then
27544 :
27545 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27546 | grep gcc_except_table > /dev/null; then
27547 gcc_cv_ld_eh_gc_sections_bug=no
27548 fi
27549 fi
27550 rm -f conftest.s conftest.o conftest
27551 fi
27552 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27553
27554 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27555
27556 fi
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27558 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27561 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27562 # gold/gld support compressed debug sections since binutils 2.19/2.21
27563 if test $in_tree_ld = yes ; then
27564 gcc_cv_ld_compress_debug=0
27565 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27566 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27567 gcc_cv_ld_compress_debug=2
27568 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27569 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27570 && test $in_tree_ld_is_elf = yes; then
27571 gcc_cv_ld_compress_debug=1
27572 fi
27573 elif echo "$ld_ver" | grep GNU > /dev/null; then
27574 gcc_cv_ld_compress_debug=1
27575 if test 0"$ld_date" -lt 20050308; then
27576 if test -n "$ld_date"; then
27577 # If there was date string, but was earlier than 2005-03-08, fail
27578 gcc_cv_ld_compress_debug=0
27579 elif test "$ld_vers_major" -lt 2; then
27580 gcc_cv_ld_compress_debug=0
27581 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27582 gcc_cv_ld_compress_debug=0
27583 fi
27584 fi
27585 if test $ld_is_gold = yes; then
27586 gcc_cv_ld_compress_debug=2
27587 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27588 fi
27589 else
27590 case "${target}" in
27591 *-*-solaris2*)
27592 # Introduced in Solaris 11.2.
27593 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27594 gcc_cv_ld_compress_debug=3
27595 gcc_cv_ld_compress_debug_option="-z compress-sections"
27596 else
27597 gcc_cv_ld_compress_debug=0
27598 fi
27599 ;;
27600 *)
27601 # Assume linkers other than GNU ld don't support compessed debug
27602 # sections.
27603 gcc_cv_ld_compress_debug=0
27604 ;;
27605 esac
27606 fi
27607
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27610 _ACEOF
27611
27612
27613 cat >>confdefs.h <<_ACEOF
27614 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27615 _ACEOF
27616
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27618 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27619
27620 # --------
27621 # UNSORTED
27622 # --------
27623
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27625 $as_echo_n "checking linker --as-needed support... " >&6; }
27626 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27627 $as_echo_n "(cached) " >&6
27628 else
27629 gcc_cv_ld_as_needed=no
27630 gcc_cv_ld_as_needed_option='--as-needed'
27631 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27632 if test $in_tree_ld = yes ; then
27633 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 \
27634 && test $in_tree_ld_is_elf = yes; then
27635 gcc_cv_ld_as_needed=yes
27636 fi
27637 elif test x$gcc_cv_ld != x; then
27638 # Check if linker supports --as-needed and --no-as-needed options
27639 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27640 gcc_cv_ld_as_needed=yes
27641 else
27642 case "$target" in
27643 # Solaris 2 ld always supports -z ignore/-z record.
27644 *-*-solaris2*)
27645 gcc_cv_ld_as_needed=yes
27646 gcc_cv_ld_as_needed_option="-z ignore"
27647 gcc_cv_ld_no_as_needed_option="-z record"
27648 ;;
27649 esac
27650 fi
27651 fi
27652 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27653 # dl_iterate_phdr, i.e. since Solaris 11.
27654 case "$target" in
27655 *-*-solaris2.1[1-9]*)
27656 case "$target" in
27657 i?86-*-* | x86_64-*-*)
27658 if echo "$ld_ver" | grep GNU > /dev/null; then
27659 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27660 gcc_cv_ld_as_needed=no
27661 fi
27662 ;;
27663 esac
27664 ;;
27665 *-*-solaris2*)
27666 gcc_cv_ld_as_needed=no
27667 ;;
27668 esac
27669
27670 fi
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27672 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27673 if test x"$gcc_cv_ld_as_needed" = xyes; then
27674
27675 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27676
27677
27678 cat >>confdefs.h <<_ACEOF
27679 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27680 _ACEOF
27681
27682
27683 cat >>confdefs.h <<_ACEOF
27684 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27685 _ACEOF
27686
27687 fi
27688
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27690 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27691 saved_LDFLAGS="$LDFLAGS"
27692 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27693 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27695 /* end confdefs.h. */
27696 int main(void) {return 0;}
27697 _ACEOF
27698 if ac_fn_cxx_try_link "$LINENO"; then :
27699 gcc_cv_ld_clearcap=yes; break
27700 else
27701 gcc_cv_ld_clearcap=no
27702 fi
27703 rm -f core conftest.err conftest.$ac_objext \
27704 conftest$ac_exeext conftest.$ac_ext
27705 done
27706 LDFLAGS="$saved_LDFLAGS"
27707 if test "x$gcc_cv_ld_clearcap" = xyes; then
27708
27709 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27710
27711 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27712
27713 fi
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27715 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27716
27717 case "$target:$tm_file" in
27718 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27719 case "$target" in
27720 *le-*-linux*)
27721 emul_name="-melf64lppc"
27722 ;;
27723 *-*-linux*)
27724 emul_name="-melf64ppc"
27725 ;;
27726 *-*-freebsd*)
27727 emul_name="-melf64ppc_fbsd"
27728 ;;
27729 esac
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27731 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27732 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27733 $as_echo_n "(cached) " >&6
27734 else
27735 gcc_cv_ld_no_dot_syms=no
27736 if test x"$ld_is_gold" = xyes; then
27737 gcc_cv_ld_no_dot_syms=yes
27738 elif test $in_tree_ld = yes ; then
27739 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
27740 gcc_cv_ld_no_dot_syms=yes
27741 fi
27742 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27743 cat > conftest1.s <<EOF
27744 .text
27745 bl .foo
27746 EOF
27747 cat > conftest2.s <<EOF
27748 .section ".opd","aw"
27749 .align 3
27750 .globl foo
27751 .type foo,@function
27752 foo:
27753 .quad .LEfoo,.TOC.@tocbase,0
27754 .text
27755 .LEfoo:
27756 blr
27757 .size foo,.-.LEfoo
27758 EOF
27759 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27760 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27761 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27762 gcc_cv_ld_no_dot_syms=yes
27763 fi
27764 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27765 fi
27766
27767 fi
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27769 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27770 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27771
27772 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27773
27774 fi
27775
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27777 $as_echo_n "checking linker large toc support... " >&6; }
27778 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27779 $as_echo_n "(cached) " >&6
27780 else
27781 gcc_cv_ld_large_toc=no
27782 if test x"$ld_is_gold" = xyes; then
27783 gcc_cv_ld_large_toc=yes
27784 elif test $in_tree_ld = yes ; then
27785 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
27786 gcc_cv_ld_large_toc=yes
27787 fi
27788 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27789 cat > conftest.s <<EOF
27790 .section ".tbss","awT",@nobits
27791 .align 3
27792 ie0: .space 8
27793 .global _start
27794 .text
27795 _start:
27796 addis 9,13,ie0@got@tprel@ha
27797 ld 9,ie0@got@tprel@l(9)
27798 EOF
27799 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27800 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27801 gcc_cv_ld_large_toc=yes
27802 fi
27803 rm -f conftest conftest.o conftest.s
27804 fi
27805
27806 fi
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27808 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27809 if test x"$gcc_cv_ld_large_toc" = xyes; then
27810
27811 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27812
27813 fi
27814
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27816 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27817 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27818 $as_echo_n "(cached) " >&6
27819 else
27820 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27821 cat > conftest.s <<EOF
27822 .global _start
27823 .text
27824 _start:
27825 addis 9,2,x@got@ha
27826 .section .data.rel.ro,"aw",@progbits
27827 .p2align 16
27828 .space 32768
27829 x: .quad .TOC.
27830 EOF
27831 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27832 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27833 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27834 fi
27835 rm -f conftest conftest.o conftest.s
27836 fi
27837
27838 fi
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27840 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27841 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27842
27843 cat >>confdefs.h <<_ACEOF
27844 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27845 _ACEOF
27846
27847 fi
27848 ;;
27849 esac
27850
27851 case "$target" in
27852 *-*-aix*)
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27854 $as_echo_n "checking linker large toc support... " >&6; }
27855 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27856 $as_echo_n "(cached) " >&6
27857 else
27858 gcc_cv_ld_large_toc=no
27859 if test x$gcc_cv_as != x ; then
27860 cat > conftest.s <<EOF
27861 .toc
27862 LC..1:
27863 .tc a[TC],a[RW]
27864 .extern a[RW]
27865 .csect .text[PR]
27866 .largetoctest:
27867 addis 9,LC..1@u(2)
27868 ld 3,LC..1@l(9)
27869 EOF
27870 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27871 gcc_cv_ld_large_toc=yes
27872 fi
27873 rm -f conftest conftest.o conftest.s
27874 fi
27875
27876 fi
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27878 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27879 if test x"$gcc_cv_ld_large_toc" = xyes; then
27880
27881 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27882
27883 fi
27884 ;;
27885 esac
27886
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27888 $as_echo_n "checking linker --build-id support... " >&6; }
27889 if test "${gcc_cv_ld_buildid+set}" = set; then :
27890 $as_echo_n "(cached) " >&6
27891 else
27892 gcc_cv_ld_buildid=no
27893 if test $in_tree_ld = yes ; then
27894 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27895 "$gcc_cv_gld_minor_version" -ge 18 -o \
27896 "$gcc_cv_gld_major_version" -gt 2 \
27897 && test $in_tree_ld_is_elf = yes; then
27898 gcc_cv_ld_buildid=yes
27899 fi
27900 elif test x$gcc_cv_ld != x; then
27901 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27902 gcc_cv_ld_buildid=yes
27903 fi
27904 fi
27905 fi
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27907 $as_echo "$gcc_cv_ld_buildid" >&6; }
27908 if test x"$gcc_cv_ld_buildid" = xyes; then
27909
27910 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27911
27912 fi
27913
27914 # Check whether --enable-linker-build-id was given.
27915 if test "${enable_linker_build_id+set}" = set; then :
27916 enableval=$enable_linker_build_id;
27917 else
27918 enable_linker_build_id=no
27919 fi
27920
27921
27922 if test x"$enable_linker_build_id" = xyes; then
27923 if test x"$gcc_cv_ld_buildid" = xyes; then
27924
27925 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27926
27927 else
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27929 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27930 fi
27931 fi
27932
27933 # In binutils 2.21, GNU ld gained support for new emulations fully
27934 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27936 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27937 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27938 $as_echo_n "(cached) " >&6
27939 else
27940 gcc_cv_ld_sol2_emulation=no
27941 if test $in_tree_ld = yes ; then
27942 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27943 "$gcc_cv_gld_minor_version" -ge 21 -o \
27944 "$gcc_cv_gld_major_version" -gt 2 \
27945 && test $in_tree_ld_is_elf = yes; then
27946 gcc_cv_ld_sol2_emulation=yes
27947 fi
27948 elif test x$gcc_cv_ld != x; then
27949 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27950 grep _sol2 > /dev/null; then
27951 gcc_cv_ld_sol2_emulation=yes
27952 fi
27953 fi
27954 fi
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27956 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27957 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27958
27959 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27960
27961 fi
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27964 $as_echo_n "checking linker --sysroot support... " >&6; }
27965 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27966 $as_echo_n "(cached) " >&6
27967 else
27968 gcc_cv_ld_sysroot=no
27969 if test $in_tree_ld = yes ; then
27970 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
27971 gcc_cv_ld_sysroot=yes
27972 fi
27973 elif test x$gcc_cv_ld != x; then
27974 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27975 gcc_cv_ld_sysroot=yes
27976 fi
27977 fi
27978 fi
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27980 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27981 if test x"$gcc_cv_ld_sysroot" = xyes; then
27982
27983 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27984
27985 fi
27986
27987 # Test for stack protector support in target C library.
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27989 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27990 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27991 $as_echo_n "(cached) " >&6
27992 else
27993 gcc_cv_libc_provides_ssp=no
27994 case "$target" in
27995 *-*-musl*)
27996 # All versions of musl provide stack protector
27997 gcc_cv_libc_provides_ssp=yes;;
27998 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27999 # glibc 2.4 and later provides __stack_chk_fail and
28000 # either __stack_chk_guard, or TLS access to stack guard canary.
28001
28002 if test $glibc_version_major -gt 2 \
28003 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28004 gcc_cv_libc_provides_ssp=yes
28005 else
28006
28007 if test -f $target_header_dir/features.h \
28008 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28009 $target_header_dir/features.h > /dev/null; then
28010 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28011 $target_header_dir/features.h > /dev/null && \
28012 test -f $target_header_dir/bits/uClibc_config.h && \
28013 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28014 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28015 gcc_cv_libc_provides_ssp=yes
28016 fi
28017 # all versions of Bionic support stack protector
28018 elif test -f $target_header_dir/sys/cdefs.h \
28019 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28020 $target_header_dir/sys/cdefs.h > /dev/null; then
28021 gcc_cv_libc_provides_ssp=yes
28022 fi
28023 fi
28024 ;;
28025 *-*-gnu*)
28026 # Avoid complicated tests (see
28027 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28028 # simply assert that glibc does provide this, which is true for all
28029 # realistically usable GNU/Hurd configurations.
28030 # All supported versions of musl provide it as well
28031 gcc_cv_libc_provides_ssp=yes;;
28032 *-*-darwin* | *-*-freebsd*)
28033 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28034 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28035 gcc_cv_libc_provides_ssp=yes
28036 else
28037 echo "no __stack_chk_fail on this target"
28038 fi
28039
28040 ;;
28041 *) gcc_cv_libc_provides_ssp=no ;;
28042 esac
28043 fi
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28045 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28046
28047 if test x$gcc_cv_libc_provides_ssp = xyes; then
28048
28049 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28050
28051 fi
28052
28053 # Check whether --enable-default-ssp was given.
28054 # Check whether --enable-default-ssp was given.
28055 if test "${enable_default_ssp+set}" = set; then :
28056 enableval=$enable_default_ssp;
28057 if test x$gcc_cv_libc_provides_ssp = xyes; then
28058 case "$target" in
28059 ia64*-*-*) enable_default_ssp=no ;;
28060 *) enable_default_ssp=$enableval ;;
28061 esac
28062 else
28063 enable_default_ssp=no
28064 fi
28065 else
28066 enable_default_ssp=no
28067 fi
28068
28069 if test x$enable_default_ssp == xyes ; then
28070
28071 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28072
28073 fi
28074
28075
28076 # Test for <sys/sdt.h> on the target.
28077
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28079 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28080 have_sys_sdt_h=no
28081 if test -f $target_header_dir/sys/sdt.h; then
28082 have_sys_sdt_h=yes
28083
28084 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28085
28086 fi
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28088 $as_echo "$have_sys_sdt_h" >&6; }
28089
28090 # Check if TFmode long double should be used by default or not.
28091 # Some glibc targets used DFmode long double, but with glibc 2.4
28092 # and later they can use TFmode.
28093 case "$target" in
28094 powerpc*-*-linux* | \
28095 sparc*-*-linux* | \
28096 s390*-*-linux* | \
28097 alpha*-*-linux*)
28098
28099 # Check whether --with-long-double-128 was given.
28100 if test "${with_long_double_128+set}" = set; then :
28101 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28102 else
28103
28104 if test $glibc_version_major -gt 2 \
28105 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28106 gcc_cv_target_ldbl128=yes
28107 else
28108
28109 gcc_cv_target_ldbl128=no
28110 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28111 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28112 && gcc_cv_target_ldbl128=yes
28113
28114 fi
28115 fi
28116
28117 ;;
28118 esac
28119 if test x$gcc_cv_target_ldbl128 = xyes; then
28120
28121 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28122
28123 fi
28124
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28126 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28127 gcc_cv_target_dl_iterate_phdr=unknown
28128 case "$target" in
28129 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28130 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28131 # libdl there, both complicating its use and breaking compatibility
28132 # between Solaris 10 updates.
28133 *-*-solaris2.1[1-9]*)
28134 # <link.h> needs both a dl_iterate_phdr declaration and support for
28135 # compilation with largefile support.
28136 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28137 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28138 gcc_cv_target_dl_iterate_phdr=yes
28139 else
28140 gcc_cv_target_dl_iterate_phdr=no
28141 fi
28142 ;;
28143 *-*-dragonfly* | *-*-freebsd*)
28144 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28145 gcc_cv_target_dl_iterate_phdr=yes
28146 else
28147 gcc_cv_target_dl_iterate_phdr=no
28148 fi
28149 ;;
28150 *-linux-musl*)
28151 gcc_cv_target_dl_iterate_phdr=yes
28152 ;;
28153 esac
28154
28155 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28156
28157 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28158
28159 fi
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28161 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28162
28163 # We no longer support different GC mechanisms. Emit an error if
28164 # the user configures with --with-gc.
28165
28166 # Check whether --with-gc was given.
28167 if test "${with_gc+set}" = set; then :
28168 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28169 fi
28170
28171
28172 # Libraries to use on the host. This will normally be set by the top
28173 # level Makefile. Here we simply capture the value for our Makefile.
28174 if test -z "${HOST_LIBS+set}"; then
28175 HOST_LIBS=
28176 fi
28177
28178
28179 # Use the system's zlib library.
28180
28181 # Use the system's zlib library.
28182 zlibdir="-L\$(top_builddir)/../zlib"
28183 zlibinc="-I\$(top_srcdir)/../zlib"
28184
28185 # Check whether --with-system-zlib was given.
28186 if test "${with_system_zlib+set}" = set; then :
28187 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28188 zlibdir=
28189 zlibinc=
28190 fi
28191
28192 fi
28193
28194
28195
28196
28197
28198
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28200 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28201 # Check whether --enable-maintainer-mode was given.
28202 if test "${enable_maintainer_mode+set}" = set; then :
28203 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28204 else
28205 maintainer_mode=no
28206 fi
28207
28208
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28210 $as_echo "$maintainer_mode" >&6; }
28211
28212 if test "$maintainer_mode" = "yes"; then
28213 MAINT=''
28214 else
28215 MAINT='#'
28216 fi
28217
28218
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28220 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28221 # Check whether --enable-link-mutex was given.
28222 if test "${enable_link_mutex+set}" = set; then :
28223 enableval=$enable_link_mutex; do_link_mutex=$enableval
28224 else
28225 do_link_mutex=no
28226 fi
28227
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28229 $as_echo "$do_link_mutex" >&6; }
28230
28231 if test "$do_link_mutex" = "yes"; then
28232 DO_LINK_MUTEX=true
28233 else
28234 DO_LINK_MUTEX=false
28235 fi
28236
28237
28238 # --------------
28239 # Language hooks
28240 # --------------
28241
28242 # Make empty files to contain the specs and options for each language.
28243 # Then add #include lines to for a compiler that has specs and/or options.
28244
28245 subdirs=
28246 lang_opt_files=
28247 lang_specs_files=
28248 lang_tree_files=
28249 # These (without "all_") are set in each config-lang.in.
28250 # `language' must be a single word so is spelled singularly.
28251 all_languages=
28252 all_compilers=
28253 all_outputs='Makefile'
28254 # List of language makefile fragments.
28255 all_lang_makefrags=
28256 # Additional files for gengtype
28257 all_gtfiles="$target_gtfiles"
28258
28259 # These are the languages that are set in --enable-languages,
28260 # and are available in the GCC tree.
28261 all_selected_languages=
28262
28263 # Add the language fragments.
28264 # Languages are added via two mechanisms. Some information must be
28265 # recorded in makefile variables, these are defined in config-lang.in.
28266 # We accumulate them and plug them into the main Makefile.
28267 # The other mechanism is a set of hooks for each of the main targets
28268 # like `clean', `install', etc.
28269
28270 language_hooks="Make-hooks"
28271
28272 for lang in ${srcdir}/*/config-lang.in
28273 do
28274 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28275
28276 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28277 if test "x$lang_alias" = x
28278 then
28279 echo "$lang doesn't set \$language." 1>&2
28280 exit 1
28281 fi
28282 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28283 subdirs="$subdirs $subdir"
28284
28285 # $gcc_subdir is where the gcc integration files are to be found
28286 # for a language, both for internal compiler purposes (compiler
28287 # sources implementing front-end to GCC tree converters), and for
28288 # build infrastructure purposes (Make-lang.in, etc.)
28289 #
28290 # This will be <subdir> (relative to $srcdir) if a line like
28291 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28292 # is found in <langdir>/config-lang.in, and will remain <langdir>
28293 # otherwise.
28294 #
28295 # Except for the language alias (fetched above), the regular
28296 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28297 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28298 # only this and the language alias.
28299
28300 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28301 if [ "$gcc_subdir" = "" ]; then
28302 gcc_subdir="$subdir"
28303 fi
28304
28305 case ",$enable_languages," in
28306 *,$lang_alias,*)
28307 all_selected_languages="$all_selected_languages $lang_alias"
28308 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28309 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28310 fi
28311 ;;
28312 esac
28313
28314 language=
28315 boot_language=
28316 compilers=
28317 outputs=
28318 gtfiles=
28319 subdir_requires=
28320 . ${srcdir}/$gcc_subdir/config-lang.in
28321 if test "x$language" = x
28322 then
28323 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28324 exit 1
28325 fi
28326
28327 ok=:
28328 case ",$enable_languages," in
28329 *,$lang_alias,*) ;;
28330 *)
28331 for i in $subdir_requires; do
28332 test -f "${srcdir}/$i/config-lang.in" && continue
28333 ok=false
28334 break
28335 done
28336 ;;
28337 esac
28338 $ok || continue
28339
28340 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28341 if test -f $srcdir/$gcc_subdir/lang.opt; then
28342 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28343 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28344 fi
28345 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28346 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28347 fi
28348 all_languages="$all_languages $language"
28349 all_compilers="$all_compilers $compilers"
28350 all_outputs="$all_outputs $outputs"
28351 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28352 case ",$enable_languages," in
28353 *,lto,*)
28354
28355 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28356
28357 enable_lto=yes
28358
28359 ;;
28360 *) ;;
28361 esac
28362 done
28363
28364 check_languages=
28365 for language in $all_selected_languages
28366 do
28367 check_languages="$check_languages check-$language"
28368 done
28369
28370 # We link each language in with a set of hooks, reached indirectly via
28371 # lang.${target}. Only do so for selected languages.
28372
28373 rm -f Make-hooks
28374 touch Make-hooks
28375 target_list="all.cross start.encap rest.encap tags \
28376 install-common install-man install-info install-pdf install-html dvi \
28377 pdf html uninstall info man srcextra srcman srcinfo \
28378 mostlyclean clean distclean maintainer-clean install-plugin"
28379
28380 for t in $target_list
28381 do
28382 x=
28383 for lang in $all_selected_languages
28384 do
28385 x="$x $lang.$t"
28386 done
28387 echo "lang.$t: $x" >> Make-hooks
28388 done
28389
28390 # --------
28391 # Option include files
28392 # --------
28393
28394 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28395 option_includes="option-includes.mk"
28396
28397
28398 # --------
28399 # UNSORTED
28400 # --------
28401
28402 # Create .gdbinit.
28403
28404 echo "dir ." > .gdbinit
28405 echo "dir ${srcdir}" >> .gdbinit
28406 if test x$gdb_needs_out_file_path = xyes
28407 then
28408 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28409 fi
28410 if test "x$subdirs" != x; then
28411 for s in $subdirs
28412 do
28413 echo "dir ${srcdir}/$s" >> .gdbinit
28414 done
28415 fi
28416 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28417 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28418
28419 # Put a breakpoint on __asan_report_error to help with debugging buffer
28420 # overflow.
28421 case "$CFLAGS" in
28422 *-fsanitize=address*)
28423 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28424 ;;
28425 esac
28426
28427 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28428
28429
28430
28431 # Find a directory in which to install a shared libgcc.
28432
28433 # Check whether --enable-version-specific-runtime-libs was given.
28434 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28435 enableval=$enable_version_specific_runtime_libs;
28436 fi
28437
28438
28439 # Substitute configuration variables
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502 # Echo link setup.
28503 if test x${build} = x${host} ; then
28504 if test x${host} = x${target} ; then
28505 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28506 else
28507 echo "Links are now set up to build a cross-compiler" 1>&2
28508 echo " from ${host} to ${target}." 1>&2
28509 fi
28510 else
28511 if test x${host} = x${target} ; then
28512 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28513 echo " for ${target}." 1>&2
28514 else
28515 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28516 echo " from ${host} to ${target}." 1>&2
28517 fi
28518 fi
28519
28520
28521
28522
28523
28524
28525 if test "x${ISLLIBS}" != "x" ; then
28526
28527 $as_echo "#define HAVE_isl 1" >>confdefs.h
28528
28529 fi
28530
28531 # Check whether isl_schedule_constraints_compute_schedule is available;
28532 # it's new in ISL-0.13.
28533 # Check whether isl_options_set_schedule_serialize_sccs is available;
28534 # it's new in ISL-0.15.
28535 if test "x${ISLLIBS}" != "x" ; then
28536 saved_CXXFLAGS="$CXXFLAGS"
28537 CXXFLAGS="$CXXFLAGS $ISLINC"
28538 saved_LIBS="$LIBS"
28539 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28540
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28542 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h. */
28545 #include <isl/schedule.h>
28546 int
28547 main ()
28548 {
28549 isl_schedule_constraints_compute_schedule (NULL);
28550 ;
28551 return 0;
28552 }
28553 _ACEOF
28554 if ac_fn_cxx_try_link "$LINENO"; then :
28555 ac_has_isl_schedule_constraints_compute_schedule=yes
28556 else
28557 ac_has_isl_schedule_constraints_compute_schedule=no
28558 fi
28559 rm -f core conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28562 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28563
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28565 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28567 /* end confdefs.h. */
28568 #include <isl/schedule.h>
28569 int
28570 main ()
28571 {
28572 isl_options_set_schedule_serialize_sccs (NULL, 0);
28573 ;
28574 return 0;
28575 }
28576 _ACEOF
28577 if ac_fn_cxx_try_link "$LINENO"; then :
28578 ac_has_isl_options_set_schedule_serialize_sccs=yes
28579 else
28580 ac_has_isl_options_set_schedule_serialize_sccs=no
28581 fi
28582 rm -f core conftest.err conftest.$ac_objext \
28583 conftest$ac_exeext conftest.$ac_ext
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28585 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28586
28587 LIBS="$saved_LIBS"
28588 CXXFLAGS="$saved_CXXFLAGS"
28589
28590 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28591
28592 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28593
28594 fi
28595
28596 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28597
28598 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28599
28600 fi
28601 fi
28602
28603 # Check for plugin support
28604 # Check whether --enable-plugin was given.
28605 if test "${enable_plugin+set}" = set; then :
28606 enableval=$enable_plugin; enable_plugin=$enableval
28607 else
28608 enable_plugin=yes; default_plugin=yes
28609 fi
28610
28611
28612 pluginlibs=
28613
28614 case "${host}" in
28615 *-*-darwin*)
28616 if test x$build = x$host; then
28617 export_sym_check="nm${exeext} -g"
28618 elif test x$host = x$target; then
28619 export_sym_check="$gcc_cv_nm -g"
28620 else
28621 export_sym_check=
28622 fi
28623 ;;
28624 *)
28625 if test x$build = x$host; then
28626 export_sym_check="objdump${exeext} -T"
28627 elif test x$host = x$target; then
28628 export_sym_check="$gcc_cv_objdump -T"
28629 else
28630 export_sym_check=
28631 fi
28632 ;;
28633 esac
28634
28635 if test x"$enable_plugin" = x"yes"; then
28636
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28638 $as_echo_n "checking for exported symbols... " >&6; }
28639 if test "x$export_sym_check" != x; then
28640 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28641 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28642 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28643 : # No need to use a flag
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28645 $as_echo "yes" >&6; }
28646 else
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28648 $as_echo "yes" >&6; }
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28650 $as_echo_n "checking for -rdynamic... " >&6; }
28651 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28652 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28653 plugin_rdynamic=yes
28654 pluginlibs="-rdynamic"
28655 else
28656 plugin_rdynamic=no
28657 enable_plugin=no
28658 fi
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28660 $as_echo "$plugin_rdynamic" >&6; }
28661 fi
28662 else
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28664 $as_echo "unable to check" >&6; }
28665 fi
28666
28667 # Check -ldl
28668 saved_LIBS="$LIBS"
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28670 $as_echo_n "checking for library containing dlopen... " >&6; }
28671 if test "${ac_cv_search_dlopen+set}" = set; then :
28672 $as_echo_n "(cached) " >&6
28673 else
28674 ac_func_search_save_LIBS=$LIBS
28675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28676 /* end confdefs.h. */
28677
28678 /* Override any GCC internal prototype to avoid an error.
28679 Use char because int might match the return type of a GCC
28680 builtin and then its argument prototype would still apply. */
28681 #ifdef __cplusplus
28682 extern "C"
28683 #endif
28684 char dlopen ();
28685 int
28686 main ()
28687 {
28688 return dlopen ();
28689 ;
28690 return 0;
28691 }
28692 _ACEOF
28693 for ac_lib in '' dl; do
28694 if test -z "$ac_lib"; then
28695 ac_res="none required"
28696 else
28697 ac_res=-l$ac_lib
28698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28699 fi
28700 if ac_fn_cxx_try_link "$LINENO"; then :
28701 ac_cv_search_dlopen=$ac_res
28702 fi
28703 rm -f core conftest.err conftest.$ac_objext \
28704 conftest$ac_exeext
28705 if test "${ac_cv_search_dlopen+set}" = set; then :
28706 break
28707 fi
28708 done
28709 if test "${ac_cv_search_dlopen+set}" = set; then :
28710
28711 else
28712 ac_cv_search_dlopen=no
28713 fi
28714 rm conftest.$ac_ext
28715 LIBS=$ac_func_search_save_LIBS
28716 fi
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28718 $as_echo "$ac_cv_search_dlopen" >&6; }
28719 ac_res=$ac_cv_search_dlopen
28720 if test "$ac_res" != no; then :
28721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28722
28723 fi
28724
28725 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28726 pluginlibs="$pluginlibs -ldl"
28727 fi
28728 LIBS="$saved_LIBS"
28729
28730 # Check that we can build shared objects with -fPIC -shared
28731 saved_LDFLAGS="$LDFLAGS"
28732 saved_CFLAGS="$CFLAGS"
28733 case "${host}" in
28734 *-*-darwin*)
28735 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28736 CFLAGS="$CFLAGS -fPIC"
28737 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28738 ;;
28739 *)
28740 CFLAGS="$CFLAGS -fPIC"
28741 LDFLAGS="$LDFLAGS -fPIC -shared"
28742 ;;
28743 esac
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28745 $as_echo_n "checking for -fPIC -shared... " >&6; }
28746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28747 /* end confdefs.h. */
28748 extern int X;
28749 int
28750 main ()
28751 {
28752 return X == 0;
28753 ;
28754 return 0;
28755 }
28756 _ACEOF
28757 if ac_fn_cxx_try_link "$LINENO"; then :
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759 $as_echo "yes" >&6; }; have_pic_shared=yes
28760 else
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 $as_echo "no" >&6; }; have_pic_shared=no
28763 fi
28764 rm -f core conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
28766 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28767 pluginlibs=
28768 enable_plugin=no
28769 fi
28770 LDFLAGS="$saved_LDFLAGS"
28771 CFLAGS="$saved_CFLAGS"
28772
28773 # If plugin support had been requested but not available, fail.
28774 if test x"$enable_plugin" = x"no" ; then
28775 if test x"$default_plugin" != x"yes"; then
28776 as_fn_error "
28777 Building GCC with plugin support requires a host that supports
28778 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28779 fi
28780 fi
28781 fi
28782
28783
28784
28785 if test x"$enable_plugin" = x"yes"; then
28786
28787 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28788
28789 fi
28790
28791
28792 # Enable --enable-host-shared
28793 # Check whether --enable-host-shared was given.
28794 if test "${enable_host_shared+set}" = set; then :
28795 enableval=$enable_host_shared; PICFLAG=-fPIC
28796 else
28797 PICFLAG=
28798 fi
28799
28800
28801
28802
28803
28804 # Check whether --enable-libquadmath-support was given.
28805 if test "${enable_libquadmath_support+set}" = set; then :
28806 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28807 else
28808 ENABLE_LIBQUADMATH_SUPPORT=yes
28809 fi
28810
28811 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28812
28813 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28814
28815 fi
28816
28817
28818 # Specify what hash style to use by default.
28819
28820 # Check whether --with-linker-hash-style was given.
28821 if test "${with_linker_hash_style+set}" = set; then :
28822 withval=$with_linker_hash_style; case x"$withval" in
28823 xsysv)
28824 LINKER_HASH_STYLE=sysv
28825 ;;
28826 xgnu)
28827 LINKER_HASH_STYLE=gnu
28828 ;;
28829 xboth)
28830 LINKER_HASH_STYLE=both
28831 ;;
28832 *)
28833 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28834 ;;
28835 esac
28836 else
28837 LINKER_HASH_STYLE=''
28838 fi
28839
28840 if test x"${LINKER_HASH_STYLE}" != x; then
28841
28842 cat >>confdefs.h <<_ACEOF
28843 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28844 _ACEOF
28845
28846 fi
28847
28848 # Specify what should be the default of -fdiagnostics-color option.
28849
28850 # Check whether --with-diagnostics-color was given.
28851 if test "${with_diagnostics_color+set}" = set; then :
28852 withval=$with_diagnostics_color; case x"$withval" in
28853 xnever)
28854 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28855 ;;
28856 xauto)
28857 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28858 ;;
28859 xauto-if-env)
28860 DIAGNOSTICS_COLOR_DEFAULT=-1
28861 ;;
28862 xalways)
28863 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28864 ;;
28865 *)
28866 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28867 ;;
28868 esac
28869 else
28870 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28871 fi
28872
28873
28874 cat >>confdefs.h <<_ACEOF
28875 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28876 _ACEOF
28877
28878
28879 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28880 # of jit/jit-playback.c.
28881 cat > gcc-driver-name.h <<EOF
28882 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28883 EOF
28884
28885 # Check whether --enable-default-pie was given.
28886 # Check whether --enable-default-pie was given.
28887 if test "${enable_default_pie+set}" = set; then :
28888 enableval=$enable_default_pie; enable_default_pie=$enableval
28889 else
28890 enable_default_pie=no
28891 fi
28892
28893 if test x$enable_default_pie == xyes ; then
28894
28895 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28896
28897 fi
28898
28899
28900 # Check if -fno-PIE works.
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28902 $as_echo_n "checking for -fno-PIE option... " >&6; }
28903 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28904 $as_echo_n "(cached) " >&6
28905 else
28906 saved_CXXFLAGS="$CXXFLAGS"
28907 CXXFLAGS="$CXXFLAGS -fno-PIE"
28908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909 /* end confdefs.h. */
28910 int main(void) {return 0;}
28911 _ACEOF
28912 if ac_fn_cxx_try_compile "$LINENO"; then :
28913 gcc_cv_c_no_fpie=yes
28914 else
28915 gcc_cv_c_no_fpie=no
28916 fi
28917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918 CXXFLAGS="$saved_CXXFLAGS"
28919 fi
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28921 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28922 if test "$gcc_cv_c_no_fpie" = "yes"; then
28923 NO_PIE_CFLAGS="-fno-PIE"
28924 fi
28925
28926
28927 # Check if -no-pie works.
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28929 $as_echo_n "checking for -no-pie option... " >&6; }
28930 if test "${gcc_cv_no_pie+set}" = set; then :
28931 $as_echo_n "(cached) " >&6
28932 else
28933 saved_LDFLAGS="$LDFLAGS"
28934 LDFLAGS="$LDFLAGS -no-pie"
28935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28936 /* end confdefs.h. */
28937 int main(void) {return 0;}
28938 _ACEOF
28939 if ac_fn_cxx_try_link "$LINENO"; then :
28940 gcc_cv_no_pie=yes
28941 else
28942 gcc_cv_no_pie=no
28943 fi
28944 rm -f core conftest.err conftest.$ac_objext \
28945 conftest$ac_exeext conftest.$ac_ext
28946 LDFLAGS="$saved_LDFLAGS"
28947 fi
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28949 $as_echo "$gcc_cv_no_pie" >&6; }
28950 if test "$gcc_cv_no_pie" = "yes"; then
28951 NO_PIE_FLAG="-no-pie"
28952 fi
28953
28954
28955 # Check linker supports '-z bndplt'
28956 ld_bndplt_support=no
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28958 $as_echo_n "checking linker -z bndplt option... " >&6; }
28959 if test x"$ld_is_gold" = xno; then
28960 if test $in_tree_ld = yes ; then
28961 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28962 ld_bndplt_support=yes
28963 fi
28964 elif test x$gcc_cv_ld != x; then
28965 # Check if linker supports -a bndplt option
28966 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
28967 ld_bndplt_support=yes
28968 fi
28969 fi
28970 fi
28971 if test x"$ld_bndplt_support" = xyes; then
28972
28973 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28974
28975 fi
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28977 $as_echo "$ld_bndplt_support" >&6; }
28978
28979 # Configure the subdirectories
28980 # AC_CONFIG_SUBDIRS($subdirs)
28981
28982 # Create the Makefile
28983 # and configure language subdirectories
28984 ac_config_files="$ac_config_files $all_outputs"
28985
28986
28987 ac_config_commands="$ac_config_commands default"
28988
28989 cat >confcache <<\_ACEOF
28990 # This file is a shell script that caches the results of configure
28991 # tests run on this system so they can be shared between configure
28992 # scripts and configure runs, see configure's option --config-cache.
28993 # It is not useful on other systems. If it contains results you don't
28994 # want to keep, you may remove or edit it.
28995 #
28996 # config.status only pays attention to the cache file if you give it
28997 # the --recheck option to rerun configure.
28998 #
28999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29001 # following values.
29002
29003 _ACEOF
29004
29005 # The following way of writing the cache mishandles newlines in values,
29006 # but we know of no workaround that is simple, portable, and efficient.
29007 # So, we kill variables containing newlines.
29008 # Ultrix sh set writes to stderr and can't be redirected directly,
29009 # and sets the high bit in the cache file unless we assign to the vars.
29010 (
29011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29012 eval ac_val=\$$ac_var
29013 case $ac_val in #(
29014 *${as_nl}*)
29015 case $ac_var in #(
29016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29018 esac
29019 case $ac_var in #(
29020 _ | IFS | as_nl) ;; #(
29021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29022 *) { eval $ac_var=; unset $ac_var;} ;;
29023 esac ;;
29024 esac
29025 done
29026
29027 (set) 2>&1 |
29028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29029 *${as_nl}ac_space=\ *)
29030 # `set' does not quote correctly, so add quotes: double-quote
29031 # substitution turns \\\\ into \\, and sed turns \\ into \.
29032 sed -n \
29033 "s/'/'\\\\''/g;
29034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29035 ;; #(
29036 *)
29037 # `set' quotes correctly as required by POSIX, so do not add quotes.
29038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29039 ;;
29040 esac |
29041 sort
29042 ) |
29043 sed '
29044 /^ac_cv_env_/b end
29045 t clear
29046 :clear
29047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29048 t end
29049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29050 :end' >>confcache
29051 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29052 if test -w "$cache_file"; then
29053 test "x$cache_file" != "x/dev/null" &&
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29055 $as_echo "$as_me: updating cache $cache_file" >&6;}
29056 cat confcache >$cache_file
29057 else
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29060 fi
29061 fi
29062 rm -f confcache
29063
29064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29065 # Let make expand exec_prefix.
29066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29067
29068 DEFS=-DHAVE_CONFIG_H
29069
29070 ac_libobjs=
29071 ac_ltlibobjs=
29072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29073 # 1. Remove the extension, and $U if already installed.
29074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29077 # will be set to the directory where LIBOBJS objects are built.
29078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29080 done
29081 LIBOBJS=$ac_libobjs
29082
29083 LTLIBOBJS=$ac_ltlibobjs
29084
29085
29086
29087
29088 : ${CONFIG_STATUS=./config.status}
29089 ac_write_fail=0
29090 ac_clean_files_save=$ac_clean_files
29091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29094 as_write_fail=0
29095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29096 #! $SHELL
29097 # Generated by $as_me.
29098 # Run this file to recreate the current configuration.
29099 # Compiler output produced by configure, useful for debugging
29100 # configure, is in config.log if it exists.
29101
29102 debug=false
29103 ac_cs_recheck=false
29104 ac_cs_silent=false
29105
29106 SHELL=\${CONFIG_SHELL-$SHELL}
29107 export SHELL
29108 _ASEOF
29109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29110 ## -------------------- ##
29111 ## M4sh Initialization. ##
29112 ## -------------------- ##
29113
29114 # Be more Bourne compatible
29115 DUALCASE=1; export DUALCASE # for MKS sh
29116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29117 emulate sh
29118 NULLCMD=:
29119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29120 # is contrary to our usage. Disable this feature.
29121 alias -g '${1+"$@"}'='"$@"'
29122 setopt NO_GLOB_SUBST
29123 else
29124 case `(set -o) 2>/dev/null` in #(
29125 *posix*) :
29126 set -o posix ;; #(
29127 *) :
29128 ;;
29129 esac
29130 fi
29131
29132
29133 as_nl='
29134 '
29135 export as_nl
29136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29140 # Prefer a ksh shell builtin over an external printf program on Solaris,
29141 # but without wasting forks for bash or zsh.
29142 if test -z "$BASH_VERSION$ZSH_VERSION" \
29143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29144 as_echo='print -r --'
29145 as_echo_n='print -rn --'
29146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29147 as_echo='printf %s\n'
29148 as_echo_n='printf %s'
29149 else
29150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29152 as_echo_n='/usr/ucb/echo -n'
29153 else
29154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29155 as_echo_n_body='eval
29156 arg=$1;
29157 case $arg in #(
29158 *"$as_nl"*)
29159 expr "X$arg" : "X\\(.*\\)$as_nl";
29160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29161 esac;
29162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29163 '
29164 export as_echo_n_body
29165 as_echo_n='sh -c $as_echo_n_body as_echo'
29166 fi
29167 export as_echo_body
29168 as_echo='sh -c $as_echo_body as_echo'
29169 fi
29170
29171 # The user is always right.
29172 if test "${PATH_SEPARATOR+set}" != set; then
29173 PATH_SEPARATOR=:
29174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29176 PATH_SEPARATOR=';'
29177 }
29178 fi
29179
29180
29181 # IFS
29182 # We need space, tab and new line, in precisely that order. Quoting is
29183 # there to prevent editors from complaining about space-tab.
29184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29185 # splitting by setting IFS to empty value.)
29186 IFS=" "" $as_nl"
29187
29188 # Find who we are. Look in the path if we contain no directory separator.
29189 case $0 in #((
29190 *[\\/]* ) as_myself=$0 ;;
29191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29192 for as_dir in $PATH
29193 do
29194 IFS=$as_save_IFS
29195 test -z "$as_dir" && as_dir=.
29196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29197 done
29198 IFS=$as_save_IFS
29199
29200 ;;
29201 esac
29202 # We did not find ourselves, most probably we were run as `sh COMMAND'
29203 # in which case we are not to be found in the path.
29204 if test "x$as_myself" = x; then
29205 as_myself=$0
29206 fi
29207 if test ! -f "$as_myself"; then
29208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29209 exit 1
29210 fi
29211
29212 # Unset variables that we do not need and which cause bugs (e.g. in
29213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29214 # suppresses any "Segmentation fault" message there. '((' could
29215 # trigger a bug in pdksh 5.2.14.
29216 for as_var in BASH_ENV ENV MAIL MAILPATH
29217 do eval test x\${$as_var+set} = xset \
29218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29219 done
29220 PS1='$ '
29221 PS2='> '
29222 PS4='+ '
29223
29224 # NLS nuisances.
29225 LC_ALL=C
29226 export LC_ALL
29227 LANGUAGE=C
29228 export LANGUAGE
29229
29230 # CDPATH.
29231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29232
29233
29234 # as_fn_error ERROR [LINENO LOG_FD]
29235 # ---------------------------------
29236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29238 # script with status $?, using 1 if that was 0.
29239 as_fn_error ()
29240 {
29241 as_status=$?; test $as_status -eq 0 && as_status=1
29242 if test "$3"; then
29243 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29245 fi
29246 $as_echo "$as_me: error: $1" >&2
29247 as_fn_exit $as_status
29248 } # as_fn_error
29249
29250
29251 # as_fn_set_status STATUS
29252 # -----------------------
29253 # Set $? to STATUS, without forking.
29254 as_fn_set_status ()
29255 {
29256 return $1
29257 } # as_fn_set_status
29258
29259 # as_fn_exit STATUS
29260 # -----------------
29261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29262 as_fn_exit ()
29263 {
29264 set +e
29265 as_fn_set_status $1
29266 exit $1
29267 } # as_fn_exit
29268
29269 # as_fn_unset VAR
29270 # ---------------
29271 # Portably unset VAR.
29272 as_fn_unset ()
29273 {
29274 { eval $1=; unset $1;}
29275 }
29276 as_unset=as_fn_unset
29277 # as_fn_append VAR VALUE
29278 # ----------------------
29279 # Append the text in VALUE to the end of the definition contained in VAR. Take
29280 # advantage of any shell optimizations that allow amortized linear growth over
29281 # repeated appends, instead of the typical quadratic growth present in naive
29282 # implementations.
29283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29284 eval 'as_fn_append ()
29285 {
29286 eval $1+=\$2
29287 }'
29288 else
29289 as_fn_append ()
29290 {
29291 eval $1=\$$1\$2
29292 }
29293 fi # as_fn_append
29294
29295 # as_fn_arith ARG...
29296 # ------------------
29297 # Perform arithmetic evaluation on the ARGs, and store the result in the
29298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29299 # must be portable across $(()) and expr.
29300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29301 eval 'as_fn_arith ()
29302 {
29303 as_val=$(( $* ))
29304 }'
29305 else
29306 as_fn_arith ()
29307 {
29308 as_val=`expr "$@" || test $? -eq 1`
29309 }
29310 fi # as_fn_arith
29311
29312
29313 if expr a : '\(a\)' >/dev/null 2>&1 &&
29314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29315 as_expr=expr
29316 else
29317 as_expr=false
29318 fi
29319
29320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29321 as_basename=basename
29322 else
29323 as_basename=false
29324 fi
29325
29326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29327 as_dirname=dirname
29328 else
29329 as_dirname=false
29330 fi
29331
29332 as_me=`$as_basename -- "$0" ||
29333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29334 X"$0" : 'X\(//\)$' \| \
29335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29336 $as_echo X/"$0" |
29337 sed '/^.*\/\([^/][^/]*\)\/*$/{
29338 s//\1/
29339 q
29340 }
29341 /^X\/\(\/\/\)$/{
29342 s//\1/
29343 q
29344 }
29345 /^X\/\(\/\).*/{
29346 s//\1/
29347 q
29348 }
29349 s/.*/./; q'`
29350
29351 # Avoid depending upon Character Ranges.
29352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29355 as_cr_digits='0123456789'
29356 as_cr_alnum=$as_cr_Letters$as_cr_digits
29357
29358 ECHO_C= ECHO_N= ECHO_T=
29359 case `echo -n x` in #(((((
29360 -n*)
29361 case `echo 'xy\c'` in
29362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29363 xy) ECHO_C='\c';;
29364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29365 ECHO_T=' ';;
29366 esac;;
29367 *)
29368 ECHO_N='-n';;
29369 esac
29370
29371 rm -f conf$$ conf$$.exe conf$$.file
29372 if test -d conf$$.dir; then
29373 rm -f conf$$.dir/conf$$.file
29374 else
29375 rm -f conf$$.dir
29376 mkdir conf$$.dir 2>/dev/null
29377 fi
29378 if (echo >conf$$.file) 2>/dev/null; then
29379 if ln -s conf$$.file conf$$ 2>/dev/null; then
29380 as_ln_s='ln -s'
29381 # ... but there are two gotchas:
29382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29384 # In both cases, we have to default to `cp -p'.
29385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29386 as_ln_s='cp -p'
29387 elif ln conf$$.file conf$$ 2>/dev/null; then
29388 as_ln_s=ln
29389 else
29390 as_ln_s='cp -p'
29391 fi
29392 else
29393 as_ln_s='cp -p'
29394 fi
29395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29396 rmdir conf$$.dir 2>/dev/null
29397
29398
29399 # as_fn_mkdir_p
29400 # -------------
29401 # Create "$as_dir" as a directory, including parents if necessary.
29402 as_fn_mkdir_p ()
29403 {
29404
29405 case $as_dir in #(
29406 -*) as_dir=./$as_dir;;
29407 esac
29408 test -d "$as_dir" || eval $as_mkdir_p || {
29409 as_dirs=
29410 while :; do
29411 case $as_dir in #(
29412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29413 *) as_qdir=$as_dir;;
29414 esac
29415 as_dirs="'$as_qdir' $as_dirs"
29416 as_dir=`$as_dirname -- "$as_dir" ||
29417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29418 X"$as_dir" : 'X\(//\)[^/]' \| \
29419 X"$as_dir" : 'X\(//\)$' \| \
29420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29421 $as_echo X"$as_dir" |
29422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29423 s//\1/
29424 q
29425 }
29426 /^X\(\/\/\)[^/].*/{
29427 s//\1/
29428 q
29429 }
29430 /^X\(\/\/\)$/{
29431 s//\1/
29432 q
29433 }
29434 /^X\(\/\).*/{
29435 s//\1/
29436 q
29437 }
29438 s/.*/./; q'`
29439 test -d "$as_dir" && break
29440 done
29441 test -z "$as_dirs" || eval "mkdir $as_dirs"
29442 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29443
29444
29445 } # as_fn_mkdir_p
29446 if mkdir -p . 2>/dev/null; then
29447 as_mkdir_p='mkdir -p "$as_dir"'
29448 else
29449 test -d ./-p && rmdir ./-p
29450 as_mkdir_p=false
29451 fi
29452
29453 if test -x / >/dev/null 2>&1; then
29454 as_test_x='test -x'
29455 else
29456 if ls -dL / >/dev/null 2>&1; then
29457 as_ls_L_option=L
29458 else
29459 as_ls_L_option=
29460 fi
29461 as_test_x='
29462 eval sh -c '\''
29463 if test -d "$1"; then
29464 test -d "$1/.";
29465 else
29466 case $1 in #(
29467 -*)set "./$1";;
29468 esac;
29469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29470 ???[sx]*):;;*)false;;esac;fi
29471 '\'' sh
29472 '
29473 fi
29474 as_executable_p=$as_test_x
29475
29476 # Sed expression to map a string onto a valid CPP name.
29477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29478
29479 # Sed expression to map a string onto a valid variable name.
29480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29481
29482
29483 exec 6>&1
29484 ## ----------------------------------- ##
29485 ## Main body of $CONFIG_STATUS script. ##
29486 ## ----------------------------------- ##
29487 _ASEOF
29488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29489
29490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29491 # Save the log message, to keep $0 and so on meaningful, and to
29492 # report actual input values of CONFIG_FILES etc. instead of their
29493 # values after options handling.
29494 ac_log="
29495 This file was extended by $as_me, which was
29496 generated by GNU Autoconf 2.64. Invocation command line was
29497
29498 CONFIG_FILES = $CONFIG_FILES
29499 CONFIG_HEADERS = $CONFIG_HEADERS
29500 CONFIG_LINKS = $CONFIG_LINKS
29501 CONFIG_COMMANDS = $CONFIG_COMMANDS
29502 $ $0 $@
29503
29504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29505 "
29506
29507 _ACEOF
29508
29509 case $ac_config_files in *"
29510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29511 esac
29512
29513 case $ac_config_headers in *"
29514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29515 esac
29516
29517
29518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29519 # Files that config.status was made for.
29520 config_files="$ac_config_files"
29521 config_headers="$ac_config_headers"
29522 config_links="$ac_config_links"
29523 config_commands="$ac_config_commands"
29524
29525 _ACEOF
29526
29527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29528 ac_cs_usage="\
29529 \`$as_me' instantiates files and other configuration actions
29530 from templates according to the current configuration. Unless the files
29531 and actions are specified as TAGs, all are instantiated by default.
29532
29533 Usage: $0 [OPTION]... [TAG]...
29534
29535 -h, --help print this help, then exit
29536 -V, --version print version number and configuration settings, then exit
29537 -q, --quiet, --silent
29538 do not print progress messages
29539 -d, --debug don't remove temporary files
29540 --recheck update $as_me by reconfiguring in the same conditions
29541 --file=FILE[:TEMPLATE]
29542 instantiate the configuration file FILE
29543 --header=FILE[:TEMPLATE]
29544 instantiate the configuration header FILE
29545
29546 Configuration files:
29547 $config_files
29548
29549 Configuration headers:
29550 $config_headers
29551
29552 Configuration links:
29553 $config_links
29554
29555 Configuration commands:
29556 $config_commands
29557
29558 Report bugs to the package provider."
29559
29560 _ACEOF
29561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29562 ac_cs_version="\\
29563 config.status
29564 configured by $0, generated by GNU Autoconf 2.64,
29565 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29566
29567 Copyright (C) 2009 Free Software Foundation, Inc.
29568 This config.status script is free software; the Free Software Foundation
29569 gives unlimited permission to copy, distribute and modify it."
29570
29571 ac_pwd='$ac_pwd'
29572 srcdir='$srcdir'
29573 AWK='$AWK'
29574 test -n "\$AWK" || AWK=awk
29575 _ACEOF
29576
29577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29578 # The default lists apply if the user does not specify any file.
29579 ac_need_defaults=:
29580 while test $# != 0
29581 do
29582 case $1 in
29583 --*=*)
29584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29586 ac_shift=:
29587 ;;
29588 *)
29589 ac_option=$1
29590 ac_optarg=$2
29591 ac_shift=shift
29592 ;;
29593 esac
29594
29595 case $ac_option in
29596 # Handling of the options.
29597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29598 ac_cs_recheck=: ;;
29599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29600 $as_echo "$ac_cs_version"; exit ;;
29601 --debug | --debu | --deb | --de | --d | -d )
29602 debug=: ;;
29603 --file | --fil | --fi | --f )
29604 $ac_shift
29605 case $ac_optarg in
29606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29607 esac
29608 as_fn_append CONFIG_FILES " '$ac_optarg'"
29609 ac_need_defaults=false;;
29610 --header | --heade | --head | --hea )
29611 $ac_shift
29612 case $ac_optarg in
29613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29614 esac
29615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29616 ac_need_defaults=false;;
29617 --he | --h)
29618 # Conflict between --help and --header
29619 as_fn_error "ambiguous option: \`$1'
29620 Try \`$0 --help' for more information.";;
29621 --help | --hel | -h )
29622 $as_echo "$ac_cs_usage"; exit ;;
29623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29625 ac_cs_silent=: ;;
29626
29627 # This is an error.
29628 -*) as_fn_error "unrecognized option: \`$1'
29629 Try \`$0 --help' for more information." ;;
29630
29631 *) as_fn_append ac_config_targets " $1"
29632 ac_need_defaults=false ;;
29633
29634 esac
29635 shift
29636 done
29637
29638 ac_configure_extra_args=
29639
29640 if $ac_cs_silent; then
29641 exec 6>/dev/null
29642 ac_configure_extra_args="$ac_configure_extra_args --silent"
29643 fi
29644
29645 _ACEOF
29646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29647 if \$ac_cs_recheck; then
29648 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29649 shift
29650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29651 CONFIG_SHELL='$SHELL'
29652 export CONFIG_SHELL
29653 exec "\$@"
29654 fi
29655
29656 _ACEOF
29657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29658 exec 5>>config.log
29659 {
29660 echo
29661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29662 ## Running $as_me. ##
29663 _ASBOX
29664 $as_echo "$ac_log"
29665 } >&5
29666
29667 _ACEOF
29668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29669 #
29670 # INIT-COMMANDS
29671 #
29672 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29673 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29674 subdirs='$subdirs'
29675
29676 _ACEOF
29677
29678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29679
29680 # Handling of arguments.
29681 for ac_config_target in $ac_config_targets
29682 do
29683 case $ac_config_target in
29684 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29685 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29686 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29687 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29688 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29689 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29690 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29691 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29692 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29693
29694 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29695 esac
29696 done
29697
29698
29699 # If the user did not use the arguments to specify the items to instantiate,
29700 # then the envvar interface is used. Set only those that are not.
29701 # We use the long form for the default assignment because of an extremely
29702 # bizarre bug on SunOS 4.1.3.
29703 if $ac_need_defaults; then
29704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29706 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29708 fi
29709
29710 # Have a temporary directory for convenience. Make it in the build tree
29711 # simply because there is no reason against having it here, and in addition,
29712 # creating and moving files from /tmp can sometimes cause problems.
29713 # Hook for its removal unless debugging.
29714 # Note that there is a small window in which the directory will not be cleaned:
29715 # after its creation but before its name has been assigned to `$tmp'.
29716 $debug ||
29717 {
29718 tmp=
29719 trap 'exit_status=$?
29720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29721 ' 0
29722 trap 'as_fn_exit 1' 1 2 13 15
29723 }
29724 # Create a (secure) tmp directory for tmp files.
29725
29726 {
29727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29728 test -n "$tmp" && test -d "$tmp"
29729 } ||
29730 {
29731 tmp=./conf$$-$RANDOM
29732 (umask 077 && mkdir "$tmp")
29733 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29734
29735 # Set up the scripts for CONFIG_FILES section.
29736 # No need to generate them if there are no CONFIG_FILES.
29737 # This happens for instance with `./config.status config.h'.
29738 if test -n "$CONFIG_FILES"; then
29739
29740 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29741 ac_cs_awk_getline=:
29742 ac_cs_awk_pipe_init=
29743 ac_cs_awk_read_file='
29744 while ((getline aline < (F[key])) > 0)
29745 print(aline)
29746 close(F[key])'
29747 ac_cs_awk_pipe_fini=
29748 else
29749 ac_cs_awk_getline=false
29750 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29751 ac_cs_awk_read_file='
29752 print "|#_!!_#|"
29753 print "cat " F[key] " &&"
29754 '$ac_cs_awk_pipe_init
29755 # The final `:' finishes the AND list.
29756 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29757 fi
29758 ac_cr=`echo X | tr X '\015'`
29759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29760 # But we know of no other shell where ac_cr would be empty at this
29761 # point, so we can use a bashism as a fallback.
29762 if test "x$ac_cr" = x; then
29763 eval ac_cr=\$\'\\r\'
29764 fi
29765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29767 ac_cs_awk_cr='\r'
29768 else
29769 ac_cs_awk_cr=$ac_cr
29770 fi
29771
29772 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29773 _ACEOF
29774
29775 # Create commands to substitute file output variables.
29776 {
29777 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29778 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29779 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29780 echo "_ACAWK" &&
29781 echo "_ACEOF"
29782 } >conf$$files.sh &&
29783 . ./conf$$files.sh ||
29784 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29785 rm -f conf$$files.sh
29786
29787 {
29788 echo "cat >conf$$subs.awk <<_ACEOF" &&
29789 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29790 echo "_ACEOF"
29791 } >conf$$subs.sh ||
29792 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29793 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29794 ac_delim='%!_!# '
29795 for ac_last_try in false false false false false :; do
29796 . ./conf$$subs.sh ||
29797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29798
29799 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29800 if test $ac_delim_n = $ac_delim_num; then
29801 break
29802 elif $ac_last_try; then
29803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29804 else
29805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29806 fi
29807 done
29808 rm -f conf$$subs.sh
29809
29810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29811 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29812 _ACEOF
29813 sed -n '
29814 h
29815 s/^/S["/; s/!.*/"]=/
29816 p
29817 g
29818 s/^[^!]*!//
29819 :repl
29820 t repl
29821 s/'"$ac_delim"'$//
29822 t delim
29823 :nl
29824 h
29825 s/\(.\{148\}\).*/\1/
29826 t more1
29827 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29828 p
29829 n
29830 b repl
29831 :more1
29832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29833 p
29834 g
29835 s/.\{148\}//
29836 t nl
29837 :delim
29838 h
29839 s/\(.\{148\}\).*/\1/
29840 t more2
29841 s/["\\]/\\&/g; s/^/"/; s/$/"/
29842 p
29843 b
29844 :more2
29845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29846 p
29847 g
29848 s/.\{148\}//
29849 t delim
29850 ' <conf$$subs.awk | sed '
29851 /^[^""]/{
29852 N
29853 s/\n//
29854 }
29855 ' >>$CONFIG_STATUS || ac_write_fail=1
29856 rm -f conf$$subs.awk
29857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29858 _ACAWK
29859 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29860 for (key in S) S_is_set[key] = 1
29861 FS = "\a"
29862 \$ac_cs_awk_pipe_init
29863 }
29864 {
29865 line = $ 0
29866 nfields = split(line, field, "@")
29867 substed = 0
29868 len = length(field[1])
29869 for (i = 2; i < nfields; i++) {
29870 key = field[i]
29871 keylen = length(key)
29872 if (S_is_set[key]) {
29873 value = S[key]
29874 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29875 len += length(value) + length(field[++i])
29876 substed = 1
29877 } else
29878 len += 1 + keylen
29879 }
29880 if (nfields == 3 && !substed) {
29881 key = field[2]
29882 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29883 \$ac_cs_awk_read_file
29884 next
29885 }
29886 }
29887 print line
29888 }
29889 \$ac_cs_awk_pipe_fini
29890 _ACAWK
29891 _ACEOF
29892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29893 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29895 else
29896 cat
29897 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29898 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29899 _ACEOF
29900
29901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29903 # trailing colons and then remove the whole line if VPATH becomes empty
29904 # (actually we leave an empty line to preserve line numbers).
29905 if test "x$srcdir" = x.; then
29906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29907 s/:*\$(srcdir):*/:/
29908 s/:*\${srcdir}:*/:/
29909 s/:*@srcdir@:*/:/
29910 s/^\([^=]*=[ ]*\):*/\1/
29911 s/:*$//
29912 s/^[^=]*=[ ]*$//
29913 }'
29914 fi
29915
29916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29917 fi # test -n "$CONFIG_FILES"
29918
29919 # Set up the scripts for CONFIG_HEADERS section.
29920 # No need to generate them if there are no CONFIG_HEADERS.
29921 # This happens for instance with `./config.status Makefile'.
29922 if test -n "$CONFIG_HEADERS"; then
29923 cat >"$tmp/defines.awk" <<\_ACAWK ||
29924 BEGIN {
29925 _ACEOF
29926
29927 # Transform confdefs.h into an awk script `defines.awk', embedded as
29928 # here-document in config.status, that substitutes the proper values into
29929 # config.h.in to produce config.h.
29930
29931 # Create a delimiter string that does not exist in confdefs.h, to ease
29932 # handling of long lines.
29933 ac_delim='%!_!# '
29934 for ac_last_try in false false :; do
29935 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29936 if test -z "$ac_t"; then
29937 break
29938 elif $ac_last_try; then
29939 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29940 else
29941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29942 fi
29943 done
29944
29945 # For the awk script, D is an array of macro values keyed by name,
29946 # likewise P contains macro parameters if any. Preserve backslash
29947 # newline sequences.
29948
29949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29950 sed -n '
29951 s/.\{148\}/&'"$ac_delim"'/g
29952 t rset
29953 :rset
29954 s/^[ ]*#[ ]*define[ ][ ]*/ /
29955 t def
29956 d
29957 :def
29958 s/\\$//
29959 t bsnl
29960 s/["\\]/\\&/g
29961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29962 D["\1"]=" \3"/p
29963 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29964 d
29965 :bsnl
29966 s/["\\]/\\&/g
29967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29968 D["\1"]=" \3\\\\\\n"\\/p
29969 t cont
29970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29971 t cont
29972 d
29973 :cont
29974 n
29975 s/.\{148\}/&'"$ac_delim"'/g
29976 t clear
29977 :clear
29978 s/\\$//
29979 t bsnlc
29980 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29981 d
29982 :bsnlc
29983 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29984 b cont
29985 ' <confdefs.h | sed '
29986 s/'"$ac_delim"'/"\\\
29987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29988
29989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29990 for (key in D) D_is_set[key] = 1
29991 FS = "\a"
29992 }
29993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29994 line = \$ 0
29995 split(line, arg, " ")
29996 if (arg[1] == "#") {
29997 defundef = arg[2]
29998 mac1 = arg[3]
29999 } else {
30000 defundef = substr(arg[1], 2)
30001 mac1 = arg[2]
30002 }
30003 split(mac1, mac2, "(") #)
30004 macro = mac2[1]
30005 prefix = substr(line, 1, index(line, defundef) - 1)
30006 if (D_is_set[macro]) {
30007 # Preserve the white space surrounding the "#".
30008 print prefix "define", macro P[macro] D[macro]
30009 next
30010 } else {
30011 # Replace #undef with comments. This is necessary, for example,
30012 # in the case of _POSIX_SOURCE, which is predefined and required
30013 # on some systems where configure will not decide to define it.
30014 if (defundef == "undef") {
30015 print "/*", prefix defundef, macro, "*/"
30016 next
30017 }
30018 }
30019 }
30020 { print }
30021 _ACAWK
30022 _ACEOF
30023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30024 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30025 fi # test -n "$CONFIG_HEADERS"
30026
30027
30028 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30029 shift
30030 for ac_tag
30031 do
30032 case $ac_tag in
30033 :[FHLC]) ac_mode=$ac_tag; continue;;
30034 esac
30035 case $ac_mode$ac_tag in
30036 :[FHL]*:*);;
30037 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30038 :[FH]-) ac_tag=-:-;;
30039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30040 esac
30041 ac_save_IFS=$IFS
30042 IFS=:
30043 set x $ac_tag
30044 IFS=$ac_save_IFS
30045 shift
30046 ac_file=$1
30047 shift
30048
30049 case $ac_mode in
30050 :L) ac_source=$1;;
30051 :[FH])
30052 ac_file_inputs=
30053 for ac_f
30054 do
30055 case $ac_f in
30056 -) ac_f="$tmp/stdin";;
30057 *) # Look for the file first in the build tree, then in the source tree
30058 # (if the path is not absolute). The absolute path cannot be DOS-style,
30059 # because $ac_f cannot contain `:'.
30060 test -f "$ac_f" ||
30061 case $ac_f in
30062 [\\/$]*) false;;
30063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30064 esac ||
30065 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30066 esac
30067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30068 as_fn_append ac_file_inputs " '$ac_f'"
30069 done
30070
30071 # Let's still pretend it is `configure' which instantiates (i.e., don't
30072 # use $as_me), people would be surprised to read:
30073 # /* config.h. Generated by config.status. */
30074 configure_input='Generated from '`
30075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30076 `' by configure.'
30077 if test x"$ac_file" != x-; then
30078 configure_input="$ac_file. $configure_input"
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30080 $as_echo "$as_me: creating $ac_file" >&6;}
30081 fi
30082 # Neutralize special characters interpreted by sed in replacement strings.
30083 case $configure_input in #(
30084 *\&* | *\|* | *\\* )
30085 ac_sed_conf_input=`$as_echo "$configure_input" |
30086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30087 *) ac_sed_conf_input=$configure_input;;
30088 esac
30089
30090 case $ac_tag in
30091 *:-:* | *:-) cat >"$tmp/stdin" \
30092 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30093 esac
30094 ;;
30095 esac
30096
30097 ac_dir=`$as_dirname -- "$ac_file" ||
30098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30099 X"$ac_file" : 'X\(//\)[^/]' \| \
30100 X"$ac_file" : 'X\(//\)$' \| \
30101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30102 $as_echo X"$ac_file" |
30103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30104 s//\1/
30105 q
30106 }
30107 /^X\(\/\/\)[^/].*/{
30108 s//\1/
30109 q
30110 }
30111 /^X\(\/\/\)$/{
30112 s//\1/
30113 q
30114 }
30115 /^X\(\/\).*/{
30116 s//\1/
30117 q
30118 }
30119 s/.*/./; q'`
30120 as_dir="$ac_dir"; as_fn_mkdir_p
30121 ac_builddir=.
30122
30123 case "$ac_dir" in
30124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30125 *)
30126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30127 # A ".." for each directory in $ac_dir_suffix.
30128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30129 case $ac_top_builddir_sub in
30130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30132 esac ;;
30133 esac
30134 ac_abs_top_builddir=$ac_pwd
30135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30136 # for backward compatibility:
30137 ac_top_builddir=$ac_top_build_prefix
30138
30139 case $srcdir in
30140 .) # We are building in place.
30141 ac_srcdir=.
30142 ac_top_srcdir=$ac_top_builddir_sub
30143 ac_abs_top_srcdir=$ac_pwd ;;
30144 [\\/]* | ?:[\\/]* ) # Absolute name.
30145 ac_srcdir=$srcdir$ac_dir_suffix;
30146 ac_top_srcdir=$srcdir
30147 ac_abs_top_srcdir=$srcdir ;;
30148 *) # Relative name.
30149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30150 ac_top_srcdir=$ac_top_build_prefix$srcdir
30151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30152 esac
30153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30154
30155
30156 case $ac_mode in
30157 :F)
30158 #
30159 # CONFIG_FILE
30160 #
30161
30162 _ACEOF
30163
30164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30165 # If the template does not know about datarootdir, expand it.
30166 # FIXME: This hack should be removed a few years after 2.60.
30167 ac_datarootdir_hack=; ac_datarootdir_seen=
30168 ac_sed_dataroot='
30169 /datarootdir/ {
30170 p
30171 q
30172 }
30173 /@datadir@/p
30174 /@docdir@/p
30175 /@infodir@/p
30176 /@localedir@/p
30177 /@mandir@/p'
30178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30179 *datarootdir*) ac_datarootdir_seen=yes;;
30180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30183 _ACEOF
30184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30185 ac_datarootdir_hack='
30186 s&@datadir@&$datadir&g
30187 s&@docdir@&$docdir&g
30188 s&@infodir@&$infodir&g
30189 s&@localedir@&$localedir&g
30190 s&@mandir@&$mandir&g
30191 s&\\\${datarootdir}&$datarootdir&g' ;;
30192 esac
30193 _ACEOF
30194
30195 # Neutralize VPATH when `$srcdir' = `.'.
30196 # Shell code in configure.ac might set extrasub.
30197 # FIXME: do we really want to maintain this feature?
30198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30199 ac_sed_extra="$ac_vpsub
30200 $extrasub
30201 _ACEOF
30202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30203 :t
30204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30205 s|@configure_input@|$ac_sed_conf_input|;t t
30206 s&@top_builddir@&$ac_top_builddir_sub&;t t
30207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30208 s&@srcdir@&$ac_srcdir&;t t
30209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30210 s&@top_srcdir@&$ac_top_srcdir&;t t
30211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30212 s&@builddir@&$ac_builddir&;t t
30213 s&@abs_builddir@&$ac_abs_builddir&;t t
30214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30215 $ac_datarootdir_hack
30216 "
30217 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30218 if $ac_cs_awk_getline; then
30219 $AWK -f "$tmp/subs.awk"
30220 else
30221 $AWK -f "$tmp/subs.awk" | $SHELL
30222 fi >$tmp/out \
30223 || as_fn_error "could not create $ac_file" "$LINENO" 5
30224
30225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30226 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30229 which seems to be undefined. Please make sure it is defined." >&5
30230 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30231 which seems to be undefined. Please make sure it is defined." >&2;}
30232
30233 rm -f "$tmp/stdin"
30234 case $ac_file in
30235 -) cat "$tmp/out" && rm -f "$tmp/out";;
30236 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30237 esac \
30238 || as_fn_error "could not create $ac_file" "$LINENO" 5
30239 ;;
30240 :H)
30241 #
30242 # CONFIG_HEADER
30243 #
30244 if test x"$ac_file" != x-; then
30245 {
30246 $as_echo "/* $configure_input */" \
30247 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30248 } >"$tmp/config.h" \
30249 || as_fn_error "could not create $ac_file" "$LINENO" 5
30250 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30252 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30253 else
30254 rm -f "$ac_file"
30255 mv "$tmp/config.h" "$ac_file" \
30256 || as_fn_error "could not create $ac_file" "$LINENO" 5
30257 fi
30258 else
30259 $as_echo "/* $configure_input */" \
30260 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30261 || as_fn_error "could not create -" "$LINENO" 5
30262 fi
30263 ;;
30264 :L)
30265 #
30266 # CONFIG_LINK
30267 #
30268
30269 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30270 :
30271 else
30272 # Prefer the file from the source tree if names are identical.
30273 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30274 ac_source=$srcdir/$ac_source
30275 fi
30276
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30278 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30279
30280 if test ! -r "$ac_source"; then
30281 as_fn_error "$ac_source: file not found" "$LINENO" 5
30282 fi
30283 rm -f "$ac_file"
30284
30285 # Try a relative symlink, then a hard link, then a copy.
30286 case $srcdir in
30287 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30288 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30289 esac
30290 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30291 ln "$ac_source" "$ac_file" 2>/dev/null ||
30292 cp -p "$ac_source" "$ac_file" ||
30293 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30294 fi
30295 ;;
30296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30297 $as_echo "$as_me: executing $ac_file commands" >&6;}
30298 ;;
30299 esac
30300
30301
30302 case $ac_file$ac_mode in
30303 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30304 "gccdepdir":C)
30305 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30306 for lang in $subdirs c-family common
30307 do
30308 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30309 done ;;
30310 "as":F) chmod +x as ;;
30311 "collect-ld":F) chmod +x collect-ld ;;
30312 "nm":F) chmod +x nm ;;
30313 "default":C)
30314 case ${CONFIG_HEADERS} in
30315 *auto-host.h:config.in*)
30316 echo > cstamp-h ;;
30317 esac
30318 # Make sure all the subdirs exist.
30319 for d in $subdirs doc build common c-family
30320 do
30321 test -d $d || mkdir $d
30322 done
30323 ;;
30324
30325 esac
30326 done # for ac_tag
30327
30328
30329 as_fn_exit 0
30330 _ACEOF
30331 ac_clean_files=$ac_clean_files_save
30332
30333 test $ac_write_fail = 0 ||
30334 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30335
30336
30337 # configure is writing to config.log, and then calls config.status.
30338 # config.status does its own redirection, appending to config.log.
30339 # Unfortunately, on DOS this fails, as config.log is still kept open
30340 # by configure, so config.status won't be able to write to it; its
30341 # output is simply discarded. So we exec the FD to /dev/null,
30342 # effectively closing config.log, so it can be properly (re)opened and
30343 # appended to by config.status. When coming back to configure, we
30344 # need to make the FD available again.
30345 if test "$no_create" != yes; then
30346 ac_cs_success=:
30347 ac_config_status_args=
30348 test "$silent" = yes &&
30349 ac_config_status_args="$ac_config_status_args --quiet"
30350 exec 5>/dev/null
30351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30352 exec 5>>config.log
30353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30354 # would make configure fail if this is the last instruction.
30355 $ac_cs_success || as_fn_exit $?
30356 fi
30357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30360 fi
30361
30362