Document gcov-io (PR gcov-profile/84735).
[official-gcc.git] / gcc / configure
blobb12628725b675a898e28e8bfd394a8069ab264e1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
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
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
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
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
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+"$@"}
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."
242 exit 1
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
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
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 ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
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/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
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"
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 ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
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 ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
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 ()
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
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
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
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
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
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/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
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
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 '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
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; }
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
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;;
468 ECHO_N='-n';;
469 esac
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
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'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
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
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=
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
526 as_executable_p=$as_test_x
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'"
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'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
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`
545 # Initializations.
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=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
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"
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 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
770 LN_S
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
927 enable_cld
928 enable_frame_pointer
929 enable_win32_registry
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_libtool_lock
934 enable_ld
935 enable_gold
936 with_plugin_ld
937 enable_gnu_indirect_function
938 enable_initfini_array
939 enable_comdat
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
942 with_glibc_version
943 enable_gnu_unique_object
944 enable_linker_build_id
945 enable_libssp
946 enable_default_ssp
947 with_long_double_128
948 with_long_double_format
949 with_gc
950 with_system_zlib
951 enable_maintainer_mode
952 enable_link_mutex
953 enable_version_specific_runtime_libs
954 enable_plugin
955 enable_host_shared
956 enable_libquadmath_support
957 with_linker_hash_style
958 with_diagnostics_color
959 enable_default_pie
961 ac_precious_vars='build_alias
962 host_alias
963 target_alias
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
970 CXXFLAGS
972 CXXCPP
974 GMPLIBS
975 GMPINC
976 ISLLIBS
977 ISLINC'
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 ac_unrecognized_opts=
984 ac_unrecognized_sep=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1048 ac_dashdash=yes ;;
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1071 ac_prev=datadir ;;
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid feature name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval enable_$ac_useropt=\$ac_optarg ;;
1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126 | --exec | --exe | --ex)
1127 ac_prev=exec_prefix ;;
1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130 | --exec=* | --exe=* | --ex=*)
1131 exec_prefix=$ac_optarg ;;
1133 -gas | --gas | --ga | --g)
1134 # Obsolete; use --with-gas.
1135 with_gas=yes ;;
1137 -help | --help | --hel | --he | -h)
1138 ac_init_help=long ;;
1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140 ac_init_help=recursive ;;
1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142 ac_init_help=short ;;
1144 -host | --host | --hos | --ho)
1145 ac_prev=host_alias ;;
1146 -host=* | --host=* | --hos=* | --ho=*)
1147 host_alias=$ac_optarg ;;
1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150 ac_prev=htmldir ;;
1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152 | --ht=*)
1153 htmldir=$ac_optarg ;;
1155 -includedir | --includedir | --includedi | --included | --include \
1156 | --includ | --inclu | --incl | --inc)
1157 ac_prev=includedir ;;
1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159 | --includ=* | --inclu=* | --incl=* | --inc=*)
1160 includedir=$ac_optarg ;;
1162 -infodir | --infodir | --infodi | --infod | --info | --inf)
1163 ac_prev=infodir ;;
1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165 infodir=$ac_optarg ;;
1167 -libdir | --libdir | --libdi | --libd)
1168 ac_prev=libdir ;;
1169 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170 libdir=$ac_optarg ;;
1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173 | --libexe | --libex | --libe)
1174 ac_prev=libexecdir ;;
1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176 | --libexe=* | --libex=* | --libe=*)
1177 libexecdir=$ac_optarg ;;
1179 -localedir | --localedir | --localedi | --localed | --locale)
1180 ac_prev=localedir ;;
1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182 localedir=$ac_optarg ;;
1184 -localstatedir | --localstatedir | --localstatedi | --localstated \
1185 | --localstate | --localstat | --localsta | --localst | --locals)
1186 ac_prev=localstatedir ;;
1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189 localstatedir=$ac_optarg ;;
1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192 ac_prev=mandir ;;
1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194 mandir=$ac_optarg ;;
1196 -nfp | --nfp | --nf)
1197 # Obsolete; use --without-fp.
1198 with_fp=no ;;
1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201 | --no-cr | --no-c | -n)
1202 no_create=yes ;;
1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206 no_recursion=yes ;;
1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210 | --oldin | --oldi | --old | --ol | --o)
1211 ac_prev=oldincludedir ;;
1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215 oldincludedir=$ac_optarg ;;
1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218 ac_prev=prefix ;;
1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220 prefix=$ac_optarg ;;
1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223 | --program-pre | --program-pr | --program-p)
1224 ac_prev=program_prefix ;;
1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227 program_prefix=$ac_optarg ;;
1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230 | --program-suf | --program-su | --program-s)
1231 ac_prev=program_suffix ;;
1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234 program_suffix=$ac_optarg ;;
1236 -program-transform-name | --program-transform-name \
1237 | --program-transform-nam | --program-transform-na \
1238 | --program-transform-n | --program-transform- \
1239 | --program-transform | --program-transfor \
1240 | --program-transfo | --program-transf \
1241 | --program-trans | --program-tran \
1242 | --progr-tra | --program-tr | --program-t)
1243 ac_prev=program_transform_name ;;
1244 -program-transform-name=* | --program-transform-name=* \
1245 | --program-transform-nam=* | --program-transform-na=* \
1246 | --program-transform-n=* | --program-transform-=* \
1247 | --program-transform=* | --program-transfor=* \
1248 | --program-transfo=* | --program-transf=* \
1249 | --program-trans=* | --program-tran=* \
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254 ac_prev=pdfdir ;;
1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 pdfdir=$ac_optarg ;;
1258 -psdir | --psdir | --psdi | --psd | --ps)
1259 ac_prev=psdir ;;
1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261 psdir=$ac_optarg ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 silent=yes ;;
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268 ac_prev=sbindir ;;
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270 | --sbi=* | --sb=*)
1271 sbindir=$ac_optarg ;;
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1276 | --sha | --sh)
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281 | --sha=* | --sh=*)
1282 sharedstatedir=$ac_optarg ;;
1284 -site | --site | --sit)
1285 ac_prev=site ;;
1286 -site=* | --site=* | --sit=*)
1287 site=$ac_optarg ;;
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290 ac_prev=srcdir ;;
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307 verbose=yes ;;
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1312 -with-* | --with-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error "invalid package name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1321 "with_$ac_useropt"
1322 "*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval with_$ac_useropt=\$ac_optarg ;;
1328 -without-* | --without-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1337 "with_$ac_useropt"
1338 "*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval with_$ac_useropt=no ;;
1344 --x)
1345 # Obsolete; use --with-x.
1346 with_x=yes ;;
1348 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349 | --x-incl | --x-inc | --x-in | --x-i)
1350 ac_prev=x_includes ;;
1351 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353 x_includes=$ac_optarg ;;
1355 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357 ac_prev=x_libraries ;;
1358 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360 x_libraries=$ac_optarg ;;
1362 -*) as_fn_error "unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information."
1366 *=*)
1367 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 case $ac_envvar in #(
1370 '' | [0-9]* | *[!_$as_cr_alnum]* )
1371 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1372 esac
1373 eval $ac_envvar=\$ac_optarg
1374 export $ac_envvar ;;
1377 # FIXME: should be removed in autoconf 3.0.
1378 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 esac
1385 done
1387 if test -n "$ac_prev"; then
1388 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389 as_fn_error "missing argument to $ac_option"
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1394 no) ;;
1395 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1396 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 esac
1400 # Check all directory arguments for consistency.
1401 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402 datadir sysconfdir sharedstatedir localstatedir includedir \
1403 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404 libdir localedir mandir
1406 eval ac_val=\$$ac_var
1407 # Remove trailing slashes.
1408 case $ac_val in
1409 */ )
1410 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411 eval $ac_var=\$ac_val;;
1412 esac
1413 # Be sure to have absolute directory names.
1414 case $ac_val in
1415 [\\/$]* | ?:[\\/]* ) continue;;
1416 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417 esac
1418 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1419 done
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442 test "$silent" = yes && exec 6>/dev/null
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error "pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464 s//\1/
1467 /^X\(\/\/\)[^/].*/{
1468 s//\1/
1471 /^X\(\/\/\)$/{
1472 s//\1/
1475 /^X\(\/\).*/{
1476 s//\1/
1479 s/.*/./; q'`
1480 srcdir=$ac_confdir
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 srcdir=..
1484 else
1485 ac_srcdir_defaulted=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1494 pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497 srcdir=.
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1518 cat <<_ACEOF
1519 \`configure' configures this package to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1528 Configuration:
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1543 [PREFIX]
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1572 _ACEOF
1574 cat <<\_ACEOF
1576 Program names:
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1581 System types:
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 --target=TARGET configure for building compilers for TARGET [HOST]
1585 _ACEOF
1588 if test -n "$ac_init_help"; then
1590 cat <<\_ACEOF
1592 Optional Features:
1593 --disable-option-checking ignore unrecognized --enable/--with options
1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1596 --enable-generated-files-in-srcdir
1597 put copies of generated files in source dir intended
1598 for creating source tarballs for users without
1599 texinfo bison or flex
1600 --disable-largefile omit support for large files
1601 --disable-build-format-warnings
1602 don't use -Wformat while building GCC
1603 --enable-werror-always enable -Werror despite compiler version
1604 --enable-checking[=LIST]
1605 enable expensive run-time checks. With LIST, enable
1606 only specific categories of checks. Categories are:
1607 yes,no,all,none,release. Flags are:
1608 assert,df,extra,fold,gc,gcac,gimple,misc,
1609 rtlflag,rtl,runtime,tree,valgrind,types
1610 --enable-coverage[=LEVEL]
1611 enable compiler's code coverage collection. Use to
1612 measure compiler performance and locate unused parts
1613 of the compiler. With LEVEL, specify optimization.
1614 Values are opt, noopt, default is noopt
1615 --enable-gather-detailed-mem-stats
1616 enable detailed memory allocation stats gathering
1617 --enable-valgrind-annotations
1618 enable valgrind runtime interaction
1619 --enable-multilib enable library support for multiple ABIs
1620 --enable-multiarch enable support for multiarch paths
1621 --enable-__cxa_atexit enable __cxa_atexit for C++
1622 --enable-decimal-float={no,yes,bid,dpd}
1623 enable decimal float extension to C. Selecting 'bid'
1624 or 'dpd' choses which decimal floating point format
1625 to use
1626 --enable-fixed-point enable fixed-point arithmetic extension to C
1627 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1628 package
1629 --enable-tls enable or disable generation of tls code overriding
1630 the assembler check for tls support
1631 --enable-vtable-verify enable vtable verification feature
1632 --enable-objc-gc enable the use of Boehm's garbage collector with the
1633 GNU Objective-C runtime
1634 --disable-shared don't provide a shared libgcc
1635 --enable-languages=LIST specify which front-ends to build
1636 --disable-rpath do not hardcode runtime library paths
1637 --enable-sjlj-exceptions
1638 arrange to use setjmp/longjmp exception handling
1639 --enable-secureplt enable -msecure-plt by default for PowerPC
1640 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1641 Default to platform configuration
1642 --enable-leading-mingw64-underscores
1643 enable leading underscores on 64 bit mingw targets
1644 --enable-cld enable -mcld by default for 32bit x86
1645 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1647 --disable-win32-registry
1648 disable lookup of installation paths in the Registry
1649 on Windows hosts
1650 --enable-win32-registry enable registry lookup (default)
1651 --enable-win32-registry=KEY
1652 use KEY instead of GCC version as the last portion
1653 of the registry key
1654 --enable-shared[=PKGS] build shared libraries [default=yes]
1655 --enable-static[=PKGS] build static libraries [default=yes]
1656 --enable-fast-install[=PKGS]
1657 optimize for fast installation [default=yes]
1658 --disable-libtool-lock avoid locking (might break parallel builds)
1659 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1660 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1661 --enable-gnu-indirect-function
1662 enable the use of the @gnu_indirect_function to
1663 glibc systems
1664 --enable-initfini-array use .init_array/.fini_array sections
1665 --enable-comdat enable COMDAT group support
1667 --enable-fix-cortex-a53-835769
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 835769 by default
1670 --disable-fix-cortex-a53-835769
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 835769 by default
1675 --enable-fix-cortex-a53-843419
1676 enable workaround for AArch64 Cortex-A53 erratum
1677 843419 by default
1678 --disable-fix-cortex-a53-843419
1679 disable workaround for AArch64 Cortex-A53 erratum
1680 843419 by default
1682 --enable-gnu-unique-object
1683 enable the use of the @gnu_unique_object ELF
1684 extension on glibc systems
1685 --enable-linker-build-id
1686 compiler will always pass --build-id to linker
1687 --enable-libssp enable linking against libssp
1688 --enable-default-ssp enable Stack Smashing Protection as default
1689 --enable-maintainer-mode
1690 enable make rules and dependencies not useful (and
1691 sometimes confusing) to the casual installer
1692 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1693 thrashing on the build machine
1694 --enable-version-specific-runtime-libs
1695 specify that runtime libraries should be installed
1696 in a compiler-specific directory
1697 --enable-plugin enable plugin support
1698 --enable-host-shared build host code as shared libraries
1699 --disable-libquadmath-support
1700 disable libquadmath support for Fortran
1701 --enable-default-pie enable Position Independent Executable as default
1703 Optional Packages:
1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1706 --with-build-libsubdir=DIR Directory where to find libraries for build system
1707 --with-local-prefix=DIR specifies directory to put local include
1708 --with-native-system-header-dir=dir
1709 use dir as the directory to look for standard
1710 system header files in. Defaults to /usr/include.
1711 --with-build-sysroot=sysroot
1712 use sysroot as the system root during the build
1713 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1714 --with-gxx-include-dir=DIR
1715 specifies directory to put g++ header files
1716 --with-cpp-install-dir=DIR
1717 install the user visible C preprocessor in DIR
1718 (relative to PREFIX) as well as PREFIX/bin
1719 --with-gnu-ld arrange to work with GNU ld
1720 --with-ld arrange to use the specified ld (full pathname)
1721 --with-demangler-in-ld try to use demangler in GNU ld
1722 --with-gnu-as arrange to work with GNU as
1723 --with-as arrange to use the specified as (full pathname)
1724 --with-stabs arrange to use stabs instead of host debug format
1725 --with-dwarf2 force the default debug format to be DWARF 2
1726 --with-specs=SPECS add SPECS to driver command-line processing
1727 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1728 --with-bugurl=URL Direct users to URL to report a bug
1729 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1730 --with-gnu-ld assume the C compiler uses GNU ld default=no
1731 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1732 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1733 --with-gcc-major-version-only
1734 use only GCC major number in filesystem paths
1735 --with-pic try to use only PIC/non-PIC objects [default=use
1736 both]
1737 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1738 --with-plugin-ld=[ARG] specify the plugin linker
1739 --with-glibc-version=M.N
1740 assume GCC used with glibc version M.N or later
1741 --with-long-double-128 use 128-bit long double by default
1742 --with-long-double-format={ieee,ibm}
1743 Specify whether PowerPC long double uses IEEE or IBM format
1745 --with-gc={page,zone} this option is not supported anymore. It used to
1746 choose the garbage collection mechanism to use with
1747 the compiler
1748 --with-system-zlib use installed libz
1749 --with-linker-hash-style={sysv,gnu,both}
1750 specify the linker hash style
1751 --with-diagnostics-color={never,auto,auto-if-env,always}
1752 specify the default of -fdiagnostics-color option
1753 auto-if-env stands for -fdiagnostics-color=auto if
1754 GCC_COLOR environment variable is present and
1755 -fdiagnostics-color=never otherwise
1757 Some influential environment variables:
1758 CC C compiler command
1759 CFLAGS C compiler flags
1760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1761 nonstandard directory <lib dir>
1762 LIBS libraries to pass to the linker, e.g. -l<library>
1763 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1764 you have headers in a nonstandard directory <include dir>
1765 CXX C++ compiler command
1766 CXXFLAGS C++ compiler flags
1767 CXXCPP C++ preprocessor
1768 CPP C preprocessor
1769 GMPLIBS How to link GMP
1770 GMPINC How to find GMP include files
1771 ISLLIBS How to link isl
1772 ISLINC How to find isl include files
1774 Use these variables to override the choices made by `configure' or to help
1775 it to find libraries and programs with nonstandard names/locations.
1777 Report bugs to the package provider.
1778 _ACEOF
1779 ac_status=$?
1782 if test "$ac_init_help" = "recursive"; then
1783 # If there are subdirs, report their specific --help.
1784 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1785 test -d "$ac_dir" ||
1786 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787 continue
1788 ac_builddir=.
1790 case "$ac_dir" in
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1794 # A ".." for each directory in $ac_dir_suffix.
1795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1796 case $ac_top_builddir_sub in
1797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799 esac ;;
1800 esac
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1806 case $srcdir in
1807 .) # We are building in place.
1808 ac_srcdir=.
1809 ac_top_srcdir=$ac_top_builddir_sub
1810 ac_abs_top_srcdir=$ac_pwd ;;
1811 [\\/]* | ?:[\\/]* ) # Absolute name.
1812 ac_srcdir=$srcdir$ac_dir_suffix;
1813 ac_top_srcdir=$srcdir
1814 ac_abs_top_srcdir=$srcdir ;;
1815 *) # Relative name.
1816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817 ac_top_srcdir=$ac_top_build_prefix$srcdir
1818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 esac
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1822 cd "$ac_dir" || { ac_status=$?; continue; }
1823 # Check for guested configure.
1824 if test -f "$ac_srcdir/configure.gnu"; then
1825 echo &&
1826 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827 elif test -f "$ac_srcdir/configure"; then
1828 echo &&
1829 $SHELL "$ac_srcdir/configure" --help=recursive
1830 else
1831 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 fi || ac_status=$?
1833 cd "$ac_pwd" || { ac_status=$?; break; }
1834 done
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1839 cat <<\_ACEOF
1840 configure
1841 generated by GNU Autoconf 2.64
1843 Copyright (C) 2009 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1846 _ACEOF
1847 exit
1850 ## ------------------------ ##
1851 ## Autoconf initialization. ##
1852 ## ------------------------ ##
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1890 } # ac_fn_c_try_compile
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1928 } # ac_fn_cxx_try_compile
1930 # ac_fn_cxx_try_cpp LINENO
1931 # ------------------------
1932 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_cpp ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } >/dev/null && {
1952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_retval=1
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1965 } # ac_fn_cxx_try_cpp
1967 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # ---------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1971 # accordingly.
1972 ac_fn_cxx_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_cxx_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_cxx_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2020 yes:no: )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 no:yes:* )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_cxx_check_header_mongrel
2054 # ac_fn_cxx_try_run LINENO
2055 # ------------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2058 ac_fn_cxx_try_run ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2082 ac_retval=0
2083 else
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 ac_retval=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092 return $ac_retval
2094 } # ac_fn_cxx_try_run
2096 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2097 # ---------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_cxx_check_header_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115 else
2116 eval "$3=no"
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 } # ac_fn_cxx_check_header_compile
2127 # ac_fn_c_try_cpp LINENO
2128 # ----------------------
2129 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_c_try_cpp ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 if { { ac_try="$ac_cpp conftest.$ac_ext"
2134 case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } >/dev/null && {
2149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2150 test ! -s conftest.err
2151 }; then :
2152 ac_retval=0
2153 else
2154 $as_echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 ac_retval=1
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 return $ac_retval
2162 } # ac_fn_c_try_cpp
2164 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2165 # ----------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 # computed
2169 ac_fn_cxx_compute_int ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2181 test_array [0] = 0
2184 return 0;
2186 _ACEOF
2187 if ac_fn_cxx_try_compile "$LINENO"; then :
2188 ac_lo=0 ac_mid=0
2189 while :; do
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 main ()
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2200 return 0;
2202 _ACEOF
2203 if ac_fn_cxx_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid; break
2205 else
2206 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2207 if test $ac_lo -le $ac_mid; then
2208 ac_lo= ac_hi=
2209 break
2211 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2220 main ()
2222 static int test_array [1 - 2 * !(($2) < 0)];
2223 test_array [0] = 0
2226 return 0;
2228 _ACEOF
2229 if ac_fn_cxx_try_compile "$LINENO"; then :
2230 ac_hi=-1 ac_mid=-1
2231 while :; do
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2239 test_array [0] = 0
2242 return 0;
2244 _ACEOF
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2246 ac_lo=$ac_mid; break
2247 else
2248 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2249 if test $ac_mid -le $ac_hi; then
2250 ac_lo= ac_hi=
2251 break
2253 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 done
2257 else
2258 ac_lo= ac_hi=
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 # Binary search between lo and hi bounds.
2264 while test "x$ac_lo" != "x$ac_hi"; do
2265 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 test_array [0] = 0
2276 return 0;
2278 _ACEOF
2279 if ac_fn_cxx_try_compile "$LINENO"; then :
2280 ac_hi=$ac_mid
2281 else
2282 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 done
2286 case $ac_lo in #((
2287 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2288 '') ac_retval=1 ;;
2289 esac
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2294 static long int longval () { return $2; }
2295 static unsigned long int ulongval () { return $2; }
2296 #include <stdio.h>
2297 #include <stdlib.h>
2299 main ()
2302 FILE *f = fopen ("conftest.val", "w");
2303 if (! f)
2304 return 1;
2305 if (($2) < 0)
2307 long int i = longval ();
2308 if (i != ($2))
2309 return 1;
2310 fprintf (f, "%ld", i);
2312 else
2314 unsigned long int i = ulongval ();
2315 if (i != ($2))
2316 return 1;
2317 fprintf (f, "%lu", i);
2319 /* Do not output a trailing newline, as this causes \r\n confusion
2320 on some platforms. */
2321 return ferror (f) || fclose (f) != 0;
2324 return 0;
2326 _ACEOF
2327 if ac_fn_cxx_try_run "$LINENO"; then :
2328 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2329 else
2330 ac_retval=1
2332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2333 conftest.$ac_objext conftest.beam conftest.$ac_ext
2334 rm -f conftest.val
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 return $ac_retval
2340 } # ac_fn_cxx_compute_int
2342 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2343 # ---------------------------------------------
2344 # Tests whether TYPE exists after having included INCLUDES, setting cache
2345 # variable VAR accordingly.
2346 ac_fn_cxx_check_type ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 eval "$3=no"
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 if (sizeof ($2))
2362 return 0;
2364 return 0;
2366 _ACEOF
2367 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2372 main ()
2374 if (sizeof (($2)))
2375 return 0;
2377 return 0;
2379 _ACEOF
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2382 else
2383 eval "$3=yes"
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 eval ac_res=\$$3
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2391 $as_echo "$ac_res" >&6; }
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_cxx_check_type
2396 # ac_fn_c_find_intX_t LINENO BITS VAR
2397 # -----------------------------------
2398 # Finds a signed integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_intX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2404 $as_echo_n "checking for int$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 for ac_type in int$2_t 'int' 'long int' \
2410 'long long int' 'short int' 'signed char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2415 main ()
2417 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2418 test_array [0] = 0
2421 return 0;
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2427 $ac_includes_default
2429 main ()
2431 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2432 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2433 test_array [0] = 0
2436 return 0;
2438 _ACEOF
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2441 else
2442 case $ac_type in #(
2443 int$2_t) :
2444 eval "$3=yes" ;; #(
2445 *) :
2446 eval "$3=\$ac_type" ;;
2447 esac
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval as_val=\$$3
2453 if test "x$as_val" = x""no; then :
2455 else
2456 break
2458 done
2460 eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465 } # ac_fn_c_find_intX_t
2467 # ac_fn_cxx_try_link LINENO
2468 # -------------------------
2469 # Try to link conftest.$ac_ext, and return whether this succeeded.
2470 ac_fn_cxx_try_link ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 rm -f conftest.$ac_objext conftest$ac_exeext
2474 if { { ac_try="$ac_link"
2475 case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 $as_echo "$ac_try_echo"; } >&5
2481 (eval "$ac_link") 2>conftest.err
2482 ac_status=$?
2483 if test -s conftest.err; then
2484 grep -v '^ *+' conftest.err >conftest.er1
2485 cat conftest.er1 >&5
2486 mv -f conftest.er1 conftest.err
2488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489 test $ac_status = 0; } && {
2490 test -z "$ac_cxx_werror_flag" ||
2491 test ! -s conftest.err
2492 } && test -s conftest$ac_exeext && {
2493 test "$cross_compiling" = yes ||
2494 $as_test_x conftest$ac_exeext
2495 }; then :
2496 ac_retval=0
2497 else
2498 $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 ac_retval=1
2503 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2504 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2505 # interfere with the next link command; also delete a directory that is
2506 # left behind by Apple's compiler. We do this before executing the actions.
2507 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 return $ac_retval
2511 } # ac_fn_cxx_try_link
2513 # ac_fn_c_find_uintX_t LINENO BITS VAR
2514 # ------------------------------------
2515 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2516 # accordingly.
2517 ac_fn_c_find_uintX_t ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2521 $as_echo_n "checking for uint$2_t... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 eval "$3=no"
2526 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2527 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 $ac_includes_default
2532 main ()
2534 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2535 test_array [0] = 0
2538 return 0;
2540 _ACEOF
2541 if ac_fn_cxx_try_compile "$LINENO"; then :
2542 case $ac_type in #(
2543 uint$2_t) :
2544 eval "$3=yes" ;; #(
2545 *) :
2546 eval "$3=\$ac_type" ;;
2547 esac
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 eval as_val=\$$3
2551 if test "x$as_val" = x""no; then :
2553 else
2554 break
2556 done
2558 eval ac_res=\$$3
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_find_uintX_t
2565 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2566 # ------------------------------------------------
2567 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2568 ac_fn_cxx_check_header_preproc ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2578 #include <$2>
2579 _ACEOF
2580 if ac_fn_cxx_try_cpp "$LINENO"; then :
2581 eval "$3=yes"
2582 else
2583 eval "$3=no"
2585 rm -f conftest.err conftest.$ac_ext
2587 eval ac_res=\$$3
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2592 } # ac_fn_cxx_check_header_preproc
2594 # ac_fn_cxx_check_func LINENO FUNC VAR
2595 # ------------------------------------
2596 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2597 ac_fn_cxx_check_func ()
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2601 $as_echo_n "checking for $2... " >&6; }
2602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h. */
2607 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2609 #define $2 innocuous_$2
2611 /* System header to define __stub macros and hopefully few prototypes,
2612 which can conflict with char $2 (); below.
2613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2614 <limits.h> exists even on freestanding compilers. */
2616 #ifdef __STDC__
2617 # include <limits.h>
2618 #else
2619 # include <assert.h>
2620 #endif
2622 #undef $2
2624 /* Override any GCC internal prototype to avoid an error.
2625 Use char because int might match the return type of a GCC
2626 builtin and then its argument prototype would still apply. */
2627 #ifdef __cplusplus
2628 extern "C"
2629 #endif
2630 char $2 ();
2631 /* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634 #if defined __stub_$2 || defined __stub___$2
2635 choke me
2636 #endif
2639 main ()
2641 return $2 ();
2643 return 0;
2645 _ACEOF
2646 if ac_fn_cxx_try_link "$LINENO"; then :
2647 eval "$3=yes"
2648 else
2649 eval "$3=no"
2651 rm -f core conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2654 eval ac_res=\$$3
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 } # ac_fn_cxx_check_func
2661 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2662 # --------------------------------------
2663 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2664 ac_fn_cxx_check_decl ()
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 as_decl_name=`echo $2|sed 's/ *(.*//'`
2668 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2670 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2678 main ()
2680 #ifndef $as_decl_name
2681 #ifdef __cplusplus
2682 (void) $as_decl_use;
2683 #else
2684 (void) $as_decl_name;
2685 #endif
2686 #endif
2689 return 0;
2691 _ACEOF
2692 if ac_fn_cxx_try_compile "$LINENO"; then :
2693 eval "$3=yes"
2694 else
2695 eval "$3=no"
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 eval ac_res=\$$3
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2704 } # ac_fn_cxx_check_decl
2706 # ac_fn_c_try_link LINENO
2707 # -----------------------
2708 # Try to link conftest.$ac_ext, and return whether this succeeded.
2709 ac_fn_c_try_link ()
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 rm -f conftest.$ac_objext conftest$ac_exeext
2713 if { { ac_try="$ac_link"
2714 case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717 esac
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_link") 2>conftest.err
2721 ac_status=$?
2722 if test -s conftest.err; then
2723 grep -v '^ *+' conftest.err >conftest.er1
2724 cat conftest.er1 >&5
2725 mv -f conftest.er1 conftest.err
2727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2728 test $ac_status = 0; } && {
2729 test -z "$ac_c_werror_flag" ||
2730 test ! -s conftest.err
2731 } && test -s conftest$ac_exeext && {
2732 test "$cross_compiling" = yes ||
2733 $as_test_x conftest$ac_exeext
2734 }; then :
2735 ac_retval=0
2736 else
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_retval=1
2742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2744 # interfere with the next link command; also delete a directory that is
2745 # left behind by Apple's compiler. We do this before executing the actions.
2746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748 return $ac_retval
2750 } # ac_fn_c_try_link
2752 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2753 # ----------------------------------------------
2754 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2755 ac_fn_c_check_header_preproc ()
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2759 $as_echo_n "checking for $2... " >&6; }
2760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2765 #include <$2>
2766 _ACEOF
2767 if ac_fn_c_try_cpp "$LINENO"; then :
2768 eval "$3=yes"
2769 else
2770 eval "$3=no"
2772 rm -f conftest.err conftest.$ac_ext
2774 eval ac_res=\$$3
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2779 } # ac_fn_c_check_header_preproc
2781 # ac_fn_c_check_func LINENO FUNC VAR
2782 # ----------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_c_check_func ()
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2796 #define $2 innocuous_$2
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char $2 (); below.
2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801 <limits.h> exists even on freestanding compilers. */
2803 #ifdef __STDC__
2804 # include <limits.h>
2805 #else
2806 # include <assert.h>
2807 #endif
2809 #undef $2
2811 /* Override any GCC internal prototype to avoid an error.
2812 Use char because int might match the return type of a GCC
2813 builtin and then its argument prototype would still apply. */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 char $2 ();
2818 /* The GNU C library defines this for functions which it implements
2819 to always fail with ENOSYS. Some functions are actually named
2820 something starting with __ and the normal name is an alias. */
2821 #if defined __stub_$2 || defined __stub___$2
2822 choke me
2823 #endif
2826 main ()
2828 return $2 ();
2830 return 0;
2832 _ACEOF
2833 if ac_fn_c_try_link "$LINENO"; then :
2834 eval "$3=yes"
2835 else
2836 eval "$3=no"
2838 rm -f core conftest.err conftest.$ac_objext \
2839 conftest$ac_exeext conftest.$ac_ext
2841 eval ac_res=\$$3
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2846 } # ac_fn_c_check_func
2847 cat >config.log <<_ACEOF
2848 This file contains any messages produced by compilers while
2849 running configure, to aid debugging if configure makes a mistake.
2851 It was created by $as_me, which was
2852 generated by GNU Autoconf 2.64. Invocation command line was
2854 $ $0 $@
2856 _ACEOF
2857 exec 5>>config.log
2859 cat <<_ASUNAME
2860 ## --------- ##
2861 ## Platform. ##
2862 ## --------- ##
2864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2881 _ASUNAME
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 $as_echo "PATH: $as_dir"
2889 done
2890 IFS=$as_save_IFS
2892 } >&5
2894 cat >&5 <<_ACEOF
2897 ## ----------- ##
2898 ## Core tests. ##
2899 ## ----------- ##
2901 _ACEOF
2904 # Keep a trace of the command line.
2905 # Strip out --no-create and --no-recursion so they do not pile up.
2906 # Strip out --silent because we don't want to record it for future runs.
2907 # Also quote any args containing shell meta-characters.
2908 # Make two passes to allow for proper duplicate-argument suppression.
2909 ac_configure_args=
2910 ac_configure_args0=
2911 ac_configure_args1=
2912 ac_must_keep_next=false
2913 for ac_pass in 1 2
2915 for ac_arg
2917 case $ac_arg in
2918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2920 | -silent | --silent | --silen | --sile | --sil)
2921 continue ;;
2922 *\'*)
2923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 esac
2925 case $ac_pass in
2926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2928 as_fn_append ac_configure_args1 " '$ac_arg'"
2929 if test $ac_must_keep_next = true; then
2930 ac_must_keep_next=false # Got value, back to normal.
2931 else
2932 case $ac_arg in
2933 *=* | --config-cache | -C | -disable-* | --disable-* \
2934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2936 | -with-* | --with-* | -without-* | --without-* | --x)
2937 case "$ac_configure_args0 " in
2938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2939 esac
2941 -* ) ac_must_keep_next=true ;;
2942 esac
2944 as_fn_append ac_configure_args " '$ac_arg'"
2946 esac
2947 done
2948 done
2949 { ac_configure_args0=; unset ac_configure_args0;}
2950 { ac_configure_args1=; unset ac_configure_args1;}
2952 # When interrupted or exit'd, cleanup temporary files, and complete
2953 # config.log. We remove comments because anyway the quotes in there
2954 # would cause problems or look ugly.
2955 # WARNING: Use '\'' to represent an apostrophe within the trap.
2956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2957 trap 'exit_status=$?
2958 # Save into config.log some information that might help in debugging.
2960 echo
2962 cat <<\_ASBOX
2963 ## ---------------- ##
2964 ## Cache variables. ##
2965 ## ---------------- ##
2966 _ASBOX
2967 echo
2968 # The following way of writing the cache mishandles newlines in values,
2970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2971 eval ac_val=\$$ac_var
2972 case $ac_val in #(
2973 *${as_nl}*)
2974 case $ac_var in #(
2975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2977 esac
2978 case $ac_var in #(
2979 _ | IFS | as_nl) ;; #(
2980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2981 *) { eval $ac_var=; unset $ac_var;} ;;
2982 esac ;;
2983 esac
2984 done
2985 (set) 2>&1 |
2986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2987 *${as_nl}ac_space=\ *)
2988 sed -n \
2989 "s/'\''/'\''\\\\'\'''\''/g;
2990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2991 ;; #(
2993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2995 esac |
2996 sort
2998 echo
3000 cat <<\_ASBOX
3001 ## ----------------- ##
3002 ## Output variables. ##
3003 ## ----------------- ##
3004 _ASBOX
3005 echo
3006 for ac_var in $ac_subst_vars
3008 eval ac_val=\$$ac_var
3009 case $ac_val in
3010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3011 esac
3012 $as_echo "$ac_var='\''$ac_val'\''"
3013 done | sort
3014 echo
3016 if test -n "$ac_subst_files"; then
3017 cat <<\_ASBOX
3018 ## ------------------- ##
3019 ## File substitutions. ##
3020 ## ------------------- ##
3021 _ASBOX
3022 echo
3023 for ac_var in $ac_subst_files
3025 eval ac_val=\$$ac_var
3026 case $ac_val in
3027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3028 esac
3029 $as_echo "$ac_var='\''$ac_val'\''"
3030 done | sort
3031 echo
3034 if test -s confdefs.h; then
3035 cat <<\_ASBOX
3036 ## ----------- ##
3037 ## confdefs.h. ##
3038 ## ----------- ##
3039 _ASBOX
3040 echo
3041 cat confdefs.h
3042 echo
3044 test "$ac_signal" != 0 &&
3045 $as_echo "$as_me: caught signal $ac_signal"
3046 $as_echo "$as_me: exit $exit_status"
3047 } >&5
3048 rm -f core *.core core.conftest.* &&
3049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3050 exit $exit_status
3052 for ac_signal in 1 2 13 15; do
3053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3054 done
3055 ac_signal=0
3057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3058 rm -f -r conftest* confdefs.h
3060 $as_echo "/* confdefs.h */" > confdefs.h
3062 # Predefined preprocessor variables.
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_NAME "$PACKAGE_NAME"
3066 _ACEOF
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3070 _ACEOF
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3074 _ACEOF
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_STRING "$PACKAGE_STRING"
3078 _ACEOF
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3082 _ACEOF
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_URL "$PACKAGE_URL"
3086 _ACEOF
3089 # Let the site file select an alternate cache file if it wants to.
3090 # Prefer an explicitly selected file to automatically selected ones.
3091 ac_site_file1=NONE
3092 ac_site_file2=NONE
3093 if test -n "$CONFIG_SITE"; then
3094 ac_site_file1=$CONFIG_SITE
3095 elif test "x$prefix" != xNONE; then
3096 ac_site_file1=$prefix/share/config.site
3097 ac_site_file2=$prefix/etc/config.site
3098 else
3099 ac_site_file1=$ac_default_prefix/share/config.site
3100 ac_site_file2=$ac_default_prefix/etc/config.site
3102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3104 test "x$ac_site_file" = xNONE && continue
3105 if test -r "$ac_site_file"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3108 sed 's/^/| /' "$ac_site_file" >&5
3109 . "$ac_site_file"
3111 done
3113 if test -r "$cache_file"; then
3114 # Some versions of bash will fail to source /dev/null (special
3115 # files actually), so we avoid doing that.
3116 if test -f "$cache_file"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3118 $as_echo "$as_me: loading cache $cache_file" >&6;}
3119 case $cache_file in
3120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3121 *) . "./$cache_file";;
3122 esac
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3126 $as_echo "$as_me: creating cache $cache_file" >&6;}
3127 >$cache_file
3130 # Check that the precious variables saved in the cache have kept the same
3131 # value.
3132 ac_cache_corrupted=false
3133 for ac_var in $ac_precious_vars; do
3134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3135 eval ac_new_set=\$ac_env_${ac_var}_set
3136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3137 eval ac_new_val=\$ac_env_${ac_var}_value
3138 case $ac_old_set,$ac_new_set in
3139 set,)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3142 ac_cache_corrupted=: ;;
3143 ,set)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3146 ac_cache_corrupted=: ;;
3147 ,);;
3149 if test "x$ac_old_val" != "x$ac_new_val"; then
3150 # differences in whitespace do not lead to failure.
3151 ac_old_val_w=`echo x $ac_old_val`
3152 ac_new_val_w=`echo x $ac_new_val`
3153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3156 ac_cache_corrupted=:
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3160 eval $ac_var=\$ac_old_val
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3166 fi;;
3167 esac
3168 # Pass precious variables to config.status.
3169 if test "$ac_new_set" = set; then
3170 case $ac_new_val in
3171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3172 *) ac_arg=$ac_var=$ac_new_val ;;
3173 esac
3174 case " $ac_configure_args " in
3175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3177 esac
3179 done
3180 if $ac_cache_corrupted; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3185 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3187 ## -------------------- ##
3188 ## Main body of script. ##
3189 ## -------------------- ##
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3205 gcc_version=`cat $srcdir/BASE-VER`
3207 # Determine the host, build, and target systems
3208 ac_aux_dir=
3209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3210 for ac_t in install-sh install.sh shtool; do
3211 if test -f "$ac_dir/$ac_t"; then
3212 ac_aux_dir=$ac_dir
3213 ac_install_sh="$ac_aux_dir/$ac_t -c"
3214 break 2
3216 done
3217 done
3218 if test -z "$ac_aux_dir"; then
3219 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3222 # These three variables are undocumented and unsupported,
3223 # and are intended to be withdrawn in a future Autoconf release.
3224 # They can cause serious problems if a builder's source tree is in a directory
3225 # whose full name contains unusual characters.
3226 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3227 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3228 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3231 # Make sure we can run config.sub.
3232 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3233 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3236 $as_echo_n "checking build system type... " >&6; }
3237 if test "${ac_cv_build+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 ac_build_alias=$build_alias
3241 test "x$ac_build_alias" = x &&
3242 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3243 test "x$ac_build_alias" = x &&
3244 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3245 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3246 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3250 $as_echo "$ac_cv_build" >&6; }
3251 case $ac_cv_build in
3252 *-*-*) ;;
3253 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3254 esac
3255 build=$ac_cv_build
3256 ac_save_IFS=$IFS; IFS='-'
3257 set x $ac_cv_build
3258 shift
3259 build_cpu=$1
3260 build_vendor=$2
3261 shift; shift
3262 # Remember, the first character of IFS is used to create $*,
3263 # except with old shells:
3264 build_os=$*
3265 IFS=$ac_save_IFS
3266 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3270 $as_echo_n "checking host system type... " >&6; }
3271 if test "${ac_cv_host+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test "x$host_alias" = x; then
3275 ac_cv_host=$ac_cv_build
3276 else
3277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3283 $as_echo "$ac_cv_host" >&6; }
3284 case $ac_cv_host in
3285 *-*-*) ;;
3286 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3287 esac
3288 host=$ac_cv_host
3289 ac_save_IFS=$IFS; IFS='-'
3290 set x $ac_cv_host
3291 shift
3292 host_cpu=$1
3293 host_vendor=$2
3294 shift; shift
3295 # Remember, the first character of IFS is used to create $*,
3296 # except with old shells:
3297 host_os=$*
3298 IFS=$ac_save_IFS
3299 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3303 $as_echo_n "checking target system type... " >&6; }
3304 if test "${ac_cv_target+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test "x$target_alias" = x; then
3308 ac_cv_target=$ac_cv_host
3309 else
3310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3316 $as_echo "$ac_cv_target" >&6; }
3317 case $ac_cv_target in
3318 *-*-*) ;;
3319 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3320 esac
3321 target=$ac_cv_target
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_target
3324 shift
3325 target_cpu=$1
3326 target_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 target_os=$*
3331 IFS=$ac_save_IFS
3332 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3335 # The aliases save the names the user supplied, while $host etc.
3336 # will get canonicalized.
3337 test -n "$target_alias" &&
3338 test "$program_prefix$program_suffix$program_transform_name" = \
3339 NONENONEs,x,x, &&
3340 program_prefix=${target_alias}-
3342 # Determine the noncanonical host name, for Ada.
3343 case ${build_alias} in
3344 "") build_noncanonical=${build} ;;
3345 *) build_noncanonical=${build_alias} ;;
3346 esac
3348 case ${host_alias} in
3349 "") host_noncanonical=${build_noncanonical} ;;
3350 *) host_noncanonical=${host_alias} ;;
3351 esac
3356 # Determine the noncanonical target name, for directory use.
3357 case ${target_alias} in
3358 "") target_noncanonical=${host_noncanonical} ;;
3359 *) target_noncanonical=${target_alias} ;;
3360 esac
3365 # Used for constructing correct paths for offload compilers.
3366 real_target_noncanonical=${target_noncanonical}
3367 accel_dir_suffix=
3369 # Determine the target- and build-specific subdirectories
3371 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3372 # have matching libraries, they should use host libraries: Makefile.tpl
3373 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3374 # However, they still use the build modules, because the corresponding
3375 # host modules (e.g. bison) are only built for the host when bootstrap
3376 # finishes. So:
3377 # - build_subdir is where we find build modules, and never changes.
3378 # - build_libsubdir is where we find build libraries, and can be overridden.
3380 # Prefix 'build-' so this never conflicts with target_subdir.
3381 build_subdir="build-${build_noncanonical}"
3383 # Check whether --with-build-libsubdir was given.
3384 if test "${with_build_libsubdir+set}" = set; then :
3385 withval=$with_build_libsubdir; build_libsubdir="$withval"
3386 else
3387 build_libsubdir="$build_subdir"
3390 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3391 if ( test $srcdir = . && test -d gcc ) \
3392 || test -d $srcdir/../host-${host_noncanonical}; then
3393 host_subdir="host-${host_noncanonical}"
3394 else
3395 host_subdir=.
3397 # No prefix.
3398 target_subdir=${target_noncanonical}
3401 # Set program_transform_name
3402 test "$program_prefix" != NONE &&
3403 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3404 # Use a double $ so make ignores it.
3405 test "$program_suffix" != NONE &&
3406 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3407 # Double any \ or $.
3408 # By default was `s,x,x', remove it if useless.
3409 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3410 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3413 # Check for bogus environment variables.
3414 # Test if LIBRARY_PATH contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # LIBRARY_PATH 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 LIBRARY_PATH variable" >&5
3422 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3423 case ${LIBRARY_PATH} in
3424 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3425 library_path_setting="contains current directory"
3428 library_path_setting="ok"
3430 esac
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3432 $as_echo "$library_path_setting" >&6; }
3433 if test "$library_path_setting" != "ok"; then
3434 as_fn_error "
3435 *** LIBRARY_PATH shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3440 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3441 # since this would lead to problems installing/building glibc.
3442 # GCC_EXEC_PREFIX contains the current directory if one of the following
3443 # is true:
3444 # - one of the terminals (":" and ";") is the first or last sign
3445 # - two terminals occur directly after each other
3446 # - the path contains an element with a dot in it
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3448 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3449 case ${GCC_EXEC_PREFIX} in
3450 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3451 gcc_exec_prefix_setting="contains current directory"
3454 gcc_exec_prefix_setting="ok"
3456 esac
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3458 $as_echo "$gcc_exec_prefix_setting" >&6; }
3459 if test "$gcc_exec_prefix_setting" != "ok"; then
3460 as_fn_error "
3461 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3462 *** building gcc. Please change the environment variable
3463 *** and run configure again." "$LINENO" 5
3466 # -----------
3467 # Directories
3468 # -----------
3470 # Specify the local prefix
3471 local_prefix=
3473 # Check whether --with-local-prefix was given.
3474 if test "${with_local_prefix+set}" = set; then :
3475 withval=$with_local_prefix; case "${withval}" in
3476 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3477 no) ;;
3478 *) local_prefix=$with_local_prefix ;;
3479 esac
3483 # Default local prefix if it is empty
3484 if test x$local_prefix = x; then
3485 local_prefix=/usr/local
3489 # Check whether --with-native-system-header-dir was given.
3490 if test "${with_native_system_header_dir+set}" = set; then :
3491 withval=$with_native_system_header_dir;
3492 case ${with_native_system_header_dir} in
3493 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3494 /* | [A-Za-z]:[\\/]*) ;;
3495 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3496 esac
3497 configured_native_system_header_dir="${withval}"
3499 else
3500 configured_native_system_header_dir=
3505 # Check whether --with-build-sysroot was given.
3506 if test "${with_build_sysroot+set}" = set; then :
3507 withval=$with_build_sysroot; if test x"$withval" != x ; then
3508 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3510 else
3511 SYSROOT_CFLAGS_FOR_TARGET=
3516 if test "x$prefix" = xNONE; then
3517 test_prefix=/usr/local
3518 else
3519 test_prefix=$prefix
3521 if test "x$exec_prefix" = xNONE; then
3522 test_exec_prefix=$test_prefix
3523 else
3524 test_exec_prefix=$exec_prefix
3528 # Check whether --with-sysroot was given.
3529 if test "${with_sysroot+set}" = set; then :
3530 withval=$with_sysroot;
3531 case ${with_sysroot} in
3532 /) ;;
3533 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3534 esac
3535 case ${with_sysroot} in
3536 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3537 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3538 esac
3540 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3541 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3543 case ${TARGET_SYSTEM_ROOT} in
3544 "${test_prefix}"|"${test_prefix}/"*|\
3545 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3546 '${prefix}'|'${prefix}/'*|\
3547 '${exec_prefix}'|'${exec_prefix}/'*)
3548 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3549 TARGET_SYSTEM_ROOT_DEFINE="$t"
3551 esac
3553 else
3555 TARGET_SYSTEM_ROOT=
3556 TARGET_SYSTEM_ROOT_DEFINE=
3557 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3565 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3566 # passed in by the toplevel make and thus we'd get different behavior
3567 # depending on where we built the sources.
3568 gcc_gxx_include_dir=
3569 # Specify the g++ header file directory
3571 # Check whether --with-gxx-include-dir was given.
3572 if test "${with_gxx_include_dir+set}" = set; then :
3573 withval=$with_gxx_include_dir; case "${withval}" in
3574 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3575 no) ;;
3576 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3577 esac
3581 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3582 if test x${gcc_gxx_include_dir} = x; then
3583 if test x${enable_version_specific_runtime_libs} = xyes; then
3584 gcc_gxx_include_dir='${libsubdir}/include/c++'
3585 else
3586 libstdcxx_incdir='include/c++/$(version)'
3587 if test x$host != x$target; then
3588 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3590 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3594 gcc_gxx_include_dir_add_sysroot=0
3595 if test "${with_sysroot+set}" = set; then
3596 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3597 if test "${gcc_gxx_without_sysroot}"; then
3598 if test x${with_sysroot} != x/; then
3599 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3601 gcc_gxx_include_dir_add_sysroot=1
3606 # Check whether --with-cpp_install_dir was given.
3607 if test "${with_cpp_install_dir+set}" = set; then :
3608 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3609 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3610 elif test x$withval != xno; then
3611 cpp_install_dir=$withval
3616 # We would like to our source tree to be readonly. However when releases or
3617 # pre-releases are generated, the flex/bison generated files as well as the
3618 # various formats of manuals need to be included along with the rest of the
3619 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3620 # just that.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3623 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3624 # Check whether --enable-generated-files-in-srcdir was given.
3625 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3626 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3627 else
3628 generated_files_in_srcdir=no
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3633 $as_echo "$generated_files_in_srcdir" >&6; }
3635 if test "$generated_files_in_srcdir" = "yes"; then
3636 GENINSRC=''
3637 else
3638 GENINSRC='#'
3642 # -------------------
3643 # Find default linker
3644 # -------------------
3646 # With GNU ld
3648 # Check whether --with-gnu-ld was given.
3649 if test "${with_gnu_ld+set}" = set; then :
3650 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3651 else
3652 gnu_ld_flag=no
3656 case $target in
3657 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3658 *) ld64_flag=no;;
3659 esac
3661 # With pre-defined ld
3663 # Check whether --with-ld was given.
3664 if test "${with_ld+set}" = set; then :
3665 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3668 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3669 if test ! -x "$DEFAULT_LINKER"; then
3670 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3671 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3672 gnu_ld_flag=yes
3673 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3674 ld64_flag=yes
3677 cat >>confdefs.h <<_ACEOF
3678 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3679 _ACEOF
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3684 $as_echo_n "checking whether a default linker was specified... " >&6; }
3685 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3686 if test x"$gnu_ld_flag" = x"no"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3688 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3691 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3698 # With demangler in GNU ld
3700 # Check whether --with-demangler-in-ld was given.
3701 if test "${with_demangler_in_ld+set}" = set; then :
3702 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3703 else
3704 demangler_in_ld=yes
3708 # ----------------------
3709 # Find default assembler
3710 # ----------------------
3712 # With GNU as
3714 # Check whether --with-gnu-as was given.
3715 if test "${with_gnu_as+set}" = set; then :
3716 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3717 else
3718 gas_flag=no
3723 # Check whether --with-as was given.
3724 if test "${with_as+set}" = set; then :
3725 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3728 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3729 if test ! -x "$DEFAULT_ASSEMBLER"; then
3730 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3731 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3732 gas_flag=yes
3735 cat >>confdefs.h <<_ACEOF
3736 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3737 _ACEOF
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3742 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3743 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3744 if test x"$gas_flag" = x"no"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3746 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3749 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3756 # ---------------
3757 # Find C compiler
3758 # ---------------
3760 # If a non-executable a.out is present (e.g. created by GNU as above even if
3761 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3762 # file, even when creating an executable, so an execution test fails.
3763 # Remove possible default executable files to avoid this.
3765 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3766 # Autoconf includes it.
3767 rm -f a.out a.exe b.out
3769 # Find the native compiler
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 CC=$ac_cv_prog_CC
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$ac_cv_prog_CC"; then
3815 ac_ct_CC=$CC
3816 # Extract the first word of "gcc", so it can be a program name with args.
3817 set dummy gcc; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if test -n "$ac_ct_CC"; then
3824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_ac_ct_CC="gcc"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3837 done
3838 done
3839 IFS=$as_save_IFS
3843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844 if test -n "$ac_ct_CC"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846 $as_echo "$ac_ct_CC" >&6; }
3847 else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3852 if test "x$ac_ct_CC" = x; then
3853 CC=""
3854 else
3855 case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3860 esac
3861 CC=$ac_ct_CC
3863 else
3864 CC="$ac_cv_prog_CC"
3867 if test -z "$CC"; then
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}cc; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_CC="${ac_tool_prefix}cc"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3892 IFS=$as_save_IFS
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3908 if test -z "$CC"; then
3909 # Extract the first word of "cc", so it can be a program name with args.
3910 set dummy cc; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if test "${ac_cv_prog_CC+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 ac_prog_rejected=no
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928 ac_prog_rejected=yes
3929 continue
3931 ac_cv_prog_CC="cc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3935 done
3936 done
3937 IFS=$as_save_IFS
3939 if test $ac_prog_rejected = yes; then
3940 # We found a bogon in the path, so make sure we never use it.
3941 set dummy $ac_cv_prog_CC
3942 shift
3943 if test $# != 0; then
3944 # We chose a different compiler from the bogus one.
3945 # However, it has the same basename, so the bogon will be chosen
3946 # first if we set CC to just the basename; use the full file name.
3947 shift
3948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3953 CC=$ac_cv_prog_CC
3954 if test -n "$CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 $as_echo "$CC" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3964 if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in cl.exe
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if test "${ac_cv_prog_CC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3989 done
3990 done
3991 IFS=$as_save_IFS
3995 CC=$ac_cv_prog_CC
3996 if test -n "$CC"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
3999 else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4005 test -n "$CC" && break
4006 done
4008 if test -z "$CC"; then
4009 ac_ct_CC=$CC
4010 for ac_prog in cl.exe
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy $ac_prog; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CC="$ac_prog"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4033 done
4034 done
4035 IFS=$as_save_IFS
4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4049 test -n "$ac_ct_CC" && break
4050 done
4052 if test "x$ac_ct_CC" = x; then
4053 CC=""
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 CC=$ac_ct_CC
4068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error "no acceptable C compiler found in \$PATH
4071 See \`config.log' for more details." "$LINENO" 5; }
4073 # Provide some information about the compiler.
4074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4075 set X $ac_compile
4076 ac_compiler=$2
4077 for ac_option in --version -v -V -qversion; do
4078 { { ac_try="$ac_compiler $ac_option >&5"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4086 ac_status=$?
4087 if test -s conftest.err; then
4088 sed '10a\
4089 ... rest of stderr output deleted ...
4090 10q' conftest.err >conftest.er1
4091 cat conftest.er1 >&5
4092 rm -f conftest.er1 conftest.err
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }
4096 done
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 main ()
4106 return 0;
4108 _ACEOF
4109 ac_clean_files_save=$ac_clean_files
4110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4111 # Try to create an executable without -o first, disregard a.out.
4112 # It will help us diagnose broken compilers, and finding out an intuition
4113 # of exeext.
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4115 $as_echo_n "checking for C compiler default output file name... " >&6; }
4116 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4118 # The possible output files:
4119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4121 ac_rmfiles=
4122 for ac_file in $ac_files
4124 case $ac_file in
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4127 esac
4128 done
4129 rm -f $ac_rmfiles
4131 if { { ac_try="$ac_link_default"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_link_default") 2>&5
4139 ac_status=$?
4140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141 test $ac_status = 0; }; then :
4142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4143 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4144 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4145 # so that the user can short-circuit this test for compilers unknown to
4146 # Autoconf.
4147 for ac_file in $ac_files ''
4149 test -f "$ac_file" || continue
4150 case $ac_file in
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4153 [ab].out )
4154 # We found the default executable, but exeext='' is most
4155 # certainly right.
4156 break;;
4157 *.* )
4158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4159 then :; else
4160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162 # We set ac_cv_exeext here because the later test for it is not
4163 # safe: cross compilers may not add the suffix if given an `-o'
4164 # argument, so we may need to know it at that point already.
4165 # Even if this section looks crufty: it has the advantage of
4166 # actually working.
4167 break;;
4169 break;;
4170 esac
4171 done
4172 test "$ac_cv_exeext" = no && ac_cv_exeext=
4174 else
4175 ac_file=''
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4178 $as_echo "$ac_file" >&6; }
4179 if test -z "$ac_file"; then :
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 { as_fn_set_status 77
4186 as_fn_error "C compiler cannot create executables
4187 See \`config.log' for more details." "$LINENO" 5; }; }
4189 ac_exeext=$ac_cv_exeext
4191 # Check that the compiler produces executables we can run. If not, either
4192 # the compiler is broken, or we cross compile.
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4194 $as_echo_n "checking whether the C compiler works... " >&6; }
4195 # If not cross compiling, check that we can run a simple program.
4196 if test "$cross_compiling" != yes; then
4197 if { ac_try='./$ac_file'
4198 { { case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_try") 2>&5
4205 ac_status=$?
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; }; then
4208 cross_compiling=no
4209 else
4210 if test "$cross_compiling" = maybe; then
4211 cross_compiling=yes
4212 else
4213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4215 as_fn_error "cannot run C compiled programs.
4216 If you meant to cross compile, use \`--host'.
4217 See \`config.log' for more details." "$LINENO" 5; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222 $as_echo "yes" >&6; }
4224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4225 ac_clean_files=$ac_clean_files_save
4226 # Check that the compiler produces executables we can run. If not, either
4227 # the compiler is broken, or we cross compile.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4229 $as_echo_n "checking whether we are cross compiling... " >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4231 $as_echo "$cross_compiling" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4234 $as_echo_n "checking for suffix of executables... " >&6; }
4235 if { { ac_try="$ac_link"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_link") 2>&5
4243 ac_status=$?
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4247 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4248 # work properly (i.e., refer to `conftest.exe'), while it won't with
4249 # `rm'.
4250 for ac_file in conftest.exe conftest conftest.*; do
4251 test -f "$ac_file" || continue
4252 case $ac_file in
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4255 break;;
4256 * ) break;;
4257 esac
4258 done
4259 else
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error "cannot compute suffix of executables: cannot compile and link
4263 See \`config.log' for more details." "$LINENO" 5; }
4265 rm -f conftest$ac_cv_exeext
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4267 $as_echo "$ac_cv_exeext" >&6; }
4269 rm -f conftest.$ac_ext
4270 EXEEXT=$ac_cv_exeext
4271 ac_exeext=$EXEEXT
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4273 $as_echo_n "checking for suffix of object files... " >&6; }
4274 if test "${ac_cv_objext+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 rm -f conftest.o conftest.obj
4289 if { { ac_try="$ac_compile"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_compile") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; then :
4300 for ac_file in conftest.o conftest.obj conftest.*; do
4301 test -f "$ac_file" || continue;
4302 case $ac_file in
4303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4305 break;;
4306 esac
4307 done
4308 else
4309 $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314 as_fn_error "cannot compute suffix of object files: cannot compile
4315 See \`config.log' for more details." "$LINENO" 5; }
4317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4320 $as_echo "$ac_cv_objext" >&6; }
4321 OBJEXT=$ac_cv_objext
4322 ac_objext=$OBJEXT
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4325 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4332 main ()
4334 #ifndef __GNUC__
4335 choke me
4336 #endif
4339 return 0;
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_compiler_gnu=yes
4344 else
4345 ac_compiler_gnu=no
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4353 if test $ac_compiler_gnu = yes; then
4354 GCC=yes
4355 else
4356 GCC=
4358 ac_test_CFLAGS=${CFLAGS+set}
4359 ac_save_CFLAGS=$CFLAGS
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4362 if test "${ac_cv_prog_cc_g+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_save_c_werror_flag=$ac_c_werror_flag
4366 ac_c_werror_flag=yes
4367 ac_cv_prog_cc_g=no
4368 CFLAGS="-g"
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4373 main ()
4377 return 0;
4379 _ACEOF
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381 ac_cv_prog_cc_g=yes
4382 else
4383 CFLAGS=""
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4388 main ()
4392 return 0;
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4397 else
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4399 CFLAGS="-g"
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_prog_cc_g=yes
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 ac_c_werror_flag=$ac_save_c_werror_flag
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4422 $as_echo "$ac_cv_prog_cc_g" >&6; }
4423 if test "$ac_test_CFLAGS" = set; then
4424 CFLAGS=$ac_save_CFLAGS
4425 elif test $ac_cv_prog_cc_g = yes; then
4426 if test "$GCC" = yes; then
4427 CFLAGS="-g -O2"
4428 else
4429 CFLAGS="-g"
4431 else
4432 if test "$GCC" = yes; then
4433 CFLAGS="-O2"
4434 else
4435 CFLAGS=
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4440 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 ac_cv_prog_cc_c89=no
4444 ac_save_CC=$CC
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <stdarg.h>
4448 #include <stdio.h>
4449 #include <sys/types.h>
4450 #include <sys/stat.h>
4451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4452 struct buf { int x; };
4453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4454 static char *e (p, i)
4455 char **p;
4456 int i;
4458 return p[i];
4460 static char *f (char * (*g) (char **, int), char **p, ...)
4462 char *s;
4463 va_list v;
4464 va_start (v,p);
4465 s = g (p, va_arg (v,int));
4466 va_end (v);
4467 return s;
4470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4471 function prototypes and stuff, but not '\xHH' hex character constants.
4472 These don't provoke an error unfortunately, instead are silently treated
4473 as 'x'. The following induces an error, until -std is added to get
4474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4475 array size at least. It's necessary to write '\x00'==0 to get something
4476 that's true only with -std. */
4477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4480 inside strings and character constants. */
4481 #define FOO(x) 'x'
4482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4484 int test (int i, double x);
4485 struct s1 {int (*f) (int a);};
4486 struct s2 {int (*f) (double a);};
4487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4488 int argc;
4489 char **argv;
4491 main ()
4493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4495 return 0;
4497 _ACEOF
4498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4501 CC="$ac_save_CC $ac_arg"
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_c89=$ac_arg
4505 rm -f core conftest.err conftest.$ac_objext
4506 test "x$ac_cv_prog_cc_c89" != "xno" && break
4507 done
4508 rm -f conftest.$ac_ext
4509 CC=$ac_save_CC
4512 # AC_CACHE_VAL
4513 case "x$ac_cv_prog_cc_c89" in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516 $as_echo "none needed" >&6; } ;;
4517 xno)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4519 $as_echo "unsupported" >&6; } ;;
4521 CC="$CC $ac_cv_prog_cc_c89"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4524 esac
4525 if test "x$ac_cv_prog_cc_c89" != xno; then :
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535 ac_ext=cpp
4536 ac_cpp='$CXXCPP $CPPFLAGS'
4537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4540 if test -z "$CXX"; then
4541 if test -n "$CCC"; then
4542 CXX=$CCC
4543 else
4544 if test -n "$ac_tool_prefix"; then
4545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_CXX+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$CXX"; then
4555 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 CXX=$ac_cv_prog_CXX
4575 if test -n "$CXX"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4577 $as_echo "$CXX" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$CXX" && break
4585 done
4587 if test -z "$CXX"; then
4588 ac_ct_CXX=$CXX
4589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$ac_ct_CXX"; then
4599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_ac_ct_CXX="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4619 if test -n "$ac_ct_CXX"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4621 $as_echo "$ac_ct_CXX" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$ac_ct_CXX" && break
4629 done
4631 if test "x$ac_ct_CXX" = x; then
4632 CXX="g++"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 CXX=$ac_ct_CXX
4646 # Provide some information about the compiler.
4647 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4648 set X $ac_compile
4649 ac_compiler=$2
4650 for ac_option in --version -v -V -qversion; do
4651 { { ac_try="$ac_compiler $ac_option >&5"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4659 ac_status=$?
4660 if test -s conftest.err; then
4661 sed '10a\
4662 ... rest of stderr output deleted ...
4663 10q' conftest.err >conftest.er1
4664 cat conftest.er1 >&5
4665 rm -f conftest.er1 conftest.err
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4669 done
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4672 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4673 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4680 main ()
4682 #ifndef __GNUC__
4683 choke me
4684 #endif
4687 return 0;
4689 _ACEOF
4690 if ac_fn_cxx_try_compile "$LINENO"; then :
4691 ac_compiler_gnu=yes
4692 else
4693 ac_compiler_gnu=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4700 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4701 if test $ac_compiler_gnu = yes; then
4702 GXX=yes
4703 else
4704 GXX=
4706 ac_test_CXXFLAGS=${CXXFLAGS+set}
4707 ac_save_CXXFLAGS=$CXXFLAGS
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4709 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4710 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4714 ac_cxx_werror_flag=yes
4715 ac_cv_prog_cxx_g=no
4716 CXXFLAGS="-g"
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4721 main ()
4725 return 0;
4727 _ACEOF
4728 if ac_fn_cxx_try_compile "$LINENO"; then :
4729 ac_cv_prog_cxx_g=yes
4730 else
4731 CXXFLAGS=""
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4736 main ()
4740 return 0;
4742 _ACEOF
4743 if ac_fn_cxx_try_compile "$LINENO"; then :
4745 else
4746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 CXXFLAGS="-g"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4752 main ()
4756 return 0;
4758 _ACEOF
4759 if ac_fn_cxx_try_compile "$LINENO"; then :
4760 ac_cv_prog_cxx_g=yes
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4770 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4771 if test "$ac_test_CXXFLAGS" = set; then
4772 CXXFLAGS=$ac_save_CXXFLAGS
4773 elif test $ac_cv_prog_cxx_g = yes; then
4774 if test "$GXX" = yes; then
4775 CXXFLAGS="-g -O2"
4776 else
4777 CXXFLAGS="-g"
4779 else
4780 if test "$GXX" = yes; then
4781 CXXFLAGS="-O2"
4782 else
4783 CXXFLAGS=
4786 ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -n "$GNATBIND"; then
4804 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4817 done
4818 done
4819 IFS=$as_save_IFS
4823 GNATBIND=$ac_cv_prog_GNATBIND
4824 if test -n "$GNATBIND"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4826 $as_echo "$GNATBIND" >&6; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4834 if test -z "$ac_cv_prog_GNATBIND"; then
4835 ac_ct_GNATBIND=$GNATBIND
4836 # Extract the first word of "gnatbind", so it can be a program name with args.
4837 set dummy gnatbind; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$ac_ct_GNATBIND"; then
4844 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4859 IFS=$as_save_IFS
4863 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4864 if test -n "$ac_ct_GNATBIND"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4866 $as_echo "$ac_ct_GNATBIND" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4872 if test "x$ac_ct_GNATBIND" = x; then
4873 GNATBIND="no"
4874 else
4875 case $cross_compiling:$ac_tool_warned in
4876 yes:)
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879 ac_tool_warned=yes ;;
4880 esac
4881 GNATBIND=$ac_ct_GNATBIND
4883 else
4884 GNATBIND="$ac_cv_prog_GNATBIND"
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$GNATMAKE"; then
4896 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 GNATMAKE=$ac_cv_prog_GNATMAKE
4916 if test -n "$GNATMAKE"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4918 $as_echo "$GNATMAKE" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_GNATMAKE"; then
4927 ac_ct_GNATMAKE=$GNATMAKE
4928 # Extract the first word of "gnatmake", so it can be a program name with args.
4929 set dummy gnatmake; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4956 if test -n "$ac_ct_GNATMAKE"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4958 $as_echo "$ac_ct_GNATMAKE" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_GNATMAKE" = x; then
4965 GNATMAKE="no"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 GNATMAKE=$ac_ct_GNATMAKE
4975 else
4976 GNATMAKE="$ac_cv_prog_GNATMAKE"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4980 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4981 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat >conftest.adb <<EOF
4985 procedure conftest is begin null; end conftest;
4987 acx_cv_cc_gcc_supports_ada=no
4988 # There is a bug in old released versions of GCC which causes the
4989 # driver to exit successfully when the appropriate language module
4990 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4991 # Therefore we must check for the error message as well as an
4992 # unsuccessful exit.
4993 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4994 # given a .adb file, but produce no object file. So we must check
4995 # if an object file was really produced to guard against this.
4996 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
4997 if test x"$errors" = x && test -f conftest.$ac_objext; then
4998 acx_cv_cc_gcc_supports_ada=yes
5000 rm -f conftest.*
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5003 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5005 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5006 have_gnat=yes
5007 else
5008 have_gnat=no
5012 # Do configure tests with the C++ compiler, since that's what we build with.
5013 ac_ext=cpp
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5020 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5021 # optimizations to be activated explicitly by the toplevel.
5022 case "$CC" in
5023 */prev-gcc/xgcc*) ;;
5024 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5025 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5026 esac
5030 # Determine PICFLAG for target gnatlib.
5035 case "${target}" in
5036 # PIC is the default on some targets or must not be used.
5037 *-*-darwin*)
5038 # For darwin, common symbols are not allowed in MH_DYLIB files
5039 case "${CFLAGS}" in
5040 # If we are using a compiler supporting mdynamic-no-pic
5041 # and the option has been tested as safe to add, then cancel
5042 # it here, since the code generated is incompatible with shared
5043 # libs.
5044 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5045 *) PICFLAG_FOR_TARGET=-fno-common ;;
5046 esac
5048 alpha*-dec-osf5*)
5049 # PIC is the default.
5051 hppa*64*-*-hpux*)
5052 # PIC is the default for 64-bit PA HP-UX.
5054 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5056 i[34567]86-*-mingw* | x86_64-*-mingw*)
5058 i[34567]86-*-interix[3-9]*)
5059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5060 # Instead, we relocate shared libraries at runtime.
5062 i[34567]86-*-nto-qnx*)
5063 # QNX uses GNU C++, but need to define -shared option too, otherwise
5064 # it will coredump.
5065 PICFLAG_FOR_TARGET='-fPIC -shared'
5067 i[34567]86-pc-msdosdjgpp*)
5068 # DJGPP does not support shared libraries at all.
5070 ia64*-*-hpux*)
5071 # On IA64 HP-UX, PIC is the default but the pic flag
5072 # sets the default TLS model and affects inlining.
5073 PICFLAG_FOR_TARGET=-fPIC
5075 mips-sgi-irix6*)
5076 # PIC is the default.
5078 rs6000-ibm-aix* | powerpc-ibm-aix*)
5079 # All AIX code is PIC.
5082 # Some targets support both -fPIC and -fpic, but prefer the latter.
5083 # FIXME: Why?
5084 i[34567]86-*-* | x86_64-*-*)
5085 PICFLAG_FOR_TARGET=-fpic
5087 # FIXME: Override -fPIC default in libgcc only?
5088 sh-*-linux* | sh[2346lbe]*-*-linux*)
5089 PICFLAG_FOR_TARGET=-fpic
5091 # FIXME: Simplify to sh*-*-netbsd*?
5092 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5093 sh64-*-netbsd* | sh64l*-*-netbsd*)
5094 PICFLAG_FOR_TARGET=-fpic
5096 # Default to -fPIC unless specified otherwise.
5098 PICFLAG_FOR_TARGET=-fPIC
5100 esac
5102 # If the user explicitly uses -fpic/-fPIC, keep that.
5103 case "${CFLAGS_FOR_TARGET}" in
5104 *-fpic*)
5105 PICFLAG_FOR_TARGET=-fpic
5107 *-fPIC*)
5108 PICFLAG_FOR_TARGET=-fPIC
5110 esac
5114 # -------------------------
5115 # Check C compiler features
5116 # -------------------------
5119 ac_ext=cpp
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5125 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5126 if test -z "$CXXCPP"; then
5127 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 # Double quotes because CXXCPP needs to be expanded
5131 for CXXCPP in "$CXX -E" "/lib/cpp"
5133 ac_preproc_ok=false
5134 for ac_cxx_preproc_warn_flag in '' yes
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #ifdef __STDC__
5145 # include <limits.h>
5146 #else
5147 # include <assert.h>
5148 #endif
5149 Syntax error
5150 _ACEOF
5151 if ac_fn_cxx_try_cpp "$LINENO"; then :
5153 else
5154 # Broken: fails on valid input.
5155 continue
5157 rm -f conftest.err conftest.$ac_ext
5159 # OK, works on sane cases. Now check whether nonexistent headers
5160 # can be detected and how.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <ac_nonexistent.h>
5164 _ACEOF
5165 if ac_fn_cxx_try_cpp "$LINENO"; then :
5166 # Broken: success on invalid input.
5167 continue
5168 else
5169 # Passes both tests.
5170 ac_preproc_ok=:
5171 break
5173 rm -f conftest.err conftest.$ac_ext
5175 done
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.$ac_ext
5178 if $ac_preproc_ok; then :
5179 break
5182 done
5183 ac_cv_prog_CXXCPP=$CXXCPP
5186 CXXCPP=$ac_cv_prog_CXXCPP
5187 else
5188 ac_cv_prog_CXXCPP=$CXXCPP
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5191 $as_echo "$CXXCPP" >&6; }
5192 ac_preproc_ok=false
5193 for ac_cxx_preproc_warn_flag in '' yes
5195 # Use a header file that comes with gcc, so configuring glibc
5196 # with a fresh cross-compiler works.
5197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 # <limits.h> exists even on freestanding compilers.
5199 # On the NeXT, cc -E runs the code through the compiler's parser,
5200 # not just through cpp. "Syntax error" is here to catch this case.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208 Syntax error
5209 _ACEOF
5210 if ac_fn_cxx_try_cpp "$LINENO"; then :
5212 else
5213 # Broken: fails on valid input.
5214 continue
5216 rm -f conftest.err conftest.$ac_ext
5218 # OK, works on sane cases. Now check whether nonexistent headers
5219 # can be detected and how.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <ac_nonexistent.h>
5223 _ACEOF
5224 if ac_fn_cxx_try_cpp "$LINENO"; then :
5225 # Broken: success on invalid input.
5226 continue
5227 else
5228 # Passes both tests.
5229 ac_preproc_ok=:
5230 break
5232 rm -f conftest.err conftest.$ac_ext
5234 done
5235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5236 rm -f conftest.err conftest.$ac_ext
5237 if $ac_preproc_ok; then :
5239 else
5240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5242 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5243 See \`config.log' for more details." "$LINENO" 5; }
5246 ac_ext=cpp
5247 ac_cpp='$CXXCPP $CPPFLAGS'
5248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5254 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5255 if test "${ac_cv_path_GREP+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -z "$GREP"; then
5259 ac_path_GREP_found=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_prog in grep ggrep; do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5270 # Check for GNU ac_path_GREP and select it if it is found.
5271 # Check for GNU $ac_path_GREP
5272 case `"$ac_path_GREP" --version 2>&1` in
5273 *GNU*)
5274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5276 ac_count=0
5277 $as_echo_n 0123456789 >"conftest.in"
5278 while :
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'GREP' >> "conftest.nl"
5284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 as_fn_arith $ac_count + 1 && ac_count=$as_val
5287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_GREP="$ac_path_GREP"
5290 ac_path_GREP_max=$ac_count
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 esac
5298 $ac_path_GREP_found && break 3
5299 done
5300 done
5301 done
5302 IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_GREP"; then
5304 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5306 else
5307 ac_cv_path_GREP=$GREP
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5312 $as_echo "$ac_cv_path_GREP" >&6; }
5313 GREP="$ac_cv_path_GREP"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5317 $as_echo_n "checking for egrep... " >&6; }
5318 if test "${ac_cv_path_EGREP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5322 then ac_cv_path_EGREP="$GREP -E"
5323 else
5324 if test -z "$EGREP"; then
5325 ac_path_EGREP_found=false
5326 # Loop through the user's path and test for each of PROGNAME-LIST
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_prog in egrep; do
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5335 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5336 # Check for GNU ac_path_EGREP and select it if it is found.
5337 # Check for GNU $ac_path_EGREP
5338 case `"$ac_path_EGREP" --version 2>&1` in
5339 *GNU*)
5340 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5342 ac_count=0
5343 $as_echo_n 0123456789 >"conftest.in"
5344 while :
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 $as_echo 'EGREP' >> "conftest.nl"
5350 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352 as_fn_arith $ac_count + 1 && ac_count=$as_val
5353 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_EGREP="$ac_path_EGREP"
5356 ac_path_EGREP_max=$ac_count
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
5360 done
5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 esac
5364 $ac_path_EGREP_found && break 3
5365 done
5366 done
5367 done
5368 IFS=$as_save_IFS
5369 if test -z "$ac_cv_path_EGREP"; then
5370 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5372 else
5373 ac_cv_path_EGREP=$EGREP
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5379 $as_echo "$ac_cv_path_EGREP" >&6; }
5380 EGREP="$ac_cv_path_EGREP"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5384 $as_echo_n "checking for ANSI C header files... " >&6; }
5385 if test "${ac_cv_header_stdc+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #include <stdlib.h>
5391 #include <stdarg.h>
5392 #include <string.h>
5393 #include <float.h>
5396 main ()
5400 return 0;
5402 _ACEOF
5403 if ac_fn_cxx_try_compile "$LINENO"; then :
5404 ac_cv_header_stdc=yes
5405 else
5406 ac_cv_header_stdc=no
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 if test $ac_cv_header_stdc = yes; then
5411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #include <string.h>
5416 _ACEOF
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "memchr" >/dev/null 2>&1; then :
5420 else
5421 ac_cv_header_stdc=no
5423 rm -f conftest*
5427 if test $ac_cv_header_stdc = yes; then
5428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <stdlib.h>
5433 _ACEOF
5434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5435 $EGREP "free" >/dev/null 2>&1; then :
5437 else
5438 ac_cv_header_stdc=no
5440 rm -f conftest*
5444 if test $ac_cv_header_stdc = yes; then
5445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5446 if test "$cross_compiling" = yes; then :
5448 else
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #include <ctype.h>
5452 #include <stdlib.h>
5453 #if ((' ' & 0x0FF) == 0x020)
5454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5456 #else
5457 # define ISLOWER(c) \
5458 (('a' <= (c) && (c) <= 'i') \
5459 || ('j' <= (c) && (c) <= 'r') \
5460 || ('s' <= (c) && (c) <= 'z'))
5461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5462 #endif
5464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5466 main ()
5468 int i;
5469 for (i = 0; i < 256; i++)
5470 if (XOR (islower (i), ISLOWER (i))
5471 || toupper (i) != TOUPPER (i))
5472 return 2;
5473 return 0;
5475 _ACEOF
5476 if ac_fn_cxx_try_run "$LINENO"; then :
5478 else
5479 ac_cv_header_stdc=no
5481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5482 conftest.$ac_objext conftest.beam conftest.$ac_ext
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5488 $as_echo "$ac_cv_header_stdc" >&6; }
5489 if test $ac_cv_header_stdc = yes; then
5491 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5496 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5497 inttypes.h stdint.h unistd.h
5498 do :
5499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5500 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5502 eval as_val=\$$as_ac_Header
5503 if test "x$as_val" = x""yes; then :
5504 cat >>confdefs.h <<_ACEOF
5505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5506 _ACEOF
5510 done
5514 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5515 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5516 MINIX=yes
5517 else
5518 MINIX=
5522 if test "$MINIX" = yes; then
5524 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5527 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5530 $as_echo "#define _MINIX 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5536 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5537 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5543 # define __EXTENSIONS__ 1
5544 $ac_includes_default
5546 main ()
5550 return 0;
5552 _ACEOF
5553 if ac_fn_cxx_try_compile "$LINENO"; then :
5554 ac_cv_safe_to_define___extensions__=yes
5555 else
5556 ac_cv_safe_to_define___extensions__=no
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5561 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5562 test $ac_cv_safe_to_define___extensions__ = yes &&
5563 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5565 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5567 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5569 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5571 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5574 ac_ext=c
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5580 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5583 CPP=
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 # Double quotes because CPP needs to be expanded
5590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5592 ac_preproc_ok=false
5593 for ac_c_preproc_warn_flag in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error" is here to catch this case.
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #ifdef __STDC__
5604 # include <limits.h>
5605 #else
5606 # include <assert.h>
5607 #endif
5608 Syntax error
5609 _ACEOF
5610 if ac_fn_c_try_cpp "$LINENO"; then :
5612 else
5613 # Broken: fails on valid input.
5614 continue
5616 rm -f conftest.err conftest.$ac_ext
5618 # OK, works on sane cases. Now check whether nonexistent headers
5619 # can be detected and how.
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <ac_nonexistent.h>
5623 _ACEOF
5624 if ac_fn_c_try_cpp "$LINENO"; then :
5625 # Broken: success on invalid input.
5626 continue
5627 else
5628 # Passes both tests.
5629 ac_preproc_ok=:
5630 break
5632 rm -f conftest.err conftest.$ac_ext
5634 done
5635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5636 rm -f conftest.err conftest.$ac_ext
5637 if $ac_preproc_ok; then :
5638 break
5641 done
5642 ac_cv_prog_CPP=$CPP
5645 CPP=$ac_cv_prog_CPP
5646 else
5647 ac_cv_prog_CPP=$CPP
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5650 $as_echo "$CPP" >&6; }
5651 ac_preproc_ok=false
5652 for ac_c_preproc_warn_flag in '' yes
5654 # Use a header file that comes with gcc, so configuring glibc
5655 # with a fresh cross-compiler works.
5656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5657 # <limits.h> exists even on freestanding compilers.
5658 # On the NeXT, cc -E runs the code through the compiler's parser,
5659 # not just through cpp. "Syntax error" is here to catch this case.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #ifdef __STDC__
5663 # include <limits.h>
5664 #else
5665 # include <assert.h>
5666 #endif
5667 Syntax error
5668 _ACEOF
5669 if ac_fn_c_try_cpp "$LINENO"; then :
5671 else
5672 # Broken: fails on valid input.
5673 continue
5675 rm -f conftest.err conftest.$ac_ext
5677 # OK, works on sane cases. Now check whether nonexistent headers
5678 # can be detected and how.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <ac_nonexistent.h>
5682 _ACEOF
5683 if ac_fn_c_try_cpp "$LINENO"; then :
5684 # Broken: success on invalid input.
5685 continue
5686 else
5687 # Passes both tests.
5688 ac_preproc_ok=:
5689 break
5691 rm -f conftest.err conftest.$ac_ext
5693 done
5694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695 rm -f conftest.err conftest.$ac_ext
5696 if $ac_preproc_ok; then :
5698 else
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5702 See \`config.log' for more details." "$LINENO" 5; }
5705 ac_ext=cpp
5706 ac_cpp='$CXXCPP $CPPFLAGS'
5707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5712 $as_echo_n "checking for inline... " >&6; }
5713 if test "${ac_cv_c_inline+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 ac_cv_c_inline=no
5717 for ac_kw in inline __inline__ __inline; do
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #ifndef __cplusplus
5721 typedef int foo_t;
5722 static $ac_kw foo_t static_foo () {return 0; }
5723 $ac_kw foo_t foo () {return 0; }
5724 #endif
5726 _ACEOF
5727 if ac_fn_cxx_try_compile "$LINENO"; then :
5728 ac_cv_c_inline=$ac_kw
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 test "$ac_cv_c_inline" != no && break
5732 done
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5736 $as_echo "$ac_cv_c_inline" >&6; }
5738 case $ac_cv_c_inline in
5739 inline | yes) ;;
5741 case $ac_cv_c_inline in
5742 no) ac_val=;;
5743 *) ac_val=$ac_cv_c_inline;;
5744 esac
5745 cat >>confdefs.h <<_ACEOF
5746 #ifndef __cplusplus
5747 #define inline $ac_val
5748 #endif
5749 _ACEOF
5751 esac
5754 # Check whether --enable-largefile was given.
5755 if test "${enable_largefile+set}" = set; then :
5756 enableval=$enable_largefile;
5759 if test "$enable_largefile" != no; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5762 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5763 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 ac_cv_sys_largefile_CC=no
5767 if test "$GCC" != yes; then
5768 ac_save_CC=$CC
5769 while :; do
5770 # IRIX 6.2 and later do not support large files by default,
5771 # so use the C compiler's -n32 option if that helps.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5782 ? 1 : -1];
5784 main ()
5788 return 0;
5790 _ACEOF
5791 if ac_fn_cxx_try_compile "$LINENO"; then :
5792 break
5794 rm -f core conftest.err conftest.$ac_objext
5795 CC="$CC -n32"
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5797 ac_cv_sys_largefile_CC=' -n32'; break
5799 rm -f core conftest.err conftest.$ac_objext
5800 break
5801 done
5802 CC=$ac_save_CC
5803 rm -f conftest.$ac_ext
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5807 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5808 if test "$ac_cv_sys_largefile_CC" != no; then
5809 CC=$CC$ac_cv_sys_largefile_CC
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5813 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5814 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 while :; do
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5821 /* Check that off_t can represent 2**63 - 1 correctly.
5822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5823 since some C++ compilers masquerading as C compilers
5824 incorrectly reject 9223372036854775807. */
5825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5827 && LARGE_OFF_T % 2147483647 == 1)
5828 ? 1 : -1];
5830 main ()
5834 return 0;
5836 _ACEOF
5837 if ac_fn_cxx_try_compile "$LINENO"; then :
5838 ac_cv_sys_file_offset_bits=no; break
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #define _FILE_OFFSET_BITS 64
5844 #include <sys/types.h>
5845 /* Check that off_t can represent 2**63 - 1 correctly.
5846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5847 since some C++ compilers masquerading as C compilers
5848 incorrectly reject 9223372036854775807. */
5849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5851 && LARGE_OFF_T % 2147483647 == 1)
5852 ? 1 : -1];
5854 main ()
5858 return 0;
5860 _ACEOF
5861 if ac_fn_cxx_try_compile "$LINENO"; then :
5862 ac_cv_sys_file_offset_bits=64; break
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 ac_cv_sys_file_offset_bits=unknown
5866 break
5867 done
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5870 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5871 case $ac_cv_sys_file_offset_bits in #(
5872 no | unknown) ;;
5874 cat >>confdefs.h <<_ACEOF
5875 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5876 _ACEOF
5878 esac
5879 rm -rf conftest*
5880 if test $ac_cv_sys_file_offset_bits = unknown; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5882 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5883 if test "${ac_cv_sys_large_files+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 while :; do
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #include <sys/types.h>
5890 /* Check that off_t can represent 2**63 - 1 correctly.
5891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5892 since some C++ compilers masquerading as C compilers
5893 incorrectly reject 9223372036854775807. */
5894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5896 && LARGE_OFF_T % 2147483647 == 1)
5897 ? 1 : -1];
5899 main ()
5903 return 0;
5905 _ACEOF
5906 if ac_fn_cxx_try_compile "$LINENO"; then :
5907 ac_cv_sys_large_files=no; break
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #define _LARGE_FILES 1
5913 #include <sys/types.h>
5914 /* Check that off_t can represent 2**63 - 1 correctly.
5915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5916 since some C++ compilers masquerading as C compilers
5917 incorrectly reject 9223372036854775807. */
5918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5920 && LARGE_OFF_T % 2147483647 == 1)
5921 ? 1 : -1];
5923 main ()
5927 return 0;
5929 _ACEOF
5930 if ac_fn_cxx_try_compile "$LINENO"; then :
5931 ac_cv_sys_large_files=1; break
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cv_sys_large_files=unknown
5935 break
5936 done
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5939 $as_echo "$ac_cv_sys_large_files" >&6; }
5940 case $ac_cv_sys_large_files in #(
5941 no | unknown) ;;
5943 cat >>confdefs.h <<_ACEOF
5944 #define _LARGE_FILES $ac_cv_sys_large_files
5945 _ACEOF
5947 esac
5948 rm -rf conftest*
5953 # sizeof(char) is 1 by definition.
5954 # The cast to long int works around a bug in the HP C Compiler
5955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5957 # This bug is HP SR number 8606223364.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5959 $as_echo_n "checking size of void *... " >&6; }
5960 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5965 else
5966 if test "$ac_cv_type_void_p" = yes; then
5967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5969 { as_fn_set_status 77
5970 as_fn_error "cannot compute sizeof (void *)
5971 See \`config.log' for more details." "$LINENO" 5; }; }
5972 else
5973 ac_cv_sizeof_void_p=0
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5979 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5983 cat >>confdefs.h <<_ACEOF
5984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5985 _ACEOF
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5993 $as_echo_n "checking size of short... " >&6; }
5994 if test "${ac_cv_sizeof_short+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5999 else
6000 if test "$ac_cv_type_short" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status 77
6004 as_fn_error "cannot compute sizeof (short)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6006 else
6007 ac_cv_sizeof_short=0
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6013 $as_echo "$ac_cv_sizeof_short" >&6; }
6017 cat >>confdefs.h <<_ACEOF
6018 #define SIZEOF_SHORT $ac_cv_sizeof_short
6019 _ACEOF
6022 # The cast to long int works around a bug in the HP C Compiler
6023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6025 # This bug is HP SR number 8606223364.
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6027 $as_echo_n "checking size of int... " >&6; }
6028 if test "${ac_cv_sizeof_int+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6033 else
6034 if test "$ac_cv_type_int" = yes; then
6035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6037 { as_fn_set_status 77
6038 as_fn_error "cannot compute sizeof (int)
6039 See \`config.log' for more details." "$LINENO" 5; }; }
6040 else
6041 ac_cv_sizeof_int=0
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6047 $as_echo "$ac_cv_sizeof_int" >&6; }
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF_INT $ac_cv_sizeof_int
6053 _ACEOF
6056 # The cast to long int works around a bug in the HP C Compiler
6057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059 # This bug is HP SR number 8606223364.
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6061 $as_echo_n "checking size of long... " >&6; }
6062 if test "${ac_cv_sizeof_long+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6067 else
6068 if test "$ac_cv_type_long" = yes; then
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 { as_fn_set_status 77
6072 as_fn_error "cannot compute sizeof (long)
6073 See \`config.log' for more details." "$LINENO" 5; }; }
6074 else
6075 ac_cv_sizeof_long=0
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6081 $as_echo "$ac_cv_sizeof_long" >&6; }
6085 cat >>confdefs.h <<_ACEOF
6086 #define SIZEOF_LONG $ac_cv_sizeof_long
6087 _ACEOF
6090 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6091 if test "x$ac_cv_type_long_long" = x""yes; then :
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6095 _ACEOF
6097 # The cast to long int works around a bug in the HP C Compiler
6098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6100 # This bug is HP SR number 8606223364.
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6102 $as_echo_n "checking size of long long... " >&6; }
6103 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6108 else
6109 if test "$ac_cv_type_long_long" = yes; then
6110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6112 { as_fn_set_status 77
6113 as_fn_error "cannot compute sizeof (long long)
6114 See \`config.log' for more details." "$LINENO" 5; }; }
6115 else
6116 ac_cv_sizeof_long_long=0
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6122 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6126 cat >>confdefs.h <<_ACEOF
6127 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6128 _ACEOF
6133 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6134 case $ac_cv_c_int8_t in #(
6135 no|yes) ;; #(
6138 cat >>confdefs.h <<_ACEOF
6139 #define int8_t $ac_cv_c_int8_t
6140 _ACEOF
6142 esac
6144 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6145 case $ac_cv_c_int16_t in #(
6146 no|yes) ;; #(
6149 cat >>confdefs.h <<_ACEOF
6150 #define int16_t $ac_cv_c_int16_t
6151 _ACEOF
6153 esac
6155 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6156 case $ac_cv_c_int32_t in #(
6157 no|yes) ;; #(
6160 cat >>confdefs.h <<_ACEOF
6161 #define int32_t $ac_cv_c_int32_t
6162 _ACEOF
6164 esac
6166 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6167 case $ac_cv_c_int64_t in #(
6168 no|yes) ;; #(
6171 cat >>confdefs.h <<_ACEOF
6172 #define int64_t $ac_cv_c_int64_t
6173 _ACEOF
6175 esac
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6179 $as_echo_n "checking for long long int... " >&6; }
6180 if test "${ac_cv_type_long_long_int+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6186 /* For now, do not test the preprocessor; as of 2007 there are too many
6187 implementations with broken preprocessors. Perhaps this can
6188 be revisited in 2012. In the meantime, code should not expect
6189 #if to work with literals wider than 32 bits. */
6190 /* Test literals. */
6191 long long int ll = 9223372036854775807ll;
6192 long long int nll = -9223372036854775807LL;
6193 unsigned long long int ull = 18446744073709551615ULL;
6194 /* Test constant expressions. */
6195 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6196 ? 1 : -1)];
6197 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6198 ? 1 : -1)];
6199 int i = 63;
6201 main ()
6203 /* Test availability of runtime routines for shift and division. */
6204 long long int llmax = 9223372036854775807ll;
6205 unsigned long long int ullmax = 18446744073709551615ull;
6206 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6207 | (llmax / ll) | (llmax % ll)
6208 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6209 | (ullmax / ull) | (ullmax % ull));
6211 return 0;
6214 _ACEOF
6215 if ac_fn_cxx_try_link "$LINENO"; then :
6216 if test "$cross_compiling" = yes; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #include <limits.h>
6222 #ifndef LLONG_MAX
6223 # define HALF \
6224 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6225 # define LLONG_MAX (HALF - 1 + HALF)
6226 #endif
6228 main ()
6230 long long int n = 1;
6231 int i;
6232 for (i = 0; ; i++)
6234 long long int m = n << i;
6235 if (m >> i != n)
6236 return 1;
6237 if (LLONG_MAX / 2 < m)
6238 break;
6240 return 0;
6242 return 0;
6244 _ACEOF
6245 if ac_fn_cxx_try_run "$LINENO"; then :
6246 ac_cv_type_long_long_int=yes
6247 else
6248 ac_cv_type_long_long_int=no
6250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6251 conftest.$ac_objext conftest.beam conftest.$ac_ext
6254 else
6255 ac_cv_type_long_long_int=no
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6261 $as_echo "$ac_cv_type_long_long_int" >&6; }
6262 if test $ac_cv_type_long_long_int = yes; then
6264 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6270 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6271 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6273 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6275 else
6276 test $ac_cv_type_long_long_int = yes \
6277 && ac_type='long long int' \
6278 || ac_type='long int'
6280 cat >>confdefs.h <<_ACEOF
6281 #define intmax_t $ac_type
6282 _ACEOF
6288 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6289 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6291 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6293 else
6294 for ac_type in 'int' 'long int' 'long long int'; do
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 $ac_includes_default
6299 main ()
6301 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6302 test_array [0] = 0
6305 return 0;
6307 _ACEOF
6308 if ac_fn_cxx_try_compile "$LINENO"; then :
6310 cat >>confdefs.h <<_ACEOF
6311 #define intptr_t $ac_type
6312 _ACEOF
6314 ac_type=
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 test -z "$ac_type" && break
6318 done
6322 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6323 case $ac_cv_c_uint8_t in #(
6324 no|yes) ;; #(
6327 $as_echo "#define _UINT8_T 1" >>confdefs.h
6330 cat >>confdefs.h <<_ACEOF
6331 #define uint8_t $ac_cv_c_uint8_t
6332 _ACEOF
6334 esac
6336 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6337 case $ac_cv_c_uint16_t in #(
6338 no|yes) ;; #(
6342 cat >>confdefs.h <<_ACEOF
6343 #define uint16_t $ac_cv_c_uint16_t
6344 _ACEOF
6346 esac
6348 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6349 case $ac_cv_c_uint32_t in #(
6350 no|yes) ;; #(
6353 $as_echo "#define _UINT32_T 1" >>confdefs.h
6356 cat >>confdefs.h <<_ACEOF
6357 #define uint32_t $ac_cv_c_uint32_t
6358 _ACEOF
6360 esac
6362 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6363 case $ac_cv_c_uint64_t in #(
6364 no|yes) ;; #(
6367 $as_echo "#define _UINT64_T 1" >>confdefs.h
6370 cat >>confdefs.h <<_ACEOF
6371 #define uint64_t $ac_cv_c_uint64_t
6372 _ACEOF
6374 esac
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6378 $as_echo_n "checking for unsigned long long int... " >&6; }
6379 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6385 /* For now, do not test the preprocessor; as of 2007 there are too many
6386 implementations with broken preprocessors. Perhaps this can
6387 be revisited in 2012. In the meantime, code should not expect
6388 #if to work with literals wider than 32 bits. */
6389 /* Test literals. */
6390 long long int ll = 9223372036854775807ll;
6391 long long int nll = -9223372036854775807LL;
6392 unsigned long long int ull = 18446744073709551615ULL;
6393 /* Test constant expressions. */
6394 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6395 ? 1 : -1)];
6396 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6397 ? 1 : -1)];
6398 int i = 63;
6400 main ()
6402 /* Test availability of runtime routines for shift and division. */
6403 long long int llmax = 9223372036854775807ll;
6404 unsigned long long int ullmax = 18446744073709551615ull;
6405 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6406 | (llmax / ll) | (llmax % ll)
6407 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6408 | (ullmax / ull) | (ullmax % ull));
6410 return 0;
6413 _ACEOF
6414 if ac_fn_cxx_try_link "$LINENO"; then :
6415 ac_cv_type_unsigned_long_long_int=yes
6416 else
6417 ac_cv_type_unsigned_long_long_int=no
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6423 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6424 if test $ac_cv_type_unsigned_long_long_int = yes; then
6426 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6432 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6433 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6435 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6437 else
6438 test $ac_cv_type_unsigned_long_long_int = yes \
6439 && ac_type='unsigned long long int' \
6440 || ac_type='unsigned long int'
6442 cat >>confdefs.h <<_ACEOF
6443 #define uintmax_t $ac_type
6444 _ACEOF
6450 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6451 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6453 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6455 else
6456 for ac_type in 'unsigned int' 'unsigned long int' \
6457 'unsigned long long int'; do
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6462 main ()
6464 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6465 test_array [0] = 0
6468 return 0;
6470 _ACEOF
6471 if ac_fn_cxx_try_compile "$LINENO"; then :
6473 cat >>confdefs.h <<_ACEOF
6474 #define uintptr_t $ac_type
6475 _ACEOF
6477 ac_type=
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 test -z "$ac_type" && break
6481 done
6497 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6498 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6501 # check what underlying integer type int64_t uses
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6503 $as_echo_n "checking for int64_t underlying type... " >&6; }
6504 if test "${ac_cv_int64_t_type+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6511 #ifdef HAVE_STDINT_H
6512 #include <stdint.h>
6513 #endif
6514 template <typename T> struct X { };
6515 template <>
6516 struct X<long> { typedef long t; };
6519 main ()
6521 X<int64_t>::t x;
6523 return 0;
6525 _ACEOF
6526 if ac_fn_cxx_try_compile "$LINENO"; then :
6527 ac_cv_int64_t_type=long
6528 else
6529 ac_cv_int64_t_type="long long"
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6534 $as_echo "$ac_cv_int64_t_type" >&6; }
6535 if test "$ac_cv_int64_t_type" = "long"; then
6537 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6539 else
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6543 #ifdef HAVE_STDINT_H
6544 #include <stdint.h>
6545 #endif
6546 template <typename T> struct X { };
6547 template <>
6548 struct X<long long> { typedef long long t; };
6551 main ()
6553 X<int64_t>::t x;
6555 return 0;
6557 _ACEOF
6558 if ac_fn_cxx_try_compile "$LINENO"; then :
6560 else
6561 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6567 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6568 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 #include <utility>
6578 main ()
6580 int a, b; std::swap(a,b);
6582 return 0;
6584 _ACEOF
6585 if ac_fn_cxx_try_compile "$LINENO"; then :
6586 ac_cv_std_swap_in_utility=yes
6587 else
6588 ac_cv_std_swap_in_utility=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6593 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6594 if test $ac_cv_std_swap_in_utility = yes; then
6596 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6600 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6601 # If the host compiler is affected by the bug, and we build with optimization
6602 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6603 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6604 # Since there is no reliable feature check for the presence of this bug,
6605 # we simply use a GCC version number check. (This should never trigger for
6606 # stages 2 or 3 of a native bootstrap.)
6607 aliasing_flags=
6608 if test "$GCC" = yes; then
6609 saved_CXXFLAGS="$CXXFLAGS"
6611 # The following test compilation will succeed if and only if $CXX accepts
6612 # -fno-strict-aliasing *and* is older than GCC 4.3.
6613 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6615 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6619 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6620 #error compiler not affected by placement new aliasing bug
6621 #endif
6623 _ACEOF
6624 if ac_fn_cxx_try_compile "$LINENO"; then :
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 CXXFLAGS="$saved_CXXFLAGS"
6639 # ---------------------
6640 # Warnings and checking
6641 # ---------------------
6643 # Check $CC warning features (if it's GCC).
6644 # We want to use -pedantic, but we don't want warnings about
6645 # * 'long long'
6646 # * variadic macros
6647 # * overlong strings
6648 # * C++11 narrowing conversions in { }
6649 # So, we only use -pedantic if we can disable those warnings.
6651 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6652 # Check whether --enable-build-format-warnings was given.
6653 if test "${enable_build_format_warnings+set}" = set; then :
6654 enableval=$enable_build_format_warnings;
6655 else
6656 enable_build_format_warnings=yes
6659 if test $enable_build_format_warnings = no; then :
6660 wf_opt=-Wno-format
6661 else
6662 wf_opt=
6664 ac_ext=cpp
6665 ac_cpp='$CXXCPP $CPPFLAGS'
6666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6670 loose_warn=
6671 save_CXXFLAGS="$CXXFLAGS"
6672 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6673 # Do the check with the no- prefix removed since gcc silently
6674 # accepts any -Wno-* option on purpose
6675 case $real_option in
6676 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6677 *) option=$real_option ;;
6678 esac
6679 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6682 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6683 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 CXXFLAGS="$option"
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6691 main ()
6695 return 0;
6697 _ACEOF
6698 if ac_fn_cxx_try_compile "$LINENO"; then :
6699 eval "$as_acx_Woption=yes"
6700 else
6701 eval "$as_acx_Woption=no"
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 eval ac_res=\$$as_acx_Woption
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6708 $as_echo "$ac_res" >&6; }
6709 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6710 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6712 done
6713 CXXFLAGS="$save_CXXFLAGS"
6714 ac_ext=cpp
6715 ac_cpp='$CXXCPP $CPPFLAGS'
6716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6722 ac_ext=c
6723 ac_cpp='$CPP $CPPFLAGS'
6724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728 c_loose_warn=
6729 save_CFLAGS="$CFLAGS"
6730 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6731 # Do the check with the no- prefix removed since gcc silently
6732 # accepts any -Wno-* option on purpose
6733 case $real_option in
6734 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6735 *) option=$real_option ;;
6736 esac
6737 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6740 $as_echo_n "checking whether $CC supports $option... " >&6; }
6741 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 CFLAGS="$option"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6749 main ()
6753 return 0;
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 eval "$as_acx_Woption=yes"
6758 else
6759 eval "$as_acx_Woption=no"
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 eval ac_res=\$$as_acx_Woption
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6766 $as_echo "$ac_res" >&6; }
6767 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6768 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6770 done
6771 CFLAGS="$save_CFLAGS"
6772 ac_ext=cpp
6773 ac_cpp='$CXXCPP $CPPFLAGS'
6774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6779 ac_ext=cpp
6780 ac_cpp='$CXXCPP $CPPFLAGS'
6781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6785 strict_warn=
6786 save_CXXFLAGS="$CXXFLAGS"
6787 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6788 # Do the check with the no- prefix removed since gcc silently
6789 # accepts any -Wno-* option on purpose
6790 case $real_option in
6791 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6792 *) option=$real_option ;;
6793 esac
6794 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6797 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6798 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 CXXFLAGS="$option"
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6806 main ()
6810 return 0;
6812 _ACEOF
6813 if ac_fn_cxx_try_compile "$LINENO"; then :
6814 eval "$as_acx_Woption=yes"
6815 else
6816 eval "$as_acx_Woption=no"
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 eval ac_res=\$$as_acx_Woption
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6825 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6827 done
6828 CXXFLAGS="$save_CXXFLAGS"
6829 ac_ext=cpp
6830 ac_cpp='$CXXCPP $CPPFLAGS'
6831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842 c_strict_warn=
6843 save_CFLAGS="$CFLAGS"
6844 for real_option in -Wold-style-definition -Wc++-compat; do
6845 # Do the check with the no- prefix removed since gcc silently
6846 # accepts any -Wno-* option on purpose
6847 case $real_option in
6848 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6849 *) option=$real_option ;;
6850 esac
6851 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6854 $as_echo_n "checking whether $CC supports $option... " >&6; }
6855 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 CFLAGS="$option"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6863 main ()
6867 return 0;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 eval "$as_acx_Woption=yes"
6872 else
6873 eval "$as_acx_Woption=no"
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 eval ac_res=\$$as_acx_Woption
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6882 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6884 done
6885 CFLAGS="$save_CFLAGS"
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893 ac_ext=cpp
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6899 # Do the check with the no- prefix removed from the warning options
6900 # since gcc silently accepts any -Wno-* option on purpose
6901 if test "$GXX" = yes; then :
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6903 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6904 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 save_CXXFLAGS="$CXXFLAGS"
6908 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6913 main ()
6917 return 0;
6919 _ACEOF
6920 if ac_fn_cxx_try_compile "$LINENO"; then :
6921 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6922 else
6923 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 CXXFLAGS="$save_CXXFLAGS"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6929 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6930 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6931 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6935 ac_ext=cpp
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6942 ac_ext=cpp
6943 ac_cpp='$CXXCPP $CPPFLAGS'
6944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948 # Check whether --enable-werror-always was given.
6949 if test "${enable_werror_always+set}" = set; then :
6950 enableval=$enable_werror_always;
6951 else
6952 enable_werror_always=no
6955 if test $enable_werror_always = yes; then :
6956 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6959 ac_ext=cpp
6960 ac_cpp='$CXXCPP $CPPFLAGS'
6961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6967 # The above macros do nothing if the compiler is not GCC. However, the
6968 # Makefile has more goo to add other flags, so these variables are used
6969 # to enable warnings only for GCC.
6970 warn_cflags=
6971 warn_cxxflags=
6972 if test "x$GCC" = "xyes"; then
6973 warn_cflags='$(GCC_WARN_CFLAGS)'
6974 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6979 # Disable exceptions and RTTI if building with g++
6980 ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986 noexception_flags=
6987 save_CFLAGS="$CFLAGS"
6988 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6989 # Do the check with the no- prefix removed since gcc silently
6990 # accepts any -Wno-* option on purpose
6991 case $real_option in
6992 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6993 *) option=$real_option ;;
6994 esac
6995 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6998 $as_echo_n "checking whether $CC supports $option... " >&6; }
6999 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 CFLAGS="$option"
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7007 main ()
7011 return 0;
7013 _ACEOF
7014 if ac_fn_c_try_compile "$LINENO"; then :
7015 eval "$as_acx_Woption=yes"
7016 else
7017 eval "$as_acx_Woption=no"
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 eval ac_res=\$$as_acx_Woption
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7024 $as_echo "$ac_res" >&6; }
7025 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7026 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7028 done
7029 CFLAGS="$save_CFLAGS"
7030 ac_ext=cpp
7031 ac_cpp='$CXXCPP $CPPFLAGS'
7032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7038 # Enable expensive internal checks
7039 is_release=
7040 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7041 is_release=yes
7044 # Check whether --enable-checking was given.
7045 if test "${enable_checking+set}" = set; then :
7046 enableval=$enable_checking; ac_checking_flags="${enableval}"
7047 else
7049 # Determine the default checks.
7050 if test x$is_release = x ; then
7051 ac_checking_flags=yes,extra
7052 else
7053 ac_checking_flags=release
7057 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7058 for check in release $ac_checking_flags
7060 case $check in
7061 # these set all the flags to specific states
7062 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7063 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7064 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7065 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7066 ac_tree_checking=1 ; ac_valgrind_checking= ;
7067 ac_types_checking=1 ;;
7068 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7069 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7070 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7071 ac_rtlflag_checking= ; ac_runtime_checking= ;
7072 ac_tree_checking= ; ac_valgrind_checking= ;
7073 ac_types_checking= ;;
7074 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7075 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7076 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7077 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7078 ac_tree_checking=1 ; ac_valgrind_checking= ;
7079 ac_types_checking=1 ;;
7080 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7081 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7082 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7083 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7084 ac_tree_checking= ; ac_valgrind_checking= ;
7085 ac_types_checking= ;;
7086 # these enable particular checks
7087 assert) ac_assert_checking=1 ;;
7088 df) ac_df_checking=1 ;;
7089 extra) ac_extra_checking=1 ;;
7090 fold) ac_fold_checking=1 ;;
7091 gc) ac_gc_checking=1 ;;
7092 gcac) ac_gc_always_collect=1 ;;
7093 gimple) ac_gimple_checking=1 ;;
7094 misc) ac_checking=1 ;;
7095 rtl) ac_rtl_checking=1 ;;
7096 rtlflag) ac_rtlflag_checking=1 ;;
7097 runtime) ac_runtime_checking=1 ;;
7098 tree) ac_tree_checking=1 ;;
7099 types) ac_types_checking=1 ;;
7100 valgrind) ac_valgrind_checking=1 ;;
7101 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7102 esac
7103 done
7104 IFS="$ac_save_IFS"
7106 nocommon_flag=""
7107 if test x$ac_checking != x ; then
7109 $as_echo "#define CHECKING_P 1" >>confdefs.h
7111 nocommon_flag=-fno-common
7112 else
7113 $as_echo "#define CHECKING_P 0" >>confdefs.h
7117 if test x$ac_extra_checking != x ; then
7119 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7121 else
7122 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7125 if test x$ac_df_checking != x ; then
7127 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7130 if test x$ac_assert_checking != x ; then
7132 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7135 if test x$ac_gimple_checking != x ; then
7137 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7141 if test x$ac_runtime_checking != x ; then
7143 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7146 if test x$ac_tree_checking != x ; then
7148 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7150 TREECHECKING=yes
7152 if test x$ac_types_checking != x ; then
7154 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7158 if test x$ac_rtl_checking != x ; then
7160 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7163 if test x$ac_rtlflag_checking != x ; then
7165 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7168 if test x$ac_gc_checking != x ; then
7170 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7173 if test x$ac_gc_always_collect != x ; then
7175 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7178 if test x$ac_fold_checking != x ; then
7180 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7183 valgrind_path_defines=
7184 valgrind_command=
7186 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7187 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7188 have_valgrind_h=yes
7189 else
7190 have_valgrind_h=no
7195 # It is certainly possible that there's valgrind but no valgrind.h.
7196 # GCC relies on making annotations so we must have both.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7198 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <valgrind/memcheck.h>
7202 #ifndef VALGRIND_DISCARD
7203 #error VALGRIND_DISCARD not defined
7204 #endif
7205 _ACEOF
7206 if ac_fn_cxx_try_cpp "$LINENO"; then :
7207 gcc_cv_header_valgrind_memcheck_h=yes
7208 else
7209 gcc_cv_header_valgrind_memcheck_h=no
7211 rm -f conftest.err conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7213 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7215 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <memcheck.h>
7219 #ifndef VALGRIND_DISCARD
7220 #error VALGRIND_DISCARD not defined
7221 #endif
7222 _ACEOF
7223 if ac_fn_cxx_try_cpp "$LINENO"; then :
7224 gcc_cv_header_memcheck_h=yes
7225 else
7226 gcc_cv_header_memcheck_h=no
7228 rm -f conftest.err conftest.$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7230 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7231 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7233 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7236 if test $gcc_cv_header_memcheck_h = yes; then
7238 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7242 if test x$ac_valgrind_checking != x ; then
7244 # Prepare PATH_SEPARATOR.
7245 # The user is always right.
7246 if test "${PATH_SEPARATOR+set}" != set; then
7247 echo "#! /bin/sh" >conf$$.sh
7248 echo "exit 0" >>conf$$.sh
7249 chmod +x conf$$.sh
7250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7251 PATH_SEPARATOR=';'
7252 else
7253 PATH_SEPARATOR=:
7255 rm -f conf$$.sh
7258 # Find out how to test for executable files. Don't use a zero-byte file,
7259 # as systems may use methods other than mode bits to determine executability.
7260 cat >conf$$.file <<_ASEOF
7261 #! /bin/sh
7262 exit 0
7263 _ASEOF
7264 chmod +x conf$$.file
7265 if test -x conf$$.file >/dev/null 2>&1; then
7266 ac_executable_p="test -x"
7267 else
7268 ac_executable_p="test -f"
7270 rm -f conf$$.file
7272 # Extract the first word of "valgrind", so it can be a program name with args.
7273 set dummy valgrind; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 case "$valgrind_path" in
7280 [\\/]* | ?:[\\/]*)
7281 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7285 for ac_dir in $PATH; do
7286 IFS="$ac_save_IFS"
7287 test -z "$ac_dir" && ac_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7290 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7291 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7292 break 2
7295 done
7296 done
7297 IFS="$ac_save_IFS"
7299 esac
7301 valgrind_path="$ac_cv_path_valgrind_path"
7302 if test -n "$valgrind_path"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7304 $as_echo "$valgrind_path" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7310 if test "x$valgrind_path" = "x" \
7311 || (test $have_valgrind_h = no \
7312 && test $gcc_cv_header_memcheck_h = no \
7313 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7314 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7316 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7317 valgrind_command="$valgrind_path -q"
7319 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7325 # Enable code coverage collection
7326 # Check whether --enable-coverage was given.
7327 if test "${enable_coverage+set}" = set; then :
7328 enableval=$enable_coverage; case "${enableval}" in
7329 yes|noopt)
7330 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7332 opt)
7333 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7336 # a.k.a. --disable-coverage
7337 coverage_flags=""
7340 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7342 esac
7343 else
7344 coverage_flags=""
7349 # Check whether --enable-gather-detailed-mem-stats was given.
7350 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7351 enableval=$enable_gather_detailed_mem_stats;
7352 else
7353 enable_gather_detailed_mem_stats=no
7356 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7358 cat >>confdefs.h <<_ACEOF
7359 #define GATHER_STATISTICS $gather_stats
7360 _ACEOF
7363 # Check whether --enable-valgrind-annotations was given.
7364 if test "${enable_valgrind_annotations+set}" = set; then :
7365 enableval=$enable_valgrind_annotations;
7366 else
7367 enable_valgrind_annotations=no
7370 if test x$enable_valgrind_annotations != xno \
7371 || test x$ac_valgrind_checking != x; then
7372 if (test $have_valgrind_h = no \
7373 && test $gcc_cv_header_memcheck_h = no \
7374 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7375 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7378 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7382 # -------------------------------
7383 # Miscenalleous configure options
7384 # -------------------------------
7386 # With stabs
7388 # Check whether --with-stabs was given.
7389 if test "${with_stabs+set}" = set; then :
7390 withval=$with_stabs; stabs="$with_stabs"
7391 else
7392 stabs=no
7396 # Determine whether or not multilibs are enabled.
7397 # Check whether --enable-multilib was given.
7398 if test "${enable_multilib+set}" = set; then :
7399 enableval=$enable_multilib;
7400 else
7401 enable_multilib=yes
7406 # Determine whether or not multiarch is enabled.
7407 # Check whether --enable-multiarch was given.
7408 if test "${enable_multiarch+set}" = set; then :
7409 enableval=$enable_multiarch; case "${enableval}" in
7410 yes|no|auto) enable_multiarch=$enableval;;
7411 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7412 esac
7413 else
7414 enable_multiarch=auto
7417 if test x${enable_multiarch} = xauto; then
7418 if test x${with_native_system_header_dir} != x; then
7419 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7420 enable_multiarch=no
7422 if test x$host != x$target && test "x$with_sysroot" = x; then
7423 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7424 enable_multiarch=no
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7428 $as_echo_n "checking for multiarch configuration... " >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7431 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7433 # needed for setting the multiarch name for soft-float/hard-float ABIs
7437 # Enable __cxa_atexit for C++.
7438 # Check whether --enable-__cxa_atexit was given.
7439 if test "${enable___cxa_atexit+set}" = set; then :
7440 enableval=$enable___cxa_atexit;
7444 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then :
7448 enableval=$enable_decimal_float;
7449 case $enable_decimal_float in
7450 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7451 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7452 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7453 esac
7455 else
7457 case $target in
7458 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7459 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7460 i?86*-*-mingw* | x86_64*-*-mingw* | \
7461 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7462 enable_decimal_float=yes
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7466 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7467 enable_decimal_float=no
7469 esac
7474 # x86's use BID format instead of DPD
7475 case x$enable_decimal_float in
7476 xyes)
7477 case $target in
7478 i?86*-*-* | x86_64*-*-*)
7479 enable_decimal_float=bid
7482 enable_decimal_float=dpd
7484 esac
7485 default_decimal_float=$enable_decimal_float
7487 xno)
7488 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7489 # dependency on libdecnumber.
7490 default_decimal_float=dpd
7492 esac
7497 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7499 cat >>confdefs.h <<_ACEOF
7500 #define ENABLE_DECIMAL_FLOAT $dfp
7501 _ACEOF
7504 # Use default_decimal_float for dependency.
7505 enable_decimal_float=$default_decimal_float
7507 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7509 cat >>confdefs.h <<_ACEOF
7510 #define ENABLE_DECIMAL_BID_FORMAT $bid
7511 _ACEOF
7514 # Enable C extension for fixed-point arithmetic.
7515 # Check whether --enable-fixed-point was given.
7516 if test "${enable_fixed_point+set}" = set; then :
7517 enableval=$enable_fixed_point;
7518 else
7520 case $target in
7521 arm*)
7522 enable_fixed_point=yes
7525 mips*-*-*)
7526 enable_fixed_point=yes
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7530 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7531 enable_fixed_point=no
7533 esac
7539 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7541 cat >>confdefs.h <<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7543 _ACEOF
7546 # Enable threads
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads was given.
7550 if test "${enable_threads+set}" = set; then :
7551 enableval=$enable_threads;
7552 else
7553 enable_threads=''
7557 # Check whether --enable-tls was given.
7558 if test "${enable_tls+set}" = set; then :
7559 enableval=$enable_tls;
7560 case $enable_tls in
7561 yes | no) ;;
7562 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7563 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7564 esac
7566 else
7567 enable_tls=''
7571 # Check whether --enable-vtable-verify was given.
7572 if test "${enable_vtable_verify+set}" = set; then :
7573 enableval=$enable_vtable_verify;
7574 else
7575 enable_vtable_verify=no
7578 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7580 cat >>confdefs.h <<_ACEOF
7581 #define ENABLE_VTABLE_VERIFY $vtable_verify
7582 _ACEOF
7585 # Check whether --enable-objc-gc was given.
7586 if test "${enable_objc_gc+set}" = set; then :
7587 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7588 objc_boehm_gc=''
7589 else
7590 objc_boehm_gc=1
7592 else
7593 objc_boehm_gc=''
7598 # Check whether --with-dwarf2 was given.
7599 if test "${with_dwarf2+set}" = set; then :
7600 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7601 else
7602 dwarf2=no
7606 # Check whether --enable-shared was given.
7607 if test "${enable_shared+set}" = set; then :
7608 enableval=$enable_shared;
7609 case $enable_shared in
7610 yes | no) ;;
7612 enable_shared=no
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7614 for pkg in $enableval; do
7615 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7616 enable_shared=yes
7618 done
7619 IFS="$ac_save_ifs"
7621 esac
7623 else
7624 enable_shared=yes
7630 # Check whether --with-specs was given.
7631 if test "${with_specs+set}" = set; then :
7632 withval=$with_specs; CONFIGURE_SPECS=$withval
7633 else
7634 CONFIGURE_SPECS=
7642 # Check whether --with-pkgversion was given.
7643 if test "${with_pkgversion+set}" = set; then :
7644 withval=$with_pkgversion; case "$withval" in
7645 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7646 no) PKGVERSION= ;;
7647 *) PKGVERSION="($withval) " ;;
7648 esac
7649 else
7650 PKGVERSION="(GCC) "
7658 # Check whether --with-bugurl was given.
7659 if test "${with_bugurl+set}" = set; then :
7660 withval=$with_bugurl; case "$withval" in
7661 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7662 no) BUGURL=
7664 *) BUGURL="$withval"
7666 esac
7667 else
7668 BUGURL="https://gcc.gnu.org/bugs/"
7672 case ${BUGURL} in
7674 REPORT_BUGS_TO=
7675 REPORT_BUGS_TEXI=
7678 REPORT_BUGS_TO="<$BUGURL>"
7679 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7681 esac;
7686 # Sanity check enable_languages in case someone does not run the toplevel
7687 # configure # script.
7688 # Check whether --enable-languages was given.
7689 if test "${enable_languages+set}" = set; then :
7690 enableval=$enable_languages; case ,${enable_languages}, in
7691 ,,|,yes,)
7692 # go safe -- we cannot be much sure without the toplevel
7693 # configure's
7694 # analysis of which target libs are present and usable
7695 enable_languages=c
7697 *,all,*)
7698 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7700 *,c,*)
7703 enable_languages=c,${enable_languages}
7705 esac
7706 else
7707 enable_languages=c
7711 if test x"$enable_as_accelerator_for" != x; then
7713 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7715 enable_as_accelerator=yes
7716 case "${target}" in
7717 *-intelmicemul-*)
7718 # In this case we expect offload compiler to be built as native, so we
7719 # need to rename the driver to avoid clashes with host's drivers.
7720 program_transform_name="s&^&${target}-&" ;;
7721 esac
7722 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7723 program_transform_name=`echo $program_transform_name | sed $sedscript`
7724 accel_dir_suffix=/accel/${target_noncanonical}
7725 real_target_noncanonical=${enable_as_accelerator_for}
7731 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7732 tgt=`echo $tgt | sed 's/=.*//'`
7734 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7735 enable_hsa=1
7736 else
7737 enable_offloading=1
7740 if test x"$offload_targets" = x; then
7741 offload_targets=$tgt
7742 else
7743 offload_targets="$offload_targets,$tgt"
7745 done
7747 cat >>confdefs.h <<_ACEOF
7748 #define OFFLOAD_TARGETS "$offload_targets"
7749 _ACEOF
7751 if test x"$enable_offloading" != x; then
7753 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7755 else
7757 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7761 if test x"$enable_hsa" = x1 ; then
7763 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7768 # Check whether --with-multilib-list was given.
7769 if test "${with_multilib_list+set}" = set; then :
7770 withval=$with_multilib_list; :
7771 else
7772 with_multilib_list=default
7776 # -------------------------
7777 # Checks for other programs
7778 # -------------------------
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7782 set x ${MAKE-make}
7783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7784 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat >conftest.make <<\_ACEOF
7788 SHELL = /bin/sh
7789 all:
7790 @echo '@@@%%%=$(MAKE)=@@@%%%'
7791 _ACEOF
7792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7794 *@@@%%%=?*=@@@%%%*)
7795 eval ac_cv_prog_make_${ac_make}_set=yes;;
7797 eval ac_cv_prog_make_${ac_make}_set=no;;
7798 esac
7799 rm -f conftest.make
7801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7803 $as_echo "yes" >&6; }
7804 SET_MAKE=
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 SET_MAKE="MAKE=${MAKE-make}"
7812 # Find some useful tools
7813 for ac_prog in gawk mawk nawk awk
7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
7816 set dummy $ac_prog; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_prog_AWK+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 if test -n "$AWK"; then
7823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_prog_AWK="$ac_prog"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7836 done
7837 done
7838 IFS=$as_save_IFS
7842 AWK=$ac_cv_prog_AWK
7843 if test -n "$AWK"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7845 $as_echo "$AWK" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7852 test -n "$AWK" && break
7853 done
7855 # We need awk to create options.c and options.h.
7856 # Bail out if it's missing.
7857 case ${AWK} in
7858 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7859 esac
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7862 $as_echo_n "checking whether ln -s works... " >&6; }
7863 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 rm -f conftestdata_t
7867 echo >conftestdata_f
7868 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7869 then
7870 gcc_cv_prog_LN_S="ln -s"
7871 else
7872 if ln conftestdata_f conftestdata_t 2>/dev/null
7873 then
7874 gcc_cv_prog_LN_S=ln
7875 else
7876 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7877 then
7878 gcc_cv_prog_LN_S="cp -p"
7879 else
7880 gcc_cv_prog_LN_S=cp
7884 rm -f conftestdata_f conftestdata_t
7887 LN_S="$gcc_cv_prog_LN_S"
7888 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7890 $as_echo "yes" >&6; }
7891 else
7892 if test "$gcc_cv_prog_LN_S" = "ln"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7894 $as_echo "no, using ln" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7897 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7902 $as_echo_n "checking whether ln works... " >&6; }
7903 if test "${acx_cv_prog_LN+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 rm -f conftestdata_t
7907 echo >conftestdata_f
7908 if ln conftestdata_f conftestdata_t 2>/dev/null
7909 then
7910 acx_cv_prog_LN=ln
7911 else
7912 acx_cv_prog_LN=no
7914 rm -f conftestdata_f conftestdata_t
7917 if test $acx_cv_prog_LN = no; then
7918 LN="$LN_S"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7920 $as_echo "no, using $LN" >&6; }
7921 else
7922 LN="$acx_cv_prog_LN"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924 $as_echo "yes" >&6; }
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$RANLIB"; then
7936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7955 RANLIB=$ac_cv_prog_RANLIB
7956 if test -n "$RANLIB"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7958 $as_echo "$RANLIB" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7966 if test -z "$ac_cv_prog_RANLIB"; then
7967 ac_ct_RANLIB=$RANLIB
7968 # Extract the first word of "ranlib", so it can be a program name with args.
7969 set dummy ranlib; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$ac_ct_RANLIB"; then
7976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_ac_ct_RANLIB="ranlib"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7996 if test -n "$ac_ct_RANLIB"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7998 $as_echo "$ac_ct_RANLIB" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8004 if test "x$ac_ct_RANLIB" = x; then
8005 RANLIB=":"
8006 else
8007 case $cross_compiling:$ac_tool_warned in
8008 yes:)
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8012 esac
8013 RANLIB=$ac_ct_RANLIB
8015 else
8016 RANLIB="$ac_cv_prog_RANLIB"
8019 ranlib_flags=""
8022 # Find a good install program. We prefer a C program (faster),
8023 # so one script is as good as another. But avoid the broken or
8024 # incompatible versions:
8025 # SysV /etc/install, /usr/sbin/install
8026 # SunOS /usr/etc/install
8027 # IRIX /sbin/install
8028 # AIX /bin/install
8029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8031 # ./install, which can be erroneously created by make from ./install.sh.
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8033 $as_echo_n "checking for a BSD compatible install... " >&6; }
8034 if test -z "$INSTALL"; then
8035 if test "${ac_cv_path_install+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8039 for ac_dir in $PATH; do
8040 # Account for people who put trailing slashes in PATH elements.
8041 case "$ac_dir/" in
8042 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8044 # OSF1 and SCO ODT 3.0 have their own names for install.
8045 for ac_prog in ginstall scoinst install; do
8046 if test -f $ac_dir/$ac_prog; then
8047 if test $ac_prog = install &&
8048 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8049 # AIX install. It has an incompatible calling convention.
8050 # OSF/1 installbsd also uses dspmsg, but is usable.
8052 else
8053 ac_cv_path_install="$ac_dir/$ac_prog -c"
8054 break 2
8057 done
8059 esac
8060 done
8061 IFS="$ac_save_IFS"
8064 if test "${ac_cv_path_install+set}" = set; then
8065 INSTALL="$ac_cv_path_install"
8066 else
8067 # As a last resort, use the slow shell script. We don't cache a
8068 # path for INSTALL within a source directory, because that will
8069 # break other packages using the cache if that directory is
8070 # removed, or if the path is relative.
8071 INSTALL="$ac_install_sh"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8075 $as_echo "$INSTALL" >&6; }
8077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8078 # It thinks the first close brace ends the variable substitution.
8079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8084 # See if cmp has --ignore-initial.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8086 $as_echo_n "checking for cmp's capabilities... " >&6; }
8087 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 echo abfoo >t1
8091 echo cdfoo >t2
8092 gcc_cv_prog_cmp_skip=slowcompare
8093 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8094 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8096 else
8097 gcc_cv_prog_cmp_skip=gnucompare
8100 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8101 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8102 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8104 else
8105 gcc_cv_prog_cmp_skip=fastcompare
8109 rm t1 t2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8113 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8114 make_compare_target=$gcc_cv_prog_cmp_skip
8118 # See if we have the mktemp command.
8119 # Extract the first word of "mktemp", so it can be a program name with args.
8120 set dummy mktemp; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$have_mktemp_command"; then
8127 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_have_mktemp_command="yes"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8142 IFS=$as_save_IFS
8144 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8147 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8148 if test -n "$have_mktemp_command"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8150 $as_echo "$have_mktemp_command" >&6; }
8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8158 # See if makeinfo has been installed and is modern enough
8159 # that we can use it.
8161 # Extract the first word of "makeinfo", so it can be a program name with args.
8162 set dummy makeinfo; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$MAKEINFO"; then
8169 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_MAKEINFO="makeinfo"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8182 done
8183 done
8184 IFS=$as_save_IFS
8188 MAKEINFO=$ac_cv_prog_MAKEINFO
8189 if test -n "$MAKEINFO"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8191 $as_echo "$MAKEINFO" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8198 if test -n "$MAKEINFO"; then
8199 # Found it, now check the version.
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8201 $as_echo_n "checking for modern makeinfo... " >&6; }
8202 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8206 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8208 case $ac_prog_version in
8209 '') gcc_cv_prog_makeinfo_modern=no;;
8210 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8211 *) gcc_cv_prog_makeinfo_modern=no;;
8212 esac
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8216 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8217 else
8218 gcc_cv_prog_makeinfo_modern=no
8220 if test $gcc_cv_prog_makeinfo_modern = no; then
8221 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8224 if test $gcc_cv_prog_makeinfo_modern = no; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8226 *** Makeinfo is missing or too old.
8227 *** Info documentation will not be built." >&5
8228 $as_echo "$as_me: WARNING:
8229 *** Makeinfo is missing or too old.
8230 *** Info documentation will not be built." >&2;}
8231 BUILD_INFO=
8232 else
8233 BUILD_INFO=info
8237 # Is pod2man recent enough to regenerate manpages?
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8239 $as_echo_n "checking for recent Pod::Man... " >&6; }
8240 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8242 $as_echo "yes" >&6; }
8243 GENERATED_MANPAGES=generated-manpages
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 GENERATED_MANPAGES=
8251 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8253 # How about lex?
8254 for ac_prog in flex
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_FLEX+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$FLEX"; then
8264 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_FLEX="$ac_prog"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 FLEX=$ac_cv_prog_FLEX
8284 if test -n "$FLEX"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8286 $as_echo "$FLEX" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8293 test -n "$FLEX" && break
8294 done
8295 test -n "$FLEX" || FLEX="$MISSING flex"
8298 # Bison?
8299 for ac_prog in bison
8301 # Extract the first word of "$ac_prog", so it can be a program name with args.
8302 set dummy $ac_prog; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_BISON+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 if test -n "$BISON"; then
8309 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_prog_BISON="$ac_prog"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8322 done
8323 done
8324 IFS=$as_save_IFS
8328 BISON=$ac_cv_prog_BISON
8329 if test -n "$BISON"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8331 $as_echo "$BISON" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8338 test -n "$BISON" && break
8339 done
8340 test -n "$BISON" || BISON="$MISSING bison"
8343 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8344 # check for build == host before using them.
8346 # NM
8347 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8348 && test -d ../binutils ; then
8349 NM='${objdir}/../binutils/nm-new'
8350 else
8351 # Extract the first word of "nm", so it can be a program name with args.
8352 set dummy nm; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if test "${ac_cv_prog_NM+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$NM"; then
8359 ac_cv_prog_NM="$NM" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_prog_NM="nm"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8374 IFS=$as_save_IFS
8376 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8379 NM=$ac_cv_prog_NM
8380 if test -n "$NM"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8382 $as_echo "$NM" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8391 # AR
8392 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8393 && test -d ../binutils ; then
8394 AR='${objdir}/../binutils/ar'
8395 else
8396 # Extract the first word of "ar", so it can be a program name with args.
8397 set dummy ar; ac_word=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if test "${ac_cv_prog_AR+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 if test -n "$AR"; then
8404 ac_cv_prog_AR="$AR" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_prog_AR="ar"
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8417 done
8418 done
8419 IFS=$as_save_IFS
8421 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8424 AR=$ac_cv_prog_AR
8425 if test -n "$AR"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8427 $as_echo "$AR" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8436 # The jit documentation looks better if built with sphinx, but can be
8437 # built with texinfo if sphinx is not available.
8438 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8439 # Extract the first word of "sphinx-build", so it can be a program name with args.
8440 set dummy sphinx-build; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$doc_build_sys"; then
8447 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_doc_build_sys="sphinx"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8464 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8467 doc_build_sys=$ac_cv_prog_doc_build_sys
8468 if test -n "$doc_build_sys"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8470 $as_echo "$doc_build_sys" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8478 # --------------------
8479 # Checks for C headers
8480 # --------------------
8482 # Need to reject headers which give warnings, so that the -Werror bootstrap
8483 # works later. *sigh* This needs to come before all header checks.
8485 ac_c_preproc_warn_flag=yes
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 #include <stdlib.h>
8495 #include <stdarg.h>
8496 #include <string.h>
8497 #include <float.h>
8500 main ()
8504 return 0;
8506 _ACEOF
8507 if ac_fn_cxx_try_compile "$LINENO"; then :
8508 ac_cv_header_stdc=yes
8509 else
8510 ac_cv_header_stdc=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 if test $ac_cv_header_stdc = yes; then
8515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 #include <string.h>
8520 _ACEOF
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "memchr" >/dev/null 2>&1; then :
8524 else
8525 ac_cv_header_stdc=no
8527 rm -f conftest*
8531 if test $ac_cv_header_stdc = yes; then
8532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #include <stdlib.h>
8537 _ACEOF
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 $EGREP "free" >/dev/null 2>&1; then :
8541 else
8542 ac_cv_header_stdc=no
8544 rm -f conftest*
8548 if test $ac_cv_header_stdc = yes; then
8549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550 if test "$cross_compiling" = yes; then :
8552 else
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 #include <ctype.h>
8556 #include <stdlib.h>
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8560 #else
8561 # define ISLOWER(c) \
8562 (('a' <= (c) && (c) <= 'i') \
8563 || ('j' <= (c) && (c) <= 'r') \
8564 || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8566 #endif
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8570 main ()
8572 int i;
8573 for (i = 0; i < 256; i++)
8574 if (XOR (islower (i), ISLOWER (i))
8575 || toupper (i) != TOUPPER (i))
8576 return 2;
8577 return 0;
8579 _ACEOF
8580 if ac_fn_cxx_try_run "$LINENO"; then :
8582 else
8583 ac_cv_header_stdc=no
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8600 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8601 if test "${ac_cv_header_time+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <sys/types.h>
8607 #include <sys/time.h>
8608 #include <time.h>
8611 main ()
8613 if ((struct tm *) 0)
8614 return 0;
8616 return 0;
8618 _ACEOF
8619 if ac_fn_cxx_try_compile "$LINENO"; then :
8620 ac_cv_header_time=yes
8621 else
8622 ac_cv_header_time=no
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8627 $as_echo "$ac_cv_header_time" >&6; }
8628 if test $ac_cv_header_time = yes; then
8630 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8635 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8636 if test "${gcc_cv_header_string+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <string.h>
8642 #include <strings.h>
8644 main ()
8648 return 0;
8650 _ACEOF
8651 if ac_fn_cxx_try_compile "$LINENO"; then :
8652 gcc_cv_header_string=yes
8653 else
8654 gcc_cv_header_string=no
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8659 $as_echo "$gcc_cv_header_string" >&6; }
8660 if test $gcc_cv_header_string = yes; then
8662 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8667 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8668 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <sys/types.h>
8674 #include <sys/wait.h>
8675 #ifndef WEXITSTATUS
8676 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8677 #endif
8678 #ifndef WIFEXITED
8679 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8680 #endif
8683 main ()
8685 int s;
8686 wait (&s);
8687 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8689 return 0;
8691 _ACEOF
8692 if ac_fn_cxx_try_compile "$LINENO"; then :
8693 ac_cv_header_sys_wait_h=yes
8694 else
8695 ac_cv_header_sys_wait_h=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8700 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8701 if test $ac_cv_header_sys_wait_h = yes; then
8703 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8708 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8709 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <termios.h>
8716 #ifdef TIOCGWINSZ
8718 #endif
8720 _ACEOF
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "yes" >/dev/null 2>&1; then :
8723 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8724 else
8725 ac_cv_sys_tiocgwinsz_in_termios_h=no
8727 rm -f conftest*
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8731 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8733 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8735 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8736 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8742 #include <sys/ioctl.h>
8743 #ifdef TIOCGWINSZ
8745 #endif
8747 _ACEOF
8748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8749 $EGREP "yes" >/dev/null 2>&1; then :
8750 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8751 else
8752 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8754 rm -f conftest*
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8758 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8760 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8762 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8767 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8768 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8769 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8770 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8771 do :
8772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8773 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8774 eval as_val=\$$as_ac_Header
8775 if test "x$as_val" = x""yes; then :
8776 cat >>confdefs.h <<_ACEOF
8777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 _ACEOF
8781 done
8784 # Check for thread headers.
8785 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8786 if test "x$ac_cv_header_thread_h" = x""yes; then :
8787 have_thread_h=yes
8788 else
8789 have_thread_h=
8792 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8793 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8794 have_pthread_h=yes
8795 else
8796 have_pthread_h=
8800 # These tests can't be done till we know if we have limits.h.
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8802 $as_echo_n "checking for CHAR_BIT... " >&6; }
8803 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #ifdef HAVE_LIMITS_H
8809 #include <limits.h>
8810 #endif
8811 #ifdef CHAR_BIT
8812 found
8813 #endif
8814 _ACEOF
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 $EGREP "found" >/dev/null 2>&1; then :
8817 gcc_cv_decl_char_bit=yes
8818 else
8819 gcc_cv_decl_char_bit=no
8821 rm -f conftest*
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8826 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8827 if test $gcc_cv_decl_char_bit = no; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8829 $as_echo_n "checking number of bits in a byte... " >&6; }
8830 if test "${gcc_cv_c_nbby+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8834 gcc_cv_c_nbby=
8835 while test $i -lt 65; do
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8840 main ()
8842 switch(0) {
8843 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8844 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8847 return 0;
8849 _ACEOF
8850 if ac_fn_cxx_try_compile "$LINENO"; then :
8851 gcc_cv_c_nbby=$i; break
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 i=`expr $i + 1`
8855 done
8856 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8860 $as_echo "$gcc_cv_c_nbby" >&6; }
8861 if test $gcc_cv_c_nbby = failed; then
8862 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8863 else
8865 cat >>confdefs.h <<_ACEOF
8866 #define CHAR_BIT $gcc_cv_c_nbby
8867 _ACEOF
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8872 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8873 if test "${ac_cv_c_bigendian+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 ac_cv_c_bigendian=unknown
8877 # See if we're dealing with a universal compiler.
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 #ifndef __APPLE_CC__
8881 not a universal capable compiler
8882 #endif
8883 typedef int dummy;
8885 _ACEOF
8886 if ac_fn_cxx_try_compile "$LINENO"; then :
8888 # Check for potential -arch flags. It is not universal unless
8889 # there are at least two -arch flags with different values.
8890 ac_arch=
8891 ac_prev=
8892 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8893 if test -n "$ac_prev"; then
8894 case $ac_word in
8895 i?86 | x86_64 | ppc | ppc64)
8896 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8897 ac_arch=$ac_word
8898 else
8899 ac_cv_c_bigendian=universal
8900 break
8903 esac
8904 ac_prev=
8905 elif test "x$ac_word" = "x-arch"; then
8906 ac_prev=arch
8908 done
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 if test $ac_cv_c_bigendian = unknown; then
8912 # See if sys/param.h defines the BYTE_ORDER macro.
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <sys/types.h>
8916 #include <sys/param.h>
8919 main ()
8921 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8922 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8923 && LITTLE_ENDIAN)
8924 bogus endian macros
8925 #endif
8928 return 0;
8930 _ACEOF
8931 if ac_fn_cxx_try_compile "$LINENO"; then :
8932 # It does; now see whether it defined to BIG_ENDIAN or not.
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <sys/types.h>
8936 #include <sys/param.h>
8939 main ()
8941 #if BYTE_ORDER != BIG_ENDIAN
8942 not big endian
8943 #endif
8946 return 0;
8948 _ACEOF
8949 if ac_fn_cxx_try_compile "$LINENO"; then :
8950 ac_cv_c_bigendian=yes
8951 else
8952 ac_cv_c_bigendian=no
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 if test $ac_cv_c_bigendian = unknown; then
8959 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <limits.h>
8965 main ()
8967 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8968 bogus endian macros
8969 #endif
8972 return 0;
8974 _ACEOF
8975 if ac_fn_cxx_try_compile "$LINENO"; then :
8976 # It does; now see whether it defined to _BIG_ENDIAN or not.
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 #include <limits.h>
8982 main ()
8984 #ifndef _BIG_ENDIAN
8985 not big endian
8986 #endif
8989 return 0;
8991 _ACEOF
8992 if ac_fn_cxx_try_compile "$LINENO"; then :
8993 ac_cv_c_bigendian=yes
8994 else
8995 ac_cv_c_bigendian=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 if test $ac_cv_c_bigendian = unknown; then
9002 # Compile a test program.
9003 if test "$cross_compiling" = yes; then :
9004 # Try to guess by grepping values from an object file.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 short int ascii_mm[] =
9008 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9009 short int ascii_ii[] =
9010 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9011 int use_ascii (int i) {
9012 return ascii_mm[i] + ascii_ii[i];
9014 short int ebcdic_ii[] =
9015 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9016 short int ebcdic_mm[] =
9017 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9018 int use_ebcdic (int i) {
9019 return ebcdic_mm[i] + ebcdic_ii[i];
9021 extern int foo;
9024 main ()
9026 return use_ascii (foo) == use_ebcdic (foo);
9028 return 0;
9030 _ACEOF
9031 if ac_fn_cxx_try_compile "$LINENO"; then :
9032 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9033 ac_cv_c_bigendian=yes
9035 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9036 if test "$ac_cv_c_bigendian" = unknown; then
9037 ac_cv_c_bigendian=no
9038 else
9039 # finding both strings is unlikely to happen, but who knows?
9040 ac_cv_c_bigendian=unknown
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 $ac_includes_default
9050 main ()
9053 /* Are we little or big endian? From Harbison&Steele. */
9054 union
9056 long int l;
9057 char c[sizeof (long int)];
9058 } u;
9059 u.l = 1;
9060 return u.c[sizeof (long int) - 1] == 1;
9063 return 0;
9065 _ACEOF
9066 if ac_fn_cxx_try_run "$LINENO"; then :
9067 ac_cv_c_bigendian=no
9068 else
9069 ac_cv_c_bigendian=yes
9071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9072 conftest.$ac_objext conftest.beam conftest.$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9078 $as_echo "$ac_cv_c_bigendian" >&6; }
9079 case $ac_cv_c_bigendian in #(
9080 yes)
9081 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9082 ;; #(
9084 ;; #(
9085 universal)
9087 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9089 ;; #(
9091 as_fn_error "unknown endianness
9092 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9093 esac
9096 # ----------------------
9097 # Checks for C++ headers
9098 # ----------------------
9100 ac_ext=cpp
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9107 if test -z "$CXXCPP"; then
9108 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 # Double quotes because CXXCPP needs to be expanded
9112 for CXXCPP in "$CXX -E" "/lib/cpp"
9114 ac_preproc_ok=false
9115 for ac_cxx_preproc_warn_flag in '' yes
9117 # Use a header file that comes with gcc, so configuring glibc
9118 # with a fresh cross-compiler works.
9119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9120 # <limits.h> exists even on freestanding compilers.
9121 # On the NeXT, cc -E runs the code through the compiler's parser,
9122 # not just through cpp. "Syntax error" is here to catch this case.
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #ifdef __STDC__
9126 # include <limits.h>
9127 #else
9128 # include <assert.h>
9129 #endif
9130 Syntax error
9131 _ACEOF
9132 if ac_fn_cxx_try_cpp "$LINENO"; then :
9134 else
9135 # Broken: fails on valid input.
9136 continue
9138 rm -f conftest.err conftest.$ac_ext
9140 # OK, works on sane cases. Now check whether nonexistent headers
9141 # can be detected and how.
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 #include <ac_nonexistent.h>
9145 _ACEOF
9146 if ac_fn_cxx_try_cpp "$LINENO"; then :
9147 # Broken: success on invalid input.
9148 continue
9149 else
9150 # Passes both tests.
9151 ac_preproc_ok=:
9152 break
9154 rm -f conftest.err conftest.$ac_ext
9156 done
9157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9158 rm -f conftest.err conftest.$ac_ext
9159 if $ac_preproc_ok; then :
9160 break
9163 done
9164 ac_cv_prog_CXXCPP=$CXXCPP
9167 CXXCPP=$ac_cv_prog_CXXCPP
9168 else
9169 ac_cv_prog_CXXCPP=$CXXCPP
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9172 $as_echo "$CXXCPP" >&6; }
9173 ac_preproc_ok=false
9174 for ac_cxx_preproc_warn_flag in '' yes
9176 # Use a header file that comes with gcc, so configuring glibc
9177 # with a fresh cross-compiler works.
9178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9179 # <limits.h> exists even on freestanding compilers.
9180 # On the NeXT, cc -E runs the code through the compiler's parser,
9181 # not just through cpp. "Syntax error" is here to catch this case.
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #ifdef __STDC__
9185 # include <limits.h>
9186 #else
9187 # include <assert.h>
9188 #endif
9189 Syntax error
9190 _ACEOF
9191 if ac_fn_cxx_try_cpp "$LINENO"; then :
9193 else
9194 # Broken: fails on valid input.
9195 continue
9197 rm -f conftest.err conftest.$ac_ext
9199 # OK, works on sane cases. Now check whether nonexistent headers
9200 # can be detected and how.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <ac_nonexistent.h>
9204 _ACEOF
9205 if ac_fn_cxx_try_cpp "$LINENO"; then :
9206 # Broken: success on invalid input.
9207 continue
9208 else
9209 # Passes both tests.
9210 ac_preproc_ok=:
9211 break
9213 rm -f conftest.err conftest.$ac_ext
9215 done
9216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9217 rm -f conftest.err conftest.$ac_ext
9218 if $ac_preproc_ok; then :
9220 else
9221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9224 See \`config.log' for more details." >&5
9225 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9226 See \`config.log' for more details." >&2;}; }
9229 ac_ext=cpp
9230 ac_cpp='$CXXCPP $CPPFLAGS'
9231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9236 for ac_header in unordered_map
9237 do :
9238 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9239 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9240 cat >>confdefs.h <<_ACEOF
9241 #define HAVE_UNORDERED_MAP 1
9242 _ACEOF
9245 done
9247 for ac_header in tr1/unordered_map
9248 do :
9249 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9250 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_TR1_UNORDERED_MAP 1
9253 _ACEOF
9256 done
9258 for ac_header in ext/hash_map
9259 do :
9260 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9261 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_EXT_HASH_MAP 1
9264 _ACEOF
9267 done
9270 # --------
9271 # Dependency checking.
9272 # --------
9274 rm -rf .tst 2>/dev/null
9275 mkdir .tst 2>/dev/null
9276 if test -d .tst; then
9277 am__leading_dot=.
9278 else
9279 am__leading_dot=_
9281 rmdir .tst 2>/dev/null
9283 DEPDIR="${am__leading_dot}deps"
9285 ac_config_commands="$ac_config_commands depdir"
9288 ac_config_commands="$ac_config_commands gccdepdir"
9291 depcc="$CXX" am_compiler_list=
9293 am_depcomp=$ac_aux_dir/depcomp
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9295 $as_echo_n "checking dependency style of $depcc... " >&6; }
9296 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 if test -f "$am_depcomp"; then
9300 # We make a subdir and do the tests there. Otherwise we can end up
9301 # making bogus files that we don't know about and never remove. For
9302 # instance it was reported that on HP-UX the gcc test will end up
9303 # making a dummy file named `D' -- because `-MD' means `put the output
9304 # in D'.
9305 mkdir conftest.dir
9306 # Copy depcomp to subdir because otherwise we won't find it if we're
9307 # using a relative directory.
9308 cp "$am_depcomp" conftest.dir
9309 cd conftest.dir
9310 # We will build objects and dependencies in a subdirectory because
9311 # it helps to detect inapplicable dependency modes. For instance
9312 # both Tru64's cc and ICC support -MD to output dependencies as a
9313 # side effect of compilation, but ICC will put the dependencies in
9314 # the current directory while Tru64 will put them in the object
9315 # directory.
9316 mkdir sub
9318 am_cv_CXX_dependencies_compiler_type=none
9319 if test "$am_compiler_list" = ""; then
9320 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9322 for depmode in $am_compiler_list; do
9323 if test $depmode = none; then break; fi
9325 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9326 # Setup a source with many dependencies, because some compilers
9327 # like to wrap large dependency lists on column 80 (with \), and
9328 # we should not choose a depcomp mode which is confused by this.
9330 # We need to recreate these files for each test, as the compiler may
9331 # overwrite some of them when testing with obscure command lines.
9332 # This happens at least with the AIX C compiler.
9333 : > sub/conftest.c
9334 for i in 1 2 3 4 5 6; do
9335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9337 # Solaris 8's {/usr,}/bin/sh.
9338 touch sub/conftst$i.h
9339 done
9340 echo "include sub/conftest.Po" > confmf
9342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9343 # mode. It turns out that the SunPro C++ compiler does not properly
9344 # handle `-M -o', and we need to detect this.
9345 depcmd="depmode=$depmode \
9346 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9348 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9349 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9350 if env $depcmd > conftest.err 2>&1 &&
9351 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9352 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9353 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9354 # icc doesn't choke on unknown options, it will just issue warnings
9355 # or remarks (even with -Werror). So we grep stderr for any message
9356 # that says an option was ignored or not supported.
9357 # When given -MP, icc 7.0 and 7.1 complain thusly:
9358 # icc: Command line warning: ignoring option '-M'; no argument required
9359 # The diagnosis changed in icc 8.0:
9360 # icc: Command line remark: option '-MP' not supported
9361 if (grep 'ignoring option' conftest.err ||
9362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9363 am_cv_CXX_dependencies_compiler_type=$depmode
9364 $as_echo "$as_me:$LINENO: success" >&5
9365 break
9368 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9369 sed -e 's/^/| /' < conftest.err >&5
9370 done
9372 cd ..
9373 rm -rf conftest.dir
9374 else
9375 am_cv_CXX_dependencies_compiler_type=none
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9380 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9381 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9382 then as_fn_error "no usable dependency style found" "$LINENO" 5
9383 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9388 # --------
9389 # UNSORTED
9390 # --------
9393 # These libraries may be used by collect2.
9394 # We may need a special search path to get them linked.
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9396 $as_echo_n "checking for collect2 libraries... " >&6; }
9397 if test "${gcc_cv_collect2_libs+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 save_LIBS="$LIBS"
9401 for libs in '' -lld -lmld \
9402 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9403 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9405 LIBS="$libs"
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 char ldopen ();
9417 main ()
9419 return ldopen ();
9421 return 0;
9423 _ACEOF
9424 if ac_fn_cxx_try_link "$LINENO"; then :
9425 gcc_cv_collect2_libs="$libs"; break
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 done
9430 LIBS="$save_LIBS"
9431 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9434 $as_echo "$gcc_cv_collect2_libs" >&6; }
9435 case $gcc_cv_collect2_libs in
9436 "none required") ;;
9437 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9438 esac
9441 # When building Ada code on Alpha, we need exc_resume which is usually in
9442 # -lexc. So test for it.
9443 save_LIBS="$LIBS"
9444 LIBS=
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9446 $as_echo_n "checking for library containing exc_resume... " >&6; }
9447 if test "${ac_cv_search_exc_resume+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 ac_func_search_save_LIBS=$LIBS
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9454 /* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 char exc_resume ();
9462 main ()
9464 return exc_resume ();
9466 return 0;
9468 _ACEOF
9469 for ac_lib in '' exc; do
9470 if test -z "$ac_lib"; then
9471 ac_res="none required"
9472 else
9473 ac_res=-l$ac_lib
9474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9476 if ac_fn_cxx_try_link "$LINENO"; then :
9477 ac_cv_search_exc_resume=$ac_res
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext
9481 if test "${ac_cv_search_exc_resume+set}" = set; then :
9482 break
9484 done
9485 if test "${ac_cv_search_exc_resume+set}" = set; then :
9487 else
9488 ac_cv_search_exc_resume=no
9490 rm conftest.$ac_ext
9491 LIBS=$ac_func_search_save_LIBS
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9494 $as_echo "$ac_cv_search_exc_resume" >&6; }
9495 ac_res=$ac_cv_search_exc_resume
9496 if test "$ac_res" != no; then :
9497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501 GNAT_LIBEXC="$LIBS"
9502 LIBS="$save_LIBS"
9505 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9506 save_LIBS="$LIBS"
9507 LIBS=
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9509 $as_echo_n "checking for library containing kstat_open... " >&6; }
9510 if test "${ac_cv_search_kstat_open+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 ac_func_search_save_LIBS=$LIBS
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char kstat_open ();
9525 main ()
9527 return kstat_open ();
9529 return 0;
9531 _ACEOF
9532 for ac_lib in '' kstat; do
9533 if test -z "$ac_lib"; then
9534 ac_res="none required"
9535 else
9536 ac_res=-l$ac_lib
9537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9539 if ac_fn_cxx_try_link "$LINENO"; then :
9540 ac_cv_search_kstat_open=$ac_res
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext
9544 if test "${ac_cv_search_kstat_open+set}" = set; then :
9545 break
9547 done
9548 if test "${ac_cv_search_kstat_open+set}" = set; then :
9550 else
9551 ac_cv_search_kstat_open=no
9553 rm conftest.$ac_ext
9554 LIBS=$ac_func_search_save_LIBS
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9557 $as_echo "$ac_cv_search_kstat_open" >&6; }
9558 ac_res=$ac_cv_search_kstat_open
9559 if test "$ac_res" != no; then :
9560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9564 EXTRA_GCC_LIBS="$LIBS"
9565 LIBS="$save_LIBS"
9568 # Some systems put ldexp and frexp in libm instead of libc; assume
9569 # they're both in the same place. jcf-dump needs them.
9570 save_LIBS="$LIBS"
9571 LIBS=
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9573 $as_echo_n "checking for library containing ldexp... " >&6; }
9574 if test "${ac_cv_search_ldexp+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 ac_func_search_save_LIBS=$LIBS
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char ldexp ();
9589 main ()
9591 return ldexp ();
9593 return 0;
9595 _ACEOF
9596 for ac_lib in '' m; do
9597 if test -z "$ac_lib"; then
9598 ac_res="none required"
9599 else
9600 ac_res=-l$ac_lib
9601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9603 if ac_fn_cxx_try_link "$LINENO"; then :
9604 ac_cv_search_ldexp=$ac_res
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext
9608 if test "${ac_cv_search_ldexp+set}" = set; then :
9609 break
9611 done
9612 if test "${ac_cv_search_ldexp+set}" = set; then :
9614 else
9615 ac_cv_search_ldexp=no
9617 rm conftest.$ac_ext
9618 LIBS=$ac_func_search_save_LIBS
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9621 $as_echo "$ac_cv_search_ldexp" >&6; }
9622 ac_res=$ac_cv_search_ldexp
9623 if test "$ac_res" != no; then :
9624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9628 LDEXP_LIB="$LIBS"
9629 LIBS="$save_LIBS"
9632 # Use <inttypes.h> only if it exists,
9633 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9634 # PRId64
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9636 $as_echo_n "checking for inttypes.h... " >&6; }
9637 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #define __STDC_FORMAT_MACROS
9643 #include <sys/types.h>
9644 #include <inttypes.h>
9646 main ()
9648 intmax_t i = -1;
9649 #ifndef PRId64
9650 choke me
9651 #endif
9653 return 0;
9655 _ACEOF
9656 if ac_fn_cxx_try_compile "$LINENO"; then :
9657 gcc_cv_header_inttypes_h=yes
9658 else
9659 gcc_cv_header_inttypes_h=no
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9665 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9666 if test $gcc_cv_header_inttypes_h = yes; then
9668 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9674 for ac_func in times clock kill getrlimit setrlimit atoq \
9675 popen sysconf strsignal getrusage nl_langinfo \
9676 gettimeofday mbstowcs wcswidth mmap setlocale \
9677 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
9678 do :
9679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9681 eval as_val=\$$as_ac_var
9682 if test "x$as_val" = x""yes; then :
9683 cat >>confdefs.h <<_ACEOF
9684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9685 _ACEOF
9688 done
9691 if test x$ac_cv_func_mbstowcs = xyes; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9693 $as_echo_n "checking whether mbstowcs works... " >&6; }
9694 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 if test "$cross_compiling" = yes; then :
9698 gcc_cv_func_mbstowcs_works=yes
9699 else
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <stdlib.h>
9703 int main()
9705 mbstowcs(0, "", 0);
9706 return 0;
9708 _ACEOF
9709 if ac_fn_cxx_try_run "$LINENO"; then :
9710 gcc_cv_func_mbstowcs_works=yes
9711 else
9712 gcc_cv_func_mbstowcs_works=no
9714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9715 conftest.$ac_objext conftest.beam conftest.$ac_ext
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9720 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9721 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9723 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9728 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9729 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9731 else
9733 cat >>confdefs.h <<_ACEOF
9734 #define ssize_t int
9735 _ACEOF
9739 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9740 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9742 else
9744 cat >>confdefs.h <<_ACEOF
9745 #define caddr_t char *
9746 _ACEOF
9752 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9753 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9754 gcc_header_sys_mman_h=yes
9755 else
9756 gcc_header_sys_mman_h=no
9759 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9760 if test "x$ac_cv_func_mmap" = x""yes; then :
9761 gcc_func_mmap=yes
9762 else
9763 gcc_func_mmap=no
9766 if test "$gcc_header_sys_mman_h" != yes \
9767 || test "$gcc_func_mmap" != yes; then
9768 gcc_cv_func_mmap_file=no
9769 gcc_cv_func_mmap_dev_zero=no
9770 gcc_cv_func_mmap_anon=no
9771 else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9773 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9774 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 # Add a system to this blacklist if
9778 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9779 # memory area containing the same data that you'd get if you applied
9780 # read() to the same fd. The only system known to have a problem here
9781 # is VMS, where text files have record structure.
9782 case "$host_os" in
9783 *vms* | ultrix*)
9784 gcc_cv_func_mmap_file=no ;;
9786 gcc_cv_func_mmap_file=yes;;
9787 esac
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9790 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9792 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9793 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 # Add a system to this blacklist if it has mmap() but /dev/zero
9797 # does not exist, or if mmapping /dev/zero does not give anonymous
9798 # zeroed pages with both the following properties:
9799 # 1. If you map N consecutive pages in with one call, and then
9800 # unmap any subset of those pages, the pages that were not
9801 # explicitly unmapped remain accessible.
9802 # 2. If you map two adjacent blocks of memory and then unmap them
9803 # both at once, they must both go away.
9804 # Systems known to be in this category are Windows (all variants),
9805 # VMS, and Darwin.
9806 case "$host_os" in
9807 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9808 gcc_cv_func_mmap_dev_zero=no ;;
9810 gcc_cv_func_mmap_dev_zero=yes;;
9811 esac
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9814 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9816 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9818 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9819 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 #include <sys/types.h>
9825 #include <sys/mman.h>
9826 #include <unistd.h>
9828 #ifndef MAP_ANONYMOUS
9829 #define MAP_ANONYMOUS MAP_ANON
9830 #endif
9833 main ()
9835 int n = MAP_ANONYMOUS;
9837 return 0;
9839 _ACEOF
9840 if ac_fn_cxx_try_compile "$LINENO"; then :
9841 gcc_cv_decl_map_anon=yes
9842 else
9843 gcc_cv_decl_map_anon=no
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9848 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9850 if test $gcc_cv_decl_map_anon = no; then
9851 gcc_cv_func_mmap_anon=no
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9854 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9855 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9859 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9860 # doesn't give anonymous zeroed pages with the same properties listed
9861 # above for use of /dev/zero.
9862 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9863 case "$host_os" in
9864 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9865 gcc_cv_func_mmap_anon=no ;;
9867 gcc_cv_func_mmap_anon=yes;;
9868 esac
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9871 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9875 if test $gcc_cv_func_mmap_file = yes; then
9877 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9880 if test $gcc_cv_func_mmap_dev_zero = yes; then
9882 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9885 if test $gcc_cv_func_mmap_anon = yes; then
9887 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9892 case "${host}" in
9893 *-*-*vms*)
9894 # Under VMS, vfork works very differently than on Unix. The standard test
9895 # won't work, and it isn't easily adaptable. It makes more sense to
9896 # just force it.
9897 ac_cv_func_vfork_works=yes
9899 esac
9900 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9901 if test "x$ac_cv_type_pid_t" = x""yes; then :
9903 else
9905 cat >>confdefs.h <<_ACEOF
9906 #define pid_t int
9907 _ACEOF
9911 for ac_header in vfork.h
9912 do :
9913 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9914 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9915 cat >>confdefs.h <<_ACEOF
9916 #define HAVE_VFORK_H 1
9917 _ACEOF
9920 done
9922 for ac_func in fork vfork
9923 do :
9924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9925 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9926 eval as_val=\$$as_ac_var
9927 if test "x$as_val" = x""yes; then :
9928 cat >>confdefs.h <<_ACEOF
9929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9930 _ACEOF
9933 done
9935 if test "x$ac_cv_func_fork" = xyes; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9937 $as_echo_n "checking for working fork... " >&6; }
9938 if test "${ac_cv_func_fork_works+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 if test "$cross_compiling" = yes; then :
9942 ac_cv_func_fork_works=cross
9943 else
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 $ac_includes_default
9948 main ()
9951 /* By Ruediger Kuhlmann. */
9952 return fork () < 0;
9955 return 0;
9957 _ACEOF
9958 if ac_fn_cxx_try_run "$LINENO"; then :
9959 ac_cv_func_fork_works=yes
9960 else
9961 ac_cv_func_fork_works=no
9963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9964 conftest.$ac_objext conftest.beam conftest.$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9969 $as_echo "$ac_cv_func_fork_works" >&6; }
9971 else
9972 ac_cv_func_fork_works=$ac_cv_func_fork
9974 if test "x$ac_cv_func_fork_works" = xcross; then
9975 case $host in
9976 *-*-amigaos* | *-*-msdosdjgpp*)
9977 # Override, as these systems have only a dummy fork() stub
9978 ac_cv_func_fork_works=no
9981 ac_cv_func_fork_works=yes
9983 esac
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9985 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9987 ac_cv_func_vfork_works=$ac_cv_func_vfork
9988 if test "x$ac_cv_func_vfork" = xyes; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9990 $as_echo_n "checking for working vfork... " >&6; }
9991 if test "${ac_cv_func_vfork_works+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 if test "$cross_compiling" = yes; then :
9995 ac_cv_func_vfork_works=cross
9996 else
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 /* Thanks to Paul Eggert for this test. */
10000 $ac_includes_default
10001 #include <sys/wait.h>
10002 #ifdef HAVE_VFORK_H
10003 # include <vfork.h>
10004 #endif
10005 /* On some sparc systems, changes by the child to local and incoming
10006 argument registers are propagated back to the parent. The compiler
10007 is told about this with #include <vfork.h>, but some compilers
10008 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10009 static variable whose address is put into a register that is
10010 clobbered by the vfork. */
10011 static void
10012 #ifdef __cplusplus
10013 sparc_address_test (int arg)
10014 # else
10015 sparc_address_test (arg) int arg;
10016 #endif
10018 static pid_t child;
10019 if (!child) {
10020 child = vfork ();
10021 if (child < 0) {
10022 perror ("vfork");
10023 _exit(2);
10025 if (!child) {
10026 arg = getpid();
10027 write(-1, "", 0);
10028 _exit (arg);
10034 main ()
10036 pid_t parent = getpid ();
10037 pid_t child;
10039 sparc_address_test (0);
10041 child = vfork ();
10043 if (child == 0) {
10044 /* Here is another test for sparc vfork register problems. This
10045 test uses lots of local variables, at least as many local
10046 variables as main has allocated so far including compiler
10047 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10048 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10049 reuse the register of parent for one of the local variables,
10050 since it will think that parent can't possibly be used any more
10051 in this routine. Assigning to the local variable will thus
10052 munge parent in the parent process. */
10053 pid_t
10054 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10055 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10056 /* Convince the compiler that p..p7 are live; otherwise, it might
10057 use the same hardware register for all 8 local variables. */
10058 if (p != p1 || p != p2 || p != p3 || p != p4
10059 || p != p5 || p != p6 || p != p7)
10060 _exit(1);
10062 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10063 from child file descriptors. If the child closes a descriptor
10064 before it execs or exits, this munges the parent's descriptor
10065 as well. Test for this by closing stdout in the child. */
10066 _exit(close(fileno(stdout)) != 0);
10067 } else {
10068 int status;
10069 struct stat st;
10071 while (wait(&status) != child)
10073 return (
10074 /* Was there some problem with vforking? */
10075 child < 0
10077 /* Did the child fail? (This shouldn't happen.) */
10078 || status
10080 /* Did the vfork/compiler bug occur? */
10081 || parent != getpid()
10083 /* Did the file descriptor bug occur? */
10084 || fstat(fileno(stdout), &st) != 0
10088 _ACEOF
10089 if ac_fn_cxx_try_run "$LINENO"; then :
10090 ac_cv_func_vfork_works=yes
10091 else
10092 ac_cv_func_vfork_works=no
10094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10095 conftest.$ac_objext conftest.beam conftest.$ac_ext
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10100 $as_echo "$ac_cv_func_vfork_works" >&6; }
10103 if test "x$ac_cv_func_fork_works" = xcross; then
10104 ac_cv_func_vfork_works=$ac_cv_func_vfork
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10106 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10109 if test "x$ac_cv_func_vfork_works" = xyes; then
10111 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10113 else
10115 $as_echo "#define vfork fork" >>confdefs.h
10118 if test "x$ac_cv_func_fork_works" = xyes; then
10120 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10126 if test "X$prefix" = "XNONE"; then
10127 acl_final_prefix="$ac_default_prefix"
10128 else
10129 acl_final_prefix="$prefix"
10131 if test "X$exec_prefix" = "XNONE"; then
10132 acl_final_exec_prefix='${prefix}'
10133 else
10134 acl_final_exec_prefix="$exec_prefix"
10136 acl_save_prefix="$prefix"
10137 prefix="$acl_final_prefix"
10138 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10139 prefix="$acl_save_prefix"
10142 # Check whether --with-gnu-ld was given.
10143 if test "${with_gnu_ld+set}" = set; then :
10144 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10145 else
10146 with_gnu_ld=no
10149 # Prepare PATH_SEPARATOR.
10150 # The user is always right.
10151 if test "${PATH_SEPARATOR+set}" != set; then
10152 echo "#! /bin/sh" >conf$$.sh
10153 echo "exit 0" >>conf$$.sh
10154 chmod +x conf$$.sh
10155 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10156 PATH_SEPARATOR=';'
10157 else
10158 PATH_SEPARATOR=:
10160 rm -f conf$$.sh
10162 ac_prog=ld
10163 if test "$GCC" = yes; then
10164 # Check if gcc -print-prog-name=ld gives a path.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10166 $as_echo_n "checking for ld used by GCC... " >&6; }
10167 case $host in
10168 *-*-mingw*)
10169 # gcc leaves a trailing carriage return which upsets mingw
10170 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10172 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10173 esac
10174 case $ac_prog in
10175 # Accept absolute paths.
10176 [\\/]* | [A-Za-z]:[\\/]*)
10177 re_direlt='/[^/][^/]*/\.\./'
10178 # Canonicalize the path of ld
10179 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10180 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10181 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10182 done
10183 test -z "$LD" && LD="$ac_prog"
10186 # If it fails, then pretend we aren't using GCC.
10187 ac_prog=ld
10190 # If it is relative, then search for the first ld in PATH.
10191 with_gnu_ld=unknown
10193 esac
10194 elif test "$with_gnu_ld" = yes; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10196 $as_echo_n "checking for GNU ld... " >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10199 $as_echo_n "checking for non-GNU ld... " >&6; }
10201 if test "${acl_cv_path_LD+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -z "$LD"; then
10205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10206 for ac_dir in $PATH; do
10207 test -z "$ac_dir" && ac_dir=.
10208 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10209 acl_cv_path_LD="$ac_dir/$ac_prog"
10210 # Check to see if the program is GNU ld. I'd rather use --version,
10211 # but apparently some GNU ld's only accept -v.
10212 # Break only if it was the GNU/non-GNU ld that we prefer.
10213 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10214 test "$with_gnu_ld" != no && break
10215 else
10216 test "$with_gnu_ld" != yes && break
10219 done
10220 IFS="$ac_save_ifs"
10221 else
10222 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10226 LD="$acl_cv_path_LD"
10227 if test -n "$LD"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10229 $as_echo "$LD" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10234 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10236 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10237 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10241 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10242 acl_cv_prog_gnu_ld=yes
10243 else
10244 acl_cv_prog_gnu_ld=no
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10248 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10249 with_gnu_ld=$acl_cv_prog_gnu_ld
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10254 $as_echo_n "checking for shared library run path origin... " >&6; }
10255 if test "${acl_cv_rpath+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10259 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10260 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10261 . ./conftest.sh
10262 rm -f ./conftest.sh
10263 acl_cv_rpath=done
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10267 $as_echo "$acl_cv_rpath" >&6; }
10268 wl="$acl_cv_wl"
10269 libext="$acl_cv_libext"
10270 shlibext="$acl_cv_shlibext"
10271 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10272 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10273 hardcode_direct="$acl_cv_hardcode_direct"
10274 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10275 # Check whether --enable-rpath was given.
10276 if test "${enable_rpath+set}" = set; then :
10277 enableval=$enable_rpath; :
10278 else
10279 enable_rpath=yes
10289 use_additional=yes
10291 acl_save_prefix="$prefix"
10292 prefix="$acl_final_prefix"
10293 acl_save_exec_prefix="$exec_prefix"
10294 exec_prefix="$acl_final_exec_prefix"
10296 eval additional_includedir=\"$includedir\"
10297 eval additional_libdir=\"$libdir\"
10299 exec_prefix="$acl_save_exec_prefix"
10300 prefix="$acl_save_prefix"
10303 # Check whether --with-libiconv-prefix was given.
10304 if test "${with_libiconv_prefix+set}" = set; then :
10305 withval=$with_libiconv_prefix;
10306 if test "X$withval" = "Xno"; then
10307 use_additional=no
10308 else
10309 if test "X$withval" = "X"; then
10311 acl_save_prefix="$prefix"
10312 prefix="$acl_final_prefix"
10313 acl_save_exec_prefix="$exec_prefix"
10314 exec_prefix="$acl_final_exec_prefix"
10316 eval additional_includedir=\"$includedir\"
10317 eval additional_libdir=\"$libdir\"
10319 exec_prefix="$acl_save_exec_prefix"
10320 prefix="$acl_save_prefix"
10322 else
10323 additional_includedir="$withval/include"
10324 additional_libdir="$withval/lib"
10330 LIBICONV=
10331 LTLIBICONV=
10332 INCICONV=
10333 rpathdirs=
10334 ltrpathdirs=
10335 names_already_handled=
10336 names_next_round='iconv '
10337 while test -n "$names_next_round"; do
10338 names_this_round="$names_next_round"
10339 names_next_round=
10340 for name in $names_this_round; do
10341 already_handled=
10342 for n in $names_already_handled; do
10343 if test "$n" = "$name"; then
10344 already_handled=yes
10345 break
10347 done
10348 if test -z "$already_handled"; then
10349 names_already_handled="$names_already_handled $name"
10350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10351 eval value=\"\$HAVE_LIB$uppername\"
10352 if test -n "$value"; then
10353 if test "$value" = yes; then
10354 eval value=\"\$LIB$uppername\"
10355 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10356 eval value=\"\$LTLIB$uppername\"
10357 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10358 else
10361 else
10362 found_dir=
10363 found_la=
10364 found_so=
10365 found_a=
10366 if test $use_additional = yes; then
10367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10368 found_dir="$additional_libdir"
10369 found_so="$additional_libdir/lib$name.$shlibext"
10370 if test -f "$additional_libdir/lib$name.la"; then
10371 found_la="$additional_libdir/lib$name.la"
10373 else
10374 if test -f "$additional_libdir/lib$name.$libext"; then
10375 found_dir="$additional_libdir"
10376 found_a="$additional_libdir/lib$name.$libext"
10377 if test -f "$additional_libdir/lib$name.la"; then
10378 found_la="$additional_libdir/lib$name.la"
10383 if test "X$found_dir" = "X"; then
10384 for x in $LDFLAGS $LTLIBICONV; do
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10394 case "$x" in
10395 -L*)
10396 dir=`echo "X$x" | sed -e 's/^X-L//'`
10397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10398 found_dir="$dir"
10399 found_so="$dir/lib$name.$shlibext"
10400 if test -f "$dir/lib$name.la"; then
10401 found_la="$dir/lib$name.la"
10403 else
10404 if test -f "$dir/lib$name.$libext"; then
10405 found_dir="$dir"
10406 found_a="$dir/lib$name.$libext"
10407 if test -f "$dir/lib$name.la"; then
10408 found_la="$dir/lib$name.la"
10413 esac
10414 if test "X$found_dir" != "X"; then
10415 break
10417 done
10419 if test "X$found_dir" != "X"; then
10420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10421 if test "X$found_so" != "X"; then
10422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10424 else
10425 haveit=
10426 for x in $ltrpathdirs; do
10427 if test "X$x" = "X$found_dir"; then
10428 haveit=yes
10429 break
10431 done
10432 if test -z "$haveit"; then
10433 ltrpathdirs="$ltrpathdirs $found_dir"
10435 if test "$hardcode_direct" = yes; then
10436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10437 else
10438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10440 haveit=
10441 for x in $rpathdirs; do
10442 if test "X$x" = "X$found_dir"; then
10443 haveit=yes
10444 break
10446 done
10447 if test -z "$haveit"; then
10448 rpathdirs="$rpathdirs $found_dir"
10450 else
10451 haveit=
10452 for x in $LDFLAGS $LIBICONV; do
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10458 eval x=\"$x\"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10462 if test "X$x" = "X-L$found_dir"; then
10463 haveit=yes
10464 break
10466 done
10467 if test -z "$haveit"; then
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10470 if test "$hardcode_minus_L" != no; then
10471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10472 else
10473 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10478 else
10479 if test "X$found_a" != "X"; then
10480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10481 else
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10485 additional_includedir=
10486 case "$found_dir" in
10487 */lib | */lib/)
10488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10489 additional_includedir="$basedir/include"
10491 esac
10492 if test "X$additional_includedir" != "X"; then
10493 if test "X$additional_includedir" != "X/usr/include"; then
10494 haveit=
10495 if test "X$additional_includedir" = "X/usr/local/include"; then
10496 if test -n "$GCC"; then
10497 case $host_os in
10498 linux*) haveit=yes;;
10499 esac
10502 if test -z "$haveit"; then
10503 for x in $CPPFLAGS $INCICONV; do
10505 acl_save_prefix="$prefix"
10506 prefix="$acl_final_prefix"
10507 acl_save_exec_prefix="$exec_prefix"
10508 exec_prefix="$acl_final_exec_prefix"
10509 eval x=\"$x\"
10510 exec_prefix="$acl_save_exec_prefix"
10511 prefix="$acl_save_prefix"
10513 if test "X$x" = "X-I$additional_includedir"; then
10514 haveit=yes
10515 break
10517 done
10518 if test -z "$haveit"; then
10519 if test -d "$additional_includedir"; then
10520 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10526 if test -n "$found_la"; then
10527 save_libdir="$libdir"
10528 case "$found_la" in
10529 */* | *\\*) . "$found_la" ;;
10530 *) . "./$found_la" ;;
10531 esac
10532 libdir="$save_libdir"
10533 for dep in $dependency_libs; do
10534 case "$dep" in
10535 -L*)
10536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10537 if test "X$additional_libdir" != "X/usr/lib"; then
10538 haveit=
10539 if test "X$additional_libdir" = "X/usr/local/lib"; then
10540 if test -n "$GCC"; then
10541 case $host_os in
10542 linux*) haveit=yes;;
10543 esac
10546 if test -z "$haveit"; then
10547 haveit=
10548 for x in $LDFLAGS $LIBICONV; do
10550 acl_save_prefix="$prefix"
10551 prefix="$acl_final_prefix"
10552 acl_save_exec_prefix="$exec_prefix"
10553 exec_prefix="$acl_final_exec_prefix"
10554 eval x=\"$x\"
10555 exec_prefix="$acl_save_exec_prefix"
10556 prefix="$acl_save_prefix"
10558 if test "X$x" = "X-L$additional_libdir"; then
10559 haveit=yes
10560 break
10562 done
10563 if test -z "$haveit"; then
10564 if test -d "$additional_libdir"; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10568 haveit=
10569 for x in $LDFLAGS $LTLIBICONV; do
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575 eval x=\"$x\"
10576 exec_prefix="$acl_save_exec_prefix"
10577 prefix="$acl_save_prefix"
10579 if test "X$x" = "X-L$additional_libdir"; then
10580 haveit=yes
10581 break
10583 done
10584 if test -z "$haveit"; then
10585 if test -d "$additional_libdir"; then
10586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10592 -R*)
10593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10594 if test "$enable_rpath" != no; then
10595 haveit=
10596 for x in $rpathdirs; do
10597 if test "X$x" = "X$dir"; then
10598 haveit=yes
10599 break
10601 done
10602 if test -z "$haveit"; then
10603 rpathdirs="$rpathdirs $dir"
10605 haveit=
10606 for x in $ltrpathdirs; do
10607 if test "X$x" = "X$dir"; then
10608 haveit=yes
10609 break
10611 done
10612 if test -z "$haveit"; then
10613 ltrpathdirs="$ltrpathdirs $dir"
10617 -l*)
10618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10620 *.la)
10621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10624 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10627 esac
10628 done
10630 else
10631 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10636 done
10637 done
10638 if test "X$rpathdirs" != "X"; then
10639 if test -n "$hardcode_libdir_separator"; then
10640 alldirs=
10641 for found_dir in $rpathdirs; do
10642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10643 done
10644 acl_save_libdir="$libdir"
10645 libdir="$alldirs"
10646 eval flag=\"$hardcode_libdir_flag_spec\"
10647 libdir="$acl_save_libdir"
10648 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10649 else
10650 for found_dir in $rpathdirs; do
10651 acl_save_libdir="$libdir"
10652 libdir="$found_dir"
10653 eval flag=\"$hardcode_libdir_flag_spec\"
10654 libdir="$acl_save_libdir"
10655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10656 done
10659 if test "X$ltrpathdirs" != "X"; then
10660 for found_dir in $ltrpathdirs; do
10661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10662 done
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10672 $as_echo_n "checking for iconv... " >&6; }
10673 if test "${am_cv_func_iconv+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10677 am_cv_func_iconv="no, consider installing GNU libiconv"
10678 am_cv_lib_iconv=no
10679 am_save_CPPFLAGS="$CPPFLAGS"
10680 CPPFLAGS="$CPPFLAGS $INCICONV"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <stdlib.h>
10684 #include <iconv.h>
10686 main ()
10688 iconv_t cd = iconv_open("","");
10689 iconv(cd,NULL,NULL,NULL,NULL);
10690 iconv_close(cd);
10692 return 0;
10694 _ACEOF
10695 if ac_fn_cxx_try_link "$LINENO"; then :
10696 am_cv_func_iconv=yes
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 CPPFLAGS="$am_save_CPPFLAGS"
10702 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10703 for _libs in .libs _libs; do
10704 am_save_CPPFLAGS="$CPPFLAGS"
10705 am_save_LIBS="$LIBS"
10706 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10707 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #include <stdlib.h>
10711 #include <iconv.h>
10713 main ()
10715 iconv_t cd = iconv_open("","");
10716 iconv(cd,NULL,NULL,NULL,NULL);
10717 iconv_close(cd);
10719 return 0;
10721 _ACEOF
10722 if ac_fn_cxx_try_link "$LINENO"; then :
10723 INCICONV="-I../libiconv/include"
10724 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10725 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10726 am_cv_lib_iconv=yes
10727 am_cv_func_iconv=yes
10729 rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
10731 CPPFLAGS="$am_save_CPPFLAGS"
10732 LIBS="$am_save_LIBS"
10733 if test "$am_cv_func_iconv" = "yes"; then
10734 break
10736 done
10739 if test "$am_cv_func_iconv" != yes; then
10740 am_save_CPPFLAGS="$CPPFLAGS"
10741 am_save_LIBS="$LIBS"
10742 CPPFLAGS="$LIBS $INCICONV"
10743 LIBS="$LIBS $LIBICONV"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 #include <stdlib.h>
10747 #include <iconv.h>
10749 main ()
10751 iconv_t cd = iconv_open("","");
10752 iconv(cd,NULL,NULL,NULL,NULL);
10753 iconv_close(cd);
10755 return 0;
10757 _ACEOF
10758 if ac_fn_cxx_try_link "$LINENO"; then :
10759 am_cv_lib_iconv=yes
10760 am_cv_func_iconv=yes
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 CPPFLAGS="$am_save_CPPFLAGS"
10765 LIBS="$am_save_LIBS"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10770 $as_echo "$am_cv_func_iconv" >&6; }
10771 if test "$am_cv_func_iconv" = yes; then
10773 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10776 if test "$am_cv_lib_iconv" = yes; then
10778 for element in $INCICONV; do
10779 haveit=
10780 for x in $CPPFLAGS; do
10782 acl_save_prefix="$prefix"
10783 prefix="$acl_final_prefix"
10784 acl_save_exec_prefix="$exec_prefix"
10785 exec_prefix="$acl_final_exec_prefix"
10786 eval x=\"$x\"
10787 exec_prefix="$acl_save_exec_prefix"
10788 prefix="$acl_save_prefix"
10790 if test "X$x" = "X$element"; then
10791 haveit=yes
10792 break
10794 done
10795 if test -z "$haveit"; then
10796 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10798 done
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10801 $as_echo_n "checking how to link with libiconv... " >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10803 $as_echo "$LIBICONV" >&6; }
10804 else
10805 LIBICONV=
10806 LTLIBICONV=
10811 if test "$am_cv_func_iconv" = yes; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10813 $as_echo_n "checking for iconv declaration... " >&6; }
10814 if test "${am_cv_proto_iconv+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10821 #include <stdlib.h>
10822 #include <iconv.h>
10823 extern
10824 #ifdef __cplusplus
10826 #endif
10827 #if defined(__STDC__) || defined(__cplusplus)
10828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10829 #else
10830 size_t iconv();
10831 #endif
10834 main ()
10838 return 0;
10840 _ACEOF
10841 if ac_fn_cxx_try_compile "$LINENO"; then :
10842 am_cv_proto_iconv_arg1=""
10843 else
10844 am_cv_proto_iconv_arg1="const"
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 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);"
10850 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10852 }$am_cv_proto_iconv" >&5
10853 $as_echo "${ac_t:-
10854 }$am_cv_proto_iconv" >&6; }
10856 cat >>confdefs.h <<_ACEOF
10857 #define ICONV_CONST $am_cv_proto_iconv_arg1
10858 _ACEOF
10863 # Until we have in-tree GNU iconv:
10864 LIBICONV_DEP=
10865 if test -f "$LTLIBICONV"; then
10866 LIBICONV_DEP=$LTLIBICONV
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10872 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10873 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <locale.h>
10880 main ()
10882 return LC_MESSAGES
10884 return 0;
10886 _ACEOF
10887 if ac_fn_cxx_try_link "$LINENO"; then :
10888 am_cv_val_LC_MESSAGES=yes
10889 else
10890 am_cv_val_LC_MESSAGES=no
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10896 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10897 if test $am_cv_val_LC_MESSAGES = yes; then
10899 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10906 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10907 if test "${am_cv_langinfo_codeset+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #include <langinfo.h>
10914 main ()
10916 char* cs = nl_langinfo(CODESET);
10918 return 0;
10920 _ACEOF
10921 if ac_fn_cxx_try_link "$LINENO"; then :
10922 am_cv_langinfo_codeset=yes
10923 else
10924 am_cv_langinfo_codeset=no
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10931 $as_echo "$am_cv_langinfo_codeset" >&6; }
10932 if test $am_cv_langinfo_codeset = yes; then
10934 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10939 # We will need to find libiberty.h and ansidecl.h
10940 saved_CFLAGS="$CFLAGS"
10941 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10942 saved_CXXFLAGS="$CXXFLAGS"
10943 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10945 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10946 # normal autoconf function for these. But force definition of
10947 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10948 # basename handling in libiberty.h.
10949 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10950 #undef HAVE_DECL_BASENAME
10951 #define HAVE_DECL_BASENAME 1
10952 #include \"ansidecl.h\"
10953 #include \"system.h\"
10955 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10956 ac_have_decl=1
10957 else
10958 ac_have_decl=0
10961 cat >>confdefs.h <<_ACEOF
10962 #define HAVE_DECL_BASENAME $ac_have_decl
10963 _ACEOF
10964 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10965 #undef HAVE_DECL_BASENAME
10966 #define HAVE_DECL_BASENAME 1
10967 #include \"ansidecl.h\"
10968 #include \"system.h\"
10970 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10971 ac_have_decl=1
10972 else
10973 ac_have_decl=0
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_DECL_STRSTR $ac_have_decl
10978 _ACEOF
10981 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10982 madvise stpcpy strnlen strsignal strverscmp \
10983 strtol strtoul strtoll strtoull setenv unsetenv \
10984 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10985 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
10987 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10989 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10990 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 #undef $ac_tr_decl
10996 #define $ac_tr_decl 1
10998 #include "ansidecl.h"
10999 #include "system.h"
11002 main ()
11004 #ifndef $ac_func
11005 char *(*pfn) = (char *(*)) $ac_func ;
11006 #endif
11008 return 0;
11010 _ACEOF
11011 if ac_fn_cxx_try_compile "$LINENO"; then :
11012 eval "gcc_cv_have_decl_$ac_func=yes"
11013 else
11014 eval "gcc_cv_have_decl_$ac_func=no"
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11022 #define $ac_tr_decl 1
11023 _ACEOF
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11028 #define $ac_tr_decl 0
11029 _ACEOF
11033 done
11036 for ac_func in getrlimit setrlimit getrusage
11038 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11040 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11041 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 #undef $ac_tr_decl
11047 #define $ac_tr_decl 1
11049 #include "ansidecl.h"
11050 #include "system.h"
11051 #ifdef HAVE_SYS_RESOURCE_H
11052 #include <sys/resource.h>
11053 #endif
11057 main ()
11059 #ifndef $ac_func
11060 char *(*pfn) = (char *(*)) $ac_func ;
11061 #endif
11063 return 0;
11065 _ACEOF
11066 if ac_fn_cxx_try_compile "$LINENO"; then :
11067 eval "gcc_cv_have_decl_$ac_func=yes"
11068 else
11069 eval "gcc_cv_have_decl_$ac_func=no"
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11077 #define $ac_tr_decl 1
11078 _ACEOF
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11083 #define $ac_tr_decl 0
11084 _ACEOF
11088 done
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include "ansidecl.h"
11095 #include "system.h"
11096 #ifdef HAVE_SYS_RESOURCE_H
11097 #include <sys/resource.h>
11098 #endif
11101 main ()
11103 rlim_t l = 0;
11105 return 0;
11107 _ACEOF
11108 if ac_fn_cxx_try_compile "$LINENO"; then :
11110 else
11112 $as_echo "#define rlim_t long" >>confdefs.h
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11118 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11119 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11120 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11121 for ac_func in ldgetname
11123 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11125 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11126 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131 #undef $ac_tr_decl
11132 #define $ac_tr_decl 1
11134 #include "ansidecl.h"
11135 #include "system.h"
11136 #ifdef HAVE_LDFCN_H
11137 #undef FREAD
11138 #undef FWRITE
11139 #include <ldfcn.h>
11140 #endif
11144 main ()
11146 #ifndef $ac_func
11147 char *(*pfn) = (char *(*)) $ac_func ;
11148 #endif
11150 return 0;
11152 _ACEOF
11153 if ac_fn_cxx_try_compile "$LINENO"; then :
11154 eval "gcc_cv_have_decl_$ac_func=yes"
11155 else
11156 eval "gcc_cv_have_decl_$ac_func=no"
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11163 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11164 #define $ac_tr_decl 1
11165 _ACEOF
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11170 #define $ac_tr_decl 0
11171 _ACEOF
11175 done
11178 for ac_func in times
11180 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11182 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11183 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 #undef $ac_tr_decl
11189 #define $ac_tr_decl 1
11191 #include "ansidecl.h"
11192 #include "system.h"
11193 #ifdef HAVE_SYS_TIMES_H
11194 #include <sys/times.h>
11195 #endif
11199 main ()
11201 #ifndef $ac_func
11202 char *(*pfn) = (char *(*)) $ac_func ;
11203 #endif
11205 return 0;
11207 _ACEOF
11208 if ac_fn_cxx_try_compile "$LINENO"; then :
11209 eval "gcc_cv_have_decl_$ac_func=yes"
11210 else
11211 eval "gcc_cv_have_decl_$ac_func=no"
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11218 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 1
11220 _ACEOF
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11225 #define $ac_tr_decl 0
11226 _ACEOF
11230 done
11233 for ac_func in sigaltstack
11235 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11237 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11238 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 #undef $ac_tr_decl
11244 #define $ac_tr_decl 1
11246 #include "ansidecl.h"
11247 #include "system.h"
11248 #include <signal.h>
11252 main ()
11254 #ifndef $ac_func
11255 char *(*pfn) = (char *(*)) $ac_func ;
11256 #endif
11258 return 0;
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11263 else
11264 eval "gcc_cv_have_decl_$ac_func=no"
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11271 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 1
11273 _ACEOF
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11278 #define $ac_tr_decl 0
11279 _ACEOF
11283 done
11286 # More time-related stuff.
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11288 $as_echo_n "checking for struct tms... " >&6; }
11289 if test "${ac_cv_struct_tms+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 #include "ansidecl.h"
11297 #include "system.h"
11298 #ifdef HAVE_SYS_TIMES_H
11299 #include <sys/times.h>
11300 #endif
11303 main ()
11305 struct tms tms;
11307 return 0;
11309 _ACEOF
11310 if ac_fn_cxx_try_compile "$LINENO"; then :
11311 ac_cv_struct_tms=yes
11312 else
11313 ac_cv_struct_tms=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11318 $as_echo "$ac_cv_struct_tms" >&6; }
11319 if test $ac_cv_struct_tms = yes; then
11321 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11325 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11326 # revisit after autoconf 2.50.
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11328 $as_echo_n "checking for clock_t... " >&6; }
11329 if test "${gcc_cv_type_clock_t+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 #include "ansidecl.h"
11337 #include "system.h"
11340 main ()
11342 clock_t x;
11344 return 0;
11346 _ACEOF
11347 if ac_fn_cxx_try_compile "$LINENO"; then :
11348 gcc_cv_type_clock_t=yes
11349 else
11350 gcc_cv_type_clock_t=no
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11355 $as_echo "$gcc_cv_type_clock_t" >&6; }
11356 if test $gcc_cv_type_clock_t = yes; then
11358 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11362 # Check if F_SETLKW is supported by fcntl.
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11364 $as_echo_n "checking for F_SETLKW... " >&6; }
11365 if test "${ac_cv_f_setlkw+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 #include <fcntl.h>
11374 main ()
11377 struct flock fl;
11378 fl.l_whence = 0;
11379 fl.l_start = 0;
11380 fl.l_len = 0;
11381 fl.l_pid = 0;
11382 return fcntl (1, F_SETLKW, &fl);
11384 return 0;
11386 _ACEOF
11387 if ac_fn_cxx_try_compile "$LINENO"; then :
11388 ac_cv_f_setlkw=yes
11389 else
11390 ac_cv_f_setlkw=no
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11395 $as_echo "$ac_cv_f_setlkw" >&6; }
11396 if test $ac_cv_f_setlkw = yes; then
11398 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11402 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11403 CFLAGS="$saved_CFLAGS"
11404 CXXFLAGS="$saved_CXXFLAGS"
11406 # mkdir takes a single argument on some systems.
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11408 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11409 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11415 #include <sys/types.h>
11416 #ifdef HAVE_SYS_STAT_H
11417 # include <sys/stat.h>
11418 #endif
11419 #ifdef HAVE_UNISTD_H
11420 # include <unistd.h>
11421 #endif
11422 #ifdef HAVE_DIRECT_H
11423 # include <direct.h>
11424 #endif
11426 main ()
11428 mkdir ("foo", 0);
11430 return 0;
11432 _ACEOF
11433 if ac_fn_cxx_try_compile "$LINENO"; then :
11434 gcc_cv_mkdir_takes_one_arg=no
11435 else
11436 gcc_cv_mkdir_takes_one_arg=yes
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11441 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11442 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11444 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11449 # File extensions
11450 manext='.1'
11451 objext='.o'
11455 # With Setjmp/Longjmp based exception handling.
11456 # Check whether --enable-sjlj-exceptions was given.
11457 if test "${enable_sjlj_exceptions+set}" = set; then :
11458 enableval=$enable_sjlj_exceptions; case $target in
11459 *-*-hpux10*)
11460 if test $enableval != yes; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11462 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11463 enableval=yes
11466 esac
11467 force_sjlj_exceptions=yes
11468 else
11469 case $target in
11470 *-*-hpux10*)
11471 force_sjlj_exceptions=yes
11472 enableval=yes
11474 lm32*-*-*)
11475 force_sjlj_exceptions=yes
11476 enableval=yes
11479 force_sjlj_exceptions=no
11481 esac
11484 if test $force_sjlj_exceptions = yes; then
11485 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11487 cat >>confdefs.h <<_ACEOF
11488 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11489 _ACEOF
11493 # --------------------------------------------------------
11494 # Build, host, and target specific configuration fragments
11495 # --------------------------------------------------------
11497 # Collect build-machine-specific information.
11498 . ${srcdir}/config.build || exit 1
11500 # Collect host-machine-specific information.
11501 . ${srcdir}/config.host || exit 1
11503 target_gtfiles=
11505 # Collect target-machine-specific information.
11506 . ${srcdir}/config.gcc || exit 1
11508 extra_objs="${host_extra_objs} ${extra_objs}"
11509 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11511 # Default the target-machine variables that were not explicitly set.
11512 if test x"$tm_file" = x
11513 then tm_file=$cpu_type/$cpu_type.h; fi
11515 if test x"$extra_headers" = x
11516 then extra_headers=; fi
11518 if test x$md_file = x
11519 then md_file=$cpu_type/$cpu_type.md; fi
11521 if test x$out_file = x
11522 then out_file=$cpu_type/$cpu_type.c; fi
11524 if test x"$tmake_file" = x
11525 then tmake_file=$cpu_type/t-$cpu_type
11528 # Support --enable-initfini-array.
11529 if test x$enable_initfini_array != xno; then
11530 tm_file="${tm_file} initfini-array.h"
11533 if test x"$dwarf2" = xyes
11534 then tm_file="$tm_file tm-dwarf2.h"
11537 # Say what files are being used for the output code and MD file.
11538 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11539 echo "Using \`$srcdir/config/$md_file' as machine description file."
11541 # If any of the xm_file variables contain nonexistent files, warn
11542 # about them and drop them.
11545 for x in $build_xm_file; do
11546 if test -f $srcdir/config/$x
11547 then bx="$bx $x"
11548 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11549 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11551 done
11552 build_xm_file="$bx"
11555 for x in $host_xm_file; do
11556 if test -f $srcdir/config/$x
11557 then hx="$hx $x"
11558 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11559 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11561 done
11562 host_xm_file="$hx"
11565 for x in $xm_file; do
11566 if test -f $srcdir/config/$x
11567 then tx="$tx $x"
11568 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11569 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11571 done
11572 xm_file="$tx"
11574 count=a
11575 for f in $tm_file; do
11576 count=${count}x
11577 done
11578 if test $count = ax; then
11579 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11580 else
11581 echo "Using the following target machine macro files:"
11582 for f in $tm_file; do
11583 echo " $srcdir/config/$f"
11584 done
11587 if test x$use_long_long_for_widest_fast_int = xyes; then
11589 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11593 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11595 cat >>confdefs.h <<_ACEOF
11596 #define HAVE_GNU_LD $gnu_ld_bool
11597 _ACEOF
11600 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_GNU_AS $gnu_as_bool
11604 _ACEOF
11607 count=a
11608 for f in $host_xm_file; do
11609 count=${count}x
11610 done
11611 if test $count = a; then
11613 elif test $count = ax; then
11614 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11615 else
11616 echo "Using the following host machine macro files:"
11617 for f in $host_xm_file; do
11618 echo " $srcdir/config/$f"
11619 done
11621 echo "Using ${out_host_hook_obj} for host machine hooks."
11623 if test "$host_xm_file" != "$build_xm_file"; then
11624 count=a
11625 for f in $build_xm_file; do
11626 count=${count}x
11627 done
11628 if test $count = a; then
11630 elif test $count = ax; then
11631 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11632 else
11633 echo "Using the following build machine macro files:"
11634 for f in $build_xm_file; do
11635 echo " $srcdir/config/$f"
11636 done
11640 if test -n "$configured_native_system_header_dir"; then
11641 native_system_header_dir=$configured_native_system_header_dir
11643 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11646 case ${host} in
11647 powerpc*-*-darwin*)
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11649 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11650 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 #include <sys/cdefs.h>
11657 #include <sys/signal.h>
11658 #include <ucontext.h>
11659 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11661 _ACEOF
11662 if ac_fn_cxx_try_compile "$LINENO"; then :
11663 gcc_cv_mcontext_underscores=no
11664 else
11665 gcc_cv_mcontext_underscores=yes
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11670 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11671 if test $gcc_cv_mcontext_underscores = yes; then
11673 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11677 esac
11679 # ---------
11680 # Threading
11681 # ---------
11683 # Check if a valid thread package
11684 case ${enable_threads} in
11685 "" | no)
11686 # No threads
11687 target_thread_file='single'
11689 yes)
11690 # default
11691 target_thread_file='single'
11693 aix | dce | lynx | mipssde | posix | rtems | \
11694 single | tpf | vxworks | win32)
11695 target_thread_file=${enable_threads}
11698 echo "${enable_threads} is an unknown thread package" 1>&2
11699 exit 1
11701 esac
11703 if test x${thread_file} = x; then
11704 # No thread file set by target-specific clauses in config.gcc,
11705 # so use file chosen by default logic above
11706 thread_file=${target_thread_file}
11709 # --------
11710 # UNSORTED
11711 # --------
11713 use_cxa_atexit=no
11714 if test x$enable___cxa_atexit = xyes || \
11715 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11716 if test x$host = x$target; then
11717 case $host in
11718 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11719 # keyed to flag_use_cxa_atexit
11720 *-*-mingw32*)
11721 use_cxa_atexit=yes
11723 powerpc-ibm-aix*)
11724 use_cxa_atexit=yes
11727 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11728 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11729 use_cxa_atexit=yes
11730 else
11731 echo "__cxa_atexit can't be enabled on this target"
11735 esac
11736 else
11737 # We can't check for __cxa_atexit when building a cross, so assume
11738 # it is available
11739 use_cxa_atexit=yes
11741 if test x$use_cxa_atexit = xyes; then
11743 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11748 # Look for a file containing extra machine modes.
11749 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11750 extra_modes_file='$(srcdir)'/config/${extra_modes}
11753 cat >>confdefs.h <<_ACEOF
11754 #define EXTRA_MODES_FILE "config/$extra_modes"
11755 _ACEOF
11759 # Convert extra_options into a form suitable for Makefile use.
11760 extra_opt_files=
11761 all_opt_files=
11762 for f in $extra_options; do
11763 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11764 all_opt_files="$all_opt_files $srcdir/config/$f"
11765 done
11768 # auto-host.h is the file containing items generated by autoconf and is
11769 # the first file included by config.h.
11770 # If host=build, it is correct to have bconfig include auto-host.h
11771 # as well. If host!=build, we are in error and need to do more
11772 # work to find out the build config parameters.
11773 if test x$host = x$build
11774 then
11775 build_auto=auto-host.h
11776 else
11777 # We create a subdir, then run autoconf in the subdir.
11778 # To prevent recursion we set host and build for the new
11779 # invocation of configure to the build for this invocation
11780 # of configure.
11781 tempdir=build.$$
11782 rm -rf $tempdir
11783 mkdir $tempdir
11784 cd $tempdir
11785 case ${srcdir} in
11786 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11787 *) realsrcdir=../${srcdir};;
11788 esac
11789 # Clearing GMPINC is necessary to prevent host headers being
11790 # used by the build compiler. Defining GENERATOR_FILE stops
11791 # system.h from including gmp.h.
11792 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11793 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11794 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11795 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11796 ${realsrcdir}/configure \
11797 --enable-languages=${enable_languages-all} \
11798 --target=$target_alias --host=$build_alias --build=$build_alias
11800 # We just finished tests for the build machine, so rename
11801 # the file auto-build.h in the gcc directory.
11802 mv auto-host.h ../auto-build.h
11803 cd ..
11804 rm -rf $tempdir
11805 build_auto=auto-build.h
11809 tm_file="${tm_file} defaults.h"
11810 tm_p_file="${tm_p_file} tm-preds.h"
11811 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11812 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11813 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11814 # put this back in temporarily.
11815 xm_file="auto-host.h ansidecl.h ${xm_file}"
11817 # --------
11818 # UNSORTED
11819 # --------
11821 # Compile in configure arguments.
11822 if test -f configargs.h ; then
11823 # Being re-configured.
11824 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11825 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11826 else
11827 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11830 # Double all backslashes and backslash all quotes to turn
11831 # gcc_config_arguments into a C string.
11832 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11833 $gcc_config_arguments
11835 gcc_config_arguments_str=`cat conftest.out`
11836 rm -f conftest.out
11838 cat > configargs.h <<EOF
11839 /* Generated automatically. */
11840 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11841 static const char thread_model[] = "$thread_file";
11843 static const struct {
11844 const char *name, *value;
11845 } configure_default_options[] = $configure_default_options;
11848 gcc_BASEVER=`cat $srcdir/BASE-VER`
11849 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11850 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11851 if test -f $srcdir/REVISION ; then
11852 gcc_REVISION=`cat $srcdir/REVISION`
11853 else
11854 gcc_REVISION=""
11856 cat > plugin-version.h <<EOF
11857 #include "configargs.h"
11859 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11860 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11861 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11862 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11864 static char basever[] = "$gcc_BASEVER";
11865 static char datestamp[] = "$gcc_DATESTAMP";
11866 static char devphase[] = "$gcc_DEVPHASE";
11867 static char revision[] = "$gcc_REVISION";
11869 /* FIXME plugins: We should make the version information more precise.
11870 One way to do is to add a checksum. */
11872 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11873 devphase, revision,
11874 configuration_arguments};
11877 # Determine what GCC version number to use in filesystem paths.
11879 get_gcc_base_ver="cat"
11881 # Check whether --with-gcc-major-version-only was given.
11882 if test "${with_gcc_major_version_only+set}" = set; then :
11883 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11884 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11892 # Internationalization
11893 # If we haven't got the data from the intl directory,
11894 # assume NLS is disabled.
11895 USE_NLS=no
11896 LIBINTL=
11897 LIBINTL_DEP=
11898 INCINTL=
11899 XGETTEXT=
11900 GMSGFMT=
11901 POSUB=
11903 if test -f ../intl/config.intl; then
11904 . ../intl/config.intl
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11907 $as_echo_n "checking whether NLS is requested... " >&6; }
11908 if test x"$USE_NLS" != xyes; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913 $as_echo "yes" >&6; }
11915 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11919 $as_echo_n "checking for catalogs to be installed... " >&6; }
11920 # Look for .po and .gmo files in the source directory.
11921 CATALOGS=
11922 XLINGUAS=
11923 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11924 # If there aren't any .gmo files the shell will give us the
11925 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11926 # weeded out.
11927 case "$cat" in *\**)
11928 continue;;
11929 esac
11930 # The quadruple backslash is collapsed to a double backslash
11931 # by the backticks, then collapsed again by the double quotes,
11932 # leaving us with one backslash in the sed expression (right
11933 # before the dot that mustn't act as a wildcard).
11934 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11935 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11936 # The user is allowed to set LINGUAS to a list of languages to
11937 # install catalogs for. If it's empty that means "all of them."
11938 if test "x$LINGUAS" = x; then
11939 CATALOGS="$CATALOGS $cat"
11940 XLINGUAS="$XLINGUAS $lang"
11941 else
11942 case "$LINGUAS" in *$lang*)
11943 CATALOGS="$CATALOGS $cat"
11944 XLINGUAS="$XLINGUAS $lang"
11946 esac
11948 done
11949 LINGUAS="$XLINGUAS"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11951 $as_echo "$LINGUAS" >&6; }
11954 DATADIRNAME=share
11956 INSTOBJEXT=.mo
11958 GENCAT=gencat
11960 CATOBJEXT=.gmo
11964 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11965 # -liconv on the link line twice.
11966 case "$LIBINTL" in *$LIBICONV*)
11967 LIBICONV= ;;
11968 esac
11970 # Check whether --enable-secureplt was given.
11971 if test "${enable_secureplt+set}" = set; then :
11972 enableval=$enable_secureplt;
11976 # Check whether --enable-mingw-wildcard was given.
11977 if test "${enable_mingw_wildcard+set}" = set; then :
11978 enableval=$enable_mingw_wildcard;
11979 else
11980 enable_mingw_wildcard=platform
11983 if test x"$enable_mingw_wildcard" != xplatform ; then :
11985 cat >>confdefs.h <<_ACEOF
11986 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11987 _ACEOF
11991 # Check whether --enable-leading-mingw64-underscores was given.
11992 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11993 enableval=$enable_leading_mingw64_underscores;
11996 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11998 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12002 # Check whether --enable-cld was given.
12003 if test "${enable_cld+set}" = set; then :
12004 enableval=$enable_cld;
12005 else
12006 enable_cld=no
12010 # Check whether --enable-frame-pointer was given.
12011 if test "${enable_frame_pointer+set}" = set; then :
12012 enableval=$enable_frame_pointer;
12013 else
12015 case $target_os in
12016 linux* | darwin[8912]*)
12017 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12018 # DWARF2.
12019 enable_frame_pointer=no
12022 enable_frame_pointer=yes
12024 esac
12029 # Windows32 Registry support for specifying GCC installation paths.
12030 # Check whether --enable-win32-registry was given.
12031 if test "${enable_win32_registry+set}" = set; then :
12032 enableval=$enable_win32_registry;
12036 case $host_os in
12037 win32 | pe | cygwin* | mingw32*)
12038 if test "x$enable_win32_registry" != xno; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12040 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12041 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 ac_func_search_save_LIBS=$LIBS
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char RegOpenKeyExA ();
12056 main ()
12058 return RegOpenKeyExA ();
12060 return 0;
12062 _ACEOF
12063 for ac_lib in '' advapi32; do
12064 if test -z "$ac_lib"; then
12065 ac_res="none required"
12066 else
12067 ac_res=-l$ac_lib
12068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12070 if ac_fn_cxx_try_link "$LINENO"; then :
12071 ac_cv_search_RegOpenKeyExA=$ac_res
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076 break
12078 done
12079 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12081 else
12082 ac_cv_search_RegOpenKeyExA=no
12084 rm conftest.$ac_ext
12085 LIBS=$ac_func_search_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12088 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12089 ac_res=$ac_cv_search_RegOpenKeyExA
12090 if test "$ac_res" != no; then :
12091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12093 else
12094 enable_win32_registry=no
12099 if test "x$enable_win32_registry" != xno; then
12101 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12104 if test "x$enable_win32_registry" != xyes \
12105 && test "x$enable_win32_registry" != x; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12109 _ACEOF
12114 esac
12116 # Get an absolute path to the GCC top-level source directory
12117 holddir=`${PWDCMD-pwd}`
12118 cd $srcdir
12119 topdir=`${PWDCMD-pwd}`
12120 cd $holddir
12122 # Conditionalize the makefile for this host machine.
12123 xmake_file=
12124 for f in ${host_xmake_file}
12126 if test -f ${srcdir}/config/$f
12127 then
12128 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12130 done
12132 # Conditionalize the makefile for this target machine.
12133 tmake_file_=
12134 for f in ${tmake_file}
12136 if test -f ${srcdir}/config/$f
12137 then
12138 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12140 done
12141 tmake_file="${tmake_file_}"
12143 out_object_file=`basename $out_file .c`.o
12144 common_out_object_file=`basename $common_out_file .c`.o
12146 tm_file_list="options.h"
12147 tm_include_list="options.h insn-constants.h"
12148 for f in $tm_file; do
12149 case $f in
12150 ./* )
12151 f=`echo $f | sed 's/^..//'`
12152 tm_file_list="${tm_file_list} $f"
12153 tm_include_list="${tm_include_list} $f"
12155 defaults.h )
12156 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12157 tm_include_list="${tm_include_list} $f"
12160 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12161 tm_include_list="${tm_include_list} config/$f"
12163 esac
12164 done
12166 tm_p_file_list=
12167 tm_p_include_list=
12168 for f in $tm_p_file; do
12169 case $f in
12170 tm-preds.h )
12171 tm_p_file_list="${tm_p_file_list} $f"
12172 tm_p_include_list="${tm_p_include_list} $f"
12175 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12176 tm_p_include_list="${tm_p_include_list} config/$f"
12177 esac
12178 done
12180 xm_file_list=
12181 xm_include_list=
12182 for f in $xm_file; do
12183 case $f in
12184 ansidecl.h )
12185 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12186 xm_include_list="${xm_include_list} $f"
12188 auto-host.h )
12189 xm_file_list="${xm_file_list} $f"
12190 xm_include_list="${xm_include_list} $f"
12193 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12194 xm_include_list="${xm_include_list} config/$f"
12196 esac
12197 done
12199 host_xm_file_list=
12200 host_xm_include_list=
12201 for f in $host_xm_file; do
12202 case $f in
12203 ansidecl.h )
12204 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12207 auto-host.h )
12208 host_xm_file_list="${host_xm_file_list} $f"
12209 host_xm_include_list="${host_xm_include_list} $f"
12212 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12213 host_xm_include_list="${host_xm_include_list} config/$f"
12215 esac
12216 done
12218 build_xm_file_list=
12219 for f in $build_xm_file; do
12220 case $f in
12221 ansidecl.h )
12222 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12225 auto-build.h | auto-host.h )
12226 build_xm_file_list="${build_xm_file_list} $f"
12227 build_xm_include_list="${build_xm_include_list} $f"
12230 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12231 build_xm_include_list="${build_xm_include_list} config/$f"
12233 esac
12234 done
12236 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12237 # cross-compiler which does not use the native headers and libraries.
12238 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12239 CROSS=
12240 ALL=all.internal
12241 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12242 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12244 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12245 test x$build != x$host || test "x$with_build_sysroot" != x; then
12246 if test "x$with_build_sysroot" != x; then
12247 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12248 else
12249 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12252 if test x$host != x$target
12253 then
12254 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12255 ALL=all.cross
12256 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12257 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12258 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12261 if test "x$with_build_sysroot" != "x"; then
12262 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12263 elif test "x$with_sysroot" = x; then
12264 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12265 elif test "x$with_sysroot" = xyes; then
12266 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12267 else
12268 target_header_dir="${with_sysroot}${native_system_header_dir}"
12270 else
12271 target_header_dir=${native_system_header_dir}
12274 # If this is a cross-compiler that does not
12275 # have its own set of headers then define
12276 # inhibit_libc
12278 # If this is using newlib, without having the headers available now,
12279 # then define inhibit_libc in LIBGCC2_CFLAGS.
12280 # This prevents libgcc2 from containing any code which requires libc
12281 # support.
12282 : ${inhibit_libc=false}
12283 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12284 test x$with_newlib = xyes ; } &&
12285 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12286 inhibit_libc=true
12290 # When building gcc with a cross-compiler, we need to adjust things so
12291 # that the generator programs are still built with the native compiler.
12292 # Also, we cannot run fixincludes.
12294 # These are the normal (build=host) settings:
12295 CC_FOR_BUILD='$(CC)'
12296 CXX_FOR_BUILD='$(CXX)'
12297 BUILD_CFLAGS='$(ALL_CFLAGS)'
12298 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12299 BUILD_LDFLAGS='$(LDFLAGS)'
12300 STMP_FIXINC=stmp-fixinc
12302 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12303 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12305 # And these apply if build != host, or we are generating coverage data
12306 if test x$build != x$host || test "x$coverage_flags" != x
12307 then
12308 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12309 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12310 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12312 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12313 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12314 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12315 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12320 # Expand extra_headers to include complete path.
12321 # This substitutes for lots of t-* files.
12322 extra_headers_list=
12323 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12324 for file in ${extra_headers} ; do
12325 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12326 done
12328 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12329 if test x"$use_gcc_tgmath" = xyes
12330 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12333 # Define collect2 in Makefile.
12334 case $host_can_use_collect2 in
12335 no) collect2= ;;
12336 *) collect2='collect2$(exeext)' ;;
12337 esac
12340 # Add a definition of USE_COLLECT2 if system wants one.
12341 case $use_collect2 in
12342 no) use_collect2= ;;
12343 "") ;;
12345 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12346 xm_defines="${xm_defines} USE_COLLECT2"
12347 case $host_can_use_collect2 in
12349 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12351 esac
12353 esac
12356 cat >>confdefs.h <<_ACEOF
12357 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12358 _ACEOF
12361 # ---------------------------
12362 # Assembler & linker features
12363 # ---------------------------
12365 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12366 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12367 # However when ld-new is first executed from the build tree, libtool will
12368 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12369 # to the build tree. While doing this we need to use the previous-stage
12370 # linker, or we have an infinite loop. The presence of a shell script as
12371 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12372 # the gcc/collect-ld script. So we need to know how libtool works, or
12373 # exec-tool will fail.
12376 case `pwd` in
12377 *\ * | *\ *)
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12379 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12380 esac
12384 macro_version='2.2.7a'
12385 macro_revision='1.3134'
12399 ltmain="$ac_aux_dir/ltmain.sh"
12401 # Backslashify metacharacters that are still active within
12402 # double-quoted strings.
12403 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12405 # Same as above, but do not quote variable references.
12406 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12408 # Sed substitution to delay expansion of an escaped shell variable in a
12409 # double_quote_subst'ed string.
12410 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12412 # Sed substitution to delay expansion of an escaped single quote.
12413 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12415 # Sed substitution to avoid accidental globbing in evaled expressions
12416 no_glob_subst='s/\*/\\\*/g'
12418 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12419 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12420 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12423 $as_echo_n "checking how to print strings... " >&6; }
12424 # Test print first, because it will be a builtin if present.
12425 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12426 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12427 ECHO='print -r --'
12428 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12429 ECHO='printf %s\n'
12430 else
12431 # Use this function as a fallback that always works.
12432 func_fallback_echo ()
12434 eval 'cat <<_LTECHO_EOF
12436 _LTECHO_EOF'
12438 ECHO='func_fallback_echo'
12441 # func_echo_all arg...
12442 # Invoke $ECHO with all args, space-separated.
12443 func_echo_all ()
12445 $ECHO ""
12448 case "$ECHO" in
12449 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12450 $as_echo "printf" >&6; } ;;
12451 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12452 $as_echo "print -r" >&6; } ;;
12453 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12454 $as_echo "cat" >&6; } ;;
12455 esac
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12471 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12472 if test "${ac_cv_path_SED+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12476 for ac_i in 1 2 3 4 5 6 7; do
12477 ac_script="$ac_script$as_nl$ac_script"
12478 done
12479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12480 { ac_script=; unset ac_script;}
12481 if test -z "$SED"; then
12482 ac_path_SED_found=false
12483 # Loop through the user's path and test for each of PROGNAME-LIST
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_prog in sed gsed; do
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12492 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12493 # Check for GNU ac_path_SED and select it if it is found.
12494 # Check for GNU $ac_path_SED
12495 case `"$ac_path_SED" --version 2>&1` in
12496 *GNU*)
12497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12499 ac_count=0
12500 $as_echo_n 0123456789 >"conftest.in"
12501 while :
12503 cat "conftest.in" "conftest.in" >"conftest.tmp"
12504 mv "conftest.tmp" "conftest.in"
12505 cp "conftest.in" "conftest.nl"
12506 $as_echo '' >> "conftest.nl"
12507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12509 as_fn_arith $ac_count + 1 && ac_count=$as_val
12510 if test $ac_count -gt ${ac_path_SED_max-0}; then
12511 # Best one so far, save it but keep looking for a better one
12512 ac_cv_path_SED="$ac_path_SED"
12513 ac_path_SED_max=$ac_count
12515 # 10*(2^10) chars as input seems more than enough
12516 test $ac_count -gt 10 && break
12517 done
12518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12519 esac
12521 $ac_path_SED_found && break 3
12522 done
12523 done
12524 done
12525 IFS=$as_save_IFS
12526 if test -z "$ac_cv_path_SED"; then
12527 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12529 else
12530 ac_cv_path_SED=$SED
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12535 $as_echo "$ac_cv_path_SED" >&6; }
12536 SED="$ac_cv_path_SED"
12537 rm -f conftest.sed
12539 test -z "$SED" && SED=sed
12540 Xsed="$SED -e 1s/^X//"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12553 $as_echo_n "checking for fgrep... " >&6; }
12554 if test "${ac_cv_path_FGREP+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12558 then ac_cv_path_FGREP="$GREP -F"
12559 else
12560 if test -z "$FGREP"; then
12561 ac_path_FGREP_found=false
12562 # Loop through the user's path and test for each of PROGNAME-LIST
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_prog in fgrep; do
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12571 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12572 # Check for GNU ac_path_FGREP and select it if it is found.
12573 # Check for GNU $ac_path_FGREP
12574 case `"$ac_path_FGREP" --version 2>&1` in
12575 *GNU*)
12576 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12578 ac_count=0
12579 $as_echo_n 0123456789 >"conftest.in"
12580 while :
12582 cat "conftest.in" "conftest.in" >"conftest.tmp"
12583 mv "conftest.tmp" "conftest.in"
12584 cp "conftest.in" "conftest.nl"
12585 $as_echo 'FGREP' >> "conftest.nl"
12586 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12588 as_fn_arith $ac_count + 1 && ac_count=$as_val
12589 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12590 # Best one so far, save it but keep looking for a better one
12591 ac_cv_path_FGREP="$ac_path_FGREP"
12592 ac_path_FGREP_max=$ac_count
12594 # 10*(2^10) chars as input seems more than enough
12595 test $ac_count -gt 10 && break
12596 done
12597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12598 esac
12600 $ac_path_FGREP_found && break 3
12601 done
12602 done
12603 done
12604 IFS=$as_save_IFS
12605 if test -z "$ac_cv_path_FGREP"; then
12606 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12608 else
12609 ac_cv_path_FGREP=$FGREP
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12615 $as_echo "$ac_cv_path_FGREP" >&6; }
12616 FGREP="$ac_cv_path_FGREP"
12619 test -z "$GREP" && GREP=grep
12639 # Check whether --with-gnu-ld was given.
12640 if test "${with_gnu_ld+set}" = set; then :
12641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12642 else
12643 with_gnu_ld=no
12646 ac_prog=ld
12647 if test "$GCC" = yes; then
12648 # Check if gcc -print-prog-name=ld gives a path.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12650 $as_echo_n "checking for ld used by $CC... " >&6; }
12651 case $host in
12652 *-*-mingw*)
12653 # gcc leaves a trailing carriage return which upsets mingw
12654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12657 esac
12658 case $ac_prog in
12659 # Accept absolute paths.
12660 [\\/]* | ?:[\\/]*)
12661 re_direlt='/[^/][^/]*/\.\./'
12662 # Canonicalize the pathname of ld
12663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12666 done
12667 test -z "$LD" && LD="$ac_prog"
12670 # If it fails, then pretend we aren't using GCC.
12671 ac_prog=ld
12674 # If it is relative, then search for the first ld in PATH.
12675 with_gnu_ld=unknown
12677 esac
12678 elif test "$with_gnu_ld" = yes; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12680 $as_echo_n "checking for GNU ld... " >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12683 $as_echo_n "checking for non-GNU ld... " >&6; }
12685 if test "${lt_cv_path_LD+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 if test -z "$LD"; then
12689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12690 for ac_dir in $PATH; do
12691 IFS="$lt_save_ifs"
12692 test -z "$ac_dir" && ac_dir=.
12693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12694 lt_cv_path_LD="$ac_dir/$ac_prog"
12695 # Check to see if the program is GNU ld. I'd rather use --version,
12696 # but apparently some variants of GNU ld only accept -v.
12697 # Break only if it was the GNU/non-GNU ld that we prefer.
12698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12699 *GNU* | *'with BFD'*)
12700 test "$with_gnu_ld" != no && break
12703 test "$with_gnu_ld" != yes && break
12705 esac
12707 done
12708 IFS="$lt_save_ifs"
12709 else
12710 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12714 LD="$lt_cv_path_LD"
12715 if test -n "$LD"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12717 $as_echo "$LD" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12722 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12725 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12729 case `$LD -v 2>&1 </dev/null` in
12730 *GNU* | *'with BFD'*)
12731 lt_cv_prog_gnu_ld=yes
12734 lt_cv_prog_gnu_ld=no
12736 esac
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12740 with_gnu_ld=$lt_cv_prog_gnu_ld
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12751 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12752 if test "${lt_cv_path_NM+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 if test -n "$NM"; then
12756 # Let the user override the test.
12757 lt_cv_path_NM="$NM"
12758 else
12759 lt_nm_to_check="${ac_tool_prefix}nm"
12760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12761 lt_nm_to_check="$lt_nm_to_check nm"
12763 for lt_tmp_nm in $lt_nm_to_check; do
12764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12766 IFS="$lt_save_ifs"
12767 test -z "$ac_dir" && ac_dir=.
12768 tmp_nm="$ac_dir/$lt_tmp_nm"
12769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12770 # Check to see if the nm accepts a BSD-compat flag.
12771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12772 # nm: unknown option "B" ignored
12773 # Tru64's nm complains that /dev/null is an invalid object file
12774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12775 */dev/null* | *'Invalid file or object type'*)
12776 lt_cv_path_NM="$tmp_nm -B"
12777 break
12780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12781 */dev/null*)
12782 lt_cv_path_NM="$tmp_nm -p"
12783 break
12786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12787 continue # so that we can try to find one that supports BSD flags
12789 esac
12791 esac
12793 done
12794 IFS="$lt_save_ifs"
12795 done
12796 : ${lt_cv_path_NM=no}
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12800 $as_echo "$lt_cv_path_NM" >&6; }
12801 if test "$lt_cv_path_NM" != "no"; then
12802 NM="$lt_cv_path_NM"
12803 else
12804 # Didn't find any BSD compatible name lister, look for dumpbin.
12805 if test -n "$DUMPBIN"; then :
12806 # Let the user override the test.
12807 else
12808 if test -n "$ac_tool_prefix"; then
12809 for ac_prog in dumpbin "link -dump"
12811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -n "$DUMPBIN"; then
12819 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12832 done
12833 done
12834 IFS=$as_save_IFS
12838 DUMPBIN=$ac_cv_prog_DUMPBIN
12839 if test -n "$DUMPBIN"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12841 $as_echo "$DUMPBIN" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12848 test -n "$DUMPBIN" && break
12849 done
12851 if test -z "$DUMPBIN"; then
12852 ac_ct_DUMPBIN=$DUMPBIN
12853 for ac_prog in dumpbin "link -dump"
12855 # Extract the first word of "$ac_prog", so it can be a program name with args.
12856 set dummy $ac_prog; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 if test -n "$ac_ct_DUMPBIN"; then
12863 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12864 else
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12876 done
12877 done
12878 IFS=$as_save_IFS
12882 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12883 if test -n "$ac_ct_DUMPBIN"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12885 $as_echo "$ac_ct_DUMPBIN" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12892 test -n "$ac_ct_DUMPBIN" && break
12893 done
12895 if test "x$ac_ct_DUMPBIN" = x; then
12896 DUMPBIN=":"
12897 else
12898 case $cross_compiling:$ac_tool_warned in
12899 yes:)
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12902 ac_tool_warned=yes ;;
12903 esac
12904 DUMPBIN=$ac_ct_DUMPBIN
12908 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12909 *COFF*)
12910 DUMPBIN="$DUMPBIN -symbols"
12913 DUMPBIN=:
12915 esac
12918 if test "$DUMPBIN" != ":"; then
12919 NM="$DUMPBIN"
12922 test -z "$NM" && NM=nm
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12930 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12931 if test "${lt_cv_nm_interface+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 lt_cv_nm_interface="BSD nm"
12935 echo "int some_variable = 0;" > conftest.$ac_ext
12936 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12937 (eval "$ac_compile" 2>conftest.err)
12938 cat conftest.err >&5
12939 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12940 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12941 cat conftest.err >&5
12942 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12943 cat conftest.out >&5
12944 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12945 lt_cv_nm_interface="MS dumpbin"
12947 rm -f conftest*
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12950 $as_echo "$lt_cv_nm_interface" >&6; }
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12953 $as_echo_n "checking whether ln -s works... " >&6; }
12954 LN_S=$as_ln_s
12955 if test "$LN_S" = "ln -s"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12957 $as_echo "yes" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12960 $as_echo "no, using $LN_S" >&6; }
12963 # find the maximum length of command line arguments
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12965 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12970 teststring="ABCD"
12972 case $build_os in
12973 msdosdjgpp*)
12974 # On DJGPP, this test can blow up pretty badly due to problems in libc
12975 # (any single argument exceeding 2000 bytes causes a buffer overrun
12976 # during glob expansion). Even if it were fixed, the result of this
12977 # check would be larger than it should be.
12978 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12981 gnu*)
12982 # Under GNU Hurd, this test is not required because there is
12983 # no limit to the length of command line arguments.
12984 # Libtool will interpret -1 as no limit whatsoever
12985 lt_cv_sys_max_cmd_len=-1;
12988 cygwin* | mingw* | cegcc*)
12989 # On Win9x/ME, this test blows up -- it succeeds, but takes
12990 # about 5 minutes as the teststring grows exponentially.
12991 # Worse, since 9x/ME are not pre-emptively multitasking,
12992 # you end up with a "frozen" computer, even though with patience
12993 # the test eventually succeeds (with a max line length of 256k).
12994 # Instead, let's just punt: use the minimum linelength reported by
12995 # all of the supported platforms: 8192 (on NT/2K/XP).
12996 lt_cv_sys_max_cmd_len=8192;
12999 mint*)
13000 # On MiNT this can take a long time and run out of memory.
13001 lt_cv_sys_max_cmd_len=8192;
13004 amigaos*)
13005 # On AmigaOS with pdksh, this test takes hours, literally.
13006 # So we just punt and use a minimum line length of 8192.
13007 lt_cv_sys_max_cmd_len=8192;
13010 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13011 # This has been around since 386BSD, at least. Likely further.
13012 if test -x /sbin/sysctl; then
13013 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13014 elif test -x /usr/sbin/sysctl; then
13015 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13016 else
13017 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13019 # And add a safety zone
13020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13024 interix*)
13025 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13026 lt_cv_sys_max_cmd_len=196608
13029 osf*)
13030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13032 # nice to cause kernel panics so lets avoid the loop below.
13033 # First set a reasonable default.
13034 lt_cv_sys_max_cmd_len=16384
13036 if test -x /sbin/sysconfig; then
13037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13038 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13039 esac
13042 sco3.2v5*)
13043 lt_cv_sys_max_cmd_len=102400
13045 sysv5* | sco5v6* | sysv4.2uw2*)
13046 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13047 if test -n "$kargmax"; then
13048 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13049 else
13050 lt_cv_sys_max_cmd_len=32768
13054 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13055 if test -n "$lt_cv_sys_max_cmd_len"; then
13056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13058 else
13059 # Make teststring a little bigger before we do anything with it.
13060 # a 1K string should be a reasonable start.
13061 for i in 1 2 3 4 5 6 7 8 ; do
13062 teststring=$teststring$teststring
13063 done
13064 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13065 # If test is not a shell built-in, we'll probably end up computing a
13066 # maximum length that is only half of the actual maximum length, but
13067 # we can't tell.
13068 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13069 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13070 test $i != 17 # 1/2 MB should be enough
13072 i=`expr $i + 1`
13073 teststring=$teststring$teststring
13074 done
13075 # Only check the string length outside the loop.
13076 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13077 teststring=
13078 # Add a significant safety factor because C++ compilers can tack on
13079 # massive amounts of additional arguments before passing them to the
13080 # linker. It appears as though 1/2 is a usable value.
13081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13084 esac
13088 if test -n $lt_cv_sys_max_cmd_len ; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13090 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13093 $as_echo "none" >&6; }
13095 max_cmd_len=$lt_cv_sys_max_cmd_len
13102 : ${CP="cp -f"}
13103 : ${MV="mv -f"}
13104 : ${RM="rm -f"}
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13107 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13108 # Try some XSI features
13109 xsi_shell=no
13110 ( _lt_dummy="a/b/c"
13111 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13112 = c,a/b,, \
13113 && eval 'test $(( 1 + 1 )) -eq 2 \
13114 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13115 && xsi_shell=yes
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13117 $as_echo "$xsi_shell" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13121 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13122 lt_shell_append=no
13123 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13124 >/dev/null 2>&1 \
13125 && lt_shell_append=yes
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13127 $as_echo "$lt_shell_append" >&6; }
13130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13131 lt_unset=unset
13132 else
13133 lt_unset=false
13140 # test EBCDIC or ASCII
13141 case `echo X|tr X '\101'` in
13142 A) # ASCII based system
13143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13144 lt_SP2NL='tr \040 \012'
13145 lt_NL2SP='tr \015\012 \040\040'
13147 *) # EBCDIC based system
13148 lt_SP2NL='tr \100 \n'
13149 lt_NL2SP='tr \r\n \100\100'
13151 esac
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13162 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13163 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 lt_cv_ld_reload_flag='-r'
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13169 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13170 reload_flag=$lt_cv_ld_reload_flag
13171 case $reload_flag in
13172 "" | " "*) ;;
13173 *) reload_flag=" $reload_flag" ;;
13174 esac
13175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13176 case $host_os in
13177 darwin*)
13178 if test "$GCC" = yes; then
13179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13180 else
13181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13184 esac
13194 if test -n "$ac_tool_prefix"; then
13195 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13196 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$OBJDUMP"; then
13203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13218 IFS=$as_save_IFS
13222 OBJDUMP=$ac_cv_prog_OBJDUMP
13223 if test -n "$OBJDUMP"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13225 $as_echo "$OBJDUMP" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test -z "$ac_cv_prog_OBJDUMP"; then
13234 ac_ct_OBJDUMP=$OBJDUMP
13235 # Extract the first word of "objdump", so it can be a program name with args.
13236 set dummy objdump; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 if test -n "$ac_ct_OBJDUMP"; then
13243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13256 done
13257 done
13258 IFS=$as_save_IFS
13262 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13263 if test -n "$ac_ct_OBJDUMP"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13265 $as_echo "$ac_ct_OBJDUMP" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13271 if test "x$ac_ct_OBJDUMP" = x; then
13272 OBJDUMP="false"
13273 else
13274 case $cross_compiling:$ac_tool_warned in
13275 yes:)
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13278 ac_tool_warned=yes ;;
13279 esac
13280 OBJDUMP=$ac_ct_OBJDUMP
13282 else
13283 OBJDUMP="$ac_cv_prog_OBJDUMP"
13286 test -z "$OBJDUMP" && OBJDUMP=objdump
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13297 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13298 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 lt_cv_file_magic_cmd='$MAGIC_CMD'
13302 lt_cv_file_magic_test_file=
13303 lt_cv_deplibs_check_method='unknown'
13304 # Need to set the preceding variable on all platforms that support
13305 # interlibrary dependencies.
13306 # 'none' -- dependencies not supported.
13307 # `unknown' -- same as none, but documents that we really don't know.
13308 # 'pass_all' -- all dependencies passed with no checks.
13309 # 'test_compile' -- check by making test program.
13310 # 'file_magic [[regex]]' -- check by looking for files in library path
13311 # which responds to the $file_magic_cmd with a given extended regex.
13312 # If you have `file' or equivalent on your system and you're not sure
13313 # whether `pass_all' will *always* work, you probably want this one.
13315 case $host_os in
13316 aix[4-9]*)
13317 lt_cv_deplibs_check_method=pass_all
13320 beos*)
13321 lt_cv_deplibs_check_method=pass_all
13324 bsdi[45]*)
13325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13326 lt_cv_file_magic_cmd='/usr/bin/file -L'
13327 lt_cv_file_magic_test_file=/shlib/libc.so
13330 cygwin*)
13331 # func_win32_libid is a shell function defined in ltmain.sh
13332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13333 lt_cv_file_magic_cmd='func_win32_libid'
13336 mingw* | pw32*)
13337 # Base MSYS/MinGW do not provide the 'file' command needed by
13338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13339 # unless we find 'file', for example because we are cross-compiling.
13340 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13341 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13343 lt_cv_file_magic_cmd='func_win32_libid'
13344 else
13345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13346 lt_cv_file_magic_cmd='$OBJDUMP -f'
13350 cegcc*)
13351 # use the weaker test based on 'objdump'. See mingw*.
13352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13353 lt_cv_file_magic_cmd='$OBJDUMP -f'
13356 darwin* | rhapsody*)
13357 lt_cv_deplibs_check_method=pass_all
13360 freebsd* | dragonfly*)
13361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13362 case $host_cpu in
13363 i*86 )
13364 # Not sure whether the presence of OpenBSD here was a mistake.
13365 # Let's accept both of them until this is cleared up.
13366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13367 lt_cv_file_magic_cmd=/usr/bin/file
13368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13370 esac
13371 else
13372 lt_cv_deplibs_check_method=pass_all
13376 gnu*)
13377 lt_cv_deplibs_check_method=pass_all
13380 haiku*)
13381 lt_cv_deplibs_check_method=pass_all
13384 hpux10.20* | hpux11*)
13385 lt_cv_file_magic_cmd=/usr/bin/file
13386 case $host_cpu in
13387 ia64*)
13388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13391 hppa*64*)
13392 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]'
13393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13397 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13399 esac
13402 interix[3-9]*)
13403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13407 irix5* | irix6* | nonstopux*)
13408 case $LD in
13409 *-32|*"-32 ") libmagic=32-bit;;
13410 *-n32|*"-n32 ") libmagic=N32;;
13411 *-64|*"-64 ") libmagic=64-bit;;
13412 *) libmagic=never-match;;
13413 esac
13414 lt_cv_deplibs_check_method=pass_all
13417 # This must be Linux ELF.
13418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13419 lt_cv_deplibs_check_method=pass_all
13422 netbsd*)
13423 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13425 else
13426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13430 newos6*)
13431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13432 lt_cv_file_magic_cmd=/usr/bin/file
13433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13436 *nto* | *qnx*)
13437 lt_cv_deplibs_check_method=pass_all
13440 openbsd*)
13441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13443 else
13444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13448 osf3* | osf4* | osf5*)
13449 lt_cv_deplibs_check_method=pass_all
13452 rdos*)
13453 lt_cv_deplibs_check_method=pass_all
13456 solaris*)
13457 lt_cv_deplibs_check_method=pass_all
13460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13461 lt_cv_deplibs_check_method=pass_all
13464 sysv4 | sysv4.3*)
13465 case $host_vendor in
13466 motorola)
13467 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]'
13468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13470 ncr)
13471 lt_cv_deplibs_check_method=pass_all
13473 sequent)
13474 lt_cv_file_magic_cmd='/bin/file'
13475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13477 sni)
13478 lt_cv_file_magic_cmd='/bin/file'
13479 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13480 lt_cv_file_magic_test_file=/lib/libc.so
13482 siemens)
13483 lt_cv_deplibs_check_method=pass_all
13486 lt_cv_deplibs_check_method=pass_all
13488 esac
13491 tpf*)
13492 lt_cv_deplibs_check_method=pass_all
13494 esac
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13498 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13499 file_magic_cmd=$lt_cv_file_magic_cmd
13500 deplibs_check_method=$lt_cv_deplibs_check_method
13501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13514 if test -n "$ac_tool_prefix"; then
13515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13516 set dummy ${ac_tool_prefix}ar; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_AR+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$AR"; then
13523 ac_cv_prog_AR="$AR" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_AR="${ac_tool_prefix}ar"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13536 done
13537 done
13538 IFS=$as_save_IFS
13542 AR=$ac_cv_prog_AR
13543 if test -n "$AR"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13545 $as_echo "$AR" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13553 if test -z "$ac_cv_prog_AR"; then
13554 ac_ct_AR=$AR
13555 # Extract the first word of "ar", so it can be a program name with args.
13556 set dummy ar; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$ac_ct_AR"; then
13563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_ac_ct_AR="ar"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13576 done
13577 done
13578 IFS=$as_save_IFS
13582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13583 if test -n "$ac_ct_AR"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13585 $as_echo "$ac_ct_AR" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13591 if test "x$ac_ct_AR" = x; then
13592 AR="false"
13593 else
13594 case $cross_compiling:$ac_tool_warned in
13595 yes:)
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598 ac_tool_warned=yes ;;
13599 esac
13600 AR=$ac_ct_AR
13602 else
13603 AR="$ac_cv_prog_AR"
13606 test -z "$AR" && AR=ar
13607 test -z "$AR_FLAGS" && AR_FLAGS=cru
13619 if test -n "$ac_tool_prefix"; then
13620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13621 set dummy ${ac_tool_prefix}strip; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_STRIP+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$STRIP"; then
13628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13641 done
13642 done
13643 IFS=$as_save_IFS
13647 STRIP=$ac_cv_prog_STRIP
13648 if test -n "$STRIP"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13650 $as_echo "$STRIP" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13658 if test -z "$ac_cv_prog_STRIP"; then
13659 ac_ct_STRIP=$STRIP
13660 # Extract the first word of "strip", so it can be a program name with args.
13661 set dummy strip; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667 if test -n "$ac_ct_STRIP"; then
13668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13669 else
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13673 IFS=$as_save_IFS
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13677 ac_cv_prog_ac_ct_STRIP="strip"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 break 2
13681 done
13682 done
13683 IFS=$as_save_IFS
13687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13688 if test -n "$ac_ct_STRIP"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13690 $as_echo "$ac_ct_STRIP" >&6; }
13691 else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13696 if test "x$ac_ct_STRIP" = x; then
13697 STRIP=":"
13698 else
13699 case $cross_compiling:$ac_tool_warned in
13700 yes:)
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13703 ac_tool_warned=yes ;;
13704 esac
13705 STRIP=$ac_ct_STRIP
13707 else
13708 STRIP="$ac_cv_prog_STRIP"
13711 test -z "$STRIP" && STRIP=:
13718 if test -n "$ac_tool_prefix"; then
13719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 if test -n "$RANLIB"; then
13727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 break 2
13740 done
13741 done
13742 IFS=$as_save_IFS
13746 RANLIB=$ac_cv_prog_RANLIB
13747 if test -n "$RANLIB"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13749 $as_echo "$RANLIB" >&6; }
13750 else
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13757 if test -z "$ac_cv_prog_RANLIB"; then
13758 ac_ct_RANLIB=$RANLIB
13759 # Extract the first word of "ranlib", so it can be a program name with args.
13760 set dummy ranlib; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 if test -n "$ac_ct_RANLIB"; then
13767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_ac_ct_RANLIB="ranlib"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13780 done
13781 done
13782 IFS=$as_save_IFS
13786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13787 if test -n "$ac_ct_RANLIB"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13789 $as_echo "$ac_ct_RANLIB" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13795 if test "x$ac_ct_RANLIB" = x; then
13796 RANLIB=":"
13797 else
13798 case $cross_compiling:$ac_tool_warned in
13799 yes:)
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13802 ac_tool_warned=yes ;;
13803 esac
13804 RANLIB=$ac_ct_RANLIB
13806 else
13807 RANLIB="$ac_cv_prog_RANLIB"
13810 test -z "$RANLIB" && RANLIB=:
13817 # Determine commands to create old-style static archives.
13818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13819 old_postinstall_cmds='chmod 644 $oldlib'
13820 old_postuninstall_cmds=
13822 if test -n "$RANLIB"; then
13823 case $host_os in
13824 openbsd*)
13825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13830 esac
13831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13834 case $host_os in
13835 darwin*)
13836 lock_old_archive_extraction=yes ;;
13838 lock_old_archive_extraction=no ;;
13839 esac
13879 # If no C compiler was specified, use CC.
13880 LTCC=${LTCC-"$CC"}
13882 # If no C compiler flags were specified, use CFLAGS.
13883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13885 # Allow CC to be a program name with arguments.
13886 compiler=$CC
13889 # Check for command to grab the raw symbol name followed by C symbol from nm.
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13891 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13892 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13896 # These are sane defaults that work on at least a few old systems.
13897 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13899 # Character class describing NM global symbol codes.
13900 symcode='[BCDEGRST]'
13902 # Regexp to match symbols that can be accessed directly from C.
13903 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13905 # Define system-specific variables.
13906 case $host_os in
13907 aix*)
13908 symcode='[BCDT]'
13910 cygwin* | mingw* | pw32* | cegcc*)
13911 symcode='[ABCDGISTW]'
13913 hpux*)
13914 if test "$host_cpu" = ia64; then
13915 symcode='[ABCDEGRST]'
13918 irix* | nonstopux*)
13919 symcode='[BCDEGRST]'
13921 osf*)
13922 symcode='[BCDEGQRST]'
13924 solaris*)
13925 symcode='[BDRT]'
13927 sco3.2v5*)
13928 symcode='[DT]'
13930 sysv4.2uw2*)
13931 symcode='[DT]'
13933 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13934 symcode='[ABDT]'
13936 sysv4)
13937 symcode='[DFNSTU]'
13939 esac
13941 # If we're using GNU nm, then use its standard symbol codes.
13942 case `$NM -V 2>&1` in
13943 *GNU* | *'with BFD'*)
13944 symcode='[ABCDGIRSTW]' ;;
13945 esac
13947 # Transform an extracted symbol line into a proper C declaration.
13948 # Some systems (esp. on ia64) link data and code symbols differently,
13949 # so use this general approach.
13950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13952 # Transform an extracted symbol line into symbol name and symbol address
13953 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13954 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'"
13956 # Handle CRLF in mingw tool chain
13957 opt_cr=
13958 case $build_os in
13959 mingw*)
13960 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13962 esac
13964 # Try without a prefix underscore, then with it.
13965 for ac_symprfx in "" "_"; do
13967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13968 symxfrm="\\1 $ac_symprfx\\2 \\2"
13970 # Write the raw and C identifiers.
13971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13972 # Fake it for dumpbin and say T for any non-static function
13973 # and D for any global variable.
13974 # Also find C++ and __fastcall symbols from MSVC++,
13975 # which start with @ or ?.
13976 lt_cv_sys_global_symbol_pipe="$AWK '"\
13977 " {last_section=section; section=\$ 3};"\
13978 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13979 " \$ 0!~/External *\|/{next};"\
13980 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13981 " {if(hide[section]) next};"\
13982 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13983 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13984 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13985 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13986 " ' prfx=^$ac_symprfx"
13987 else
13988 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13991 # Check to see that the pipe works correctly.
13992 pipe_works=no
13994 rm -f conftest*
13995 cat > conftest.$ac_ext <<_LT_EOF
13996 #ifdef __cplusplus
13997 extern "C" {
13998 #endif
13999 char nm_test_var;
14000 void nm_test_func(void);
14001 void nm_test_func(void){}
14002 #ifdef __cplusplus
14004 #endif
14005 int main(){nm_test_var='a';nm_test_func();return(0);}
14006 _LT_EOF
14008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14009 (eval $ac_compile) 2>&5
14010 ac_status=$?
14011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14012 test $ac_status = 0; }; then
14013 # Now try to grab the symbols.
14014 nlist=conftest.nm
14015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14017 ac_status=$?
14018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14019 test $ac_status = 0; } && test -s "$nlist"; then
14020 # Try sorting and uniquifying the output.
14021 if sort "$nlist" | uniq > "$nlist"T; then
14022 mv -f "$nlist"T "$nlist"
14023 else
14024 rm -f "$nlist"T
14027 # Make sure that we snagged all the symbols we need.
14028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14030 cat <<_LT_EOF > conftest.$ac_ext
14031 #ifdef __cplusplus
14032 extern "C" {
14033 #endif
14035 _LT_EOF
14036 # Now generate the symbol file.
14037 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14039 cat <<_LT_EOF >> conftest.$ac_ext
14041 /* The mapping between symbol names and symbols. */
14042 const struct {
14043 const char *name;
14044 void *address;
14046 lt__PROGRAM__LTX_preloaded_symbols[] =
14048 { "@PROGRAM@", (void *) 0 },
14049 _LT_EOF
14050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14051 cat <<\_LT_EOF >> conftest.$ac_ext
14052 {0, (void *) 0}
14055 /* This works around a problem in FreeBSD linker */
14056 #ifdef FREEBSD_WORKAROUND
14057 static const void *lt_preloaded_setup() {
14058 return lt__PROGRAM__LTX_preloaded_symbols;
14060 #endif
14062 #ifdef __cplusplus
14064 #endif
14065 _LT_EOF
14066 # Now try linking the two files.
14067 mv conftest.$ac_objext conftstm.$ac_objext
14068 lt_save_LIBS="$LIBS"
14069 lt_save_CFLAGS="$CFLAGS"
14070 LIBS="conftstm.$ac_objext"
14071 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14073 (eval $ac_link) 2>&5
14074 ac_status=$?
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14077 pipe_works=yes
14079 LIBS="$lt_save_LIBS"
14080 CFLAGS="$lt_save_CFLAGS"
14081 else
14082 echo "cannot find nm_test_func in $nlist" >&5
14084 else
14085 echo "cannot find nm_test_var in $nlist" >&5
14087 else
14088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14090 else
14091 echo "$progname: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14094 rm -rf conftest* conftst*
14096 # Do not use the global_symbol_pipe unless it works.
14097 if test "$pipe_works" = yes; then
14098 break
14099 else
14100 lt_cv_sys_global_symbol_pipe=
14102 done
14106 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14107 lt_cv_sys_global_symbol_to_cdecl=
14109 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14111 $as_echo "failed" >&6; }
14112 else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14114 $as_echo "ok" >&6; }
14138 # Check whether --enable-libtool-lock was given.
14139 if test "${enable_libtool_lock+set}" = set; then :
14140 enableval=$enable_libtool_lock;
14143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14145 # Some flags need to be propagated to the compiler or linker for good
14146 # libtool support.
14147 case $host in
14148 ia64-*-hpux*)
14149 # Find out which ABI we are using.
14150 echo 'int i;' > conftest.$ac_ext
14151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14152 (eval $ac_compile) 2>&5
14153 ac_status=$?
14154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; }; then
14156 case `/usr/bin/file conftest.$ac_objext` in
14157 *ELF-32*)
14158 HPUX_IA64_MODE="32"
14160 *ELF-64*)
14161 HPUX_IA64_MODE="64"
14163 esac
14165 rm -rf conftest*
14167 *-*-irix6*)
14168 # Find out which ABI we are using.
14169 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14171 (eval $ac_compile) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; }; then
14175 if test "$lt_cv_prog_gnu_ld" = yes; then
14176 case `/usr/bin/file conftest.$ac_objext` in
14177 *32-bit*)
14178 LD="${LD-ld} -melf32bsmip"
14180 *N32*)
14181 LD="${LD-ld} -melf32bmipn32"
14183 *64-bit*)
14184 LD="${LD-ld} -melf64bmip"
14186 esac
14187 else
14188 case `/usr/bin/file conftest.$ac_objext` in
14189 *32-bit*)
14190 LD="${LD-ld} -32"
14192 *N32*)
14193 LD="${LD-ld} -n32"
14195 *64-bit*)
14196 LD="${LD-ld} -64"
14198 esac
14201 rm -rf conftest*
14204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14206 # Find out which ABI we are using.
14207 echo 'int i;' > conftest.$ac_ext
14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14210 ac_status=$?
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 case `/usr/bin/file conftest.o` in
14214 *32-bit*)
14215 case $host in
14216 x86_64-*kfreebsd*-gnu)
14217 LD="${LD-ld} -m elf_i386_fbsd"
14219 x86_64-*linux*)
14220 case `/usr/bin/file conftest.o` in
14221 *x86-64*)
14222 LD="${LD-ld} -m elf32_x86_64"
14225 LD="${LD-ld} -m elf_i386"
14227 esac
14229 powerpc64le-*linux*)
14230 LD="${LD-ld} -m elf32lppclinux"
14232 powerpc64-*linux*)
14233 LD="${LD-ld} -m elf32ppclinux"
14235 s390x-*linux*)
14236 LD="${LD-ld} -m elf_s390"
14238 sparc64-*linux*)
14239 LD="${LD-ld} -m elf32_sparc"
14241 esac
14243 *64-bit*)
14244 case $host in
14245 x86_64-*kfreebsd*-gnu)
14246 LD="${LD-ld} -m elf_x86_64_fbsd"
14248 x86_64-*linux*)
14249 LD="${LD-ld} -m elf_x86_64"
14251 powerpcle-*linux*)
14252 LD="${LD-ld} -m elf64lppc"
14254 powerpc-*linux*)
14255 LD="${LD-ld} -m elf64ppc"
14257 s390*-*linux*|s390*-*tpf*)
14258 LD="${LD-ld} -m elf64_s390"
14260 sparc*-*linux*)
14261 LD="${LD-ld} -m elf64_sparc"
14263 esac
14265 esac
14267 rm -rf conftest*
14270 *-*-sco3.2v5*)
14271 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14272 SAVE_CFLAGS="$CFLAGS"
14273 CFLAGS="$CFLAGS -belf"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14275 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14276 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 ac_ext=c
14280 ac_cpp='$CPP $CPPFLAGS'
14281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14289 main ()
14293 return 0;
14295 _ACEOF
14296 if ac_fn_c_try_link "$LINENO"; then :
14297 lt_cv_cc_needs_belf=yes
14298 else
14299 lt_cv_cc_needs_belf=no
14301 rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 ac_ext=c
14304 ac_cpp='$CPP $CPPFLAGS'
14305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14311 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14314 CFLAGS="$SAVE_CFLAGS"
14317 sparc*-*solaris*)
14318 # Find out which ABI we are using.
14319 echo 'int i;' > conftest.$ac_ext
14320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14321 (eval $ac_compile) 2>&5
14322 ac_status=$?
14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324 test $ac_status = 0; }; then
14325 case `/usr/bin/file conftest.o` in
14326 *64-bit*)
14327 case $lt_cv_prog_gnu_ld in
14328 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14330 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14331 LD="${LD-ld} -64"
14334 esac
14336 esac
14338 rm -rf conftest*
14340 esac
14342 need_locks="$enable_libtool_lock"
14345 case $host_os in
14346 rhapsody* | darwin*)
14347 if test -n "$ac_tool_prefix"; then
14348 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14349 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 if test -n "$DSYMUTIL"; then
14356 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14357 else
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14361 IFS=$as_save_IFS
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14365 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14367 break 2
14369 done
14370 done
14371 IFS=$as_save_IFS
14375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14376 if test -n "$DSYMUTIL"; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14378 $as_echo "$DSYMUTIL" >&6; }
14379 else
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14386 if test -z "$ac_cv_prog_DSYMUTIL"; then
14387 ac_ct_DSYMUTIL=$DSYMUTIL
14388 # Extract the first word of "dsymutil", so it can be a program name with args.
14389 set dummy dsymutil; ac_word=$2
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14391 $as_echo_n "checking for $ac_word... " >&6; }
14392 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 if test -n "$ac_ct_DSYMUTIL"; then
14396 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14397 else
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14401 IFS=$as_save_IFS
14402 test -z "$as_dir" && as_dir=.
14403 for ac_exec_ext in '' $ac_executable_extensions; do
14404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14405 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407 break 2
14409 done
14410 done
14411 IFS=$as_save_IFS
14415 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14416 if test -n "$ac_ct_DSYMUTIL"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14418 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14419 else
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14424 if test "x$ac_ct_DSYMUTIL" = x; then
14425 DSYMUTIL=":"
14426 else
14427 case $cross_compiling:$ac_tool_warned in
14428 yes:)
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14431 ac_tool_warned=yes ;;
14432 esac
14433 DSYMUTIL=$ac_ct_DSYMUTIL
14435 else
14436 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14439 if test -n "$ac_tool_prefix"; then
14440 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14441 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 if test -n "$NMEDIT"; then
14448 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14461 done
14462 done
14463 IFS=$as_save_IFS
14467 NMEDIT=$ac_cv_prog_NMEDIT
14468 if test -n "$NMEDIT"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14470 $as_echo "$NMEDIT" >&6; }
14471 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14478 if test -z "$ac_cv_prog_NMEDIT"; then
14479 ac_ct_NMEDIT=$NMEDIT
14480 # Extract the first word of "nmedit", so it can be a program name with args.
14481 set dummy nmedit; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483 $as_echo_n "checking for $ac_word... " >&6; }
14484 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 if test -n "$ac_ct_NMEDIT"; then
14488 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14489 else
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14501 done
14502 done
14503 IFS=$as_save_IFS
14507 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14508 if test -n "$ac_ct_NMEDIT"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14510 $as_echo "$ac_ct_NMEDIT" >&6; }
14511 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 $as_echo "no" >&6; }
14516 if test "x$ac_ct_NMEDIT" = x; then
14517 NMEDIT=":"
14518 else
14519 case $cross_compiling:$ac_tool_warned in
14520 yes:)
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14523 ac_tool_warned=yes ;;
14524 esac
14525 NMEDIT=$ac_ct_NMEDIT
14527 else
14528 NMEDIT="$ac_cv_prog_NMEDIT"
14531 if test -n "$ac_tool_prefix"; then
14532 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14533 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 $as_echo_n "checking for $ac_word... " >&6; }
14536 if test "${ac_cv_prog_LIPO+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 if test -n "$LIPO"; then
14540 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 break 2
14553 done
14554 done
14555 IFS=$as_save_IFS
14559 LIPO=$ac_cv_prog_LIPO
14560 if test -n "$LIPO"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14562 $as_echo "$LIPO" >&6; }
14563 else
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14570 if test -z "$ac_cv_prog_LIPO"; then
14571 ac_ct_LIPO=$LIPO
14572 # Extract the first word of "lipo", so it can be a program name with args.
14573 set dummy lipo; ac_word=$2
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14575 $as_echo_n "checking for $ac_word... " >&6; }
14576 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 if test -n "$ac_ct_LIPO"; then
14580 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14581 else
14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583 for as_dir in $PATH
14585 IFS=$as_save_IFS
14586 test -z "$as_dir" && as_dir=.
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14589 ac_cv_prog_ac_ct_LIPO="lipo"
14590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14591 break 2
14593 done
14594 done
14595 IFS=$as_save_IFS
14599 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14600 if test -n "$ac_ct_LIPO"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14602 $as_echo "$ac_ct_LIPO" >&6; }
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605 $as_echo "no" >&6; }
14608 if test "x$ac_ct_LIPO" = x; then
14609 LIPO=":"
14610 else
14611 case $cross_compiling:$ac_tool_warned in
14612 yes:)
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14615 ac_tool_warned=yes ;;
14616 esac
14617 LIPO=$ac_ct_LIPO
14619 else
14620 LIPO="$ac_cv_prog_LIPO"
14623 if test -n "$ac_tool_prefix"; then
14624 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14625 set dummy ${ac_tool_prefix}otool; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14627 $as_echo_n "checking for $ac_word... " >&6; }
14628 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 if test -n "$OTOOL"; then
14632 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14633 else
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14637 IFS=$as_save_IFS
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14641 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14643 break 2
14645 done
14646 done
14647 IFS=$as_save_IFS
14651 OTOOL=$ac_cv_prog_OTOOL
14652 if test -n "$OTOOL"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14654 $as_echo "$OTOOL" >&6; }
14655 else
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14662 if test -z "$ac_cv_prog_OTOOL"; then
14663 ac_ct_OTOOL=$OTOOL
14664 # Extract the first word of "otool", so it can be a program name with args.
14665 set dummy otool; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 if test -n "$ac_ct_OTOOL"; then
14672 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14677 IFS=$as_save_IFS
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14681 ac_cv_prog_ac_ct_OTOOL="otool"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683 break 2
14685 done
14686 done
14687 IFS=$as_save_IFS
14691 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14692 if test -n "$ac_ct_OTOOL"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14694 $as_echo "$ac_ct_OTOOL" >&6; }
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14700 if test "x$ac_ct_OTOOL" = x; then
14701 OTOOL=":"
14702 else
14703 case $cross_compiling:$ac_tool_warned in
14704 yes:)
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14707 ac_tool_warned=yes ;;
14708 esac
14709 OTOOL=$ac_ct_OTOOL
14711 else
14712 OTOOL="$ac_cv_prog_OTOOL"
14715 if test -n "$ac_tool_prefix"; then
14716 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14717 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719 $as_echo_n "checking for $ac_word... " >&6; }
14720 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 if test -n "$OTOOL64"; then
14724 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14733 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 break 2
14737 done
14738 done
14739 IFS=$as_save_IFS
14743 OTOOL64=$ac_cv_prog_OTOOL64
14744 if test -n "$OTOOL64"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14746 $as_echo "$OTOOL64" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14754 if test -z "$ac_cv_prog_OTOOL64"; then
14755 ac_ct_OTOOL64=$OTOOL64
14756 # Extract the first word of "otool64", so it can be a program name with args.
14757 set dummy otool64; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759 $as_echo_n "checking for $ac_word... " >&6; }
14760 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test -n "$ac_ct_OTOOL64"; then
14764 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14773 ac_cv_prog_ac_ct_OTOOL64="otool64"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 break 2
14777 done
14778 done
14779 IFS=$as_save_IFS
14783 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14784 if test -n "$ac_ct_OTOOL64"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14786 $as_echo "$ac_ct_OTOOL64" >&6; }
14787 else
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14792 if test "x$ac_ct_OTOOL64" = x; then
14793 OTOOL64=":"
14794 else
14795 case $cross_compiling:$ac_tool_warned in
14796 yes:)
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14799 ac_tool_warned=yes ;;
14800 esac
14801 OTOOL64=$ac_ct_OTOOL64
14803 else
14804 OTOOL64="$ac_cv_prog_OTOOL64"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14834 $as_echo_n "checking for -single_module linker flag... " >&6; }
14835 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 lt_cv_apple_cc_single_mod=no
14839 if test -z "${LT_MULTI_MODULE}"; then
14840 # By default we will add the -single_module flag. You can override
14841 # by either setting the environment variable LT_MULTI_MODULE
14842 # non-empty at configure time, or by adding -multi_module to the
14843 # link flags.
14844 rm -rf libconftest.dylib*
14845 echo "int foo(void){return 1;}" > conftest.c
14846 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14847 -dynamiclib -Wl,-single_module conftest.c" >&5
14848 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14849 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14850 _lt_result=$?
14851 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14852 lt_cv_apple_cc_single_mod=yes
14853 else
14854 cat conftest.err >&5
14856 rm -rf libconftest.dylib*
14857 rm -f conftest.*
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14861 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14863 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14864 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 lt_cv_ld_exported_symbols_list=no
14868 save_LDFLAGS=$LDFLAGS
14869 echo "_main" > conftest.sym
14870 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14875 main ()
14879 return 0;
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 lt_cv_ld_exported_symbols_list=yes
14884 else
14885 lt_cv_ld_exported_symbols_list=no
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LDFLAGS="$save_LDFLAGS"
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14893 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14895 $as_echo_n "checking for -force_load linker flag... " >&6; }
14896 if test "${lt_cv_ld_force_load+set}" = set; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 lt_cv_ld_force_load=no
14900 cat > conftest.c << _LT_EOF
14901 int forced_loaded() { return 2;}
14902 _LT_EOF
14903 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14904 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14905 echo "$AR cru libconftest.a conftest.o" >&5
14906 $AR cru libconftest.a conftest.o 2>&5
14907 cat > conftest.c << _LT_EOF
14908 int main() { return 0;}
14909 _LT_EOF
14910 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14911 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14912 _lt_result=$?
14913 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14914 lt_cv_ld_force_load=yes
14915 else
14916 cat conftest.err >&5
14918 rm -f conftest.err libconftest.a conftest conftest.c
14919 rm -rf conftest.dSYM
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14923 $as_echo "$lt_cv_ld_force_load" >&6; }
14924 case $host_os in
14925 rhapsody* | darwin1.[012])
14926 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14927 darwin1.*)
14928 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14929 darwin*) # darwin 5.x on
14930 # if running on 10.5 or later, the deployment target defaults
14931 # to the OS version, if on x86, and 10.4, the deployment
14932 # target defaults to 10.4. Don't you love it?
14933 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14934 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14935 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14936 10.[012][,.]*)
14937 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14938 10.*)
14939 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14940 esac
14942 esac
14943 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14944 _lt_dar_single_mod='$single_module'
14946 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14947 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14948 else
14949 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14951 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14952 _lt_dsymutil='~$DSYMUTIL $lib || :'
14953 else
14954 _lt_dsymutil=
14957 esac
14960 for ac_header in dlfcn.h
14961 do :
14962 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14963 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_DLFCN_H 1
14966 _ACEOF
14969 done
14975 # Set options
14979 enable_dlopen=no
14982 enable_win32_dll=no
14985 # Check whether --enable-shared was given.
14986 if test "${enable_shared+set}" = set; then :
14987 enableval=$enable_shared; p=${PACKAGE-default}
14988 case $enableval in
14989 yes) enable_shared=yes ;;
14990 no) enable_shared=no ;;
14992 enable_shared=no
14993 # Look at the argument we got. We use all the common list separators.
14994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14995 for pkg in $enableval; do
14996 IFS="$lt_save_ifs"
14997 if test "X$pkg" = "X$p"; then
14998 enable_shared=yes
15000 done
15001 IFS="$lt_save_ifs"
15003 esac
15004 else
15005 enable_shared=yes
15016 # Check whether --enable-static was given.
15017 if test "${enable_static+set}" = set; then :
15018 enableval=$enable_static; p=${PACKAGE-default}
15019 case $enableval in
15020 yes) enable_static=yes ;;
15021 no) enable_static=no ;;
15023 enable_static=no
15024 # Look at the argument we got. We use all the common list separators.
15025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15026 for pkg in $enableval; do
15027 IFS="$lt_save_ifs"
15028 if test "X$pkg" = "X$p"; then
15029 enable_static=yes
15031 done
15032 IFS="$lt_save_ifs"
15034 esac
15035 else
15036 enable_static=yes
15048 # Check whether --with-pic was given.
15049 if test "${with_pic+set}" = set; then :
15050 withval=$with_pic; pic_mode="$withval"
15051 else
15052 pic_mode=default
15056 test -z "$pic_mode" && pic_mode=default
15064 # Check whether --enable-fast-install was given.
15065 if test "${enable_fast_install+set}" = set; then :
15066 enableval=$enable_fast_install; p=${PACKAGE-default}
15067 case $enableval in
15068 yes) enable_fast_install=yes ;;
15069 no) enable_fast_install=no ;;
15071 enable_fast_install=no
15072 # Look at the argument we got. We use all the common list separators.
15073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15074 for pkg in $enableval; do
15075 IFS="$lt_save_ifs"
15076 if test "X$pkg" = "X$p"; then
15077 enable_fast_install=yes
15079 done
15080 IFS="$lt_save_ifs"
15082 esac
15083 else
15084 enable_fast_install=yes
15097 # This can be used to rebuild libtool when needed
15098 LIBTOOL_DEPS="$ltmain"
15100 # Always use our own libtool.
15101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15128 test -z "$LN_S" && LN_S="ln -s"
15143 if test -n "${ZSH_VERSION+set}" ; then
15144 setopt NO_GLOB_SUBST
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15148 $as_echo_n "checking for objdir... " >&6; }
15149 if test "${lt_cv_objdir+set}" = set; then :
15150 $as_echo_n "(cached) " >&6
15151 else
15152 rm -f .libs 2>/dev/null
15153 mkdir .libs 2>/dev/null
15154 if test -d .libs; then
15155 lt_cv_objdir=.libs
15156 else
15157 # MS-DOS does not allow filenames that begin with a dot.
15158 lt_cv_objdir=_libs
15160 rmdir .libs 2>/dev/null
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15163 $as_echo "$lt_cv_objdir" >&6; }
15164 objdir=$lt_cv_objdir
15170 cat >>confdefs.h <<_ACEOF
15171 #define LT_OBJDIR "$lt_cv_objdir/"
15172 _ACEOF
15177 case $host_os in
15178 aix3*)
15179 # AIX sometimes has problems with the GCC collect2 program. For some
15180 # reason, if we set the COLLECT_NAMES environment variable, the problems
15181 # vanish in a puff of smoke.
15182 if test "X${COLLECT_NAMES+set}" != Xset; then
15183 COLLECT_NAMES=
15184 export COLLECT_NAMES
15187 esac
15189 # Global variables:
15190 ofile=libtool
15191 can_build_shared=yes
15193 # All known linkers require a `.a' archive for static linking (except MSVC,
15194 # which needs '.lib').
15195 libext=a
15197 with_gnu_ld="$lt_cv_prog_gnu_ld"
15199 old_CC="$CC"
15200 old_CFLAGS="$CFLAGS"
15202 # Set sane defaults for various variables
15203 test -z "$CC" && CC=cc
15204 test -z "$LTCC" && LTCC=$CC
15205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15206 test -z "$LD" && LD=ld
15207 test -z "$ac_objext" && ac_objext=o
15209 for cc_temp in $compiler""; do
15210 case $cc_temp in
15211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15213 \-*) ;;
15214 *) break;;
15215 esac
15216 done
15217 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15220 # Only perform the check for file, if the check method requires it
15221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15222 case $deplibs_check_method in
15223 file_magic*)
15224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15226 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 case $MAGIC_CMD in
15231 [\\/*] | ?:[\\/]*)
15232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15235 lt_save_MAGIC_CMD="$MAGIC_CMD"
15236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15238 for ac_dir in $ac_dummy; do
15239 IFS="$lt_save_ifs"
15240 test -z "$ac_dir" && ac_dir=.
15241 if test -f $ac_dir/${ac_tool_prefix}file; then
15242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15243 if test -n "$file_magic_test_file"; then
15244 case $deplibs_check_method in
15245 "file_magic "*)
15246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15249 $EGREP "$file_magic_regex" > /dev/null; then
15251 else
15252 cat <<_LT_EOF 1>&2
15254 *** Warning: the command libtool uses to detect shared libraries,
15255 *** $file_magic_cmd, produces output that libtool cannot recognize.
15256 *** The result is that libtool may fail to recognize shared libraries
15257 *** as such. This will affect the creation of libtool libraries that
15258 *** depend on shared libraries, but programs linked with such libtool
15259 *** libraries will work regardless of this problem. Nevertheless, you
15260 *** may want to report the problem to your system manager and/or to
15261 *** bug-libtool@gnu.org
15263 _LT_EOF
15264 fi ;;
15265 esac
15267 break
15269 done
15270 IFS="$lt_save_ifs"
15271 MAGIC_CMD="$lt_save_MAGIC_CMD"
15273 esac
15276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15277 if test -n "$MAGIC_CMD"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15279 $as_echo "$MAGIC_CMD" >&6; }
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15289 if test -z "$lt_cv_path_MAGIC_CMD"; then
15290 if test -n "$ac_tool_prefix"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15292 $as_echo_n "checking for file... " >&6; }
15293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 case $MAGIC_CMD in
15297 [\\/*] | ?:[\\/]*)
15298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15301 lt_save_MAGIC_CMD="$MAGIC_CMD"
15302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15304 for ac_dir in $ac_dummy; do
15305 IFS="$lt_save_ifs"
15306 test -z "$ac_dir" && ac_dir=.
15307 if test -f $ac_dir/file; then
15308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15309 if test -n "$file_magic_test_file"; then
15310 case $deplibs_check_method in
15311 "file_magic "*)
15312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15315 $EGREP "$file_magic_regex" > /dev/null; then
15317 else
15318 cat <<_LT_EOF 1>&2
15320 *** Warning: the command libtool uses to detect shared libraries,
15321 *** $file_magic_cmd, produces output that libtool cannot recognize.
15322 *** The result is that libtool may fail to recognize shared libraries
15323 *** as such. This will affect the creation of libtool libraries that
15324 *** depend on shared libraries, but programs linked with such libtool
15325 *** libraries will work regardless of this problem. Nevertheless, you
15326 *** may want to report the problem to your system manager and/or to
15327 *** bug-libtool@gnu.org
15329 _LT_EOF
15330 fi ;;
15331 esac
15333 break
15335 done
15336 IFS="$lt_save_ifs"
15337 MAGIC_CMD="$lt_save_MAGIC_CMD"
15339 esac
15342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15343 if test -n "$MAGIC_CMD"; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15345 $as_echo "$MAGIC_CMD" >&6; }
15346 else
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348 $as_echo "no" >&6; }
15352 else
15353 MAGIC_CMD=:
15359 esac
15361 # Use C for the default configuration in the libtool script
15363 lt_save_CC="$CC"
15364 ac_ext=c
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15371 # Source file extension for C test sources.
15372 ac_ext=c
15374 # Object file extension for compiled C test sources.
15375 objext=o
15376 objext=$objext
15378 # Code to be used in simple compile tests
15379 lt_simple_compile_test_code="int some_variable = 0;"
15381 # Code to be used in simple link tests
15382 lt_simple_link_test_code='int main(){return(0);}'
15390 # If no C compiler was specified, use CC.
15391 LTCC=${LTCC-"$CC"}
15393 # If no C compiler flags were specified, use CFLAGS.
15394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15396 # Allow CC to be a program name with arguments.
15397 compiler=$CC
15399 # Save the default compiler, since it gets overwritten when the other
15400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15401 compiler_DEFAULT=$CC
15403 # save warnings/boilerplate of simple test code
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15407 _lt_compiler_boilerplate=`cat conftest.err`
15408 $RM conftest*
15410 ac_outfile=conftest.$ac_objext
15411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15413 _lt_linker_boilerplate=`cat conftest.err`
15414 $RM -r conftest*
15417 ## CAVEAT EMPTOR:
15418 ## There is no encapsulation within the following macros, do not change
15419 ## the running order or otherwise move them around unless you know exactly
15420 ## what you are doing...
15421 if test -n "$compiler"; then
15423 lt_prog_compiler_no_builtin_flag=
15425 if test "$GCC" = yes; then
15426 case $cc_basename in
15427 nvcc*)
15428 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15430 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15431 esac
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15434 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15435 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 lt_cv_prog_compiler_rtti_exceptions=no
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15441 lt_compiler_flag="-fno-rtti -fno-exceptions"
15442 # Insert the option either (1) after the last *FLAGS variable, or
15443 # (2) before a word containing "conftest.", or (3) at the end.
15444 # Note that $ac_compile itself does not contain backslashes and begins
15445 # with a dollar sign (not a hyphen), so the echo should work correctly.
15446 # The option is referenced via a variable to avoid confusing sed.
15447 lt_compile=`echo "$ac_compile" | $SED \
15448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450 -e 's:$: $lt_compiler_flag:'`
15451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15452 (eval "$lt_compile" 2>conftest.err)
15453 ac_status=$?
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 if (exit $ac_status) && test -s "$ac_outfile"; then
15457 # The compiler can only warn and ignore the option if not recognized
15458 # So say no if there are warnings other than the usual output.
15459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_rtti_exceptions=yes
15465 $RM conftest*
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15469 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15471 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15472 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15473 else
15484 lt_prog_compiler_wl=
15485 lt_prog_compiler_pic=
15486 lt_prog_compiler_static=
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15489 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15491 if test "$GCC" = yes; then
15492 lt_prog_compiler_wl='-Wl,'
15493 lt_prog_compiler_static='-static'
15495 case $host_os in
15496 aix*)
15497 # All AIX code is PIC.
15498 if test "$host_cpu" = ia64; then
15499 # AIX 5 now supports IA64 processor
15500 lt_prog_compiler_static='-Bstatic'
15502 lt_prog_compiler_pic='-fPIC'
15505 amigaos*)
15506 case $host_cpu in
15507 powerpc)
15508 # see comment about AmigaOS4 .so support
15509 lt_prog_compiler_pic='-fPIC'
15511 m68k)
15512 # FIXME: we need at least 68020 code to build shared libraries, but
15513 # adding the `-m68020' flag to GCC prevents building anything better,
15514 # like `-m68040'.
15515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15517 esac
15520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15521 # PIC is the default for these OSes.
15524 mingw* | cygwin* | pw32* | os2* | cegcc*)
15525 # This hack is so that the source file can tell whether it is being
15526 # built for inclusion in a dll (and should export symbols for example).
15527 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15528 # (--disable-auto-import) libraries
15529 lt_prog_compiler_pic='-DDLL_EXPORT'
15532 darwin* | rhapsody*)
15533 # PIC is the default on this platform
15534 # Common symbols not allowed in MH_DYLIB files
15535 lt_prog_compiler_pic='-fno-common'
15538 haiku*)
15539 # PIC is the default for Haiku.
15540 # The "-static" flag exists, but is broken.
15541 lt_prog_compiler_static=
15544 hpux*)
15545 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15546 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15547 # sets the default TLS model and affects inlining.
15548 case $host_cpu in
15549 hppa*64*)
15550 # +Z the default
15553 lt_prog_compiler_pic='-fPIC'
15555 esac
15558 interix[3-9]*)
15559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15560 # Instead, we relocate shared libraries at runtime.
15563 msdosdjgpp*)
15564 # Just because we use GCC doesn't mean we suddenly get shared libraries
15565 # on systems that don't support them.
15566 lt_prog_compiler_can_build_shared=no
15567 enable_shared=no
15570 *nto* | *qnx*)
15571 # QNX uses GNU C++, but need to define -shared option too, otherwise
15572 # it will coredump.
15573 lt_prog_compiler_pic='-fPIC -shared'
15576 sysv4*MP*)
15577 if test -d /usr/nec; then
15578 lt_prog_compiler_pic=-Kconform_pic
15583 lt_prog_compiler_pic='-fPIC'
15585 esac
15587 case $cc_basename in
15588 nvcc*) # Cuda Compiler Driver 2.2
15589 lt_prog_compiler_wl='-Xlinker '
15590 lt_prog_compiler_pic='-Xcompiler -fPIC'
15592 esac
15593 else
15594 # PORTME Check for flag to pass linker flags through the system compiler.
15595 case $host_os in
15596 aix*)
15597 lt_prog_compiler_wl='-Wl,'
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static='-Bstatic'
15601 else
15602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15606 mingw* | cygwin* | pw32* | os2* | cegcc*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic='-DDLL_EXPORT'
15612 hpux9* | hpux10* | hpux11*)
15613 lt_prog_compiler_wl='-Wl,'
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15616 case $host_cpu in
15617 hppa*64*|ia64*)
15618 # +Z the default
15621 lt_prog_compiler_pic='+Z'
15623 esac
15624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15625 lt_prog_compiler_static='${wl}-a ${wl}archive'
15628 irix5* | irix6* | nonstopux*)
15629 lt_prog_compiler_wl='-Wl,'
15630 # PIC (with -KPIC) is the default.
15631 lt_prog_compiler_static='-non_shared'
15634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15635 case $cc_basename in
15636 # old Intel for x86_64 which still supported -KPIC.
15637 ecc*)
15638 lt_prog_compiler_wl='-Wl,'
15639 lt_prog_compiler_pic='-KPIC'
15640 lt_prog_compiler_static='-static'
15642 # icc used to be incompatible with GCC.
15643 # ICC 10 doesn't accept -KPIC any more.
15644 icc* | ifort*)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-fPIC'
15647 lt_prog_compiler_static='-static'
15649 # Lahey Fortran 8.1.
15650 lf95*)
15651 lt_prog_compiler_wl='-Wl,'
15652 lt_prog_compiler_pic='--shared'
15653 lt_prog_compiler_static='--static'
15655 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15656 # Portland Group compilers (*not* the Pentium gcc compiler,
15657 # which looks to be a dead project)
15658 lt_prog_compiler_wl='-Wl,'
15659 lt_prog_compiler_pic='-fpic'
15660 lt_prog_compiler_static='-Bstatic'
15662 ccc*)
15663 lt_prog_compiler_wl='-Wl,'
15664 # All Alpha code is PIC.
15665 lt_prog_compiler_static='-non_shared'
15667 xl* | bgxl* | bgf* | mpixl*)
15668 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15669 lt_prog_compiler_wl='-Wl,'
15670 lt_prog_compiler_pic='-qpic'
15671 lt_prog_compiler_static='-qstaticlink'
15674 case `$CC -V 2>&1 | sed 5q` in
15675 *Sun\ F* | *Sun*Fortran*)
15676 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 lt_prog_compiler_wl=''
15681 *Sun\ C*)
15682 # Sun C 5.9
15683 lt_prog_compiler_pic='-KPIC'
15684 lt_prog_compiler_static='-Bstatic'
15685 lt_prog_compiler_wl='-Wl,'
15687 esac
15689 esac
15692 newsos6)
15693 lt_prog_compiler_pic='-KPIC'
15694 lt_prog_compiler_static='-Bstatic'
15697 *nto* | *qnx*)
15698 # QNX uses GNU C++, but need to define -shared option too, otherwise
15699 # it will coredump.
15700 lt_prog_compiler_pic='-fPIC -shared'
15703 osf3* | osf4* | osf5*)
15704 lt_prog_compiler_wl='-Wl,'
15705 # All OSF/1 code is PIC.
15706 lt_prog_compiler_static='-non_shared'
15709 rdos*)
15710 lt_prog_compiler_static='-non_shared'
15713 solaris*)
15714 lt_prog_compiler_pic='-KPIC'
15715 lt_prog_compiler_static='-Bstatic'
15716 case $cc_basename in
15717 f77* | f90* | f95*)
15718 lt_prog_compiler_wl='-Qoption ld ';;
15720 lt_prog_compiler_wl='-Wl,';;
15721 esac
15724 sunos4*)
15725 lt_prog_compiler_wl='-Qoption ld '
15726 lt_prog_compiler_pic='-PIC'
15727 lt_prog_compiler_static='-Bstatic'
15730 sysv4 | sysv4.2uw2* | sysv4.3*)
15731 lt_prog_compiler_wl='-Wl,'
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15736 sysv4*MP*)
15737 if test -d /usr/nec ;then
15738 lt_prog_compiler_pic='-Kconform_pic'
15739 lt_prog_compiler_static='-Bstatic'
15743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_pic='-KPIC'
15746 lt_prog_compiler_static='-Bstatic'
15749 unicos*)
15750 lt_prog_compiler_wl='-Wl,'
15751 lt_prog_compiler_can_build_shared=no
15754 uts4*)
15755 lt_prog_compiler_pic='-pic'
15756 lt_prog_compiler_static='-Bstatic'
15760 lt_prog_compiler_can_build_shared=no
15762 esac
15765 case $host_os in
15766 # For platforms which do not support PIC, -DPIC is meaningless:
15767 *djgpp*)
15768 lt_prog_compiler_pic=
15771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15773 esac
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15775 $as_echo "$lt_prog_compiler_pic" >&6; }
15783 # Check to make sure the PIC flag actually works.
15785 if test -n "$lt_prog_compiler_pic"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15787 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15788 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 lt_cv_prog_compiler_pic_works=no
15792 ac_outfile=conftest.$ac_objext
15793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15795 # Insert the option either (1) after the last *FLAGS variable, or
15796 # (2) before a word containing "conftest.", or (3) at the end.
15797 # Note that $ac_compile itself does not contain backslashes and begins
15798 # with a dollar sign (not a hyphen), so the echo should work correctly.
15799 # The option is referenced via a variable to avoid confusing sed.
15800 lt_compile=`echo "$ac_compile" | $SED \
15801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15803 -e 's:$: $lt_compiler_flag:'`
15804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15805 (eval "$lt_compile" 2>conftest.err)
15806 ac_status=$?
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 if (exit $ac_status) && test -s "$ac_outfile"; then
15810 # The compiler can only warn and ignore the option if not recognized
15811 # So say no if there are warnings other than the usual output.
15812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15815 lt_cv_prog_compiler_pic_works=yes
15818 $RM conftest*
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15822 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15824 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15825 case $lt_prog_compiler_pic in
15826 "" | " "*) ;;
15827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15828 esac
15829 else
15830 lt_prog_compiler_pic=
15831 lt_prog_compiler_can_build_shared=no
15842 # Check to make sure the static flag actually works.
15844 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15846 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15847 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 lt_cv_prog_compiler_static_works=no
15851 save_LDFLAGS="$LDFLAGS"
15852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15853 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15855 # The linker can only warn and ignore the option if not recognized
15856 # So say no if there are warnings
15857 if test -s conftest.err; then
15858 # Append any errors to the config.log.
15859 cat conftest.err 1>&5
15860 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15862 if diff conftest.exp conftest.er2 >/dev/null; then
15863 lt_cv_prog_compiler_static_works=yes
15865 else
15866 lt_cv_prog_compiler_static_works=yes
15869 $RM -r conftest*
15870 LDFLAGS="$save_LDFLAGS"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15874 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15876 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15878 else
15879 lt_prog_compiler_static=
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 lt_cv_prog_compiler_c_o=no
15894 $RM -r conftest 2>/dev/null
15895 mkdir conftest
15896 cd conftest
15897 mkdir out
15898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15900 lt_compiler_flag="-o out/conftest2.$ac_objext"
15901 # Insert the option either (1) after the last *FLAGS variable, or
15902 # (2) before a word containing "conftest.", or (3) at the end.
15903 # Note that $ac_compile itself does not contain backslashes and begins
15904 # with a dollar sign (not a hyphen), so the echo should work correctly.
15905 lt_compile=`echo "$ac_compile" | $SED \
15906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15908 -e 's:$: $lt_compiler_flag:'`
15909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15910 (eval "$lt_compile" 2>out/conftest.err)
15911 ac_status=$?
15912 cat out/conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15915 then
15916 # The compiler can only warn and ignore the option if not recognized
15917 # So say no if there are warnings
15918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15921 lt_cv_prog_compiler_c_o=yes
15924 chmod u+w . 2>&5
15925 $RM conftest*
15926 # SGI C++ compiler will create directory out/ii_files/ for
15927 # template instantiation
15928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15929 $RM out/* && rmdir out
15930 cd ..
15931 $RM -r conftest
15932 $RM conftest*
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 lt_cv_prog_compiler_c_o=no
15949 $RM -r conftest 2>/dev/null
15950 mkdir conftest
15951 cd conftest
15952 mkdir out
15953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="-o out/conftest2.$ac_objext"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 lt_compile=`echo "$ac_compile" | $SED \
15961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15963 -e 's:$: $lt_compiler_flag:'`
15964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15965 (eval "$lt_compile" 2>out/conftest.err)
15966 ac_status=$?
15967 cat out/conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15970 then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings
15973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15976 lt_cv_prog_compiler_c_o=yes
15979 chmod u+w . 2>&5
15980 $RM conftest*
15981 # SGI C++ compiler will create directory out/ii_files/ for
15982 # template instantiation
15983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15984 $RM out/* && rmdir out
15985 cd ..
15986 $RM -r conftest
15987 $RM conftest*
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15996 hard_links="nottested"
15997 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15998 # do not overwrite the value of need_locks provided by the user
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16000 $as_echo_n "checking if we can lock with hard links... " >&6; }
16001 hard_links=yes
16002 $RM conftest*
16003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16004 touch conftest.a
16005 ln conftest.a conftest.b 2>&5 || hard_links=no
16006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16008 $as_echo "$hard_links" >&6; }
16009 if test "$hard_links" = no; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16012 need_locks=warn
16014 else
16015 need_locks=no
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16024 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16026 runpath_var=
16027 allow_undefined_flag=
16028 always_export_symbols=no
16029 archive_cmds=
16030 archive_expsym_cmds=
16031 compiler_needs_object=no
16032 enable_shared_with_static_runtimes=no
16033 export_dynamic_flag_spec=
16034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16035 hardcode_automatic=no
16036 hardcode_direct=no
16037 hardcode_direct_absolute=no
16038 hardcode_libdir_flag_spec=
16039 hardcode_libdir_flag_spec_ld=
16040 hardcode_libdir_separator=
16041 hardcode_minus_L=no
16042 hardcode_shlibpath_var=unsupported
16043 inherit_rpath=no
16044 link_all_deplibs=unknown
16045 module_cmds=
16046 module_expsym_cmds=
16047 old_archive_from_new_cmds=
16048 old_archive_from_expsyms_cmds=
16049 thread_safe_flag_spec=
16050 whole_archive_flag_spec=
16051 # include_expsyms should be a list of space-separated symbols to be *always*
16052 # included in the symbol list
16053 include_expsyms=
16054 # exclude_expsyms can be an extended regexp of symbols to exclude
16055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16057 # as well as any symbol that contains `d'.
16058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16060 # platforms (ab)use it in PIC code, but their linkers get confused if
16061 # the symbol is explicitly referenced. Since portable code cannot
16062 # rely on this symbol name, it's probably fine to never include it in
16063 # preloaded symbol tables.
16064 # Exclude shared library initialization/finalization symbols.
16065 extract_expsyms_cmds=
16067 case $host_os in
16068 cygwin* | mingw* | pw32* | cegcc*)
16069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16070 # When not using gcc, we currently assume that we are using
16071 # Microsoft Visual C++.
16072 if test "$GCC" != yes; then
16073 with_gnu_ld=no
16076 interix*)
16077 # we just hope/assume this is gcc and not c89 (= MSVC++)
16078 with_gnu_ld=yes
16080 openbsd*)
16081 with_gnu_ld=no
16083 esac
16085 ld_shlibs=yes
16087 # On some targets, GNU ld is compatible enough with the native linker
16088 # that we're better off using the native interface for both.
16089 lt_use_gnu_ld_interface=no
16090 if test "$with_gnu_ld" = yes; then
16091 case $host_os in
16092 aix*)
16093 # The AIX port of GNU ld has always aspired to compatibility
16094 # with the native linker. However, as the warning in the GNU ld
16095 # block says, versions before 2.19.5* couldn't really create working
16096 # shared libraries, regardless of the interface used.
16097 case `$LD -v 2>&1` in
16098 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16099 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16100 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16102 lt_use_gnu_ld_interface=yes
16104 esac
16107 lt_use_gnu_ld_interface=yes
16109 esac
16112 if test "$lt_use_gnu_ld_interface" = yes; then
16113 # If archive_cmds runs LD, not CC, wlarc should be empty
16114 wlarc='${wl}'
16116 # Set some defaults for GNU ld with shared library support. These
16117 # are reset later if shared libraries are not supported. Putting them
16118 # here allows them to be overridden if necessary.
16119 runpath_var=LD_RUN_PATH
16120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16121 export_dynamic_flag_spec='${wl}--export-dynamic'
16122 # ancient GNU ld didn't support --whole-archive et. al.
16123 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16124 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16125 else
16126 whole_archive_flag_spec=
16128 supports_anon_versioning=no
16129 case `$LD -v 2>&1` in
16130 *GNU\ gold*) supports_anon_versioning=yes ;;
16131 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16132 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16133 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16134 *\ 2.11.*) ;; # other 2.11 versions
16135 *) supports_anon_versioning=yes ;;
16136 esac
16138 # See if GNU ld supports shared libraries.
16139 case $host_os in
16140 aix[3-9]*)
16141 # On AIX/PPC, the GNU linker is very broken
16142 if test "$host_cpu" != ia64; then
16143 ld_shlibs=no
16144 cat <<_LT_EOF 1>&2
16146 *** Warning: the GNU linker, at least up to release 2.19, is reported
16147 *** to be unable to reliably create shared libraries on AIX.
16148 *** Therefore, libtool is disabling shared libraries support. If you
16149 *** really care for shared libraries, you may want to install binutils
16150 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16151 *** You will then need to restart the configuration process.
16153 _LT_EOF
16157 amigaos*)
16158 case $host_cpu in
16159 powerpc)
16160 # see comment about AmigaOS4 .so support
16161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 archive_expsym_cmds=''
16164 m68k)
16165 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)'
16166 hardcode_libdir_flag_spec='-L$libdir'
16167 hardcode_minus_L=yes
16169 esac
16172 beos*)
16173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16174 allow_undefined_flag=unsupported
16175 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16176 # support --undefined. This deserves some investigation. FIXME
16177 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16178 else
16179 ld_shlibs=no
16183 cygwin* | mingw* | pw32* | cegcc*)
16184 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16185 # as there is no search path for DLLs.
16186 hardcode_libdir_flag_spec='-L$libdir'
16187 export_dynamic_flag_spec='${wl}--export-all-symbols'
16188 allow_undefined_flag=unsupported
16189 always_export_symbols=no
16190 enable_shared_with_static_runtimes=yes
16191 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16195 # If the export-symbols file already is a .def file (1st line
16196 # is EXPORTS), use it as is; otherwise, prepend...
16197 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16198 cp $export_symbols $output_objdir/$soname.def;
16199 else
16200 echo EXPORTS > $output_objdir/$soname.def;
16201 cat $export_symbols >> $output_objdir/$soname.def;
16203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16204 else
16205 ld_shlibs=no
16209 haiku*)
16210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 link_all_deplibs=yes
16214 interix[3-9]*)
16215 hardcode_direct=no
16216 hardcode_shlibpath_var=no
16217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16218 export_dynamic_flag_spec='${wl}-E'
16219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16220 # Instead, shared libraries are loaded at an image base (0x10000000 by
16221 # default) and relocated if they conflict, which is a slow very memory
16222 # consuming and fragmenting process. To avoid this, we pick a random,
16223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16226 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'
16229 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16230 tmp_diet=no
16231 if test "$host_os" = linux-dietlibc; then
16232 case $cc_basename in
16233 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16234 esac
16236 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16237 && test "$tmp_diet" = no
16238 then
16239 tmp_addflag=' $pic_flag'
16240 tmp_sharedflag='-shared'
16241 case $cc_basename,$host_cpu in
16242 pgcc*) # Portland Group C compiler
16243 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'
16244 tmp_addflag=' $pic_flag'
16246 pgf77* | pgf90* | pgf95* | pgfortran*)
16247 # Portland Group f77 and f90 compilers
16248 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'
16249 tmp_addflag=' $pic_flag -Mnomain' ;;
16250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16251 tmp_addflag=' -i_dynamic' ;;
16252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16253 tmp_addflag=' -i_dynamic -nofor_main' ;;
16254 ifc* | ifort*) # Intel Fortran compiler
16255 tmp_addflag=' -nofor_main' ;;
16256 lf95*) # Lahey Fortran 8.1
16257 whole_archive_flag_spec=
16258 tmp_sharedflag='--shared' ;;
16259 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16260 tmp_sharedflag='-qmkshrobj'
16261 tmp_addflag= ;;
16262 nvcc*) # Cuda Compiler Driver 2.2
16263 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'
16264 compiler_needs_object=yes
16266 esac
16267 case `$CC -V 2>&1 | sed 5q` in
16268 *Sun\ C*) # Sun C 5.9
16269 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'
16270 compiler_needs_object=yes
16271 tmp_sharedflag='-G' ;;
16272 *Sun\ F*) # Sun Fortran 8.3
16273 tmp_sharedflag='-G' ;;
16274 esac
16275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277 if test "x$supports_anon_versioning" = xyes; then
16278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16280 echo "local: *; };" >> $output_objdir/$libname.ver~
16281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16284 case $cc_basename in
16285 xlf* | bgf* | bgxlf* | mpixlf*)
16286 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16287 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16288 hardcode_libdir_flag_spec=
16289 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16290 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16291 if test "x$supports_anon_versioning" = xyes; then
16292 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16298 esac
16299 else
16300 ld_shlibs=no
16304 netbsd*)
16305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16306 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16307 wlarc=
16308 else
16309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16314 solaris*)
16315 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16316 ld_shlibs=no
16317 cat <<_LT_EOF 1>&2
16319 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16320 *** create shared libraries on Solaris systems. Therefore, libtool
16321 *** is disabling shared libraries support. We urge you to upgrade GNU
16322 *** binutils to release 2.9.1 or newer. Another option is to modify
16323 *** your PATH or compiler configuration so that the native linker is
16324 *** used, and then restart.
16326 _LT_EOF
16327 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16330 else
16331 ld_shlibs=no
16335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16336 case `$LD -v 2>&1` in
16337 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16338 ld_shlibs=no
16339 cat <<_LT_EOF 1>&2
16341 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16342 *** reliably create shared libraries on SCO systems. Therefore, libtool
16343 *** is disabling shared libraries support. We urge you to upgrade GNU
16344 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16345 *** your PATH or compiler configuration so that the native linker is
16346 *** used, and then restart.
16348 _LT_EOF
16351 # For security reasons, it is highly recommended that you always
16352 # use absolute paths for naming shared libraries, and exclude the
16353 # DT_RUNPATH tag from executables and libraries. But doing so
16354 # requires that you compile everything twice, which is a pain.
16355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 else
16360 ld_shlibs=no
16363 esac
16366 sunos4*)
16367 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16368 wlarc=
16369 hardcode_direct=yes
16370 hardcode_shlibpath_var=no
16374 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 else
16378 ld_shlibs=no
16381 esac
16383 if test "$ld_shlibs" = no; then
16384 runpath_var=
16385 hardcode_libdir_flag_spec=
16386 export_dynamic_flag_spec=
16387 whole_archive_flag_spec=
16389 else
16390 # PORTME fill in a description of your system's linker (not GNU ld)
16391 case $host_os in
16392 aix3*)
16393 allow_undefined_flag=unsupported
16394 always_export_symbols=yes
16395 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'
16396 # Note: this linker hardcodes the directories in LIBPATH if there
16397 # are no directories specified by -L.
16398 hardcode_minus_L=yes
16399 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16400 # Neither direct hardcoding nor static linking is supported with a
16401 # broken collect2.
16402 hardcode_direct=unsupported
16406 aix[4-9]*)
16407 if test "$host_cpu" = ia64; then
16408 # On IA64, the linker does run time linking by default, so we don't
16409 # have to do anything special.
16410 aix_use_runtimelinking=no
16411 exp_sym_flag='-Bexport'
16412 no_entry_flag=""
16413 else
16414 # If we're using GNU nm, then we don't want the "-C" option.
16415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16416 # Also, AIX nm treats weak defined symbols like other global
16417 # defined symbols, whereas GNU nm marks them as "W".
16418 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16419 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'
16420 else
16421 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16423 aix_use_runtimelinking=no
16425 # Test if we are trying to use run time linking or normal
16426 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16427 # need to do runtime linking.
16428 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16429 for ld_flag in $LDFLAGS; do
16430 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16431 aix_use_runtimelinking=yes
16432 break
16434 done
16436 esac
16438 exp_sym_flag='-bexport'
16439 no_entry_flag='-bnoentry'
16442 # When large executables or shared objects are built, AIX ld can
16443 # have problems creating the table of contents. If linking a library
16444 # or program results in "error TOC overflow" add -mminimal-toc to
16445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16448 archive_cmds=''
16449 hardcode_direct=yes
16450 hardcode_direct_absolute=yes
16451 hardcode_libdir_separator=':'
16452 link_all_deplibs=yes
16453 file_list_spec='${wl}-f,'
16455 if test "$GCC" = yes; then
16456 case $host_os in aix4.[012]|aix4.[012].*)
16457 # We only want to do this on AIX 4.2 and lower, the check
16458 # below for broken collect2 doesn't work under 4.3+
16459 collect2name=`${CC} -print-prog-name=collect2`
16460 if test -f "$collect2name" &&
16461 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16462 then
16463 # We have reworked collect2
16465 else
16466 # We have old collect2
16467 hardcode_direct=unsupported
16468 # It fails to find uninstalled libraries when the uninstalled
16469 # path is not listed in the libpath. Setting hardcode_minus_L
16470 # to unsupported forces relinking
16471 hardcode_minus_L=yes
16472 hardcode_libdir_flag_spec='-L$libdir'
16473 hardcode_libdir_separator=
16476 esac
16477 shared_flag='-shared'
16478 if test "$aix_use_runtimelinking" = yes; then
16479 shared_flag="$shared_flag "'${wl}-G'
16481 else
16482 # not using gcc
16483 if test "$host_cpu" = ia64; then
16484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16485 # chokes on -Wl,-G. The following line is correct:
16486 shared_flag='-G'
16487 else
16488 if test "$aix_use_runtimelinking" = yes; then
16489 shared_flag='${wl}-G'
16490 else
16491 shared_flag='${wl}-bM:SRE'
16496 export_dynamic_flag_spec='${wl}-bexpall'
16497 # It seems that -bexpall does not export symbols beginning with
16498 # underscore (_), so it is better to generate a list of symbols to export.
16499 always_export_symbols=yes
16500 if test "$aix_use_runtimelinking" = yes; then
16501 # Warning - without using the other runtime loading flags (-brtl),
16502 # -berok will link without error, but may produce a broken library.
16503 allow_undefined_flag='-berok'
16504 # Determine the default libpath from the value encoded in an
16505 # empty executable.
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16510 main ()
16514 return 0;
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16519 lt_aix_libpath_sed='
16520 /Import File Strings/,/^$/ {
16521 /^0/ {
16522 s/^0 *\(.*\)$/\1/
16526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16527 # Check for a 64-bit object if we didn't find anything.
16528 if test -z "$aix_libpath"; then
16529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16532 rm -f core conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
16534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16537 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"
16538 else
16539 if test "$host_cpu" = ia64; then
16540 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16541 allow_undefined_flag="-z nodefs"
16542 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"
16543 else
16544 # Determine the default libpath from the value encoded in an
16545 # empty executable.
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16550 main ()
16554 return 0;
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16559 lt_aix_libpath_sed='
16560 /Import File Strings/,/^$/ {
16561 /^0/ {
16562 s/^0 *\(.*\)$/\1/
16566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16567 # Check for a 64-bit object if we didn't find anything.
16568 if test -z "$aix_libpath"; then
16569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16577 # Warning - without using the other run time loading flags,
16578 # -berok will link without error, but may produce a broken library.
16579 no_undefined_flag=' ${wl}-bernotok'
16580 allow_undefined_flag=' ${wl}-berok'
16581 if test "$with_gnu_ld" = yes; then
16582 # We only use this code for GNU lds that support --whole-archive.
16583 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16584 else
16585 # Exported symbols can be pulled into shared objects from archives
16586 whole_archive_flag_spec='$convenience'
16588 archive_cmds_need_lc=yes
16589 # This is similar to how AIX traditionally builds its shared libraries.
16590 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'
16595 amigaos*)
16596 case $host_cpu in
16597 powerpc)
16598 # see comment about AmigaOS4 .so support
16599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16600 archive_expsym_cmds=''
16602 m68k)
16603 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)'
16604 hardcode_libdir_flag_spec='-L$libdir'
16605 hardcode_minus_L=yes
16607 esac
16610 bsdi[45]*)
16611 export_dynamic_flag_spec=-rdynamic
16614 cygwin* | mingw* | pw32* | cegcc*)
16615 # When not using gcc, we currently assume that we are using
16616 # Microsoft Visual C++.
16617 # hardcode_libdir_flag_spec is actually meaningless, as there is
16618 # no search path for DLLs.
16619 hardcode_libdir_flag_spec=' '
16620 allow_undefined_flag=unsupported
16621 # Tell ltmain to make .lib files, not .a files.
16622 libext=lib
16623 # Tell ltmain to make .dll files, not .so files.
16624 shrext_cmds=".dll"
16625 # FIXME: Setting linknames here is a bad hack.
16626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16627 # The linker will automatically build a .lib file if we build a DLL.
16628 old_archive_from_new_cmds='true'
16629 # FIXME: Should let the user specify the lib program.
16630 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16631 fix_srcfile_path='`cygpath -w "$srcfile"`'
16632 enable_shared_with_static_runtimes=yes
16635 darwin* | rhapsody*)
16638 archive_cmds_need_lc=no
16639 hardcode_direct=no
16640 hardcode_automatic=yes
16641 hardcode_shlibpath_var=unsupported
16642 if test "$lt_cv_ld_force_load" = "yes"; then
16643 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\"`'
16644 else
16645 whole_archive_flag_spec=''
16647 link_all_deplibs=yes
16648 allow_undefined_flag="$_lt_dar_allow_undefined"
16649 case $cc_basename in
16650 ifort*) _lt_dar_can_shared=yes ;;
16651 *) _lt_dar_can_shared=$GCC ;;
16652 esac
16653 if test "$_lt_dar_can_shared" = "yes"; then
16654 output_verbose_link_cmd=func_echo_all
16655 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16656 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16657 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}"
16658 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}"
16660 else
16661 ld_shlibs=no
16666 dgux*)
16667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_libdir_flag_spec='-L$libdir'
16669 hardcode_shlibpath_var=no
16672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16673 # support. Future versions do this automatically, but an explicit c++rt0.o
16674 # does not break anything, and helps significantly (at the cost of a little
16675 # extra space).
16676 freebsd2.2*)
16677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16678 hardcode_libdir_flag_spec='-R$libdir'
16679 hardcode_direct=yes
16680 hardcode_shlibpath_var=no
16683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16684 freebsd2.*)
16685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_direct=yes
16687 hardcode_minus_L=yes
16688 hardcode_shlibpath_var=no
16691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16692 freebsd* | dragonfly*)
16693 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16694 hardcode_libdir_flag_spec='-R$libdir'
16695 hardcode_direct=yes
16696 hardcode_shlibpath_var=no
16699 hpux9*)
16700 if test "$GCC" = yes; then
16701 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'
16702 else
16703 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'
16705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16706 hardcode_libdir_separator=:
16707 hardcode_direct=yes
16709 # hardcode_minus_L: Not really in the search PATH,
16710 # but as the default location of the library.
16711 hardcode_minus_L=yes
16712 export_dynamic_flag_spec='${wl}-E'
16715 hpux10*)
16716 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16718 else
16719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16721 if test "$with_gnu_ld" = no; then
16722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16723 hardcode_libdir_flag_spec_ld='+b $libdir'
16724 hardcode_libdir_separator=:
16725 hardcode_direct=yes
16726 hardcode_direct_absolute=yes
16727 export_dynamic_flag_spec='${wl}-E'
16728 # hardcode_minus_L: Not really in the search PATH,
16729 # but as the default location of the library.
16730 hardcode_minus_L=yes
16734 hpux11*)
16735 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16736 case $host_cpu in
16737 hppa*64*)
16738 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 ia64*)
16741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16746 esac
16747 else
16748 case $host_cpu in
16749 hppa*64*)
16750 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 ia64*)
16753 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16757 # Older versions of the 11.00 compiler do not understand -b yet
16758 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16760 $as_echo_n "checking if $CC understands -b... " >&6; }
16761 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 lt_cv_prog_compiler__b=no
16765 save_LDFLAGS="$LDFLAGS"
16766 LDFLAGS="$LDFLAGS -b"
16767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16769 # The linker can only warn and ignore the option if not recognized
16770 # So say no if there are warnings
16771 if test -s conftest.err; then
16772 # Append any errors to the config.log.
16773 cat conftest.err 1>&5
16774 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16776 if diff conftest.exp conftest.er2 >/dev/null; then
16777 lt_cv_prog_compiler__b=yes
16779 else
16780 lt_cv_prog_compiler__b=yes
16783 $RM -r conftest*
16784 LDFLAGS="$save_LDFLAGS"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16788 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16790 if test x"$lt_cv_prog_compiler__b" = xyes; then
16791 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16792 else
16793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16797 esac
16799 if test "$with_gnu_ld" = no; then
16800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16801 hardcode_libdir_separator=:
16803 case $host_cpu in
16804 hppa*64*|ia64*)
16805 hardcode_direct=no
16806 hardcode_shlibpath_var=no
16809 hardcode_direct=yes
16810 hardcode_direct_absolute=yes
16811 export_dynamic_flag_spec='${wl}-E'
16813 # hardcode_minus_L: Not really in the search PATH,
16814 # but as the default location of the library.
16815 hardcode_minus_L=yes
16817 esac
16821 irix5* | irix6* | nonstopux*)
16822 if test "$GCC" = yes; then
16823 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'
16824 # Try to use the -exported_symbol ld option, if it does not
16825 # work, assume that -exports_file does not work either and
16826 # implicitly export all symbols.
16827 save_LDFLAGS="$LDFLAGS"
16828 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 int foo(void) {}
16832 _ACEOF
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 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'
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LDFLAGS="$save_LDFLAGS"
16840 else
16841 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'
16842 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'
16844 archive_cmds_need_lc='no'
16845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16846 hardcode_libdir_separator=:
16847 inherit_rpath=yes
16848 link_all_deplibs=yes
16851 netbsd*)
16852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16854 else
16855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16857 hardcode_libdir_flag_spec='-R$libdir'
16858 hardcode_direct=yes
16859 hardcode_shlibpath_var=no
16862 newsos6)
16863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16864 hardcode_direct=yes
16865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16866 hardcode_libdir_separator=:
16867 hardcode_shlibpath_var=no
16870 *nto* | *qnx*)
16873 openbsd*)
16874 if test -f /usr/libexec/ld.so; then
16875 hardcode_direct=yes
16876 hardcode_shlibpath_var=no
16877 hardcode_direct_absolute=yes
16878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16882 export_dynamic_flag_spec='${wl}-E'
16883 else
16884 case $host_os in
16885 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_libdir_flag_spec='-R$libdir'
16890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16893 esac
16895 else
16896 ld_shlibs=no
16900 os2*)
16901 hardcode_libdir_flag_spec='-L$libdir'
16902 hardcode_minus_L=yes
16903 allow_undefined_flag=unsupported
16904 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'
16905 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16908 osf3*)
16909 if test "$GCC" = yes; then
16910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16911 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'
16912 else
16913 allow_undefined_flag=' -expect_unresolved \*'
16914 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'
16916 archive_cmds_need_lc='no'
16917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16918 hardcode_libdir_separator=:
16921 osf4* | osf5*) # as osf3* with the addition of -msym flag
16922 if test "$GCC" = yes; then
16923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16924 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'
16925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16926 else
16927 allow_undefined_flag=' -expect_unresolved \*'
16928 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'
16929 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~
16930 $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'
16932 # Both c and cxx compiler support -rpath directly
16933 hardcode_libdir_flag_spec='-rpath $libdir'
16935 archive_cmds_need_lc='no'
16936 hardcode_libdir_separator=:
16939 solaris*)
16940 no_undefined_flag=' -z defs'
16941 if test "$GCC" = yes; then
16942 wlarc='${wl}'
16943 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16946 else
16947 case `$CC -V 2>&1` in
16948 *"Compilers 5.0"*)
16949 wlarc=''
16950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16955 wlarc='${wl}'
16956 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16958 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16960 esac
16962 hardcode_libdir_flag_spec='-R$libdir'
16963 hardcode_shlibpath_var=no
16964 case $host_os in
16965 solaris2.[0-5] | solaris2.[0-5].*) ;;
16967 # The compiler driver will combine and reorder linker options,
16968 # but understands `-z linker_flag'. GCC discards it without `$wl',
16969 # but is careful enough not to reorder.
16970 # Supported since Solaris 2.6 (maybe 2.5.1?)
16971 if test "$GCC" = yes; then
16972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16973 else
16974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16977 esac
16978 link_all_deplibs=yes
16981 sunos4*)
16982 if test "x$host_vendor" = xsequent; then
16983 # Use $CC to link under sequent, because it throws in some extra .o
16984 # files that make .init and .fini sections work.
16985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16986 else
16987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_libdir_flag_spec='-L$libdir'
16990 hardcode_direct=yes
16991 hardcode_minus_L=yes
16992 hardcode_shlibpath_var=no
16995 sysv4)
16996 case $host_vendor in
16997 sni)
16998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_direct=yes # is this really true???
17001 siemens)
17002 ## LD is ld it makes a PLAMLIB
17003 ## CC just makes a GrossModule.
17004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17005 reload_cmds='$CC -r -o $output$reload_objs'
17006 hardcode_direct=no
17008 motorola)
17009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17012 esac
17013 runpath_var='LD_RUN_PATH'
17014 hardcode_shlibpath_var=no
17017 sysv4.3*)
17018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019 hardcode_shlibpath_var=no
17020 export_dynamic_flag_spec='-Bexport'
17023 sysv4*MP*)
17024 if test -d /usr/nec; then
17025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_shlibpath_var=no
17027 runpath_var=LD_RUN_PATH
17028 hardcode_runpath_var=yes
17029 ld_shlibs=yes
17033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17034 no_undefined_flag='${wl}-z,text'
17035 archive_cmds_need_lc=no
17036 hardcode_shlibpath_var=no
17037 runpath_var='LD_RUN_PATH'
17039 if test "$GCC" = yes; then
17040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 else
17043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048 sysv5* | sco3.2v5* | sco5v6*)
17049 # Note: We can NOT use -z defs as we might desire, because we do not
17050 # link with -lc, and that would cause any symbols used from libc to
17051 # always be unresolved, which means just about no library would
17052 # ever link correctly. If we're not using GNU ld we use -z text
17053 # though, which does catch some bad symbols but isn't as heavy-handed
17054 # as -z defs.
17055 no_undefined_flag='${wl}-z,text'
17056 allow_undefined_flag='${wl}-z,nodefs'
17057 archive_cmds_need_lc=no
17058 hardcode_shlibpath_var=no
17059 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17060 hardcode_libdir_separator=':'
17061 link_all_deplibs=yes
17062 export_dynamic_flag_spec='${wl}-Bexport'
17063 runpath_var='LD_RUN_PATH'
17065 if test "$GCC" = yes; then
17066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17068 else
17069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 uts4*)
17075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076 hardcode_libdir_flag_spec='-L$libdir'
17077 hardcode_shlibpath_var=no
17081 ld_shlibs=no
17083 esac
17085 if test x$host_vendor = xsni; then
17086 case $host in
17087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17088 export_dynamic_flag_spec='${wl}-Blargedynsym'
17090 esac
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17095 $as_echo "$ld_shlibs" >&6; }
17096 test "$ld_shlibs" = no && can_build_shared=no
17098 with_gnu_ld=$with_gnu_ld
17115 # Do we need to explicitly link libc?
17117 case "x$archive_cmds_need_lc" in
17118 x|xyes)
17119 # Assume -lc should be added
17120 archive_cmds_need_lc=yes
17122 if test "$enable_shared" = yes && test "$GCC" = yes; then
17123 case $archive_cmds in
17124 *'~'*)
17125 # FIXME: we may have to deal with multi-command sequences.
17127 '$CC '*)
17128 # Test whether the compiler implicitly links with -lc since on some
17129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17130 # to ld, don't add -lc before -lgcc.
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17132 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17133 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17135 else
17136 $RM conftest*
17137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17140 (eval $ac_compile) 2>&5
17141 ac_status=$?
17142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17143 test $ac_status = 0; } 2>conftest.err; then
17144 soname=conftest
17145 lib=conftest
17146 libobjs=conftest.$ac_objext
17147 deplibs=
17148 wl=$lt_prog_compiler_wl
17149 pic_flag=$lt_prog_compiler_pic
17150 compiler_flags=-v
17151 linker_flags=-v
17152 verstring=
17153 output_objdir=.
17154 libname=conftest
17155 lt_save_allow_undefined_flag=$allow_undefined_flag
17156 allow_undefined_flag=
17157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17158 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17159 ac_status=$?
17160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17161 test $ac_status = 0; }
17162 then
17163 lt_cv_archive_cmds_need_lc=no
17164 else
17165 lt_cv_archive_cmds_need_lc=yes
17167 allow_undefined_flag=$lt_save_allow_undefined_flag
17168 else
17169 cat conftest.err 1>&5
17171 $RM conftest*
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17175 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17176 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17178 esac
17181 esac
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17340 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17342 if test "$GCC" = yes; then
17343 case $host_os in
17344 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17345 *) lt_awk_arg="/^libraries:/" ;;
17346 esac
17347 case $host_os in
17348 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17349 *) lt_sed_strip_eq="s,=/,/,g" ;;
17350 esac
17351 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17352 case $lt_search_path_spec in
17353 *\;*)
17354 # if the path contains ";" then we assume it to be the separator
17355 # otherwise default to the standard path separator (i.e. ":") - it is
17356 # assumed that no part of a normal pathname contains ";" but that should
17357 # okay in the real world where ";" in dirpaths is itself problematic.
17358 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17363 esac
17364 # Ok, now we have the path, separated by spaces, we can step through it
17365 # and add multilib dir if necessary.
17366 lt_tmp_lt_search_path_spec=
17367 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17368 for lt_sys_path in $lt_search_path_spec; do
17369 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17371 else
17372 test -d "$lt_sys_path" && \
17373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17375 done
17376 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17377 BEGIN {RS=" "; FS="/|\n";} {
17378 lt_foo="";
17379 lt_count=0;
17380 for (lt_i = NF; lt_i > 0; lt_i--) {
17381 if ($lt_i != "" && $lt_i != ".") {
17382 if ($lt_i == "..") {
17383 lt_count++;
17384 } else {
17385 if (lt_count == 0) {
17386 lt_foo="/" $lt_i lt_foo;
17387 } else {
17388 lt_count--;
17393 if (lt_foo != "") { lt_freq[lt_foo]++; }
17394 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17396 # AWK program above erroneously prepends '/' to C:/dos/paths
17397 # for these hosts.
17398 case $host_os in
17399 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17400 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17401 esac
17402 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17403 else
17404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17406 library_names_spec=
17407 libname_spec='lib$name'
17408 soname_spec=
17409 shrext_cmds=".so"
17410 postinstall_cmds=
17411 postuninstall_cmds=
17412 finish_cmds=
17413 finish_eval=
17414 shlibpath_var=
17415 shlibpath_overrides_runpath=unknown
17416 version_type=none
17417 dynamic_linker="$host_os ld.so"
17418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17419 need_lib_prefix=unknown
17420 hardcode_into_libs=no
17422 # when you set need_version to no, make sure it does not cause -set_version
17423 # flags to be left without arguments
17424 need_version=unknown
17426 case $host_os in
17427 aix3*)
17428 version_type=linux
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17430 shlibpath_var=LIBPATH
17432 # AIX 3 has no versioning support, so we append a major version to the name.
17433 soname_spec='${libname}${release}${shared_ext}$major'
17436 aix[4-9]*)
17437 version_type=linux
17438 need_lib_prefix=no
17439 need_version=no
17440 hardcode_into_libs=yes
17441 if test "$host_cpu" = ia64; then
17442 # AIX 5 supports IA64
17443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 else
17446 # With GCC up to 2.95.x, collect2 would create an import file
17447 # for dependence libraries. The import file would start with
17448 # the line `#! .'. This would cause the generated library to
17449 # depend on `.', always an invalid library. This was fixed in
17450 # development snapshots of GCC prior to 3.0.
17451 case $host_os in
17452 aix4 | aix4.[01] | aix4.[01].*)
17453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17454 echo ' yes '
17455 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17457 else
17458 can_build_shared=no
17461 esac
17462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17463 # soname into executable. Probably we can add versioning support to
17464 # collect2, so additional links can be useful in future.
17465 if test "$aix_use_runtimelinking" = yes; then
17466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17467 # instead of lib<name>.a to let people know that these are not
17468 # typical AIX shared libraries.
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470 else
17471 # We preserve .a as extension for shared libraries through AIX4.2
17472 # and later when we are not doing run time linking.
17473 library_names_spec='${libname}${release}.a $libname.a'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LIBPATH
17480 amigaos*)
17481 case $host_cpu in
17482 powerpc)
17483 # Since July 2007 AmigaOS4 officially supports .so libraries.
17484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 m68k)
17488 library_names_spec='$libname.ixlibrary $libname.a'
17489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17490 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'
17492 esac
17495 beos*)
17496 library_names_spec='${libname}${shared_ext}'
17497 dynamic_linker="$host_os ld.so"
17498 shlibpath_var=LIBRARY_PATH
17501 bsdi[45]*)
17502 version_type=linux
17503 need_version=no
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17510 # the default ld.so.conf also contains /usr/contrib/lib and
17511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17512 # libtool to hard-code these into programs
17515 cygwin* | mingw* | pw32* | cegcc*)
17516 version_type=windows
17517 shrext_cmds=".dll"
17518 need_version=no
17519 need_lib_prefix=no
17521 case $GCC,$host_os in
17522 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17523 library_names_spec='$libname.dll.a'
17524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17525 postinstall_cmds='base_file=`basename \${file}`~
17526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17527 dldir=$destdir/`dirname \$dlpath`~
17528 test -d \$dldir || mkdir -p \$dldir~
17529 $install_prog $dir/$dlname \$dldir/$dlname~
17530 chmod a+x \$dldir/$dlname~
17531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17535 dlpath=$dir/\$dldll~
17536 $RM \$dlpath'
17537 shlibpath_overrides_runpath=yes
17539 case $host_os in
17540 cygwin*)
17541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17544 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17546 mingw* | cegcc*)
17547 # MinGW DLLs use traditional 'lib' prefix
17548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17550 pw32*)
17551 # pw32 DLLs use 'pw' prefix rather than 'lib'
17552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17554 esac
17558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17560 esac
17561 dynamic_linker='Win32 ld.exe'
17562 # FIXME: first we should search . and the directory the executable is in
17563 shlibpath_var=PATH
17566 darwin* | rhapsody*)
17567 dynamic_linker="$host_os dyld"
17568 version_type=darwin
17569 need_lib_prefix=no
17570 need_version=no
17571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17572 soname_spec='${libname}${release}${major}$shared_ext'
17573 shlibpath_overrides_runpath=yes
17574 shlibpath_var=DYLD_LIBRARY_PATH
17575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17581 dgux*)
17582 version_type=linux
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17590 freebsd* | dragonfly*)
17591 # DragonFly does not have aout. When/if they implement a new
17592 # versioning mechanism, adjust this.
17593 if test -x /usr/bin/objformat; then
17594 objformat=`/usr/bin/objformat`
17595 else
17596 case $host_os in
17597 freebsd[23].*) objformat=aout ;;
17598 *) objformat=elf ;;
17599 esac
17601 version_type=freebsd-$objformat
17602 case $version_type in
17603 freebsd-elf*)
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17605 need_version=no
17606 need_lib_prefix=no
17608 freebsd-*)
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17610 need_version=yes
17612 esac
17613 shlibpath_var=LD_LIBRARY_PATH
17614 case $host_os in
17615 freebsd2.*)
17616 shlibpath_overrides_runpath=yes
17618 freebsd3.[01]* | freebsdelf3.[01]*)
17619 shlibpath_overrides_runpath=yes
17620 hardcode_into_libs=yes
17622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17624 shlibpath_overrides_runpath=no
17625 hardcode_into_libs=yes
17627 *) # from 4.6 on, and DragonFly
17628 shlibpath_overrides_runpath=yes
17629 hardcode_into_libs=yes
17631 esac
17634 gnu*)
17635 version_type=linux
17636 need_lib_prefix=no
17637 need_version=no
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 hardcode_into_libs=yes
17644 haiku*)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 dynamic_linker="$host_os runtime_loader"
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 shlibpath_var=LIBRARY_PATH
17652 shlibpath_overrides_runpath=yes
17653 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17654 hardcode_into_libs=yes
17657 hpux9* | hpux10* | hpux11*)
17658 # Give a soname corresponding to the major version so that dld.sl refuses to
17659 # link against other versions.
17660 version_type=sunos
17661 need_lib_prefix=no
17662 need_version=no
17663 case $host_cpu in
17664 ia64*)
17665 shrext_cmds='.so'
17666 hardcode_into_libs=yes
17667 dynamic_linker="$host_os dld.so"
17668 shlibpath_var=LD_LIBRARY_PATH
17669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 if test "X$HPUX_IA64_MODE" = X32; then
17673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17674 else
17675 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17679 hppa*64*)
17680 shrext_cmds='.sl'
17681 hardcode_into_libs=yes
17682 dynamic_linker="$host_os dld.sl"
17683 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17691 shrext_cmds='.sl'
17692 dynamic_linker="$host_os dld.sl"
17693 shlibpath_var=SHLIB_PATH
17694 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696 soname_spec='${libname}${release}${shared_ext}$major'
17698 esac
17699 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17700 postinstall_cmds='chmod 555 $lib'
17701 # or fails outright, so override atomically:
17702 install_override_mode=555
17705 interix[3-9]*)
17706 version_type=linux
17707 need_lib_prefix=no
17708 need_version=no
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=no
17714 hardcode_into_libs=yes
17717 irix5* | irix6* | nonstopux*)
17718 case $host_os in
17719 nonstopux*) version_type=nonstopux ;;
17721 if test "$lt_cv_prog_gnu_ld" = yes; then
17722 version_type=linux
17723 else
17724 version_type=irix
17725 fi ;;
17726 esac
17727 need_lib_prefix=no
17728 need_version=no
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17731 case $host_os in
17732 irix5* | nonstopux*)
17733 libsuff= shlibsuff=
17736 case $LD in # libtool.m4 will add one of these switches to LD
17737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17738 libsuff= shlibsuff= libmagic=32-bit;;
17739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17740 libsuff=32 shlibsuff=N32 libmagic=N32;;
17741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17743 *) libsuff= shlibsuff= libmagic=never-match;;
17744 esac
17746 esac
17747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17748 shlibpath_overrides_runpath=no
17749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17751 hardcode_into_libs=yes
17754 # No shared lib support for Linux oldld, aout, or coff.
17755 linux*oldld* | linux*aout* | linux*coff*)
17756 dynamic_linker=no
17759 # This must be Linux ELF.
17760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=no
17770 # Some binutils ld are patched to set DT_RUNPATH
17771 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17773 else
17774 lt_cv_shlibpath_overrides_runpath=no
17775 save_LDFLAGS=$LDFLAGS
17776 save_libdir=$libdir
17777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17783 main ()
17787 return 0;
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17792 lt_cv_shlibpath_overrides_runpath=yes
17795 rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 LDFLAGS=$save_LDFLAGS
17798 libdir=$save_libdir
17802 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs=yes
17809 # Append ld.so.conf contents to the search path
17810 if test -f /etc/ld.so.conf; then
17811 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' ' '`
17812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17815 # We used to test for /lib/ld.so.1 and disable shared libraries on
17816 # powerpc, because MkLinux only supported shared libraries with the
17817 # GNU dynamic linker. Since this was broken with cross compilers,
17818 # most powerpc-linux boxes support dynamic linking these days and
17819 # people can always --disable-shared, the test was removed, and we
17820 # assume the GNU/Linux dynamic linker is in use.
17821 dynamic_linker='GNU/Linux ld.so'
17824 netbsd*)
17825 version_type=sunos
17826 need_lib_prefix=no
17827 need_version=no
17828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17831 dynamic_linker='NetBSD (a.out) ld.so'
17832 else
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 dynamic_linker='NetBSD ld.elf_so'
17837 shlibpath_var=LD_LIBRARY_PATH
17838 shlibpath_overrides_runpath=yes
17839 hardcode_into_libs=yes
17842 newsos6)
17843 version_type=linux
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=yes
17849 *nto* | *qnx*)
17850 version_type=qnx
17851 need_lib_prefix=no
17852 need_version=no
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 shlibpath_overrides_runpath=no
17857 hardcode_into_libs=yes
17858 dynamic_linker='ldqnx.so'
17861 openbsd*)
17862 version_type=sunos
17863 sys_lib_dlsearch_path_spec="/usr/lib"
17864 need_lib_prefix=no
17865 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17866 case $host_os in
17867 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17868 *) need_version=no ;;
17869 esac
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17874 case $host_os in
17875 openbsd2.[89] | openbsd2.[89].*)
17876 shlibpath_overrides_runpath=no
17879 shlibpath_overrides_runpath=yes
17881 esac
17882 else
17883 shlibpath_overrides_runpath=yes
17887 os2*)
17888 libname_spec='$name'
17889 shrext_cmds=".dll"
17890 need_lib_prefix=no
17891 library_names_spec='$libname${shared_ext} $libname.a'
17892 dynamic_linker='OS/2 ld.exe'
17893 shlibpath_var=LIBPATH
17896 osf3* | osf4* | osf5*)
17897 version_type=osf
17898 need_lib_prefix=no
17899 need_version=no
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17904 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17907 rdos*)
17908 dynamic_linker=no
17911 solaris*)
17912 version_type=linux
17913 need_lib_prefix=no
17914 need_version=no
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 soname_spec='${libname}${release}${shared_ext}$major'
17917 shlibpath_var=LD_LIBRARY_PATH
17918 shlibpath_overrides_runpath=yes
17919 hardcode_into_libs=yes
17920 # ldd complains unless libraries are executable
17921 postinstall_cmds='chmod +x $lib'
17924 sunos4*)
17925 version_type=sunos
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17928 shlibpath_var=LD_LIBRARY_PATH
17929 shlibpath_overrides_runpath=yes
17930 if test "$with_gnu_ld" = yes; then
17931 need_lib_prefix=no
17933 need_version=yes
17936 sysv4 | sysv4.3*)
17937 version_type=linux
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 case $host_vendor in
17942 sni)
17943 shlibpath_overrides_runpath=no
17944 need_lib_prefix=no
17945 runpath_var=LD_RUN_PATH
17947 siemens)
17948 need_lib_prefix=no
17950 motorola)
17951 need_lib_prefix=no
17952 need_version=no
17953 shlibpath_overrides_runpath=no
17954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17956 esac
17959 sysv4*MP*)
17960 if test -d /usr/nec ;then
17961 version_type=linux
17962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17963 soname_spec='$libname${shared_ext}.$major'
17964 shlibpath_var=LD_LIBRARY_PATH
17968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17969 version_type=freebsd-elf
17970 need_lib_prefix=no
17971 need_version=no
17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17973 soname_spec='${libname}${release}${shared_ext}$major'
17974 shlibpath_var=LD_LIBRARY_PATH
17975 shlibpath_overrides_runpath=yes
17976 hardcode_into_libs=yes
17977 if test "$with_gnu_ld" = yes; then
17978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17979 else
17980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17981 case $host_os in
17982 sco3.2v5*)
17983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17985 esac
17987 sys_lib_dlsearch_path_spec='/usr/lib'
17990 tpf*)
17991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17992 version_type=linux
17993 need_lib_prefix=no
17994 need_version=no
17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 shlibpath_overrides_runpath=no
17998 hardcode_into_libs=yes
18001 uts4*)
18002 version_type=linux
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 shlibpath_var=LD_LIBRARY_PATH
18009 dynamic_linker=no
18011 esac
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18013 $as_echo "$dynamic_linker" >&6; }
18014 test "$dynamic_linker" = no && can_build_shared=no
18016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18017 if test "$GCC" = yes; then
18018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18022 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18024 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18025 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18121 hardcode_action=
18122 if test -n "$hardcode_libdir_flag_spec" ||
18123 test -n "$runpath_var" ||
18124 test "X$hardcode_automatic" = "Xyes" ; then
18126 # We can hardcode non-existent directories.
18127 if test "$hardcode_direct" != no &&
18128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18129 # have to relink, otherwise we might link with an installed library
18130 # when we should be linking with a yet-to-be-installed one
18131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18132 test "$hardcode_minus_L" != no; then
18133 # Linking always hardcodes the temporary library directory.
18134 hardcode_action=relink
18135 else
18136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18137 hardcode_action=immediate
18139 else
18140 # We cannot hardcode anything, or else we can only hardcode existing
18141 # directories.
18142 hardcode_action=unsupported
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18145 $as_echo "$hardcode_action" >&6; }
18147 if test "$hardcode_action" = relink ||
18148 test "$inherit_rpath" = yes; then
18149 # Fast installation is not supported
18150 enable_fast_install=no
18151 elif test "$shlibpath_overrides_runpath" = yes ||
18152 test "$enable_shared" = no; then
18153 # Fast installation is not necessary
18154 enable_fast_install=needless
18162 if test "x$enable_dlopen" != xyes; then
18163 enable_dlopen=unknown
18164 enable_dlopen_self=unknown
18165 enable_dlopen_self_static=unknown
18166 else
18167 lt_cv_dlopen=no
18168 lt_cv_dlopen_libs=
18170 case $host_os in
18171 beos*)
18172 lt_cv_dlopen="load_add_on"
18173 lt_cv_dlopen_libs=
18174 lt_cv_dlopen_self=yes
18177 mingw* | pw32* | cegcc*)
18178 lt_cv_dlopen="LoadLibrary"
18179 lt_cv_dlopen_libs=
18182 cygwin*)
18183 lt_cv_dlopen="dlopen"
18184 lt_cv_dlopen_libs=
18187 darwin*)
18188 # if libdl is installed we need to link against it
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18192 $as_echo_n "(cached) " >&6
18193 else
18194 ac_check_lib_save_LIBS=$LIBS
18195 LIBS="-ldl $LIBS"
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18199 /* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18202 #ifdef __cplusplus
18203 extern "C"
18204 #endif
18205 char dlopen ();
18207 main ()
18209 return dlopen ();
18211 return 0;
18213 _ACEOF
18214 if ac_fn_c_try_link "$LINENO"; then :
18215 ac_cv_lib_dl_dlopen=yes
18216 else
18217 ac_cv_lib_dl_dlopen=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18225 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18227 else
18229 lt_cv_dlopen="dyld"
18230 lt_cv_dlopen_libs=
18231 lt_cv_dlopen_self=yes
18238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18239 if test "x$ac_cv_func_shl_load" = x""yes; then :
18240 lt_cv_dlopen="shl_load"
18241 else
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18243 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18244 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-ldld $LIBS"
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 char shl_load ();
18260 main ()
18262 return shl_load ();
18264 return 0;
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"; then :
18268 ac_cv_lib_dld_shl_load=yes
18269 else
18270 ac_cv_lib_dld_shl_load=no
18272 rm -f core conftest.err conftest.$ac_objext \
18273 conftest$ac_exeext conftest.$ac_ext
18274 LIBS=$ac_check_lib_save_LIBS
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18277 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18278 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18279 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18280 else
18281 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18282 if test "x$ac_cv_func_dlopen" = x""yes; then :
18283 lt_cv_dlopen="dlopen"
18284 else
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18286 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18287 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18289 else
18290 ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-ldl $LIBS"
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18298 #ifdef __cplusplus
18299 extern "C"
18300 #endif
18301 char dlopen ();
18303 main ()
18305 return dlopen ();
18307 return 0;
18309 _ACEOF
18310 if ac_fn_c_try_link "$LINENO"; then :
18311 ac_cv_lib_dl_dlopen=yes
18312 else
18313 ac_cv_lib_dl_dlopen=no
18315 rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18321 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18322 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18323 else
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18325 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18326 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18327 $as_echo_n "(cached) " >&6
18328 else
18329 ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lsvld $LIBS"
18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 char dlopen ();
18342 main ()
18344 return dlopen ();
18346 return 0;
18348 _ACEOF
18349 if ac_fn_c_try_link "$LINENO"; then :
18350 ac_cv_lib_svld_dlopen=yes
18351 else
18352 ac_cv_lib_svld_dlopen=no
18354 rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18359 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18360 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18362 else
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18364 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18365 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18366 $as_echo_n "(cached) " >&6
18367 else
18368 ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-ldld $LIBS"
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char dld_link ();
18381 main ()
18383 return dld_link ();
18385 return 0;
18387 _ACEOF
18388 if ac_fn_c_try_link "$LINENO"; then :
18389 ac_cv_lib_dld_dld_link=yes
18390 else
18391 ac_cv_lib_dld_dld_link=no
18393 rm -f core conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext conftest.$ac_ext
18395 LIBS=$ac_check_lib_save_LIBS
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18398 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18399 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18400 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18419 esac
18421 if test "x$lt_cv_dlopen" != xno; then
18422 enable_dlopen=yes
18423 else
18424 enable_dlopen=no
18427 case $lt_cv_dlopen in
18428 dlopen)
18429 save_CPPFLAGS="$CPPFLAGS"
18430 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18432 save_LDFLAGS="$LDFLAGS"
18433 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18435 save_LIBS="$LIBS"
18436 LIBS="$lt_cv_dlopen_libs $LIBS"
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18439 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18440 if test "${lt_cv_dlopen_self+set}" = set; then :
18441 $as_echo_n "(cached) " >&6
18442 else
18443 if test "$cross_compiling" = yes; then :
18444 lt_cv_dlopen_self=cross
18445 else
18446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18447 lt_status=$lt_dlunknown
18448 cat > conftest.$ac_ext <<_LT_EOF
18449 #line 18449 "configure"
18450 #include "confdefs.h"
18452 #if HAVE_DLFCN_H
18453 #include <dlfcn.h>
18454 #endif
18456 #include <stdio.h>
18458 #ifdef RTLD_GLOBAL
18459 # define LT_DLGLOBAL RTLD_GLOBAL
18460 #else
18461 # ifdef DL_GLOBAL
18462 # define LT_DLGLOBAL DL_GLOBAL
18463 # else
18464 # define LT_DLGLOBAL 0
18465 # endif
18466 #endif
18468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18469 find out it does not work in some platform. */
18470 #ifndef LT_DLLAZY_OR_NOW
18471 # ifdef RTLD_LAZY
18472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18473 # else
18474 # ifdef DL_LAZY
18475 # define LT_DLLAZY_OR_NOW DL_LAZY
18476 # else
18477 # ifdef RTLD_NOW
18478 # define LT_DLLAZY_OR_NOW RTLD_NOW
18479 # else
18480 # ifdef DL_NOW
18481 # define LT_DLLAZY_OR_NOW DL_NOW
18482 # else
18483 # define LT_DLLAZY_OR_NOW 0
18484 # endif
18485 # endif
18486 # endif
18487 # endif
18488 #endif
18490 /* When -fvisbility=hidden is used, assume the code has been annotated
18491 correspondingly for the symbols needed. */
18492 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18493 void fnord () __attribute__((visibility("default")));
18494 #endif
18496 void fnord () { int i=42; }
18497 int main ()
18499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18500 int status = $lt_dlunknown;
18502 if (self)
18504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18505 else
18507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508 else puts (dlerror ());
18510 /* dlclose (self); */
18512 else
18513 puts (dlerror ());
18515 return status;
18517 _LT_EOF
18518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18519 (eval $ac_link) 2>&5
18520 ac_status=$?
18521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18523 (./conftest; exit; ) >&5 2>/dev/null
18524 lt_status=$?
18525 case x$lt_status in
18526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18528 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18529 esac
18530 else :
18531 # compilation failed
18532 lt_cv_dlopen_self=no
18535 rm -fr conftest*
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18540 $as_echo "$lt_cv_dlopen_self" >&6; }
18542 if test "x$lt_cv_dlopen_self" = xyes; then
18543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18548 else
18549 if test "$cross_compiling" = yes; then :
18550 lt_cv_dlopen_self_static=cross
18551 else
18552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18553 lt_status=$lt_dlunknown
18554 cat > conftest.$ac_ext <<_LT_EOF
18555 #line 18555 "configure"
18556 #include "confdefs.h"
18558 #if HAVE_DLFCN_H
18559 #include <dlfcn.h>
18560 #endif
18562 #include <stdio.h>
18564 #ifdef RTLD_GLOBAL
18565 # define LT_DLGLOBAL RTLD_GLOBAL
18566 #else
18567 # ifdef DL_GLOBAL
18568 # define LT_DLGLOBAL DL_GLOBAL
18569 # else
18570 # define LT_DLGLOBAL 0
18571 # endif
18572 #endif
18574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18575 find out it does not work in some platform. */
18576 #ifndef LT_DLLAZY_OR_NOW
18577 # ifdef RTLD_LAZY
18578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18579 # else
18580 # ifdef DL_LAZY
18581 # define LT_DLLAZY_OR_NOW DL_LAZY
18582 # else
18583 # ifdef RTLD_NOW
18584 # define LT_DLLAZY_OR_NOW RTLD_NOW
18585 # else
18586 # ifdef DL_NOW
18587 # define LT_DLLAZY_OR_NOW DL_NOW
18588 # else
18589 # define LT_DLLAZY_OR_NOW 0
18590 # endif
18591 # endif
18592 # endif
18593 # endif
18594 #endif
18596 /* When -fvisbility=hidden is used, assume the code has been annotated
18597 correspondingly for the symbols needed. */
18598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18599 void fnord () __attribute__((visibility("default")));
18600 #endif
18602 void fnord () { int i=42; }
18603 int main ()
18605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18606 int status = $lt_dlunknown;
18608 if (self)
18610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18611 else
18613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18614 else puts (dlerror ());
18616 /* dlclose (self); */
18618 else
18619 puts (dlerror ());
18621 return status;
18623 _LT_EOF
18624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18625 (eval $ac_link) 2>&5
18626 ac_status=$?
18627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18628 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18629 (./conftest; exit; ) >&5 2>/dev/null
18630 lt_status=$?
18631 case x$lt_status in
18632 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18633 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18634 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18635 esac
18636 else :
18637 # compilation failed
18638 lt_cv_dlopen_self_static=no
18641 rm -fr conftest*
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18646 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18649 CPPFLAGS="$save_CPPFLAGS"
18650 LDFLAGS="$save_LDFLAGS"
18651 LIBS="$save_LIBS"
18653 esac
18655 case $lt_cv_dlopen_self in
18656 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18657 *) enable_dlopen_self=unknown ;;
18658 esac
18660 case $lt_cv_dlopen_self_static in
18661 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18662 *) enable_dlopen_self_static=unknown ;;
18663 esac
18682 striplib=
18683 old_striplib=
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18685 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18686 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18687 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18688 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18690 $as_echo "yes" >&6; }
18691 else
18692 # FIXME - insert some real tests, host_os isn't really good enough
18693 case $host_os in
18694 darwin*)
18695 if test -n "$STRIP" ; then
18696 striplib="$STRIP -x"
18697 old_striplib="$STRIP -S"
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699 $as_echo "yes" >&6; }
18700 else
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18709 esac
18723 # Report which library types will actually be built
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18725 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18727 $as_echo "$can_build_shared" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18730 $as_echo_n "checking whether to build shared libraries... " >&6; }
18731 test "$can_build_shared" = "no" && enable_shared=no
18733 # On AIX, shared libraries and static libraries use the same namespace, and
18734 # are all built from PIC.
18735 case $host_os in
18736 aix3*)
18737 test "$enable_shared" = yes && enable_static=no
18738 if test -n "$RANLIB"; then
18739 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18740 postinstall_cmds='$RANLIB $lib'
18744 aix[4-9]*)
18745 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18746 test "$enable_shared" = yes && enable_static=no
18749 esac
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18751 $as_echo "$enable_shared" >&6; }
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18754 $as_echo_n "checking whether to build static libraries... " >&6; }
18755 # Make sure either enable_shared or enable_static is yes.
18756 test "$enable_shared" = yes || enable_static=yes
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18758 $as_echo "$enable_static" >&6; }
18764 ac_ext=cpp
18765 ac_cpp='$CXXCPP $CPPFLAGS'
18766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18770 CC="$lt_save_CC"
18772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18774 (test "X$CXX" != "Xg++"))) ; then
18775 ac_ext=cpp
18776 ac_cpp='$CXXCPP $CPPFLAGS'
18777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18781 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18782 if test -z "$CXXCPP"; then
18783 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18784 $as_echo_n "(cached) " >&6
18785 else
18786 # Double quotes because CXXCPP needs to be expanded
18787 for CXXCPP in "$CXX -E" "/lib/cpp"
18789 ac_preproc_ok=false
18790 for ac_cxx_preproc_warn_flag in '' yes
18792 # Use a header file that comes with gcc, so configuring glibc
18793 # with a fresh cross-compiler works.
18794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18795 # <limits.h> exists even on freestanding compilers.
18796 # On the NeXT, cc -E runs the code through the compiler's parser,
18797 # not just through cpp. "Syntax error" is here to catch this case.
18798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18800 #ifdef __STDC__
18801 # include <limits.h>
18802 #else
18803 # include <assert.h>
18804 #endif
18805 Syntax error
18806 _ACEOF
18807 if ac_fn_cxx_try_cpp "$LINENO"; then :
18809 else
18810 # Broken: fails on valid input.
18811 continue
18813 rm -f conftest.err conftest.$ac_ext
18815 # OK, works on sane cases. Now check whether nonexistent headers
18816 # can be detected and how.
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18819 #include <ac_nonexistent.h>
18820 _ACEOF
18821 if ac_fn_cxx_try_cpp "$LINENO"; then :
18822 # Broken: success on invalid input.
18823 continue
18824 else
18825 # Passes both tests.
18826 ac_preproc_ok=:
18827 break
18829 rm -f conftest.err conftest.$ac_ext
18831 done
18832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18833 rm -f conftest.err conftest.$ac_ext
18834 if $ac_preproc_ok; then :
18835 break
18838 done
18839 ac_cv_prog_CXXCPP=$CXXCPP
18842 CXXCPP=$ac_cv_prog_CXXCPP
18843 else
18844 ac_cv_prog_CXXCPP=$CXXCPP
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18847 $as_echo "$CXXCPP" >&6; }
18848 ac_preproc_ok=false
18849 for ac_cxx_preproc_warn_flag in '' yes
18851 # Use a header file that comes with gcc, so configuring glibc
18852 # with a fresh cross-compiler works.
18853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18854 # <limits.h> exists even on freestanding compilers.
18855 # On the NeXT, cc -E runs the code through the compiler's parser,
18856 # not just through cpp. "Syntax error" is here to catch this case.
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859 #ifdef __STDC__
18860 # include <limits.h>
18861 #else
18862 # include <assert.h>
18863 #endif
18864 Syntax error
18865 _ACEOF
18866 if ac_fn_cxx_try_cpp "$LINENO"; then :
18868 else
18869 # Broken: fails on valid input.
18870 continue
18872 rm -f conftest.err conftest.$ac_ext
18874 # OK, works on sane cases. Now check whether nonexistent headers
18875 # can be detected and how.
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878 #include <ac_nonexistent.h>
18879 _ACEOF
18880 if ac_fn_cxx_try_cpp "$LINENO"; then :
18881 # Broken: success on invalid input.
18882 continue
18883 else
18884 # Passes both tests.
18885 ac_preproc_ok=:
18886 break
18888 rm -f conftest.err conftest.$ac_ext
18890 done
18891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18892 rm -f conftest.err conftest.$ac_ext
18893 if $ac_preproc_ok; then :
18895 else
18896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18898 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18899 See \`config.log' for more details." "$LINENO" 5; }
18902 ac_ext=cpp
18903 ac_cpp='$CXXCPP $CPPFLAGS'
18904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908 else
18909 _lt_caught_CXX_error=yes
18912 ac_ext=cpp
18913 ac_cpp='$CXXCPP $CPPFLAGS'
18914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18918 archive_cmds_need_lc_CXX=no
18919 allow_undefined_flag_CXX=
18920 always_export_symbols_CXX=no
18921 archive_expsym_cmds_CXX=
18922 compiler_needs_object_CXX=no
18923 export_dynamic_flag_spec_CXX=
18924 hardcode_direct_CXX=no
18925 hardcode_direct_absolute_CXX=no
18926 hardcode_libdir_flag_spec_CXX=
18927 hardcode_libdir_flag_spec_ld_CXX=
18928 hardcode_libdir_separator_CXX=
18929 hardcode_minus_L_CXX=no
18930 hardcode_shlibpath_var_CXX=unsupported
18931 hardcode_automatic_CXX=no
18932 inherit_rpath_CXX=no
18933 module_cmds_CXX=
18934 module_expsym_cmds_CXX=
18935 link_all_deplibs_CXX=unknown
18936 old_archive_cmds_CXX=$old_archive_cmds
18937 reload_flag_CXX=$reload_flag
18938 reload_cmds_CXX=$reload_cmds
18939 no_undefined_flag_CXX=
18940 whole_archive_flag_spec_CXX=
18941 enable_shared_with_static_runtimes_CXX=no
18943 # Source file extension for C++ test sources.
18944 ac_ext=cpp
18946 # Object file extension for compiled C++ test sources.
18947 objext=o
18948 objext_CXX=$objext
18950 # No sense in running all these tests if we already determined that
18951 # the CXX compiler isn't working. Some variables (like enable_shared)
18952 # are currently assumed to apply to all compilers on this platform,
18953 # and will be corrupted by setting them based on a non-working compiler.
18954 if test "$_lt_caught_CXX_error" != yes; then
18955 # Code to be used in simple compile tests
18956 lt_simple_compile_test_code="int some_variable = 0;"
18958 # Code to be used in simple link tests
18959 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18968 # If no C compiler was specified, use CC.
18969 LTCC=${LTCC-"$CC"}
18971 # If no C compiler flags were specified, use CFLAGS.
18972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18974 # Allow CC to be a program name with arguments.
18975 compiler=$CC
18978 # save warnings/boilerplate of simple test code
18979 ac_outfile=conftest.$ac_objext
18980 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18981 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_compiler_boilerplate=`cat conftest.err`
18983 $RM conftest*
18985 ac_outfile=conftest.$ac_objext
18986 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18987 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18988 _lt_linker_boilerplate=`cat conftest.err`
18989 $RM -r conftest*
18992 # Allow CC to be a program name with arguments.
18993 lt_save_CC=$CC
18994 lt_save_LD=$LD
18995 lt_save_GCC=$GCC
18996 GCC=$GXX
18997 lt_save_with_gnu_ld=$with_gnu_ld
18998 lt_save_path_LD=$lt_cv_path_LD
18999 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19000 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19001 else
19002 $as_unset lt_cv_prog_gnu_ld
19004 if test -n "${lt_cv_path_LDCXX+set}"; then
19005 lt_cv_path_LD=$lt_cv_path_LDCXX
19006 else
19007 $as_unset lt_cv_path_LD
19009 test -z "${LDCXX+set}" || LD=$LDCXX
19010 CC=${CXX-"c++"}
19011 compiler=$CC
19012 compiler_CXX=$CC
19013 for cc_temp in $compiler""; do
19014 case $cc_temp in
19015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19017 \-*) ;;
19018 *) break;;
19019 esac
19020 done
19021 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19024 if test -n "$compiler"; then
19025 # We don't want -fno-exception when compiling C++ code, so set the
19026 # no_builtin_flag separately
19027 if test "$GXX" = yes; then
19028 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19029 else
19030 lt_prog_compiler_no_builtin_flag_CXX=
19033 if test "$GXX" = yes; then
19034 # Set up default GNU C++ configuration
19038 # Check whether --with-gnu-ld was given.
19039 if test "${with_gnu_ld+set}" = set; then :
19040 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19041 else
19042 with_gnu_ld=no
19045 ac_prog=ld
19046 if test "$GCC" = yes; then
19047 # Check if gcc -print-prog-name=ld gives a path.
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19049 $as_echo_n "checking for ld used by $CC... " >&6; }
19050 case $host in
19051 *-*-mingw*)
19052 # gcc leaves a trailing carriage return which upsets mingw
19053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19056 esac
19057 case $ac_prog in
19058 # Accept absolute paths.
19059 [\\/]* | ?:[\\/]*)
19060 re_direlt='/[^/][^/]*/\.\./'
19061 # Canonicalize the pathname of ld
19062 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19063 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19064 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19065 done
19066 test -z "$LD" && LD="$ac_prog"
19069 # If it fails, then pretend we aren't using GCC.
19070 ac_prog=ld
19073 # If it is relative, then search for the first ld in PATH.
19074 with_gnu_ld=unknown
19076 esac
19077 elif test "$with_gnu_ld" = yes; then
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19079 $as_echo_n "checking for GNU ld... " >&6; }
19080 else
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19082 $as_echo_n "checking for non-GNU ld... " >&6; }
19084 if test "${lt_cv_path_LD+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 if test -z "$LD"; then
19088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19089 for ac_dir in $PATH; do
19090 IFS="$lt_save_ifs"
19091 test -z "$ac_dir" && ac_dir=.
19092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19093 lt_cv_path_LD="$ac_dir/$ac_prog"
19094 # Check to see if the program is GNU ld. I'd rather use --version,
19095 # but apparently some variants of GNU ld only accept -v.
19096 # Break only if it was the GNU/non-GNU ld that we prefer.
19097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19098 *GNU* | *'with BFD'*)
19099 test "$with_gnu_ld" != no && break
19102 test "$with_gnu_ld" != yes && break
19104 esac
19106 done
19107 IFS="$lt_save_ifs"
19108 else
19109 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19113 LD="$lt_cv_path_LD"
19114 if test -n "$LD"; then
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19116 $as_echo "$LD" >&6; }
19117 else
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19119 $as_echo "no" >&6; }
19121 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19123 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19124 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19126 else
19127 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19128 case `$LD -v 2>&1 </dev/null` in
19129 *GNU* | *'with BFD'*)
19130 lt_cv_prog_gnu_ld=yes
19133 lt_cv_prog_gnu_ld=no
19135 esac
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19138 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19139 with_gnu_ld=$lt_cv_prog_gnu_ld
19147 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19148 # archiving commands below assume that GNU ld is being used.
19149 if test "$with_gnu_ld" = yes; then
19150 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 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'
19153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19154 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19156 # If archive_cmds runs LD, not CC, wlarc should be empty
19157 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19158 # investigate it a little bit more. (MM)
19159 wlarc='${wl}'
19161 # ancient GNU ld didn't support --whole-archive et. al.
19162 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19163 $GREP 'no-whole-archive' > /dev/null; then
19164 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19165 else
19166 whole_archive_flag_spec_CXX=
19168 else
19169 with_gnu_ld=no
19170 wlarc=
19172 # A generic and very simple default shared library creation
19173 # command for GNU C++ for the case where it uses the native
19174 # linker, instead of GNU ld. If possible, this setting should
19175 # overridden to take advantage of the native linker features on
19176 # the platform it is being used on.
19177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19180 # Commands to make compiler produce verbose output that lists
19181 # what "hidden" libraries, object files and flags are used when
19182 # linking a shared library.
19183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19185 else
19186 GXX=no
19187 with_gnu_ld=no
19188 wlarc=
19191 # PORTME: fill in a description of your system's C++ link characteristics
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19194 ld_shlibs_CXX=yes
19195 case $host_os in
19196 aix3*)
19197 # FIXME: insert proper C++ library support
19198 ld_shlibs_CXX=no
19200 aix[4-9]*)
19201 if test "$host_cpu" = ia64; then
19202 # On IA64, the linker does run time linking by default, so we don't
19203 # have to do anything special.
19204 aix_use_runtimelinking=no
19205 exp_sym_flag='-Bexport'
19206 no_entry_flag=""
19207 else
19208 aix_use_runtimelinking=no
19210 # Test if we are trying to use run time linking or normal
19211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19212 # need to do runtime linking.
19213 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19214 for ld_flag in $LDFLAGS; do
19215 case $ld_flag in
19216 *-brtl*)
19217 aix_use_runtimelinking=yes
19218 break
19220 esac
19221 done
19223 esac
19225 exp_sym_flag='-bexport'
19226 no_entry_flag='-bnoentry'
19229 # When large executables or shared objects are built, AIX ld can
19230 # have problems creating the table of contents. If linking a library
19231 # or program results in "error TOC overflow" add -mminimal-toc to
19232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19235 archive_cmds_CXX=''
19236 hardcode_direct_CXX=yes
19237 hardcode_direct_absolute_CXX=yes
19238 hardcode_libdir_separator_CXX=':'
19239 link_all_deplibs_CXX=yes
19240 file_list_spec_CXX='${wl}-f,'
19242 if test "$GXX" = yes; then
19243 case $host_os in aix4.[012]|aix4.[012].*)
19244 # We only want to do this on AIX 4.2 and lower, the check
19245 # below for broken collect2 doesn't work under 4.3+
19246 collect2name=`${CC} -print-prog-name=collect2`
19247 if test -f "$collect2name" &&
19248 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19249 then
19250 # We have reworked collect2
19252 else
19253 # We have old collect2
19254 hardcode_direct_CXX=unsupported
19255 # It fails to find uninstalled libraries when the uninstalled
19256 # path is not listed in the libpath. Setting hardcode_minus_L
19257 # to unsupported forces relinking
19258 hardcode_minus_L_CXX=yes
19259 hardcode_libdir_flag_spec_CXX='-L$libdir'
19260 hardcode_libdir_separator_CXX=
19262 esac
19263 shared_flag='-shared'
19264 if test "$aix_use_runtimelinking" = yes; then
19265 shared_flag="$shared_flag "'${wl}-G'
19267 else
19268 # not using gcc
19269 if test "$host_cpu" = ia64; then
19270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19271 # chokes on -Wl,-G. The following line is correct:
19272 shared_flag='-G'
19273 else
19274 if test "$aix_use_runtimelinking" = yes; then
19275 shared_flag='${wl}-G'
19276 else
19277 shared_flag='${wl}-bM:SRE'
19282 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19283 # It seems that -bexpall does not export symbols beginning with
19284 # underscore (_), so it is better to generate a list of symbols to
19285 # export.
19286 always_export_symbols_CXX=yes
19287 if test "$aix_use_runtimelinking" = yes; then
19288 # Warning - without using the other runtime loading flags (-brtl),
19289 # -berok will link without error, but may produce a broken library.
19290 allow_undefined_flag_CXX='-berok'
19291 # Determine the default libpath from the value encoded in an empty
19292 # executable.
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19297 main ()
19301 return 0;
19303 _ACEOF
19304 if ac_fn_cxx_try_link "$LINENO"; then :
19306 lt_aix_libpath_sed='
19307 /Import File Strings/,/^$/ {
19308 /^0/ {
19309 s/^0 *\(.*\)$/\1/
19313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19314 # Check for a 64-bit object if we didn't find anything.
19315 if test -z "$aix_libpath"; then
19316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19319 rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19325 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"
19326 else
19327 if test "$host_cpu" = ia64; then
19328 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19329 allow_undefined_flag_CXX="-z nodefs"
19330 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"
19331 else
19332 # Determine the default libpath from the value encoded in an
19333 # empty executable.
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19338 main ()
19342 return 0;
19344 _ACEOF
19345 if ac_fn_cxx_try_link "$LINENO"; then :
19347 lt_aix_libpath_sed='
19348 /Import File Strings/,/^$/ {
19349 /^0/ {
19350 s/^0 *\(.*\)$/\1/
19354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19355 # Check for a 64-bit object if we didn't find anything.
19356 if test -z "$aix_libpath"; then
19357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19365 # Warning - without using the other run time loading flags,
19366 # -berok will link without error, but may produce a broken library.
19367 no_undefined_flag_CXX=' ${wl}-bernotok'
19368 allow_undefined_flag_CXX=' ${wl}-berok'
19369 if test "$with_gnu_ld" = yes; then
19370 # We only use this code for GNU lds that support --whole-archive.
19371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19372 else
19373 # Exported symbols can be pulled into shared objects from archives
19374 whole_archive_flag_spec_CXX='$convenience'
19376 archive_cmds_need_lc_CXX=yes
19377 # This is similar to how AIX traditionally builds its shared
19378 # libraries.
19379 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'
19384 beos*)
19385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19386 allow_undefined_flag_CXX=unsupported
19387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19388 # support --undefined. This deserves some investigation. FIXME
19389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19390 else
19391 ld_shlibs_CXX=no
19395 chorus*)
19396 case $cc_basename in
19398 # FIXME: insert proper C++ library support
19399 ld_shlibs_CXX=no
19401 esac
19404 cygwin* | mingw* | pw32* | cegcc*)
19405 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19406 # as there is no search path for DLLs.
19407 hardcode_libdir_flag_spec_CXX='-L$libdir'
19408 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19409 allow_undefined_flag_CXX=unsupported
19410 always_export_symbols_CXX=no
19411 enable_shared_with_static_runtimes_CXX=yes
19413 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19414 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'
19415 # If the export-symbols file already is a .def file (1st line
19416 # is EXPORTS), use it as is; otherwise, prepend...
19417 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19418 cp $export_symbols $output_objdir/$soname.def;
19419 else
19420 echo EXPORTS > $output_objdir/$soname.def;
19421 cat $export_symbols >> $output_objdir/$soname.def;
19423 $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'
19424 else
19425 ld_shlibs_CXX=no
19428 darwin* | rhapsody*)
19431 archive_cmds_need_lc_CXX=no
19432 hardcode_direct_CXX=no
19433 hardcode_automatic_CXX=yes
19434 hardcode_shlibpath_var_CXX=unsupported
19435 if test "$lt_cv_ld_force_load" = "yes"; then
19436 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\"`'
19437 else
19438 whole_archive_flag_spec_CXX=''
19440 link_all_deplibs_CXX=yes
19441 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19442 case $cc_basename in
19443 ifort*) _lt_dar_can_shared=yes ;;
19444 *) _lt_dar_can_shared=$GCC ;;
19445 esac
19446 if test "$_lt_dar_can_shared" = "yes"; then
19447 output_verbose_link_cmd=func_echo_all
19448 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}"
19449 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19450 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}"
19451 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}"
19452 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19453 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}"
19454 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}"
19457 else
19458 ld_shlibs_CXX=no
19463 dgux*)
19464 case $cc_basename in
19465 ec++*)
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19469 ghcx*)
19470 # Green Hills C++ Compiler
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19478 esac
19481 freebsd2.*)
19482 # C++ shared libraries reported to be fairly broken before
19483 # switch to ELF
19484 ld_shlibs_CXX=no
19487 freebsd-elf*)
19488 archive_cmds_need_lc_CXX=no
19491 freebsd* | dragonfly*)
19492 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19493 # conventions
19494 ld_shlibs_CXX=yes
19497 gnu*)
19500 haiku*)
19501 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19502 link_all_deplibs_CXX=yes
19505 hpux9*)
19506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19507 hardcode_libdir_separator_CXX=:
19508 export_dynamic_flag_spec_CXX='${wl}-E'
19509 hardcode_direct_CXX=yes
19510 hardcode_minus_L_CXX=yes # Not in the search PATH,
19511 # but as the default
19512 # location of the library.
19514 case $cc_basename in
19515 CC*)
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19519 aCC*)
19520 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'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19525 # There doesn't appear to be a way to prevent this compiler from
19526 # explicitly linking system object files so we need to strip them
19527 # from the output so that they don't get included in the library
19528 # dependencies.
19529 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"'
19532 if test "$GXX" = yes; then
19533 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'
19534 else
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19539 esac
19542 hpux10*|hpux11*)
19543 if test $with_gnu_ld = no; then
19544 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19545 hardcode_libdir_separator_CXX=:
19547 case $host_cpu in
19548 hppa*64*|ia64*)
19551 export_dynamic_flag_spec_CXX='${wl}-E'
19553 esac
19555 case $host_cpu in
19556 hppa*64*|ia64*)
19557 hardcode_direct_CXX=no
19558 hardcode_shlibpath_var_CXX=no
19561 hardcode_direct_CXX=yes
19562 hardcode_direct_absolute_CXX=yes
19563 hardcode_minus_L_CXX=yes # Not in the search PATH,
19564 # but as the default
19565 # location of the library.
19567 esac
19569 case $cc_basename in
19570 CC*)
19571 # FIXME: insert proper C++ library support
19572 ld_shlibs_CXX=no
19574 aCC*)
19575 case $host_cpu in
19576 hppa*64*)
19577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579 ia64*)
19580 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19583 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19585 esac
19586 # Commands to make compiler produce verbose output that lists
19587 # what "hidden" libraries, object files and flags are used when
19588 # linking a shared library.
19590 # There doesn't appear to be a way to prevent this compiler from
19591 # explicitly linking system object files so we need to strip them
19592 # from the output so that they don't get included in the library
19593 # dependencies.
19594 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"'
19597 if test "$GXX" = yes; then
19598 if test $with_gnu_ld = no; then
19599 case $host_cpu in
19600 hppa*64*)
19601 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19603 ia64*)
19604 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607 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'
19609 esac
19611 else
19612 # FIXME: insert proper C++ library support
19613 ld_shlibs_CXX=no
19616 esac
19619 interix[3-9]*)
19620 hardcode_direct_CXX=no
19621 hardcode_shlibpath_var_CXX=no
19622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19623 export_dynamic_flag_spec_CXX='${wl}-E'
19624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19625 # Instead, shared libraries are loaded at an image base (0x10000000 by
19626 # default) and relocated if they conflict, which is a slow very memory
19627 # consuming and fragmenting process. To avoid this, we pick a random,
19628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19630 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'
19631 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'
19633 irix5* | irix6*)
19634 case $cc_basename in
19635 CC*)
19636 # SGI C++
19637 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'
19639 # Archives containing C++ object files must be created using
19640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19641 # necessary to make sure instantiated templates are included
19642 # in the archive.
19643 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19646 if test "$GXX" = yes; then
19647 if test "$with_gnu_ld" = no; then
19648 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'
19649 else
19650 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'
19653 link_all_deplibs_CXX=yes
19655 esac
19656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19657 hardcode_libdir_separator_CXX=:
19658 inherit_rpath_CXX=yes
19661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19662 case $cc_basename in
19663 KCC*)
19664 # Kuck and Associates, Inc. (KAI) C++ Compiler
19666 # KCC will only create a shared library if the output file
19667 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19668 # to its proper name (with version) after linking.
19669 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'
19670 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'
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19675 # There doesn't appear to be a way to prevent this compiler from
19676 # explicitly linking system object files so we need to strip them
19677 # from the output so that they don't get included in the library
19678 # dependencies.
19679 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"'
19681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19684 # Archives containing C++ object files must be created using
19685 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19686 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19688 icpc* | ecpc* )
19689 # Intel C++
19690 with_gnu_ld=yes
19691 # version 8.0 and above of icpc choke on multiply defined symbols
19692 # if we add $predep_objects and $postdep_objects, however 7.1 and
19693 # earlier do not add the objects themselves.
19694 case `$CC -V 2>&1` in
19695 *"Version 7."*)
19696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19697 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'
19699 *) # Version 8.0 or newer
19700 tmp_idyn=
19701 case $host_cpu in
19702 ia64*) tmp_idyn=' -i_dynamic';;
19703 esac
19704 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705 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'
19707 esac
19708 archive_cmds_need_lc_CXX=no
19709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19711 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19713 pgCC* | pgcpp*)
19714 # Portland Group C++ compiler
19715 case `$CC -V` in
19716 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19717 prelink_cmds_CXX='tpldir=Template.dir~
19718 rm -rf $tpldir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19720 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19721 old_archive_cmds_CXX='tpldir=Template.dir~
19722 rm -rf $tpldir~
19723 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19724 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19725 $RANLIB $oldlib'
19726 archive_cmds_CXX='tpldir=Template.dir~
19727 rm -rf $tpldir~
19728 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19729 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19730 archive_expsym_cmds_CXX='tpldir=Template.dir~
19731 rm -rf $tpldir~
19732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19733 $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'
19735 *) # Version 6 and above use weak symbols
19736 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19737 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'
19739 esac
19741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19743 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'
19745 cxx*)
19746 # Compaq C++
19747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19748 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'
19750 runpath_var=LD_RUN_PATH
19751 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19752 hardcode_libdir_separator_CXX=:
19754 # Commands to make compiler produce verbose output that lists
19755 # what "hidden" libraries, object files and flags are used when
19756 # linking a shared library.
19758 # There doesn't appear to be a way to prevent this compiler from
19759 # explicitly linking system object files so we need to strip them
19760 # from the output so that they don't get included in the library
19761 # dependencies.
19762 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'
19764 xl* | mpixl* | bgxl*)
19765 # IBM XL 8.0 on PPC, with GNU ld
19766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19768 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19769 if test "x$supports_anon_versioning" = xyes; then
19770 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19772 echo "local: *; };" >> $output_objdir/$libname.ver~
19773 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19777 case `$CC -V 2>&1 | sed 5q` in
19778 *Sun\ C*)
19779 # Sun C++ 5.9
19780 no_undefined_flag_CXX=' -zdefs'
19781 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19782 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'
19783 hardcode_libdir_flag_spec_CXX='-R$libdir'
19784 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'
19785 compiler_needs_object_CXX=yes
19787 # Not sure whether something based on
19788 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19789 # would be better.
19790 output_verbose_link_cmd='func_echo_all'
19792 # Archives containing C++ object files must be created using
19793 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19794 # necessary to make sure instantiated templates are included
19795 # in the archive.
19796 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19798 esac
19800 esac
19803 lynxos*)
19804 # FIXME: insert proper C++ library support
19805 ld_shlibs_CXX=no
19808 m88k*)
19809 # FIXME: insert proper C++ library support
19810 ld_shlibs_CXX=no
19813 mvs*)
19814 case $cc_basename in
19815 cxx*)
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19820 # FIXME: insert proper C++ library support
19821 ld_shlibs_CXX=no
19823 esac
19826 netbsd*)
19827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19828 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19829 wlarc=
19830 hardcode_libdir_flag_spec_CXX='-R$libdir'
19831 hardcode_direct_CXX=yes
19832 hardcode_shlibpath_var_CXX=no
19834 # Workaround some broken pre-1.5 toolchains
19835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19838 *nto* | *qnx*)
19839 ld_shlibs_CXX=yes
19842 openbsd2*)
19843 # C++ shared libraries are fairly broken
19844 ld_shlibs_CXX=no
19847 openbsd*)
19848 if test -f /usr/libexec/ld.so; then
19849 hardcode_direct_CXX=yes
19850 hardcode_shlibpath_var_CXX=no
19851 hardcode_direct_absolute_CXX=yes
19852 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19855 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19856 export_dynamic_flag_spec_CXX='${wl}-E'
19857 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19859 output_verbose_link_cmd=func_echo_all
19860 else
19861 ld_shlibs_CXX=no
19865 osf3* | osf4* | osf5*)
19866 case $cc_basename in
19867 KCC*)
19868 # Kuck and Associates, Inc. (KAI) C++ Compiler
19870 # KCC will only create a shared library if the output file
19871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19872 # to its proper name (with version) after linking.
19873 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'
19875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19876 hardcode_libdir_separator_CXX=:
19878 # Archives containing C++ object files must be created using
19879 # the KAI C++ compiler.
19880 case $host in
19881 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19882 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19883 esac
19885 RCC*)
19886 # Rational C++ 2.4.1
19887 # FIXME: insert proper C++ library support
19888 ld_shlibs_CXX=no
19890 cxx*)
19891 case $host in
19892 osf3*)
19893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19894 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'
19895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19898 allow_undefined_flag_CXX=' -expect_unresolved \*'
19899 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'
19900 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19901 echo "-hidden">> $lib.exp~
19902 $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~
19903 $RM $lib.exp'
19904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19906 esac
19908 hardcode_libdir_separator_CXX=:
19910 # Commands to make compiler produce verbose output that lists
19911 # what "hidden" libraries, object files and flags are used when
19912 # linking a shared library.
19914 # There doesn't appear to be a way to prevent this compiler from
19915 # explicitly linking system object files so we need to strip them
19916 # from the output so that they don't get included in the library
19917 # dependencies.
19918 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"'
19921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19923 case $host in
19924 osf3*)
19925 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'
19928 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'
19930 esac
19932 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19933 hardcode_libdir_separator_CXX=:
19935 # Commands to make compiler produce verbose output that lists
19936 # what "hidden" libraries, object files and flags are used when
19937 # linking a shared library.
19938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19940 else
19941 # FIXME: insert proper C++ library support
19942 ld_shlibs_CXX=no
19945 esac
19948 psos*)
19949 # FIXME: insert proper C++ library support
19950 ld_shlibs_CXX=no
19953 sunos4*)
19954 case $cc_basename in
19955 CC*)
19956 # Sun C++ 4.x
19957 # FIXME: insert proper C++ library support
19958 ld_shlibs_CXX=no
19960 lcc*)
19961 # Lucid
19962 # FIXME: insert proper C++ library support
19963 ld_shlibs_CXX=no
19966 # FIXME: insert proper C++ library support
19967 ld_shlibs_CXX=no
19969 esac
19972 solaris*)
19973 case $cc_basename in
19974 CC*)
19975 # Sun C++ 4.2, 5.x and Centerline C++
19976 archive_cmds_need_lc_CXX=yes
19977 no_undefined_flag_CXX=' -zdefs'
19978 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19980 $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'
19982 hardcode_libdir_flag_spec_CXX='-R$libdir'
19983 hardcode_shlibpath_var_CXX=no
19984 case $host_os in
19985 solaris2.[0-5] | solaris2.[0-5].*) ;;
19987 # The compiler driver will combine and reorder linker options,
19988 # but understands `-z linker_flag'.
19989 # Supported since Solaris 2.6 (maybe 2.5.1?)
19990 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19992 esac
19993 link_all_deplibs_CXX=yes
19995 output_verbose_link_cmd='func_echo_all'
19997 # Archives containing C++ object files must be created using
19998 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19999 # necessary to make sure instantiated templates are included
20000 # in the archive.
20001 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20003 gcx*)
20004 # Green Hills C++ Compiler
20005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20007 # The C++ compiler must be used to create the archive.
20008 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20011 # GNU C++ compiler with Solaris linker
20012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20013 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20014 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20015 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20016 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20017 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20019 # Commands to make compiler produce verbose output that lists
20020 # what "hidden" libraries, object files and flags are used when
20021 # linking a shared library.
20022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20023 else
20024 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20025 # platform.
20026 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20028 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20030 # Commands to make compiler produce verbose output that lists
20031 # what "hidden" libraries, object files and flags are used when
20032 # linking a shared library.
20033 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20036 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20037 case $host_os in
20038 solaris2.[0-5] | solaris2.[0-5].*) ;;
20040 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20042 esac
20045 esac
20048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20049 no_undefined_flag_CXX='${wl}-z,text'
20050 archive_cmds_need_lc_CXX=no
20051 hardcode_shlibpath_var_CXX=no
20052 runpath_var='LD_RUN_PATH'
20054 case $cc_basename in
20055 CC*)
20056 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063 esac
20066 sysv5* | sco3.2v5* | sco5v6*)
20067 # Note: We can NOT use -z defs as we might desire, because we do not
20068 # link with -lc, and that would cause any symbols used from libc to
20069 # always be unresolved, which means just about no library would
20070 # ever link correctly. If we're not using GNU ld we use -z text
20071 # though, which does catch some bad symbols but isn't as heavy-handed
20072 # as -z defs.
20073 no_undefined_flag_CXX='${wl}-z,text'
20074 allow_undefined_flag_CXX='${wl}-z,nodefs'
20075 archive_cmds_need_lc_CXX=no
20076 hardcode_shlibpath_var_CXX=no
20077 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20078 hardcode_libdir_separator_CXX=':'
20079 link_all_deplibs_CXX=yes
20080 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20081 runpath_var='LD_RUN_PATH'
20083 case $cc_basename in
20084 CC*)
20085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20088 '"$old_archive_cmds_CXX"
20089 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20090 '"$reload_cmds_CXX"
20093 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20096 esac
20099 tandem*)
20100 case $cc_basename in
20101 NCC*)
20102 # NonStop-UX NCC 3.20
20103 # FIXME: insert proper C++ library support
20104 ld_shlibs_CXX=no
20107 # FIXME: insert proper C++ library support
20108 ld_shlibs_CXX=no
20110 esac
20113 vxworks*)
20114 # FIXME: insert proper C++ library support
20115 ld_shlibs_CXX=no
20119 # FIXME: insert proper C++ library support
20120 ld_shlibs_CXX=no
20122 esac
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20125 $as_echo "$ld_shlibs_CXX" >&6; }
20126 test "$ld_shlibs_CXX" = no && can_build_shared=no
20128 GCC_CXX="$GXX"
20129 LD_CXX="$LD"
20131 ## CAVEAT EMPTOR:
20132 ## There is no encapsulation within the following macros, do not change
20133 ## the running order or otherwise move them around unless you know exactly
20134 ## what you are doing...
20135 # Dependencies to place before and after the object being linked:
20136 predep_objects_CXX=
20137 postdep_objects_CXX=
20138 predeps_CXX=
20139 postdeps_CXX=
20140 compiler_lib_search_path_CXX=
20142 cat > conftest.$ac_ext <<_LT_EOF
20143 class Foo
20145 public:
20146 Foo (void) { a = 0; }
20147 private:
20148 int a;
20150 _LT_EOF
20152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20153 (eval $ac_compile) 2>&5
20154 ac_status=$?
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }; then
20157 # Parse the compiler output and extract the necessary
20158 # objects, libraries and library flags.
20160 # Sentinel used to keep track of whether or not we are before
20161 # the conftest object file.
20162 pre_test_object_deps_done=no
20164 for p in `eval "$output_verbose_link_cmd"`; do
20165 case $p in
20167 -L* | -R* | -l*)
20168 # Some compilers place space between "-{L,R}" and the path.
20169 # Remove the space.
20170 if test $p = "-L" ||
20171 test $p = "-R"; then
20172 prev=$p
20173 continue
20174 else
20175 prev=
20178 if test "$pre_test_object_deps_done" = no; then
20179 case $p in
20180 -L* | -R*)
20181 # Internal compiler library paths should come after those
20182 # provided the user. The postdeps already come after the
20183 # user supplied libs so there is no need to process them.
20184 if test -z "$compiler_lib_search_path_CXX"; then
20185 compiler_lib_search_path_CXX="${prev}${p}"
20186 else
20187 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20190 # The "-l" case would never come before the object being
20191 # linked, so don't bother handling this case.
20192 esac
20193 else
20194 if test -z "$postdeps_CXX"; then
20195 postdeps_CXX="${prev}${p}"
20196 else
20197 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20202 *.$objext)
20203 # This assumes that the test object file only shows up
20204 # once in the compiler output.
20205 if test "$p" = "conftest.$objext"; then
20206 pre_test_object_deps_done=yes
20207 continue
20210 if test "$pre_test_object_deps_done" = no; then
20211 if test -z "$predep_objects_CXX"; then
20212 predep_objects_CXX="$p"
20213 else
20214 predep_objects_CXX="$predep_objects_CXX $p"
20216 else
20217 if test -z "$postdep_objects_CXX"; then
20218 postdep_objects_CXX="$p"
20219 else
20220 postdep_objects_CXX="$postdep_objects_CXX $p"
20225 *) ;; # Ignore the rest.
20227 esac
20228 done
20230 # Clean up.
20231 rm -f a.out a.exe
20232 else
20233 echo "libtool.m4: error: problem compiling CXX test program"
20236 $RM -f confest.$objext
20238 # PORTME: override above test on systems where it is broken
20239 case $host_os in
20240 interix[3-9]*)
20241 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20242 # hack all around it, let's just trust "g++" to DTRT.
20243 predep_objects_CXX=
20244 postdep_objects_CXX=
20245 postdeps_CXX=
20248 linux*)
20249 case `$CC -V 2>&1 | sed 5q` in
20250 *Sun\ C*)
20251 # Sun C++ 5.9
20253 # The more standards-conforming stlport4 library is
20254 # incompatible with the Cstd library. Avoid specifying
20255 # it if it's in CXXFLAGS. Ignore libCrun as
20256 # -library=stlport4 depends on it.
20257 case " $CXX $CXXFLAGS " in
20258 *" -library=stlport4 "*)
20259 solaris_use_stlport4=yes
20261 esac
20263 if test "$solaris_use_stlport4" != yes; then
20264 postdeps_CXX='-library=Cstd -library=Crun'
20267 esac
20270 solaris*)
20271 case $cc_basename in
20272 CC*)
20273 # The more standards-conforming stlport4 library is
20274 # incompatible with the Cstd library. Avoid specifying
20275 # it if it's in CXXFLAGS. Ignore libCrun as
20276 # -library=stlport4 depends on it.
20277 case " $CXX $CXXFLAGS " in
20278 *" -library=stlport4 "*)
20279 solaris_use_stlport4=yes
20281 esac
20283 # Adding this requires a known-good setup of shared libraries for
20284 # Sun compiler versions before 5.6, else PIC objects from an old
20285 # archive will be linked into the output, leading to subtle bugs.
20286 if test "$solaris_use_stlport4" != yes; then
20287 postdeps_CXX='-library=Cstd -library=Crun'
20290 esac
20292 esac
20295 case " $postdeps_CXX " in
20296 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20297 esac
20298 compiler_lib_search_dirs_CXX=
20299 if test -n "${compiler_lib_search_path_CXX}"; then
20300 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20333 lt_prog_compiler_wl_CXX=
20334 lt_prog_compiler_pic_CXX=
20335 lt_prog_compiler_static_CXX=
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20340 # C++ specific cases for pic, static, wl, etc.
20341 if test "$GXX" = yes; then
20342 lt_prog_compiler_wl_CXX='-Wl,'
20343 lt_prog_compiler_static_CXX='-static'
20345 case $host_os in
20346 aix*)
20347 # All AIX code is PIC.
20348 if test "$host_cpu" = ia64; then
20349 # AIX 5 now supports IA64 processor
20350 lt_prog_compiler_static_CXX='-Bstatic'
20352 lt_prog_compiler_pic_CXX='-fPIC'
20355 amigaos*)
20356 case $host_cpu in
20357 powerpc)
20358 # see comment about AmigaOS4 .so support
20359 lt_prog_compiler_pic_CXX='-fPIC'
20361 m68k)
20362 # FIXME: we need at least 68020 code to build shared libraries, but
20363 # adding the `-m68020' flag to GCC prevents building anything better,
20364 # like `-m68040'.
20365 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20367 esac
20370 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20371 # PIC is the default for these OSes.
20373 mingw* | cygwin* | os2* | pw32* | cegcc*)
20374 # This hack is so that the source file can tell whether it is being
20375 # built for inclusion in a dll (and should export symbols for example).
20376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20377 # (--disable-auto-import) libraries
20378 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20380 darwin* | rhapsody*)
20381 # PIC is the default on this platform
20382 # Common symbols not allowed in MH_DYLIB files
20383 lt_prog_compiler_pic_CXX='-fno-common'
20385 *djgpp*)
20386 # DJGPP does not support shared libraries at all
20387 lt_prog_compiler_pic_CXX=
20389 haiku*)
20390 # PIC is the default for Haiku.
20391 # The "-static" flag exists, but is broken.
20392 lt_prog_compiler_static_CXX=
20394 interix[3-9]*)
20395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20396 # Instead, we relocate shared libraries at runtime.
20398 sysv4*MP*)
20399 if test -d /usr/nec; then
20400 lt_prog_compiler_pic_CXX=-Kconform_pic
20403 hpux*)
20404 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20405 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20406 # sets the default TLS model and affects inlining.
20407 case $host_cpu in
20408 hppa*64*)
20411 lt_prog_compiler_pic_CXX='-fPIC'
20413 esac
20415 *qnx* | *nto*)
20416 # QNX uses GNU C++, but need to define -shared option too, otherwise
20417 # it will coredump.
20418 lt_prog_compiler_pic_CXX='-fPIC -shared'
20421 lt_prog_compiler_pic_CXX='-fPIC'
20423 esac
20424 else
20425 case $host_os in
20426 aix[4-9]*)
20427 # All AIX code is PIC.
20428 if test "$host_cpu" = ia64; then
20429 # AIX 5 now supports IA64 processor
20430 lt_prog_compiler_static_CXX='-Bstatic'
20431 else
20432 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20435 chorus*)
20436 case $cc_basename in
20437 cxch68*)
20438 # Green Hills C++ Compiler
20439 # _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"
20441 esac
20443 dgux*)
20444 case $cc_basename in
20445 ec++*)
20446 lt_prog_compiler_pic_CXX='-KPIC'
20448 ghcx*)
20449 # Green Hills C++ Compiler
20450 lt_prog_compiler_pic_CXX='-pic'
20454 esac
20456 freebsd* | dragonfly*)
20457 # FreeBSD uses GNU C++
20459 hpux9* | hpux10* | hpux11*)
20460 case $cc_basename in
20461 CC*)
20462 lt_prog_compiler_wl_CXX='-Wl,'
20463 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20464 if test "$host_cpu" != ia64; then
20465 lt_prog_compiler_pic_CXX='+Z'
20468 aCC*)
20469 lt_prog_compiler_wl_CXX='-Wl,'
20470 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20471 case $host_cpu in
20472 hppa*64*|ia64*)
20473 # +Z the default
20476 lt_prog_compiler_pic_CXX='+Z'
20478 esac
20482 esac
20484 interix*)
20485 # This is c89, which is MS Visual C++ (no shared libs)
20486 # Anyone wants to do a port?
20488 irix5* | irix6* | nonstopux*)
20489 case $cc_basename in
20490 CC*)
20491 lt_prog_compiler_wl_CXX='-Wl,'
20492 lt_prog_compiler_static_CXX='-non_shared'
20493 # CC pic flag -KPIC is the default.
20497 esac
20499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20500 case $cc_basename in
20501 KCC*)
20502 # KAI C++ Compiler
20503 lt_prog_compiler_wl_CXX='--backend -Wl,'
20504 lt_prog_compiler_pic_CXX='-fPIC'
20506 ecpc* )
20507 # old Intel C++ for x86_64 which still supported -KPIC.
20508 lt_prog_compiler_wl_CXX='-Wl,'
20509 lt_prog_compiler_pic_CXX='-KPIC'
20510 lt_prog_compiler_static_CXX='-static'
20512 icpc* )
20513 # Intel C++, used to be incompatible with GCC.
20514 # ICC 10 doesn't accept -KPIC any more.
20515 lt_prog_compiler_wl_CXX='-Wl,'
20516 lt_prog_compiler_pic_CXX='-fPIC'
20517 lt_prog_compiler_static_CXX='-static'
20519 pgCC* | pgcpp*)
20520 # Portland Group C++ compiler
20521 lt_prog_compiler_wl_CXX='-Wl,'
20522 lt_prog_compiler_pic_CXX='-fpic'
20523 lt_prog_compiler_static_CXX='-Bstatic'
20525 cxx*)
20526 # Compaq C++
20527 # Make sure the PIC flag is empty. It appears that all Alpha
20528 # Linux and Compaq Tru64 Unix objects are PIC.
20529 lt_prog_compiler_pic_CXX=
20530 lt_prog_compiler_static_CXX='-non_shared'
20532 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20533 # IBM XL 8.0, 9.0 on PPC and BlueGene
20534 lt_prog_compiler_wl_CXX='-Wl,'
20535 lt_prog_compiler_pic_CXX='-qpic'
20536 lt_prog_compiler_static_CXX='-qstaticlink'
20539 case `$CC -V 2>&1 | sed 5q` in
20540 *Sun\ C*)
20541 # Sun C++ 5.9
20542 lt_prog_compiler_pic_CXX='-KPIC'
20543 lt_prog_compiler_static_CXX='-Bstatic'
20544 lt_prog_compiler_wl_CXX='-Qoption ld '
20546 esac
20548 esac
20550 lynxos*)
20552 m88k*)
20554 mvs*)
20555 case $cc_basename in
20556 cxx*)
20557 lt_prog_compiler_pic_CXX='-W c,exportall'
20561 esac
20563 netbsd*)
20565 *qnx* | *nto*)
20566 # QNX uses GNU C++, but need to define -shared option too, otherwise
20567 # it will coredump.
20568 lt_prog_compiler_pic_CXX='-fPIC -shared'
20570 osf3* | osf4* | osf5*)
20571 case $cc_basename in
20572 KCC*)
20573 lt_prog_compiler_wl_CXX='--backend -Wl,'
20575 RCC*)
20576 # Rational C++ 2.4.1
20577 lt_prog_compiler_pic_CXX='-pic'
20579 cxx*)
20580 # Digital/Compaq C++
20581 lt_prog_compiler_wl_CXX='-Wl,'
20582 # Make sure the PIC flag is empty. It appears that all Alpha
20583 # Linux and Compaq Tru64 Unix objects are PIC.
20584 lt_prog_compiler_pic_CXX=
20585 lt_prog_compiler_static_CXX='-non_shared'
20589 esac
20591 psos*)
20593 solaris*)
20594 case $cc_basename in
20595 CC*)
20596 # Sun C++ 4.2, 5.x and Centerline C++
20597 lt_prog_compiler_pic_CXX='-KPIC'
20598 lt_prog_compiler_static_CXX='-Bstatic'
20599 lt_prog_compiler_wl_CXX='-Qoption ld '
20601 gcx*)
20602 # Green Hills C++ Compiler
20603 lt_prog_compiler_pic_CXX='-PIC'
20607 esac
20609 sunos4*)
20610 case $cc_basename in
20611 CC*)
20612 # Sun C++ 4.x
20613 lt_prog_compiler_pic_CXX='-pic'
20614 lt_prog_compiler_static_CXX='-Bstatic'
20616 lcc*)
20617 # Lucid
20618 lt_prog_compiler_pic_CXX='-pic'
20622 esac
20624 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20625 case $cc_basename in
20626 CC*)
20627 lt_prog_compiler_wl_CXX='-Wl,'
20628 lt_prog_compiler_pic_CXX='-KPIC'
20629 lt_prog_compiler_static_CXX='-Bstatic'
20631 esac
20633 tandem*)
20634 case $cc_basename in
20635 NCC*)
20636 # NonStop-UX NCC 3.20
20637 lt_prog_compiler_pic_CXX='-KPIC'
20641 esac
20643 vxworks*)
20646 lt_prog_compiler_can_build_shared_CXX=no
20648 esac
20651 case $host_os in
20652 # For platforms which do not support PIC, -DPIC is meaningless:
20653 *djgpp*)
20654 lt_prog_compiler_pic_CXX=
20657 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20659 esac
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20661 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20666 # Check to make sure the PIC flag actually works.
20668 if test -n "$lt_prog_compiler_pic_CXX"; then
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20670 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20671 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 lt_cv_prog_compiler_pic_works_CXX=no
20675 ac_outfile=conftest.$ac_objext
20676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20677 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20678 # Insert the option either (1) after the last *FLAGS variable, or
20679 # (2) before a word containing "conftest.", or (3) at the end.
20680 # Note that $ac_compile itself does not contain backslashes and begins
20681 # with a dollar sign (not a hyphen), so the echo should work correctly.
20682 # The option is referenced via a variable to avoid confusing sed.
20683 lt_compile=`echo "$ac_compile" | $SED \
20684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20686 -e 's:$: $lt_compiler_flag:'`
20687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20688 (eval "$lt_compile" 2>conftest.err)
20689 ac_status=$?
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 if (exit $ac_status) && test -s "$ac_outfile"; then
20693 # The compiler can only warn and ignore the option if not recognized
20694 # So say no if there are warnings other than the usual output.
20695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20698 lt_cv_prog_compiler_pic_works_CXX=yes
20701 $RM conftest*
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20705 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20707 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20708 case $lt_prog_compiler_pic_CXX in
20709 "" | " "*) ;;
20710 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20711 esac
20712 else
20713 lt_prog_compiler_pic_CXX=
20714 lt_prog_compiler_can_build_shared_CXX=no
20722 # Check to make sure the static flag actually works.
20724 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20726 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20727 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20728 $as_echo_n "(cached) " >&6
20729 else
20730 lt_cv_prog_compiler_static_works_CXX=no
20731 save_LDFLAGS="$LDFLAGS"
20732 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20733 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20735 # The linker can only warn and ignore the option if not recognized
20736 # So say no if there are warnings
20737 if test -s conftest.err; then
20738 # Append any errors to the config.log.
20739 cat conftest.err 1>&5
20740 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20742 if diff conftest.exp conftest.er2 >/dev/null; then
20743 lt_cv_prog_compiler_static_works_CXX=yes
20745 else
20746 lt_cv_prog_compiler_static_works_CXX=yes
20749 $RM -r conftest*
20750 LDFLAGS="$save_LDFLAGS"
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20754 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20756 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20758 else
20759 lt_prog_compiler_static_CXX=
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20767 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20770 lt_cv_prog_compiler_c_o_CXX=no
20771 $RM -r conftest 2>/dev/null
20772 mkdir conftest
20773 cd conftest
20774 mkdir out
20775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20777 lt_compiler_flag="-o out/conftest2.$ac_objext"
20778 # Insert the option either (1) after the last *FLAGS variable, or
20779 # (2) before a word containing "conftest.", or (3) at the end.
20780 # Note that $ac_compile itself does not contain backslashes and begins
20781 # with a dollar sign (not a hyphen), so the echo should work correctly.
20782 lt_compile=`echo "$ac_compile" | $SED \
20783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20785 -e 's:$: $lt_compiler_flag:'`
20786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20787 (eval "$lt_compile" 2>out/conftest.err)
20788 ac_status=$?
20789 cat out/conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20792 then
20793 # The compiler can only warn and ignore the option if not recognized
20794 # So say no if there are warnings
20795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20798 lt_cv_prog_compiler_c_o_CXX=yes
20801 chmod u+w . 2>&5
20802 $RM conftest*
20803 # SGI C++ compiler will create directory out/ii_files/ for
20804 # template instantiation
20805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20806 $RM out/* && rmdir out
20807 cd ..
20808 $RM -r conftest
20809 $RM conftest*
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20813 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20821 else
20822 lt_cv_prog_compiler_c_o_CXX=no
20823 $RM -r conftest 2>/dev/null
20824 mkdir conftest
20825 cd conftest
20826 mkdir out
20827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20829 lt_compiler_flag="-o out/conftest2.$ac_objext"
20830 # Insert the option either (1) after the last *FLAGS variable, or
20831 # (2) before a word containing "conftest.", or (3) at the end.
20832 # Note that $ac_compile itself does not contain backslashes and begins
20833 # with a dollar sign (not a hyphen), so the echo should work correctly.
20834 lt_compile=`echo "$ac_compile" | $SED \
20835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20837 -e 's:$: $lt_compiler_flag:'`
20838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20839 (eval "$lt_compile" 2>out/conftest.err)
20840 ac_status=$?
20841 cat out/conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20844 then
20845 # The compiler can only warn and ignore the option if not recognized
20846 # So say no if there are warnings
20847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20850 lt_cv_prog_compiler_c_o_CXX=yes
20853 chmod u+w . 2>&5
20854 $RM conftest*
20855 # SGI C++ compiler will create directory out/ii_files/ for
20856 # template instantiation
20857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20858 $RM out/* && rmdir out
20859 cd ..
20860 $RM -r conftest
20861 $RM conftest*
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20865 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20870 hard_links="nottested"
20871 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20872 # do not overwrite the value of need_locks provided by the user
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20874 $as_echo_n "checking if we can lock with hard links... " >&6; }
20875 hard_links=yes
20876 $RM conftest*
20877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20878 touch conftest.a
20879 ln conftest.a conftest.b 2>&5 || hard_links=no
20880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20882 $as_echo "$hard_links" >&6; }
20883 if test "$hard_links" = no; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20885 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20886 need_locks=warn
20888 else
20889 need_locks=no
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20897 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20898 case $host_os in
20899 aix[4-9]*)
20900 # If we're using GNU nm, then we don't want the "-C" option.
20901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20902 # Also, AIX nm treats weak defined symbols like other global defined
20903 # symbols, whereas GNU nm marks them as "W".
20904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20905 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'
20906 else
20907 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20910 pw32*)
20911 export_symbols_cmds_CXX="$ltdll_cmds"
20913 cygwin* | mingw* | cegcc*)
20914 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'
20917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20919 esac
20920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20923 $as_echo "$ld_shlibs_CXX" >&6; }
20924 test "$ld_shlibs_CXX" = no && can_build_shared=no
20926 with_gnu_ld_CXX=$with_gnu_ld
20934 # Do we need to explicitly link libc?
20936 case "x$archive_cmds_need_lc_CXX" in
20937 x|xyes)
20938 # Assume -lc should be added
20939 archive_cmds_need_lc_CXX=yes
20941 if test "$enable_shared" = yes && test "$GCC" = yes; then
20942 case $archive_cmds_CXX in
20943 *'~'*)
20944 # FIXME: we may have to deal with multi-command sequences.
20946 '$CC '*)
20947 # Test whether the compiler implicitly links with -lc since on some
20948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20949 # to ld, don't add -lc before -lgcc.
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20952 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20954 else
20955 $RM conftest*
20956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20959 (eval $ac_compile) 2>&5
20960 ac_status=$?
20961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20962 test $ac_status = 0; } 2>conftest.err; then
20963 soname=conftest
20964 lib=conftest
20965 libobjs=conftest.$ac_objext
20966 deplibs=
20967 wl=$lt_prog_compiler_wl_CXX
20968 pic_flag=$lt_prog_compiler_pic_CXX
20969 compiler_flags=-v
20970 linker_flags=-v
20971 verstring=
20972 output_objdir=.
20973 libname=conftest
20974 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20975 allow_undefined_flag_CXX=
20976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20977 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20978 ac_status=$?
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }
20981 then
20982 lt_cv_archive_cmds_need_lc_CXX=no
20983 else
20984 lt_cv_archive_cmds_need_lc_CXX=yes
20986 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20987 else
20988 cat conftest.err 1>&5
20990 $RM conftest*
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20994 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20995 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20997 esac
21000 esac
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21068 library_names_spec=
21069 libname_spec='lib$name'
21070 soname_spec=
21071 shrext_cmds=".so"
21072 postinstall_cmds=
21073 postuninstall_cmds=
21074 finish_cmds=
21075 finish_eval=
21076 shlibpath_var=
21077 shlibpath_overrides_runpath=unknown
21078 version_type=none
21079 dynamic_linker="$host_os ld.so"
21080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21081 need_lib_prefix=unknown
21082 hardcode_into_libs=no
21084 # when you set need_version to no, make sure it does not cause -set_version
21085 # flags to be left without arguments
21086 need_version=unknown
21088 case $host_os in
21089 aix3*)
21090 version_type=linux
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21092 shlibpath_var=LIBPATH
21094 # AIX 3 has no versioning support, so we append a major version to the name.
21095 soname_spec='${libname}${release}${shared_ext}$major'
21098 aix[4-9]*)
21099 version_type=linux
21100 need_lib_prefix=no
21101 need_version=no
21102 hardcode_into_libs=yes
21103 if test "$host_cpu" = ia64; then
21104 # AIX 5 supports IA64
21105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21106 shlibpath_var=LD_LIBRARY_PATH
21107 else
21108 # With GCC up to 2.95.x, collect2 would create an import file
21109 # for dependence libraries. The import file would start with
21110 # the line `#! .'. This would cause the generated library to
21111 # depend on `.', always an invalid library. This was fixed in
21112 # development snapshots of GCC prior to 3.0.
21113 case $host_os in
21114 aix4 | aix4.[01] | aix4.[01].*)
21115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21116 echo ' yes '
21117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21119 else
21120 can_build_shared=no
21123 esac
21124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21125 # soname into executable. Probably we can add versioning support to
21126 # collect2, so additional links can be useful in future.
21127 if test "$aix_use_runtimelinking" = yes; then
21128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21129 # instead of lib<name>.a to let people know that these are not
21130 # typical AIX shared libraries.
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 else
21133 # We preserve .a as extension for shared libraries through AIX4.2
21134 # and later when we are not doing run time linking.
21135 library_names_spec='${libname}${release}.a $libname.a'
21136 soname_spec='${libname}${release}${shared_ext}$major'
21138 shlibpath_var=LIBPATH
21142 amigaos*)
21143 case $host_cpu in
21144 powerpc)
21145 # Since July 2007 AmigaOS4 officially supports .so libraries.
21146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21149 m68k)
21150 library_names_spec='$libname.ixlibrary $libname.a'
21151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21152 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'
21154 esac
21157 beos*)
21158 library_names_spec='${libname}${shared_ext}'
21159 dynamic_linker="$host_os ld.so"
21160 shlibpath_var=LIBRARY_PATH
21163 bsdi[45]*)
21164 version_type=linux
21165 need_version=no
21166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21167 soname_spec='${libname}${release}${shared_ext}$major'
21168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21169 shlibpath_var=LD_LIBRARY_PATH
21170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21172 # the default ld.so.conf also contains /usr/contrib/lib and
21173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21174 # libtool to hard-code these into programs
21177 cygwin* | mingw* | pw32* | cegcc*)
21178 version_type=windows
21179 shrext_cmds=".dll"
21180 need_version=no
21181 need_lib_prefix=no
21183 case $GCC,$host_os in
21184 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21185 library_names_spec='$libname.dll.a'
21186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21187 postinstall_cmds='base_file=`basename \${file}`~
21188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21189 dldir=$destdir/`dirname \$dlpath`~
21190 test -d \$dldir || mkdir -p \$dldir~
21191 $install_prog $dir/$dlname \$dldir/$dlname~
21192 chmod a+x \$dldir/$dlname~
21193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21197 dlpath=$dir/\$dldll~
21198 $RM \$dlpath'
21199 shlibpath_overrides_runpath=yes
21201 case $host_os in
21202 cygwin*)
21203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21207 mingw* | cegcc*)
21208 # MinGW DLLs use traditional 'lib' prefix
21209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21211 pw32*)
21212 # pw32 DLLs use 'pw' prefix rather than 'lib'
21213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21215 esac
21219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21221 esac
21222 dynamic_linker='Win32 ld.exe'
21223 # FIXME: first we should search . and the directory the executable is in
21224 shlibpath_var=PATH
21227 darwin* | rhapsody*)
21228 dynamic_linker="$host_os dyld"
21229 version_type=darwin
21230 need_lib_prefix=no
21231 need_version=no
21232 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21233 soname_spec='${libname}${release}${major}$shared_ext'
21234 shlibpath_overrides_runpath=yes
21235 shlibpath_var=DYLD_LIBRARY_PATH
21236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21241 dgux*)
21242 version_type=linux
21243 need_lib_prefix=no
21244 need_version=no
21245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21246 soname_spec='${libname}${release}${shared_ext}$major'
21247 shlibpath_var=LD_LIBRARY_PATH
21250 freebsd* | dragonfly*)
21251 # DragonFly does not have aout. When/if they implement a new
21252 # versioning mechanism, adjust this.
21253 if test -x /usr/bin/objformat; then
21254 objformat=`/usr/bin/objformat`
21255 else
21256 case $host_os in
21257 freebsd[23].*) objformat=aout ;;
21258 *) objformat=elf ;;
21259 esac
21261 version_type=freebsd-$objformat
21262 case $version_type in
21263 freebsd-elf*)
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21265 need_version=no
21266 need_lib_prefix=no
21268 freebsd-*)
21269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21270 need_version=yes
21272 esac
21273 shlibpath_var=LD_LIBRARY_PATH
21274 case $host_os in
21275 freebsd2.*)
21276 shlibpath_overrides_runpath=yes
21278 freebsd3.[01]* | freebsdelf3.[01]*)
21279 shlibpath_overrides_runpath=yes
21280 hardcode_into_libs=yes
21282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21284 shlibpath_overrides_runpath=no
21285 hardcode_into_libs=yes
21287 *) # from 4.6 on, and DragonFly
21288 shlibpath_overrides_runpath=yes
21289 hardcode_into_libs=yes
21291 esac
21294 gnu*)
21295 version_type=linux
21296 need_lib_prefix=no
21297 need_version=no
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21299 soname_spec='${libname}${release}${shared_ext}$major'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 hardcode_into_libs=yes
21304 haiku*)
21305 version_type=linux
21306 need_lib_prefix=no
21307 need_version=no
21308 dynamic_linker="$host_os runtime_loader"
21309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21310 soname_spec='${libname}${release}${shared_ext}$major'
21311 shlibpath_var=LIBRARY_PATH
21312 shlibpath_overrides_runpath=yes
21313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21314 hardcode_into_libs=yes
21317 hpux9* | hpux10* | hpux11*)
21318 # Give a soname corresponding to the major version so that dld.sl refuses to
21319 # link against other versions.
21320 version_type=sunos
21321 need_lib_prefix=no
21322 need_version=no
21323 case $host_cpu in
21324 ia64*)
21325 shrext_cmds='.so'
21326 hardcode_into_libs=yes
21327 dynamic_linker="$host_os dld.so"
21328 shlibpath_var=LD_LIBRARY_PATH
21329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21331 soname_spec='${libname}${release}${shared_ext}$major'
21332 if test "X$HPUX_IA64_MODE" = X32; then
21333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21334 else
21335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21339 hppa*64*)
21340 shrext_cmds='.sl'
21341 hardcode_into_libs=yes
21342 dynamic_linker="$host_os dld.sl"
21343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21346 soname_spec='${libname}${release}${shared_ext}$major'
21347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21351 shrext_cmds='.sl'
21352 dynamic_linker="$host_os dld.sl"
21353 shlibpath_var=SHLIB_PATH
21354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21356 soname_spec='${libname}${release}${shared_ext}$major'
21358 esac
21359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21360 postinstall_cmds='chmod 555 $lib'
21361 # or fails outright, so override atomically:
21362 install_override_mode=555
21365 interix[3-9]*)
21366 version_type=linux
21367 need_lib_prefix=no
21368 need_version=no
21369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21370 soname_spec='${libname}${release}${shared_ext}$major'
21371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21372 shlibpath_var=LD_LIBRARY_PATH
21373 shlibpath_overrides_runpath=no
21374 hardcode_into_libs=yes
21377 irix5* | irix6* | nonstopux*)
21378 case $host_os in
21379 nonstopux*) version_type=nonstopux ;;
21381 if test "$lt_cv_prog_gnu_ld" = yes; then
21382 version_type=linux
21383 else
21384 version_type=irix
21385 fi ;;
21386 esac
21387 need_lib_prefix=no
21388 need_version=no
21389 soname_spec='${libname}${release}${shared_ext}$major'
21390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21391 case $host_os in
21392 irix5* | nonstopux*)
21393 libsuff= shlibsuff=
21396 case $LD in # libtool.m4 will add one of these switches to LD
21397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21398 libsuff= shlibsuff= libmagic=32-bit;;
21399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21400 libsuff=32 shlibsuff=N32 libmagic=N32;;
21401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21403 *) libsuff= shlibsuff= libmagic=never-match;;
21404 esac
21406 esac
21407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21408 shlibpath_overrides_runpath=no
21409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21411 hardcode_into_libs=yes
21414 # No shared lib support for Linux oldld, aout, or coff.
21415 linux*oldld* | linux*aout* | linux*coff*)
21416 dynamic_linker=no
21419 # This must be Linux ELF.
21420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21421 version_type=linux
21422 need_lib_prefix=no
21423 need_version=no
21424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21425 soname_spec='${libname}${release}${shared_ext}$major'
21426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 shlibpath_overrides_runpath=no
21430 # Some binutils ld are patched to set DT_RUNPATH
21431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21432 $as_echo_n "(cached) " >&6
21433 else
21434 lt_cv_shlibpath_overrides_runpath=no
21435 save_LDFLAGS=$LDFLAGS
21436 save_libdir=$libdir
21437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21443 main ()
21447 return 0;
21449 _ACEOF
21450 if ac_fn_cxx_try_link "$LINENO"; then :
21451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21452 lt_cv_shlibpath_overrides_runpath=yes
21455 rm -f core conftest.err conftest.$ac_objext \
21456 conftest$ac_exeext conftest.$ac_ext
21457 LDFLAGS=$save_LDFLAGS
21458 libdir=$save_libdir
21462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21464 # This implies no fast_install, which is unacceptable.
21465 # Some rework will be needed to allow for fast_install
21466 # before this can be enabled.
21467 hardcode_into_libs=yes
21469 # Append ld.so.conf contents to the search path
21470 if test -f /etc/ld.so.conf; then
21471 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' ' '`
21472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21475 # We used to test for /lib/ld.so.1 and disable shared libraries on
21476 # powerpc, because MkLinux only supported shared libraries with the
21477 # GNU dynamic linker. Since this was broken with cross compilers,
21478 # most powerpc-linux boxes support dynamic linking these days and
21479 # people can always --disable-shared, the test was removed, and we
21480 # assume the GNU/Linux dynamic linker is in use.
21481 dynamic_linker='GNU/Linux ld.so'
21484 netbsd*)
21485 version_type=sunos
21486 need_lib_prefix=no
21487 need_version=no
21488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21491 dynamic_linker='NetBSD (a.out) ld.so'
21492 else
21493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21494 soname_spec='${libname}${release}${shared_ext}$major'
21495 dynamic_linker='NetBSD ld.elf_so'
21497 shlibpath_var=LD_LIBRARY_PATH
21498 shlibpath_overrides_runpath=yes
21499 hardcode_into_libs=yes
21502 newsos6)
21503 version_type=linux
21504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21505 shlibpath_var=LD_LIBRARY_PATH
21506 shlibpath_overrides_runpath=yes
21509 *nto* | *qnx*)
21510 version_type=qnx
21511 need_lib_prefix=no
21512 need_version=no
21513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21514 soname_spec='${libname}${release}${shared_ext}$major'
21515 shlibpath_var=LD_LIBRARY_PATH
21516 shlibpath_overrides_runpath=no
21517 hardcode_into_libs=yes
21518 dynamic_linker='ldqnx.so'
21521 openbsd*)
21522 version_type=sunos
21523 sys_lib_dlsearch_path_spec="/usr/lib"
21524 need_lib_prefix=no
21525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21526 case $host_os in
21527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21528 *) need_version=no ;;
21529 esac
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21532 shlibpath_var=LD_LIBRARY_PATH
21533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21534 case $host_os in
21535 openbsd2.[89] | openbsd2.[89].*)
21536 shlibpath_overrides_runpath=no
21539 shlibpath_overrides_runpath=yes
21541 esac
21542 else
21543 shlibpath_overrides_runpath=yes
21547 os2*)
21548 libname_spec='$name'
21549 shrext_cmds=".dll"
21550 need_lib_prefix=no
21551 library_names_spec='$libname${shared_ext} $libname.a'
21552 dynamic_linker='OS/2 ld.exe'
21553 shlibpath_var=LIBPATH
21556 osf3* | osf4* | osf5*)
21557 version_type=osf
21558 need_lib_prefix=no
21559 need_version=no
21560 soname_spec='${libname}${release}${shared_ext}$major'
21561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562 shlibpath_var=LD_LIBRARY_PATH
21563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21567 rdos*)
21568 dynamic_linker=no
21571 solaris*)
21572 version_type=linux
21573 need_lib_prefix=no
21574 need_version=no
21575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 soname_spec='${libname}${release}${shared_ext}$major'
21577 shlibpath_var=LD_LIBRARY_PATH
21578 shlibpath_overrides_runpath=yes
21579 hardcode_into_libs=yes
21580 # ldd complains unless libraries are executable
21581 postinstall_cmds='chmod +x $lib'
21584 sunos4*)
21585 version_type=sunos
21586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21588 shlibpath_var=LD_LIBRARY_PATH
21589 shlibpath_overrides_runpath=yes
21590 if test "$with_gnu_ld" = yes; then
21591 need_lib_prefix=no
21593 need_version=yes
21596 sysv4 | sysv4.3*)
21597 version_type=linux
21598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21599 soname_spec='${libname}${release}${shared_ext}$major'
21600 shlibpath_var=LD_LIBRARY_PATH
21601 case $host_vendor in
21602 sni)
21603 shlibpath_overrides_runpath=no
21604 need_lib_prefix=no
21605 runpath_var=LD_RUN_PATH
21607 siemens)
21608 need_lib_prefix=no
21610 motorola)
21611 need_lib_prefix=no
21612 need_version=no
21613 shlibpath_overrides_runpath=no
21614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21616 esac
21619 sysv4*MP*)
21620 if test -d /usr/nec ;then
21621 version_type=linux
21622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21623 soname_spec='$libname${shared_ext}.$major'
21624 shlibpath_var=LD_LIBRARY_PATH
21628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21629 version_type=freebsd-elf
21630 need_lib_prefix=no
21631 need_version=no
21632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21633 soname_spec='${libname}${release}${shared_ext}$major'
21634 shlibpath_var=LD_LIBRARY_PATH
21635 shlibpath_overrides_runpath=yes
21636 hardcode_into_libs=yes
21637 if test "$with_gnu_ld" = yes; then
21638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21639 else
21640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21641 case $host_os in
21642 sco3.2v5*)
21643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21645 esac
21647 sys_lib_dlsearch_path_spec='/usr/lib'
21650 tpf*)
21651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21652 version_type=linux
21653 need_lib_prefix=no
21654 need_version=no
21655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21656 shlibpath_var=LD_LIBRARY_PATH
21657 shlibpath_overrides_runpath=no
21658 hardcode_into_libs=yes
21661 uts4*)
21662 version_type=linux
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 shlibpath_var=LD_LIBRARY_PATH
21669 dynamic_linker=no
21671 esac
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21673 $as_echo "$dynamic_linker" >&6; }
21674 test "$dynamic_linker" = no && can_build_shared=no
21676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21677 if test "$GCC" = yes; then
21678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21726 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21727 hardcode_action_CXX=
21728 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21729 test -n "$runpath_var_CXX" ||
21730 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21732 # We can hardcode non-existent directories.
21733 if test "$hardcode_direct_CXX" != no &&
21734 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21735 # have to relink, otherwise we might link with an installed library
21736 # when we should be linking with a yet-to-be-installed one
21737 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21738 test "$hardcode_minus_L_CXX" != no; then
21739 # Linking always hardcodes the temporary library directory.
21740 hardcode_action_CXX=relink
21741 else
21742 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21743 hardcode_action_CXX=immediate
21745 else
21746 # We cannot hardcode anything, or else we can only hardcode existing
21747 # directories.
21748 hardcode_action_CXX=unsupported
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21751 $as_echo "$hardcode_action_CXX" >&6; }
21753 if test "$hardcode_action_CXX" = relink ||
21754 test "$inherit_rpath_CXX" = yes; then
21755 # Fast installation is not supported
21756 enable_fast_install=no
21757 elif test "$shlibpath_overrides_runpath" = yes ||
21758 test "$enable_shared" = no; then
21759 # Fast installation is not necessary
21760 enable_fast_install=needless
21769 fi # test -n "$compiler"
21771 CC=$lt_save_CC
21772 LDCXX=$LD
21773 LD=$lt_save_LD
21774 GCC=$lt_save_GCC
21775 with_gnu_ld=$lt_save_with_gnu_ld
21776 lt_cv_path_LDCXX=$lt_cv_path_LD
21777 lt_cv_path_LD=$lt_save_path_LD
21778 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21779 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21780 fi # test "$_lt_caught_CXX_error" != yes
21782 ac_ext=cpp
21783 ac_cpp='$CXXCPP $CPPFLAGS'
21784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803 # Only expand once:
21809 # Identify the assembler which will work hand-in-glove with the newly
21810 # built GCC, so that we can examine its features. This is the assembler
21811 # which will be driven by the driver program.
21813 # If build != host, and we aren't building gas in-tree, we identify a
21814 # build->target assembler and hope that it will have the same features
21815 # as the host->target assembler we'll be using.
21816 gcc_cv_gas_major_version=
21817 gcc_cv_gas_minor_version=
21818 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21820 if test "${gcc_cv_as+set}" = set; then :
21822 else
21824 if test -x "$DEFAULT_ASSEMBLER"; then
21825 gcc_cv_as="$DEFAULT_ASSEMBLER"
21826 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21827 && test -f ../gas/Makefile \
21828 && test x$build = x$host; then
21829 gcc_cv_as=../gas/as-new$build_exeext
21830 elif test -x as$build_exeext; then
21831 # Build using assembler in the current directory.
21832 gcc_cv_as=./as$build_exeext
21833 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21834 gcc_cv_as="$AS_FOR_TARGET"
21835 else
21836 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21837 set dummy $AS_FOR_TARGET; ac_word=$2
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21839 $as_echo_n "checking for $ac_word... " >&6; }
21840 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 case $gcc_cv_as in
21844 [\\/]* | ?:[\\/]*)
21845 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21851 IFS=$as_save_IFS
21852 test -z "$as_dir" && as_dir=.
21853 for ac_exec_ext in '' $ac_executable_extensions; do
21854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21857 break 2
21859 done
21860 done
21861 IFS=$as_save_IFS
21864 esac
21866 gcc_cv_as=$ac_cv_path_gcc_cv_as
21867 if test -n "$gcc_cv_as"; then
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21869 $as_echo "$gcc_cv_as" >&6; }
21870 else
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21879 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21881 case "$ORIGINAL_AS_FOR_TARGET" in
21882 ./as | ./as$build_exeext) ;;
21883 *) ac_config_files="$ac_config_files as:exec-tool.in"
21885 esac
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21888 $as_echo_n "checking what assembler to use... " >&6; }
21889 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21890 # Single tree build which includes gas. We want to prefer it
21891 # over whatever linker top-level may have detected, since
21892 # we'll use what we're building after installation anyway.
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21894 $as_echo "newly built gas" >&6; }
21895 in_tree_gas=yes
21896 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21897 for f in $gcc_cv_as_bfd_srcdir/configure \
21898 $gcc_cv_as_gas_srcdir/configure \
21899 $gcc_cv_as_gas_srcdir/configure.ac \
21900 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21901 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21902 if test x$gcc_cv_gas_version != x; then
21903 break
21905 done
21906 case $gcc_cv_gas_version in
21907 VERSION=[0-9]*) ;;
21908 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21909 esac
21910 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21911 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21912 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21913 case $gcc_cv_gas_patch_version in
21914 "") gcc_cv_gas_patch_version="0" ;;
21915 esac
21916 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21917 + $gcc_cv_gas_minor_version \) \* 1000 \
21918 + $gcc_cv_gas_patch_version`
21920 in_tree_gas_is_elf=no
21921 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21922 || (grep 'obj_format = multi' ../gas/Makefile \
21923 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21924 then
21925 in_tree_gas_is_elf=yes
21927 else
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21929 $as_echo "$gcc_cv_as" >&6; }
21930 in_tree_gas=no
21933 default_ld=
21934 # Check whether --enable-ld was given.
21935 if test "${enable_ld+set}" = set; then :
21936 enableval=$enable_ld; case "${enableval}" in
21938 default_ld=ld.gold
21940 esac
21944 install_gold_as_default=no
21945 # Check whether --enable-gold was given.
21946 if test "${enable_gold+set}" = set; then :
21947 enableval=$enable_gold; case "${enableval}" in
21948 default)
21949 install_gold_as_default=yes
21951 yes)
21952 if test x${default_ld} != x; then
21953 install_gold_as_default=yes
21959 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21961 esac
21965 # Identify the linker which will work hand-in-glove with the newly
21966 # built GCC, so that we can examine its features. This is the linker
21967 # which will be driven by the driver program.
21969 # If build != host, and we aren't building gas in-tree, we identify a
21970 # build->target linker and hope that it will have the same features
21971 # as the host->target linker we'll be using.
21972 gcc_cv_gld_major_version=
21973 gcc_cv_gld_minor_version=
21974 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21975 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21976 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21978 if test "${gcc_cv_ld+set}" = set; then :
21980 else
21982 if test -x "$DEFAULT_LINKER"; then
21983 gcc_cv_ld="$DEFAULT_LINKER"
21984 elif test $install_gold_as_default = yes \
21985 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21986 && test -f ../gold/Makefile \
21987 && test x$build = x$host; then
21988 gcc_cv_ld=../gold/ld-new$build_exeext
21989 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21990 && test -f ../ld/Makefile \
21991 && test x$build = x$host; then
21992 gcc_cv_ld=../ld/ld-new$build_exeext
21993 elif test -x collect-ld$build_exeext; then
21994 # Build using linker in the current directory.
21995 gcc_cv_ld=./collect-ld$build_exeext
21996 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21997 gcc_cv_ld="$LD_FOR_TARGET"
21998 else
21999 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22000 set dummy $LD_FOR_TARGET; ac_word=$2
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22002 $as_echo_n "checking for $ac_word... " >&6; }
22003 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 case $gcc_cv_ld in
22007 [\\/]* | ?:[\\/]*)
22008 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22012 for as_dir in $PATH
22014 IFS=$as_save_IFS
22015 test -z "$as_dir" && as_dir=.
22016 for ac_exec_ext in '' $ac_executable_extensions; do
22017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22018 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22020 break 2
22022 done
22023 done
22024 IFS=$as_save_IFS
22027 esac
22029 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22030 if test -n "$gcc_cv_ld"; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22032 $as_echo "$gcc_cv_ld" >&6; }
22033 else
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22042 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22043 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22044 # if the PLUGIN_LD is set ld-new, just have it as ld
22045 # as that is the installed named.
22046 if test x$PLUGIN_LD_SUFFIX = xld-new \
22047 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22048 PLUGIN_LD_SUFFIX=ld
22051 # Check whether --with-plugin-ld was given.
22052 if test "${with_plugin_ld+set}" = set; then :
22053 withval=$with_plugin_ld; if test x"$withval" != x; then
22054 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22055 PLUGIN_LD_SUFFIX="$withval"
22061 cat >>confdefs.h <<_ACEOF
22062 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22063 _ACEOF
22066 # Check to see if we are using gold instead of ld
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22068 $as_echo_n "checking whether we are using gold... " >&6; }
22069 ld_is_gold=no
22070 if test x$gcc_cv_ld != x; then
22071 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22072 | grep "GNU gold" > /dev/null; then
22073 ld_is_gold=yes
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22077 $as_echo "$ld_is_gold" >&6; }
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22080 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22081 # Check to see if default ld is not gold, but gold is
22082 # available and has support for split stack. If gcc was configured
22083 # with gold then no checking is done.
22085 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22087 # For platforms other than powerpc64*, enable as appropriate.
22089 gold_non_default=no
22090 ld_gold=`which ${gcc_cv_ld}.gold`
22091 # Make sure this gold has minimal split stack support
22092 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22093 ld_vers=`$ld_gold --version | sed 1q`
22094 gold_vers=`echo $ld_vers | sed -n \
22095 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22096 case $target in
22097 # check that the gold version contains the complete split stack support
22098 # on powerpc64 big and little endian
22099 powerpc64*-*-*)
22100 case "$gold_vers" in
22101 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22103 *) gold_non_default=no
22105 esac
22107 esac
22109 if test $gold_non_default = yes; then
22111 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22116 $as_echo "$gold_non_default" >&6; }
22118 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22120 case "$ORIGINAL_LD_FOR_TARGET" in
22121 ./collect-ld | ./collect-ld$build_exeext) ;;
22122 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22124 esac
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22127 $as_echo_n "checking what linker to use... " >&6; }
22128 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22129 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22130 # Single tree build which includes ld. We want to prefer it
22131 # over whatever linker top-level may have detected, since
22132 # we'll use what we're building after installation anyway.
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22134 $as_echo "newly built ld" >&6; }
22135 in_tree_ld=yes
22136 in_tree_ld_is_elf=no
22137 if (grep 'EMUL = .*elf' ../ld/Makefile \
22138 || grep 'EMUL = .*linux' ../ld/Makefile \
22139 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22140 in_tree_ld_is_elf=yes
22141 elif test "$ld_is_gold" = yes; then
22142 in_tree_ld_is_elf=yes
22144 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
22146 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22147 if test x$gcc_cv_gld_version != x; then
22148 break
22150 done
22151 case $gcc_cv_gld_version in
22152 VERSION=[0-9]*) ;;
22153 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22154 esac
22155 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22156 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22157 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22158 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22159 else
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22161 $as_echo "$gcc_cv_ld" >&6; }
22162 in_tree_ld=no
22163 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22164 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22165 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22171 # Figure out what nm we will be using.
22172 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22173 if test "${gcc_cv_nm+set}" = set; then :
22175 else
22177 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22178 && test -f ../binutils/Makefile \
22179 && test x$build = x$host; then
22180 gcc_cv_nm=../binutils/nm-new$build_exeext
22181 elif test -x nm$build_exeext; then
22182 gcc_cv_nm=./nm$build_exeext
22183 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22184 gcc_cv_nm="$NM_FOR_TARGET"
22185 else
22186 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22187 set dummy $NM_FOR_TARGET; ac_word=$2
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22189 $as_echo_n "checking for $ac_word... " >&6; }
22190 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22192 else
22193 case $gcc_cv_nm in
22194 [\\/]* | ?:[\\/]*)
22195 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22199 for as_dir in $PATH
22201 IFS=$as_save_IFS
22202 test -z "$as_dir" && as_dir=.
22203 for ac_exec_ext in '' $ac_executable_extensions; do
22204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22205 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22207 break 2
22209 done
22210 done
22211 IFS=$as_save_IFS
22214 esac
22216 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22217 if test -n "$gcc_cv_nm"; then
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22219 $as_echo "$gcc_cv_nm" >&6; }
22220 else
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22222 $as_echo "no" >&6; }
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22230 $as_echo_n "checking what nm to use... " >&6; }
22231 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22232 # Single tree build which includes binutils.
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22234 $as_echo "newly built nm" >&6; }
22235 in_tree_nm=yes
22236 else
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22238 $as_echo "$gcc_cv_nm" >&6; }
22239 in_tree_nm=no
22242 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22244 case "$ORIGINAL_NM_FOR_TARGET" in
22245 ./nm | ./nm$build_exeext) ;;
22246 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22248 esac
22251 # Figure out what objdump we will be using.
22252 if test "${gcc_cv_objdump+set}" = set; then :
22254 else
22256 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22257 && test -f ../binutils/Makefile \
22258 && test x$build = x$host; then
22259 # Single tree build which includes binutils.
22260 gcc_cv_objdump=../binutils/objdump$build_exeext
22261 elif test -x objdump$build_exeext; then
22262 gcc_cv_objdump=./objdump$build_exeext
22263 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22264 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22265 else
22266 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22267 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22269 $as_echo_n "checking for $ac_word... " >&6; }
22270 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22272 else
22273 case $gcc_cv_objdump in
22274 [\\/]* | ?:[\\/]*)
22275 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22279 for as_dir in $PATH
22281 IFS=$as_save_IFS
22282 test -z "$as_dir" && as_dir=.
22283 for ac_exec_ext in '' $ac_executable_extensions; do
22284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22285 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22287 break 2
22289 done
22290 done
22291 IFS=$as_save_IFS
22294 esac
22296 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22297 if test -n "$gcc_cv_objdump"; then
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22299 $as_echo "$gcc_cv_objdump" >&6; }
22300 else
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22302 $as_echo "no" >&6; }
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22310 $as_echo_n "checking what objdump to use... " >&6; }
22311 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22312 # Single tree build which includes binutils.
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22314 $as_echo "newly built objdump" >&6; }
22315 elif test x$gcc_cv_objdump = x; then
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22317 $as_echo "not found" >&6; }
22318 else
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22320 $as_echo "$gcc_cv_objdump" >&6; }
22323 # Figure out what readelf we will be using.
22324 if test "${gcc_cv_readelf+set}" = set; then :
22326 else
22328 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22329 && test -f ../binutils/Makefile \
22330 && test x$build = x$host; then
22331 # Single tree build which includes binutils.
22332 gcc_cv_readelf=../binutils/readelf$build_exeext
22333 elif test -x readelf$build_exeext; then
22334 gcc_cv_readelf=./readelf$build_exeext
22335 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22336 gcc_cv_readelf="$READELF_FOR_TARGET"
22337 else
22338 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22339 set dummy $READELF_FOR_TARGET; ac_word=$2
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22341 $as_echo_n "checking for $ac_word... " >&6; }
22342 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
22344 else
22345 case $gcc_cv_readelf in
22346 [\\/]* | ?:[\\/]*)
22347 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22351 for as_dir in $PATH
22353 IFS=$as_save_IFS
22354 test -z "$as_dir" && as_dir=.
22355 for ac_exec_ext in '' $ac_executable_extensions; do
22356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22357 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22359 break 2
22361 done
22362 done
22363 IFS=$as_save_IFS
22366 esac
22368 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22369 if test -n "$gcc_cv_readelf"; then
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22371 $as_echo "$gcc_cv_readelf" >&6; }
22372 else
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22374 $as_echo "no" >&6; }
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22382 $as_echo_n "checking what readelf to use... " >&6; }
22383 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22384 # Single tree build which includes binutils.
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22386 $as_echo "newly built readelf" >&6; }
22387 elif test x$gcc_cv_readelf = x; then
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22389 $as_echo "not found" >&6; }
22390 else
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22392 $as_echo "$gcc_cv_readelf" >&6; }
22395 # Figure out what assembler alignment features are present.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22397 $as_echo_n "checking assembler flags... " >&6; }
22398 if test "${gcc_cv_as_flags+set}" = set; then :
22399 $as_echo_n "(cached) " >&6
22400 else
22401 case "$target" in
22402 i[34567]86-*-linux*)
22403 gcc_cv_as_flags=--32
22405 x86_64-*-linux-gnux32)
22406 gcc_cv_as_flags=--x32
22408 x86_64-*-linux*)
22409 gcc_cv_as_flags=--64
22411 powerpc*-*-darwin*)
22412 gcc_cv_as_flags="-arch ppc"
22415 gcc_cv_as_flags=" "
22417 esac
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22420 $as_echo "$gcc_cv_as_flags" >&6; }
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22423 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22424 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22425 $as_echo_n "(cached) " >&6
22426 else
22427 gcc_cv_as_balign_and_p2align=no
22428 if test $in_tree_gas = yes; then
22429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22430 then gcc_cv_as_balign_and_p2align=yes
22432 elif test x$gcc_cv_as != x; then
22433 $as_echo '.balign 4
22434 .p2align 2' > conftest.s
22435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; }; }
22441 then
22442 gcc_cv_as_balign_and_p2align=yes
22443 else
22444 echo "configure: failed program was" >&5
22445 cat conftest.s >&5
22447 rm -f conftest.o conftest.s
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22451 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22452 if test $gcc_cv_as_balign_and_p2align = yes; then
22454 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22460 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22461 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22463 else
22464 gcc_cv_as_max_skip_p2align=no
22465 if test $in_tree_gas = yes; then
22466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22467 then gcc_cv_as_max_skip_p2align=yes
22469 elif test x$gcc_cv_as != x; then
22470 $as_echo '.p2align 4,,7' > conftest.s
22471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22476 test $ac_status = 0; }; }
22477 then
22478 gcc_cv_as_max_skip_p2align=yes
22479 else
22480 echo "configure: failed program was" >&5
22481 cat conftest.s >&5
22483 rm -f conftest.o conftest.s
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22487 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22488 if test $gcc_cv_as_max_skip_p2align = yes; then
22490 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22496 $as_echo_n "checking assembler for .literal16... " >&6; }
22497 if test "${gcc_cv_as_literal16+set}" = set; then :
22498 $as_echo_n "(cached) " >&6
22499 else
22500 gcc_cv_as_literal16=no
22501 if test $in_tree_gas = yes; then
22502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22503 then gcc_cv_as_literal16=yes
22505 elif test x$gcc_cv_as != x; then
22506 $as_echo '.literal16' > conftest.s
22507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }
22513 then
22514 gcc_cv_as_literal16=yes
22515 else
22516 echo "configure: failed program was" >&5
22517 cat conftest.s >&5
22519 rm -f conftest.o conftest.s
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22523 $as_echo "$gcc_cv_as_literal16" >&6; }
22524 if test $gcc_cv_as_literal16 = yes; then
22526 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22532 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22533 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536 gcc_cv_as_subsection_m1=no
22537 if test $in_tree_gas = yes; then
22538 if test $in_tree_gas_is_elf = yes \
22539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22540 then gcc_cv_as_subsection_m1=yes
22542 elif test x$gcc_cv_as != x; then
22543 $as_echo 'conftest_label1: .word 0
22544 .subsection -1
22545 conftest_label2: .word 0
22546 .previous' > conftest.s
22547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22553 then
22554 if test x$gcc_cv_nm != x; then
22555 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22556 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22557 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22558 then :
22559 else gcc_cv_as_subsection_m1=yes
22561 rm -f conftest.nm1 conftest.nm2
22563 else
22564 echo "configure: failed program was" >&5
22565 cat conftest.s >&5
22567 rm -f conftest.o conftest.s
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22571 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22572 if test $gcc_cv_as_subsection_m1 = yes; then
22574 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22580 $as_echo_n "checking assembler for .weak... " >&6; }
22581 if test "${gcc_cv_as_weak+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22583 else
22584 gcc_cv_as_weak=no
22585 if test $in_tree_gas = yes; then
22586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22587 then gcc_cv_as_weak=yes
22589 elif test x$gcc_cv_as != x; then
22590 $as_echo ' .weak foobar' > conftest.s
22591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22593 (eval $ac_try) 2>&5
22594 ac_status=$?
22595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22596 test $ac_status = 0; }; }
22597 then
22598 gcc_cv_as_weak=yes
22599 else
22600 echo "configure: failed program was" >&5
22601 cat conftest.s >&5
22603 rm -f conftest.o conftest.s
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22607 $as_echo "$gcc_cv_as_weak" >&6; }
22608 if test $gcc_cv_as_weak = yes; then
22610 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22616 $as_echo_n "checking assembler for .weakref... " >&6; }
22617 if test "${gcc_cv_as_weakref+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22619 else
22620 gcc_cv_as_weakref=no
22621 if test $in_tree_gas = yes; then
22622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22623 then gcc_cv_as_weakref=yes
22625 elif test x$gcc_cv_as != x; then
22626 $as_echo ' .weakref foobar, barfnot' > conftest.s
22627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22632 test $ac_status = 0; }; }
22633 then
22634 gcc_cv_as_weakref=yes
22635 else
22636 echo "configure: failed program was" >&5
22637 cat conftest.s >&5
22639 rm -f conftest.o conftest.s
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22643 $as_echo "$gcc_cv_as_weakref" >&6; }
22644 if test $gcc_cv_as_weakref = yes; then
22646 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22652 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22653 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22655 else
22656 gcc_cv_as_nsubspa_comdat=no
22657 if test $in_tree_gas = yes; then
22658 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22659 then gcc_cv_as_nsubspa_comdat=yes
22661 elif test x$gcc_cv_as != x; then
22662 $as_echo ' .SPACE $TEXT$
22663 .NSUBSPA $CODE$,COMDAT' > conftest.s
22664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22670 then
22671 gcc_cv_as_nsubspa_comdat=yes
22672 else
22673 echo "configure: failed program was" >&5
22674 cat conftest.s >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22680 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22681 if test $gcc_cv_as_nsubspa_comdat = yes; then
22683 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22688 # .hidden needs to be supported in both the assembler and the linker,
22689 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22690 # This is irritatingly difficult to feature test for; we have to check the
22691 # date string after the version number. If we've got an in-tree
22692 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22693 # to be safe.
22694 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22695 case "${target}" in
22696 *-*-aix*)
22697 conftest_s=' .globl foobar,hidden'
22700 conftest_s=' .hidden foobar
22701 foobar:'
22703 esac
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22705 $as_echo_n "checking assembler for .hidden... " >&6; }
22706 if test "${gcc_cv_as_hidden+set}" = set; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 gcc_cv_as_hidden=no
22710 if test $in_tree_gas = yes; then
22711 if test $in_tree_gas_is_elf = yes \
22712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22713 then gcc_cv_as_hidden=yes
22715 elif test x$gcc_cv_as != x; then
22716 $as_echo "$conftest_s" > conftest.s
22717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722 test $ac_status = 0; }; }
22723 then
22724 gcc_cv_as_hidden=yes
22725 else
22726 echo "configure: failed program was" >&5
22727 cat conftest.s >&5
22729 rm -f conftest.o conftest.s
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22733 $as_echo "$gcc_cv_as_hidden" >&6; }
22736 case "${target}" in
22737 *-*-darwin*)
22738 # Darwin as has some visibility support, though with a different syntax.
22739 gcc_cv_as_hidden=yes
22741 esac
22743 # gnu_indirect_function type is an extension proposed at
22744 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22745 # selection of function implementation
22746 # Check whether --enable-gnu-indirect-function was given.
22747 if test "${enable_gnu_indirect_function+set}" = set; then :
22748 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22749 yes | no) ;;
22750 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22751 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22752 esac
22753 else
22754 enable_gnu_indirect_function="$default_gnu_indirect_function"
22758 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22762 _ACEOF
22766 if test $in_tree_ld != yes ; then
22767 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22768 if echo "$ld_ver" | grep GNU > /dev/null; then
22769 if test x"$ld_is_gold" = xyes; then
22770 # GNU gold --version looks like this:
22772 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22774 # We extract the binutils version which is more familiar and specific
22775 # than the gold version.
22776 ld_vers=`echo $ld_ver | sed -n \
22777 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22778 else
22779 # GNU ld --version looks like this:
22781 # GNU ld (GNU Binutils) 2.21.51.20110225
22782 ld_vers=`echo $ld_ver | sed -n \
22783 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22785 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'`
22786 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22787 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22788 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22789 else
22790 case "${target}" in
22791 *-*-solaris2*)
22792 # Solaris 2 ld -V output looks like this for a regular version:
22794 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22796 # but test versions add stuff at the end:
22798 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22800 # In Solaris 11.4, this was changed to
22802 # ld: Solaris ELF Utilities: 11.4-1.3123
22804 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22805 # numbers can be used in ld.so.1 feature checks even if a different
22806 # linker is configured.
22807 ld_ver=`$gcc_cv_ld -V 2>&1`
22808 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22809 ld_vers=`echo $ld_ver | sed -n \
22810 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22811 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22812 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22815 esac
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22820 $as_echo_n "checking linker for .hidden support... " >&6; }
22821 if test "${gcc_cv_ld_hidden+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22823 else
22824 if test $in_tree_ld = yes ; then
22825 gcc_cv_ld_hidden=no
22826 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 \
22827 && test $in_tree_ld_is_elf = yes; then
22828 gcc_cv_ld_hidden=yes
22830 else
22831 gcc_cv_ld_hidden=yes
22832 if test x"$ld_is_gold" = xyes; then
22834 elif echo "$ld_ver" | grep GNU > /dev/null; then
22835 case "${target}" in
22836 mmix-knuth-mmixware)
22837 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22838 gcc_cv_ld_hidden=no
22840 esac
22841 if test 0"$ld_date" -lt 20020404; then
22842 if test -n "$ld_date"; then
22843 # If there was date string, but was earlier than 2002-04-04, fail
22844 gcc_cv_ld_hidden=no
22845 elif test -z "$ld_vers"; then
22846 # If there was no date string nor ld version number, something is wrong
22847 gcc_cv_ld_hidden=no
22848 else
22849 test -z "$ld_vers_patch" && ld_vers_patch=0
22850 if test "$ld_vers_major" -lt 2; then
22851 gcc_cv_ld_hidden=no
22852 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22853 gcc_cv_ld_hidden="no"
22854 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22855 gcc_cv_ld_hidden=no
22859 else
22860 case "${target}" in
22861 *-*-aix[789]*)
22862 gcc_cv_ld_hidden=yes
22864 *-*-darwin*)
22865 # Darwin ld has some visibility support.
22866 gcc_cv_ld_hidden=yes
22868 hppa64*-*-hpux* | ia64*-*-hpux*)
22869 gcc_cv_ld_hidden=yes
22871 *-*-solaris2.1[0-9]*)
22872 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22873 # .symbolic was only added in Solaris 9 12/02.
22874 gcc_cv_ld_hidden=yes
22877 gcc_cv_ld_hidden=no
22879 esac
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22884 $as_echo "$gcc_cv_ld_hidden" >&6; }
22885 libgcc_visibility=no
22888 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22889 libgcc_visibility=yes
22891 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22896 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22897 gcc_cv_ld_ro_rw_mix=unknown
22898 if test $in_tree_ld = yes ; then
22899 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 \
22900 && test $in_tree_ld_is_elf = yes; then
22901 gcc_cv_ld_ro_rw_mix=read-write
22903 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22904 echo '.section myfoosect, "a"' > conftest1.s
22905 echo '.section myfoosect, "aw"' > conftest2.s
22906 echo '.byte 1' >> conftest2.s
22907 echo '.section myfoosect, "a"' > conftest3.s
22908 echo '.byte 0' >> conftest3.s
22909 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22910 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22911 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22912 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22913 conftest2.o conftest3.o > /dev/null 2>&1; then
22914 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22915 | sed -e '/myfoosect/!d' -e N`
22916 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22917 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22918 gcc_cv_ld_ro_rw_mix=read-only
22919 else
22920 gcc_cv_ld_ro_rw_mix=read-write
22924 rm -f conftest.* conftest[123].*
22926 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22928 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22932 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22934 # Check whether --enable-initfini-array was given.
22935 if test "${enable_initfini_array+set}" = set; then :
22936 enableval=$enable_initfini_array;
22937 else
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22940 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22941 if test "${gcc_cv_initfini_array+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22943 else
22944 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22945 case "${target}" in
22946 ia64-*)
22947 if test "$cross_compiling" = yes; then :
22948 gcc_cv_initfini_array=no
22949 else
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 #ifndef __ELF__
22954 #error Not an ELF OS
22955 #endif
22956 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22957 if it can be used. */
22958 static int x = -1;
22959 int main (void) { return x; }
22960 int foo (void) { x = 0; }
22961 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22963 _ACEOF
22964 if ac_fn_cxx_try_run "$LINENO"; then :
22965 gcc_cv_initfini_array=yes
22966 else
22967 gcc_cv_initfini_array=no
22969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22970 conftest.$ac_objext conftest.beam conftest.$ac_ext
22974 gcc_cv_initfini_array=no
22975 if test $in_tree_ld = yes ; then
22976 if test "$gcc_cv_gld_major_version" -eq 2 \
22977 -a "$gcc_cv_gld_minor_version" -ge 22 \
22978 -o "$gcc_cv_gld_major_version" -gt 2 \
22979 && test $in_tree_ld_is_elf = yes; then
22980 gcc_cv_initfini_array=yes
22982 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22983 case $target:$gas in
22984 *:yes)
22985 sh_flags='"a"'
22986 sh_type='%progbits'
22988 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22989 sh_flags='"a"'
22990 sh_type='@progbits'
22992 sparc*-*-solaris2*:no)
22993 sh_flags='#alloc'
22994 sh_type='#progbits'
22995 sh_quote='"'
22997 esac
22998 case "$target:$gnu_ld" in
22999 *:yes)
23000 cat > conftest.s <<EOF
23001 .section .dtors,$sh_flags,$sh_type
23002 .balign 4
23003 .byte 'A', 'A', 'A', 'A'
23004 .section .ctors,$sh_flags,$sh_type
23005 .balign 4
23006 .byte 'B', 'B', 'B', 'B'
23007 .section .fini_array.65530,$sh_flags,$sh_type
23008 .balign 4
23009 .byte 'C', 'C', 'C', 'C'
23010 .section .init_array.65530,$sh_flags,$sh_type
23011 .balign 4
23012 .byte 'D', 'D', 'D', 'D'
23013 .section .dtors.64528,$sh_flags,$sh_type
23014 .balign 4
23015 .byte 'E', 'E', 'E', 'E'
23016 .section .ctors.64528,$sh_flags,$sh_type
23017 .balign 4
23018 .byte 'F', 'F', 'F', 'F'
23019 .section .fini_array.01005,$sh_flags,$sh_type
23020 .balign 4
23021 .byte 'G', 'G', 'G', 'G'
23022 .section .init_array.01005,$sh_flags,$sh_type
23023 .balign 4
23024 .byte 'H', 'H', 'H', 'H'
23025 .text
23026 .globl _start
23027 _start:
23029 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23030 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23031 && $gcc_cv_objdump -s -j .init_array conftest \
23032 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23033 && $gcc_cv_objdump -s -j .fini_array conftest \
23034 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23035 gcc_cv_initfini_array=yes
23038 *-*-solaris2*:no)
23039 # When Solaris ld added constructor priority support, it was
23040 # decided to only handle .init_array.N/.fini_array.N since
23041 # there was no need for backwards compatibility with
23042 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23043 # sections with correct execution order resp. to
23044 # .init_array/.fini_array, while gld merges them into
23045 # .init_array/.fini_array.
23046 cat > conftest.s <<EOF
23047 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23048 .align 4
23049 .byte 'C', 'C', 'C', 'C'
23050 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23051 .align 4
23052 .byte 'D', 'D', 'D', 'D'
23053 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23054 .align 4
23055 .byte 'G', 'G', 'G', 'G'
23056 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23057 .align 4
23058 .byte 'H', 'H', 'H', 'H'
23059 .text
23060 .globl _start
23061 _start:
23063 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23064 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23065 && $gcc_cv_objdump -s -j .init_array conftest \
23066 | grep HHHHDDDD > /dev/null 2>&1 \
23067 && $gcc_cv_objdump -s -j .fini_array conftest \
23068 | grep GGGGCCCC > /dev/null 2>&1; then
23069 gcc_cv_initfini_array=yes
23072 esac
23073 rm -f conftest conftest.*
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23078 #ifndef __ELF__
23079 # error Not an ELF OS
23080 #endif
23081 #include <stdlib.h>
23082 #if defined __GLIBC_PREREQ
23083 # if __GLIBC_PREREQ (2, 4)
23084 # else
23085 # error GLIBC 2.4 required
23086 # endif
23087 #else
23088 # if defined __sun__ && defined __svr4__
23089 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23090 # else
23091 # error The C library not known to support .init_array/.fini_array
23092 # endif
23093 #endif
23095 _ACEOF
23096 if ac_fn_cxx_try_cpp "$LINENO"; then :
23098 else
23099 gcc_cv_initfini_array=no
23101 rm -f conftest.err conftest.$ac_ext;;
23102 esac
23103 else
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23105 $as_echo_n "checking cross compile... guessing... " >&6; }
23106 gcc_cv_initfini_array=no
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23110 $as_echo "$gcc_cv_initfini_array" >&6; }
23111 enable_initfini_array=$gcc_cv_initfini_array
23116 cat >>confdefs.h <<_ACEOF
23117 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23118 _ACEOF
23122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23124 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23125 if test "${gcc_cv_as_leb128+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23127 else
23128 gcc_cv_as_leb128=no
23129 if test $in_tree_gas = yes; then
23130 if test $in_tree_gas_is_elf = yes \
23131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23132 then gcc_cv_as_leb128=yes
23134 elif test x$gcc_cv_as != x; then
23135 $as_echo ' .data
23136 .uleb128 L2 - L1
23138 .uleb128 1280
23139 .sleb128 -1010
23140 L2:' > conftest.s
23141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23147 then
23148 # GAS versions before 2.11 do not support uleb128,
23149 # despite appearing to.
23150 # ??? There exists an elf-specific test that will crash
23151 # the assembler. Perhaps it's better to figure out whether
23152 # arbitrary sections are supported and try the test.
23153 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23154 if echo "$as_ver" | grep GNU > /dev/null; then
23155 as_vers=`echo $as_ver | sed -n \
23156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23157 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23158 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23159 if test $as_major -eq 2 && test $as_minor -lt 11
23160 then :
23161 else gcc_cv_as_leb128=yes
23164 else
23165 echo "configure: failed program was" >&5
23166 cat conftest.s >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23172 $as_echo "$gcc_cv_as_leb128" >&6; }
23173 if test $gcc_cv_as_leb128 = yes; then
23175 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23178 if test $gcc_cv_as_leb128 != yes; then
23180 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23184 # Determine if an .eh_frame section is read-only.
23185 gcc_fn_eh_frame_ro () {
23186 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23187 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23188 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23191 # Check if we have assembler support for unwind directives.
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23193 $as_echo_n "checking assembler for cfi directives... " >&6; }
23194 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23197 gcc_cv_as_cfi_directive=no
23198 if test x$gcc_cv_as != x; then
23199 $as_echo ' .text
23200 .cfi_startproc
23201 .cfi_offset 0, 0
23202 .cfi_same_value 1
23203 .cfi_def_cfa 1, 2
23204 .cfi_escape 1, 2, 3, 4, 5
23205 .cfi_endproc' > conftest.s
23206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23212 then
23213 case "$target" in
23214 *-*-solaris*)
23215 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23216 # read-only and read-write sections, we need to make sure that the
23217 # assembler used emits read-write .eh_frame sections.
23218 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23219 gcc_cv_as_cfi_directive=yes
23220 elif test "x$gcc_cv_objdump" = x; then
23221 # No objdump, err on the side of caution.
23222 gcc_cv_as_cfi_directive=no
23223 else
23224 if test x$gas = xyes; then
23225 as_32_opt="--32"
23226 as_64_opt="--64"
23227 else
23228 as_32_opt="-m32"
23229 as_64_opt="-m64"
23231 case "$target" in
23232 sparc*-*-solaris2.*)
23233 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23234 if gcc_fn_eh_frame_ro $as_32_opt \
23235 || gcc_fn_eh_frame_ro $as_64_opt; then
23236 gcc_cv_as_cfi_directive=no
23237 else
23238 gcc_cv_as_cfi_directive=yes
23241 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23242 # On Solaris/x86, make sure that GCC and assembler agree on using
23243 # read-only .eh_frame sections for 64-bit.
23244 if gcc_fn_eh_frame_ro $as_32_opt; then
23245 gcc_cv_as_cfi_directive=no
23246 elif gcc_fn_eh_frame_ro $as_64_opt; then
23247 gcc_cv_as_cfi_directive=yes
23248 else
23249 gcc_cv_as_cfi_directive=no
23252 esac
23255 *-*-*)
23256 gcc_cv_as_cfi_directive=yes
23258 esac
23259 else
23260 echo "configure: failed program was" >&5
23261 cat conftest.s >&5
23263 rm -f conftest.o conftest.s
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23267 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23270 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23272 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23273 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 gcc_cv_as_cfi_advance_working=no
23277 if test x$gcc_cv_as != x; then
23278 $as_echo ' .text
23279 .cfi_startproc
23280 .cfi_adjust_cfa_offset 64
23281 .skip 75040, 0
23282 .cfi_adjust_cfa_offset 128
23283 .cfi_endproc' > conftest.s
23284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }
23290 then
23292 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23293 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23294 gcc_cv_as_cfi_advance_working=yes
23297 else
23298 echo "configure: failed program was" >&5
23299 cat conftest.s >&5
23301 rm -f conftest.o conftest.s
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23305 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23308 else
23309 # no objdump, err on the side of caution
23310 gcc_cv_as_cfi_advance_working=no
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23316 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23317 _ACEOF
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23322 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23323 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 gcc_cv_as_cfi_personality_directive=no
23327 if test x$gcc_cv_as != x; then
23328 $as_echo ' .text
23329 .cfi_startproc
23330 .cfi_personality 0, symbol
23331 .cfi_endproc' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 gcc_cv_as_cfi_personality_directive=yes
23340 else
23341 echo "configure: failed program was" >&5
23342 cat conftest.s >&5
23344 rm -f conftest.o conftest.s
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23348 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23352 cat >>confdefs.h <<_ACEOF
23353 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23354 then echo 1; else echo 0; fi`
23355 _ACEOF
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23359 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23360 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363 gcc_cv_as_cfi_sections_directive=no
23364 if test x$gcc_cv_as != x; then
23365 $as_echo ' .text
23366 .cfi_sections .debug_frame, .eh_frame
23367 .cfi_startproc
23368 .cfi_endproc' > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 case $target_os in
23377 win32 | pe | cygwin* | mingw32*)
23378 # Need to check that we generated the correct relocation for the
23379 # .debug_frame section. This was fixed for binutils 2.21.
23380 gcc_cv_as_cfi_sections_directive=no
23381 if test "x$gcc_cv_objdump" != x; then
23382 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23383 grep secrel > /dev/null; then
23384 gcc_cv_as_cfi_sections_directive=yes
23389 gcc_cv_as_cfi_sections_directive=yes
23391 esac
23392 else
23393 echo "configure: failed program was" >&5
23394 cat conftest.s >&5
23396 rm -f conftest.o conftest.s
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23400 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23407 then echo 1; else echo 0; fi`
23408 _ACEOF
23411 # GAS versions up to and including 2.11.0 may mis-optimize
23412 # .eh_frame data.
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23414 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23415 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23416 $as_echo_n "(cached) " >&6
23417 else
23418 gcc_cv_as_eh_frame=no
23419 if test $in_tree_gas = yes; then
23420 if test $in_tree_gas_is_elf = yes \
23421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23422 then gcc_cv_as_eh_frame=yes
23424 elif test x$gcc_cv_as != x; then
23425 $as_echo ' .text
23426 .LFB1:
23427 .4byte 0
23428 .L1:
23429 .4byte 0
23430 .LFE1:
23431 .section .eh_frame,"aw",@progbits
23432 __FRAME_BEGIN__:
23433 .4byte .LECIE1-.LSCIE1
23434 .LSCIE1:
23435 .4byte 0x0
23436 .byte 0x1
23437 .ascii "z\0"
23438 .byte 0x1
23439 .byte 0x78
23440 .byte 0x1a
23441 .byte 0x0
23442 .byte 0x4
23443 .4byte 1
23444 .p2align 1
23445 .LECIE1:
23446 .LSFDE1:
23447 .4byte .LEFDE1-.LASFDE1
23448 .LASFDE1:
23449 .4byte .LASFDE1-__FRAME_BEGIN__
23450 .4byte .LFB1
23451 .4byte .LFE1-.LFB1
23452 .byte 0x4
23453 .4byte .LFE1-.LFB1
23454 .byte 0x4
23455 .4byte .L1-.LFB1
23456 .LEFDE1:' > conftest.s
23457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }
23463 then
23464 cat > conftest.lit <<EOF
23465 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23466 0010 01000000 12000000 18000000 00000000 ................
23467 0020 08000000 04080000 0044 .........D
23469 cat > conftest.big <<EOF
23470 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23471 0010 00000001 00000012 00000018 00000000 ................
23472 0020 00000008 04000000 0844 .........D
23474 # If the assembler didn't choke, and we can objdump,
23475 # and we got the correct data, then succeed.
23476 # The text in the here-document typically retains its unix-style line
23477 # endings, while the output of objdump will use host line endings.
23478 # Therefore, use diff -b for the comparisons.
23479 if test x$gcc_cv_objdump != x \
23480 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23481 | tail -3 > conftest.got \
23482 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23483 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23484 then
23485 gcc_cv_as_eh_frame=yes
23486 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23491 test $ac_status = 0; }; }; then
23492 gcc_cv_as_eh_frame=buggy
23493 else
23494 # Uh oh, what do we do now?
23495 gcc_cv_as_eh_frame=no
23497 else
23498 echo "configure: failed program was" >&5
23499 cat conftest.s >&5
23501 rm -f conftest.o conftest.s
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23505 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23509 if test $gcc_cv_as_eh_frame = buggy; then
23511 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23516 $as_echo_n "checking assembler for section merging support... " >&6; }
23517 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 gcc_cv_as_shf_merge=no
23521 if test $in_tree_gas = yes; then
23522 if test $in_tree_gas_is_elf = yes \
23523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23524 then gcc_cv_as_shf_merge=yes
23526 elif test x$gcc_cv_as != x; then
23527 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23534 then
23535 gcc_cv_as_shf_merge=yes
23536 else
23537 echo "configure: failed program was" >&5
23538 cat conftest.s >&5
23540 rm -f conftest.o conftest.s
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23544 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23547 if test $gcc_cv_as_shf_merge = no; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23549 $as_echo_n "checking assembler for section merging support... " >&6; }
23550 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 gcc_cv_as_shf_merge=no
23554 if test $in_tree_gas = yes; then
23555 if test $in_tree_gas_is_elf = yes \
23556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23557 then gcc_cv_as_shf_merge=yes
23559 elif test x$gcc_cv_as != x; then
23560 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566 test $ac_status = 0; }; }
23567 then
23568 gcc_cv_as_shf_merge=yes
23569 else
23570 echo "configure: failed program was" >&5
23571 cat conftest.s >&5
23573 rm -f conftest.o conftest.s
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23577 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23581 case "$target" in
23582 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23583 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23584 if test x"$gnu_ld" = xno; then
23585 gcc_cv_as_shf_merge=no
23588 esac
23590 cat >>confdefs.h <<_ACEOF
23591 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23592 _ACEOF
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23596 $as_echo_n "checking assembler for stabs directive... " >&6; }
23597 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 gcc_cv_as_stabs_directive=no
23601 if test x$gcc_cv_as != x; then
23602 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }
23609 then
23610 gcc_cv_as_stabs_directive=yes
23611 else
23612 echo "configure: failed program was" >&5
23613 cat conftest.s >&5
23615 rm -f conftest.o conftest.s
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23619 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23620 if test $gcc_cv_as_stabs_directive = yes; then
23622 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23628 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23629 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23630 $as_echo_n "(cached) " >&6
23631 else
23632 gcc_cv_as_comdat_group=no
23633 if test $in_tree_gas = yes; then
23634 if test $in_tree_gas_is_elf = yes \
23635 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23636 then gcc_cv_as_comdat_group=yes
23638 elif test x$gcc_cv_as != x; then
23639 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23645 test $ac_status = 0; }; }
23646 then
23647 gcc_cv_as_comdat_group=yes
23648 else
23649 echo "configure: failed program was" >&5
23650 cat conftest.s >&5
23652 rm -f conftest.o conftest.s
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23656 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23659 if test $gcc_cv_as_comdat_group = yes; then
23660 gcc_cv_as_comdat_group_percent=no
23661 gcc_cv_as_comdat_group_group=no
23662 else
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23664 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23665 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23666 $as_echo_n "(cached) " >&6
23667 else
23668 gcc_cv_as_comdat_group_percent=no
23669 if test $in_tree_gas = yes; then
23670 if test $in_tree_gas_is_elf = yes \
23671 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23672 then gcc_cv_as_comdat_group_percent=yes
23674 elif test x$gcc_cv_as != x; then
23675 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681 test $ac_status = 0; }; }
23682 then
23683 gcc_cv_as_comdat_group_percent=yes
23684 else
23685 echo "configure: failed program was" >&5
23686 cat conftest.s >&5
23688 rm -f conftest.o conftest.s
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23692 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23695 if test $gcc_cv_as_comdat_group_percent = yes; then
23696 gcc_cv_as_comdat_group_group=no
23697 else
23698 case "${target}" in
23699 # Sun as uses a completely different syntax.
23700 *-*-solaris2*)
23701 case "${target}" in
23702 sparc*-*-solaris2*)
23703 conftest_s='
23704 .group foo,".text%foo",#comdat
23705 .section ".text%foo", #alloc,#execinstr,#progbits
23706 .globl foo
23707 foo:
23710 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23711 conftest_s='
23712 .group foo,.text%foo,#comdat
23713 .section .text%foo, "ax", @progbits
23714 .globl foo
23715 foo:
23718 esac
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23720 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23721 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 gcc_cv_as_comdat_group_group=no
23725 if test x$gcc_cv_as != x; then
23726 $as_echo "$conftest_s" > conftest.s
23727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23733 then
23734 gcc_cv_as_comdat_group_group=yes
23735 else
23736 echo "configure: failed program was" >&5
23737 cat conftest.s >&5
23739 rm -f conftest.o conftest.s
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23743 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23747 esac
23748 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23749 gcc_cv_as_comdat_group_group=no
23753 if test x"$ld_is_gold" = xyes; then
23754 comdat_group=yes
23755 elif test $in_tree_ld = yes ; then
23756 comdat_group=no
23757 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 \
23758 && test $in_tree_ld_is_elf = yes; then
23759 comdat_group=yes
23761 elif echo "$ld_ver" | grep GNU > /dev/null; then
23762 comdat_group=yes
23763 if test 0"$ld_date" -lt 20050308; then
23764 if test -n "$ld_date"; then
23765 # If there was date string, but was earlier than 2005-03-08, fail
23766 comdat_group=no
23767 elif test "$ld_vers_major" -lt 2; then
23768 comdat_group=no
23769 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23770 comdat_group=no
23773 else
23774 case "${target}" in
23775 *-*-solaris2.1[1-9]*)
23776 comdat_group=no
23777 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23778 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23779 # version 1.688.
23781 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23782 # least ld version 1.2267.
23783 if test "$ld_vers_major" -gt 1; then
23784 comdat_group=yes
23785 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23786 comdat_group=yes
23787 elif test "$ld_vers_minor" -ge 2267; then
23788 comdat_group=yes
23792 # Assume linkers other than GNU ld don't support COMDAT group.
23793 comdat_group=no
23795 esac
23797 # Allow overriding the automatic COMDAT group tests above.
23798 # Check whether --enable-comdat was given.
23799 if test "${enable_comdat+set}" = set; then :
23800 enableval=$enable_comdat; comdat_group="$enable_comdat"
23803 if test $comdat_group = no; then
23804 gcc_cv_as_comdat_group=no
23805 gcc_cv_as_comdat_group_percent=no
23806 gcc_cv_as_comdat_group_group=no
23809 cat >>confdefs.h <<_ACEOF
23810 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23811 || test $gcc_cv_as_comdat_group_percent = yes \
23812 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23813 _ACEOF
23816 # Restrict this test to Solaris/x86: other targets define this statically.
23817 case "${target}" in
23818 i?86-*-solaris2* | x86_64-*-solaris2*)
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23820 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23821 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23822 hidden_linkonce=yes
23823 else
23824 case "${target}" in
23825 # Full support for hidden thunks in linkonce sections only appeared in
23826 # Solaris 11/OpenSolaris.
23827 *-*-solaris2.1[1-9]*)
23828 hidden_linkonce=yes
23831 hidden_linkonce=no
23833 esac
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23836 $as_echo "$hidden_linkonce" >&6; }
23838 cat >>confdefs.h <<_ACEOF
23839 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23840 _ACEOF
23843 esac
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23846 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23847 if test "${gcc_cv_as_discriminator+set}" = set; then :
23848 $as_echo_n "(cached) " >&6
23849 else
23850 gcc_cv_as_discriminator=no
23851 if test $in_tree_gas = yes; then
23852 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23853 then gcc_cv_as_discriminator=yes
23855 elif test x$gcc_cv_as != x; then
23856 $as_echo ' .text
23857 .file 1 "conf.c"
23858 .loc 1 1 0 discriminator 1' > conftest.s
23859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23864 test $ac_status = 0; }; }
23865 then
23866 gcc_cv_as_discriminator=yes
23867 else
23868 echo "configure: failed program was" >&5
23869 cat conftest.s >&5
23871 rm -f conftest.o conftest.s
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23875 $as_echo "$gcc_cv_as_discriminator" >&6; }
23876 if test $gcc_cv_as_discriminator = yes; then
23878 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23883 # Thread-local storage - the check is heavily parameterized.
23884 conftest_s=
23885 tls_first_major=
23886 tls_first_minor=
23887 tls_as_opt=
23888 case "$target" in
23889 alpha*-*-*)
23890 conftest_s='
23891 .section ".tdata","awT",@progbits
23892 foo: .long 25
23893 .text
23894 ldq $27,__tls_get_addr($29) !literal!1
23895 lda $16,foo($29) !tlsgd!1
23896 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23897 ldq $27,__tls_get_addr($29) !literal!2
23898 lda $16,foo($29) !tlsldm!2
23899 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23900 ldq $1,foo($29) !gotdtprel
23901 ldah $2,foo($29) !dtprelhi
23902 lda $3,foo($2) !dtprello
23903 lda $4,foo($29) !dtprel
23904 ldq $1,foo($29) !gottprel
23905 ldah $2,foo($29) !tprelhi
23906 lda $3,foo($2) !tprello
23907 lda $4,foo($29) !tprel'
23908 tls_first_major=2
23909 tls_first_minor=13
23910 tls_as_opt=--fatal-warnings
23912 arc*-*-*)
23913 conftest_s='
23914 add_s r0,r0, @foo@tpoff'
23915 tls_first_major=2
23916 tls_first_minor=23
23918 cris-*-*|crisv32-*-*)
23919 conftest_s='
23920 .section ".tdata","awT",@progbits
23921 x: .long 25
23922 .text
23923 move.d x:IE,$r10
23924 nop'
23925 tls_first_major=2
23926 tls_first_minor=20
23927 tls_as_opt=--fatal-warnings
23929 frv*-*-*)
23930 conftest_s='
23931 .section ".tdata","awT",@progbits
23932 x: .long 25
23933 .text
23934 call #gettlsoff(x)'
23935 tls_first_major=2
23936 tls_first_minor=14
23938 hppa*-*-linux*)
23939 conftest_s='
23940 t1: .reg %r20
23941 t2: .reg %r21
23942 gp: .reg %r19
23943 .section ".tdata","awT",@progbits
23944 foo: .long 25
23945 .text
23946 .align 4
23947 addil LT%foo-$tls_gdidx$,gp
23948 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23949 b __tls_get_addr
23951 addil LT%foo-$tls_ldidx$,gp
23952 b __tls_get_addr
23953 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23954 addil LR%foo-$tls_dtpoff$,%ret0
23955 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23956 mfctl %cr27,%t1
23957 addil LT%foo-$tls_ieoff$,gp
23958 ldw RT%foo-$tls_ieoff$(%r1),%t2
23959 add %t1,%t2,%t3
23960 mfctl %cr27,%t1
23961 addil LR%foo-$tls_leoff$,%t1
23962 ldo RR%foo-$tls_leoff$(%r1),%t2'
23963 tls_first_major=2
23964 tls_first_minor=15
23965 tls_as_opt=--fatal-warnings
23967 arm*-*-*)
23968 conftest_s='
23969 .section ".tdata","awT",%progbits
23970 foo: .long 25
23971 .text
23972 .word foo(gottpoff)
23973 .word foo(tpoff)
23974 .word foo(tlsgd)
23975 .word foo(tlsldm)
23976 .word foo(tlsldo)'
23977 tls_first_major=2
23978 tls_first_minor=17
23980 i[34567]86-*-* | x86_64-*-*)
23981 case "$target" in
23982 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23983 on_solaris=yes
23986 on_solaris=no
23988 esac
23989 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23990 conftest_s='
23991 .section .tdata,"awt",@progbits'
23992 tls_first_major=0
23993 tls_first_minor=0
23994 tls_section_flag=t
23996 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23998 else
23999 conftest_s='
24000 .section ".tdata","awT",@progbits'
24001 tls_first_major=2
24002 tls_first_minor=14
24003 tls_section_flag=T
24004 tls_as_opt="--fatal-warnings"
24006 case "$target" in
24007 i[34567]86-*-*)
24008 conftest_s="$conftest_s
24009 foo: .long 25
24010 .text
24011 movl %gs:0, %eax
24012 leal foo@tlsgd(,%ebx,1), %eax
24013 leal foo@tlsldm(%ebx), %eax
24014 leal foo@dtpoff(%eax), %edx
24015 movl foo@gottpoff(%ebx), %eax
24016 subl foo@gottpoff(%ebx), %eax
24017 addl foo@gotntpoff(%ebx), %eax
24018 movl foo@indntpoff, %eax
24019 movl \$foo@tpoff, %eax
24020 subl \$foo@tpoff, %eax
24021 leal foo@ntpoff(%ecx), %eax"
24023 x86_64-*-*)
24024 if test x$on_solaris = xyes; then
24025 case $gas_flag in
24026 yes) tls_as_opt="$tls_as_opt --64" ;;
24027 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24028 esac
24030 conftest_s="$conftest_s
24031 foo: .long 25
24032 .text
24033 movq %fs:0, %rax
24034 leaq foo@tlsgd(%rip), %rdi
24035 leaq foo@tlsld(%rip), %rdi
24036 leaq foo@dtpoff(%rax), %rdx
24037 movq foo@gottpoff(%rip), %rax
24038 movq \$foo@tpoff, %rax"
24040 esac
24042 ia64-*-*)
24043 conftest_s='
24044 .section ".tdata","awT",@progbits
24045 foo: data8 25
24046 .text
24047 addl r16 = @ltoff(@dtpmod(foo#)), gp
24048 addl r17 = @ltoff(@dtprel(foo#)), gp
24049 addl r18 = @ltoff(@tprel(foo#)), gp
24050 addl r19 = @dtprel(foo#), gp
24051 adds r21 = @dtprel(foo#), r13
24052 movl r23 = @dtprel(foo#)
24053 addl r20 = @tprel(foo#), gp
24054 adds r22 = @tprel(foo#), r13
24055 movl r24 = @tprel(foo#)'
24056 tls_first_major=2
24057 tls_first_minor=13
24058 tls_as_opt=--fatal-warnings
24060 microblaze*-*-*)
24061 conftest_s='
24062 .section .tdata,"awT",@progbits
24064 .word 2
24065 .text
24066 addik r5,r20,x@TLSGD
24067 addik r5,r20,x@TLSLDM'
24068 tls_first_major=2
24069 tls_first_minor=20
24070 tls_as_opt='--fatal-warnings'
24072 mips*-*-*)
24073 conftest_s='
24074 .section .tdata,"awT",@progbits
24076 .word 2
24077 .text
24078 addiu $4, $28, %tlsgd(x)
24079 addiu $4, $28, %tlsldm(x)
24080 lui $4, %dtprel_hi(x)
24081 addiu $4, $4, %dtprel_lo(x)
24082 lw $4, %gottprel(x)($28)
24083 lui $4, %tprel_hi(x)
24084 addiu $4, $4, %tprel_lo(x)'
24085 tls_first_major=2
24086 tls_first_minor=16
24087 tls_as_opt='-32 --fatal-warnings'
24089 m68k-*-*)
24090 conftest_s='
24091 .section .tdata,"awT",@progbits
24093 .word 2
24094 .text
24095 foo:
24096 move.l x@TLSGD(%a5),%a0
24097 move.l x@TLSLDM(%a5),%a0
24098 move.l x@TLSLDO(%a5),%a0
24099 move.l x@TLSIE(%a5),%a0
24100 move.l x@TLSLE(%a5),%a0'
24101 tls_first_major=2
24102 tls_first_minor=19
24103 tls_as_opt='--fatal-warnings'
24105 nios2-*-*)
24106 conftest_s='
24107 .section ".tdata","awT",@progbits'
24108 tls_first_major=2
24109 tls_first_minor=23
24110 tls_as_opt="--fatal-warnings"
24112 aarch64*-*-*)
24113 conftest_s='
24114 .section ".tdata","awT",%progbits
24115 foo: .long 25
24116 .text
24117 adrp x0, :tlsgd:x
24118 add x0, x0, #:tlsgd_lo12:x
24119 bl __tls_get_addr
24120 nop'
24121 tls_first_major=2
24122 tls_first_minor=20
24123 tls_as_opt='--fatal-warnings'
24125 powerpc-ibm-aix*)
24126 conftest_s='
24127 .extern __get_tpointer
24128 .toc
24129 LC..1:
24130 .tc a[TC],a[TL]@le
24131 .csect .text[PR]
24132 .tlstest:
24133 lwz 9,LC..1(2)
24134 bla __get_tpointer
24135 lwzx 3,9,3
24136 .globl a
24137 .csect a[TL],4
24139 .space 4'
24140 tls_first_major=0
24141 tls_first_minor=0
24143 powerpc64*-*-*)
24144 conftest_s='
24145 .section ".tdata","awT",@progbits
24146 .align 3
24147 ld0: .space 8
24148 ld1: .space 8
24149 x1: .space 8
24150 x2: .space 8
24151 x3: .space 8
24152 .text
24153 addi 3,2,ld0@got@tlsgd
24154 bl .__tls_get_addr
24156 addi 3,2,ld1@toc
24157 bl .__tls_get_addr
24159 addi 3,2,x1@got@tlsld
24160 bl .__tls_get_addr
24162 addi 9,3,x1@dtprel
24163 bl .__tls_get_addr
24165 addis 9,3,x2@dtprel@ha
24166 addi 9,9,x2@dtprel@l
24167 bl .__tls_get_addr
24169 ld 9,x3@got@dtprel(2)
24170 add 9,9,3
24171 bl .__tls_get_addr
24172 nop'
24173 tls_first_major=2
24174 tls_first_minor=14
24175 tls_as_opt="-a64 --fatal-warnings"
24177 powerpc*-*-*)
24178 conftest_s='
24179 .section ".tdata","awT",@progbits
24180 .align 2
24181 ld0: .space 4
24182 ld1: .space 4
24183 x1: .space 4
24184 x2: .space 4
24185 x3: .space 4
24186 .text
24187 addi 3,31,ld0@got@tlsgd
24188 bl __tls_get_addr
24189 addi 3,31,x1@got@tlsld
24190 bl __tls_get_addr
24191 addi 9,3,x1@dtprel
24192 addis 9,3,x2@dtprel@ha
24193 addi 9,9,x2@dtprel@l
24194 lwz 9,x3@got@tprel(31)
24195 add 9,9,x@tls
24196 addi 9,2,x1@tprel
24197 addis 9,2,x2@tprel@ha
24198 addi 9,9,x2@tprel@l'
24199 tls_first_major=2
24200 tls_first_minor=14
24201 tls_as_opt="-a32 --fatal-warnings"
24203 riscv*-*-*)
24204 conftest_s='
24205 .section .tdata,"awT",@progbits
24206 x: .word 2
24207 .text
24208 la.tls.gd a0,x
24209 call __tls_get_addr'
24210 tls_first_major=2
24211 tls_first_minor=21
24212 tls_as_opt='--fatal-warnings'
24214 s390-*-*)
24215 conftest_s='
24216 .section ".tdata","awT",@progbits
24217 foo: .long 25
24218 .text
24219 .long foo@TLSGD
24220 .long foo@TLSLDM
24221 .long foo@DTPOFF
24222 .long foo@NTPOFF
24223 .long foo@GOTNTPOFF
24224 .long foo@INDNTPOFF
24225 l %r1,foo@GOTNTPOFF(%r12)
24226 l %r1,0(%r1):tls_load:foo
24227 bas %r14,0(%r1,%r13):tls_gdcall:foo
24228 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24229 tls_first_major=2
24230 tls_first_minor=14
24231 tls_as_opt="-m31 --fatal-warnings"
24233 s390x-*-*)
24234 conftest_s='
24235 .section ".tdata","awT",@progbits
24236 foo: .long 25
24237 .text
24238 .quad foo@TLSGD
24239 .quad foo@TLSLDM
24240 .quad foo@DTPOFF
24241 .quad foo@NTPOFF
24242 .quad foo@GOTNTPOFF
24243 lg %r1,foo@GOTNTPOFF(%r12)
24244 larl %r1,foo@INDNTPOFF
24245 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24246 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24247 tls_first_major=2
24248 tls_first_minor=14
24249 tls_as_opt="-m64 -Aesame --fatal-warnings"
24251 sh-*-* | sh[123456789lbe]*-*-*)
24252 conftest_s='
24253 .section ".tdata","awT",@progbits
24254 foo: .long 25
24255 .text
24256 .long foo@TLSGD
24257 .long foo@TLSLDM
24258 .long foo@DTPOFF
24259 .long foo@GOTTPOFF
24260 .long foo@TPOFF'
24261 tls_first_major=2
24262 tls_first_minor=13
24263 tls_as_opt=--fatal-warnings
24265 sparc*-*-*)
24266 case "$target" in
24267 sparc*-sun-solaris2.*)
24268 on_solaris=yes
24271 on_solaris=no
24273 esac
24274 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24275 conftest_s='
24276 .section ".tdata",#alloc,#write,#tls'
24277 tls_first_major=0
24278 tls_first_minor=0
24279 else
24280 conftest_s='
24281 .section ".tdata","awT",@progbits'
24282 tls_first_major=2
24283 tls_first_minor=14
24284 tls_as_opt="-32 --fatal-warnings"
24286 conftest_s="$conftest_s
24287 foo: .long 25
24288 .text
24289 sethi %tgd_hi22(foo), %o0
24290 add %o0, %tgd_lo10(foo), %o1
24291 add %l7, %o1, %o0, %tgd_add(foo)
24292 call __tls_get_addr, %tgd_call(foo)
24293 sethi %tldm_hi22(foo), %l1
24294 add %l1, %tldm_lo10(foo), %l2
24295 add %l7, %l2, %o0, %tldm_add(foo)
24296 call __tls_get_addr, %tldm_call(foo)
24297 sethi %tldo_hix22(foo), %l3
24298 xor %l3, %tldo_lox10(foo), %l4
24299 add %o0, %l4, %l5, %tldo_add(foo)
24300 sethi %tie_hi22(foo), %o3
24301 add %o3, %tie_lo10(foo), %o3
24302 ld [%l7 + %o3], %o2, %tie_ld(foo)
24303 add %g7, %o2, %o4, %tie_add(foo)
24304 sethi %tle_hix22(foo), %l1
24305 xor %l1, %tle_lox10(foo), %o5
24306 ld [%g7 + %o5], %o1"
24308 tilepro*-*-*)
24309 conftest_s='
24310 .section ".tdata","awT",@progbits
24311 foo: .long 25
24312 .text
24313 addli r0, zero, tls_gd(foo)
24314 auli r0, zero, tls_gd_ha16(foo)
24315 addli r0, r0, tls_gd_lo16(foo)
24316 jal __tls_get_addr
24317 addli r0, zero, tls_ie(foo)
24318 auli r0, r0, tls_ie_ha16(foo)
24319 addli r0, r0, tls_ie_lo16(foo)'
24320 tls_first_major=2
24321 tls_first_minor=22
24322 tls_as_opt="--fatal-warnings"
24324 tilegx*-*-*)
24325 conftest_s='
24326 .section ".tdata","awT",@progbits
24327 foo: .long 25
24328 .text
24329 shl16insli r0, zero, hw0_last_tls_gd(foo)
24330 shl16insli r0, zero, hw1_last_tls_gd(foo)
24331 shl16insli r0, r0, hw0_tls_gd(foo)
24332 jal __tls_get_addr
24333 shl16insli r0, zero, hw1_last_tls_ie(foo)
24334 shl16insli r0, r0, hw0_tls_ie(foo)'
24335 tls_first_major=2
24336 tls_first_minor=22
24337 tls_as_opt="--fatal-warnings"
24339 xtensa*-*-*)
24340 conftest_s='
24341 .section ".tdata","awT",@progbits
24342 foo: .long 25
24343 .text
24344 movi a8, foo@TLSFUNC
24345 movi a10, foo@TLSARG
24346 callx8.tls a8, foo@TLSCALL'
24347 tls_first_major=2
24348 tls_first_minor=19
24350 esac
24351 set_have_as_tls=no
24352 if test "x$enable_tls" = xno ; then
24353 : # TLS explicitly disabled.
24354 elif test "x$enable_tls" = xyes ; then
24355 set_have_as_tls=yes # TLS explicitly enabled.
24356 elif test -z "$tls_first_major"; then
24357 : # If we don't have a check, assume no support.
24358 else
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24360 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24361 if test "${gcc_cv_as_tls+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_tls=no
24365 if test $in_tree_gas = yes; then
24366 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24367 then gcc_cv_as_tls=yes
24369 elif test x$gcc_cv_as != x; then
24370 $as_echo "$conftest_s" > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_tls=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24387 $as_echo "$gcc_cv_as_tls" >&6; }
24388 if test $gcc_cv_as_tls = yes; then
24389 set_have_as_tls=yes
24393 if test $set_have_as_tls = yes ; then
24395 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24399 # Target-specific assembler checks.
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24402 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24403 gcc_cv_ld_static_dynamic=no
24404 gcc_cv_ld_static_option='-Bstatic'
24405 gcc_cv_ld_dynamic_option='-Bdynamic'
24406 if test $in_tree_ld = yes ; then
24407 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
24408 gcc_cv_ld_static_dynamic=yes
24410 elif test x$gcc_cv_ld != x; then
24411 # Check if linker supports -Bstatic/-Bdynamic option
24412 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24413 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24414 gcc_cv_ld_static_dynamic=yes
24415 else
24416 case "$target" in
24417 # AIX ld uses -b flags
24418 *-*-aix4.[23]* | *-*-aix[5-9]*)
24419 gcc_cv_ld_static_dynamic=yes
24420 gcc_cv_ld_static_option="-bstatic"
24421 gcc_cv_ld_dynamic_option="-bdynamic"
24423 # HP-UX ld uses -a flags to select between shared and archive.
24424 *-*-hpux*)
24425 if test x"$gnu_ld" = xno; then
24426 gcc_cv_ld_static_dynamic=yes
24427 gcc_cv_ld_static_option="-aarchive_shared"
24428 gcc_cv_ld_dynamic_option="-adefault"
24431 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24432 *-*-solaris2*)
24433 gcc_cv_ld_static_dynamic=yes
24435 esac
24438 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24440 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24443 cat >>confdefs.h <<_ACEOF
24444 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24445 _ACEOF
24448 cat >>confdefs.h <<_ACEOF
24449 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24450 _ACEOF
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24454 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24456 if test x"$demangler_in_ld" = xyes; then
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24458 $as_echo_n "checking linker --demangle support... " >&6; }
24459 gcc_cv_ld_demangle=no
24460 if test $in_tree_ld = yes; then
24461 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 \
24462 gcc_cv_ld_demangle=yes
24464 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24465 # Check if the GNU linker supports --demangle option
24466 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24467 gcc_cv_ld_demangle=yes
24470 if test x"$gcc_cv_ld_demangle" = xyes; then
24472 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24476 $as_echo "$gcc_cv_ld_demangle" >&6; }
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24480 $as_echo_n "checking linker plugin support... " >&6; }
24481 gcc_cv_lto_plugin=0
24482 if test -f liblto_plugin.la; then
24483 save_ld_ver="$ld_ver"
24484 save_ld_vers_major="$ld_vers_major"
24485 save_ld_vers_minor="$ld_vers_minor"
24486 save_ld_is_gold="$ld_is_gold"
24488 ld_is_gold=no
24490 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24491 ld_ver="GNU ld"
24492 # FIXME: ld_is_gold?
24493 ld_vers_major="$gcc_cv_gld_major_version"
24494 ld_vers_minor="$gcc_cv_gld_minor_version"
24495 else
24496 # Determine plugin linker version.
24497 # FIXME: Partial duplicate from above, generalize.
24498 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24499 if echo "$ld_ver" | grep GNU > /dev/null; then
24500 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24501 ld_is_gold=yes
24502 ld_vers=`echo $ld_ver | sed -n \
24503 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24504 else
24505 ld_vers=`echo $ld_ver | sed -n \
24506 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24508 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24509 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24513 # Determine plugin support.
24514 if echo "$ld_ver" | grep GNU > /dev/null; then
24515 # Require GNU ld or gold 2.21+ for plugin support by default.
24516 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24517 gcc_cv_lto_plugin=2
24518 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24519 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24520 gcc_cv_lto_plugin=1
24524 ld_ver="$save_ld_ver"
24525 ld_vers_major="$save_ld_vers_major"
24526 ld_vers_minor="$save_ld_vers_minor"
24527 ld_is_gold="$save_ld_is_gold"
24530 cat >>confdefs.h <<_ACEOF
24531 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24532 _ACEOF
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24535 $as_echo "$gcc_cv_lto_plugin" >&6; }
24537 # Target OS-specific assembler checks.
24539 case "$target_os" in
24540 darwin*)
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24542 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24543 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 gcc_cv_as_mmacosx_version_min=no
24547 if test x$gcc_cv_as != x; then
24548 $as_echo '.text' > conftest.s
24549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }
24555 then
24556 gcc_cv_as_mmacosx_version_min=yes
24557 else
24558 echo "configure: failed program was" >&5
24559 cat conftest.s >&5
24561 rm -f conftest.o conftest.s
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24565 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24566 if test $gcc_cv_as_mmacosx_version_min = yes; then
24568 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24573 esac
24575 # Target CPU-specific assembler checks.
24577 case "$target" in
24578 aarch64*-*-*)
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24580 $as_echo_n "checking assembler for -mabi option... " >&6; }
24581 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_as_aarch64_mabi=no
24585 if test x$gcc_cv_as != x; then
24586 $as_echo '.text' > conftest.s
24587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24592 test $ac_status = 0; }; }
24593 then
24594 gcc_cv_as_aarch64_mabi=yes
24595 else
24596 echo "configure: failed program was" >&5
24597 cat conftest.s >&5
24599 rm -f conftest.o conftest.s
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24603 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24606 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24608 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24610 else
24611 if test x$with_abi = xilp32; then
24612 as_fn_error "Assembler does not support -mabi=ilp32.\
24613 Upgrade the Assembler." "$LINENO" 5
24615 if test x"$with_multilib_list" = xdefault; then
24616 TM_MULTILIB_CONFIG=lp64
24617 else
24618 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24619 for aarch64_multilib in ${aarch64_multilibs}; do
24620 case ${aarch64_multilib} in
24621 ilp32)
24622 as_fn_error "Assembler does not support -mabi=ilp32.\
24623 Upgrade the Assembler." "$LINENO" 5
24627 esac
24628 done
24631 # Check if we have binutils support for relocations types needed by -fpic
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24633 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24634 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_aarch64_picreloc=no
24638 if test x$gcc_cv_as != x; then
24639 $as_echo '
24640 .text
24641 ldr x0, [x2, #:gotpage_lo15:globalsym]
24642 ' > conftest.s
24643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648 test $ac_status = 0; }; }
24649 then
24650 gcc_cv_as_aarch64_picreloc=yes
24651 else
24652 echo "configure: failed program was" >&5
24653 cat conftest.s >&5
24655 rm -f conftest.o conftest.s
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24659 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24660 if test $gcc_cv_as_aarch64_picreloc = yes; then
24662 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24666 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24667 # Check whether --enable-fix-cortex-a53-835769 was given.
24668 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24669 enableval=$enable_fix_cortex_a53_835769;
24670 case $enableval in
24671 yes)
24672 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24677 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24678 Valid choices are 'yes' and 'no'." "$LINENO" 5
24681 esac
24685 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24686 # Check whether --enable-fix-cortex-a53-843419 was given.
24687 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24688 enableval=$enable_fix_cortex_a53_843419;
24689 case $enableval in
24690 yes)
24691 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24696 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24697 Valid choices are 'yes' and 'no'." "$LINENO" 5
24700 esac
24706 # All TARGET_ABI_OSF targets.
24707 alpha*-*-linux* | alpha*-*-*bsd*)
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24709 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24710 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24712 else
24713 gcc_cv_as_alpha_explicit_relocs=no
24714 if test $in_tree_gas = yes; then
24715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24716 then gcc_cv_as_alpha_explicit_relocs=yes
24718 elif test x$gcc_cv_as != x; then
24719 $as_echo ' .set nomacro
24720 .text
24721 extbl $3, $2, $3 !lituse_bytoff!1
24722 ldq $2, a($29) !literal!1
24723 ldq $4, b($29) !literal!2
24724 ldq_u $3, 0($2) !lituse_base!1
24725 ldq $27, f($29) !literal!5
24726 jsr $26, ($27), f !lituse_jsr!5
24727 ldah $29, 0($26) !gpdisp!3
24728 lda $0, c($29) !gprel
24729 ldah $1, d($29) !gprelhigh
24730 lda $1, d($1) !gprellow
24731 lda $29, 0($29) !gpdisp!3' > conftest.s
24732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24737 test $ac_status = 0; }; }
24738 then
24739 gcc_cv_as_alpha_explicit_relocs=yes
24740 else
24741 echo "configure: failed program was" >&5
24742 cat conftest.s >&5
24744 rm -f conftest.o conftest.s
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24748 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24749 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24751 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24756 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24757 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24758 $as_echo_n "(cached) " >&6
24759 else
24760 gcc_cv_as_alpha_jsrdirect_relocs=no
24761 if test $in_tree_gas = yes; then
24762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24763 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24765 elif test x$gcc_cv_as != x; then
24766 $as_echo ' .set nomacro
24767 .text
24768 ldq $27, a($29) !literal!1
24769 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 gcc_cv_as_alpha_jsrdirect_relocs=yes
24778 else
24779 echo "configure: failed program was" >&5
24780 cat conftest.s >&5
24782 rm -f conftest.o conftest.s
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24786 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24787 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24789 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24795 avr-*-*)
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24797 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24798 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24799 $as_echo_n "(cached) " >&6
24800 else
24801 gcc_cv_as_avr_mlink_relax=no
24802 if test x$gcc_cv_as != x; then
24803 $as_echo '.text' > conftest.s
24804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24809 test $ac_status = 0; }; }
24810 then
24811 gcc_cv_as_avr_mlink_relax=yes
24812 else
24813 echo "configure: failed program was" >&5
24814 cat conftest.s >&5
24816 rm -f conftest.o conftest.s
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24820 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24821 if test $gcc_cv_as_avr_mlink_relax = yes; then
24823 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24829 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24830 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24832 else
24833 gcc_cv_as_avr_mrmw=no
24834 if test x$gcc_cv_as != x; then
24835 $as_echo '.text' > conftest.s
24836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }
24842 then
24843 gcc_cv_as_avr_mrmw=yes
24844 else
24845 echo "configure: failed program was" >&5
24846 cat conftest.s >&5
24848 rm -f conftest.o conftest.s
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24852 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24853 if test $gcc_cv_as_avr_mrmw = yes; then
24855 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24861 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24862 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24863 $as_echo_n "(cached) " >&6
24864 else
24865 gcc_cv_as_avr_mgccisr=no
24866 if test x$gcc_cv_as != x; then
24867 $as_echo '.text
24868 __gcc_isr 1
24869 __gcc_isr 2
24870 __gcc_isr 0,r24
24871 ' > conftest.s
24872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24874 (eval $ac_try) 2>&5
24875 ac_status=$?
24876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24877 test $ac_status = 0; }; }
24878 then
24879 gcc_cv_as_avr_mgccisr=yes
24880 else
24881 echo "configure: failed program was" >&5
24882 cat conftest.s >&5
24884 rm -f conftest.o conftest.s
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24888 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24889 if test $gcc_cv_as_avr_mgccisr = yes; then
24891 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24896 # Check how default linker description file implements .rodata for
24897 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24898 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24900 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24901 cat > conftest.s <<EOF
24902 .section .rodata,"a",@progbits
24903 .global xxvaryy
24904 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24905 xxvaryy:
24906 .word 1
24908 rm -f conftest.nm
24909 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24915 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24927 if test -s conftest.nm
24928 then
24929 if grep ' R xxvaryy' conftest.nm > /dev/null; then
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24931 $as_echo "yes" >&6; }
24933 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24935 else
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24937 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24938 echo "$as_me: nm output was" >&5
24939 cat conftest.nm >&5
24940 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24942 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24944 else
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24946 $as_echo "test failed" >&6; }
24947 echo "$as_me: failed program was" >&5
24948 cat conftest.s >&5
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24950 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24952 rm -f conftest.s conftest.o conftest.elf conftest.nm
24955 cris-*-*)
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24957 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24958 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24960 else
24961 gcc_cv_as_cris_no_mul_bug=no
24962 if test $in_tree_gas = yes; then
24963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24964 then gcc_cv_as_cris_no_mul_bug=yes
24966 elif test x$gcc_cv_as != x; then
24967 $as_echo '.text' > conftest.s
24968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24973 test $ac_status = 0; }; }
24974 then
24975 gcc_cv_as_cris_no_mul_bug=yes
24976 else
24977 echo "configure: failed program was" >&5
24978 cat conftest.s >&5
24980 rm -f conftest.o conftest.s
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24984 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24985 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24987 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24993 sparc*-*-*)
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24995 $as_echo_n "checking assembler for .register... " >&6; }
24996 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24998 else
24999 gcc_cv_as_sparc_register_op=no
25000 if test x$gcc_cv_as != x; then
25001 $as_echo '.register %g2, #scratch' > conftest.s
25002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25004 (eval $ac_try) 2>&5
25005 ac_status=$?
25006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25007 test $ac_status = 0; }; }
25008 then
25009 gcc_cv_as_sparc_register_op=yes
25010 else
25011 echo "configure: failed program was" >&5
25012 cat conftest.s >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25018 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25019 if test $gcc_cv_as_sparc_register_op = yes; then
25021 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25027 $as_echo_n "checking assembler for -relax option... " >&6; }
25028 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25030 else
25031 gcc_cv_as_sparc_relax=no
25032 if test x$gcc_cv_as != x; then
25033 $as_echo '.text' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 gcc_cv_as_sparc_relax=yes
25042 else
25043 echo "configure: failed program was" >&5
25044 cat conftest.s >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25050 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25051 if test $gcc_cv_as_sparc_relax = yes; then
25053 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25059 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25060 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 gcc_cv_as_sparc_gotdata_op=no
25064 if test x$gcc_cv_as != x; then
25065 $as_echo '.text
25066 .align 4
25067 foo:
25069 bar:
25070 sethi %gdop_hix22(foo), %g1
25071 xor %g1, %gdop_lox10(foo), %g1
25072 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25078 test $ac_status = 0; }; }
25079 then
25080 if test x$gcc_cv_ld != x \
25081 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25082 if test x$gcc_cv_objdump != x; then
25083 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25084 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25085 gcc_cv_as_sparc_gotdata_op=no
25086 else
25087 gcc_cv_as_sparc_gotdata_op=yes
25091 rm -f conftest
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25100 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25101 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25103 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25109 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25110 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 gcc_cv_as_sparc_ua_pcrel=no
25114 if test x$gcc_cv_as != x; then
25115 $as_echo '.text
25116 foo:
25118 .data
25119 .align 4
25120 .byte 0
25121 .uaword %r_disp32(foo)' > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 if test x$gcc_cv_ld != x \
25130 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25131 gcc_cv_as_sparc_ua_pcrel=yes
25133 rm -f conftest
25134 else
25135 echo "configure: failed program was" >&5
25136 cat conftest.s >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25142 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25143 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25145 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25149 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25150 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25152 else
25153 gcc_cv_as_sparc_ua_pcrel_hidden=no
25154 if test x$gcc_cv_as != x; then
25155 $as_echo '.data
25156 .align 4
25157 .byte 0x31
25158 .uaword %r_disp32(foo)
25159 .byte 0x32, 0x33, 0x34
25160 .global foo
25161 .hidden foo
25162 foo:
25163 .skip 4' > conftest.s
25164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25170 then
25171 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25172 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25173 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25174 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25175 if $gcc_cv_objdump -R conftest 2> /dev/null \
25176 | grep 'DISP32' > /dev/null 2>&1; then
25178 else
25179 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25182 rm -f conftest
25183 else
25184 echo "configure: failed program was" >&5
25185 cat conftest.s >&5
25187 rm -f conftest.o conftest.s
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25191 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25192 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25194 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25200 # unaligned pcrel relocs
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25203 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25204 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 gcc_cv_as_sparc_offsetable_lo10=no
25208 if test x$gcc_cv_as != x; then
25209 $as_echo '.text
25210 or %g1, %lo(ab) + 12, %g1
25211 or %g1, %lo(ab + 12), %g1' > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25218 then
25219 if test x$gcc_cv_objdump != x \
25220 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25221 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25222 gcc_cv_as_sparc_offsetable_lo10=yes
25224 else
25225 echo "configure: failed program was" >&5
25226 cat conftest.s >&5
25228 rm -f conftest.o conftest.s
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25232 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25233 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25235 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25241 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25242 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25244 else
25245 gcc_cv_as_sparc_fmaf=no
25246 if test x$gcc_cv_as != x; then
25247 $as_echo '.text
25248 .register %g2, #scratch
25249 .register %g3, #scratch
25250 .align 4
25251 fmaddd %f0, %f2, %f4, %f6
25252 addxccc %g1, %g2, %g3
25253 fsrl32 %f2, %f4, %f8
25254 fnaddd %f10, %f12, %f14' > conftest.s
25255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25261 then
25262 gcc_cv_as_sparc_fmaf=yes
25263 else
25264 echo "configure: failed program was" >&5
25265 cat conftest.s >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25271 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25272 if test $gcc_cv_as_sparc_fmaf = yes; then
25274 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25280 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25281 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25283 else
25284 gcc_cv_as_sparc_sparc4=no
25285 if test x$gcc_cv_as != x; then
25286 $as_echo '.text
25287 .register %g2, #scratch
25288 .register %g3, #scratch
25289 .align 4
25290 cxbe %g2, %g3, 1f
25291 1: cwbneg %g2, %g3, 1f
25292 1: sha1
25294 aes_kexpand0 %f4, %f6, %f8
25295 des_round %f38, %f40, %f42, %f44
25296 camellia_f %f54, %f56, %f58, %f60
25297 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 gcc_cv_as_sparc_sparc4=yes
25306 else
25307 echo "configure: failed program was" >&5
25308 cat conftest.s >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25314 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25315 if test $gcc_cv_as_sparc_sparc4 = yes; then
25317 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25323 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25324 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25325 $as_echo_n "(cached) " >&6
25326 else
25327 gcc_cv_as_sparc_sparc5=no
25328 if test x$gcc_cv_as != x; then
25329 $as_echo '.text
25330 .register %g2, #scratch
25331 .register %g3, #scratch
25332 .align 4
25333 subxc %g1, %g2, %g3
25334 fpadd8 %f0, %f2, %f4' > conftest.s
25335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }
25341 then
25342 gcc_cv_as_sparc_sparc5=yes
25343 else
25344 echo "configure: failed program was" >&5
25345 cat conftest.s >&5
25347 rm -f conftest.o conftest.s
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25351 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25352 if test $gcc_cv_as_sparc_sparc5 = yes; then
25354 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25360 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25361 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25362 $as_echo_n "(cached) " >&6
25363 else
25364 gcc_cv_as_sparc_sparc6=no
25365 if test x$gcc_cv_as != x; then
25366 $as_echo '.text
25367 .register %g2, #scratch
25368 .register %g3, #scratch
25369 .align 4
25370 rd %entropy, %g1
25371 fpsll64x %f0, %f2, %f4' > conftest.s
25372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25377 test $ac_status = 0; }; }
25378 then
25379 gcc_cv_as_sparc_sparc6=yes
25380 else
25381 echo "configure: failed program was" >&5
25382 cat conftest.s >&5
25384 rm -f conftest.o conftest.s
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25388 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25389 if test $gcc_cv_as_sparc_sparc6 = yes; then
25391 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25397 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25398 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25399 $as_echo_n "(cached) " >&6
25400 else
25401 gcc_cv_as_sparc_leon=no
25402 if test x$gcc_cv_as != x; then
25403 $as_echo '.text
25404 .register %g2, #scratch
25405 .register %g3, #scratch
25406 .align 4
25407 smac %g2, %g3, %g1
25408 umac %g2, %g3, %g1
25409 casa [%g2] 0xb, %g3, %g1' > conftest.s
25410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25415 test $ac_status = 0; }; }
25416 then
25417 gcc_cv_as_sparc_leon=yes
25418 else
25419 echo "configure: failed program was" >&5
25420 cat conftest.s >&5
25422 rm -f conftest.o conftest.s
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25426 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25427 if test $gcc_cv_as_sparc_leon = yes; then
25429 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25435 i[34567]86-*-* | x86_64-*-*)
25436 case $target_os in
25437 cygwin*)
25438 # Full C++ conformance when using a shared libstdc++-v3 requires some
25439 # support from the Cygwin DLL, which in more recent versions exports
25440 # wrappers to aid in interposing and redirecting operators new, delete,
25441 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25442 # are configuring for a version of Cygwin that exports the wrappers.
25443 if test x$host = x$target && test x$host_cpu = xi686; then
25444 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25445 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25446 gcc_ac_cygwin_dll_wrappers=yes
25447 else
25448 gcc_ac_cygwin_dll_wrappers=no
25451 else
25452 # Can't check presence of libc functions during cross-compile, so
25453 # we just have to assume we're building for an up-to-date target.
25454 gcc_ac_cygwin_dll_wrappers=yes
25457 cat >>confdefs.h <<_ACEOF
25458 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25459 _ACEOF
25461 esac
25462 case $target_os in
25463 cygwin* | pe | mingw32*)
25464 # Recent binutils allows the three-operand form of ".comm" on PE. This
25465 # definition is used unconditionally to initialise the default state of
25466 # the target option variable that governs usage of the feature.
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25468 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25469 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_comm_has_align=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25475 then gcc_cv_as_comm_has_align=yes
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo '.comm foo,1,32' > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_comm_has_align=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25495 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25499 cat >>confdefs.h <<_ACEOF
25500 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25501 _ACEOF
25503 # Used for DWARF 2 in PE
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25505 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25506 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25508 else
25509 gcc_cv_as_ix86_pe_secrel32=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25512 then gcc_cv_as_ix86_pe_secrel32=yes
25514 elif test x$gcc_cv_as != x; then
25515 $as_echo '.text
25516 foo: nop
25517 .data
25518 .secrel32 foo' > conftest.s
25519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524 test $ac_status = 0; }; }
25525 then
25526 if test x$gcc_cv_ld != x \
25527 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25528 gcc_cv_as_ix86_pe_secrel32=yes
25530 rm -f conftest
25531 else
25532 echo "configure: failed program was" >&5
25533 cat conftest.s >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25539 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25540 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25542 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25546 # Test if the assembler supports the extended form of the .section
25547 # directive that specifies section alignment. LTO support uses this,
25548 # but normally only after installation, so we warn but don't fail the
25549 # configure if LTO is enabled but the assembler does not support it.
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25551 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25552 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25554 else
25555 gcc_cv_as_section_has_align=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25558 then gcc_cv_as_section_has_align=yes
25560 elif test x$gcc_cv_as != x; then
25561 $as_echo '.section lto_test,"dr0"' > conftest.s
25562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25564 (eval $ac_try) 2>&5
25565 ac_status=$?
25566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25567 test $ac_status = 0; }; }
25568 then
25569 gcc_cv_as_section_has_align=yes
25570 else
25571 echo "configure: failed program was" >&5
25572 cat conftest.s >&5
25574 rm -f conftest.o conftest.s
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25578 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25581 if test x$gcc_cv_as_section_has_align != xyes; then
25582 case ",$enable_languages," in
25583 *,lto,*)
25584 { $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
25585 $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;}
25587 esac
25590 esac
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25593 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25594 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_ix86_xbrace_comment=no
25598 if test x$gcc_cv_as != x; then
25599 $as_echo '.text' > conftest.s
25600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25606 then
25607 gcc_cv_as_ix86_xbrace_comment=yes
25608 else
25609 echo "configure: failed program was" >&5
25610 cat conftest.s >&5
25612 rm -f conftest.o conftest.s
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25616 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25617 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25619 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25624 # Test if the assembler supports the section flag 'e' for specifying
25625 # an excluded section.
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25627 $as_echo_n "checking assembler for .section with e... " >&6; }
25628 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 gcc_cv_as_section_has_e=no
25632 if test $in_tree_gas = yes; then
25633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25634 then gcc_cv_as_section_has_e=yes
25636 elif test x$gcc_cv_as != x; then
25637 $as_echo '.section foo1,"e"
25638 .byte 0,0,0,0' > conftest.s
25639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25644 test $ac_status = 0; }; }
25645 then
25646 gcc_cv_as_section_has_e=yes
25647 else
25648 echo "configure: failed program was" >&5
25649 cat conftest.s >&5
25651 rm -f conftest.o conftest.s
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25655 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25659 cat >>confdefs.h <<_ACEOF
25660 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25661 _ACEOF
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25665 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25666 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25667 $as_echo_n "(cached) " >&6
25668 else
25669 gcc_cv_as_ix86_filds=no
25670 if test x$gcc_cv_as != x; then
25671 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_ix86_filds=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25684 rm -f conftest.o conftest.s
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25688 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25689 if test $gcc_cv_as_ix86_filds = yes; then
25691 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25697 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25698 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25699 $as_echo_n "(cached) " >&6
25700 else
25701 gcc_cv_as_ix86_fildq=no
25702 if test x$gcc_cv_as != x; then
25703 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 then
25711 gcc_cv_as_ix86_fildq=yes
25712 else
25713 echo "configure: failed program was" >&5
25714 cat conftest.s >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25720 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25721 if test $gcc_cv_as_ix86_fildq = yes; then
25723 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25729 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25730 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25732 else
25733 gcc_cv_as_ix86_cmov_sun_syntax=no
25734 if test x$gcc_cv_as != x; then
25735 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25742 then
25743 gcc_cv_as_ix86_cmov_sun_syntax=yes
25744 else
25745 echo "configure: failed program was" >&5
25746 cat conftest.s >&5
25748 rm -f conftest.o conftest.s
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25752 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25753 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25755 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25761 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25762 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25764 else
25765 gcc_cv_as_ix86_ffreep=no
25766 if test x$gcc_cv_as != x; then
25767 $as_echo 'ffreep %st(1)' > conftest.s
25768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773 test $ac_status = 0; }; }
25774 then
25775 gcc_cv_as_ix86_ffreep=yes
25776 else
25777 echo "configure: failed program was" >&5
25778 cat conftest.s >&5
25780 rm -f conftest.o conftest.s
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25784 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25785 if test $gcc_cv_as_ix86_ffreep = yes; then
25787 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25793 $as_echo_n "checking assembler for .quad directive... " >&6; }
25794 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25795 $as_echo_n "(cached) " >&6
25796 else
25797 gcc_cv_as_ix86_quad=no
25798 if test x$gcc_cv_as != x; then
25799 $as_echo '.quad 0' > conftest.s
25800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25805 test $ac_status = 0; }; }
25806 then
25807 gcc_cv_as_ix86_quad=yes
25808 else
25809 echo "configure: failed program was" >&5
25810 cat conftest.s >&5
25812 rm -f conftest.o conftest.s
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25816 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25817 if test $gcc_cv_as_ix86_quad = yes; then
25819 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25825 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25826 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25827 $as_echo_n "(cached) " >&6
25828 else
25829 gcc_cv_as_ix86_sahf=no
25830 if test x$gcc_cv_as != x; then
25831 $as_echo '.code64
25832 sahf' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_ix86_sahf=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25849 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25850 if test $gcc_cv_as_ix86_sahf = yes; then
25852 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25858 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25859 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_ix86_interunit_movq=no
25863 if test x$gcc_cv_as != x; then
25864 $as_echo '.code64
25865 movq %mm0, %rax
25866 movq %rax, %xmm0' > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 gcc_cv_as_ix86_interunit_movq=yes
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25883 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25889 _ACEOF
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25893 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25894 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25896 else
25897 gcc_cv_as_ix86_hle=no
25898 if test x$gcc_cv_as != x; then
25899 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25906 then
25907 gcc_cv_as_ix86_hle=yes
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25912 rm -f conftest.o conftest.s
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25916 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25917 if test $gcc_cv_as_ix86_hle = yes; then
25919 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25925 $as_echo_n "checking assembler for swap suffix... " >&6; }
25926 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25927 $as_echo_n "(cached) " >&6
25928 else
25929 gcc_cv_as_ix86_swap=no
25930 if test x$gcc_cv_as != x; then
25931 $as_echo 'movl.s %esp, %ebp' > conftest.s
25932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25938 then
25939 gcc_cv_as_ix86_swap=yes
25940 else
25941 echo "configure: failed program was" >&5
25942 cat conftest.s >&5
25944 rm -f conftest.o conftest.s
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25948 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25949 if test $gcc_cv_as_ix86_swap = yes; then
25951 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25957 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25958 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25959 $as_echo_n "(cached) " >&6
25960 else
25961 gcc_cv_as_ix86_diff_sect_delta=no
25962 if test x$gcc_cv_as != x; then
25963 $as_echo '.section .rodata
25964 .L1:
25965 .long .L2-.L1
25966 .long .L3-.L1
25967 .text
25968 .L3: nop
25969 .L2: nop' > conftest.s
25970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25976 then
25977 gcc_cv_as_ix86_diff_sect_delta=yes
25978 else
25979 echo "configure: failed program was" >&5
25980 cat conftest.s >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25986 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25987 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25989 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25995 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25996 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_ix86_rep_lock_prefix=no
26000 if test x$gcc_cv_as != x; then
26001 $as_echo 'rep movsl
26002 rep ret
26003 rep nop
26004 rep bsf %ecx, %eax
26005 rep bsr %ecx, %eax
26006 lock addl %edi, (%eax,%esi)
26007 lock orl $0, (%esp)' > conftest.s
26008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26014 then
26015 gcc_cv_as_ix86_rep_lock_prefix=yes
26016 else
26017 echo "configure: failed program was" >&5
26018 cat conftest.s >&5
26020 rm -f conftest.o conftest.s
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26024 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26025 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26027 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26033 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26034 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26036 else
26037 gcc_cv_as_ix86_ud2=no
26038 if test x$gcc_cv_as != x; then
26039 $as_echo 'ud2' > conftest.s
26040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26045 test $ac_status = 0; }; }
26046 then
26047 gcc_cv_as_ix86_ud2=yes
26048 else
26049 echo "configure: failed program was" >&5
26050 cat conftest.s >&5
26052 rm -f conftest.o conftest.s
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26056 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26057 if test $gcc_cv_as_ix86_ud2 = yes; then
26059 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26064 # Enforce 32-bit output with gas and gld.
26065 if test x$gas = xyes; then
26066 as_ix86_gas_32_opt="--32"
26068 if echo "$ld_ver" | grep GNU > /dev/null; then
26069 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26070 ld_ix86_gld_32_opt="-melf_i386_sol2"
26071 else
26072 ld_ix86_gld_32_opt="-melf_i386"
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26077 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26078 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26079 $as_echo_n "(cached) " >&6
26080 else
26081 gcc_cv_as_ix86_tlsgdplt=no
26082 if test x$gcc_cv_as != x; then
26083 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 if test x$gcc_cv_ld != x \
26092 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26093 gcc_cv_as_ix86_tlsgdplt=yes
26095 rm -f conftest
26096 else
26097 echo "configure: failed program was" >&5
26098 cat conftest.s >&5
26100 rm -f conftest.o conftest.s
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26104 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26105 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26107 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26112 conftest_s='
26113 .section .tdata,"aw'$tls_section_flag'",@progbits
26114 tls_ld:
26115 .section .text,"ax",@progbits
26116 call tls_ld@tlsldmplt'
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26119 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26120 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 gcc_cv_as_ix86_tlsldmplt=no
26124 if test x$gcc_cv_as != x; then
26125 $as_echo "$conftest_s" > conftest.s
26126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26128 (eval $ac_try) 2>&5
26129 ac_status=$?
26130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26131 test $ac_status = 0; }; }
26132 then
26133 if test x$gcc_cv_ld != x \
26134 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26135 gcc_cv_as_ix86_tlsldmplt=yes
26137 rm -f conftest
26138 else
26139 echo "configure: failed program was" >&5
26140 cat conftest.s >&5
26142 rm -f conftest.o conftest.s
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26146 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26150 cat >>confdefs.h <<_ACEOF
26151 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26152 _ACEOF
26155 conftest_s='
26156 .section .text,"ax",@progbits
26157 .globl _start
26158 .type _start, @function
26159 _start:
26160 leal value@tlsldm(%ebx), %eax
26161 call ___tls_get_addr@plt
26163 .section .tdata,"aw'$tls_section_flag'",@progbits
26164 .type value, @object
26165 value:'
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26167 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26168 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26170 else
26171 gcc_cv_as_ix86_tlsldm=no
26172 if test x$gcc_cv_as != x; then
26173 $as_echo "$conftest_s" > conftest.s
26174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; }
26180 then
26181 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26182 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26183 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26184 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26185 gcc_cv_as_ix86_tlsldm=yes
26188 rm -f conftest
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26197 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26201 cat >>confdefs.h <<_ACEOF
26202 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26203 _ACEOF
26206 conftest_s='
26207 .data
26208 bar:
26209 .byte 1
26210 .text
26211 .global _start
26212 _start:
26213 cmpl $0, bar@GOT
26214 jmp *_start@GOT'
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26216 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26217 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26218 $as_echo_n "(cached) " >&6
26219 else
26220 gcc_cv_as_ix86_got32x=no
26221 if test x$gcc_cv_as != x; then
26222 $as_echo "$conftest_s" > conftest.s
26223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26225 (eval $ac_try) 2>&5
26226 ac_status=$?
26227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26228 test $ac_status = 0; }; }
26229 then
26230 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26231 && test x$gcc_cv_readelf != x \
26232 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26233 | grep R_386_GOT32X > /dev/null 2>&1 \
26234 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26235 if $gcc_cv_objdump -dw conftest 2>&1 \
26236 | grep 0xffffff > /dev/null 2>&1; then
26237 gcc_cv_as_ix86_got32x=no
26238 else
26239 gcc_cv_as_ix86_got32x=yes
26242 rm -f conftest
26243 else
26244 echo "configure: failed program was" >&5
26245 cat conftest.s >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26251 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26255 cat >>confdefs.h <<_ACEOF
26256 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26257 _ACEOF
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26261 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26262 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26263 $as_echo_n "(cached) " >&6
26264 else
26265 gcc_cv_as_ix86_gotoff_in_data=no
26266 if test $in_tree_gas = yes; then
26267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26268 then gcc_cv_as_ix86_gotoff_in_data=yes
26270 elif test x$gcc_cv_as != x; then
26271 $as_echo ' .text
26272 .L0:
26274 .data
26275 .long .L0@GOTOFF' > conftest.s
26276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26282 then
26283 gcc_cv_as_ix86_gotoff_in_data=yes
26284 else
26285 echo "configure: failed program was" >&5
26286 cat conftest.s >&5
26288 rm -f conftest.o conftest.s
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26292 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26296 cat >>confdefs.h <<_ACEOF
26297 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26298 _ACEOF
26301 conftest_s='
26302 .section .text,"ax",@progbits
26303 .globl _start
26304 .type _start, @function
26305 _start:
26306 leal ld@tlsldm(%ecx), %eax
26307 call *___tls_get_addr@GOT(%ecx)
26308 leal gd@tlsgd(%ecx), %eax
26309 call *___tls_get_addr@GOT(%ecx)
26311 .section .tdata,"aw'$tls_section_flag'",@progbits
26312 .type ld, @object
26314 .byte 0
26315 .globl gd
26316 .type gd, @object
26318 .byte 0'
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26320 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26321 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26322 $as_echo_n "(cached) " >&6
26323 else
26324 gcc_cv_as_ix86_tls_get_addr_via_got=no
26325 if test x$gcc_cv_as != x; then
26326 $as_echo "$conftest_s" > conftest.s
26327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26330 ac_status=$?
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; }
26333 then
26334 if test x$gcc_cv_ld != x \
26335 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26336 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26338 rm -f conftest
26339 else
26340 echo "configure: failed program was" >&5
26341 cat conftest.s >&5
26343 rm -f conftest.o conftest.s
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26347 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26353 _ACEOF
26357 ia64*-*-*)
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26359 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26360 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26361 $as_echo_n "(cached) " >&6
26362 else
26363 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26364 if test $in_tree_gas = yes; then
26365 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26366 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26368 elif test x$gcc_cv_as != x; then
26369 $as_echo ' .text
26370 addl r15 = @ltoffx(x#), gp
26372 ld8.mov r16 = [r15], x#' > conftest.s
26373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26375 (eval $ac_try) 2>&5
26376 ac_status=$?
26377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26378 test $ac_status = 0; }; }
26379 then
26380 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26381 else
26382 echo "configure: failed program was" >&5
26383 cat conftest.s >&5
26385 rm -f conftest.o conftest.s
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26389 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26390 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26392 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26399 powerpc*-*-*)
26401 case $target in
26402 *-*-darwin*)
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26404 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26405 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26406 $as_echo_n "(cached) " >&6
26407 else
26408 gcc_cv_as_machine_directive=no
26409 if test x$gcc_cv_as != x; then
26410 $as_echo ' .machine ppc7400' > conftest.s
26411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26416 test $ac_status = 0; }; }
26417 then
26418 gcc_cv_as_machine_directive=yes
26419 else
26420 echo "configure: failed program was" >&5
26421 cat conftest.s >&5
26423 rm -f conftest.o conftest.s
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26427 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26430 if test x$gcc_cv_as_machine_directive != xyes; then
26431 echo "*** This target requires an assembler supporting \".machine\"" >&2
26432 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26433 test x$build = x$target && exit 1
26436 esac
26438 case $target in
26439 *-*-aix*) conftest_s=' .machine "pwr5"
26440 .csect .text[PR]
26441 mfcr 3,128';;
26442 *-*-darwin*) conftest_s=' .text
26443 mfcr r3,128';;
26444 *) conftest_s=' .machine power4
26445 .text
26446 mfcr 3,128';;
26447 esac
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26450 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26451 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26453 else
26454 gcc_cv_as_powerpc_mfcrf=no
26455 if test $in_tree_gas = yes; then
26456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26457 then gcc_cv_as_powerpc_mfcrf=yes
26459 elif test x$gcc_cv_as != x; then
26460 $as_echo "$conftest_s" > conftest.s
26461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; }
26467 then
26468 gcc_cv_as_powerpc_mfcrf=yes
26469 else
26470 echo "configure: failed program was" >&5
26471 cat conftest.s >&5
26473 rm -f conftest.o conftest.s
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26477 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26478 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26480 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26485 case $target in
26486 *-*-aix*) conftest_s=' .machine "pwr5"
26487 .csect .text[PR]
26488 popcntb 3,3';;
26489 *) conftest_s=' .machine power5
26490 .text
26491 popcntb 3,3';;
26492 esac
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26495 $as_echo_n "checking assembler for popcntb support... " >&6; }
26496 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26497 $as_echo_n "(cached) " >&6
26498 else
26499 gcc_cv_as_powerpc_popcntb=no
26500 if test $in_tree_gas = yes; then
26501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26502 then gcc_cv_as_powerpc_popcntb=yes
26504 elif test x$gcc_cv_as != x; then
26505 $as_echo "$conftest_s" > conftest.s
26506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26511 test $ac_status = 0; }; }
26512 then
26513 gcc_cv_as_powerpc_popcntb=yes
26514 else
26515 echo "configure: failed program was" >&5
26516 cat conftest.s >&5
26518 rm -f conftest.o conftest.s
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26522 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26523 if test $gcc_cv_as_powerpc_popcntb = yes; then
26525 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26530 case $target in
26531 *-*-aix*) conftest_s=' .machine "pwr5x"
26532 .csect .text[PR]
26533 frin 1,1';;
26534 *) conftest_s=' .machine power5
26535 .text
26536 frin 1,1';;
26537 esac
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26540 $as_echo_n "checking assembler for fp round support... " >&6; }
26541 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26544 gcc_cv_as_powerpc_fprnd=no
26545 if test $in_tree_gas = yes; then
26546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26547 then gcc_cv_as_powerpc_fprnd=yes
26549 elif test x$gcc_cv_as != x; then
26550 $as_echo "$conftest_s" > conftest.s
26551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26557 then
26558 gcc_cv_as_powerpc_fprnd=yes
26559 else
26560 echo "configure: failed program was" >&5
26561 cat conftest.s >&5
26563 rm -f conftest.o conftest.s
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26567 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26568 if test $gcc_cv_as_powerpc_fprnd = yes; then
26570 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26575 case $target in
26576 *-*-aix*) conftest_s=' .machine "pwr6"
26577 .csect .text[PR]
26578 mffgpr 1,3';;
26579 *) conftest_s=' .machine power6
26580 .text
26581 mffgpr 1,3';;
26582 esac
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26585 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26586 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26587 $as_echo_n "(cached) " >&6
26588 else
26589 gcc_cv_as_powerpc_mfpgpr=no
26590 if test $in_tree_gas = yes; then
26591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26592 then gcc_cv_as_powerpc_mfpgpr=yes
26594 elif test x$gcc_cv_as != x; then
26595 $as_echo "$conftest_s" > conftest.s
26596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26601 test $ac_status = 0; }; }
26602 then
26603 gcc_cv_as_powerpc_mfpgpr=yes
26604 else
26605 echo "configure: failed program was" >&5
26606 cat conftest.s >&5
26608 rm -f conftest.o conftest.s
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26612 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26613 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26615 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26620 case $target in
26621 *-*-aix*) conftest_s=' .csect .text[PR]
26622 LCF..0:
26623 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26624 *-*-darwin*)
26625 conftest_s=' .text
26626 LCF0:
26627 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26628 *) conftest_s=' .text
26629 .LCF0:
26630 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26631 esac
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26634 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26635 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26636 $as_echo_n "(cached) " >&6
26637 else
26638 gcc_cv_as_powerpc_rel16=no
26639 if test $in_tree_gas = yes; then
26640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26641 then gcc_cv_as_powerpc_rel16=yes
26643 elif test x$gcc_cv_as != x; then
26644 $as_echo "$conftest_s" > conftest.s
26645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }
26651 then
26652 gcc_cv_as_powerpc_rel16=yes
26653 else
26654 echo "configure: failed program was" >&5
26655 cat conftest.s >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26661 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26662 if test $gcc_cv_as_powerpc_rel16 = yes; then
26664 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26669 case $target in
26670 *-*-aix*) conftest_s=' .machine "pwr6"
26671 .csect .text[PR]
26672 cmpb 3,4,5';;
26673 *) conftest_s=' .machine power6
26674 .text
26675 cmpb 3,4,5';;
26676 esac
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26679 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26680 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26682 else
26683 gcc_cv_as_powerpc_cmpb=no
26684 if test $in_tree_gas = yes; then
26685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26686 then gcc_cv_as_powerpc_cmpb=yes
26688 elif test x$gcc_cv_as != x; then
26689 $as_echo "$conftest_s" > conftest.s
26690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26696 then
26697 gcc_cv_as_powerpc_cmpb=yes
26698 else
26699 echo "configure: failed program was" >&5
26700 cat conftest.s >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26706 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26707 if test $gcc_cv_as_powerpc_cmpb = yes; then
26709 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26714 case $target in
26715 *-*-aix*) conftest_s=' .machine "pwr6"
26716 .csect .text[PR]
26717 dadd 1,2,3';;
26718 *) conftest_s=' .machine power6
26719 .text
26720 dadd 1,2,3';;
26721 esac
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26724 $as_echo_n "checking assembler for decimal float support... " >&6; }
26725 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26726 $as_echo_n "(cached) " >&6
26727 else
26728 gcc_cv_as_powerpc_dfp=no
26729 if test $in_tree_gas = yes; then
26730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26731 then gcc_cv_as_powerpc_dfp=yes
26733 elif test x$gcc_cv_as != x; then
26734 $as_echo "$conftest_s" > conftest.s
26735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26740 test $ac_status = 0; }; }
26741 then
26742 gcc_cv_as_powerpc_dfp=yes
26743 else
26744 echo "configure: failed program was" >&5
26745 cat conftest.s >&5
26747 rm -f conftest.o conftest.s
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26751 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26752 if test $gcc_cv_as_powerpc_dfp = yes; then
26754 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26759 case $target in
26760 *-*-aix*) conftest_s=' .machine "pwr7"
26761 .csect .text[PR]
26762 lxvd2x 1,2,3';;
26763 *) conftest_s=' .machine power7
26764 .text
26765 lxvd2x 1,2,3';;
26766 esac
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26769 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26770 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26771 $as_echo_n "(cached) " >&6
26772 else
26773 gcc_cv_as_powerpc_vsx=no
26774 if test $in_tree_gas = yes; then
26775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26776 then gcc_cv_as_powerpc_vsx=yes
26778 elif test x$gcc_cv_as != x; then
26779 $as_echo "$conftest_s" > conftest.s
26780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26786 then
26787 gcc_cv_as_powerpc_vsx=yes
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26796 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26797 if test $gcc_cv_as_powerpc_vsx = yes; then
26799 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26804 case $target in
26805 *-*-aix*) conftest_s=' .machine "pwr7"
26806 .csect .text[PR]
26807 popcntd 3,3';;
26808 *) conftest_s=' .machine power7
26809 .text
26810 popcntd 3,3';;
26811 esac
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26814 $as_echo_n "checking assembler for popcntd support... " >&6; }
26815 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26816 $as_echo_n "(cached) " >&6
26817 else
26818 gcc_cv_as_powerpc_popcntd=no
26819 if test $in_tree_gas = yes; then
26820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26821 then gcc_cv_as_powerpc_popcntd=yes
26823 elif test x$gcc_cv_as != x; then
26824 $as_echo "$conftest_s" > conftest.s
26825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }; }
26831 then
26832 gcc_cv_as_powerpc_popcntd=yes
26833 else
26834 echo "configure: failed program was" >&5
26835 cat conftest.s >&5
26837 rm -f conftest.o conftest.s
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26841 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26842 if test $gcc_cv_as_powerpc_popcntd = yes; then
26844 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26849 case $target in
26850 *-*-aix*) conftest_s=' .machine "pwr8"
26851 .csect .text[PR]';;
26852 *) conftest_s=' .machine power8
26853 .text';;
26854 esac
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26857 $as_echo_n "checking assembler for power8 support... " >&6; }
26858 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26859 $as_echo_n "(cached) " >&6
26860 else
26861 gcc_cv_as_powerpc_power8=no
26862 if test $in_tree_gas = yes; then
26863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26864 then gcc_cv_as_powerpc_power8=yes
26866 elif test x$gcc_cv_as != x; then
26867 $as_echo "$conftest_s" > conftest.s
26868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26873 test $ac_status = 0; }; }
26874 then
26875 gcc_cv_as_powerpc_power8=yes
26876 else
26877 echo "configure: failed program was" >&5
26878 cat conftest.s >&5
26880 rm -f conftest.o conftest.s
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26884 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26885 if test $gcc_cv_as_powerpc_power8 = yes; then
26887 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26892 case $target in
26893 *-*-aix*) conftest_s=' .machine "pwr9"
26894 .csect .text[PR]';;
26895 *) conftest_s=' .machine power9
26896 .text';;
26897 esac
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26900 $as_echo_n "checking assembler for power9 support... " >&6; }
26901 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26902 $as_echo_n "(cached) " >&6
26903 else
26904 gcc_cv_as_powerpc_power9=no
26905 if test $in_tree_gas = yes; then
26906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26907 then gcc_cv_as_powerpc_power9=yes
26909 elif test x$gcc_cv_as != x; then
26910 $as_echo "$conftest_s" > conftest.s
26911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26916 test $ac_status = 0; }; }
26917 then
26918 gcc_cv_as_powerpc_power9=yes
26919 else
26920 echo "configure: failed program was" >&5
26921 cat conftest.s >&5
26923 rm -f conftest.o conftest.s
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26927 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26928 if test $gcc_cv_as_powerpc_power9 = yes; then
26930 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26935 case $target in
26936 *-*-aix*) conftest_s=' .csect .text[PR]
26937 lwsync';;
26938 *) conftest_s=' .text
26939 lwsync';;
26940 esac
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26943 $as_echo_n "checking assembler for lwsync support... " >&6; }
26944 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26945 $as_echo_n "(cached) " >&6
26946 else
26947 gcc_cv_as_powerpc_lwsync=no
26948 if test $in_tree_gas = yes; then
26949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26950 then gcc_cv_as_powerpc_lwsync=yes
26952 elif test x$gcc_cv_as != x; then
26953 $as_echo "$conftest_s" > conftest.s
26954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26959 test $ac_status = 0; }; }
26960 then
26961 gcc_cv_as_powerpc_lwsync=yes
26962 else
26963 echo "configure: failed program was" >&5
26964 cat conftest.s >&5
26966 rm -f conftest.o conftest.s
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26970 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26971 if test $gcc_cv_as_powerpc_lwsync = yes; then
26973 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26978 case $target in
26979 *-*-aix*) conftest_s=' .machine "476"
26980 .csect .text[PR]
26981 dci 0';;
26982 *) conftest_s=' .machine "476"
26983 .text
26984 dci 0';;
26985 esac
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26988 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26989 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26990 $as_echo_n "(cached) " >&6
26991 else
26992 gcc_cv_as_powerpc_dci=no
26993 if test $in_tree_gas = yes; then
26994 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26995 then gcc_cv_as_powerpc_dci=yes
26997 elif test x$gcc_cv_as != x; then
26998 $as_echo "$conftest_s" > conftest.s
26999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27005 then
27006 gcc_cv_as_powerpc_dci=yes
27007 else
27008 echo "configure: failed program was" >&5
27009 cat conftest.s >&5
27011 rm -f conftest.o conftest.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27015 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27016 if test $gcc_cv_as_powerpc_dci = yes; then
27018 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27024 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27025 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27026 $as_echo_n "(cached) " >&6
27027 else
27028 gcc_cv_as_powerpc_gnu_attribute=no
27029 if test $in_tree_gas = yes; then
27030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27031 then gcc_cv_as_powerpc_gnu_attribute=yes
27033 elif test x$gcc_cv_as != x; then
27034 $as_echo '.gnu_attribute 4,1' > conftest.s
27035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27041 then
27042 gcc_cv_as_powerpc_gnu_attribute=yes
27043 else
27044 echo "configure: failed program was" >&5
27045 cat conftest.s >&5
27047 rm -f conftest.o conftest.s
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27051 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27052 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27054 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27060 $as_echo_n "checking assembler for tls marker support... " >&6; }
27061 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27062 $as_echo_n "(cached) " >&6
27063 else
27064 gcc_cv_as_powerpc_tls_markers=no
27065 if test $in_tree_gas = yes; then
27066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27067 then gcc_cv_as_powerpc_tls_markers=yes
27069 elif test x$gcc_cv_as != x; then
27070 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27074 ac_status=$?
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; }
27077 then
27078 gcc_cv_as_powerpc_tls_markers=yes
27079 else
27080 echo "configure: failed program was" >&5
27081 cat conftest.s >&5
27083 rm -f conftest.o conftest.s
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27087 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27088 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27090 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27096 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27097 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27098 $as_echo_n "(cached) " >&6
27099 else
27100 gcc_cv_as_powerpc_entry_markers=no
27101 if test $in_tree_gas = yes; then
27102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27103 then gcc_cv_as_powerpc_entry_markers=yes
27105 elif test x$gcc_cv_as != x; then
27106 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27113 then
27114 gcc_cv_as_powerpc_entry_markers=yes
27115 else
27116 echo "configure: failed program was" >&5
27117 cat conftest.s >&5
27119 rm -f conftest.o conftest.s
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27123 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27124 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27126 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27131 case $target in
27132 *-*-aix*)
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27134 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27135 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27136 $as_echo_n "(cached) " >&6
27137 else
27138 gcc_cv_as_aix_ref=no
27139 if test $in_tree_gas = yes; then
27140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27141 then gcc_cv_as_aix_ref=yes
27143 elif test x$gcc_cv_as != x; then
27144 $as_echo ' .csect stuff[rw]
27145 stuff:
27146 .long 1
27147 .extern sym
27148 .ref sym
27149 ' > conftest.s
27150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; }
27156 then
27157 gcc_cv_as_aix_ref=yes
27158 else
27159 echo "configure: failed program was" >&5
27160 cat conftest.s >&5
27162 rm -f conftest.o conftest.s
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27166 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27167 if test $gcc_cv_as_aix_ref = yes; then
27169 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27175 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27176 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27177 $as_echo_n "(cached) " >&6
27178 else
27179 gcc_cv_as_aix_dwloc=no
27180 if test $in_tree_gas = yes; then
27181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27182 then gcc_cv_as_aix_dwloc=yes
27184 elif test x$gcc_cv_as != x; then
27185 $as_echo ' .dwsect 0xA0000
27186 Lframe..0:
27187 .vbyte 4,Lframe..0
27188 ' > conftest.s
27189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27195 then
27196 gcc_cv_as_aix_dwloc=yes
27197 else
27198 echo "configure: failed program was" >&5
27199 cat conftest.s >&5
27201 rm -f conftest.o conftest.s
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27205 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27206 if test $gcc_cv_as_aix_dwloc = yes; then
27208 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27213 esac
27216 mips*-*-*)
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27218 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27219 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27221 else
27222 gcc_cv_as_mips_explicit_relocs=no
27223 if test $in_tree_gas = yes; then
27224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27225 then gcc_cv_as_mips_explicit_relocs=yes
27227 elif test x$gcc_cv_as != x; then
27228 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27231 (eval $ac_try) 2>&5
27232 ac_status=$?
27233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27234 test $ac_status = 0; }; }
27235 then
27236 gcc_cv_as_mips_explicit_relocs=yes
27237 else
27238 echo "configure: failed program was" >&5
27239 cat conftest.s >&5
27241 rm -f conftest.o conftest.s
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27245 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27246 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27247 if test x$target_cpu_default = x
27248 then target_cpu_default=MASK_EXPLICIT_RELOCS
27249 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27255 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27256 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27257 $as_echo_n "(cached) " >&6
27258 else
27259 gcc_cv_as_mips_no_shared=no
27260 if test $in_tree_gas = yes; then
27261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27262 then gcc_cv_as_mips_no_shared=yes
27264 elif test x$gcc_cv_as != x; then
27265 $as_echo 'nop' > conftest.s
27266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27272 then
27273 gcc_cv_as_mips_no_shared=yes
27274 else
27275 echo "configure: failed program was" >&5
27276 cat conftest.s >&5
27278 rm -f conftest.o conftest.s
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27282 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27283 if test $gcc_cv_as_mips_no_shared = yes; then
27285 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27291 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27292 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27293 $as_echo_n "(cached) " >&6
27294 else
27295 gcc_cv_as_mips_gnu_attribute=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27298 then gcc_cv_as_mips_gnu_attribute=yes
27300 elif test x$gcc_cv_as != x; then
27301 $as_echo '.gnu_attribute 4,1' > conftest.s
27302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27308 then
27309 gcc_cv_as_mips_gnu_attribute=yes
27310 else
27311 echo "configure: failed program was" >&5
27312 cat conftest.s >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27318 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27319 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27321 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27327 $as_echo_n "checking assembler for .module support... " >&6; }
27328 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27329 $as_echo_n "(cached) " >&6
27330 else
27331 gcc_cv_as_mips_dot_module=no
27332 if test x$gcc_cv_as != x; then
27333 $as_echo '.module mips2
27334 .module fp=xx' > conftest.s
27335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; }
27341 then
27342 gcc_cv_as_mips_dot_module=yes
27343 else
27344 echo "configure: failed program was" >&5
27345 cat conftest.s >&5
27347 rm -f conftest.o conftest.s
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27351 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27352 if test $gcc_cv_as_mips_dot_module = yes; then
27354 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27358 if test x$gcc_cv_as_mips_dot_module = xno \
27359 && test x$with_fp_32 != x; then
27360 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27364 $as_echo_n "checking assembler for .micromips support... " >&6; }
27365 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27366 $as_echo_n "(cached) " >&6
27367 else
27368 gcc_cv_as_micromips_support=no
27369 if test x$gcc_cv_as != x; then
27370 $as_echo '.set micromips' > conftest.s
27371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; }
27377 then
27378 gcc_cv_as_micromips_support=yes
27379 else
27380 echo "configure: failed program was" >&5
27381 cat conftest.s >&5
27383 rm -f conftest.o conftest.s
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27387 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27388 if test $gcc_cv_as_micromips_support = yes; then
27390 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27396 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27397 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27398 $as_echo_n "(cached) " >&6
27399 else
27400 gcc_cv_as_mips_dtprelword=no
27401 if test $in_tree_gas = yes; then
27402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27403 then gcc_cv_as_mips_dtprelword=yes
27405 elif test x$gcc_cv_as != x; then
27406 $as_echo '.section .tdata,"awT",@progbits
27408 .word 2
27409 .text
27410 .dtprelword x+0x8000' > conftest.s
27411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27413 (eval $ac_try) 2>&5
27414 ac_status=$?
27415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27416 test $ac_status = 0; }; }
27417 then
27418 gcc_cv_as_mips_dtprelword=yes
27419 else
27420 echo "configure: failed program was" >&5
27421 cat conftest.s >&5
27423 rm -f conftest.o conftest.s
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27427 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27428 if test $gcc_cv_as_mips_dtprelword = yes; then
27430 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27436 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27437 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27438 $as_echo_n "(cached) " >&6
27439 else
27440 gcc_cv_as_mips_dspr1_mult=no
27441 if test x$gcc_cv_as != x; then
27442 $as_echo ' .set mips32r2
27443 .set nodspr2
27444 .set dsp
27445 madd $ac3,$4,$5
27446 maddu $ac3,$4,$5
27447 msub $ac3,$4,$5
27448 msubu $ac3,$4,$5
27449 mult $ac3,$4,$5
27450 multu $ac3,$4,$5' > conftest.s
27451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456 test $ac_status = 0; }; }
27457 then
27458 gcc_cv_as_mips_dspr1_mult=yes
27459 else
27460 echo "configure: failed program was" >&5
27461 cat conftest.s >&5
27463 rm -f conftest.o conftest.s
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27467 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27468 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27470 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27476 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27477 gcc_cv_as_ld_jalr_reloc=no
27478 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27479 if test $in_tree_ld = yes ; then
27480 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 \
27481 && test $in_tree_ld_is_elf = yes; then
27482 gcc_cv_as_ld_jalr_reloc=yes
27484 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27485 echo ' .ent x' > conftest.s
27486 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27487 echo ' lw $25,%call16(y)($28)' >> conftest.s
27488 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27489 echo '1: jalr $25' >> conftest.s
27490 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27491 echo '1: jalr $25' >> conftest.s
27492 echo ' .end x' >> conftest.s
27493 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27494 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27495 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27496 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27497 gcc_cv_as_ld_jalr_reloc=yes
27500 rm -f conftest.*
27503 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27504 if test x$target_cpu_default = x; then
27505 target_cpu_default=MASK_RELAX_PIC_CALLS
27506 else
27507 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27511 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27514 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27515 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27516 $as_echo_n "(cached) " >&6
27517 else
27518 gcc_cv_ld_mips_personality_relaxation=no
27519 if test $in_tree_ld = yes ; then
27520 if test "$gcc_cv_gld_major_version" -eq 2 \
27521 -a "$gcc_cv_gld_minor_version" -ge 21 \
27522 -o "$gcc_cv_gld_major_version" -gt 2; then
27523 gcc_cv_ld_mips_personality_relaxation=yes
27525 elif test x$gcc_cv_as != x \
27526 -a x$gcc_cv_ld != x \
27527 -a x$gcc_cv_readelf != x ; then
27528 cat > conftest.s <<EOF
27529 .cfi_startproc
27530 .cfi_personality 0x80,indirect_ptr
27531 .ent test
27532 test:
27534 .end test
27535 .cfi_endproc
27537 .section .data,"aw",@progbits
27538 indirect_ptr:
27539 .dc.a personality
27541 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27542 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27543 if $gcc_cv_readelf -d conftest 2>&1 \
27544 | grep TEXTREL > /dev/null 2>&1; then
27546 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27547 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27549 else
27550 gcc_cv_ld_mips_personality_relaxation=yes
27554 rm -f conftest.s conftest.o conftest
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27557 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27558 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27560 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27565 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27566 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27567 $as_echo_n "(cached) " >&6
27568 else
27569 gcc_cv_as_mips_nan=no
27570 if test x$gcc_cv_as != x; then
27571 $as_echo '' > conftest.s
27572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574 (eval $ac_try) 2>&5
27575 ac_status=$?
27576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; }
27578 then
27579 gcc_cv_as_mips_nan=yes
27580 else
27581 echo "configure: failed program was" >&5
27582 cat conftest.s >&5
27584 rm -f conftest.o conftest.s
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27588 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27589 if test $gcc_cv_as_mips_nan = yes; then
27591 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27595 if test x$gcc_cv_as_mips_nan = xno \
27596 && test x$with_nan != x; then
27597 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27600 s390*-*-*)
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27602 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27603 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_s390_gnu_attribute=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27609 then gcc_cv_as_s390_gnu_attribute=yes
27611 elif test x$gcc_cv_as != x; then
27612 $as_echo '.gnu_attribute 8,1' > conftest.s
27613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27619 then
27620 gcc_cv_as_s390_gnu_attribute=yes
27621 else
27622 echo "configure: failed program was" >&5
27623 cat conftest.s >&5
27625 rm -f conftest.o conftest.s
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27629 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27630 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27632 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27637 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27638 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27639 $as_echo_n "(cached) " >&6
27640 else
27641 gcc_cv_as_s390_machine_machinemode=no
27642 if test $in_tree_gas = yes; then
27643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27644 then gcc_cv_as_s390_machine_machinemode=yes
27646 elif test x$gcc_cv_as != x; then
27647 $as_echo ' .machinemode push
27648 .machinemode pop
27649 .machine push
27650 .machine pop' > conftest.s
27651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27656 test $ac_status = 0; }; }
27657 then
27658 gcc_cv_as_s390_machine_machinemode=yes
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27663 rm -f conftest.o conftest.s
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27667 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27668 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27670 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27675 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27676 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27677 $as_echo_n "(cached) " >&6
27678 else
27679 gcc_cv_as_s390_architecture_modifiers=no
27680 if test $in_tree_gas = yes; then
27681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27682 then gcc_cv_as_s390_architecture_modifiers=yes
27684 elif test x$gcc_cv_as != x; then
27685 $as_echo ' .machine z13+vx ' > conftest.s
27686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27688 (eval $ac_try) 2>&5
27689 ac_status=$?
27690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691 test $ac_status = 0; }; }
27692 then
27693 gcc_cv_as_s390_architecture_modifiers=yes
27694 else
27695 echo "configure: failed program was" >&5
27696 cat conftest.s >&5
27698 rm -f conftest.o conftest.s
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27702 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27703 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27705 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27710 esac
27712 # Mips and HP-UX need the GNU assembler.
27713 # Linux on IA64 might be able to use the Intel assembler.
27715 case "$target" in
27716 mips*-*-* | *-*-hpux* )
27717 if test x$gas_flag = xyes \
27718 || test x"$host" != x"$build" \
27719 || test ! -x "$gcc_cv_as" \
27720 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27722 else
27723 echo "*** This configuration requires the GNU assembler" >&2
27724 exit 1
27727 esac
27729 # ??? Not all targets support dwarf2 debug_line, even within a version
27730 # of gas. Moreover, we need to emit a valid instruction to trigger any
27731 # info to the output file. So, as supported targets are added to gas 2.11,
27732 # add some instruction here to (also) show we expect this might work.
27733 # ??? Once 2.11 is released, probably need to add first known working
27734 # version to the per-target configury.
27735 case "$cpu_type" in
27736 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27737 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27738 | tilegx | tilepro | visium | xstormy16 | xtensa)
27739 insn="nop"
27741 ia64 | s390)
27742 insn="nop 0"
27744 mmix)
27745 insn="swym 0"
27747 esac
27748 if test x"$insn" != x; then
27749 conftest_s="\
27750 .file 1 \"conftest.s\"
27751 .loc 1 3 0
27752 $insn"
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27754 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27755 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27756 $as_echo_n "(cached) " >&6
27757 else
27758 gcc_cv_as_dwarf2_debug_line=no
27759 if test $in_tree_gas = yes; then
27760 if test $in_tree_gas_is_elf = yes \
27761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27762 then gcc_cv_as_dwarf2_debug_line=yes
27764 elif test x$gcc_cv_as != x; then
27765 $as_echo "$conftest_s" > conftest.s
27766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27771 test $ac_status = 0; }; }
27772 then
27773 if test x$gcc_cv_objdump != x \
27774 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27775 | grep debug_line > /dev/null 2>&1; then
27776 gcc_cv_as_dwarf2_debug_line=yes
27778 else
27779 echo "configure: failed program was" >&5
27780 cat conftest.s >&5
27782 rm -f conftest.o conftest.s
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27786 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27790 # The .debug_line file table must be in the exact order that
27791 # we specified the files, since these indices are also used
27792 # by DW_AT_decl_file. Approximate this test by testing if
27793 # the assembler bitches if the same index is assigned twice.
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27795 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27796 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27797 $as_echo_n "(cached) " >&6
27798 else
27799 gcc_cv_as_dwarf2_file_buggy=no
27800 if test x$gcc_cv_as != x; then
27801 $as_echo ' .file 1 "foo.s"
27802 .file 1 "bar.s"' > conftest.s
27803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808 test $ac_status = 0; }; }
27809 then
27810 gcc_cv_as_dwarf2_file_buggy=yes
27811 else
27812 echo "configure: failed program was" >&5
27813 cat conftest.s >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27819 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27823 if test $gcc_cv_as_dwarf2_debug_line = yes \
27824 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27826 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27829 if test $gcc_cv_as_leb128 = yes; then
27830 conftest_s="\
27831 .file 1 \"conftest.s\"
27832 .loc 1 3 0 view .LVU1
27833 $insn
27834 .data
27835 .uleb128 .LVU1
27836 .uleb128 .LVU1
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27839 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27840 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27841 $as_echo_n "(cached) " >&6
27842 else
27843 gcc_cv_as_dwarf2_debug_view=no
27844 if test $in_tree_gas = yes; then
27845 if test $in_tree_gas_is_elf = yes \
27846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27847 then gcc_cv_as_dwarf2_debug_view=yes
27849 elif test x$gcc_cv_as != x; then
27850 $as_echo "$conftest_s" > conftest.s
27851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27853 (eval $ac_try) 2>&5
27854 ac_status=$?
27855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27856 test $ac_status = 0; }; }
27857 then
27858 gcc_cv_as_dwarf2_debug_view=yes
27859 else
27860 echo "configure: failed program was" >&5
27861 cat conftest.s >&5
27863 rm -f conftest.o conftest.s
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27867 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27868 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27870 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27877 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27878 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27879 $as_echo_n "(cached) " >&6
27880 else
27881 gcc_cv_as_gdwarf2_flag=no
27882 if test $in_tree_gas = yes; then
27883 if test $in_tree_gas_is_elf = yes \
27884 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27885 then gcc_cv_as_gdwarf2_flag=yes
27887 elif test x$gcc_cv_as != x; then
27888 $as_echo "$insn" > conftest.s
27889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891 (eval $ac_try) 2>&5
27892 ac_status=$?
27893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894 test $ac_status = 0; }; }
27895 then
27896 gcc_cv_as_gdwarf2_flag=yes
27897 else
27898 echo "configure: failed program was" >&5
27899 cat conftest.s >&5
27901 rm -f conftest.o conftest.s
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27905 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27906 if test $gcc_cv_as_gdwarf2_flag = yes; then
27908 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27914 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27915 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27916 $as_echo_n "(cached) " >&6
27917 else
27918 gcc_cv_as_gstabs_flag=no
27919 if test $in_tree_gas = yes; then
27920 if test $in_tree_gas_is_elf = yes \
27921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27922 then gcc_cv_as_gstabs_flag=yes
27924 elif test x$gcc_cv_as != x; then
27925 $as_echo "$insn" > conftest.s
27926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }
27932 then
27933 gcc_cv_as_gstabs_flag=yes
27934 else
27935 echo "configure: failed program was" >&5
27936 cat conftest.s >&5
27938 rm -f conftest.o conftest.s
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27942 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27943 if test $gcc_cv_as_gstabs_flag = yes; then
27945 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27951 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27952 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27953 $as_echo_n "(cached) " >&6
27954 else
27955 gcc_cv_as_debug_prefix_map_flag=no
27956 if test $in_tree_gas = yes; then
27957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27958 then gcc_cv_as_debug_prefix_map_flag=yes
27960 elif test x$gcc_cv_as != x; then
27961 $as_echo "$insn" > conftest.s
27962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27967 test $ac_status = 0; }; }
27968 then
27969 gcc_cv_as_debug_prefix_map_flag=yes
27970 else
27971 echo "configure: failed program was" >&5
27972 cat conftest.s >&5
27974 rm -f conftest.o conftest.s
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27978 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27979 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27981 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27988 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27989 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27990 $as_echo_n "(cached) " >&6
27991 else
27992 gcc_cv_as_compress_debug=no
27993 if test x$gcc_cv_as != x; then
27994 $as_echo '' > conftest.s
27995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28000 test $ac_status = 0; }; }
28001 then
28002 # gas compiled without zlib cannot compress debug sections and warns
28003 # about it, but still exits successfully. So check for this, too.
28004 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28005 then
28006 gcc_cv_as_compress_debug=0
28007 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28008 # defaulting to the ELF gABI format.
28009 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28010 then
28011 gcc_cv_as_compress_debug=2
28012 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28013 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28014 # Before binutils 2.26, gas only supported --compress-debug-options and
28015 # emitted the traditional GNU format.
28016 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28017 then
28018 gcc_cv_as_compress_debug=1
28019 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28020 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28021 else
28022 gcc_cv_as_compress_debug=0
28024 else
28025 echo "configure: failed program was" >&5
28026 cat conftest.s >&5
28028 rm -f conftest.o conftest.s
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28032 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28036 cat >>confdefs.h <<_ACEOF
28037 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28038 _ACEOF
28041 cat >>confdefs.h <<_ACEOF
28042 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28043 _ACEOF
28046 cat >>confdefs.h <<_ACEOF
28047 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28048 _ACEOF
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28052 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28053 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28054 $as_echo_n "(cached) " >&6
28055 else
28056 gcc_cv_as_lcomm_with_alignment=no
28057 if test x$gcc_cv_as != x; then
28058 $as_echo '.lcomm bar,4,16' > conftest.s
28059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28064 test $ac_status = 0; }; }
28065 then
28066 gcc_cv_as_lcomm_with_alignment=yes
28067 else
28068 echo "configure: failed program was" >&5
28069 cat conftest.s >&5
28071 rm -f conftest.o conftest.s
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28075 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28076 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28078 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28083 if test x$with_sysroot = x && test x$host = x$target \
28084 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28085 && test "$prefix" != "NONE"; then
28087 cat >>confdefs.h <<_ACEOF
28088 #define PREFIX_INCLUDE_DIR "$prefix/include"
28089 _ACEOF
28093 # Determine the version of glibc, if any, used on the target.
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28095 $as_echo_n "checking for target glibc version... " >&6; }
28097 # Check whether --with-glibc-version was given.
28098 if test "${with_glibc_version+set}" = set; then :
28099 withval=$with_glibc_version;
28100 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28101 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28102 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28103 else
28104 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28106 else
28108 glibc_version_major=0
28109 glibc_version_minor=0
28110 if test -f $target_header_dir/features.h \
28111 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28112 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28113 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28114 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28119 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28121 cat >>confdefs.h <<_ACEOF
28122 #define TARGET_GLIBC_MAJOR $glibc_version_major
28123 _ACEOF
28126 cat >>confdefs.h <<_ACEOF
28127 #define TARGET_GLIBC_MINOR $glibc_version_minor
28128 _ACEOF
28131 # Check whether --enable-gnu-unique-object was given.
28132 if test "${enable_gnu_unique_object+set}" = set; then :
28133 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28134 yes | no) ;;
28135 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28136 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28137 esac
28138 else
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28140 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28141 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28142 $as_echo_n "(cached) " >&6
28143 else
28144 gcc_cv_as_gnu_unique_object=no
28145 if test $in_tree_gas = yes; then
28146 if test $in_tree_gas_is_elf = yes \
28147 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28148 then gcc_cv_as_gnu_unique_object=yes
28150 elif test x$gcc_cv_as != x; then
28151 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28154 (eval $ac_try) 2>&5
28155 ac_status=$?
28156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28157 test $ac_status = 0; }; }
28158 then
28159 gcc_cv_as_gnu_unique_object=yes
28160 else
28161 echo "configure: failed program was" >&5
28162 cat conftest.s >&5
28164 rm -f conftest.o conftest.s
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28168 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28169 if test $gcc_cv_as_gnu_unique_object = yes; then
28170 # We need to unquote above to to use the definition from config.gcc.
28171 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28173 if test $glibc_version_major -gt 2 \
28174 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28175 enable_gnu_unique_object=yes
28182 if test x$enable_gnu_unique_object = xyes; then
28184 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28189 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28190 if test "${gcc_cv_as_line_zero+set}" = set; then :
28191 $as_echo_n "(cached) " >&6
28192 else
28193 gcc_cv_as_line_zero=no
28194 if test $in_tree_gas = yes; then
28195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28196 then gcc_cv_as_line_zero=yes
28198 elif test "x$gcc_cv_as" != x; then
28199 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28200 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; } &&
28206 test "x`cat conftest.out`" = x
28207 then
28208 gcc_cv_as_line_zero=yes
28209 else
28210 echo "configure: failed program was" >&5
28211 cat conftest.s >&5
28212 echo "configure: error output was" >&5
28213 cat conftest.out >&5
28215 rm -f conftest.o conftest.s conftest.out
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28219 $as_echo "$gcc_cv_as_line_zero" >&6; }
28220 if test "x$gcc_cv_as_line_zero" = xyes; then
28222 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28227 $as_echo_n "checking support for thin archives... " >&6; }
28228 thin_archive_support=no
28229 echo 'int main (void) { return 0; }' > conftest.c
28230 if ($AR --version | sed 1q | grep "GNU ar" \
28231 && $CC $CFLAGS -c conftest.c \
28232 && $AR rcT conftest.a conftest.o \
28233 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28234 thin_archive_support=yes
28236 rm -f conftest.c conftest.o conftest.a conftest
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28238 $as_echo "$thin_archive_support" >&6; }
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28242 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28243 gcc_cv_ld_eh_frame_hdr=no
28244 if test $in_tree_ld = yes ; then
28245 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 \
28246 && test $in_tree_ld_is_elf = yes; then
28247 gcc_cv_ld_eh_frame_hdr=yes
28249 elif test x$gcc_cv_ld != x; then
28250 if echo "$ld_ver" | grep GNU > /dev/null; then
28251 # Check if linker supports --eh-frame-hdr option
28252 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28253 gcc_cv_ld_eh_frame_hdr=yes
28255 else
28256 case "$target" in
28257 *-*-solaris2*)
28258 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28259 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28260 gcc_cv_ld_eh_frame_hdr=yes
28263 esac
28267 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28269 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28273 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28276 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28277 gcc_cv_ld_eh_frame_ciev3=no
28278 if test $in_tree_ld = yes ; then
28279 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 \
28280 && test $in_tree_ld_is_elf = yes; then
28281 gcc_cv_ld_eh_frame_ciev3=yes
28283 elif test x$gcc_cv_ld != x; then
28284 if echo "$ld_ver" | grep GNU > /dev/null; then
28285 gcc_cv_ld_eh_frame_ciev3=yes
28286 if test 0"$ld_date" -lt 20040513; then
28287 if test -n "$ld_date"; then
28288 # If there was date string, but was earlier than 2004-05-13, fail
28289 gcc_cv_ld_eh_frame_ciev3=no
28290 elif test "$ld_vers_major" -lt 2; then
28291 gcc_cv_ld_eh_frame_ciev3=no
28292 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28293 gcc_cv_ld_eh_frame_ciev3=no
28296 else
28297 case "$target" in
28298 *-*-solaris2*)
28299 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28300 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28301 gcc_cv_ld_eh_frame_ciev3=yes
28304 esac
28308 cat >>confdefs.h <<_ACEOF
28309 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28310 _ACEOF
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28313 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28316 $as_echo_n "checking linker position independent executable support... " >&6; }
28317 gcc_cv_ld_pie=no
28318 if test $in_tree_ld = yes ; then
28319 case "$target" in
28320 # Full PIE support on Solaris was only introduced in gld 2.26.
28321 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28322 *) gcc_gld_pie_min_version=15 ;;
28323 esac
28324 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28325 && test $in_tree_ld_is_elf = yes; then
28326 gcc_cv_ld_pie=yes
28328 elif test x$gcc_cv_ld != x; then
28329 # Check if linker supports -pie option
28330 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28331 gcc_cv_ld_pie=yes
28332 case "$target" in
28333 *-*-solaris2*)
28334 if echo "$ld_ver" | grep GNU > /dev/null \
28335 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28336 gcc_cv_ld_pie=no
28339 esac
28340 else
28341 case "$target" in
28342 *-*-solaris2.1[1-9]*)
28343 # Solaris 11.3 added PIE support.
28344 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28345 gcc_cv_ld_pie=yes
28348 esac
28351 if test x"$gcc_cv_ld_pie" = xyes; then
28353 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28357 $as_echo "$gcc_cv_ld_pie" >&6; }
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28360 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28361 gcc_cv_ld_pie_copyreloc=no
28362 if test $gcc_cv_ld_pie = yes ; then
28363 if test $in_tree_ld = yes ; then
28364 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
28365 gcc_cv_ld_pie_copyreloc=yes
28367 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28368 # Check if linker supports -pie option with copy reloc
28369 case "$target" in
28370 i?86-*-linux* | x86_64-*-linux*)
28371 cat > conftest1.s <<EOF
28372 .globl a_glob
28373 .data
28374 .type a_glob, @object
28375 .size a_glob, 4
28376 a_glob:
28377 .long 2
28379 cat > conftest2.s <<EOF
28380 .text
28381 .globl main
28382 .type main, @function
28383 main:
28384 movl %eax, a_glob(%rip)
28385 .size main, .-main
28386 .globl ptr
28387 .section .data.rel,"aw",@progbits
28388 .type ptr, @object
28389 ptr:
28390 .quad a_glob
28392 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28393 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28394 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28395 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28396 gcc_cv_ld_pie_copyreloc=yes
28398 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28400 esac
28404 cat >>confdefs.h <<_ACEOF
28405 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28406 _ACEOF
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28409 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28412 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28413 gcc_cv_ld_eh_gc_sections=no
28414 if test $in_tree_ld = yes ; then
28415 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 \
28416 && test $in_tree_ld_is_elf = yes; then
28417 gcc_cv_ld_eh_gc_sections=yes
28419 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28420 cat > conftest.s <<EOF
28421 .section .text
28422 .globl _start
28423 .type _start, @function
28424 _start:
28425 .long foo
28426 .size _start, .-_start
28427 .section .text.foo,"ax",@progbits
28428 .type foo, @function
28429 foo:
28430 .long 0
28431 .size foo, .-foo
28432 .section .gcc_except_table.foo,"a",@progbits
28433 .L0:
28434 .long 0
28435 .section .eh_frame,"a",@progbits
28436 .long .L0
28438 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28439 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28440 | grep "gc-sections option ignored" > /dev/null; then
28441 gcc_cv_ld_eh_gc_sections=no
28442 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28443 | grep gcc_except_table > /dev/null; then
28444 gcc_cv_ld_eh_gc_sections=yes
28445 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28446 if test x$gcc_cv_as_comdat_group != xyes; then
28447 gcc_cv_ld_eh_gc_sections=no
28448 cat > conftest.s <<EOF
28449 .section .text
28450 .globl _start
28451 .type _start, @function
28452 _start:
28453 .long foo
28454 .size _start, .-_start
28455 .section .gnu.linkonce.t.foo,"ax",@progbits
28456 .type foo, @function
28457 foo:
28458 .long 0
28459 .size foo, .-foo
28460 .section .gcc_except_table.foo,"a",@progbits
28461 .L0:
28462 .long 0
28463 .section .eh_frame,"a",@progbits
28464 .long .L0
28466 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28467 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28468 | grep "gc-sections option ignored" > /dev/null; then
28469 gcc_cv_ld_eh_gc_sections=no
28470 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28471 | grep gcc_except_table > /dev/null; then
28472 gcc_cv_ld_eh_gc_sections=yes
28478 rm -f conftest.s conftest.o conftest
28480 case "$target" in
28481 hppa*-*-linux*)
28482 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28483 gcc_cv_ld_eh_gc_sections=no
28485 esac
28486 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28488 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28492 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28495 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28496 gcc_cv_ld_eh_gc_sections_bug=no
28497 if test $in_tree_ld = yes ; then
28498 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 \
28499 && test $in_tree_ld_is_elf = yes; then
28500 gcc_cv_ld_eh_gc_sections_bug=yes
28502 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
28503 gcc_cv_ld_eh_gc_sections_bug=yes
28504 cat > conftest.s <<EOF
28505 .section .text
28506 .globl _start
28507 .type _start, @function
28508 _start:
28509 .long foo
28510 .size _start, .-_start
28511 .section .text.startup.foo,"ax",@progbits
28512 .type foo, @function
28513 foo:
28514 .long 0
28515 .size foo, .-foo
28516 .section .gcc_except_table.foo,"a",@progbits
28517 .L0:
28518 .long 0
28519 .section .eh_frame,"a",@progbits
28520 .long .L0
28522 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28523 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28524 | grep "gc-sections option ignored" > /dev/null; then
28526 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28527 | grep gcc_except_table > /dev/null; then
28528 gcc_cv_ld_eh_gc_sections_bug=no
28531 rm -f conftest.s conftest.o conftest
28533 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28535 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28539 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28542 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28543 # gold/gld support compressed debug sections since binutils 2.19/2.21
28544 # In binutils 2.26, gld gained support for the ELF gABI format.
28545 if test $in_tree_ld = yes ; then
28546 gcc_cv_ld_compress_debug=0
28547 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 \
28548 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28549 gcc_cv_ld_compress_debug=2
28550 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28551 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28552 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28553 gcc_cv_ld_compress_debug=3
28554 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28555 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 \
28556 && test $in_tree_ld_is_elf = yes; then
28557 gcc_cv_ld_compress_debug=1
28559 elif echo "$ld_ver" | grep GNU > /dev/null; then
28560 if test "$ld_vers_major" -lt 2 \
28561 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28562 gcc_cv_ld_compress_debug=0
28563 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28564 gcc_cv_ld_compress_debug=1
28565 else
28566 gcc_cv_ld_compress_debug=3
28567 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28569 if test $ld_is_gold = yes; then
28570 gcc_cv_ld_compress_debug=2
28571 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28573 else
28574 case "${target}" in
28575 *-*-solaris2*)
28576 # Introduced in Solaris 11.2.
28577 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28578 gcc_cv_ld_compress_debug=3
28579 gcc_cv_ld_compress_debug_option="-z compress-sections"
28580 else
28581 gcc_cv_ld_compress_debug=0
28585 # Assume linkers other than GNU ld don't support compessed debug
28586 # sections.
28587 gcc_cv_ld_compress_debug=0
28589 esac
28592 cat >>confdefs.h <<_ACEOF
28593 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28594 _ACEOF
28597 cat >>confdefs.h <<_ACEOF
28598 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28599 _ACEOF
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28602 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28604 if test x"$ld64_flag" = x"yes"; then
28606 # Set defaults for possibly untestable items.
28607 gcc_cv_ld64_export_dynamic=0
28609 if test "$build" = "$host"; then
28610 darwin_try_test=1
28611 else
28612 darwin_try_test=0
28615 # On Darwin, because of FAT library support, it is often possible to execute
28616 # exes from compatible archs even when the host differs from the build system.
28617 case "$build","$host" in
28618 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28619 darwin_try_test=1;;
28620 *) ;;
28621 esac
28623 # If the configurer specified a minimum ld64 version to be supported, then use
28624 # that to determine feature support.
28625 if test x"${gcc_cv_ld64_version}" != x; then
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28627 $as_echo_n "checking ld64 specified version... " >&6; }
28628 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28630 $as_echo "$gcc_cv_ld64_major" >&6; }
28631 if test "$gcc_cv_ld64_major" -ge 236; then
28632 gcc_cv_ld64_export_dynamic=1
28634 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28635 # If the version was not specified, try to find it.
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28637 $as_echo_n "checking linker version... " >&6; }
28638 if test x"${gcc_cv_ld64_version}" = x; then
28639 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28642 $as_echo "$gcc_cv_ld64_version" >&6; }
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28645 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28646 gcc_cv_ld64_export_dynamic=1
28647 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28648 gcc_cv_ld64_export_dynamic=0
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28651 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28654 if test x"${gcc_cv_ld64_version}" != x; then
28656 cat >>confdefs.h <<_ACEOF
28657 #define LD64_VERSION "${gcc_cv_ld64_version}"
28658 _ACEOF
28663 cat >>confdefs.h <<_ACEOF
28664 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28665 _ACEOF
28669 # --------
28670 # UNSORTED
28671 # --------
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28674 $as_echo_n "checking linker --as-needed support... " >&6; }
28675 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28676 $as_echo_n "(cached) " >&6
28677 else
28678 gcc_cv_ld_as_needed=no
28679 gcc_cv_ld_as_needed_option='--as-needed'
28680 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28681 if test $in_tree_ld = yes ; then
28682 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 \
28683 && test $in_tree_ld_is_elf = yes; then
28684 gcc_cv_ld_as_needed=yes
28686 elif test x$gcc_cv_ld != x; then
28687 # Check if linker supports --as-needed and --no-as-needed options
28688 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28689 gcc_cv_ld_as_needed=yes
28691 case "$target:$gnu_ld" in
28692 *-*-solaris2*:no)
28693 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28694 # forms.
28695 gcc_cv_ld_as_needed=yes
28696 gcc_cv_ld_as_needed_option="-z ignore"
28697 gcc_cv_ld_no_as_needed_option="-z record"
28699 esac
28701 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28702 # dl_iterate_phdr, i.e. since Solaris 11.
28703 case "$target" in
28704 *-*-solaris2.1[1-9]*)
28705 case "$target" in
28706 i?86-*-* | x86_64-*-*)
28707 if echo "$ld_ver" | grep GNU > /dev/null; then
28708 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28709 gcc_cv_ld_as_needed=no
28712 esac
28714 *-*-solaris2*)
28715 gcc_cv_ld_as_needed=no
28717 esac
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28721 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28722 if test x"$gcc_cv_ld_as_needed" = xyes; then
28724 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28727 cat >>confdefs.h <<_ACEOF
28728 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28729 _ACEOF
28732 cat >>confdefs.h <<_ACEOF
28733 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28734 _ACEOF
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28739 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28740 saved_LDFLAGS="$LDFLAGS"
28741 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28742 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h. */
28745 int main(void) {return 0;}
28746 _ACEOF
28747 if ac_fn_cxx_try_link "$LINENO"; then :
28748 gcc_cv_ld_clearcap=yes; break
28749 else
28750 gcc_cv_ld_clearcap=no
28752 rm -f core conftest.err conftest.$ac_objext \
28753 conftest$ac_exeext conftest.$ac_ext
28754 done
28755 LDFLAGS="$saved_LDFLAGS"
28756 if test "x$gcc_cv_ld_clearcap" = xyes; then
28758 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28760 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28764 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28766 case "$target" in
28767 powerpc*-*-*)
28768 case "$target" in
28769 *le-*-linux*)
28770 emul_name="-melf32lppc"
28773 emul_name="-melf32ppc"
28775 esac
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28777 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28778 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28779 $as_echo_n "(cached) " >&6
28780 else
28781 gcc_cv_ld_ppc_attr=no
28782 if test x"$ld_is_gold" = xyes; then
28783 gcc_cv_ld_ppc_attr=yes
28784 elif test $in_tree_ld = yes ; then
28785 if test "$gcc_cv_gld_major_version" -eq 2 \
28786 -a "$gcc_cv_gld_minor_version" -ge 28 \
28787 -o "$gcc_cv_gld_major_version" -gt 2; then
28788 gcc_cv_ld_ppc_attr=yes
28790 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28791 # check that merging the long double .gnu_attribute doesn't warn
28792 cat > conftest1.s <<EOF
28793 .gnu_attribute 4,1
28795 cat > conftest2.s <<EOF
28796 .gnu_attribute 4,9
28798 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28799 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28800 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28801 && test ! -s conftest.err; then
28802 gcc_cv_ld_ppc_attr=yes
28804 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28809 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28810 if test x$gcc_cv_ld_ppc_attr = xyes; then
28812 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28816 esac
28818 case "$target:$tm_file" in
28819 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28820 case "$target" in
28821 *le-*-linux*)
28822 emul_name="-melf64lppc"
28824 *-*-linux*)
28825 emul_name="-melf64ppc"
28827 *-*-freebsd*)
28828 emul_name="-melf64ppc_fbsd"
28830 esac
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28832 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28833 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28834 $as_echo_n "(cached) " >&6
28835 else
28836 gcc_cv_ld_no_dot_syms=no
28837 if test x"$ld_is_gold" = xyes; then
28838 gcc_cv_ld_no_dot_syms=yes
28839 elif test $in_tree_ld = yes ; then
28840 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
28841 gcc_cv_ld_no_dot_syms=yes
28843 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28844 cat > conftest1.s <<EOF
28845 .text
28846 bl .foo
28848 cat > conftest2.s <<EOF
28849 .section ".opd","aw"
28850 .align 3
28851 .globl foo
28852 .type foo,@function
28853 foo:
28854 .quad .LEfoo,.TOC.@tocbase,0
28855 .text
28856 .LEfoo:
28858 .size foo,.-.LEfoo
28860 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28861 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28862 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28863 gcc_cv_ld_no_dot_syms=yes
28865 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28870 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28871 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28873 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28878 $as_echo_n "checking linker large toc support... " >&6; }
28879 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28880 $as_echo_n "(cached) " >&6
28881 else
28882 gcc_cv_ld_large_toc=no
28883 if test x"$ld_is_gold" = xyes; then
28884 gcc_cv_ld_large_toc=yes
28885 elif test $in_tree_ld = yes ; then
28886 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
28887 gcc_cv_ld_large_toc=yes
28889 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28890 cat > conftest.s <<EOF
28891 .section ".tbss","awT",@nobits
28892 .align 3
28893 ie0: .space 8
28894 .global _start
28895 .text
28896 _start:
28897 addis 9,13,ie0@got@tprel@ha
28898 ld 9,ie0@got@tprel@l(9)
28900 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28901 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28902 gcc_cv_ld_large_toc=yes
28904 rm -f conftest conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28909 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28910 if test x"$gcc_cv_ld_large_toc" = xyes; then
28912 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28917 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28918 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28919 $as_echo_n "(cached) " >&6
28920 else
28921 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28922 cat > conftest.s <<EOF
28923 .global _start
28924 .text
28925 _start:
28926 addis 9,2,x@got@ha
28927 .section .data.rel.ro,"aw",@progbits
28928 .p2align 16
28929 .space 32768
28930 x: .quad .TOC.
28932 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28933 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28934 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)) }'`
28936 rm -f conftest conftest.o conftest.s
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28941 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28942 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28944 cat >>confdefs.h <<_ACEOF
28945 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28946 _ACEOF
28950 esac
28952 case "$target" in
28953 *-*-aix*)
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28955 $as_echo_n "checking linker large toc support... " >&6; }
28956 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28957 $as_echo_n "(cached) " >&6
28958 else
28959 gcc_cv_ld_large_toc=no
28960 if test x$gcc_cv_as != x ; then
28961 cat > conftest.s <<EOF
28962 .toc
28963 LC..1:
28964 .tc a[TC],a[RW]
28965 .extern a[RW]
28966 .csect .text[PR]
28967 .largetoctest:
28968 addis 9,LC..1@u(2)
28969 ld 3,LC..1@l(9)
28971 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28972 gcc_cv_ld_large_toc=yes
28974 rm -f conftest conftest.o conftest.s
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28979 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28980 if test x"$gcc_cv_ld_large_toc" = xyes; then
28982 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28986 esac
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28989 $as_echo_n "checking linker --build-id support... " >&6; }
28990 if test "${gcc_cv_ld_buildid+set}" = set; then :
28991 $as_echo_n "(cached) " >&6
28992 else
28993 gcc_cv_ld_buildid=no
28994 if test $in_tree_ld = yes ; then
28995 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28996 "$gcc_cv_gld_minor_version" -ge 18 -o \
28997 "$gcc_cv_gld_major_version" -gt 2 \
28998 && test $in_tree_ld_is_elf = yes; then
28999 gcc_cv_ld_buildid=yes
29001 elif test x$gcc_cv_ld != x; then
29002 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29003 gcc_cv_ld_buildid=yes
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29008 $as_echo "$gcc_cv_ld_buildid" >&6; }
29009 if test x"$gcc_cv_ld_buildid" = xyes; then
29011 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29015 # Check whether --enable-linker-build-id was given.
29016 if test "${enable_linker_build_id+set}" = set; then :
29017 enableval=$enable_linker_build_id;
29018 else
29019 enable_linker_build_id=no
29023 if test x"$enable_linker_build_id" = xyes; then
29024 if test x"$gcc_cv_ld_buildid" = xyes; then
29026 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29028 else
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29030 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29034 # In binutils 2.21, GNU ld gained support for new emulations fully
29035 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29037 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29038 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
29039 $as_echo_n "(cached) " >&6
29040 else
29041 gcc_cv_ld_sol2_emulation=no
29042 if test $in_tree_ld = yes ; then
29043 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29044 "$gcc_cv_gld_minor_version" -ge 21 -o \
29045 "$gcc_cv_gld_major_version" -gt 2 \
29046 && test $in_tree_ld_is_elf = yes; then
29047 gcc_cv_ld_sol2_emulation=yes
29049 elif test x$gcc_cv_ld != x; then
29050 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29051 grep _sol2 > /dev/null; then
29052 gcc_cv_ld_sol2_emulation=yes
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29057 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29058 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29060 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29065 $as_echo_n "checking linker --sysroot support... " >&6; }
29066 if test "${gcc_cv_ld_sysroot+set}" = set; then :
29067 $as_echo_n "(cached) " >&6
29068 else
29069 gcc_cv_ld_sysroot=no
29070 if test $in_tree_ld = yes ; then
29071 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
29072 gcc_cv_ld_sysroot=yes
29074 elif test x$gcc_cv_ld != x; then
29075 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29076 gcc_cv_ld_sysroot=yes
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29081 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29082 if test x"$gcc_cv_ld_sysroot" = xyes; then
29084 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29088 case $target in
29089 *-*-solaris2*)
29090 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29092 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29093 if test "${gcc_cv_solaris_crts+set}" = set; then :
29094 $as_echo_n "(cached) " >&6
29095 else
29096 gcc_cv_solaris_crts=no
29097 if test x$host != x$target; then
29098 if test "x$with_sysroot" = xyes; then
29099 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29100 else
29101 target_sysroot="${with_sysroot}"
29104 target_libdir="$target_sysroot/usr/lib"
29105 # At the time they were added, gcrt1.o became a symlink for backwards
29106 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29107 case $target in
29108 i?86-*-solaris2* | x86_64-*-solaris2*)
29109 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29111 sparc*-*-solaris2*)
29112 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29114 esac
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29117 $as_echo "$gcc_cv_solaris_crts" >&6; }
29119 esac
29120 if test x$gcc_cv_solaris_crts = xyes; then
29122 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29126 # Check whether --enable-libssp was given.
29127 if test "${enable_libssp+set}" = set; then :
29128 enableval=$enable_libssp; case "${enableval}" in
29129 yes|no)
29132 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29134 esac
29138 # Test for stack protector support in target C library.
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29140 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29141 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29142 $as_echo_n "(cached) " >&6
29143 else
29144 gcc_cv_libc_provides_ssp=no
29145 if test "x$enable_libssp" = "xno"; then
29146 gcc_cv_libc_provides_ssp=yes
29147 elif test "x$enable_libssp" = "xyes"; then
29148 gcc_cv_libc_provides_ssp=no
29149 else
29150 case "$target" in
29151 *-*-musl*)
29152 # All versions of musl provide stack protector
29153 gcc_cv_libc_provides_ssp=yes;;
29154 *-*-linux* | *-*-kfreebsd*-gnu)
29155 # glibc 2.4 and later provides __stack_chk_fail and
29156 # either __stack_chk_guard, or TLS access to stack guard canary.
29158 if test $glibc_version_major -gt 2 \
29159 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29160 gcc_cv_libc_provides_ssp=yes
29161 else
29163 if test -f $target_header_dir/features.h \
29164 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29165 $target_header_dir/features.h > /dev/null; then
29166 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29167 $target_header_dir/features.h > /dev/null && \
29168 test -f $target_header_dir/bits/uClibc_config.h && \
29169 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29170 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29171 gcc_cv_libc_provides_ssp=yes
29173 # all versions of Bionic support stack protector
29174 elif test -f $target_header_dir/sys/cdefs.h \
29175 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29176 $target_header_dir/sys/cdefs.h > /dev/null; then
29177 gcc_cv_libc_provides_ssp=yes
29181 *-*-gnu*)
29182 # Avoid complicated tests (see
29183 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29184 # simply assert that glibc does provide this, which is true for all
29185 # realistically usable GNU/Hurd configurations.
29186 # All supported versions of musl provide it as well
29187 gcc_cv_libc_provides_ssp=yes;;
29188 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29189 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29190 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29191 gcc_cv_libc_provides_ssp=yes
29192 else
29193 echo "no __stack_chk_fail on this target"
29197 *) gcc_cv_libc_provides_ssp=no ;;
29198 esac
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29202 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29204 if test x$gcc_cv_libc_provides_ssp = xyes; then
29206 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29210 # Check whether --enable-default-ssp was given.
29211 # Check whether --enable-default-ssp was given.
29212 if test "${enable_default_ssp+set}" = set; then :
29213 enableval=$enable_default_ssp;
29214 if test x$gcc_cv_libc_provides_ssp = xyes; then
29215 case "$target" in
29216 ia64*-*-*) enable_default_ssp=no ;;
29217 *) enable_default_ssp=$enableval ;;
29218 esac
29219 else
29220 enable_default_ssp=no
29222 else
29223 enable_default_ssp=no
29226 if test x$enable_default_ssp = xyes ; then
29228 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29233 # Test for <sys/sdt.h> on the target.
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29236 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29237 have_sys_sdt_h=no
29238 if test -f $target_header_dir/sys/sdt.h; then
29239 have_sys_sdt_h=yes
29241 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29245 $as_echo "$have_sys_sdt_h" >&6; }
29247 # Check if TFmode long double should be used by default or not.
29248 # Some glibc targets used DFmode long double, but with glibc 2.4
29249 # and later they can use TFmode.
29250 case "$target" in
29251 powerpc*-*-linux* | \
29252 sparc*-*-linux* | \
29253 s390*-*-linux* | \
29254 alpha*-*-linux*)
29256 # Check whether --with-long-double-128 was given.
29257 if test "${with_long_double_128+set}" = set; then :
29258 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29259 else
29261 if test $glibc_version_major -gt 2 \
29262 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29263 gcc_cv_target_ldbl128=yes
29264 else
29266 gcc_cv_target_ldbl128=no
29267 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29268 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29269 && gcc_cv_target_ldbl128=yes
29275 esac
29276 if test x$gcc_cv_target_ldbl128 = xyes; then
29278 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29282 # Check if TFmode long double target should use the IBM extended double or IEEE
29283 # 128-bit floating point formats if long doubles are 128-bits long. The long
29284 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29285 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29286 # libgcc.
29288 # Check whether --with-long-double-format was given.
29289 if test "${with_long_double_format+set}" = set; then :
29290 withval=$with_long_double_format;
29291 case "$target:$with_long_double_format" in
29292 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29295 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29296 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29297 case "$with_cpu" in
29298 power7 | power8 | power9 | power1*)
29302 as_fn_error "Configuration option --with-long-double-format is only \
29303 supported if the default cpu is power7 or newer" "$LINENO" 5
29304 with_long_double_format=""
29306 esac
29308 xpowerpc64*-*-linux*:*)
29309 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29310 with_long_double_format=""
29313 as_fn_error "Configure option --with-long-double-format is only supported \
29314 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29315 with_long_double_format=""
29317 esac
29321 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29322 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29323 gcc_cv_libc_provides_hwcap_in_tcb=no
29324 case "$target" in
29325 powerpc*-*-linux*)
29327 if test $glibc_version_major -gt 2 \
29328 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29329 gcc_cv_libc_provides_hwcap_in_tcb=yes
29332 esac
29333 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29335 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29340 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29341 gcc_cv_target_dl_iterate_phdr=unknown
29342 case "$target" in
29343 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29344 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29345 # libdl there, both complicating its use and breaking compatibility
29346 # between Solaris 10 updates.
29347 *-*-solaris2.1[1-9]*)
29348 # <link.h> needs both a dl_iterate_phdr declaration and support for
29349 # compilation with largefile support.
29350 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29351 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29352 gcc_cv_target_dl_iterate_phdr=yes
29353 else
29354 gcc_cv_target_dl_iterate_phdr=no
29357 *-*-dragonfly* | *-*-freebsd*)
29358 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29359 gcc_cv_target_dl_iterate_phdr=yes
29360 else
29361 gcc_cv_target_dl_iterate_phdr=no
29364 *-linux-musl*)
29365 gcc_cv_target_dl_iterate_phdr=yes
29367 esac
29369 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29371 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29375 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29377 # We no longer support different GC mechanisms. Emit an error if
29378 # the user configures with --with-gc.
29380 # Check whether --with-gc was given.
29381 if test "${with_gc+set}" = set; then :
29382 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29386 # Libraries to use on the host. This will normally be set by the top
29387 # level Makefile. Here we simply capture the value for our Makefile.
29388 if test -z "${HOST_LIBS+set}"; then
29389 HOST_LIBS=
29393 # Use the system's zlib library.
29395 # Use the system's zlib library.
29396 zlibdir="-L\$(top_builddir)/../zlib"
29397 zlibinc="-I\$(top_srcdir)/../zlib"
29399 # Check whether --with-system-zlib was given.
29400 if test "${with_system_zlib+set}" = set; then :
29401 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29402 zlibdir=
29403 zlibinc=
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29415 # Check whether --enable-maintainer-mode was given.
29416 if test "${enable_maintainer_mode+set}" = set; then :
29417 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29418 else
29419 maintainer_mode=no
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29424 $as_echo "$maintainer_mode" >&6; }
29426 if test "$maintainer_mode" = "yes"; then
29427 MAINT=''
29428 else
29429 MAINT='#'
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29434 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29435 # Check whether --enable-link-mutex was given.
29436 if test "${enable_link_mutex+set}" = set; then :
29437 enableval=$enable_link_mutex; do_link_mutex=$enableval
29438 else
29439 do_link_mutex=no
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29443 $as_echo "$do_link_mutex" >&6; }
29445 if test "$do_link_mutex" = "yes"; then
29446 DO_LINK_MUTEX=true
29447 else
29448 DO_LINK_MUTEX=false
29452 # --------------
29453 # Language hooks
29454 # --------------
29456 # Make empty files to contain the specs and options for each language.
29457 # Then add #include lines to for a compiler that has specs and/or options.
29459 subdirs=
29460 lang_opt_files=
29461 lang_specs_files=
29462 lang_tree_files=
29463 # These (without "all_") are set in each config-lang.in.
29464 # `language' must be a single word so is spelled singularly.
29465 all_languages=
29466 all_compilers=
29467 all_outputs='Makefile'
29468 # List of language makefile fragments.
29469 all_lang_makefrags=
29470 # Additional files for gengtype
29471 all_gtfiles="$target_gtfiles"
29473 # These are the languages that are set in --enable-languages,
29474 # and are available in the GCC tree.
29475 all_selected_languages=
29477 # Add the language fragments.
29478 # Languages are added via two mechanisms. Some information must be
29479 # recorded in makefile variables, these are defined in config-lang.in.
29480 # We accumulate them and plug them into the main Makefile.
29481 # The other mechanism is a set of hooks for each of the main targets
29482 # like `clean', `install', etc.
29484 language_hooks="Make-hooks"
29486 for lang in ${srcdir}/*/config-lang.in
29488 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29490 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29491 if test "x$lang_alias" = x
29492 then
29493 echo "$lang doesn't set \$language." 1>&2
29494 exit 1
29496 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29497 subdirs="$subdirs $subdir"
29499 # $gcc_subdir is where the gcc integration files are to be found
29500 # for a language, both for internal compiler purposes (compiler
29501 # sources implementing front-end to GCC tree converters), and for
29502 # build infrastructure purposes (Make-lang.in, etc.)
29504 # This will be <subdir> (relative to $srcdir) if a line like
29505 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29506 # is found in <langdir>/config-lang.in, and will remain <langdir>
29507 # otherwise.
29509 # Except for the language alias (fetched above), the regular
29510 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29511 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29512 # only this and the language alias.
29514 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29515 if [ "$gcc_subdir" = "" ]; then
29516 gcc_subdir="$subdir"
29519 case ",$enable_languages," in
29520 *,$lang_alias,*)
29521 all_selected_languages="$all_selected_languages $lang_alias"
29522 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29523 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29526 esac
29528 language=
29529 boot_language=
29530 compilers=
29531 outputs=
29532 gtfiles=
29533 subdir_requires=
29534 . ${srcdir}/$gcc_subdir/config-lang.in
29535 if test "x$language" = x
29536 then
29537 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29538 exit 1
29541 ok=:
29542 case ",$enable_languages," in
29543 *,$lang_alias,*) ;;
29545 for i in $subdir_requires; do
29546 test -f "${srcdir}/$i/config-lang.in" && continue
29547 ok=false
29548 break
29549 done
29551 esac
29552 $ok || continue
29554 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29555 if test -f $srcdir/$gcc_subdir/lang.opt; then
29556 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29557 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29559 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29560 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29562 all_languages="$all_languages $language"
29563 all_compilers="$all_compilers $compilers"
29564 all_outputs="$all_outputs $outputs"
29565 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29566 case ",$enable_languages," in
29567 *,lto,*)
29569 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29571 enable_lto=yes
29574 *) ;;
29575 esac
29576 done
29578 check_languages=
29579 for language in $all_selected_languages
29581 check_languages="$check_languages check-$language"
29582 done
29584 # We link each language in with a set of hooks, reached indirectly via
29585 # lang.${target}. Only do so for selected languages.
29587 rm -f Make-hooks
29588 touch Make-hooks
29589 target_list="all.cross start.encap rest.encap tags \
29590 install-common install-man install-info install-pdf install-html dvi \
29591 pdf html uninstall info man srcextra srcman srcinfo \
29592 mostlyclean clean distclean maintainer-clean install-plugin"
29594 for t in $target_list
29597 for lang in $all_selected_languages
29599 x="$x $lang.$t"
29600 done
29601 echo "lang.$t: $x" >> Make-hooks
29602 done
29604 # --------
29605 # Option include files
29606 # --------
29608 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29609 option_includes="option-includes.mk"
29612 # --------
29613 # UNSORTED
29614 # --------
29616 # Create .gdbinit.
29618 echo "dir ." > .gdbinit
29619 echo "dir ${srcdir}" >> .gdbinit
29620 if test x$gdb_needs_out_file_path = xyes
29621 then
29622 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29624 if test "x$subdirs" != x; then
29625 for s in $subdirs
29627 echo "dir ${srcdir}/$s" >> .gdbinit
29628 done
29630 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29631 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29633 # Put a breakpoint on __asan_report_error to help with debugging buffer
29634 # overflow.
29635 case "$CFLAGS" in
29636 *-fsanitize=address*)
29637 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29639 esac
29641 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29645 # Find a directory in which to install a shared libgcc.
29647 # Check whether --enable-version-specific-runtime-libs was given.
29648 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29649 enableval=$enable_version_specific_runtime_libs;
29653 # Substitute configuration variables
29716 # Echo link setup.
29717 if test x${build} = x${host} ; then
29718 if test x${host} = x${target} ; then
29719 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29720 else
29721 echo "Links are now set up to build a cross-compiler" 1>&2
29722 echo " from ${host} to ${target}." 1>&2
29724 else
29725 if test x${host} = x${target} ; then
29726 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29727 echo " for ${target}." 1>&2
29728 else
29729 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29730 echo " from ${host} to ${target}." 1>&2
29739 if test "x${ISLLIBS}" != "x" ; then
29741 $as_echo "#define HAVE_isl 1" >>confdefs.h
29745 # Check for plugin support
29746 # Check whether --enable-plugin was given.
29747 if test "${enable_plugin+set}" = set; then :
29748 enableval=$enable_plugin; enable_plugin=$enableval
29749 else
29750 enable_plugin=yes; default_plugin=yes
29754 pluginlibs=
29755 plugin_check=yes
29757 case "${host}" in
29758 *-*-mingw*)
29759 # Since plugin support under MinGW is not as straightforward as on
29760 # other platforms (e.g., we have to link import library, etc), we
29761 # only enable it if explicitly requested.
29762 if test x"$default_plugin" = x"yes"; then
29763 enable_plugin=no
29764 elif test x"$enable_plugin" = x"yes"; then
29765 # Use make's target variable to derive import library name.
29766 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29767 plugin_check=no
29770 *-*-darwin*)
29771 if test x$build = x$host; then
29772 export_sym_check="nm${exeext} -g"
29773 elif test x$host = x$target; then
29774 export_sym_check="$gcc_cv_nm -g"
29775 else
29776 export_sym_check=
29780 if test x$build = x$host; then
29781 export_sym_check="objdump${exeext} -T"
29782 elif test x$host = x$target; then
29783 export_sym_check="$gcc_cv_objdump -T"
29784 else
29785 export_sym_check=
29788 esac
29790 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29793 $as_echo_n "checking for exported symbols... " >&6; }
29794 if test "x$export_sym_check" != x; then
29795 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29796 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29797 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29798 : # No need to use a flag
29799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29800 $as_echo "yes" >&6; }
29801 else
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29803 $as_echo "yes" >&6; }
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29805 $as_echo_n "checking for -rdynamic... " >&6; }
29806 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29807 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29808 plugin_rdynamic=yes
29809 pluginlibs="-rdynamic"
29810 else
29811 plugin_rdynamic=no
29812 enable_plugin=no
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29815 $as_echo "$plugin_rdynamic" >&6; }
29817 else
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29819 $as_echo "unable to check" >&6; }
29822 # Check -ldl
29823 saved_LIBS="$LIBS"
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29825 $as_echo_n "checking for library containing dlopen... " >&6; }
29826 if test "${ac_cv_search_dlopen+set}" = set; then :
29827 $as_echo_n "(cached) " >&6
29828 else
29829 ac_func_search_save_LIBS=$LIBS
29830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29831 /* end confdefs.h. */
29833 /* Override any GCC internal prototype to avoid an error.
29834 Use char because int might match the return type of a GCC
29835 builtin and then its argument prototype would still apply. */
29836 #ifdef __cplusplus
29837 extern "C"
29838 #endif
29839 char dlopen ();
29841 main ()
29843 return dlopen ();
29845 return 0;
29847 _ACEOF
29848 for ac_lib in '' dl; do
29849 if test -z "$ac_lib"; then
29850 ac_res="none required"
29851 else
29852 ac_res=-l$ac_lib
29853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29855 if ac_fn_cxx_try_link "$LINENO"; then :
29856 ac_cv_search_dlopen=$ac_res
29858 rm -f core conftest.err conftest.$ac_objext \
29859 conftest$ac_exeext
29860 if test "${ac_cv_search_dlopen+set}" = set; then :
29861 break
29863 done
29864 if test "${ac_cv_search_dlopen+set}" = set; then :
29866 else
29867 ac_cv_search_dlopen=no
29869 rm conftest.$ac_ext
29870 LIBS=$ac_func_search_save_LIBS
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29873 $as_echo "$ac_cv_search_dlopen" >&6; }
29874 ac_res=$ac_cv_search_dlopen
29875 if test "$ac_res" != no; then :
29876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29880 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29881 pluginlibs="$pluginlibs -ldl"
29883 LIBS="$saved_LIBS"
29885 # Check that we can build shared objects with -fPIC -shared
29886 saved_LDFLAGS="$LDFLAGS"
29887 saved_CFLAGS="$CFLAGS"
29888 case "${host}" in
29889 *-*-darwin*)
29890 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29891 CFLAGS="$CFLAGS -fPIC"
29892 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29895 CFLAGS="$CFLAGS -fPIC"
29896 LDFLAGS="$LDFLAGS -fPIC -shared"
29898 esac
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29900 $as_echo_n "checking for -fPIC -shared... " >&6; }
29901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29902 /* end confdefs.h. */
29903 extern int X;
29905 main ()
29907 return X == 0;
29909 return 0;
29911 _ACEOF
29912 if ac_fn_cxx_try_link "$LINENO"; then :
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29914 $as_echo "yes" >&6; }; have_pic_shared=yes
29915 else
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }; have_pic_shared=no
29919 rm -f core conftest.err conftest.$ac_objext \
29920 conftest$ac_exeext conftest.$ac_ext
29921 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29922 pluginlibs=
29923 enable_plugin=no
29925 LDFLAGS="$saved_LDFLAGS"
29926 CFLAGS="$saved_CFLAGS"
29928 # If plugin support had been requested but not available, fail.
29929 if test x"$enable_plugin" = x"no" ; then
29930 if test x"$default_plugin" != x"yes"; then
29931 as_fn_error "
29932 Building GCC with plugin support requires a host that supports
29933 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29940 if test x"$enable_plugin" = x"yes"; then
29942 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29947 # Enable --enable-host-shared
29948 # Check whether --enable-host-shared was given.
29949 if test "${enable_host_shared+set}" = set; then :
29950 enableval=$enable_host_shared; PICFLAG=-fPIC
29951 else
29952 PICFLAG=
29959 # Check whether --enable-libquadmath-support was given.
29960 if test "${enable_libquadmath_support+set}" = set; then :
29961 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29962 else
29963 ENABLE_LIBQUADMATH_SUPPORT=yes
29966 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29968 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29973 # Specify what hash style to use by default.
29975 # Check whether --with-linker-hash-style was given.
29976 if test "${with_linker_hash_style+set}" = set; then :
29977 withval=$with_linker_hash_style; case x"$withval" in
29978 xsysv)
29979 LINKER_HASH_STYLE=sysv
29981 xgnu)
29982 LINKER_HASH_STYLE=gnu
29984 xboth)
29985 LINKER_HASH_STYLE=both
29988 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29990 esac
29991 else
29992 LINKER_HASH_STYLE=''
29995 if test x"${LINKER_HASH_STYLE}" != x; then
29997 cat >>confdefs.h <<_ACEOF
29998 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29999 _ACEOF
30003 # Specify what should be the default of -fdiagnostics-color option.
30005 # Check whether --with-diagnostics-color was given.
30006 if test "${with_diagnostics_color+set}" = set; then :
30007 withval=$with_diagnostics_color; case x"$withval" in
30008 xnever)
30009 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30011 xauto)
30012 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30014 xauto-if-env)
30015 DIAGNOSTICS_COLOR_DEFAULT=-1
30017 xalways)
30018 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30021 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30023 esac
30024 else
30025 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30029 cat >>confdefs.h <<_ACEOF
30030 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30031 _ACEOF
30034 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30035 # of jit/jit-playback.c.
30036 cat > gcc-driver-name.h <<EOF
30037 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
30040 # Check whether --enable-default-pie was given.
30041 # Check whether --enable-default-pie was given.
30042 if test "${enable_default_pie+set}" = set; then :
30043 enableval=$enable_default_pie; enable_default_pie=$enableval
30044 else
30045 enable_default_pie=no
30048 if test x$enable_default_pie = xyes ; then
30050 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30055 # Check if -fno-PIE works.
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30057 $as_echo_n "checking for -fno-PIE option... " >&6; }
30058 if test "${gcc_cv_c_no_fpie+set}" = set; then :
30059 $as_echo_n "(cached) " >&6
30060 else
30061 saved_CXXFLAGS="$CXXFLAGS"
30062 CXXFLAGS="$CXXFLAGS -fno-PIE"
30063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30064 /* end confdefs.h. */
30065 int main(void) {return 0;}
30066 _ACEOF
30067 if ac_fn_cxx_try_compile "$LINENO"; then :
30068 gcc_cv_c_no_fpie=yes
30069 else
30070 gcc_cv_c_no_fpie=no
30072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30073 CXXFLAGS="$saved_CXXFLAGS"
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30076 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30077 if test "$gcc_cv_c_no_fpie" = "yes"; then
30078 NO_PIE_CFLAGS="-fno-PIE"
30082 # Check if -no-pie works.
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30084 $as_echo_n "checking for -no-pie option... " >&6; }
30085 if test "${gcc_cv_no_pie+set}" = set; then :
30086 $as_echo_n "(cached) " >&6
30087 else
30088 saved_LDFLAGS="$LDFLAGS"
30089 LDFLAGS="$LDFLAGS -no-pie"
30090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30091 /* end confdefs.h. */
30092 int main(void) {return 0;}
30093 _ACEOF
30094 if ac_fn_cxx_try_link "$LINENO"; then :
30095 gcc_cv_no_pie=yes
30096 else
30097 gcc_cv_no_pie=no
30099 rm -f core conftest.err conftest.$ac_objext \
30100 conftest$ac_exeext conftest.$ac_ext
30101 LDFLAGS="$saved_LDFLAGS"
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30104 $as_echo "$gcc_cv_no_pie" >&6; }
30105 if test "$gcc_cv_no_pie" = "yes"; then
30106 NO_PIE_FLAG="-no-pie"
30110 # Check linker supports '-z bndplt'
30111 ld_bndplt_support=no
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30113 $as_echo_n "checking linker -z bndplt option... " >&6; }
30114 if test x"$ld_is_gold" = xno; then
30115 if test $in_tree_ld = yes ; then
30116 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
30117 ld_bndplt_support=yes
30119 elif test x$gcc_cv_ld != x; then
30120 # Check if linker supports -a bndplt option
30121 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30122 ld_bndplt_support=yes
30126 if test x"$ld_bndplt_support" = xyes; then
30128 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30132 $as_echo "$ld_bndplt_support" >&6; }
30134 # Check linker supports '--push-state'/'--pop-state'
30135 ld_pushpopstate_support=no
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30137 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30138 if test x"$ld_is_gold" = xno; then
30139 if test $in_tree_ld = yes ; then
30140 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
30141 ld_pushpopstate_support=yes
30143 elif test x$gcc_cv_ld != x; then
30144 # Check if linker supports --push-state/--pop-state options
30145 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30146 ld_pushpopstate_support=yes
30150 if test x"$ld_pushpopstate_support" = xyes; then
30152 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30156 $as_echo "$ld_pushpopstate_support" >&6; }
30158 # Configure the subdirectories
30159 # AC_CONFIG_SUBDIRS($subdirs)
30161 # Create the Makefile
30162 # and configure language subdirectories
30163 ac_config_files="$ac_config_files $all_outputs"
30166 ac_config_commands="$ac_config_commands default"
30168 cat >confcache <<\_ACEOF
30169 # This file is a shell script that caches the results of configure
30170 # tests run on this system so they can be shared between configure
30171 # scripts and configure runs, see configure's option --config-cache.
30172 # It is not useful on other systems. If it contains results you don't
30173 # want to keep, you may remove or edit it.
30175 # config.status only pays attention to the cache file if you give it
30176 # the --recheck option to rerun configure.
30178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30180 # following values.
30182 _ACEOF
30184 # The following way of writing the cache mishandles newlines in values,
30185 # but we know of no workaround that is simple, portable, and efficient.
30186 # So, we kill variables containing newlines.
30187 # Ultrix sh set writes to stderr and can't be redirected directly,
30188 # and sets the high bit in the cache file unless we assign to the vars.
30190 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30191 eval ac_val=\$$ac_var
30192 case $ac_val in #(
30193 *${as_nl}*)
30194 case $ac_var in #(
30195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30197 esac
30198 case $ac_var in #(
30199 _ | IFS | as_nl) ;; #(
30200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30201 *) { eval $ac_var=; unset $ac_var;} ;;
30202 esac ;;
30203 esac
30204 done
30206 (set) 2>&1 |
30207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30208 *${as_nl}ac_space=\ *)
30209 # `set' does not quote correctly, so add quotes: double-quote
30210 # substitution turns \\\\ into \\, and sed turns \\ into \.
30211 sed -n \
30212 "s/'/'\\\\''/g;
30213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30214 ;; #(
30216 # `set' quotes correctly as required by POSIX, so do not add quotes.
30217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30219 esac |
30220 sort
30222 sed '
30223 /^ac_cv_env_/b end
30224 t clear
30225 :clear
30226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30227 t end
30228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30229 :end' >>confcache
30230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30231 if test -w "$cache_file"; then
30232 test "x$cache_file" != "x/dev/null" &&
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30234 $as_echo "$as_me: updating cache $cache_file" >&6;}
30235 cat confcache >$cache_file
30236 else
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30241 rm -f confcache
30243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30244 # Let make expand exec_prefix.
30245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30247 DEFS=-DHAVE_CONFIG_H
30249 ac_libobjs=
30250 ac_ltlibobjs=
30251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30252 # 1. Remove the extension, and $U if already installed.
30253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30256 # will be set to the directory where LIBOBJS objects are built.
30257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30259 done
30260 LIBOBJS=$ac_libobjs
30262 LTLIBOBJS=$ac_ltlibobjs
30267 : ${CONFIG_STATUS=./config.status}
30268 ac_write_fail=0
30269 ac_clean_files_save=$ac_clean_files
30270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30273 as_write_fail=0
30274 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30275 #! $SHELL
30276 # Generated by $as_me.
30277 # Run this file to recreate the current configuration.
30278 # Compiler output produced by configure, useful for debugging
30279 # configure, is in config.log if it exists.
30281 debug=false
30282 ac_cs_recheck=false
30283 ac_cs_silent=false
30285 SHELL=\${CONFIG_SHELL-$SHELL}
30286 export SHELL
30287 _ASEOF
30288 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30289 ## -------------------- ##
30290 ## M4sh Initialization. ##
30291 ## -------------------- ##
30293 # Be more Bourne compatible
30294 DUALCASE=1; export DUALCASE # for MKS sh
30295 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30296 emulate sh
30297 NULLCMD=:
30298 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30299 # is contrary to our usage. Disable this feature.
30300 alias -g '${1+"$@"}'='"$@"'
30301 setopt NO_GLOB_SUBST
30302 else
30303 case `(set -o) 2>/dev/null` in #(
30304 *posix*) :
30305 set -o posix ;; #(
30306 *) :
30308 esac
30312 as_nl='
30314 export as_nl
30315 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30316 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30319 # Prefer a ksh shell builtin over an external printf program on Solaris,
30320 # but without wasting forks for bash or zsh.
30321 if test -z "$BASH_VERSION$ZSH_VERSION" \
30322 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30323 as_echo='print -r --'
30324 as_echo_n='print -rn --'
30325 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30326 as_echo='printf %s\n'
30327 as_echo_n='printf %s'
30328 else
30329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30330 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30331 as_echo_n='/usr/ucb/echo -n'
30332 else
30333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30334 as_echo_n_body='eval
30335 arg=$1;
30336 case $arg in #(
30337 *"$as_nl"*)
30338 expr "X$arg" : "X\\(.*\\)$as_nl";
30339 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30340 esac;
30341 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30343 export as_echo_n_body
30344 as_echo_n='sh -c $as_echo_n_body as_echo'
30346 export as_echo_body
30347 as_echo='sh -c $as_echo_body as_echo'
30350 # The user is always right.
30351 if test "${PATH_SEPARATOR+set}" != set; then
30352 PATH_SEPARATOR=:
30353 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30354 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30355 PATH_SEPARATOR=';'
30360 # IFS
30361 # We need space, tab and new line, in precisely that order. Quoting is
30362 # there to prevent editors from complaining about space-tab.
30363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30364 # splitting by setting IFS to empty value.)
30365 IFS=" "" $as_nl"
30367 # Find who we are. Look in the path if we contain no directory separator.
30368 case $0 in #((
30369 *[\\/]* ) as_myself=$0 ;;
30370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30371 for as_dir in $PATH
30373 IFS=$as_save_IFS
30374 test -z "$as_dir" && as_dir=.
30375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30376 done
30377 IFS=$as_save_IFS
30380 esac
30381 # We did not find ourselves, most probably we were run as `sh COMMAND'
30382 # in which case we are not to be found in the path.
30383 if test "x$as_myself" = x; then
30384 as_myself=$0
30386 if test ! -f "$as_myself"; then
30387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30388 exit 1
30391 # Unset variables that we do not need and which cause bugs (e.g. in
30392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30393 # suppresses any "Segmentation fault" message there. '((' could
30394 # trigger a bug in pdksh 5.2.14.
30395 for as_var in BASH_ENV ENV MAIL MAILPATH
30396 do eval test x\${$as_var+set} = xset \
30397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30398 done
30399 PS1='$ '
30400 PS2='> '
30401 PS4='+ '
30403 # NLS nuisances.
30404 LC_ALL=C
30405 export LC_ALL
30406 LANGUAGE=C
30407 export LANGUAGE
30409 # CDPATH.
30410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30413 # as_fn_error ERROR [LINENO LOG_FD]
30414 # ---------------------------------
30415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30417 # script with status $?, using 1 if that was 0.
30418 as_fn_error ()
30420 as_status=$?; test $as_status -eq 0 && as_status=1
30421 if test "$3"; then
30422 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30425 $as_echo "$as_me: error: $1" >&2
30426 as_fn_exit $as_status
30427 } # as_fn_error
30430 # as_fn_set_status STATUS
30431 # -----------------------
30432 # Set $? to STATUS, without forking.
30433 as_fn_set_status ()
30435 return $1
30436 } # as_fn_set_status
30438 # as_fn_exit STATUS
30439 # -----------------
30440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30441 as_fn_exit ()
30443 set +e
30444 as_fn_set_status $1
30445 exit $1
30446 } # as_fn_exit
30448 # as_fn_unset VAR
30449 # ---------------
30450 # Portably unset VAR.
30451 as_fn_unset ()
30453 { eval $1=; unset $1;}
30455 as_unset=as_fn_unset
30456 # as_fn_append VAR VALUE
30457 # ----------------------
30458 # Append the text in VALUE to the end of the definition contained in VAR. Take
30459 # advantage of any shell optimizations that allow amortized linear growth over
30460 # repeated appends, instead of the typical quadratic growth present in naive
30461 # implementations.
30462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30463 eval 'as_fn_append ()
30465 eval $1+=\$2
30467 else
30468 as_fn_append ()
30470 eval $1=\$$1\$2
30472 fi # as_fn_append
30474 # as_fn_arith ARG...
30475 # ------------------
30476 # Perform arithmetic evaluation on the ARGs, and store the result in the
30477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30478 # must be portable across $(()) and expr.
30479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30480 eval 'as_fn_arith ()
30482 as_val=$(( $* ))
30484 else
30485 as_fn_arith ()
30487 as_val=`expr "$@" || test $? -eq 1`
30489 fi # as_fn_arith
30492 if expr a : '\(a\)' >/dev/null 2>&1 &&
30493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30494 as_expr=expr
30495 else
30496 as_expr=false
30499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30500 as_basename=basename
30501 else
30502 as_basename=false
30505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30506 as_dirname=dirname
30507 else
30508 as_dirname=false
30511 as_me=`$as_basename -- "$0" ||
30512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30513 X"$0" : 'X\(//\)$' \| \
30514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30515 $as_echo X/"$0" |
30516 sed '/^.*\/\([^/][^/]*\)\/*$/{
30517 s//\1/
30520 /^X\/\(\/\/\)$/{
30521 s//\1/
30524 /^X\/\(\/\).*/{
30525 s//\1/
30528 s/.*/./; q'`
30530 # Avoid depending upon Character Ranges.
30531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30534 as_cr_digits='0123456789'
30535 as_cr_alnum=$as_cr_Letters$as_cr_digits
30537 ECHO_C= ECHO_N= ECHO_T=
30538 case `echo -n x` in #(((((
30539 -n*)
30540 case `echo 'xy\c'` in
30541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30542 xy) ECHO_C='\c';;
30543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30544 ECHO_T=' ';;
30545 esac;;
30547 ECHO_N='-n';;
30548 esac
30550 rm -f conf$$ conf$$.exe conf$$.file
30551 if test -d conf$$.dir; then
30552 rm -f conf$$.dir/conf$$.file
30553 else
30554 rm -f conf$$.dir
30555 mkdir conf$$.dir 2>/dev/null
30557 if (echo >conf$$.file) 2>/dev/null; then
30558 if ln -s conf$$.file conf$$ 2>/dev/null; then
30559 as_ln_s='ln -s'
30560 # ... but there are two gotchas:
30561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30563 # In both cases, we have to default to `cp -p'.
30564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30565 as_ln_s='cp -p'
30566 elif ln conf$$.file conf$$ 2>/dev/null; then
30567 as_ln_s=ln
30568 else
30569 as_ln_s='cp -p'
30571 else
30572 as_ln_s='cp -p'
30574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30575 rmdir conf$$.dir 2>/dev/null
30578 # as_fn_mkdir_p
30579 # -------------
30580 # Create "$as_dir" as a directory, including parents if necessary.
30581 as_fn_mkdir_p ()
30584 case $as_dir in #(
30585 -*) as_dir=./$as_dir;;
30586 esac
30587 test -d "$as_dir" || eval $as_mkdir_p || {
30588 as_dirs=
30589 while :; do
30590 case $as_dir in #(
30591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30592 *) as_qdir=$as_dir;;
30593 esac
30594 as_dirs="'$as_qdir' $as_dirs"
30595 as_dir=`$as_dirname -- "$as_dir" ||
30596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597 X"$as_dir" : 'X\(//\)[^/]' \| \
30598 X"$as_dir" : 'X\(//\)$' \| \
30599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30600 $as_echo X"$as_dir" |
30601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30602 s//\1/
30605 /^X\(\/\/\)[^/].*/{
30606 s//\1/
30609 /^X\(\/\/\)$/{
30610 s//\1/
30613 /^X\(\/\).*/{
30614 s//\1/
30617 s/.*/./; q'`
30618 test -d "$as_dir" && break
30619 done
30620 test -z "$as_dirs" || eval "mkdir $as_dirs"
30621 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30624 } # as_fn_mkdir_p
30625 if mkdir -p . 2>/dev/null; then
30626 as_mkdir_p='mkdir -p "$as_dir"'
30627 else
30628 test -d ./-p && rmdir ./-p
30629 as_mkdir_p=false
30632 if test -x / >/dev/null 2>&1; then
30633 as_test_x='test -x'
30634 else
30635 if ls -dL / >/dev/null 2>&1; then
30636 as_ls_L_option=L
30637 else
30638 as_ls_L_option=
30640 as_test_x='
30641 eval sh -c '\''
30642 if test -d "$1"; then
30643 test -d "$1/.";
30644 else
30645 case $1 in #(
30646 -*)set "./$1";;
30647 esac;
30648 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30649 ???[sx]*):;;*)false;;esac;fi
30650 '\'' sh
30653 as_executable_p=$as_test_x
30655 # Sed expression to map a string onto a valid CPP name.
30656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30658 # Sed expression to map a string onto a valid variable name.
30659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30662 exec 6>&1
30663 ## ----------------------------------- ##
30664 ## Main body of $CONFIG_STATUS script. ##
30665 ## ----------------------------------- ##
30666 _ASEOF
30667 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30670 # Save the log message, to keep $0 and so on meaningful, and to
30671 # report actual input values of CONFIG_FILES etc. instead of their
30672 # values after options handling.
30673 ac_log="
30674 This file was extended by $as_me, which was
30675 generated by GNU Autoconf 2.64. Invocation command line was
30677 CONFIG_FILES = $CONFIG_FILES
30678 CONFIG_HEADERS = $CONFIG_HEADERS
30679 CONFIG_LINKS = $CONFIG_LINKS
30680 CONFIG_COMMANDS = $CONFIG_COMMANDS
30681 $ $0 $@
30683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30686 _ACEOF
30688 case $ac_config_files in *"
30689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30690 esac
30692 case $ac_config_headers in *"
30693 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30694 esac
30697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30698 # Files that config.status was made for.
30699 config_files="$ac_config_files"
30700 config_headers="$ac_config_headers"
30701 config_links="$ac_config_links"
30702 config_commands="$ac_config_commands"
30704 _ACEOF
30706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30707 ac_cs_usage="\
30708 \`$as_me' instantiates files and other configuration actions
30709 from templates according to the current configuration. Unless the files
30710 and actions are specified as TAGs, all are instantiated by default.
30712 Usage: $0 [OPTION]... [TAG]...
30714 -h, --help print this help, then exit
30715 -V, --version print version number and configuration settings, then exit
30716 -q, --quiet, --silent
30717 do not print progress messages
30718 -d, --debug don't remove temporary files
30719 --recheck update $as_me by reconfiguring in the same conditions
30720 --file=FILE[:TEMPLATE]
30721 instantiate the configuration file FILE
30722 --header=FILE[:TEMPLATE]
30723 instantiate the configuration header FILE
30725 Configuration files:
30726 $config_files
30728 Configuration headers:
30729 $config_headers
30731 Configuration links:
30732 $config_links
30734 Configuration commands:
30735 $config_commands
30737 Report bugs to the package provider."
30739 _ACEOF
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30741 ac_cs_version="\\
30742 config.status
30743 configured by $0, generated by GNU Autoconf 2.64,
30744 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30746 Copyright (C) 2009 Free Software Foundation, Inc.
30747 This config.status script is free software; the Free Software Foundation
30748 gives unlimited permission to copy, distribute and modify it."
30750 ac_pwd='$ac_pwd'
30751 srcdir='$srcdir'
30752 AWK='$AWK'
30753 test -n "\$AWK" || AWK=awk
30754 _ACEOF
30756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30757 # The default lists apply if the user does not specify any file.
30758 ac_need_defaults=:
30759 while test $# != 0
30761 case $1 in
30762 --*=*)
30763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30765 ac_shift=:
30768 ac_option=$1
30769 ac_optarg=$2
30770 ac_shift=shift
30772 esac
30774 case $ac_option in
30775 # Handling of the options.
30776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30777 ac_cs_recheck=: ;;
30778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30779 $as_echo "$ac_cs_version"; exit ;;
30780 --debug | --debu | --deb | --de | --d | -d )
30781 debug=: ;;
30782 --file | --fil | --fi | --f )
30783 $ac_shift
30784 case $ac_optarg in
30785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30786 esac
30787 as_fn_append CONFIG_FILES " '$ac_optarg'"
30788 ac_need_defaults=false;;
30789 --header | --heade | --head | --hea )
30790 $ac_shift
30791 case $ac_optarg in
30792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30793 esac
30794 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30795 ac_need_defaults=false;;
30796 --he | --h)
30797 # Conflict between --help and --header
30798 as_fn_error "ambiguous option: \`$1'
30799 Try \`$0 --help' for more information.";;
30800 --help | --hel | -h )
30801 $as_echo "$ac_cs_usage"; exit ;;
30802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30804 ac_cs_silent=: ;;
30806 # This is an error.
30807 -*) as_fn_error "unrecognized option: \`$1'
30808 Try \`$0 --help' for more information." ;;
30810 *) as_fn_append ac_config_targets " $1"
30811 ac_need_defaults=false ;;
30813 esac
30814 shift
30815 done
30817 ac_configure_extra_args=
30819 if $ac_cs_silent; then
30820 exec 6>/dev/null
30821 ac_configure_extra_args="$ac_configure_extra_args --silent"
30824 _ACEOF
30825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30826 if \$ac_cs_recheck; then
30827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30828 shift
30829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30830 CONFIG_SHELL='$SHELL'
30831 export CONFIG_SHELL
30832 exec "\$@"
30835 _ACEOF
30836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30837 exec 5>>config.log
30839 echo
30840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30841 ## Running $as_me. ##
30842 _ASBOX
30843 $as_echo "$ac_log"
30844 } >&5
30846 _ACEOF
30847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30849 # INIT-COMMANDS
30851 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30852 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30853 subdirs='$subdirs'
30855 _ACEOF
30857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30859 # Handling of arguments.
30860 for ac_config_target in $ac_config_targets
30862 case $ac_config_target in
30863 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30864 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30865 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30866 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30867 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30868 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30869 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30870 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30871 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30873 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30874 esac
30875 done
30878 # If the user did not use the arguments to specify the items to instantiate,
30879 # then the envvar interface is used. Set only those that are not.
30880 # We use the long form for the default assignment because of an extremely
30881 # bizarre bug on SunOS 4.1.3.
30882 if $ac_need_defaults; then
30883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30885 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30889 # Have a temporary directory for convenience. Make it in the build tree
30890 # simply because there is no reason against having it here, and in addition,
30891 # creating and moving files from /tmp can sometimes cause problems.
30892 # Hook for its removal unless debugging.
30893 # Note that there is a small window in which the directory will not be cleaned:
30894 # after its creation but before its name has been assigned to `$tmp'.
30895 $debug ||
30897 tmp=
30898 trap 'exit_status=$?
30899 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30901 trap 'as_fn_exit 1' 1 2 13 15
30903 # Create a (secure) tmp directory for tmp files.
30906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30907 test -n "$tmp" && test -d "$tmp"
30908 } ||
30910 tmp=./conf$$-$RANDOM
30911 (umask 077 && mkdir "$tmp")
30912 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30914 # Set up the scripts for CONFIG_FILES section.
30915 # No need to generate them if there are no CONFIG_FILES.
30916 # This happens for instance with `./config.status config.h'.
30917 if test -n "$CONFIG_FILES"; then
30919 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30920 ac_cs_awk_getline=:
30921 ac_cs_awk_pipe_init=
30922 ac_cs_awk_read_file='
30923 while ((getline aline < (F[key])) > 0)
30924 print(aline)
30925 close(F[key])'
30926 ac_cs_awk_pipe_fini=
30927 else
30928 ac_cs_awk_getline=false
30929 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30930 ac_cs_awk_read_file='
30931 print "|#_!!_#|"
30932 print "cat " F[key] " &&"
30933 '$ac_cs_awk_pipe_init
30934 # The final `:' finishes the AND list.
30935 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30937 ac_cr=`echo X | tr X '\015'`
30938 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30939 # But we know of no other shell where ac_cr would be empty at this
30940 # point, so we can use a bashism as a fallback.
30941 if test "x$ac_cr" = x; then
30942 eval ac_cr=\$\'\\r\'
30944 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30945 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30946 ac_cs_awk_cr='\r'
30947 else
30948 ac_cs_awk_cr=$ac_cr
30951 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30952 _ACEOF
30954 # Create commands to substitute file output variables.
30956 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30957 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30958 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30959 echo "_ACAWK" &&
30960 echo "_ACEOF"
30961 } >conf$$files.sh &&
30962 . ./conf$$files.sh ||
30963 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30964 rm -f conf$$files.sh
30967 echo "cat >conf$$subs.awk <<_ACEOF" &&
30968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30969 echo "_ACEOF"
30970 } >conf$$subs.sh ||
30971 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30973 ac_delim='%!_!# '
30974 for ac_last_try in false false false false false :; do
30975 . ./conf$$subs.sh ||
30976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30979 if test $ac_delim_n = $ac_delim_num; then
30980 break
30981 elif $ac_last_try; then
30982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30983 else
30984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30986 done
30987 rm -f conf$$subs.sh
30989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30990 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30991 _ACEOF
30992 sed -n '
30994 s/^/S["/; s/!.*/"]=/
30997 s/^[^!]*!//
30998 :repl
30999 t repl
31000 s/'"$ac_delim"'$//
31001 t delim
31004 s/\(.\{148\}\).*/\1/
31005 t more1
31006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31009 b repl
31010 :more1
31011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31014 s/.\{148\}//
31015 t nl
31016 :delim
31018 s/\(.\{148\}\).*/\1/
31019 t more2
31020 s/["\\]/\\&/g; s/^/"/; s/$/"/
31023 :more2
31024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31027 s/.\{148\}//
31028 t delim
31029 ' <conf$$subs.awk | sed '
31030 /^[^""]/{
31032 s/\n//
31034 ' >>$CONFIG_STATUS || ac_write_fail=1
31035 rm -f conf$$subs.awk
31036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31037 _ACAWK
31038 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31039 for (key in S) S_is_set[key] = 1
31040 FS = "\a"
31041 \$ac_cs_awk_pipe_init
31044 line = $ 0
31045 nfields = split(line, field, "@")
31046 substed = 0
31047 len = length(field[1])
31048 for (i = 2; i < nfields; i++) {
31049 key = field[i]
31050 keylen = length(key)
31051 if (S_is_set[key]) {
31052 value = S[key]
31053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31054 len += length(value) + length(field[++i])
31055 substed = 1
31056 } else
31057 len += 1 + keylen
31059 if (nfields == 3 && !substed) {
31060 key = field[2]
31061 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31062 \$ac_cs_awk_read_file
31063 next
31066 print line
31068 \$ac_cs_awk_pipe_fini
31069 _ACAWK
31070 _ACEOF
31071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31072 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31073 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31074 else
31076 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31077 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31078 _ACEOF
31080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31082 # trailing colons and then remove the whole line if VPATH becomes empty
31083 # (actually we leave an empty line to preserve line numbers).
31084 if test "x$srcdir" = x.; then
31085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31086 s/:*\$(srcdir):*/:/
31087 s/:*\${srcdir}:*/:/
31088 s/:*@srcdir@:*/:/
31089 s/^\([^=]*=[ ]*\):*/\1/
31090 s/:*$//
31091 s/^[^=]*=[ ]*$//
31095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31096 fi # test -n "$CONFIG_FILES"
31098 # Set up the scripts for CONFIG_HEADERS section.
31099 # No need to generate them if there are no CONFIG_HEADERS.
31100 # This happens for instance with `./config.status Makefile'.
31101 if test -n "$CONFIG_HEADERS"; then
31102 cat >"$tmp/defines.awk" <<\_ACAWK ||
31103 BEGIN {
31104 _ACEOF
31106 # Transform confdefs.h into an awk script `defines.awk', embedded as
31107 # here-document in config.status, that substitutes the proper values into
31108 # config.h.in to produce config.h.
31110 # Create a delimiter string that does not exist in confdefs.h, to ease
31111 # handling of long lines.
31112 ac_delim='%!_!# '
31113 for ac_last_try in false false :; do
31114 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31115 if test -z "$ac_t"; then
31116 break
31117 elif $ac_last_try; then
31118 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31119 else
31120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31122 done
31124 # For the awk script, D is an array of macro values keyed by name,
31125 # likewise P contains macro parameters if any. Preserve backslash
31126 # newline sequences.
31128 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31129 sed -n '
31130 s/.\{148\}/&'"$ac_delim"'/g
31131 t rset
31132 :rset
31133 s/^[ ]*#[ ]*define[ ][ ]*/ /
31134 t def
31136 :def
31137 s/\\$//
31138 t bsnl
31139 s/["\\]/\\&/g
31140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31141 D["\1"]=" \3"/p
31142 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31144 :bsnl
31145 s/["\\]/\\&/g
31146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31147 D["\1"]=" \3\\\\\\n"\\/p
31148 t cont
31149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31150 t cont
31152 :cont
31154 s/.\{148\}/&'"$ac_delim"'/g
31155 t clear
31156 :clear
31157 s/\\$//
31158 t bsnlc
31159 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31161 :bsnlc
31162 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31163 b cont
31164 ' <confdefs.h | sed '
31165 s/'"$ac_delim"'/"\\\
31166 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31169 for (key in D) D_is_set[key] = 1
31170 FS = "\a"
31172 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31173 line = \$ 0
31174 split(line, arg, " ")
31175 if (arg[1] == "#") {
31176 defundef = arg[2]
31177 mac1 = arg[3]
31178 } else {
31179 defundef = substr(arg[1], 2)
31180 mac1 = arg[2]
31182 split(mac1, mac2, "(") #)
31183 macro = mac2[1]
31184 prefix = substr(line, 1, index(line, defundef) - 1)
31185 if (D_is_set[macro]) {
31186 # Preserve the white space surrounding the "#".
31187 print prefix "define", macro P[macro] D[macro]
31188 next
31189 } else {
31190 # Replace #undef with comments. This is necessary, for example,
31191 # in the case of _POSIX_SOURCE, which is predefined and required
31192 # on some systems where configure will not decide to define it.
31193 if (defundef == "undef") {
31194 print "/*", prefix defundef, macro, "*/"
31195 next
31199 { print }
31200 _ACAWK
31201 _ACEOF
31202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31203 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31204 fi # test -n "$CONFIG_HEADERS"
31207 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31208 shift
31209 for ac_tag
31211 case $ac_tag in
31212 :[FHLC]) ac_mode=$ac_tag; continue;;
31213 esac
31214 case $ac_mode$ac_tag in
31215 :[FHL]*:*);;
31216 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31217 :[FH]-) ac_tag=-:-;;
31218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31219 esac
31220 ac_save_IFS=$IFS
31221 IFS=:
31222 set x $ac_tag
31223 IFS=$ac_save_IFS
31224 shift
31225 ac_file=$1
31226 shift
31228 case $ac_mode in
31229 :L) ac_source=$1;;
31230 :[FH])
31231 ac_file_inputs=
31232 for ac_f
31234 case $ac_f in
31235 -) ac_f="$tmp/stdin";;
31236 *) # Look for the file first in the build tree, then in the source tree
31237 # (if the path is not absolute). The absolute path cannot be DOS-style,
31238 # because $ac_f cannot contain `:'.
31239 test -f "$ac_f" ||
31240 case $ac_f in
31241 [\\/$]*) false;;
31242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31243 esac ||
31244 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31245 esac
31246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31247 as_fn_append ac_file_inputs " '$ac_f'"
31248 done
31250 # Let's still pretend it is `configure' which instantiates (i.e., don't
31251 # use $as_me), people would be surprised to read:
31252 # /* config.h. Generated by config.status. */
31253 configure_input='Generated from '`
31254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31255 `' by configure.'
31256 if test x"$ac_file" != x-; then
31257 configure_input="$ac_file. $configure_input"
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31259 $as_echo "$as_me: creating $ac_file" >&6;}
31261 # Neutralize special characters interpreted by sed in replacement strings.
31262 case $configure_input in #(
31263 *\&* | *\|* | *\\* )
31264 ac_sed_conf_input=`$as_echo "$configure_input" |
31265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31266 *) ac_sed_conf_input=$configure_input;;
31267 esac
31269 case $ac_tag in
31270 *:-:* | *:-) cat >"$tmp/stdin" \
31271 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31272 esac
31274 esac
31276 ac_dir=`$as_dirname -- "$ac_file" ||
31277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31278 X"$ac_file" : 'X\(//\)[^/]' \| \
31279 X"$ac_file" : 'X\(//\)$' \| \
31280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31281 $as_echo X"$ac_file" |
31282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31283 s//\1/
31286 /^X\(\/\/\)[^/].*/{
31287 s//\1/
31290 /^X\(\/\/\)$/{
31291 s//\1/
31294 /^X\(\/\).*/{
31295 s//\1/
31298 s/.*/./; q'`
31299 as_dir="$ac_dir"; as_fn_mkdir_p
31300 ac_builddir=.
31302 case "$ac_dir" in
31303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31306 # A ".." for each directory in $ac_dir_suffix.
31307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31308 case $ac_top_builddir_sub in
31309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31311 esac ;;
31312 esac
31313 ac_abs_top_builddir=$ac_pwd
31314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31315 # for backward compatibility:
31316 ac_top_builddir=$ac_top_build_prefix
31318 case $srcdir in
31319 .) # We are building in place.
31320 ac_srcdir=.
31321 ac_top_srcdir=$ac_top_builddir_sub
31322 ac_abs_top_srcdir=$ac_pwd ;;
31323 [\\/]* | ?:[\\/]* ) # Absolute name.
31324 ac_srcdir=$srcdir$ac_dir_suffix;
31325 ac_top_srcdir=$srcdir
31326 ac_abs_top_srcdir=$srcdir ;;
31327 *) # Relative name.
31328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31329 ac_top_srcdir=$ac_top_build_prefix$srcdir
31330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31331 esac
31332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31335 case $ac_mode in
31338 # CONFIG_FILE
31341 _ACEOF
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31344 # If the template does not know about datarootdir, expand it.
31345 # FIXME: This hack should be removed a few years after 2.60.
31346 ac_datarootdir_hack=; ac_datarootdir_seen=
31347 ac_sed_dataroot='
31348 /datarootdir/ {
31352 /@datadir@/p
31353 /@docdir@/p
31354 /@infodir@/p
31355 /@localedir@/p
31356 /@mandir@/p'
31357 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31358 *datarootdir*) ac_datarootdir_seen=yes;;
31359 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31361 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31362 _ACEOF
31363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31364 ac_datarootdir_hack='
31365 s&@datadir@&$datadir&g
31366 s&@docdir@&$docdir&g
31367 s&@infodir@&$infodir&g
31368 s&@localedir@&$localedir&g
31369 s&@mandir@&$mandir&g
31370 s&\\\${datarootdir}&$datarootdir&g' ;;
31371 esac
31372 _ACEOF
31374 # Neutralize VPATH when `$srcdir' = `.'.
31375 # Shell code in configure.ac might set extrasub.
31376 # FIXME: do we really want to maintain this feature?
31377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31378 ac_sed_extra="$ac_vpsub
31379 $extrasub
31380 _ACEOF
31381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31384 s|@configure_input@|$ac_sed_conf_input|;t t
31385 s&@top_builddir@&$ac_top_builddir_sub&;t t
31386 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31387 s&@srcdir@&$ac_srcdir&;t t
31388 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31389 s&@top_srcdir@&$ac_top_srcdir&;t t
31390 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31391 s&@builddir@&$ac_builddir&;t t
31392 s&@abs_builddir@&$ac_abs_builddir&;t t
31393 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31394 $ac_datarootdir_hack
31396 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31397 if $ac_cs_awk_getline; then
31398 $AWK -f "$tmp/subs.awk"
31399 else
31400 $AWK -f "$tmp/subs.awk" | $SHELL
31401 fi >$tmp/out \
31402 || as_fn_error "could not create $ac_file" "$LINENO" 5
31404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31408 which seems to be undefined. Please make sure it is defined." >&5
31409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31410 which seems to be undefined. Please make sure it is defined." >&2;}
31412 rm -f "$tmp/stdin"
31413 case $ac_file in
31414 -) cat "$tmp/out" && rm -f "$tmp/out";;
31415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31416 esac \
31417 || as_fn_error "could not create $ac_file" "$LINENO" 5
31421 # CONFIG_HEADER
31423 if test x"$ac_file" != x-; then
31425 $as_echo "/* $configure_input */" \
31426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31427 } >"$tmp/config.h" \
31428 || as_fn_error "could not create $ac_file" "$LINENO" 5
31429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31432 else
31433 rm -f "$ac_file"
31434 mv "$tmp/config.h" "$ac_file" \
31435 || as_fn_error "could not create $ac_file" "$LINENO" 5
31437 else
31438 $as_echo "/* $configure_input */" \
31439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31440 || as_fn_error "could not create -" "$LINENO" 5
31445 # CONFIG_LINK
31448 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31450 else
31451 # Prefer the file from the source tree if names are identical.
31452 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31453 ac_source=$srcdir/$ac_source
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31457 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31459 if test ! -r "$ac_source"; then
31460 as_fn_error "$ac_source: file not found" "$LINENO" 5
31462 rm -f "$ac_file"
31464 # Try a relative symlink, then a hard link, then a copy.
31465 case $srcdir in
31466 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31467 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31468 esac
31469 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31470 ln "$ac_source" "$ac_file" 2>/dev/null ||
31471 cp -p "$ac_source" "$ac_file" ||
31472 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31475 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31476 $as_echo "$as_me: executing $ac_file commands" >&6;}
31478 esac
31481 case $ac_file$ac_mode in
31482 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31483 "gccdepdir":C)
31484 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31485 for lang in $subdirs c-family common
31487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31488 done ;;
31489 "as":F) chmod +x as ;;
31490 "collect-ld":F) chmod +x collect-ld ;;
31491 "nm":F) chmod +x nm ;;
31492 "default":C)
31493 case ${CONFIG_HEADERS} in
31494 *auto-host.h:config.in*)
31495 echo > cstamp-h ;;
31496 esac
31497 # Make sure all the subdirs exist.
31498 for d in $subdirs doc build common c-family
31500 test -d $d || mkdir $d
31501 done
31504 esac
31505 done # for ac_tag
31508 as_fn_exit 0
31509 _ACEOF
31510 ac_clean_files=$ac_clean_files_save
31512 test $ac_write_fail = 0 ||
31513 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31516 # configure is writing to config.log, and then calls config.status.
31517 # config.status does its own redirection, appending to config.log.
31518 # Unfortunately, on DOS this fails, as config.log is still kept open
31519 # by configure, so config.status won't be able to write to it; its
31520 # output is simply discarded. So we exec the FD to /dev/null,
31521 # effectively closing config.log, so it can be properly (re)opened and
31522 # appended to by config.status. When coming back to configure, we
31523 # need to make the FD available again.
31524 if test "$no_create" != yes; then
31525 ac_cs_success=:
31526 ac_config_status_args=
31527 test "$silent" = yes &&
31528 ac_config_status_args="$ac_config_status_args --quiet"
31529 exec 5>/dev/null
31530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31531 exec 5>>config.log
31532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31533 # would make configure fail if this is the last instruction.
31534 $ac_cs_success || as_fn_exit $?
31536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31538 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}