re PR fortran/83522 (ICE on allocatable string reference, string(:)(:))
[official-gcc.git] / gcc / configure
blob3e33a69628bd8239c29713849f217b3b1c69240c
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 ld_soname_option
684 ld_version_script_option
685 libgcc_visibility
686 gcc_cv_readelf
687 gcc_cv_objdump
688 ORIGINAL_NM_FOR_TARGET
689 gcc_cv_nm
690 ORIGINAL_LD_GOLD_FOR_TARGET
691 ORIGINAL_LD_BFD_FOR_TARGET
692 ORIGINAL_LD_FOR_TARGET
693 ORIGINAL_PLUGIN_LD_FOR_TARGET
694 gcc_cv_ld
695 ORIGINAL_AS_FOR_TARGET
696 gcc_cv_as
697 enable_fast_install
698 objdir
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 STRIP
705 OBJDUMP
706 ac_ct_DUMPBIN
707 DUMPBIN
709 FGREP
711 LIBTOOL
712 collect2
713 NO_PIE_FLAG_FOR_BUILD
714 NO_PIE_CFLAGS_FOR_BUILD
715 BUILD_NO_PIE_FLAG
716 BUILD_NO_PIE_CFLAGS
717 STMP_FIXINC
718 BUILD_LDFLAGS
719 BUILD_CXXFLAGS
720 BUILD_CFLAGS
721 CXX_FOR_BUILD
722 CC_FOR_BUILD
723 inhibit_libc
724 BUILD_SYSTEM_HEADER_DIR
725 SYSTEM_HEADER_DIR
727 CROSS
728 CATOBJEXT
729 GENCAT
730 INSTOBJEXT
731 DATADIRNAME
732 CATALOGS
733 POSUB
734 GMSGFMT
735 XGETTEXT
736 INCINTL
737 LIBINTL_DEP
738 LIBINTL
739 USE_NLS
740 get_gcc_base_ver
741 extra_opt_files
742 extra_modes_file
743 NATIVE_SYSTEM_HEADER_DIR
744 objext
745 manext
746 LIBICONV_DEP
747 LTLIBICONV
748 LIBICONV
749 LDEXP_LIB
750 EXTRA_GCC_LIBS
751 GNAT_LIBEXC
752 COLLECT2_LIBS
753 CXXDEPMODE
754 DEPDIR
755 am__leading_dot
756 doc_build_sys
759 BISON
760 FLEX
761 GENERATED_MANPAGES
762 BUILD_INFO
763 MAKEINFO
764 have_mktemp_command
765 make_compare_target
766 INSTALL_DATA
767 INSTALL_PROGRAM
768 INSTALL
769 ranlib_flags
770 RANLIB
772 LN_S
774 SET_MAKE
775 accel_dir_suffix
776 real_target_noncanonical
777 enable_as_accelerator
778 REPORT_BUGS_TEXI
779 REPORT_BUGS_TO
780 PKGVERSION
781 CONFIGURE_SPECS
782 enable_gcov
783 enable_shared
784 enable_fixed_point
785 enable_decimal_float
786 with_float
787 with_cpu
788 enable_multiarch
789 enable_multilib
790 coverage_flags
791 valgrind_command
792 valgrind_path_defines
793 valgrind_path
794 TREECHECKING
795 nocommon_flag
796 noexception_flags
797 warn_cxxflags
798 warn_cflags
799 c_strict_warn
800 strict_warn
801 c_loose_warn
802 loose_warn
803 aliasing_flags
805 EGREP
806 GREP
807 CXXCPP
808 PICFLAG_FOR_TARGET
809 GNATMAKE
810 GNATBIND
811 ac_ct_CXX
812 CXXFLAGS
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
821 GENINSRC
822 CROSS_SYSTEM_HEADER_DIR
823 TARGET_SYSTEM_ROOT_DEFINE
824 TARGET_SYSTEM_ROOT
825 SYSROOT_CFLAGS_FOR_TARGET
826 target_subdir
827 host_subdir
828 build_subdir
829 build_libsubdir
830 target_noncanonical
831 host_noncanonical
832 target_os
833 target_vendor
834 target_cpu
835 target
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files='option_includes
883 language_hooks'
884 ac_user_opts='
885 enable_option_checking
886 with_build_libsubdir
887 with_local_prefix
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_gxx_include_dir
892 with_cpp_install_dir
893 enable_generated_files_in_srcdir
894 with_gnu_ld
895 with_ld
896 with_demangler_in_ld
897 with_gnu_as
898 with_as
899 enable_largefile
900 enable_build_format_warnings
901 enable_werror_always
902 enable_checking
903 enable_coverage
904 enable_gather_detailed_mem_stats
905 enable_valgrind_annotations
906 with_stabs
907 enable_multilib
908 enable_multiarch
909 with_stack_clash_protection_guard_size
910 enable___cxa_atexit
911 enable_decimal_float
912 enable_fixed_point
913 enable_threads
914 enable_tls
915 enable_vtable_verify
916 enable_objc_gc
917 with_dwarf2
918 enable_shared
919 enable_gcov
920 with_specs
921 with_pkgversion
922 with_bugurl
923 enable_languages
924 with_multilib_list
925 enable_rpath
926 with_libiconv_prefix
927 enable_sjlj_exceptions
928 with_gcc_major_version_only
929 enable_secureplt
930 enable_mingw_wildcard
931 enable_leading_mingw64_underscores
932 enable_cld
933 enable_frame_pointer
934 enable_win32_registry
935 enable_static
936 with_pic
937 enable_fast_install
938 enable_libtool_lock
939 enable_ld
940 enable_gold
941 with_plugin_ld
942 enable_gnu_indirect_function
943 enable_initfini_array
944 enable_comdat
945 enable_fix_cortex_a53_835769
946 enable_fix_cortex_a53_843419
947 with_glibc_version
948 enable_gnu_unique_object
949 enable_linker_build_id
950 enable_libssp
951 enable_default_ssp
952 with_long_double_128
953 with_long_double_format
954 with_gc
955 with_system_zlib
956 enable_maintainer_mode
957 enable_link_mutex
958 enable_version_specific_runtime_libs
959 enable_plugin
960 enable_host_shared
961 enable_libquadmath_support
962 with_linker_hash_style
963 with_diagnostics_color
964 enable_default_pie
966 ac_precious_vars='build_alias
967 host_alias
968 target_alias
970 CFLAGS
971 LDFLAGS
972 LIBS
973 CPPFLAGS
975 CXXFLAGS
977 CXXCPP
979 GMPLIBS
980 GMPINC
981 ISLLIBS
982 ISLINC'
985 # Initialize some variables set by options.
986 ac_init_help=
987 ac_init_version=false
988 ac_unrecognized_opts=
989 ac_unrecognized_sep=
990 # The variables have the same names as the options, with
991 # dashes changed to underlines.
992 cache_file=/dev/null
993 exec_prefix=NONE
994 no_create=
995 no_recursion=
996 prefix=NONE
997 program_prefix=NONE
998 program_suffix=NONE
999 program_transform_name=s,x,x,
1000 silent=
1001 site=
1002 srcdir=
1003 verbose=
1004 x_includes=NONE
1005 x_libraries=NONE
1007 # Installation directory options.
1008 # These are left unexpanded so users can "make install exec_prefix=/foo"
1009 # and all the variables that are supposed to be based on exec_prefix
1010 # by default will actually change.
1011 # Use braces instead of parens because sh, perl, etc. also accept them.
1012 # (The list follows the same order as the GNU Coding Standards.)
1013 bindir='${exec_prefix}/bin'
1014 sbindir='${exec_prefix}/sbin'
1015 libexecdir='${exec_prefix}/libexec'
1016 datarootdir='${prefix}/share'
1017 datadir='${datarootdir}'
1018 sysconfdir='${prefix}/etc'
1019 sharedstatedir='${prefix}/com'
1020 localstatedir='${prefix}/var'
1021 includedir='${prefix}/include'
1022 oldincludedir='/usr/include'
1023 docdir='${datarootdir}/doc/${PACKAGE}'
1024 infodir='${datarootdir}/info'
1025 htmldir='${docdir}'
1026 dvidir='${docdir}'
1027 pdfdir='${docdir}'
1028 psdir='${docdir}'
1029 libdir='${exec_prefix}/lib'
1030 localedir='${datarootdir}/locale'
1031 mandir='${datarootdir}/man'
1033 ac_prev=
1034 ac_dashdash=
1035 for ac_option
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\$ac_option
1040 ac_prev=
1041 continue
1044 case $ac_option in
1045 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 *) ac_optarg=yes ;;
1047 esac
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1053 ac_dashdash=yes ;;
1055 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1056 ac_prev=bindir ;;
1057 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1058 bindir=$ac_optarg ;;
1060 -build | --build | --buil | --bui | --bu)
1061 ac_prev=build_alias ;;
1062 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1063 build_alias=$ac_optarg ;;
1065 -cache-file | --cache-file | --cache-fil | --cache-fi \
1066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1067 ac_prev=cache_file ;;
1068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1070 cache_file=$ac_optarg ;;
1072 --config-cache | -C)
1073 cache_file=config.cache ;;
1075 -datadir | --datadir | --datadi | --datad)
1076 ac_prev=datadir ;;
1077 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1078 datadir=$ac_optarg ;;
1080 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1081 | --dataroo | --dataro | --datar)
1082 ac_prev=datarootdir ;;
1083 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1084 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1085 datarootdir=$ac_optarg ;;
1087 -disable-* | --disable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=no ;;
1103 -docdir | --docdir | --docdi | --doc | --do)
1104 ac_prev=docdir ;;
1105 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106 docdir=$ac_optarg ;;
1108 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109 ac_prev=dvidir ;;
1110 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111 dvidir=$ac_optarg ;;
1113 -enable-* | --enable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval enable_$ac_useropt=\$ac_optarg ;;
1129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131 | --exec | --exe | --ex)
1132 ac_prev=exec_prefix ;;
1133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135 | --exec=* | --exe=* | --ex=*)
1136 exec_prefix=$ac_optarg ;;
1138 -gas | --gas | --ga | --g)
1139 # Obsolete; use --with-gas.
1140 with_gas=yes ;;
1142 -help | --help | --hel | --he | -h)
1143 ac_init_help=long ;;
1144 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145 ac_init_help=recursive ;;
1146 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147 ac_init_help=short ;;
1149 -host | --host | --hos | --ho)
1150 ac_prev=host_alias ;;
1151 -host=* | --host=* | --hos=* | --ho=*)
1152 host_alias=$ac_optarg ;;
1154 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155 ac_prev=htmldir ;;
1156 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157 | --ht=*)
1158 htmldir=$ac_optarg ;;
1160 -includedir | --includedir | --includedi | --included | --include \
1161 | --includ | --inclu | --incl | --inc)
1162 ac_prev=includedir ;;
1163 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164 | --includ=* | --inclu=* | --incl=* | --inc=*)
1165 includedir=$ac_optarg ;;
1167 -infodir | --infodir | --infodi | --infod | --info | --inf)
1168 ac_prev=infodir ;;
1169 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170 infodir=$ac_optarg ;;
1172 -libdir | --libdir | --libdi | --libd)
1173 ac_prev=libdir ;;
1174 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175 libdir=$ac_optarg ;;
1177 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178 | --libexe | --libex | --libe)
1179 ac_prev=libexecdir ;;
1180 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181 | --libexe=* | --libex=* | --libe=*)
1182 libexecdir=$ac_optarg ;;
1184 -localedir | --localedir | --localedi | --localed | --locale)
1185 ac_prev=localedir ;;
1186 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187 localedir=$ac_optarg ;;
1189 -localstatedir | --localstatedir | --localstatedi | --localstated \
1190 | --localstate | --localstat | --localsta | --localst | --locals)
1191 ac_prev=localstatedir ;;
1192 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194 localstatedir=$ac_optarg ;;
1196 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197 ac_prev=mandir ;;
1198 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199 mandir=$ac_optarg ;;
1201 -nfp | --nfp | --nf)
1202 # Obsolete; use --without-fp.
1203 with_fp=no ;;
1205 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206 | --no-cr | --no-c | -n)
1207 no_create=yes ;;
1209 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211 no_recursion=yes ;;
1213 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215 | --oldin | --oldi | --old | --ol | --o)
1216 ac_prev=oldincludedir ;;
1217 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220 oldincludedir=$ac_optarg ;;
1222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223 ac_prev=prefix ;;
1224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225 prefix=$ac_optarg ;;
1227 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228 | --program-pre | --program-pr | --program-p)
1229 ac_prev=program_prefix ;;
1230 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232 program_prefix=$ac_optarg ;;
1234 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235 | --program-suf | --program-su | --program-s)
1236 ac_prev=program_suffix ;;
1237 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239 program_suffix=$ac_optarg ;;
1241 -program-transform-name | --program-transform-name \
1242 | --program-transform-nam | --program-transform-na \
1243 | --program-transform-n | --program-transform- \
1244 | --program-transform | --program-transfor \
1245 | --program-transfo | --program-transf \
1246 | --program-trans | --program-tran \
1247 | --progr-tra | --program-tr | --program-t)
1248 ac_prev=program_transform_name ;;
1249 -program-transform-name=* | --program-transform-name=* \
1250 | --program-transform-nam=* | --program-transform-na=* \
1251 | --program-transform-n=* | --program-transform-=* \
1252 | --program-transform=* | --program-transfor=* \
1253 | --program-transfo=* | --program-transf=* \
1254 | --program-trans=* | --program-tran=* \
1255 | --progr-tra=* | --program-tr=* | --program-t=*)
1256 program_transform_name=$ac_optarg ;;
1258 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259 ac_prev=pdfdir ;;
1260 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261 pdfdir=$ac_optarg ;;
1263 -psdir | --psdir | --psdi | --psd | --ps)
1264 ac_prev=psdir ;;
1265 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266 psdir=$ac_optarg ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 silent=yes ;;
1272 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273 ac_prev=sbindir ;;
1274 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275 | --sbi=* | --sb=*)
1276 sbindir=$ac_optarg ;;
1278 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280 | --sharedst | --shareds | --shared | --share | --shar \
1281 | --sha | --sh)
1282 ac_prev=sharedstatedir ;;
1283 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286 | --sha=* | --sh=*)
1287 sharedstatedir=$ac_optarg ;;
1289 -site | --site | --sit)
1290 ac_prev=site ;;
1291 -site=* | --site=* | --sit=*)
1292 site=$ac_optarg ;;
1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295 ac_prev=srcdir ;;
1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297 srcdir=$ac_optarg ;;
1299 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300 | --syscon | --sysco | --sysc | --sys | --sy)
1301 ac_prev=sysconfdir ;;
1302 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304 sysconfdir=$ac_optarg ;;
1306 -target | --target | --targe | --targ | --tar | --ta | --t)
1307 ac_prev=target_alias ;;
1308 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309 target_alias=$ac_optarg ;;
1311 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312 verbose=yes ;;
1314 -version | --version | --versio | --versi | --vers | -V)
1315 ac_init_version=: ;;
1317 -with-* | --with-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error "invalid package name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1326 "with_$ac_useropt"
1327 "*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=\$ac_optarg ;;
1333 -without-* | --without-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1342 "with_$ac_useropt"
1343 "*) ;;
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1346 esac
1347 eval with_$ac_useropt=no ;;
1349 --x)
1350 # Obsolete; use --with-x.
1351 with_x=yes ;;
1353 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354 | --x-incl | --x-inc | --x-in | --x-i)
1355 ac_prev=x_includes ;;
1356 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358 x_includes=$ac_optarg ;;
1360 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362 ac_prev=x_libraries ;;
1363 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365 x_libraries=$ac_optarg ;;
1367 -*) as_fn_error "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information."
1371 *=*)
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 case $ac_envvar in #(
1375 '' | [0-9]* | *[!_$as_cr_alnum]* )
1376 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1377 esac
1378 eval $ac_envvar=\$ac_optarg
1379 export $ac_envvar ;;
1382 # FIXME: should be removed in autoconf 3.0.
1383 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 esac
1390 done
1392 if test -n "$ac_prev"; then
1393 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394 as_fn_error "missing argument to $ac_option"
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1399 no) ;;
1400 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 esac
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1413 case $ac_val in
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1417 esac
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1424 done
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1429 build=$build_alias
1430 host=$host_alias
1431 target=$target_alias
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435 if test "x$build_alias" = x; then
1436 cross_compiling=maybe
1437 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438 If a cross compiler is detected then cross compile mode will be used." >&2
1439 elif test "x$build_alias" != "x$host_alias"; then
1440 cross_compiling=yes
1444 ac_tool_prefix=
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447 test "$silent" = yes && exec 6>/dev/null
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error "pwd does not report name of working directory"
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469 s//\1/
1472 /^X\(\/\/\)[^/].*/{
1473 s//\1/
1476 /^X\(\/\/\)$/{
1477 s//\1/
1480 /^X\(\/\).*/{
1481 s//\1/
1484 s/.*/./; q'`
1485 srcdir=$ac_confdir
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 srcdir=..
1489 else
1490 ac_srcdir_defaulted=no
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1499 pwd)`
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502 srcdir=.
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1507 case $srcdir in
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 esac
1510 for ac_var in $ac_precious_vars; do
1511 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_${ac_var}_value=\$${ac_var}
1513 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515 done
1518 # Report the --help message.
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1523 cat <<_ACEOF
1524 \`configure' configures this package to adapt to many kinds of systems.
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1531 Defaults for the options are specified in brackets.
1533 Configuration:
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print \`checking...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for \`--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1548 [PREFIX]
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1555 For better control, use the options below.
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1577 _ACEOF
1579 cat <<\_ACEOF
1581 Program names:
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1586 System types:
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1589 --target=TARGET configure for building compilers for TARGET [HOST]
1590 _ACEOF
1593 if test -n "$ac_init_help"; then
1595 cat <<\_ACEOF
1597 Optional Features:
1598 --disable-option-checking ignore unrecognized --enable/--with options
1599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1601 --enable-generated-files-in-srcdir
1602 put copies of generated files in source dir intended
1603 for creating source tarballs for users without
1604 texinfo bison or flex
1605 --disable-largefile omit support for large files
1606 --disable-build-format-warnings
1607 don't use -Wformat while building GCC
1608 --enable-werror-always enable -Werror despite compiler version
1609 --enable-checking[=LIST]
1610 enable expensive run-time checks. With LIST, enable
1611 only specific categories of checks. Categories are:
1612 yes,no,all,none,release. Flags are:
1613 assert,df,extra,fold,gc,gcac,gimple,misc,
1614 rtlflag,rtl,runtime,tree,valgrind,types
1615 --enable-coverage[=LEVEL]
1616 enable compiler's code coverage collection. Use to
1617 measure compiler performance and locate unused parts
1618 of the compiler. With LEVEL, specify optimization.
1619 Values are opt, noopt, default is noopt
1620 --enable-gather-detailed-mem-stats
1621 enable detailed memory allocation stats gathering
1622 --enable-valgrind-annotations
1623 enable valgrind runtime interaction
1624 --enable-multilib enable library support for multiple ABIs
1625 --enable-multiarch enable support for multiarch paths
1626 --enable-__cxa_atexit enable __cxa_atexit for C++
1627 --enable-decimal-float={no,yes,bid,dpd}
1628 enable decimal float extension to C. Selecting 'bid'
1629 or 'dpd' choses which decimal floating point format
1630 to use
1631 --enable-fixed-point enable fixed-point arithmetic extension to C
1632 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1633 package
1634 --enable-tls enable or disable generation of tls code overriding
1635 the assembler check for tls support
1636 --enable-vtable-verify enable vtable verification feature
1637 --enable-objc-gc enable the use of Boehm's garbage collector with the
1638 GNU Objective-C runtime
1639 --disable-shared don't provide a shared libgcc
1640 --disable-gcov don't provide libgcov and related host tools
1641 --enable-languages=LIST specify which front-ends to build
1642 --disable-rpath do not hardcode runtime library paths
1643 --enable-sjlj-exceptions
1644 arrange to use setjmp/longjmp exception handling
1645 --enable-secureplt enable -msecure-plt by default for PowerPC
1646 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1647 Default to platform configuration
1648 --enable-leading-mingw64-underscores
1649 enable leading underscores on 64 bit mingw targets
1650 --enable-cld enable -mcld by default for 32bit x86
1651 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1653 --disable-win32-registry
1654 disable lookup of installation paths in the Registry
1655 on Windows hosts
1656 --enable-win32-registry enable registry lookup (default)
1657 --enable-win32-registry=KEY
1658 use KEY instead of GCC version as the last portion
1659 of the registry key
1660 --enable-shared[=PKGS] build shared libraries [default=yes]
1661 --enable-static[=PKGS] build static libraries [default=yes]
1662 --enable-fast-install[=PKGS]
1663 optimize for fast installation [default=yes]
1664 --disable-libtool-lock avoid locking (might break parallel builds)
1665 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1666 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1667 --enable-gnu-indirect-function
1668 enable the use of the @gnu_indirect_function to
1669 glibc systems
1670 --enable-initfini-array use .init_array/.fini_array sections
1671 --enable-comdat enable COMDAT group support
1673 --enable-fix-cortex-a53-835769
1674 enable workaround for AArch64 Cortex-A53 erratum
1675 835769 by default
1676 --disable-fix-cortex-a53-835769
1677 disable workaround for AArch64 Cortex-A53 erratum
1678 835769 by default
1681 --enable-fix-cortex-a53-843419
1682 enable workaround for AArch64 Cortex-A53 erratum
1683 843419 by default
1684 --disable-fix-cortex-a53-843419
1685 disable workaround for AArch64 Cortex-A53 erratum
1686 843419 by default
1688 --enable-gnu-unique-object
1689 enable the use of the @gnu_unique_object ELF
1690 extension on glibc systems
1691 --enable-linker-build-id
1692 compiler will always pass --build-id to linker
1693 --enable-libssp enable linking against libssp
1694 --enable-default-ssp enable Stack Smashing Protection as default
1695 --enable-maintainer-mode
1696 enable make rules and dependencies not useful (and
1697 sometimes confusing) to the casual installer
1698 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1699 thrashing on the build machine
1700 --enable-version-specific-runtime-libs
1701 specify that runtime libraries should be installed
1702 in a compiler-specific directory
1703 --enable-plugin enable plugin support
1704 --enable-host-shared build host code as shared libraries
1705 --disable-libquadmath-support
1706 disable libquadmath support for Fortran
1707 --enable-default-pie enable Position Independent Executable as default
1709 Optional Packages:
1710 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1711 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1712 --with-build-libsubdir=DIR Directory where to find libraries for build system
1713 --with-local-prefix=DIR specifies directory to put local include
1714 --with-native-system-header-dir=dir
1715 use dir as the directory to look for standard
1716 system header files in. Defaults to /usr/include.
1717 --with-build-sysroot=sysroot
1718 use sysroot as the system root during the build
1719 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1720 --with-gxx-include-dir=DIR
1721 specifies directory to put g++ header files
1722 --with-cpp-install-dir=DIR
1723 install the user visible C preprocessor in DIR
1724 (relative to PREFIX) as well as PREFIX/bin
1725 --with-gnu-ld arrange to work with GNU ld
1726 --with-ld arrange to use the specified ld (full pathname)
1727 --with-demangler-in-ld try to use demangler in GNU ld
1728 --with-gnu-as arrange to work with GNU as
1729 --with-as arrange to use the specified as (full pathname)
1730 --with-stabs arrange to use stabs instead of host debug format
1731 --with-stack-clash-protection-guard-size=size
1732 Set the default stack clash protection guard size
1733 for specific targets as a power of two in bytes.
1734 --with-dwarf2 force the default debug format to be DWARF 2
1735 --with-specs=SPECS add SPECS to driver command-line processing
1736 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1737 --with-bugurl=URL Direct users to URL to report a bug
1738 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1739 --with-gnu-ld assume the C compiler uses GNU ld default=no
1740 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1741 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1742 --with-gcc-major-version-only
1743 use only GCC major number in filesystem paths
1744 --with-pic try to use only PIC/non-PIC objects [default=use
1745 both]
1746 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1747 --with-plugin-ld=[ARG] specify the plugin linker
1748 --with-glibc-version=M.N
1749 assume GCC used with glibc version M.N or later
1750 --with-long-double-128 use 128-bit long double by default
1751 --with-long-double-format={ieee,ibm}
1752 Specify whether PowerPC long double uses IEEE or IBM format
1754 --with-gc={page,zone} this option is not supported anymore. It used to
1755 choose the garbage collection mechanism to use with
1756 the compiler
1757 --with-system-zlib use installed libz
1758 --with-linker-hash-style={sysv,gnu,both}
1759 specify the linker hash style
1760 --with-diagnostics-color={never,auto,auto-if-env,always}
1761 specify the default of -fdiagnostics-color option
1762 auto-if-env stands for -fdiagnostics-color=auto if
1763 GCC_COLOR environment variable is present and
1764 -fdiagnostics-color=never otherwise
1766 Some influential environment variables:
1767 CC C compiler command
1768 CFLAGS C compiler flags
1769 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1770 nonstandard directory <lib dir>
1771 LIBS libraries to pass to the linker, e.g. -l<library>
1772 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1773 you have headers in a nonstandard directory <include dir>
1774 CXX C++ compiler command
1775 CXXFLAGS C++ compiler flags
1776 CXXCPP C++ preprocessor
1777 CPP C preprocessor
1778 GMPLIBS How to link GMP
1779 GMPINC How to find GMP include files
1780 ISLLIBS How to link isl
1781 ISLINC How to find isl include files
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1786 Report bugs to the package provider.
1787 _ACEOF
1788 ac_status=$?
1791 if test "$ac_init_help" = "recursive"; then
1792 # If there are subdirs, report their specific --help.
1793 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794 test -d "$ac_dir" ||
1795 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1796 continue
1797 ac_builddir=.
1799 case "$ac_dir" in
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803 # A ".." for each directory in $ac_dir_suffix.
1804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805 case $ac_top_builddir_sub in
1806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808 esac ;;
1809 esac
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1815 case $srcdir in
1816 .) # We are building in place.
1817 ac_srcdir=.
1818 ac_top_srcdir=$ac_top_builddir_sub
1819 ac_abs_top_srcdir=$ac_pwd ;;
1820 [\\/]* | ?:[\\/]* ) # Absolute name.
1821 ac_srcdir=$srcdir$ac_dir_suffix;
1822 ac_top_srcdir=$srcdir
1823 ac_abs_top_srcdir=$srcdir ;;
1824 *) # Relative name.
1825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826 ac_top_srcdir=$ac_top_build_prefix$srcdir
1827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1828 esac
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831 cd "$ac_dir" || { ac_status=$?; continue; }
1832 # Check for guested configure.
1833 if test -f "$ac_srcdir/configure.gnu"; then
1834 echo &&
1835 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836 elif test -f "$ac_srcdir/configure"; then
1837 echo &&
1838 $SHELL "$ac_srcdir/configure" --help=recursive
1839 else
1840 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1841 fi || ac_status=$?
1842 cd "$ac_pwd" || { ac_status=$?; break; }
1843 done
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1848 cat <<\_ACEOF
1849 configure
1850 generated by GNU Autoconf 2.64
1852 Copyright (C) 2009 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1855 _ACEOF
1856 exit
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 return $ac_retval
1899 } # ac_fn_c_try_compile
1901 # ac_fn_cxx_try_compile LINENO
1902 # ----------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_compile ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_cxx_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 ac_retval=1
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 return $ac_retval
1937 } # ac_fn_cxx_try_compile
1939 # ac_fn_cxx_try_cpp LINENO
1940 # ------------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_cpp ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } >/dev/null && {
1961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 return $ac_retval
1974 } # ac_fn_cxx_try_cpp
1976 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # ---------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_cxx_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_cxx_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_cxx_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_cxx_check_header_mongrel
2063 # ac_fn_cxx_try_run LINENO
2064 # ------------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_cxx_try_run ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 return $ac_retval
2103 } # ac_fn_cxx_try_run
2105 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2106 # ---------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_cxx_check_header_compile ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_cxx_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 } # ac_fn_cxx_check_header_compile
2136 # ac_fn_c_try_cpp LINENO
2137 # ----------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_c_try_cpp ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 ac_status=$?
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } >/dev/null && {
2158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=1
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 return $ac_retval
2171 } # ac_fn_c_try_cpp
2173 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2174 # ----------------------------------------------
2175 # Tries to find the compile-time value of EXPR in a program that includes
2176 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2177 # computed
2178 ac_fn_cxx_compute_int ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if test "$cross_compiling" = yes; then
2182 # Depending upon the size, compute the lo and hi bounds.
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 static int test_array [1 - 2 * !(($2) >= 0)];
2190 test_array [0] = 0
2193 return 0;
2195 _ACEOF
2196 if ac_fn_cxx_try_compile "$LINENO"; then :
2197 ac_lo=0 ac_mid=0
2198 while :; do
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2209 return 0;
2211 _ACEOF
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2214 else
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2217 ac_lo= ac_hi=
2218 break
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224 else
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2229 main ()
2231 static int test_array [1 - 2 * !(($2) < 0)];
2232 test_array [0] = 0
2235 return 0;
2237 _ACEOF
2238 if ac_fn_cxx_try_compile "$LINENO"; then :
2239 ac_hi=-1 ac_mid=-1
2240 while :; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248 test_array [0] = 0
2251 return 0;
2253 _ACEOF
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_lo=$ac_mid; break
2256 else
2257 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258 if test $ac_mid -le $ac_hi; then
2259 ac_lo= ac_hi=
2260 break
2262 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 done
2266 else
2267 ac_lo= ac_hi=
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282 test_array [0] = 0
2285 return 0;
2287 _ACEOF
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2289 ac_hi=$ac_mid
2290 else
2291 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 done
2295 case $ac_lo in #((
2296 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2297 '') ac_retval=1 ;;
2298 esac
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2303 static long int longval () { return $2; }
2304 static unsigned long int ulongval () { return $2; }
2305 #include <stdio.h>
2306 #include <stdlib.h>
2308 main ()
2311 FILE *f = fopen ("conftest.val", "w");
2312 if (! f)
2313 return 1;
2314 if (($2) < 0)
2316 long int i = longval ();
2317 if (i != ($2))
2318 return 1;
2319 fprintf (f, "%ld", i);
2321 else
2323 unsigned long int i = ulongval ();
2324 if (i != ($2))
2325 return 1;
2326 fprintf (f, "%lu", i);
2328 /* Do not output a trailing newline, as this causes \r\n confusion
2329 on some platforms. */
2330 return ferror (f) || fclose (f) != 0;
2333 return 0;
2335 _ACEOF
2336 if ac_fn_cxx_try_run "$LINENO"; then :
2337 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2338 else
2339 ac_retval=1
2341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2342 conftest.$ac_objext conftest.beam conftest.$ac_ext
2343 rm -f conftest.val
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 return $ac_retval
2349 } # ac_fn_cxx_compute_int
2351 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2352 # ---------------------------------------------
2353 # Tests whether TYPE exists after having included INCLUDES, setting cache
2354 # variable VAR accordingly.
2355 ac_fn_cxx_check_type ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 eval "$3=no"
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 main ()
2370 if (sizeof ($2))
2371 return 0;
2373 return 0;
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2381 main ()
2383 if (sizeof (($2)))
2384 return 0;
2386 return 0;
2388 _ACEOF
2389 if ac_fn_cxx_try_compile "$LINENO"; then :
2391 else
2392 eval "$3=yes"
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 eval ac_res=\$$3
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_cxx_check_type
2405 # ac_fn_c_find_intX_t LINENO BITS VAR
2406 # -----------------------------------
2407 # Finds a signed integer type with width BITS, setting cache variable VAR
2408 # accordingly.
2409 ac_fn_c_find_intX_t ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2413 $as_echo_n "checking for int$2_t... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 eval "$3=no"
2418 for ac_type in int$2_t 'int' 'long int' \
2419 'long long int' 'short int' 'signed char'; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $ac_includes_default
2424 main ()
2426 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2427 test_array [0] = 0
2430 return 0;
2432 _ACEOF
2433 if ac_fn_cxx_try_compile "$LINENO"; then :
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $ac_includes_default
2438 main ()
2440 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2441 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2442 test_array [0] = 0
2445 return 0;
2447 _ACEOF
2448 if ac_fn_cxx_try_compile "$LINENO"; then :
2450 else
2451 case $ac_type in #(
2452 int$2_t) :
2453 eval "$3=yes" ;; #(
2454 *) :
2455 eval "$3=\$ac_type" ;;
2456 esac
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2464 else
2465 break
2467 done
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_intX_t
2476 # ac_fn_cxx_try_link LINENO
2477 # -------------------------
2478 # Try to link conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_link ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 rm -f conftest.$ac_objext conftest$ac_exeext
2483 if { { ac_try="$ac_link"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_link") 2>conftest.err
2491 ac_status=$?
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } && {
2499 test -z "$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 } && test -s conftest$ac_exeext && {
2502 test "$cross_compiling" = yes ||
2503 $as_test_x conftest$ac_exeext
2504 }; then :
2505 ac_retval=0
2506 else
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 ac_retval=1
2512 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2513 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2514 # interfere with the next link command; also delete a directory that is
2515 # left behind by Apple's compiler. We do this before executing the actions.
2516 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 return $ac_retval
2520 } # ac_fn_cxx_try_link
2522 # ac_fn_c_find_uintX_t LINENO BITS VAR
2523 # ------------------------------------
2524 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2525 # accordingly.
2526 ac_fn_c_find_uintX_t ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2530 $as_echo_n "checking for uint$2_t... " >&6; }
2531 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 eval "$3=no"
2535 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2536 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2539 $ac_includes_default
2541 main ()
2543 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2544 test_array [0] = 0
2547 return 0;
2549 _ACEOF
2550 if ac_fn_cxx_try_compile "$LINENO"; then :
2551 case $ac_type in #(
2552 uint$2_t) :
2553 eval "$3=yes" ;; #(
2554 *) :
2555 eval "$3=\$ac_type" ;;
2556 esac
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 eval as_val=\$$3
2560 if test "x$as_val" = x""no; then :
2562 else
2563 break
2565 done
2567 eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2572 } # ac_fn_c_find_uintX_t
2574 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2575 # ------------------------------------------------
2576 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2577 ac_fn_cxx_check_header_preproc ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2581 $as_echo_n "checking for $2... " >&6; }
2582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2587 #include <$2>
2588 _ACEOF
2589 if ac_fn_cxx_try_cpp "$LINENO"; then :
2590 eval "$3=yes"
2591 else
2592 eval "$3=no"
2594 rm -f conftest.err conftest.$ac_ext
2596 eval ac_res=\$$3
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2601 } # ac_fn_cxx_check_header_preproc
2603 # ac_fn_cxx_check_func LINENO FUNC VAR
2604 # ------------------------------------
2605 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2606 ac_fn_cxx_check_func ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2610 $as_echo_n "checking for $2... " >&6; }
2611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2618 #define $2 innocuous_$2
2620 /* System header to define __stub macros and hopefully few prototypes,
2621 which can conflict with char $2 (); below.
2622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2623 <limits.h> exists even on freestanding compilers. */
2625 #ifdef __STDC__
2626 # include <limits.h>
2627 #else
2628 # include <assert.h>
2629 #endif
2631 #undef $2
2633 /* Override any GCC internal prototype to avoid an error.
2634 Use char because int might match the return type of a GCC
2635 builtin and then its argument prototype would still apply. */
2636 #ifdef __cplusplus
2637 extern "C"
2638 #endif
2639 char $2 ();
2640 /* The GNU C library defines this for functions which it implements
2641 to always fail with ENOSYS. Some functions are actually named
2642 something starting with __ and the normal name is an alias. */
2643 #if defined __stub_$2 || defined __stub___$2
2644 choke me
2645 #endif
2648 main ()
2650 return $2 ();
2652 return 0;
2654 _ACEOF
2655 if ac_fn_cxx_try_link "$LINENO"; then :
2656 eval "$3=yes"
2657 else
2658 eval "$3=no"
2660 rm -f core conftest.err conftest.$ac_objext \
2661 conftest$ac_exeext conftest.$ac_ext
2663 eval ac_res=\$$3
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2665 $as_echo "$ac_res" >&6; }
2666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2668 } # ac_fn_cxx_check_func
2670 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2671 # --------------------------------------
2672 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2673 ac_fn_cxx_check_decl ()
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 as_decl_name=`echo $2|sed 's/ *(.*//'`
2677 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2679 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2687 main ()
2689 #ifndef $as_decl_name
2690 #ifdef __cplusplus
2691 (void) $as_decl_use;
2692 #else
2693 (void) $as_decl_name;
2694 #endif
2695 #endif
2698 return 0;
2700 _ACEOF
2701 if ac_fn_cxx_try_compile "$LINENO"; then :
2702 eval "$3=yes"
2703 else
2704 eval "$3=no"
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 eval ac_res=\$$3
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2713 } # ac_fn_cxx_check_decl
2715 # ac_fn_c_try_link LINENO
2716 # -----------------------
2717 # Try to link conftest.$ac_ext, and return whether this succeeded.
2718 ac_fn_c_try_link ()
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 rm -f conftest.$ac_objext conftest$ac_exeext
2722 if { { ac_try="$ac_link"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728 $as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_link") 2>conftest.err
2730 ac_status=$?
2731 if test -s conftest.err; then
2732 grep -v '^ *+' conftest.err >conftest.er1
2733 cat conftest.er1 >&5
2734 mv -f conftest.er1 conftest.err
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest$ac_exeext && {
2741 test "$cross_compiling" = yes ||
2742 $as_test_x conftest$ac_exeext
2743 }; then :
2744 ac_retval=0
2745 else
2746 $as_echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 ac_retval=1
2751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2753 # interfere with the next link command; also delete a directory that is
2754 # left behind by Apple's compiler. We do this before executing the actions.
2755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2757 return $ac_retval
2759 } # ac_fn_c_try_link
2761 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2762 # ----------------------------------------------
2763 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2764 ac_fn_c_check_header_preproc ()
2766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2768 $as_echo_n "checking for $2... " >&6; }
2769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2774 #include <$2>
2775 _ACEOF
2776 if ac_fn_c_try_cpp "$LINENO"; then :
2777 eval "$3=yes"
2778 else
2779 eval "$3=no"
2781 rm -f conftest.err conftest.$ac_ext
2783 eval ac_res=\$$3
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 } # ac_fn_c_check_header_preproc
2790 # ac_fn_c_check_func LINENO FUNC VAR
2791 # ----------------------------------
2792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2793 ac_fn_c_check_func ()
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2797 $as_echo_n "checking for $2... " >&6; }
2798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2805 #define $2 innocuous_$2
2807 /* System header to define __stub macros and hopefully few prototypes,
2808 which can conflict with char $2 (); below.
2809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810 <limits.h> exists even on freestanding compilers. */
2812 #ifdef __STDC__
2813 # include <limits.h>
2814 #else
2815 # include <assert.h>
2816 #endif
2818 #undef $2
2820 /* Override any GCC internal prototype to avoid an error.
2821 Use char because int might match the return type of a GCC
2822 builtin and then its argument prototype would still apply. */
2823 #ifdef __cplusplus
2824 extern "C"
2825 #endif
2826 char $2 ();
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined __stub_$2 || defined __stub___$2
2831 choke me
2832 #endif
2835 main ()
2837 return $2 ();
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_link "$LINENO"; then :
2843 eval "$3=yes"
2844 else
2845 eval "$3=no"
2847 rm -f core conftest.err conftest.$ac_objext \
2848 conftest$ac_exeext conftest.$ac_ext
2850 eval ac_res=\$$3
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 $as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2855 } # ac_fn_c_check_func
2856 cat >config.log <<_ACEOF
2857 This file contains any messages produced by compilers while
2858 running configure, to aid debugging if configure makes a mistake.
2860 It was created by $as_me, which was
2861 generated by GNU Autoconf 2.64. Invocation command line was
2863 $ $0 $@
2865 _ACEOF
2866 exec 5>>config.log
2868 cat <<_ASUNAME
2869 ## --------- ##
2870 ## Platform. ##
2871 ## --------- ##
2873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2890 _ASUNAME
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 $as_echo "PATH: $as_dir"
2898 done
2899 IFS=$as_save_IFS
2901 } >&5
2903 cat >&5 <<_ACEOF
2906 ## ----------- ##
2907 ## Core tests. ##
2908 ## ----------- ##
2910 _ACEOF
2913 # Keep a trace of the command line.
2914 # Strip out --no-create and --no-recursion so they do not pile up.
2915 # Strip out --silent because we don't want to record it for future runs.
2916 # Also quote any args containing shell meta-characters.
2917 # Make two passes to allow for proper duplicate-argument suppression.
2918 ac_configure_args=
2919 ac_configure_args0=
2920 ac_configure_args1=
2921 ac_must_keep_next=false
2922 for ac_pass in 1 2
2924 for ac_arg
2926 case $ac_arg in
2927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2929 | -silent | --silent | --silen | --sile | --sil)
2930 continue ;;
2931 *\'*)
2932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2933 esac
2934 case $ac_pass in
2935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2937 as_fn_append ac_configure_args1 " '$ac_arg'"
2938 if test $ac_must_keep_next = true; then
2939 ac_must_keep_next=false # Got value, back to normal.
2940 else
2941 case $ac_arg in
2942 *=* | --config-cache | -C | -disable-* | --disable-* \
2943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2945 | -with-* | --with-* | -without-* | --without-* | --x)
2946 case "$ac_configure_args0 " in
2947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2948 esac
2950 -* ) ac_must_keep_next=true ;;
2951 esac
2953 as_fn_append ac_configure_args " '$ac_arg'"
2955 esac
2956 done
2957 done
2958 { ac_configure_args0=; unset ac_configure_args0;}
2959 { ac_configure_args1=; unset ac_configure_args1;}
2961 # When interrupted or exit'd, cleanup temporary files, and complete
2962 # config.log. We remove comments because anyway the quotes in there
2963 # would cause problems or look ugly.
2964 # WARNING: Use '\'' to represent an apostrophe within the trap.
2965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2966 trap 'exit_status=$?
2967 # Save into config.log some information that might help in debugging.
2969 echo
2971 cat <<\_ASBOX
2972 ## ---------------- ##
2973 ## Cache variables. ##
2974 ## ---------------- ##
2975 _ASBOX
2976 echo
2977 # The following way of writing the cache mishandles newlines in values,
2979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2980 eval ac_val=\$$ac_var
2981 case $ac_val in #(
2982 *${as_nl}*)
2983 case $ac_var in #(
2984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2986 esac
2987 case $ac_var in #(
2988 _ | IFS | as_nl) ;; #(
2989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2990 *) { eval $ac_var=; unset $ac_var;} ;;
2991 esac ;;
2992 esac
2993 done
2994 (set) 2>&1 |
2995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2996 *${as_nl}ac_space=\ *)
2997 sed -n \
2998 "s/'\''/'\''\\\\'\'''\''/g;
2999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3000 ;; #(
3002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3004 esac |
3005 sort
3007 echo
3009 cat <<\_ASBOX
3010 ## ----------------- ##
3011 ## Output variables. ##
3012 ## ----------------- ##
3013 _ASBOX
3014 echo
3015 for ac_var in $ac_subst_vars
3017 eval ac_val=\$$ac_var
3018 case $ac_val in
3019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020 esac
3021 $as_echo "$ac_var='\''$ac_val'\''"
3022 done | sort
3023 echo
3025 if test -n "$ac_subst_files"; then
3026 cat <<\_ASBOX
3027 ## ------------------- ##
3028 ## File substitutions. ##
3029 ## ------------------- ##
3030 _ASBOX
3031 echo
3032 for ac_var in $ac_subst_files
3034 eval ac_val=\$$ac_var
3035 case $ac_val in
3036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3037 esac
3038 $as_echo "$ac_var='\''$ac_val'\''"
3039 done | sort
3040 echo
3043 if test -s confdefs.h; then
3044 cat <<\_ASBOX
3045 ## ----------- ##
3046 ## confdefs.h. ##
3047 ## ----------- ##
3048 _ASBOX
3049 echo
3050 cat confdefs.h
3051 echo
3053 test "$ac_signal" != 0 &&
3054 $as_echo "$as_me: caught signal $ac_signal"
3055 $as_echo "$as_me: exit $exit_status"
3056 } >&5
3057 rm -f core *.core core.conftest.* &&
3058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3059 exit $exit_status
3061 for ac_signal in 1 2 13 15; do
3062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3063 done
3064 ac_signal=0
3066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3067 rm -f -r conftest* confdefs.h
3069 $as_echo "/* confdefs.h */" > confdefs.h
3071 # Predefined preprocessor variables.
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_NAME "$PACKAGE_NAME"
3075 _ACEOF
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3079 _ACEOF
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3083 _ACEOF
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_STRING "$PACKAGE_STRING"
3087 _ACEOF
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3091 _ACEOF
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_URL "$PACKAGE_URL"
3095 _ACEOF
3098 # Let the site file select an alternate cache file if it wants to.
3099 # Prefer an explicitly selected file to automatically selected ones.
3100 ac_site_file1=NONE
3101 ac_site_file2=NONE
3102 if test -n "$CONFIG_SITE"; then
3103 ac_site_file1=$CONFIG_SITE
3104 elif test "x$prefix" != xNONE; then
3105 ac_site_file1=$prefix/share/config.site
3106 ac_site_file2=$prefix/etc/config.site
3107 else
3108 ac_site_file1=$ac_default_prefix/share/config.site
3109 ac_site_file2=$ac_default_prefix/etc/config.site
3111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3113 test "x$ac_site_file" = xNONE && continue
3114 if test -r "$ac_site_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3117 sed 's/^/| /' "$ac_site_file" >&5
3118 . "$ac_site_file"
3120 done
3122 if test -r "$cache_file"; then
3123 # Some versions of bash will fail to source /dev/null (special
3124 # files actually), so we avoid doing that.
3125 if test -f "$cache_file"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3127 $as_echo "$as_me: loading cache $cache_file" >&6;}
3128 case $cache_file in
3129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3130 *) . "./$cache_file";;
3131 esac
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3135 $as_echo "$as_me: creating cache $cache_file" >&6;}
3136 >$cache_file
3139 # Check that the precious variables saved in the cache have kept the same
3140 # value.
3141 ac_cache_corrupted=false
3142 for ac_var in $ac_precious_vars; do
3143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3144 eval ac_new_set=\$ac_env_${ac_var}_set
3145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3146 eval ac_new_val=\$ac_env_${ac_var}_value
3147 case $ac_old_set,$ac_new_set in
3148 set,)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3151 ac_cache_corrupted=: ;;
3152 ,set)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3155 ac_cache_corrupted=: ;;
3156 ,);;
3158 if test "x$ac_old_val" != "x$ac_new_val"; then
3159 # differences in whitespace do not lead to failure.
3160 ac_old_val_w=`echo x $ac_old_val`
3161 ac_new_val_w=`echo x $ac_new_val`
3162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3165 ac_cache_corrupted=:
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3169 eval $ac_var=\$ac_old_val
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3175 fi;;
3176 esac
3177 # Pass precious variables to config.status.
3178 if test "$ac_new_set" = set; then
3179 case $ac_new_val in
3180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3181 *) ac_arg=$ac_var=$ac_new_val ;;
3182 esac
3183 case " $ac_configure_args " in
3184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3186 esac
3188 done
3189 if $ac_cache_corrupted; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3196 ## -------------------- ##
3197 ## Main body of script. ##
3198 ## -------------------- ##
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3214 gcc_version=`cat $srcdir/BASE-VER`
3216 # Determine the host, build, and target systems
3217 ac_aux_dir=
3218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3219 for ac_t in install-sh install.sh shtool; do
3220 if test -f "$ac_dir/$ac_t"; then
3221 ac_aux_dir=$ac_dir
3222 ac_install_sh="$ac_aux_dir/$ac_t -c"
3223 break 2
3225 done
3226 done
3227 if test -z "$ac_aux_dir"; then
3228 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3231 # These three variables are undocumented and unsupported,
3232 # and are intended to be withdrawn in a future Autoconf release.
3233 # They can cause serious problems if a builder's source tree is in a directory
3234 # whose full name contains unusual characters.
3235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3240 # Make sure we can run config.sub.
3241 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3242 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3245 $as_echo_n "checking build system type... " >&6; }
3246 if test "${ac_cv_build+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 ac_build_alias=$build_alias
3250 test "x$ac_build_alias" = x &&
3251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3252 test "x$ac_build_alias" = x &&
3253 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3254 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3255 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3259 $as_echo "$ac_cv_build" >&6; }
3260 case $ac_cv_build in
3261 *-*-*) ;;
3262 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3263 esac
3264 build=$ac_cv_build
3265 ac_save_IFS=$IFS; IFS='-'
3266 set x $ac_cv_build
3267 shift
3268 build_cpu=$1
3269 build_vendor=$2
3270 shift; shift
3271 # Remember, the first character of IFS is used to create $*,
3272 # except with old shells:
3273 build_os=$*
3274 IFS=$ac_save_IFS
3275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3279 $as_echo_n "checking host system type... " >&6; }
3280 if test "${ac_cv_host+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test "x$host_alias" = x; then
3284 ac_cv_host=$ac_cv_build
3285 else
3286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3287 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3292 $as_echo "$ac_cv_host" >&6; }
3293 case $ac_cv_host in
3294 *-*-*) ;;
3295 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3296 esac
3297 host=$ac_cv_host
3298 ac_save_IFS=$IFS; IFS='-'
3299 set x $ac_cv_host
3300 shift
3301 host_cpu=$1
3302 host_vendor=$2
3303 shift; shift
3304 # Remember, the first character of IFS is used to create $*,
3305 # except with old shells:
3306 host_os=$*
3307 IFS=$ac_save_IFS
3308 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3312 $as_echo_n "checking target system type... " >&6; }
3313 if test "${ac_cv_target+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test "x$target_alias" = x; then
3317 ac_cv_target=$ac_cv_host
3318 else
3319 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3320 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3325 $as_echo "$ac_cv_target" >&6; }
3326 case $ac_cv_target in
3327 *-*-*) ;;
3328 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3329 esac
3330 target=$ac_cv_target
3331 ac_save_IFS=$IFS; IFS='-'
3332 set x $ac_cv_target
3333 shift
3334 target_cpu=$1
3335 target_vendor=$2
3336 shift; shift
3337 # Remember, the first character of IFS is used to create $*,
3338 # except with old shells:
3339 target_os=$*
3340 IFS=$ac_save_IFS
3341 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3344 # The aliases save the names the user supplied, while $host etc.
3345 # will get canonicalized.
3346 test -n "$target_alias" &&
3347 test "$program_prefix$program_suffix$program_transform_name" = \
3348 NONENONEs,x,x, &&
3349 program_prefix=${target_alias}-
3351 # Determine the noncanonical host name, for Ada.
3352 case ${build_alias} in
3353 "") build_noncanonical=${build} ;;
3354 *) build_noncanonical=${build_alias} ;;
3355 esac
3357 case ${host_alias} in
3358 "") host_noncanonical=${build_noncanonical} ;;
3359 *) host_noncanonical=${host_alias} ;;
3360 esac
3365 # Determine the noncanonical target name, for directory use.
3366 case ${target_alias} in
3367 "") target_noncanonical=${host_noncanonical} ;;
3368 *) target_noncanonical=${target_alias} ;;
3369 esac
3374 # Used for constructing correct paths for offload compilers.
3375 real_target_noncanonical=${target_noncanonical}
3376 accel_dir_suffix=
3378 # Determine the target- and build-specific subdirectories
3380 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3381 # have matching libraries, they should use host libraries: Makefile.tpl
3382 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3383 # However, they still use the build modules, because the corresponding
3384 # host modules (e.g. bison) are only built for the host when bootstrap
3385 # finishes. So:
3386 # - build_subdir is where we find build modules, and never changes.
3387 # - build_libsubdir is where we find build libraries, and can be overridden.
3389 # Prefix 'build-' so this never conflicts with target_subdir.
3390 build_subdir="build-${build_noncanonical}"
3392 # Check whether --with-build-libsubdir was given.
3393 if test "${with_build_libsubdir+set}" = set; then :
3394 withval=$with_build_libsubdir; build_libsubdir="$withval"
3395 else
3396 build_libsubdir="$build_subdir"
3399 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3400 if ( test $srcdir = . && test -d gcc ) \
3401 || test -d $srcdir/../host-${host_noncanonical}; then
3402 host_subdir="host-${host_noncanonical}"
3403 else
3404 host_subdir=.
3406 # No prefix.
3407 target_subdir=${target_noncanonical}
3410 # Set program_transform_name
3411 test "$program_prefix" != NONE &&
3412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3413 # Use a double $ so make ignores it.
3414 test "$program_suffix" != NONE &&
3415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3416 # Double any \ or $.
3417 # By default was `s,x,x', remove it if useless.
3418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3422 # Check for bogus environment variables.
3423 # Test if LIBRARY_PATH contains the notation for the current directory
3424 # since this would lead to problems installing/building glibc.
3425 # LIBRARY_PATH contains the current directory if one of the following
3426 # is true:
3427 # - one of the terminals (":" and ";") is the first or last sign
3428 # - two terminals occur directly after each other
3429 # - the path contains an element with a dot in it
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3431 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3432 case ${LIBRARY_PATH} in
3433 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3434 library_path_setting="contains current directory"
3437 library_path_setting="ok"
3439 esac
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3441 $as_echo "$library_path_setting" >&6; }
3442 if test "$library_path_setting" != "ok"; then
3443 as_fn_error "
3444 *** LIBRARY_PATH shouldn't contain the current directory when
3445 *** building gcc. Please change the environment variable
3446 *** and run configure again." "$LINENO" 5
3449 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3450 # since this would lead to problems installing/building glibc.
3451 # GCC_EXEC_PREFIX contains the current directory if one of the following
3452 # is true:
3453 # - one of the terminals (":" and ";") is the first or last sign
3454 # - two terminals occur directly after each other
3455 # - the path contains an element with a dot in it
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3457 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3458 case ${GCC_EXEC_PREFIX} in
3459 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3460 gcc_exec_prefix_setting="contains current directory"
3463 gcc_exec_prefix_setting="ok"
3465 esac
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3467 $as_echo "$gcc_exec_prefix_setting" >&6; }
3468 if test "$gcc_exec_prefix_setting" != "ok"; then
3469 as_fn_error "
3470 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3471 *** building gcc. Please change the environment variable
3472 *** and run configure again." "$LINENO" 5
3475 # -----------
3476 # Directories
3477 # -----------
3479 # Specify the local prefix
3480 local_prefix=
3482 # Check whether --with-local-prefix was given.
3483 if test "${with_local_prefix+set}" = set; then :
3484 withval=$with_local_prefix; case "${withval}" in
3485 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3486 no) ;;
3487 *) local_prefix=$with_local_prefix ;;
3488 esac
3492 # Default local prefix if it is empty
3493 if test x$local_prefix = x; then
3494 local_prefix=/usr/local
3498 # Check whether --with-native-system-header-dir was given.
3499 if test "${with_native_system_header_dir+set}" = set; then :
3500 withval=$with_native_system_header_dir;
3501 case ${with_native_system_header_dir} in
3502 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3503 /* | [A-Za-z]:[\\/]*) ;;
3504 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3505 esac
3506 configured_native_system_header_dir="${withval}"
3508 else
3509 configured_native_system_header_dir=
3514 # Check whether --with-build-sysroot was given.
3515 if test "${with_build_sysroot+set}" = set; then :
3516 withval=$with_build_sysroot; if test x"$withval" != x ; then
3517 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3519 else
3520 SYSROOT_CFLAGS_FOR_TARGET=
3525 if test "x$prefix" = xNONE; then
3526 test_prefix=/usr/local
3527 else
3528 test_prefix=$prefix
3530 if test "x$exec_prefix" = xNONE; then
3531 test_exec_prefix=$test_prefix
3532 else
3533 test_exec_prefix=$exec_prefix
3537 # Check whether --with-sysroot was given.
3538 if test "${with_sysroot+set}" = set; then :
3539 withval=$with_sysroot;
3540 case ${with_sysroot} in
3541 /) ;;
3542 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3543 esac
3544 case ${with_sysroot} in
3545 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3546 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3547 esac
3549 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3550 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3552 case ${TARGET_SYSTEM_ROOT} in
3553 "${test_prefix}"|"${test_prefix}/"*|\
3554 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3555 '${prefix}'|'${prefix}/'*|\
3556 '${exec_prefix}'|'${exec_prefix}/'*)
3557 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3558 TARGET_SYSTEM_ROOT_DEFINE="$t"
3560 esac
3562 else
3564 TARGET_SYSTEM_ROOT=
3565 TARGET_SYSTEM_ROOT_DEFINE=
3566 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3574 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3575 # passed in by the toplevel make and thus we'd get different behavior
3576 # depending on where we built the sources.
3577 gcc_gxx_include_dir=
3578 # Specify the g++ header file directory
3580 # Check whether --with-gxx-include-dir was given.
3581 if test "${with_gxx_include_dir+set}" = set; then :
3582 withval=$with_gxx_include_dir; case "${withval}" in
3583 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3584 no) ;;
3585 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3586 esac
3590 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3591 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3592 # relative to the sysroot.
3593 gcc_gxx_include_dir_add_sysroot=0
3595 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3596 if test x${gcc_gxx_include_dir} = x; then
3597 if test x${enable_version_specific_runtime_libs} = xyes; then
3598 gcc_gxx_include_dir='${libsubdir}/include/c++'
3599 else
3600 libstdcxx_incdir='include/c++/$(version)'
3601 if test x$host != x$target; then
3602 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3604 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3606 elif test "${with_sysroot+set}" = set; then
3607 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3608 if test "${gcc_gxx_without_sysroot}"; then
3609 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3610 gcc_gxx_include_dir_add_sysroot=1
3615 # Check whether --with-cpp_install_dir was given.
3616 if test "${with_cpp_install_dir+set}" = set; then :
3617 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3618 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3619 elif test x$withval != xno; then
3620 cpp_install_dir=$withval
3625 # We would like to our source tree to be readonly. However when releases or
3626 # pre-releases are generated, the flex/bison generated files as well as the
3627 # various formats of manuals need to be included along with the rest of the
3628 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3629 # just that.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3632 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3633 # Check whether --enable-generated-files-in-srcdir was given.
3634 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3635 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3636 else
3637 generated_files_in_srcdir=no
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3642 $as_echo "$generated_files_in_srcdir" >&6; }
3644 if test "$generated_files_in_srcdir" = "yes"; then
3645 GENINSRC=''
3646 else
3647 GENINSRC='#'
3651 # -------------------
3652 # Find default linker
3653 # -------------------
3655 # With GNU ld
3657 # Check whether --with-gnu-ld was given.
3658 if test "${with_gnu_ld+set}" = set; then :
3659 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3660 else
3661 gnu_ld_flag=no
3665 case $target in
3666 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3667 *) ld64_flag=no;;
3668 esac
3670 # With pre-defined ld
3672 # Check whether --with-ld was given.
3673 if test "${with_ld+set}" = set; then :
3674 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3677 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3678 if test ! -x "$DEFAULT_LINKER"; then
3679 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3680 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3681 gnu_ld_flag=yes
3682 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3683 ld64_flag=yes
3686 cat >>confdefs.h <<_ACEOF
3687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3688 _ACEOF
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3693 $as_echo_n "checking whether a default linker was specified... " >&6; }
3694 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3695 if test x"$gnu_ld_flag" = x"no"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3697 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3700 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3707 # With demangler in GNU ld
3709 # Check whether --with-demangler-in-ld was given.
3710 if test "${with_demangler_in_ld+set}" = set; then :
3711 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3712 else
3713 demangler_in_ld=yes
3717 # ----------------------
3718 # Find default assembler
3719 # ----------------------
3721 # With GNU as
3723 # Check whether --with-gnu-as was given.
3724 if test "${with_gnu_as+set}" = set; then :
3725 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3726 else
3727 gas_flag=no
3732 # Check whether --with-as was given.
3733 if test "${with_as+set}" = set; then :
3734 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3737 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3738 if test ! -x "$DEFAULT_ASSEMBLER"; then
3739 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3740 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3741 gas_flag=yes
3744 cat >>confdefs.h <<_ACEOF
3745 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3746 _ACEOF
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3751 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3752 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3753 if test x"$gas_flag" = x"no"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3755 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3758 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3765 # ---------------
3766 # Find C compiler
3767 # ---------------
3769 # If a non-executable a.out is present (e.g. created by GNU as above even if
3770 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3771 # file, even when creating an executable, so an execution test fails.
3772 # Remove possible default executable files to avoid this.
3774 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3775 # Autoconf includes it.
3776 rm -f a.out a.exe b.out
3778 # Find the native compiler
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if test "${ac_cv_prog_CC+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 $as_echo "$CC" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3823 if test -z "$ac_cv_prog_CC"; then
3824 ac_ct_CC=$CC
3825 # Extract the first word of "gcc", so it can be a program name with args.
3826 set dummy gcc; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$ac_ct_CC"; then
3833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_CC="gcc"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3848 IFS=$as_save_IFS
3852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3853 if test -n "$ac_ct_CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3855 $as_echo "$ac_ct_CC" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3861 if test "x$ac_ct_CC" = x; then
3862 CC=""
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865 yes:)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3869 esac
3870 CC=$ac_ct_CC
3872 else
3873 CC="$ac_cv_prog_CC"
3876 if test -z "$CC"; then
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3879 set dummy ${ac_tool_prefix}cc; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_CC+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_CC="${ac_tool_prefix}cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3905 CC=$ac_cv_prog_CC
3906 if test -n "$CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908 $as_echo "$CC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3917 if test -z "$CC"; then
3918 # Extract the first word of "cc", so it can be a program name with args.
3919 set dummy cc; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_CC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 ac_prog_rejected=no
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3937 ac_prog_rejected=yes
3938 continue
3940 ac_cv_prog_CC="cc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3946 IFS=$as_save_IFS
3948 if test $ac_prog_rejected = yes; then
3949 # We found a bogon in the path, so make sure we never use it.
3950 set dummy $ac_cv_prog_CC
3951 shift
3952 if test $# != 0; then
3953 # We chose a different compiler from the bogus one.
3954 # However, it has the same basename, so the bogon will be chosen
3955 # first if we set CC to just the basename; use the full file name.
3956 shift
3957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3973 if test -z "$CC"; then
3974 if test -n "$ac_tool_prefix"; then
3975 for ac_prog in cl.exe
3977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_CC+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 CC=$ac_cv_prog_CC
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$CC" && break
4015 done
4017 if test -z "$CC"; then
4018 ac_ct_CC=$CC
4019 for ac_prog in cl.exe
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy $ac_prog; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_ac_ct_CC="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4042 done
4043 done
4044 IFS=$as_save_IFS
4048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4049 if test -n "$ac_ct_CC"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4051 $as_echo "$ac_ct_CC" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4058 test -n "$ac_ct_CC" && break
4059 done
4061 if test "x$ac_ct_CC" = x; then
4062 CC=""
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4069 esac
4070 CC=$ac_ct_CC
4077 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error "no acceptable C compiler found in \$PATH
4080 See \`config.log' for more details." "$LINENO" 5; }
4082 # Provide some information about the compiler.
4083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4084 set X $ac_compile
4085 ac_compiler=$2
4086 for ac_option in --version -v -V -qversion; do
4087 { { ac_try="$ac_compiler $ac_option >&5"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4095 ac_status=$?
4096 if test -s conftest.err; then
4097 sed '10a\
4098 ... rest of stderr output deleted ...
4099 10q' conftest.err >conftest.er1
4100 cat conftest.er1 >&5
4101 rm -f conftest.er1 conftest.err
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4105 done
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 main ()
4115 return 0;
4117 _ACEOF
4118 ac_clean_files_save=$ac_clean_files
4119 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4120 # Try to create an executable without -o first, disregard a.out.
4121 # It will help us diagnose broken compilers, and finding out an intuition
4122 # of exeext.
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4124 $as_echo_n "checking for C compiler default output file name... " >&6; }
4125 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4127 # The possible output files:
4128 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4130 ac_rmfiles=
4131 for ac_file in $ac_files
4133 case $ac_file in
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4135 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4136 esac
4137 done
4138 rm -f $ac_rmfiles
4140 if { { ac_try="$ac_link_default"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_link_default") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4154 # so that the user can short-circuit this test for compilers unknown to
4155 # Autoconf.
4156 for ac_file in $ac_files ''
4158 test -f "$ac_file" || continue
4159 case $ac_file in
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4162 [ab].out )
4163 # We found the default executable, but exeext='' is most
4164 # certainly right.
4165 break;;
4166 *.* )
4167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4168 then :; else
4169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4171 # We set ac_cv_exeext here because the later test for it is not
4172 # safe: cross compilers may not add the suffix if given an `-o'
4173 # argument, so we may need to know it at that point already.
4174 # Even if this section looks crufty: it has the advantage of
4175 # actually working.
4176 break;;
4178 break;;
4179 esac
4180 done
4181 test "$ac_cv_exeext" = no && ac_cv_exeext=
4183 else
4184 ac_file=''
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4187 $as_echo "$ac_file" >&6; }
4188 if test -z "$ac_file"; then :
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 { as_fn_set_status 77
4195 as_fn_error "C compiler cannot create executables
4196 See \`config.log' for more details." "$LINENO" 5; }; }
4198 ac_exeext=$ac_cv_exeext
4200 # Check that the compiler produces executables we can run. If not, either
4201 # the compiler is broken, or we cross compile.
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4203 $as_echo_n "checking whether the C compiler works... " >&6; }
4204 # If not cross compiling, check that we can run a simple program.
4205 if test "$cross_compiling" != yes; then
4206 if { ac_try='./$ac_file'
4207 { { case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; }; then
4217 cross_compiling=no
4218 else
4219 if test "$cross_compiling" = maybe; then
4220 cross_compiling=yes
4221 else
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error "cannot run C compiled programs.
4225 If you meant to cross compile, use \`--host'.
4226 See \`config.log' for more details." "$LINENO" 5; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4233 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4234 ac_clean_files=$ac_clean_files_save
4235 # Check that the compiler produces executables we can run. If not, either
4236 # the compiler is broken, or we cross compile.
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4238 $as_echo_n "checking whether we are cross compiling... " >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4240 $as_echo "$cross_compiling" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4243 $as_echo_n "checking for suffix of executables... " >&6; }
4244 if { { ac_try="$ac_link"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_link") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; then :
4255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4257 # work properly (i.e., refer to `conftest.exe'), while it won't with
4258 # `rm'.
4259 for ac_file in conftest.exe conftest conftest.*; do
4260 test -f "$ac_file" || continue
4261 case $ac_file in
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4264 break;;
4265 * ) break;;
4266 esac
4267 done
4268 else
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error "cannot compute suffix of executables: cannot compile and link
4272 See \`config.log' for more details." "$LINENO" 5; }
4274 rm -f conftest$ac_cv_exeext
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4276 $as_echo "$ac_cv_exeext" >&6; }
4278 rm -f conftest.$ac_ext
4279 EXEEXT=$ac_cv_exeext
4280 ac_exeext=$EXEEXT
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4282 $as_echo_n "checking for suffix of object files... " >&6; }
4283 if test "${ac_cv_objext+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4290 main ()
4294 return 0;
4296 _ACEOF
4297 rm -f conftest.o conftest.obj
4298 if { { ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compile") 2>&5
4306 ac_status=$?
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; then :
4309 for ac_file in conftest.o conftest.obj conftest.*; do
4310 test -f "$ac_file" || continue;
4311 case $ac_file in
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4314 break;;
4315 esac
4316 done
4317 else
4318 $as_echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "cannot compute suffix of object files: cannot compile
4324 See \`config.log' for more details." "$LINENO" 5; }
4326 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4329 $as_echo "$ac_cv_objext" >&6; }
4330 OBJEXT=$ac_cv_objext
4331 ac_objext=$OBJEXT
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4333 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4334 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4341 main ()
4343 #ifndef __GNUC__
4344 choke me
4345 #endif
4348 return 0;
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_compiler_gnu=yes
4353 else
4354 ac_compiler_gnu=no
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4361 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4362 if test $ac_compiler_gnu = yes; then
4363 GCC=yes
4364 else
4365 GCC=
4367 ac_test_CFLAGS=${CFLAGS+set}
4368 ac_save_CFLAGS=$CFLAGS
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4370 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4371 if test "${ac_cv_prog_cc_g+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 ac_save_c_werror_flag=$ac_c_werror_flag
4375 ac_c_werror_flag=yes
4376 ac_cv_prog_cc_g=no
4377 CFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 main ()
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_g=yes
4391 else
4392 CFLAGS=""
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4397 main ()
4401 return 0;
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"; then :
4406 else
4407 ac_c_werror_flag=$ac_save_c_werror_flag
4408 CFLAGS="-g"
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4413 main ()
4417 return 0;
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421 ac_cv_prog_cc_g=yes
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_c_werror_flag=$ac_save_c_werror_flag
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4431 $as_echo "$ac_cv_prog_cc_g" >&6; }
4432 if test "$ac_test_CFLAGS" = set; then
4433 CFLAGS=$ac_save_CFLAGS
4434 elif test $ac_cv_prog_cc_g = yes; then
4435 if test "$GCC" = yes; then
4436 CFLAGS="-g -O2"
4437 else
4438 CFLAGS="-g"
4440 else
4441 if test "$GCC" = yes; then
4442 CFLAGS="-O2"
4443 else
4444 CFLAGS=
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4449 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_cv_prog_cc_c89=no
4453 ac_save_CC=$CC
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdarg.h>
4457 #include <stdio.h>
4458 #include <sys/types.h>
4459 #include <sys/stat.h>
4460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4461 struct buf { int x; };
4462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4463 static char *e (p, i)
4464 char **p;
4465 int i;
4467 return p[i];
4469 static char *f (char * (*g) (char **, int), char **p, ...)
4471 char *s;
4472 va_list v;
4473 va_start (v,p);
4474 s = g (p, va_arg (v,int));
4475 va_end (v);
4476 return s;
4479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4480 function prototypes and stuff, but not '\xHH' hex character constants.
4481 These don't provoke an error unfortunately, instead are silently treated
4482 as 'x'. The following induces an error, until -std is added to get
4483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4484 array size at least. It's necessary to write '\x00'==0 to get something
4485 that's true only with -std. */
4486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4488 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4489 inside strings and character constants. */
4490 #define FOO(x) 'x'
4491 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4493 int test (int i, double x);
4494 struct s1 {int (*f) (int a);};
4495 struct s2 {int (*f) (double a);};
4496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4497 int argc;
4498 char **argv;
4500 main ()
4502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4504 return 0;
4506 _ACEOF
4507 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4510 CC="$ac_save_CC $ac_arg"
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512 ac_cv_prog_cc_c89=$ac_arg
4514 rm -f core conftest.err conftest.$ac_objext
4515 test "x$ac_cv_prog_cc_c89" != "xno" && break
4516 done
4517 rm -f conftest.$ac_ext
4518 CC=$ac_save_CC
4521 # AC_CACHE_VAL
4522 case "x$ac_cv_prog_cc_c89" in
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4525 $as_echo "none needed" >&6; } ;;
4526 xno)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4528 $as_echo "unsupported" >&6; } ;;
4530 CC="$CC $ac_cv_prog_cc_c89"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4532 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4533 esac
4534 if test "x$ac_cv_prog_cc_c89" != xno; then :
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 ac_ext=cpp
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 if test -z "$CXX"; then
4550 if test -n "$CCC"; then
4551 CXX=$CCC
4552 else
4553 if test -n "$ac_tool_prefix"; then
4554 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_prog_CXX+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test -n "$CXX"; then
4564 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 CXX=$ac_cv_prog_CXX
4584 if test -n "$CXX"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4586 $as_echo "$CXX" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4593 test -n "$CXX" && break
4594 done
4596 if test -z "$CXX"; then
4597 ac_ct_CXX=$CXX
4598 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$ac_ct_CXX"; then
4608 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_CXX="$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4628 if test -n "$ac_ct_CXX"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4630 $as_echo "$ac_ct_CXX" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 test -n "$ac_ct_CXX" && break
4638 done
4640 if test "x$ac_ct_CXX" = x; then
4641 CXX="g++"
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649 CXX=$ac_ct_CXX
4655 # Provide some information about the compiler.
4656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4657 set X $ac_compile
4658 ac_compiler=$2
4659 for ac_option in --version -v -V -qversion; do
4660 { { ac_try="$ac_compiler $ac_option >&5"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4668 ac_status=$?
4669 if test -s conftest.err; then
4670 sed '10a\
4671 ... rest of stderr output deleted ...
4672 10q' conftest.err >conftest.er1
4673 cat conftest.er1 >&5
4674 rm -f conftest.er1 conftest.err
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }
4678 done
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4681 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4689 main ()
4691 #ifndef __GNUC__
4692 choke me
4693 #endif
4696 return 0;
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_compiler_gnu=yes
4701 else
4702 ac_compiler_gnu=no
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4710 if test $ac_compiler_gnu = yes; then
4711 GXX=yes
4712 else
4713 GXX=
4715 ac_test_CXXFLAGS=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS=$CXXFLAGS
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4719 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4723 ac_cxx_werror_flag=yes
4724 ac_cv_prog_cxx_g=no
4725 CXXFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_cv_prog_cxx_g=yes
4739 else
4740 CXXFLAGS=""
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4745 main ()
4749 return 0;
4751 _ACEOF
4752 if ac_fn_cxx_try_compile "$LINENO"; then :
4754 else
4755 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4756 CXXFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4761 main ()
4765 return 0;
4767 _ACEOF
4768 if ac_fn_cxx_try_compile "$LINENO"; then :
4769 ac_cv_prog_cxx_g=yes
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4779 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4780 if test "$ac_test_CXXFLAGS" = set; then
4781 CXXFLAGS=$ac_save_CXXFLAGS
4782 elif test $ac_cv_prog_cxx_g = yes; then
4783 if test "$GXX" = yes; then
4784 CXXFLAGS="-g -O2"
4785 else
4786 CXXFLAGS="-g"
4788 else
4789 if test "$GXX" = yes; then
4790 CXXFLAGS="-O2"
4791 else
4792 CXXFLAGS=
4795 ac_ext=c
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$GNATBIND"; then
4813 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 GNATBIND=$ac_cv_prog_GNATBIND
4833 if test -n "$GNATBIND"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4835 $as_echo "$GNATBIND" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4843 if test -z "$ac_cv_prog_GNATBIND"; then
4844 ac_ct_GNATBIND=$GNATBIND
4845 # Extract the first word of "gnatbind", so it can be a program name with args.
4846 set dummy gnatbind; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$ac_ct_GNATBIND"; then
4853 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4873 if test -n "$ac_ct_GNATBIND"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4875 $as_echo "$ac_ct_GNATBIND" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4881 if test "x$ac_ct_GNATBIND" = x; then
4882 GNATBIND="no"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 GNATBIND=$ac_ct_GNATBIND
4892 else
4893 GNATBIND="$ac_cv_prog_GNATBIND"
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$GNATMAKE"; then
4905 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4918 done
4919 done
4920 IFS=$as_save_IFS
4924 GNATMAKE=$ac_cv_prog_GNATMAKE
4925 if test -n "$GNATMAKE"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4927 $as_echo "$GNATMAKE" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4935 if test -z "$ac_cv_prog_GNATMAKE"; then
4936 ac_ct_GNATMAKE=$GNATMAKE
4937 # Extract the first word of "gnatmake", so it can be a program name with args.
4938 set dummy gnatmake; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$ac_ct_GNATMAKE"; then
4945 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4965 if test -n "$ac_ct_GNATMAKE"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4967 $as_echo "$ac_ct_GNATMAKE" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4973 if test "x$ac_ct_GNATMAKE" = x; then
4974 GNATMAKE="no"
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982 GNATMAKE=$ac_ct_GNATMAKE
4984 else
4985 GNATMAKE="$ac_cv_prog_GNATMAKE"
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4989 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4990 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat >conftest.adb <<EOF
4994 procedure conftest is begin null; end conftest;
4996 acx_cv_cc_gcc_supports_ada=no
4997 # There is a bug in old released versions of GCC which causes the
4998 # driver to exit successfully when the appropriate language module
4999 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5000 # Therefore we must check for the error message as well as an
5001 # unsuccessful exit.
5002 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5003 # given a .adb file, but produce no object file. So we must check
5004 # if an object file was really produced to guard against this.
5005 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5006 if test x"$errors" = x && test -f conftest.$ac_objext; then
5007 acx_cv_cc_gcc_supports_ada=yes
5009 rm -f conftest.*
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5012 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5014 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5015 have_gnat=yes
5016 else
5017 have_gnat=no
5021 # Do configure tests with the C++ compiler, since that's what we build with.
5022 ac_ext=cpp
5023 ac_cpp='$CXXCPP $CPPFLAGS'
5024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5029 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5030 # optimizations to be activated explicitly by the toplevel.
5031 case "$CC" in
5032 */prev-gcc/xgcc*) ;;
5033 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5034 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5035 esac
5039 # Determine PICFLAG for target gnatlib.
5044 case "${target}" in
5045 # PIC is the default on some targets or must not be used.
5046 *-*-darwin*)
5047 # For darwin, common symbols are not allowed in MH_DYLIB files
5048 case "${CFLAGS}" in
5049 # If we are using a compiler supporting mdynamic-no-pic
5050 # and the option has been tested as safe to add, then cancel
5051 # it here, since the code generated is incompatible with shared
5052 # libs.
5053 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5054 *) PICFLAG_FOR_TARGET=-fno-common ;;
5055 esac
5057 alpha*-dec-osf5*)
5058 # PIC is the default.
5060 hppa*64*-*-hpux*)
5061 # PIC is the default for 64-bit PA HP-UX.
5063 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5065 i[34567]86-*-mingw* | x86_64-*-mingw*)
5067 i[34567]86-*-interix[3-9]*)
5068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5069 # Instead, we relocate shared libraries at runtime.
5071 i[34567]86-*-nto-qnx*)
5072 # QNX uses GNU C++, but need to define -shared option too, otherwise
5073 # it will coredump.
5074 PICFLAG_FOR_TARGET='-fPIC -shared'
5076 i[34567]86-pc-msdosdjgpp*)
5077 # DJGPP does not support shared libraries at all.
5079 ia64*-*-hpux*)
5080 # On IA64 HP-UX, PIC is the default but the pic flag
5081 # sets the default TLS model and affects inlining.
5082 PICFLAG_FOR_TARGET=-fPIC
5084 mips-sgi-irix6*)
5085 # PIC is the default.
5087 rs6000-ibm-aix* | powerpc-ibm-aix*)
5088 # All AIX code is PIC.
5091 # Some targets support both -fPIC and -fpic, but prefer the latter.
5092 # FIXME: Why?
5093 i[34567]86-*-* | x86_64-*-*)
5094 PICFLAG_FOR_TARGET=-fpic
5096 # FIXME: Override -fPIC default in libgcc only?
5097 sh-*-linux* | sh[2346lbe]*-*-linux*)
5098 PICFLAG_FOR_TARGET=-fpic
5100 # FIXME: Simplify to sh*-*-netbsd*?
5101 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5102 sh64-*-netbsd* | sh64l*-*-netbsd*)
5103 PICFLAG_FOR_TARGET=-fpic
5105 # Default to -fPIC unless specified otherwise.
5107 PICFLAG_FOR_TARGET=-fPIC
5109 esac
5111 # If the user explicitly uses -fpic/-fPIC, keep that.
5112 case "${CFLAGS_FOR_TARGET}" in
5113 *-fpic*)
5114 PICFLAG_FOR_TARGET=-fpic
5116 *-fPIC*)
5117 PICFLAG_FOR_TARGET=-fPIC
5119 esac
5123 # -------------------------
5124 # Check C compiler features
5125 # -------------------------
5128 ac_ext=cpp
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5134 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5135 if test -z "$CXXCPP"; then
5136 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 # Double quotes because CXXCPP needs to be expanded
5140 for CXXCPP in "$CXX -E" "/lib/cpp"
5142 ac_preproc_ok=false
5143 for ac_cxx_preproc_warn_flag in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158 Syntax error
5159 _ACEOF
5160 if ac_fn_cxx_try_cpp "$LINENO"; then :
5162 else
5163 # Broken: fails on valid input.
5164 continue
5166 rm -f conftest.err conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if ac_fn_cxx_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5176 continue
5177 else
5178 # Passes both tests.
5179 ac_preproc_ok=:
5180 break
5182 rm -f conftest.err conftest.$ac_ext
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5188 break
5191 done
5192 ac_cv_prog_CXXCPP=$CXXCPP
5195 CXXCPP=$ac_cv_prog_CXXCPP
5196 else
5197 ac_cv_prog_CXXCPP=$CXXCPP
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5200 $as_echo "$CXXCPP" >&6; }
5201 ac_preproc_ok=false
5202 for ac_cxx_preproc_warn_flag in '' yes
5204 # Use a header file that comes with gcc, so configuring glibc
5205 # with a fresh cross-compiler works.
5206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207 # <limits.h> exists even on freestanding compilers.
5208 # On the NeXT, cc -E runs the code through the compiler's parser,
5209 # not just through cpp. "Syntax error" is here to catch this case.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #ifdef __STDC__
5213 # include <limits.h>
5214 #else
5215 # include <assert.h>
5216 #endif
5217 Syntax error
5218 _ACEOF
5219 if ac_fn_cxx_try_cpp "$LINENO"; then :
5221 else
5222 # Broken: fails on valid input.
5223 continue
5225 rm -f conftest.err conftest.$ac_ext
5227 # OK, works on sane cases. Now check whether nonexistent headers
5228 # can be detected and how.
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <ac_nonexistent.h>
5232 _ACEOF
5233 if ac_fn_cxx_try_cpp "$LINENO"; then :
5234 # Broken: success on invalid input.
5235 continue
5236 else
5237 # Passes both tests.
5238 ac_preproc_ok=:
5239 break
5241 rm -f conftest.err conftest.$ac_ext
5243 done
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.$ac_ext
5246 if $ac_preproc_ok; then :
5248 else
5249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5251 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5252 See \`config.log' for more details." "$LINENO" 5; }
5255 ac_ext=cpp
5256 ac_cpp='$CXXCPP $CPPFLAGS'
5257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if test "${ac_cv_path_GREP+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_prog in grep ggrep; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5278 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5282 *GNU*)
5283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5285 ac_count=0
5286 $as_echo_n 0123456789 >"conftest.in"
5287 while :
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295 as_fn_arith $ac_count + 1 && ac_count=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP="$ac_path_GREP"
5299 ac_path_GREP_max=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5303 done
5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305 esac
5307 $ac_path_GREP_found && break 3
5308 done
5309 done
5310 done
5311 IFS=$as_save_IFS
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 else
5316 ac_cv_path_GREP=$GREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP="$ac_cv_path_GREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if test "${ac_cv_path_EGREP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5331 then ac_cv_path_EGREP="$GREP -E"
5332 else
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_prog in egrep; do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5344 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5348 *GNU*)
5349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5351 ac_count=0
5352 $as_echo_n 0123456789 >"conftest.in"
5353 while :
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP="$ac_path_EGREP"
5365 ac_path_EGREP_max=$ac_count
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5373 $ac_path_EGREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5381 else
5382 ac_cv_path_EGREP=$EGREP
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP="$ac_cv_path_EGREP"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5393 $as_echo_n "checking for ANSI C header files... " >&6; }
5394 if test "${ac_cv_header_stdc+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <stdlib.h>
5400 #include <stdarg.h>
5401 #include <string.h>
5402 #include <float.h>
5405 main ()
5409 return 0;
5411 _ACEOF
5412 if ac_fn_cxx_try_compile "$LINENO"; then :
5413 ac_cv_header_stdc=yes
5414 else
5415 ac_cv_header_stdc=no
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #include <string.h>
5425 _ACEOF
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "memchr" >/dev/null 2>&1; then :
5429 else
5430 ac_cv_header_stdc=no
5432 rm -f conftest*
5436 if test $ac_cv_header_stdc = yes; then
5437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <stdlib.h>
5442 _ACEOF
5443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "free" >/dev/null 2>&1; then :
5446 else
5447 ac_cv_header_stdc=no
5449 rm -f conftest*
5453 if test $ac_cv_header_stdc = yes; then
5454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5455 if test "$cross_compiling" = yes; then :
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <ctype.h>
5461 #include <stdlib.h>
5462 #if ((' ' & 0x0FF) == 0x020)
5463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5465 #else
5466 # define ISLOWER(c) \
5467 (('a' <= (c) && (c) <= 'i') \
5468 || ('j' <= (c) && (c) <= 'r') \
5469 || ('s' <= (c) && (c) <= 'z'))
5470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5471 #endif
5473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5475 main ()
5477 int i;
5478 for (i = 0; i < 256; i++)
5479 if (XOR (islower (i), ISLOWER (i))
5480 || toupper (i) != TOUPPER (i))
5481 return 2;
5482 return 0;
5484 _ACEOF
5485 if ac_fn_cxx_try_run "$LINENO"; then :
5487 else
5488 ac_cv_header_stdc=no
5490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5491 conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5497 $as_echo "$ac_cv_header_stdc" >&6; }
5498 if test $ac_cv_header_stdc = yes; then
5500 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5506 inttypes.h stdint.h unistd.h
5507 do :
5508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5511 eval as_val=\$$as_ac_Header
5512 if test "x$as_val" = x""yes; then :
5513 cat >>confdefs.h <<_ACEOF
5514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5515 _ACEOF
5519 done
5523 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5524 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5525 MINIX=yes
5526 else
5527 MINIX=
5531 if test "$MINIX" = yes; then
5533 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5536 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5539 $as_echo "#define _MINIX 1" >>confdefs.h
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5545 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5546 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5552 # define __EXTENSIONS__ 1
5553 $ac_includes_default
5555 main ()
5559 return 0;
5561 _ACEOF
5562 if ac_fn_cxx_try_compile "$LINENO"; then :
5563 ac_cv_safe_to_define___extensions__=yes
5564 else
5565 ac_cv_safe_to_define___extensions__=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5570 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5571 test $ac_cv_safe_to_define___extensions__ = yes &&
5572 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5574 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5576 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5578 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5580 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5583 ac_ext=c
5584 ac_cpp='$CPP $CPPFLAGS'
5585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5590 # On Suns, sometimes $CPP names a directory.
5591 if test -n "$CPP" && test -d "$CPP"; then
5592 CPP=
5594 if test -z "$CPP"; then
5595 if test "${ac_cv_prog_CPP+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 # Double quotes because CPP needs to be expanded
5599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5601 ac_preproc_ok=false
5602 for ac_c_preproc_warn_flag in '' yes
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #ifdef __STDC__
5613 # include <limits.h>
5614 #else
5615 # include <assert.h>
5616 #endif
5617 Syntax error
5618 _ACEOF
5619 if ac_fn_c_try_cpp "$LINENO"; then :
5621 else
5622 # Broken: fails on valid input.
5623 continue
5625 rm -f conftest.err conftest.$ac_ext
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5634 # Broken: success on invalid input.
5635 continue
5636 else
5637 # Passes both tests.
5638 ac_preproc_ok=:
5639 break
5641 rm -f conftest.err conftest.$ac_ext
5643 done
5644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5645 rm -f conftest.err conftest.$ac_ext
5646 if $ac_preproc_ok; then :
5647 break
5650 done
5651 ac_cv_prog_CPP=$CPP
5654 CPP=$ac_cv_prog_CPP
5655 else
5656 ac_cv_prog_CPP=$CPP
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5659 $as_echo "$CPP" >&6; }
5660 ac_preproc_ok=false
5661 for ac_c_preproc_warn_flag in '' yes
5663 # Use a header file that comes with gcc, so configuring glibc
5664 # with a fresh cross-compiler works.
5665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 # <limits.h> exists even on freestanding compilers.
5667 # On the NeXT, cc -E runs the code through the compiler's parser,
5668 # not just through cpp. "Syntax error" is here to catch this case.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #ifdef __STDC__
5672 # include <limits.h>
5673 #else
5674 # include <assert.h>
5675 #endif
5676 Syntax error
5677 _ACEOF
5678 if ac_fn_c_try_cpp "$LINENO"; then :
5680 else
5681 # Broken: fails on valid input.
5682 continue
5684 rm -f conftest.err conftest.$ac_ext
5686 # OK, works on sane cases. Now check whether nonexistent headers
5687 # can be detected and how.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <ac_nonexistent.h>
5691 _ACEOF
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5693 # Broken: success on invalid input.
5694 continue
5695 else
5696 # Passes both tests.
5697 ac_preproc_ok=:
5698 break
5700 rm -f conftest.err conftest.$ac_ext
5702 done
5703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5704 rm -f conftest.err conftest.$ac_ext
5705 if $ac_preproc_ok; then :
5707 else
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5711 See \`config.log' for more details." "$LINENO" 5; }
5714 ac_ext=cpp
5715 ac_cpp='$CXXCPP $CPPFLAGS'
5716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5721 $as_echo_n "checking for inline... " >&6; }
5722 if test "${ac_cv_c_inline+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 ac_cv_c_inline=no
5726 for ac_kw in inline __inline__ __inline; do
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #ifndef __cplusplus
5730 typedef int foo_t;
5731 static $ac_kw foo_t static_foo () {return 0; }
5732 $ac_kw foo_t foo () {return 0; }
5733 #endif
5735 _ACEOF
5736 if ac_fn_cxx_try_compile "$LINENO"; then :
5737 ac_cv_c_inline=$ac_kw
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 test "$ac_cv_c_inline" != no && break
5741 done
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5745 $as_echo "$ac_cv_c_inline" >&6; }
5747 case $ac_cv_c_inline in
5748 inline | yes) ;;
5750 case $ac_cv_c_inline in
5751 no) ac_val=;;
5752 *) ac_val=$ac_cv_c_inline;;
5753 esac
5754 cat >>confdefs.h <<_ACEOF
5755 #ifndef __cplusplus
5756 #define inline $ac_val
5757 #endif
5758 _ACEOF
5760 esac
5763 # Check whether --enable-largefile was given.
5764 if test "${enable_largefile+set}" = set; then :
5765 enableval=$enable_largefile;
5768 if test "$enable_largefile" != no; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5771 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5772 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 ac_cv_sys_largefile_CC=no
5776 if test "$GCC" != yes; then
5777 ac_save_CC=$CC
5778 while :; do
5779 # IRIX 6.2 and later do not support large files by default,
5780 # so use the C compiler's -n32 option if that helps.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5793 main ()
5797 return 0;
5799 _ACEOF
5800 if ac_fn_cxx_try_compile "$LINENO"; then :
5801 break
5803 rm -f core conftest.err conftest.$ac_objext
5804 CC="$CC -n32"
5805 if ac_fn_cxx_try_compile "$LINENO"; then :
5806 ac_cv_sys_largefile_CC=' -n32'; break
5808 rm -f core conftest.err conftest.$ac_objext
5809 break
5810 done
5811 CC=$ac_save_CC
5812 rm -f conftest.$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5816 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5817 if test "$ac_cv_sys_largefile_CC" != no; then
5818 CC=$CC$ac_cv_sys_largefile_CC
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5822 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5823 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 while :; do
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <sys/types.h>
5830 /* Check that off_t can represent 2**63 - 1 correctly.
5831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5832 since some C++ compilers masquerading as C compilers
5833 incorrectly reject 9223372036854775807. */
5834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5836 && LARGE_OFF_T % 2147483647 == 1)
5837 ? 1 : -1];
5839 main ()
5843 return 0;
5845 _ACEOF
5846 if ac_fn_cxx_try_compile "$LINENO"; then :
5847 ac_cv_sys_file_offset_bits=no; break
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #define _FILE_OFFSET_BITS 64
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5861 ? 1 : -1];
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_sys_file_offset_bits=64; break
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 ac_cv_sys_file_offset_bits=unknown
5875 break
5876 done
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5879 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5880 case $ac_cv_sys_file_offset_bits in #(
5881 no | unknown) ;;
5883 cat >>confdefs.h <<_ACEOF
5884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5885 _ACEOF
5887 esac
5888 rm -rf conftest*
5889 if test $ac_cv_sys_file_offset_bits = unknown; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5891 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5892 if test "${ac_cv_sys_large_files+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 while :; do
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5906 ? 1 : -1];
5908 main ()
5912 return 0;
5914 _ACEOF
5915 if ac_fn_cxx_try_compile "$LINENO"; then :
5916 ac_cv_sys_large_files=no; break
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #define _LARGE_FILES 1
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5930 ? 1 : -1];
5932 main ()
5936 return 0;
5938 _ACEOF
5939 if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_cv_sys_large_files=1; break
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_sys_large_files=unknown
5944 break
5945 done
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5948 $as_echo "$ac_cv_sys_large_files" >&6; }
5949 case $ac_cv_sys_large_files in #(
5950 no | unknown) ;;
5952 cat >>confdefs.h <<_ACEOF
5953 #define _LARGE_FILES $ac_cv_sys_large_files
5954 _ACEOF
5956 esac
5957 rm -rf conftest*
5962 # sizeof(char) is 1 by definition.
5963 # The cast to long int works around a bug in the HP C Compiler
5964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5966 # This bug is HP SR number 8606223364.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5968 $as_echo_n "checking size of void *... " >&6; }
5969 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5974 else
5975 if test "$ac_cv_type_void_p" = yes; then
5976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5978 { as_fn_set_status 77
5979 as_fn_error "cannot compute sizeof (void *)
5980 See \`config.log' for more details." "$LINENO" 5; }; }
5981 else
5982 ac_cv_sizeof_void_p=0
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5988 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5992 cat >>confdefs.h <<_ACEOF
5993 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5994 _ACEOF
5997 # The cast to long int works around a bug in the HP C Compiler
5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000 # This bug is HP SR number 8606223364.
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6002 $as_echo_n "checking size of short... " >&6; }
6003 if test "${ac_cv_sizeof_short+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6008 else
6009 if test "$ac_cv_type_short" = yes; then
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 { as_fn_set_status 77
6013 as_fn_error "cannot compute sizeof (short)
6014 See \`config.log' for more details." "$LINENO" 5; }; }
6015 else
6016 ac_cv_sizeof_short=0
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6022 $as_echo "$ac_cv_sizeof_short" >&6; }
6026 cat >>confdefs.h <<_ACEOF
6027 #define SIZEOF_SHORT $ac_cv_sizeof_short
6028 _ACEOF
6031 # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6036 $as_echo_n "checking size of int... " >&6; }
6037 if test "${ac_cv_sizeof_int+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6042 else
6043 if test "$ac_cv_type_int" = yes; then
6044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6046 { as_fn_set_status 77
6047 as_fn_error "cannot compute sizeof (int)
6048 See \`config.log' for more details." "$LINENO" 5; }; }
6049 else
6050 ac_cv_sizeof_int=0
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6056 $as_echo "$ac_cv_sizeof_int" >&6; }
6060 cat >>confdefs.h <<_ACEOF
6061 #define SIZEOF_INT $ac_cv_sizeof_int
6062 _ACEOF
6065 # The cast to long int works around a bug in the HP C Compiler
6066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6068 # This bug is HP SR number 8606223364.
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6070 $as_echo_n "checking size of long... " >&6; }
6071 if test "${ac_cv_sizeof_long+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6076 else
6077 if test "$ac_cv_type_long" = yes; then
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 { as_fn_set_status 77
6081 as_fn_error "cannot compute sizeof (long)
6082 See \`config.log' for more details." "$LINENO" 5; }; }
6083 else
6084 ac_cv_sizeof_long=0
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6090 $as_echo "$ac_cv_sizeof_long" >&6; }
6094 cat >>confdefs.h <<_ACEOF
6095 #define SIZEOF_LONG $ac_cv_sizeof_long
6096 _ACEOF
6099 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6100 if test "x$ac_cv_type_long_long" = x""yes; then :
6102 cat >>confdefs.h <<_ACEOF
6103 #define HAVE_LONG_LONG 1
6104 _ACEOF
6106 # The cast to long int works around a bug in the HP C Compiler
6107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6109 # This bug is HP SR number 8606223364.
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6111 $as_echo_n "checking size of long long... " >&6; }
6112 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6117 else
6118 if test "$ac_cv_type_long_long" = yes; then
6119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6121 { as_fn_set_status 77
6122 as_fn_error "cannot compute sizeof (long long)
6123 See \`config.log' for more details." "$LINENO" 5; }; }
6124 else
6125 ac_cv_sizeof_long_long=0
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6131 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6135 cat >>confdefs.h <<_ACEOF
6136 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6137 _ACEOF
6142 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6143 case $ac_cv_c_int8_t in #(
6144 no|yes) ;; #(
6147 cat >>confdefs.h <<_ACEOF
6148 #define int8_t $ac_cv_c_int8_t
6149 _ACEOF
6151 esac
6153 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6154 case $ac_cv_c_int16_t in #(
6155 no|yes) ;; #(
6158 cat >>confdefs.h <<_ACEOF
6159 #define int16_t $ac_cv_c_int16_t
6160 _ACEOF
6162 esac
6164 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6165 case $ac_cv_c_int32_t in #(
6166 no|yes) ;; #(
6169 cat >>confdefs.h <<_ACEOF
6170 #define int32_t $ac_cv_c_int32_t
6171 _ACEOF
6173 esac
6175 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6176 case $ac_cv_c_int64_t in #(
6177 no|yes) ;; #(
6180 cat >>confdefs.h <<_ACEOF
6181 #define int64_t $ac_cv_c_int64_t
6182 _ACEOF
6184 esac
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6188 $as_echo_n "checking for long long int... " >&6; }
6189 if test "${ac_cv_type_long_long_int+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* For now, do not test the preprocessor; as of 2007 there are too many
6196 implementations with broken preprocessors. Perhaps this can
6197 be revisited in 2012. In the meantime, code should not expect
6198 #if to work with literals wider than 32 bits. */
6199 /* Test literals. */
6200 long long int ll = 9223372036854775807ll;
6201 long long int nll = -9223372036854775807LL;
6202 unsigned long long int ull = 18446744073709551615ULL;
6203 /* Test constant expressions. */
6204 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6205 ? 1 : -1)];
6206 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6207 ? 1 : -1)];
6208 int i = 63;
6210 main ()
6212 /* Test availability of runtime routines for shift and division. */
6213 long long int llmax = 9223372036854775807ll;
6214 unsigned long long int ullmax = 18446744073709551615ull;
6215 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216 | (llmax / ll) | (llmax % ll)
6217 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218 | (ullmax / ull) | (ullmax % ull));
6220 return 0;
6223 _ACEOF
6224 if ac_fn_cxx_try_link "$LINENO"; then :
6225 if test "$cross_compiling" = yes; then :
6226 ac_cv_type_long_long_int=yes
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #include <limits.h>
6231 #ifndef LLONG_MAX
6232 # define HALF \
6233 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6234 # define LLONG_MAX (HALF - 1 + HALF)
6235 #endif
6237 main ()
6239 long long int n = 1;
6240 int i;
6241 for (i = 0; ; i++)
6243 long long int m = n << i;
6244 if (m >> i != n)
6245 return 1;
6246 if (LLONG_MAX / 2 < m)
6247 break;
6249 return 0;
6251 return 0;
6253 _ACEOF
6254 if ac_fn_cxx_try_run "$LINENO"; then :
6255 ac_cv_type_long_long_int=yes
6256 else
6257 ac_cv_type_long_long_int=no
6259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6260 conftest.$ac_objext conftest.beam conftest.$ac_ext
6263 else
6264 ac_cv_type_long_long_int=no
6266 rm -f core conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6270 $as_echo "$ac_cv_type_long_long_int" >&6; }
6271 if test $ac_cv_type_long_long_int = yes; then
6273 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6279 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6280 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6282 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6284 else
6285 test $ac_cv_type_long_long_int = yes \
6286 && ac_type='long long int' \
6287 || ac_type='long int'
6289 cat >>confdefs.h <<_ACEOF
6290 #define intmax_t $ac_type
6291 _ACEOF
6297 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6298 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6300 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6302 else
6303 for ac_type in 'int' 'long int' 'long long int'; do
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 $ac_includes_default
6308 main ()
6310 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6311 test_array [0] = 0
6314 return 0;
6316 _ACEOF
6317 if ac_fn_cxx_try_compile "$LINENO"; then :
6319 cat >>confdefs.h <<_ACEOF
6320 #define intptr_t $ac_type
6321 _ACEOF
6323 ac_type=
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 test -z "$ac_type" && break
6327 done
6331 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6332 case $ac_cv_c_uint8_t in #(
6333 no|yes) ;; #(
6336 $as_echo "#define _UINT8_T 1" >>confdefs.h
6339 cat >>confdefs.h <<_ACEOF
6340 #define uint8_t $ac_cv_c_uint8_t
6341 _ACEOF
6343 esac
6345 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6346 case $ac_cv_c_uint16_t in #(
6347 no|yes) ;; #(
6351 cat >>confdefs.h <<_ACEOF
6352 #define uint16_t $ac_cv_c_uint16_t
6353 _ACEOF
6355 esac
6357 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6358 case $ac_cv_c_uint32_t in #(
6359 no|yes) ;; #(
6362 $as_echo "#define _UINT32_T 1" >>confdefs.h
6365 cat >>confdefs.h <<_ACEOF
6366 #define uint32_t $ac_cv_c_uint32_t
6367 _ACEOF
6369 esac
6371 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6372 case $ac_cv_c_uint64_t in #(
6373 no|yes) ;; #(
6376 $as_echo "#define _UINT64_T 1" >>confdefs.h
6379 cat >>confdefs.h <<_ACEOF
6380 #define uint64_t $ac_cv_c_uint64_t
6381 _ACEOF
6383 esac
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6387 $as_echo_n "checking for unsigned long long int... " >&6; }
6388 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6394 /* For now, do not test the preprocessor; as of 2007 there are too many
6395 implementations with broken preprocessors. Perhaps this can
6396 be revisited in 2012. In the meantime, code should not expect
6397 #if to work with literals wider than 32 bits. */
6398 /* Test literals. */
6399 long long int ll = 9223372036854775807ll;
6400 long long int nll = -9223372036854775807LL;
6401 unsigned long long int ull = 18446744073709551615ULL;
6402 /* Test constant expressions. */
6403 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6404 ? 1 : -1)];
6405 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6406 ? 1 : -1)];
6407 int i = 63;
6409 main ()
6411 /* Test availability of runtime routines for shift and division. */
6412 long long int llmax = 9223372036854775807ll;
6413 unsigned long long int ullmax = 18446744073709551615ull;
6414 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6415 | (llmax / ll) | (llmax % ll)
6416 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6417 | (ullmax / ull) | (ullmax % ull));
6419 return 0;
6422 _ACEOF
6423 if ac_fn_cxx_try_link "$LINENO"; then :
6424 ac_cv_type_unsigned_long_long_int=yes
6425 else
6426 ac_cv_type_unsigned_long_long_int=no
6428 rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6432 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6433 if test $ac_cv_type_unsigned_long_long_int = yes; then
6435 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6441 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6442 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6444 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6446 else
6447 test $ac_cv_type_unsigned_long_long_int = yes \
6448 && ac_type='unsigned long long int' \
6449 || ac_type='unsigned long int'
6451 cat >>confdefs.h <<_ACEOF
6452 #define uintmax_t $ac_type
6453 _ACEOF
6459 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6460 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6462 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6464 else
6465 for ac_type in 'unsigned int' 'unsigned long int' \
6466 'unsigned long long int'; do
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 $ac_includes_default
6471 main ()
6473 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6474 test_array [0] = 0
6477 return 0;
6479 _ACEOF
6480 if ac_fn_cxx_try_compile "$LINENO"; then :
6482 cat >>confdefs.h <<_ACEOF
6483 #define uintptr_t $ac_type
6484 _ACEOF
6486 ac_type=
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 test -z "$ac_type" && break
6490 done
6506 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6507 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6510 # check what underlying integer type int64_t uses
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6512 $as_echo_n "checking for int64_t underlying type... " >&6; }
6513 if test "${ac_cv_int64_t_type+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 #ifdef HAVE_STDINT_H
6521 #include <stdint.h>
6522 #endif
6523 template <typename T> struct X { };
6524 template <>
6525 struct X<long> { typedef long t; };
6528 main ()
6530 X<int64_t>::t x;
6532 return 0;
6534 _ACEOF
6535 if ac_fn_cxx_try_compile "$LINENO"; then :
6536 ac_cv_int64_t_type=long
6537 else
6538 ac_cv_int64_t_type="long long"
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6543 $as_echo "$ac_cv_int64_t_type" >&6; }
6544 if test "$ac_cv_int64_t_type" = "long"; then
6546 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #ifdef HAVE_STDINT_H
6553 #include <stdint.h>
6554 #endif
6555 template <typename T> struct X { };
6556 template <>
6557 struct X<long long> { typedef long long t; };
6560 main ()
6562 X<int64_t>::t x;
6564 return 0;
6566 _ACEOF
6567 if ac_fn_cxx_try_compile "$LINENO"; then :
6569 else
6570 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6576 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6577 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6584 #include <utility>
6587 main ()
6589 int a, b; std::swap(a,b);
6591 return 0;
6593 _ACEOF
6594 if ac_fn_cxx_try_compile "$LINENO"; then :
6595 ac_cv_std_swap_in_utility=yes
6596 else
6597 ac_cv_std_swap_in_utility=no
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6602 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6603 if test $ac_cv_std_swap_in_utility = yes; then
6605 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6609 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6610 # If the host compiler is affected by the bug, and we build with optimization
6611 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6612 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6613 # Since there is no reliable feature check for the presence of this bug,
6614 # we simply use a GCC version number check. (This should never trigger for
6615 # stages 2 or 3 of a native bootstrap.)
6616 aliasing_flags=
6617 if test "$GCC" = yes; then
6618 saved_CXXFLAGS="$CXXFLAGS"
6620 # The following test compilation will succeed if and only if $CXX accepts
6621 # -fno-strict-aliasing *and* is older than GCC 4.3.
6622 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6624 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6629 #error compiler not affected by placement new aliasing bug
6630 #endif
6632 _ACEOF
6633 if ac_fn_cxx_try_compile "$LINENO"; then :
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6636 else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 CXXFLAGS="$saved_CXXFLAGS"
6648 # ---------------------
6649 # Warnings and checking
6650 # ---------------------
6652 # Check $CC warning features (if it's GCC).
6653 # We want to use -pedantic, but we don't want warnings about
6654 # * 'long long'
6655 # * variadic macros
6656 # * overlong strings
6657 # * C++11 narrowing conversions in { }
6658 # So, we only use -pedantic if we can disable those warnings.
6660 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6661 # Check whether --enable-build-format-warnings was given.
6662 if test "${enable_build_format_warnings+set}" = set; then :
6663 enableval=$enable_build_format_warnings;
6664 else
6665 enable_build_format_warnings=yes
6668 if test $enable_build_format_warnings = no; then :
6669 wf_opt=-Wno-format
6670 else
6671 wf_opt=
6673 ac_ext=cpp
6674 ac_cpp='$CXXCPP $CPPFLAGS'
6675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6679 loose_warn=
6680 save_CXXFLAGS="$CXXFLAGS"
6681 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6682 # Do the check with the no- prefix removed since gcc silently
6683 # accepts any -Wno-* option on purpose
6684 case $real_option in
6685 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6686 *) option=$real_option ;;
6687 esac
6688 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6691 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6692 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 CXXFLAGS="$option"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6700 main ()
6704 return 0;
6706 _ACEOF
6707 if ac_fn_cxx_try_compile "$LINENO"; then :
6708 eval "$as_acx_Woption=yes"
6709 else
6710 eval "$as_acx_Woption=no"
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 eval ac_res=\$$as_acx_Woption
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6717 $as_echo "$ac_res" >&6; }
6718 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6719 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6721 done
6722 CXXFLAGS="$save_CXXFLAGS"
6723 ac_ext=cpp
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6731 ac_ext=c
6732 ac_cpp='$CPP $CPPFLAGS'
6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737 c_loose_warn=
6738 save_CFLAGS="$CFLAGS"
6739 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6740 # Do the check with the no- prefix removed since gcc silently
6741 # accepts any -Wno-* option on purpose
6742 case $real_option in
6743 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6744 *) option=$real_option ;;
6745 esac
6746 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6749 $as_echo_n "checking whether $CC supports $option... " >&6; }
6750 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 CFLAGS="$option"
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6758 main ()
6762 return 0;
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 eval "$as_acx_Woption=yes"
6767 else
6768 eval "$as_acx_Woption=no"
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 eval ac_res=\$$as_acx_Woption
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6775 $as_echo "$ac_res" >&6; }
6776 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6777 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6779 done
6780 CFLAGS="$save_CFLAGS"
6781 ac_ext=cpp
6782 ac_cpp='$CXXCPP $CPPFLAGS'
6783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6788 ac_ext=cpp
6789 ac_cpp='$CXXCPP $CPPFLAGS'
6790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6794 strict_warn=
6795 save_CXXFLAGS="$CXXFLAGS"
6796 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6797 # Do the check with the no- prefix removed since gcc silently
6798 # accepts any -Wno-* option on purpose
6799 case $real_option in
6800 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6801 *) option=$real_option ;;
6802 esac
6803 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6806 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6807 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 CXXFLAGS="$option"
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6815 main ()
6819 return 0;
6821 _ACEOF
6822 if ac_fn_cxx_try_compile "$LINENO"; then :
6823 eval "$as_acx_Woption=yes"
6824 else
6825 eval "$as_acx_Woption=no"
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 eval ac_res=\$$as_acx_Woption
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6832 $as_echo "$ac_res" >&6; }
6833 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6834 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6836 done
6837 CXXFLAGS="$save_CXXFLAGS"
6838 ac_ext=cpp
6839 ac_cpp='$CXXCPP $CPPFLAGS'
6840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845 ac_ext=c
6846 ac_cpp='$CPP $CPPFLAGS'
6847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6851 c_strict_warn=
6852 save_CFLAGS="$CFLAGS"
6853 for real_option in -Wold-style-definition -Wc++-compat; do
6854 # Do the check with the no- prefix removed since gcc silently
6855 # accepts any -Wno-* option on purpose
6856 case $real_option in
6857 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6858 *) option=$real_option ;;
6859 esac
6860 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6863 $as_echo_n "checking whether $CC supports $option... " >&6; }
6864 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 CFLAGS="$option"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6872 main ()
6876 return 0;
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 eval "$as_acx_Woption=yes"
6881 else
6882 eval "$as_acx_Woption=no"
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 eval ac_res=\$$as_acx_Woption
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6889 $as_echo "$ac_res" >&6; }
6890 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6891 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6893 done
6894 CFLAGS="$save_CFLAGS"
6895 ac_ext=cpp
6896 ac_cpp='$CXXCPP $CPPFLAGS'
6897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6902 ac_ext=cpp
6903 ac_cpp='$CXXCPP $CPPFLAGS'
6904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6908 # Do the check with the no- prefix removed from the warning options
6909 # since gcc silently accepts any -Wno-* option on purpose
6910 if test "$GXX" = yes; then :
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6912 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6913 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 save_CXXFLAGS="$CXXFLAGS"
6917 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6922 main ()
6926 return 0;
6928 _ACEOF
6929 if ac_fn_cxx_try_compile "$LINENO"; then :
6930 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6931 else
6932 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 CXXFLAGS="$save_CXXFLAGS"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6938 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6939 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6940 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6944 ac_ext=cpp
6945 ac_cpp='$CXXCPP $CPPFLAGS'
6946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6951 ac_ext=cpp
6952 ac_cpp='$CXXCPP $CPPFLAGS'
6953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6957 # Check whether --enable-werror-always was given.
6958 if test "${enable_werror_always+set}" = set; then :
6959 enableval=$enable_werror_always;
6960 else
6961 enable_werror_always=no
6964 if test $enable_werror_always = yes; then :
6965 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6968 ac_ext=cpp
6969 ac_cpp='$CXXCPP $CPPFLAGS'
6970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976 # The above macros do nothing if the compiler is not GCC. However, the
6977 # Makefile has more goo to add other flags, so these variables are used
6978 # to enable warnings only for GCC.
6979 warn_cflags=
6980 warn_cxxflags=
6981 if test "x$GCC" = "xyes"; then
6982 warn_cflags='$(GCC_WARN_CFLAGS)'
6983 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6988 # Disable exceptions and RTTI if building with g++
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6995 noexception_flags=
6996 save_CFLAGS="$CFLAGS"
6997 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6998 # Do the check with the no- prefix removed since gcc silently
6999 # accepts any -Wno-* option on purpose
7000 case $real_option in
7001 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7002 *) option=$real_option ;;
7003 esac
7004 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7007 $as_echo_n "checking whether $CC supports $option... " >&6; }
7008 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 CFLAGS="$option"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7016 main ()
7020 return 0;
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 eval "$as_acx_Woption=yes"
7025 else
7026 eval "$as_acx_Woption=no"
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 eval ac_res=\$$as_acx_Woption
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7033 $as_echo "$ac_res" >&6; }
7034 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7035 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7037 done
7038 CFLAGS="$save_CFLAGS"
7039 ac_ext=cpp
7040 ac_cpp='$CXXCPP $CPPFLAGS'
7041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7047 # Enable expensive internal checks
7048 is_release=
7049 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7050 is_release=yes
7053 # Check whether --enable-checking was given.
7054 if test "${enable_checking+set}" = set; then :
7055 enableval=$enable_checking; ac_checking_flags="${enableval}"
7056 else
7058 # Determine the default checks.
7059 if test x$is_release = x ; then
7060 ac_checking_flags=yes,extra
7061 else
7062 ac_checking_flags=release
7066 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7067 for check in release $ac_checking_flags
7069 case $check in
7070 # these set all the flags to specific states
7071 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7072 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7073 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7074 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7075 ac_tree_checking=1 ; ac_valgrind_checking= ;
7076 ac_types_checking=1 ;;
7077 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7078 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7079 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7080 ac_rtlflag_checking= ; ac_runtime_checking= ;
7081 ac_tree_checking= ; ac_valgrind_checking= ;
7082 ac_types_checking= ;;
7083 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7084 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7085 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7086 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7087 ac_tree_checking=1 ; ac_valgrind_checking= ;
7088 ac_types_checking=1 ;;
7089 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7090 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7091 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7092 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7093 ac_tree_checking= ; ac_valgrind_checking= ;
7094 ac_types_checking= ;;
7095 # these enable particular checks
7096 assert) ac_assert_checking=1 ;;
7097 df) ac_df_checking=1 ;;
7098 extra) ac_extra_checking=1 ;;
7099 fold) ac_fold_checking=1 ;;
7100 gc) ac_gc_checking=1 ;;
7101 gcac) ac_gc_always_collect=1 ;;
7102 gimple) ac_gimple_checking=1 ;;
7103 misc) ac_checking=1 ;;
7104 rtl) ac_rtl_checking=1 ;;
7105 rtlflag) ac_rtlflag_checking=1 ;;
7106 runtime) ac_runtime_checking=1 ;;
7107 tree) ac_tree_checking=1 ;;
7108 types) ac_types_checking=1 ;;
7109 valgrind) ac_valgrind_checking=1 ;;
7110 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7111 esac
7112 done
7113 IFS="$ac_save_IFS"
7115 nocommon_flag=""
7116 if test x$ac_checking != x ; then
7118 $as_echo "#define CHECKING_P 1" >>confdefs.h
7120 nocommon_flag=-fno-common
7121 else
7122 $as_echo "#define CHECKING_P 0" >>confdefs.h
7126 if test x$ac_extra_checking != x ; then
7128 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7130 else
7131 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7134 if test x$ac_df_checking != x ; then
7136 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7139 if test x$ac_assert_checking != x ; then
7141 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7144 if test x$ac_gimple_checking != x ; then
7146 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7150 if test x$ac_runtime_checking != x ; then
7152 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7155 if test x$ac_tree_checking != x ; then
7157 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7159 TREECHECKING=yes
7161 if test x$ac_types_checking != x ; then
7163 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7167 if test x$ac_rtl_checking != x ; then
7169 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7172 if test x$ac_rtlflag_checking != x ; then
7174 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7177 if test x$ac_gc_checking != x ; then
7179 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7182 if test x$ac_gc_always_collect != x ; then
7184 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7187 if test x$ac_fold_checking != x ; then
7189 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7192 valgrind_path_defines=
7193 valgrind_command=
7195 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7196 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7197 have_valgrind_h=yes
7198 else
7199 have_valgrind_h=no
7204 # It is certainly possible that there's valgrind but no valgrind.h.
7205 # GCC relies on making annotations so we must have both.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7207 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <valgrind/memcheck.h>
7211 #ifndef VALGRIND_DISCARD
7212 #error VALGRIND_DISCARD not defined
7213 #endif
7214 _ACEOF
7215 if ac_fn_cxx_try_cpp "$LINENO"; then :
7216 gcc_cv_header_valgrind_memcheck_h=yes
7217 else
7218 gcc_cv_header_valgrind_memcheck_h=no
7220 rm -f conftest.err conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7222 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <memcheck.h>
7228 #ifndef VALGRIND_DISCARD
7229 #error VALGRIND_DISCARD not defined
7230 #endif
7231 _ACEOF
7232 if ac_fn_cxx_try_cpp "$LINENO"; then :
7233 gcc_cv_header_memcheck_h=yes
7234 else
7235 gcc_cv_header_memcheck_h=no
7237 rm -f conftest.err conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7240 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7242 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7245 if test $gcc_cv_header_memcheck_h = yes; then
7247 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7251 if test x$ac_valgrind_checking != x ; then
7253 # Prepare PATH_SEPARATOR.
7254 # The user is always right.
7255 if test "${PATH_SEPARATOR+set}" != set; then
7256 echo "#! /bin/sh" >conf$$.sh
7257 echo "exit 0" >>conf$$.sh
7258 chmod +x conf$$.sh
7259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7260 PATH_SEPARATOR=';'
7261 else
7262 PATH_SEPARATOR=:
7264 rm -f conf$$.sh
7267 # Find out how to test for executable files. Don't use a zero-byte file,
7268 # as systems may use methods other than mode bits to determine executability.
7269 cat >conf$$.file <<_ASEOF
7270 #! /bin/sh
7271 exit 0
7272 _ASEOF
7273 chmod +x conf$$.file
7274 if test -x conf$$.file >/dev/null 2>&1; then
7275 ac_executable_p="test -x"
7276 else
7277 ac_executable_p="test -f"
7279 rm -f conf$$.file
7281 # Extract the first word of "valgrind", so it can be a program name with args.
7282 set dummy valgrind; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 case "$valgrind_path" in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7293 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7294 for ac_dir in $PATH; do
7295 IFS="$ac_save_IFS"
7296 test -z "$ac_dir" && ac_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7299 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7300 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7301 break 2
7304 done
7305 done
7306 IFS="$ac_save_IFS"
7308 esac
7310 valgrind_path="$ac_cv_path_valgrind_path"
7311 if test -n "$valgrind_path"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7313 $as_echo "$valgrind_path" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$valgrind_path" = "x" \
7320 || (test $have_valgrind_h = no \
7321 && test $gcc_cv_header_memcheck_h = no \
7322 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7323 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7325 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7326 valgrind_command="$valgrind_path -q"
7328 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7334 # Enable code coverage collection
7335 # Check whether --enable-coverage was given.
7336 if test "${enable_coverage+set}" = set; then :
7337 enableval=$enable_coverage; case "${enableval}" in
7338 yes|noopt)
7339 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7341 opt)
7342 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7345 # a.k.a. --disable-coverage
7346 coverage_flags=""
7349 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7351 esac
7352 else
7353 coverage_flags=""
7358 # Check whether --enable-gather-detailed-mem-stats was given.
7359 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7360 enableval=$enable_gather_detailed_mem_stats;
7361 else
7362 enable_gather_detailed_mem_stats=no
7365 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7367 cat >>confdefs.h <<_ACEOF
7368 #define GATHER_STATISTICS $gather_stats
7369 _ACEOF
7372 # Check whether --enable-valgrind-annotations was given.
7373 if test "${enable_valgrind_annotations+set}" = set; then :
7374 enableval=$enable_valgrind_annotations;
7375 else
7376 enable_valgrind_annotations=no
7379 if test x$enable_valgrind_annotations != xno \
7380 || test x$ac_valgrind_checking != x; then
7381 if (test $have_valgrind_h = no \
7382 && test $gcc_cv_header_memcheck_h = no \
7383 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7384 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7387 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7391 # -------------------------------
7392 # Miscenalleous configure options
7393 # -------------------------------
7395 # With stabs
7397 # Check whether --with-stabs was given.
7398 if test "${with_stabs+set}" = set; then :
7399 withval=$with_stabs; stabs="$with_stabs"
7400 else
7401 stabs=no
7405 # Determine whether or not multilibs are enabled.
7406 # Check whether --enable-multilib was given.
7407 if test "${enable_multilib+set}" = set; then :
7408 enableval=$enable_multilib;
7409 else
7410 enable_multilib=yes
7415 # Determine whether or not multiarch is enabled.
7416 # Check whether --enable-multiarch was given.
7417 if test "${enable_multiarch+set}" = set; then :
7418 enableval=$enable_multiarch; case "${enableval}" in
7419 yes|no|auto) enable_multiarch=$enableval;;
7420 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7421 esac
7422 else
7423 enable_multiarch=auto
7426 if test x${enable_multiarch} = xauto; then
7427 if test x${with_native_system_header_dir} != x; then
7428 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7429 enable_multiarch=no
7431 if test x$host != x$target && test "x$with_sysroot" = x; then
7432 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7433 enable_multiarch=no
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7437 $as_echo_n "checking for multiarch configuration... " >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7440 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7442 # needed for setting the multiarch name for soft-float/hard-float ABIs
7446 # default stack clash protection guard size as power of twos in bytes.
7447 # Please keep these in sync with params.def.
7448 stk_clash_min=12
7449 stk_clash_max=30
7451 # Keep the default value when the option is not used to 0, this allows us to
7452 # distinguish between the cases where the user specifially set a value via
7453 # configure and when the normal default value is used.
7455 # Check whether --with-stack-clash-protection-guard-size was given.
7456 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7457 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7458 else
7459 DEFAULT_STK_CLASH_GUARD_SIZE=0
7462 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7463 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7464 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7465 as_fn_error "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7469 cat >>confdefs.h <<_ACEOF
7470 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7471 _ACEOF
7474 # Enable __cxa_atexit for C++.
7475 # Check whether --enable-__cxa_atexit was given.
7476 if test "${enable___cxa_atexit+set}" = set; then :
7477 enableval=$enable___cxa_atexit;
7481 # Enable C extension for decimal float if target supports it.
7483 # Check whether --enable-decimal-float was given.
7484 if test "${enable_decimal_float+set}" = set; then :
7485 enableval=$enable_decimal_float;
7486 case $enable_decimal_float in
7487 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7488 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7489 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7490 esac
7492 else
7494 case $target in
7495 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7496 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7497 i?86*-*-mingw* | x86_64*-*-mingw* | \
7498 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7499 enable_decimal_float=yes
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7503 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7504 enable_decimal_float=no
7506 esac
7511 # x86's use BID format instead of DPD
7512 case x$enable_decimal_float in
7513 xyes)
7514 case $target in
7515 i?86*-*-* | x86_64*-*-*)
7516 enable_decimal_float=bid
7519 enable_decimal_float=dpd
7521 esac
7522 default_decimal_float=$enable_decimal_float
7524 xno)
7525 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7526 # dependency on libdecnumber.
7527 default_decimal_float=dpd
7529 esac
7534 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7536 cat >>confdefs.h <<_ACEOF
7537 #define ENABLE_DECIMAL_FLOAT $dfp
7538 _ACEOF
7541 # Use default_decimal_float for dependency.
7542 enable_decimal_float=$default_decimal_float
7544 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7546 cat >>confdefs.h <<_ACEOF
7547 #define ENABLE_DECIMAL_BID_FORMAT $bid
7548 _ACEOF
7551 # Enable C extension for fixed-point arithmetic.
7552 # Check whether --enable-fixed-point was given.
7553 if test "${enable_fixed_point+set}" = set; then :
7554 enableval=$enable_fixed_point;
7555 else
7557 case $target in
7558 arm*)
7559 enable_fixed_point=yes
7562 mips*-*-*)
7563 enable_fixed_point=yes
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7567 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7568 enable_fixed_point=no
7570 esac
7576 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7578 cat >>confdefs.h <<_ACEOF
7579 #define ENABLE_FIXED_POINT $fixedpoint
7580 _ACEOF
7583 # Enable threads
7584 # Pass with no value to take the default
7585 # Pass with a value to specify a thread package
7586 # Check whether --enable-threads was given.
7587 if test "${enable_threads+set}" = set; then :
7588 enableval=$enable_threads;
7589 else
7590 enable_threads=''
7594 # Check whether --enable-tls was given.
7595 if test "${enable_tls+set}" = set; then :
7596 enableval=$enable_tls;
7597 case $enable_tls in
7598 yes | no) ;;
7599 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7600 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7601 esac
7603 else
7604 enable_tls=''
7608 # Check whether --enable-vtable-verify was given.
7609 if test "${enable_vtable_verify+set}" = set; then :
7610 enableval=$enable_vtable_verify;
7611 else
7612 enable_vtable_verify=no
7615 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7617 cat >>confdefs.h <<_ACEOF
7618 #define ENABLE_VTABLE_VERIFY $vtable_verify
7619 _ACEOF
7622 # Check whether --enable-objc-gc was given.
7623 if test "${enable_objc_gc+set}" = set; then :
7624 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7625 objc_boehm_gc=''
7626 else
7627 objc_boehm_gc=1
7629 else
7630 objc_boehm_gc=''
7635 # Check whether --with-dwarf2 was given.
7636 if test "${with_dwarf2+set}" = set; then :
7637 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7638 else
7639 dwarf2=no
7643 # Check whether --enable-shared was given.
7644 if test "${enable_shared+set}" = set; then :
7645 enableval=$enable_shared;
7646 case $enable_shared in
7647 yes | no) ;;
7649 enable_shared=no
7650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7651 for pkg in $enableval; do
7652 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7653 enable_shared=yes
7655 done
7656 IFS="$ac_save_ifs"
7658 esac
7660 else
7661 enable_shared=yes
7666 # Check whether --enable-gcov was given.
7667 if test "${enable_gcov+set}" = set; then :
7668 enableval=$enable_gcov;
7669 else
7670 enable_gcov=yes
7676 # Check whether --with-specs was given.
7677 if test "${with_specs+set}" = set; then :
7678 withval=$with_specs; CONFIGURE_SPECS=$withval
7679 else
7680 CONFIGURE_SPECS=
7688 # Check whether --with-pkgversion was given.
7689 if test "${with_pkgversion+set}" = set; then :
7690 withval=$with_pkgversion; case "$withval" in
7691 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7692 no) PKGVERSION= ;;
7693 *) PKGVERSION="($withval) " ;;
7694 esac
7695 else
7696 PKGVERSION="(GCC) "
7704 # Check whether --with-bugurl was given.
7705 if test "${with_bugurl+set}" = set; then :
7706 withval=$with_bugurl; case "$withval" in
7707 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7708 no) BUGURL=
7710 *) BUGURL="$withval"
7712 esac
7713 else
7714 BUGURL="https://gcc.gnu.org/bugs/"
7718 case ${BUGURL} in
7720 REPORT_BUGS_TO=
7721 REPORT_BUGS_TEXI=
7724 REPORT_BUGS_TO="<$BUGURL>"
7725 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7727 esac;
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages was given.
7735 if test "${enable_languages+set}" = set; then :
7736 enableval=$enable_languages; case ,${enable_languages}, in
7737 ,,|,yes,)
7738 # go safe -- we cannot be much sure without the toplevel
7739 # configure's
7740 # analysis of which target libs are present and usable
7741 enable_languages=c
7743 *,all,*)
7744 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7746 *,c,*)
7749 enable_languages=c,${enable_languages}
7751 esac
7752 else
7753 enable_languages=c
7757 if test x"$enable_as_accelerator_for" != x; then
7759 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7761 enable_as_accelerator=yes
7762 case "${target}" in
7763 *-intelmicemul-*)
7764 # In this case we expect offload compiler to be built as native, so we
7765 # need to rename the driver to avoid clashes with host's drivers.
7766 program_transform_name="s&^&${target}-&" ;;
7767 esac
7768 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7769 program_transform_name=`echo $program_transform_name | sed $sedscript`
7770 accel_dir_suffix=/accel/${target_noncanonical}
7771 real_target_noncanonical=${enable_as_accelerator_for}
7777 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7778 tgt=`echo $tgt | sed 's/=.*//'`
7780 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7781 enable_hsa=1
7782 else
7783 enable_offloading=1
7786 if test x"$offload_targets" = x; then
7787 offload_targets=$tgt
7788 else
7789 offload_targets="$offload_targets,$tgt"
7791 done
7793 cat >>confdefs.h <<_ACEOF
7794 #define OFFLOAD_TARGETS "$offload_targets"
7795 _ACEOF
7797 if test x"$enable_offloading" != x; then
7799 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7801 else
7803 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7807 if test x"$enable_hsa" = x1 ; then
7809 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7814 # Check whether --with-multilib-list was given.
7815 if test "${with_multilib_list+set}" = set; then :
7816 withval=$with_multilib_list; :
7817 else
7818 with_multilib_list=default
7822 # -------------------------
7823 # Checks for other programs
7824 # -------------------------
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7828 set x ${MAKE-make}
7829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7830 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat >conftest.make <<\_ACEOF
7834 SHELL = /bin/sh
7835 all:
7836 @echo '@@@%%%=$(MAKE)=@@@%%%'
7837 _ACEOF
7838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7840 *@@@%%%=?*=@@@%%%*)
7841 eval ac_cv_prog_make_${ac_make}_set=yes;;
7843 eval ac_cv_prog_make_${ac_make}_set=no;;
7844 esac
7845 rm -f conftest.make
7847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7850 SET_MAKE=
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 SET_MAKE="MAKE=${MAKE-make}"
7858 # Find some useful tools
7859 for ac_prog in gawk mawk nawk awk
7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy $ac_prog; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_AWK+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$AWK"; then
7869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_AWK="$ac_prog"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7882 done
7883 done
7884 IFS=$as_save_IFS
7888 AWK=$ac_cv_prog_AWK
7889 if test -n "$AWK"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7891 $as_echo "$AWK" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7898 test -n "$AWK" && break
7899 done
7901 # We need awk to create options.c and options.h.
7902 # Bail out if it's missing.
7903 case ${AWK} in
7904 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7905 esac
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7908 $as_echo_n "checking whether ln -s works... " >&6; }
7909 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 rm -f conftestdata_t
7913 echo >conftestdata_f
7914 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7915 then
7916 gcc_cv_prog_LN_S="ln -s"
7917 else
7918 if ln conftestdata_f conftestdata_t 2>/dev/null
7919 then
7920 gcc_cv_prog_LN_S=ln
7921 else
7922 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7923 then
7924 gcc_cv_prog_LN_S="cp -p"
7925 else
7926 gcc_cv_prog_LN_S=cp
7930 rm -f conftestdata_f conftestdata_t
7933 LN_S="$gcc_cv_prog_LN_S"
7934 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7937 else
7938 if test "$gcc_cv_prog_LN_S" = "ln"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7940 $as_echo "no, using ln" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7943 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7948 $as_echo_n "checking whether ln works... " >&6; }
7949 if test "${acx_cv_prog_LN+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 rm -f conftestdata_t
7953 echo >conftestdata_f
7954 if ln conftestdata_f conftestdata_t 2>/dev/null
7955 then
7956 acx_cv_prog_LN=ln
7957 else
7958 acx_cv_prog_LN=no
7960 rm -f conftestdata_f conftestdata_t
7963 if test $acx_cv_prog_LN = no; then
7964 LN="$LN_S"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7966 $as_echo "no, using $LN" >&6; }
7967 else
7968 LN="$acx_cv_prog_LN"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7970 $as_echo "yes" >&6; }
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test -n "$RANLIB"; then
7982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7995 done
7996 done
7997 IFS=$as_save_IFS
8001 RANLIB=$ac_cv_prog_RANLIB
8002 if test -n "$RANLIB"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8004 $as_echo "$RANLIB" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8012 if test -z "$ac_cv_prog_RANLIB"; then
8013 ac_ct_RANLIB=$RANLIB
8014 # Extract the first word of "ranlib", so it can be a program name with args.
8015 set dummy ranlib; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$ac_ct_RANLIB"; then
8022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_ac_ct_RANLIB="ranlib"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8042 if test -n "$ac_ct_RANLIB"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8044 $as_echo "$ac_ct_RANLIB" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8050 if test "x$ac_ct_RANLIB" = x; then
8051 RANLIB=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 RANLIB=$ac_ct_RANLIB
8061 else
8062 RANLIB="$ac_cv_prog_RANLIB"
8065 ranlib_flags=""
8068 # Find a good install program. We prefer a C program (faster),
8069 # so one script is as good as another. But avoid the broken or
8070 # incompatible versions:
8071 # SysV /etc/install, /usr/sbin/install
8072 # SunOS /usr/etc/install
8073 # IRIX /sbin/install
8074 # AIX /bin/install
8075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8077 # ./install, which can be erroneously created by make from ./install.sh.
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8079 $as_echo_n "checking for a BSD compatible install... " >&6; }
8080 if test -z "$INSTALL"; then
8081 if test "${ac_cv_path_install+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8085 for ac_dir in $PATH; do
8086 # Account for people who put trailing slashes in PATH elements.
8087 case "$ac_dir/" in
8088 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8090 # OSF1 and SCO ODT 3.0 have their own names for install.
8091 for ac_prog in ginstall scoinst install; do
8092 if test -f $ac_dir/$ac_prog; then
8093 if test $ac_prog = install &&
8094 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8095 # AIX install. It has an incompatible calling convention.
8096 # OSF/1 installbsd also uses dspmsg, but is usable.
8098 else
8099 ac_cv_path_install="$ac_dir/$ac_prog -c"
8100 break 2
8103 done
8105 esac
8106 done
8107 IFS="$ac_save_IFS"
8110 if test "${ac_cv_path_install+set}" = set; then
8111 INSTALL="$ac_cv_path_install"
8112 else
8113 # As a last resort, use the slow shell script. We don't cache a
8114 # path for INSTALL within a source directory, because that will
8115 # break other packages using the cache if that directory is
8116 # removed, or if the path is relative.
8117 INSTALL="$ac_install_sh"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8121 $as_echo "$INSTALL" >&6; }
8123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8124 # It thinks the first close brace ends the variable substitution.
8125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8130 # See if cmp has --ignore-initial.
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8132 $as_echo_n "checking for cmp's capabilities... " >&6; }
8133 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 echo abfoo >t1
8137 echo cdfoo >t2
8138 gcc_cv_prog_cmp_skip=slowcompare
8139 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8140 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8142 else
8143 gcc_cv_prog_cmp_skip=gnucompare
8146 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8147 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8148 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8150 else
8151 gcc_cv_prog_cmp_skip=fastcompare
8155 rm t1 t2
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8159 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8160 make_compare_target=$gcc_cv_prog_cmp_skip
8164 # See if we have the mktemp command.
8165 # Extract the first word of "mktemp", so it can be a program name with args.
8166 set dummy mktemp; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$have_mktemp_command"; then
8173 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_have_mktemp_command="yes"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8190 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8193 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8194 if test -n "$have_mktemp_command"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8196 $as_echo "$have_mktemp_command" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 # See if makeinfo has been installed and is modern enough
8205 # that we can use it.
8207 # Extract the first word of "makeinfo", so it can be a program name with args.
8208 set dummy makeinfo; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$MAKEINFO"; then
8215 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_MAKEINFO="makeinfo"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8230 IFS=$as_save_IFS
8234 MAKEINFO=$ac_cv_prog_MAKEINFO
8235 if test -n "$MAKEINFO"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8237 $as_echo "$MAKEINFO" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8244 if test -n "$MAKEINFO"; then
8245 # Found it, now check the version.
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8247 $as_echo_n "checking for modern makeinfo... " >&6; }
8248 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8252 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8254 case $ac_prog_version in
8255 '') gcc_cv_prog_makeinfo_modern=no;;
8256 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8257 *) gcc_cv_prog_makeinfo_modern=no;;
8258 esac
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8262 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8263 else
8264 gcc_cv_prog_makeinfo_modern=no
8266 if test $gcc_cv_prog_makeinfo_modern = no; then
8267 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8270 if test $gcc_cv_prog_makeinfo_modern = no; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8272 *** Makeinfo is missing or too old.
8273 *** Info documentation will not be built." >&5
8274 $as_echo "$as_me: WARNING:
8275 *** Makeinfo is missing or too old.
8276 *** Info documentation will not be built." >&2;}
8277 BUILD_INFO=
8278 else
8279 BUILD_INFO=info
8283 # Is pod2man recent enough to regenerate manpages?
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8285 $as_echo_n "checking for recent Pod::Man... " >&6; }
8286 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8289 GENERATED_MANPAGES=generated-manpages
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 GENERATED_MANPAGES=
8297 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8299 # How about lex?
8300 for ac_prog in flex
8302 # Extract the first word of "$ac_prog", so it can be a program name with args.
8303 set dummy $ac_prog; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_FLEX+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$FLEX"; then
8310 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_FLEX="$ac_prog"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8329 FLEX=$ac_cv_prog_FLEX
8330 if test -n "$FLEX"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8332 $as_echo "$FLEX" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8339 test -n "$FLEX" && break
8340 done
8341 test -n "$FLEX" || FLEX="$MISSING flex"
8344 # Bison?
8345 for ac_prog in bison
8347 # Extract the first word of "$ac_prog", so it can be a program name with args.
8348 set dummy $ac_prog; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_BISON+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$BISON"; then
8355 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_BISON="$ac_prog"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8370 IFS=$as_save_IFS
8374 BISON=$ac_cv_prog_BISON
8375 if test -n "$BISON"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8377 $as_echo "$BISON" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8384 test -n "$BISON" && break
8385 done
8386 test -n "$BISON" || BISON="$MISSING bison"
8389 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8390 # check for build == host before using them.
8392 # NM
8393 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8394 && test -d ../binutils ; then
8395 NM='${objdir}/../binutils/nm-new'
8396 else
8397 # Extract the first word of "nm", so it can be a program name with args.
8398 set dummy nm; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_NM+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$NM"; then
8405 ac_cv_prog_NM="$NM" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_NM="nm"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8422 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8425 NM=$ac_cv_prog_NM
8426 if test -n "$NM"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8428 $as_echo "$NM" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8437 # AR
8438 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8439 && test -d ../binutils ; then
8440 AR='${objdir}/../binutils/ar'
8441 else
8442 # Extract the first word of "ar", so it can be a program name with args.
8443 set dummy ar; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_AR+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 if test -n "$AR"; then
8450 ac_cv_prog_AR="$AR" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_AR="ar"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8463 done
8464 done
8465 IFS=$as_save_IFS
8467 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8470 AR=$ac_cv_prog_AR
8471 if test -n "$AR"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8473 $as_echo "$AR" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8482 # The jit documentation looks better if built with sphinx, but can be
8483 # built with texinfo if sphinx is not available.
8484 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8485 # Extract the first word of "sphinx-build", so it can be a program name with args.
8486 set dummy sphinx-build; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test -n "$doc_build_sys"; then
8493 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_prog_doc_build_sys="sphinx"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8506 done
8507 done
8508 IFS=$as_save_IFS
8510 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8513 doc_build_sys=$ac_cv_prog_doc_build_sys
8514 if test -n "$doc_build_sys"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8516 $as_echo "$doc_build_sys" >&6; }
8517 else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8524 # --------------------
8525 # Checks for C headers
8526 # --------------------
8528 # Need to reject headers which give warnings, so that the -Werror bootstrap
8529 # works later. *sigh* This needs to come before all header checks.
8531 ac_c_preproc_warn_flag=yes
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8534 $as_echo_n "checking for ANSI C header files... " >&6; }
8535 if test "${ac_cv_header_stdc+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <stdlib.h>
8541 #include <stdarg.h>
8542 #include <string.h>
8543 #include <float.h>
8546 main ()
8550 return 0;
8552 _ACEOF
8553 if ac_fn_cxx_try_compile "$LINENO"; then :
8554 ac_cv_header_stdc=yes
8555 else
8556 ac_cv_header_stdc=no
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 if test $ac_cv_header_stdc = yes; then
8561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 #include <string.h>
8566 _ACEOF
8567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8568 $EGREP "memchr" >/dev/null 2>&1; then :
8570 else
8571 ac_cv_header_stdc=no
8573 rm -f conftest*
8577 if test $ac_cv_header_stdc = yes; then
8578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <stdlib.h>
8583 _ACEOF
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585 $EGREP "free" >/dev/null 2>&1; then :
8587 else
8588 ac_cv_header_stdc=no
8590 rm -f conftest*
8594 if test $ac_cv_header_stdc = yes; then
8595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8596 if test "$cross_compiling" = yes; then :
8598 else
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 #include <ctype.h>
8602 #include <stdlib.h>
8603 #if ((' ' & 0x0FF) == 0x020)
8604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8606 #else
8607 # define ISLOWER(c) \
8608 (('a' <= (c) && (c) <= 'i') \
8609 || ('j' <= (c) && (c) <= 'r') \
8610 || ('s' <= (c) && (c) <= 'z'))
8611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8612 #endif
8614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8616 main ()
8618 int i;
8619 for (i = 0; i < 256; i++)
8620 if (XOR (islower (i), ISLOWER (i))
8621 || toupper (i) != TOUPPER (i))
8622 return 2;
8623 return 0;
8625 _ACEOF
8626 if ac_fn_cxx_try_run "$LINENO"; then :
8628 else
8629 ac_cv_header_stdc=no
8631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8632 conftest.$ac_objext conftest.beam conftest.$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8638 $as_echo "$ac_cv_header_stdc" >&6; }
8639 if test $ac_cv_header_stdc = yes; then
8641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8646 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8647 if test "${ac_cv_header_time+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <sys/types.h>
8653 #include <sys/time.h>
8654 #include <time.h>
8657 main ()
8659 if ((struct tm *) 0)
8660 return 0;
8662 return 0;
8664 _ACEOF
8665 if ac_fn_cxx_try_compile "$LINENO"; then :
8666 ac_cv_header_time=yes
8667 else
8668 ac_cv_header_time=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8673 $as_echo "$ac_cv_header_time" >&6; }
8674 if test $ac_cv_header_time = yes; then
8676 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8681 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8682 if test "${gcc_cv_header_string+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <string.h>
8688 #include <strings.h>
8690 main ()
8694 return 0;
8696 _ACEOF
8697 if ac_fn_cxx_try_compile "$LINENO"; then :
8698 gcc_cv_header_string=yes
8699 else
8700 gcc_cv_header_string=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8705 $as_echo "$gcc_cv_header_string" >&6; }
8706 if test $gcc_cv_header_string = yes; then
8708 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8713 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8714 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <sys/types.h>
8720 #include <sys/wait.h>
8721 #ifndef WEXITSTATUS
8722 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8723 #endif
8724 #ifndef WIFEXITED
8725 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8726 #endif
8729 main ()
8731 int s;
8732 wait (&s);
8733 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8735 return 0;
8737 _ACEOF
8738 if ac_fn_cxx_try_compile "$LINENO"; then :
8739 ac_cv_header_sys_wait_h=yes
8740 else
8741 ac_cv_header_sys_wait_h=no
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8746 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8747 if test $ac_cv_header_sys_wait_h = yes; then
8749 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8754 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8755 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/types.h>
8761 #include <termios.h>
8762 #ifdef TIOCGWINSZ
8764 #endif
8766 _ACEOF
8767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8768 $EGREP "yes" >/dev/null 2>&1; then :
8769 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8770 else
8771 ac_cv_sys_tiocgwinsz_in_termios_h=no
8773 rm -f conftest*
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8777 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8779 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8781 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8782 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 #include <sys/types.h>
8788 #include <sys/ioctl.h>
8789 #ifdef TIOCGWINSZ
8791 #endif
8793 _ACEOF
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "yes" >/dev/null 2>&1; then :
8796 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8797 else
8798 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8800 rm -f conftest*
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8804 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8806 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8808 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8813 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8814 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8815 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8816 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8817 do :
8818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8820 eval as_val=\$$as_ac_Header
8821 if test "x$as_val" = x""yes; then :
8822 cat >>confdefs.h <<_ACEOF
8823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8824 _ACEOF
8827 done
8830 # Check for thread headers.
8831 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8832 if test "x$ac_cv_header_thread_h" = x""yes; then :
8833 have_thread_h=yes
8834 else
8835 have_thread_h=
8838 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8839 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8840 have_pthread_h=yes
8841 else
8842 have_pthread_h=
8846 # These tests can't be done till we know if we have limits.h.
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8848 $as_echo_n "checking for CHAR_BIT... " >&6; }
8849 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #ifdef HAVE_LIMITS_H
8855 #include <limits.h>
8856 #endif
8857 #ifdef CHAR_BIT
8858 found
8859 #endif
8860 _ACEOF
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862 $EGREP "found" >/dev/null 2>&1; then :
8863 gcc_cv_decl_char_bit=yes
8864 else
8865 gcc_cv_decl_char_bit=no
8867 rm -f conftest*
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8872 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8873 if test $gcc_cv_decl_char_bit = no; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8875 $as_echo_n "checking number of bits in a byte... " >&6; }
8876 if test "${gcc_cv_c_nbby+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8880 gcc_cv_c_nbby=
8881 while test $i -lt 65; do
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8886 main ()
8888 switch(0) {
8889 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8890 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8893 return 0;
8895 _ACEOF
8896 if ac_fn_cxx_try_compile "$LINENO"; then :
8897 gcc_cv_c_nbby=$i; break
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 i=`expr $i + 1`
8901 done
8902 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8906 $as_echo "$gcc_cv_c_nbby" >&6; }
8907 if test $gcc_cv_c_nbby = failed; then
8908 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8909 else
8911 cat >>confdefs.h <<_ACEOF
8912 #define CHAR_BIT $gcc_cv_c_nbby
8913 _ACEOF
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8919 if test "${ac_cv_c_bigendian+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 ac_cv_c_bigendian=unknown
8923 # See if we're dealing with a universal compiler.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #ifndef __APPLE_CC__
8927 not a universal capable compiler
8928 #endif
8929 typedef int dummy;
8931 _ACEOF
8932 if ac_fn_cxx_try_compile "$LINENO"; then :
8934 # Check for potential -arch flags. It is not universal unless
8935 # there are at least two -arch flags with different values.
8936 ac_arch=
8937 ac_prev=
8938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8939 if test -n "$ac_prev"; then
8940 case $ac_word in
8941 i?86 | x86_64 | ppc | ppc64)
8942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8943 ac_arch=$ac_word
8944 else
8945 ac_cv_c_bigendian=universal
8946 break
8949 esac
8950 ac_prev=
8951 elif test "x$ac_word" = "x-arch"; then
8952 ac_prev=arch
8954 done
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 if test $ac_cv_c_bigendian = unknown; then
8958 # See if sys/param.h defines the BYTE_ORDER macro.
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 #include <sys/types.h>
8962 #include <sys/param.h>
8965 main ()
8967 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8969 && LITTLE_ENDIAN)
8970 bogus endian macros
8971 #endif
8974 return 0;
8976 _ACEOF
8977 if ac_fn_cxx_try_compile "$LINENO"; then :
8978 # It does; now see whether it defined to BIG_ENDIAN or not.
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 #include <sys/types.h>
8982 #include <sys/param.h>
8985 main ()
8987 #if BYTE_ORDER != BIG_ENDIAN
8988 not big endian
8989 #endif
8992 return 0;
8994 _ACEOF
8995 if ac_fn_cxx_try_compile "$LINENO"; then :
8996 ac_cv_c_bigendian=yes
8997 else
8998 ac_cv_c_bigendian=no
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 if test $ac_cv_c_bigendian = unknown; then
9005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 #include <limits.h>
9011 main ()
9013 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9014 bogus endian macros
9015 #endif
9018 return 0;
9020 _ACEOF
9021 if ac_fn_cxx_try_compile "$LINENO"; then :
9022 # It does; now see whether it defined to _BIG_ENDIAN or not.
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 #include <limits.h>
9028 main ()
9030 #ifndef _BIG_ENDIAN
9031 not big endian
9032 #endif
9035 return 0;
9037 _ACEOF
9038 if ac_fn_cxx_try_compile "$LINENO"; then :
9039 ac_cv_c_bigendian=yes
9040 else
9041 ac_cv_c_bigendian=no
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 if test $ac_cv_c_bigendian = unknown; then
9048 # Compile a test program.
9049 if test "$cross_compiling" = yes; then :
9050 # Try to guess by grepping values from an object file.
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 short int ascii_mm[] =
9054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9055 short int ascii_ii[] =
9056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9057 int use_ascii (int i) {
9058 return ascii_mm[i] + ascii_ii[i];
9060 short int ebcdic_ii[] =
9061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9062 short int ebcdic_mm[] =
9063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9064 int use_ebcdic (int i) {
9065 return ebcdic_mm[i] + ebcdic_ii[i];
9067 extern int foo;
9070 main ()
9072 return use_ascii (foo) == use_ebcdic (foo);
9074 return 0;
9076 _ACEOF
9077 if ac_fn_cxx_try_compile "$LINENO"; then :
9078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9079 ac_cv_c_bigendian=yes
9081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9082 if test "$ac_cv_c_bigendian" = unknown; then
9083 ac_cv_c_bigendian=no
9084 else
9085 # finding both strings is unlikely to happen, but who knows?
9086 ac_cv_c_bigendian=unknown
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 else
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 $ac_includes_default
9096 main ()
9099 /* Are we little or big endian? From Harbison&Steele. */
9100 union
9102 long int l;
9103 char c[sizeof (long int)];
9104 } u;
9105 u.l = 1;
9106 return u.c[sizeof (long int) - 1] == 1;
9109 return 0;
9111 _ACEOF
9112 if ac_fn_cxx_try_run "$LINENO"; then :
9113 ac_cv_c_bigendian=no
9114 else
9115 ac_cv_c_bigendian=yes
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9118 conftest.$ac_objext conftest.beam conftest.$ac_ext
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9124 $as_echo "$ac_cv_c_bigendian" >&6; }
9125 case $ac_cv_c_bigendian in #(
9126 yes)
9127 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9128 ;; #(
9130 ;; #(
9131 universal)
9133 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9135 ;; #(
9137 as_fn_error "unknown endianness
9138 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9139 esac
9142 # ----------------------
9143 # Checks for C++ headers
9144 # ----------------------
9146 ac_ext=cpp
9147 ac_cpp='$CXXCPP $CPPFLAGS'
9148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9152 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9153 if test -z "$CXXCPP"; then
9154 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 # Double quotes because CXXCPP needs to be expanded
9158 for CXXCPP in "$CXX -E" "/lib/cpp"
9160 ac_preproc_ok=false
9161 for ac_cxx_preproc_warn_flag in '' yes
9163 # Use a header file that comes with gcc, so configuring glibc
9164 # with a fresh cross-compiler works.
9165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9166 # <limits.h> exists even on freestanding compilers.
9167 # On the NeXT, cc -E runs the code through the compiler's parser,
9168 # not just through cpp. "Syntax error" is here to catch this case.
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 #ifdef __STDC__
9172 # include <limits.h>
9173 #else
9174 # include <assert.h>
9175 #endif
9176 Syntax error
9177 _ACEOF
9178 if ac_fn_cxx_try_cpp "$LINENO"; then :
9180 else
9181 # Broken: fails on valid input.
9182 continue
9184 rm -f conftest.err conftest.$ac_ext
9186 # OK, works on sane cases. Now check whether nonexistent headers
9187 # can be detected and how.
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 #include <ac_nonexistent.h>
9191 _ACEOF
9192 if ac_fn_cxx_try_cpp "$LINENO"; then :
9193 # Broken: success on invalid input.
9194 continue
9195 else
9196 # Passes both tests.
9197 ac_preproc_ok=:
9198 break
9200 rm -f conftest.err conftest.$ac_ext
9202 done
9203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9204 rm -f conftest.err conftest.$ac_ext
9205 if $ac_preproc_ok; then :
9206 break
9209 done
9210 ac_cv_prog_CXXCPP=$CXXCPP
9213 CXXCPP=$ac_cv_prog_CXXCPP
9214 else
9215 ac_cv_prog_CXXCPP=$CXXCPP
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9218 $as_echo "$CXXCPP" >&6; }
9219 ac_preproc_ok=false
9220 for ac_cxx_preproc_warn_flag in '' yes
9222 # Use a header file that comes with gcc, so configuring glibc
9223 # with a fresh cross-compiler works.
9224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 # <limits.h> exists even on freestanding compilers.
9226 # On the NeXT, cc -E runs the code through the compiler's parser,
9227 # not just through cpp. "Syntax error" is here to catch this case.
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #ifdef __STDC__
9231 # include <limits.h>
9232 #else
9233 # include <assert.h>
9234 #endif
9235 Syntax error
9236 _ACEOF
9237 if ac_fn_cxx_try_cpp "$LINENO"; then :
9239 else
9240 # Broken: fails on valid input.
9241 continue
9243 rm -f conftest.err conftest.$ac_ext
9245 # OK, works on sane cases. Now check whether nonexistent headers
9246 # can be detected and how.
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <ac_nonexistent.h>
9250 _ACEOF
9251 if ac_fn_cxx_try_cpp "$LINENO"; then :
9252 # Broken: success on invalid input.
9253 continue
9254 else
9255 # Passes both tests.
9256 ac_preproc_ok=:
9257 break
9259 rm -f conftest.err conftest.$ac_ext
9261 done
9262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9263 rm -f conftest.err conftest.$ac_ext
9264 if $ac_preproc_ok; then :
9266 else
9267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9270 See \`config.log' for more details." >&5
9271 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9272 See \`config.log' for more details." >&2;}; }
9275 ac_ext=cpp
9276 ac_cpp='$CXXCPP $CPPFLAGS'
9277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9282 for ac_header in unordered_map
9283 do :
9284 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9285 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9286 cat >>confdefs.h <<_ACEOF
9287 #define HAVE_UNORDERED_MAP 1
9288 _ACEOF
9291 done
9293 for ac_header in tr1/unordered_map
9294 do :
9295 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9296 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_TR1_UNORDERED_MAP 1
9299 _ACEOF
9302 done
9304 for ac_header in ext/hash_map
9305 do :
9306 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9307 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9308 cat >>confdefs.h <<_ACEOF
9309 #define HAVE_EXT_HASH_MAP 1
9310 _ACEOF
9313 done
9316 # --------
9317 # Dependency checking.
9318 # --------
9320 rm -rf .tst 2>/dev/null
9321 mkdir .tst 2>/dev/null
9322 if test -d .tst; then
9323 am__leading_dot=.
9324 else
9325 am__leading_dot=_
9327 rmdir .tst 2>/dev/null
9329 DEPDIR="${am__leading_dot}deps"
9331 ac_config_commands="$ac_config_commands depdir"
9334 ac_config_commands="$ac_config_commands gccdepdir"
9337 depcc="$CXX" am_compiler_list=
9339 am_depcomp=$ac_aux_dir/depcomp
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9341 $as_echo_n "checking dependency style of $depcc... " >&6; }
9342 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 if test -f "$am_depcomp"; then
9346 # We make a subdir and do the tests there. Otherwise we can end up
9347 # making bogus files that we don't know about and never remove. For
9348 # instance it was reported that on HP-UX the gcc test will end up
9349 # making a dummy file named `D' -- because `-MD' means `put the output
9350 # in D'.
9351 mkdir conftest.dir
9352 # Copy depcomp to subdir because otherwise we won't find it if we're
9353 # using a relative directory.
9354 cp "$am_depcomp" conftest.dir
9355 cd conftest.dir
9356 # We will build objects and dependencies in a subdirectory because
9357 # it helps to detect inapplicable dependency modes. For instance
9358 # both Tru64's cc and ICC support -MD to output dependencies as a
9359 # side effect of compilation, but ICC will put the dependencies in
9360 # the current directory while Tru64 will put them in the object
9361 # directory.
9362 mkdir sub
9364 am_cv_CXX_dependencies_compiler_type=none
9365 if test "$am_compiler_list" = ""; then
9366 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9368 for depmode in $am_compiler_list; do
9369 if test $depmode = none; then break; fi
9371 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9372 # Setup a source with many dependencies, because some compilers
9373 # like to wrap large dependency lists on column 80 (with \), and
9374 # we should not choose a depcomp mode which is confused by this.
9376 # We need to recreate these files for each test, as the compiler may
9377 # overwrite some of them when testing with obscure command lines.
9378 # This happens at least with the AIX C compiler.
9379 : > sub/conftest.c
9380 for i in 1 2 3 4 5 6; do
9381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9382 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9383 # Solaris 8's {/usr,}/bin/sh.
9384 touch sub/conftst$i.h
9385 done
9386 echo "include sub/conftest.Po" > confmf
9388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9389 # mode. It turns out that the SunPro C++ compiler does not properly
9390 # handle `-M -o', and we need to detect this.
9391 depcmd="depmode=$depmode \
9392 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9394 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9395 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9396 if env $depcmd > conftest.err 2>&1 &&
9397 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9398 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9399 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9400 # icc doesn't choke on unknown options, it will just issue warnings
9401 # or remarks (even with -Werror). So we grep stderr for any message
9402 # that says an option was ignored or not supported.
9403 # When given -MP, icc 7.0 and 7.1 complain thusly:
9404 # icc: Command line warning: ignoring option '-M'; no argument required
9405 # The diagnosis changed in icc 8.0:
9406 # icc: Command line remark: option '-MP' not supported
9407 if (grep 'ignoring option' conftest.err ||
9408 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9409 am_cv_CXX_dependencies_compiler_type=$depmode
9410 $as_echo "$as_me:$LINENO: success" >&5
9411 break
9414 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9415 sed -e 's/^/| /' < conftest.err >&5
9416 done
9418 cd ..
9419 rm -rf conftest.dir
9420 else
9421 am_cv_CXX_dependencies_compiler_type=none
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9426 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9427 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9428 then as_fn_error "no usable dependency style found" "$LINENO" 5
9429 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9434 # --------
9435 # UNSORTED
9436 # --------
9439 # These libraries may be used by collect2.
9440 # We may need a special search path to get them linked.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9442 $as_echo_n "checking for collect2 libraries... " >&6; }
9443 if test "${gcc_cv_collect2_libs+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 save_LIBS="$LIBS"
9447 for libs in '' -lld -lmld \
9448 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9449 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9451 LIBS="$libs"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 char ldopen ();
9463 main ()
9465 return ldopen ();
9467 return 0;
9469 _ACEOF
9470 if ac_fn_cxx_try_link "$LINENO"; then :
9471 gcc_cv_collect2_libs="$libs"; break
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 done
9476 LIBS="$save_LIBS"
9477 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9480 $as_echo "$gcc_cv_collect2_libs" >&6; }
9481 case $gcc_cv_collect2_libs in
9482 "none required") ;;
9483 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9484 esac
9487 # When building Ada code on Alpha, we need exc_resume which is usually in
9488 # -lexc. So test for it.
9489 save_LIBS="$LIBS"
9490 LIBS=
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9492 $as_echo_n "checking for library containing exc_resume... " >&6; }
9493 if test "${ac_cv_search_exc_resume+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 ac_func_search_save_LIBS=$LIBS
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char exc_resume ();
9508 main ()
9510 return exc_resume ();
9512 return 0;
9514 _ACEOF
9515 for ac_lib in '' exc; do
9516 if test -z "$ac_lib"; then
9517 ac_res="none required"
9518 else
9519 ac_res=-l$ac_lib
9520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9522 if ac_fn_cxx_try_link "$LINENO"; then :
9523 ac_cv_search_exc_resume=$ac_res
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext
9527 if test "${ac_cv_search_exc_resume+set}" = set; then :
9528 break
9530 done
9531 if test "${ac_cv_search_exc_resume+set}" = set; then :
9533 else
9534 ac_cv_search_exc_resume=no
9536 rm conftest.$ac_ext
9537 LIBS=$ac_func_search_save_LIBS
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9540 $as_echo "$ac_cv_search_exc_resume" >&6; }
9541 ac_res=$ac_cv_search_exc_resume
9542 if test "$ac_res" != no; then :
9543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9547 GNAT_LIBEXC="$LIBS"
9548 LIBS="$save_LIBS"
9551 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9552 save_LIBS="$LIBS"
9553 LIBS=
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9555 $as_echo_n "checking for library containing kstat_open... " >&6; }
9556 if test "${ac_cv_search_kstat_open+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 ac_func_search_save_LIBS=$LIBS
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char kstat_open ();
9571 main ()
9573 return kstat_open ();
9575 return 0;
9577 _ACEOF
9578 for ac_lib in '' kstat; do
9579 if test -z "$ac_lib"; then
9580 ac_res="none required"
9581 else
9582 ac_res=-l$ac_lib
9583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9585 if ac_fn_cxx_try_link "$LINENO"; then :
9586 ac_cv_search_kstat_open=$ac_res
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext
9590 if test "${ac_cv_search_kstat_open+set}" = set; then :
9591 break
9593 done
9594 if test "${ac_cv_search_kstat_open+set}" = set; then :
9596 else
9597 ac_cv_search_kstat_open=no
9599 rm conftest.$ac_ext
9600 LIBS=$ac_func_search_save_LIBS
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9603 $as_echo "$ac_cv_search_kstat_open" >&6; }
9604 ac_res=$ac_cv_search_kstat_open
9605 if test "$ac_res" != no; then :
9606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9610 EXTRA_GCC_LIBS="$LIBS"
9611 LIBS="$save_LIBS"
9614 # Some systems put ldexp and frexp in libm instead of libc; assume
9615 # they're both in the same place. jcf-dump needs them.
9616 save_LIBS="$LIBS"
9617 LIBS=
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9619 $as_echo_n "checking for library containing ldexp... " >&6; }
9620 if test "${ac_cv_search_ldexp+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 ac_func_search_save_LIBS=$LIBS
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char ldexp ();
9635 main ()
9637 return ldexp ();
9639 return 0;
9641 _ACEOF
9642 for ac_lib in '' m; do
9643 if test -z "$ac_lib"; then
9644 ac_res="none required"
9645 else
9646 ac_res=-l$ac_lib
9647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9649 if ac_fn_cxx_try_link "$LINENO"; then :
9650 ac_cv_search_ldexp=$ac_res
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext
9654 if test "${ac_cv_search_ldexp+set}" = set; then :
9655 break
9657 done
9658 if test "${ac_cv_search_ldexp+set}" = set; then :
9660 else
9661 ac_cv_search_ldexp=no
9663 rm conftest.$ac_ext
9664 LIBS=$ac_func_search_save_LIBS
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9667 $as_echo "$ac_cv_search_ldexp" >&6; }
9668 ac_res=$ac_cv_search_ldexp
9669 if test "$ac_res" != no; then :
9670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9674 LDEXP_LIB="$LIBS"
9675 LIBS="$save_LIBS"
9678 # Use <inttypes.h> only if it exists,
9679 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9680 # PRId64
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9682 $as_echo_n "checking for inttypes.h... " >&6; }
9683 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 #define __STDC_FORMAT_MACROS
9689 #include <sys/types.h>
9690 #include <inttypes.h>
9692 main ()
9694 intmax_t i = -1;
9695 #ifndef PRId64
9696 choke me
9697 #endif
9699 return 0;
9701 _ACEOF
9702 if ac_fn_cxx_try_compile "$LINENO"; then :
9703 gcc_cv_header_inttypes_h=yes
9704 else
9705 gcc_cv_header_inttypes_h=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9711 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9712 if test $gcc_cv_header_inttypes_h = yes; then
9714 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9720 for ac_func in times clock kill getrlimit setrlimit atoq \
9721 popen sysconf strsignal getrusage nl_langinfo \
9722 gettimeofday mbstowcs wcswidth mmap setlocale \
9723 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
9724 do :
9725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9726 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9727 eval as_val=\$$as_ac_var
9728 if test "x$as_val" = x""yes; then :
9729 cat >>confdefs.h <<_ACEOF
9730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9731 _ACEOF
9734 done
9737 if test x$ac_cv_func_mbstowcs = xyes; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9739 $as_echo_n "checking whether mbstowcs works... " >&6; }
9740 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 if test "$cross_compiling" = yes; then :
9744 gcc_cv_func_mbstowcs_works=yes
9745 else
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 #include <stdlib.h>
9749 int main()
9751 mbstowcs(0, "", 0);
9752 return 0;
9754 _ACEOF
9755 if ac_fn_cxx_try_run "$LINENO"; then :
9756 gcc_cv_func_mbstowcs_works=yes
9757 else
9758 gcc_cv_func_mbstowcs_works=no
9760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9761 conftest.$ac_objext conftest.beam conftest.$ac_ext
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9766 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9767 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9769 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9774 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9775 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9777 else
9779 cat >>confdefs.h <<_ACEOF
9780 #define ssize_t int
9781 _ACEOF
9785 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9786 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9788 else
9790 cat >>confdefs.h <<_ACEOF
9791 #define caddr_t char *
9792 _ACEOF
9798 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9799 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9800 gcc_header_sys_mman_h=yes
9801 else
9802 gcc_header_sys_mman_h=no
9805 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9806 if test "x$ac_cv_func_mmap" = x""yes; then :
9807 gcc_func_mmap=yes
9808 else
9809 gcc_func_mmap=no
9812 if test "$gcc_header_sys_mman_h" != yes \
9813 || test "$gcc_func_mmap" != yes; then
9814 gcc_cv_func_mmap_file=no
9815 gcc_cv_func_mmap_dev_zero=no
9816 gcc_cv_func_mmap_anon=no
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9819 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9820 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 # Add a system to this blacklist if
9824 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9825 # memory area containing the same data that you'd get if you applied
9826 # read() to the same fd. The only system known to have a problem here
9827 # is VMS, where text files have record structure.
9828 case "$host_os" in
9829 *vms* | ultrix*)
9830 gcc_cv_func_mmap_file=no ;;
9832 gcc_cv_func_mmap_file=yes;;
9833 esac
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9836 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9838 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9839 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 # Add a system to this blacklist if it has mmap() but /dev/zero
9843 # does not exist, or if mmapping /dev/zero does not give anonymous
9844 # zeroed pages with both the following properties:
9845 # 1. If you map N consecutive pages in with one call, and then
9846 # unmap any subset of those pages, the pages that were not
9847 # explicitly unmapped remain accessible.
9848 # 2. If you map two adjacent blocks of memory and then unmap them
9849 # both at once, they must both go away.
9850 # Systems known to be in this category are Windows (all variants),
9851 # VMS, and Darwin.
9852 case "$host_os" in
9853 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9854 gcc_cv_func_mmap_dev_zero=no ;;
9856 gcc_cv_func_mmap_dev_zero=yes;;
9857 esac
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9860 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9862 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9864 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9865 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <sys/types.h>
9871 #include <sys/mman.h>
9872 #include <unistd.h>
9874 #ifndef MAP_ANONYMOUS
9875 #define MAP_ANONYMOUS MAP_ANON
9876 #endif
9879 main ()
9881 int n = MAP_ANONYMOUS;
9883 return 0;
9885 _ACEOF
9886 if ac_fn_cxx_try_compile "$LINENO"; then :
9887 gcc_cv_decl_map_anon=yes
9888 else
9889 gcc_cv_decl_map_anon=no
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9894 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9896 if test $gcc_cv_decl_map_anon = no; then
9897 gcc_cv_func_mmap_anon=no
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9900 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9901 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9905 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9906 # doesn't give anonymous zeroed pages with the same properties listed
9907 # above for use of /dev/zero.
9908 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9909 case "$host_os" in
9910 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9911 gcc_cv_func_mmap_anon=no ;;
9913 gcc_cv_func_mmap_anon=yes;;
9914 esac
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9917 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9921 if test $gcc_cv_func_mmap_file = yes; then
9923 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9926 if test $gcc_cv_func_mmap_dev_zero = yes; then
9928 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9931 if test $gcc_cv_func_mmap_anon = yes; then
9933 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9938 case "${host}" in
9939 *-*-*vms*)
9940 # Under VMS, vfork works very differently than on Unix. The standard test
9941 # won't work, and it isn't easily adaptable. It makes more sense to
9942 # just force it.
9943 ac_cv_func_vfork_works=yes
9945 esac
9946 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9947 if test "x$ac_cv_type_pid_t" = x""yes; then :
9949 else
9951 cat >>confdefs.h <<_ACEOF
9952 #define pid_t int
9953 _ACEOF
9957 for ac_header in vfork.h
9958 do :
9959 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9960 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9961 cat >>confdefs.h <<_ACEOF
9962 #define HAVE_VFORK_H 1
9963 _ACEOF
9966 done
9968 for ac_func in fork vfork
9969 do :
9970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9972 eval as_val=\$$as_ac_var
9973 if test "x$as_val" = x""yes; then :
9974 cat >>confdefs.h <<_ACEOF
9975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 _ACEOF
9979 done
9981 if test "x$ac_cv_func_fork" = xyes; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9983 $as_echo_n "checking for working fork... " >&6; }
9984 if test "${ac_cv_func_fork_works+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 if test "$cross_compiling" = yes; then :
9988 ac_cv_func_fork_works=cross
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 $ac_includes_default
9994 main ()
9997 /* By Ruediger Kuhlmann. */
9998 return fork () < 0;
10001 return 0;
10003 _ACEOF
10004 if ac_fn_cxx_try_run "$LINENO"; then :
10005 ac_cv_func_fork_works=yes
10006 else
10007 ac_cv_func_fork_works=no
10009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10010 conftest.$ac_objext conftest.beam conftest.$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10015 $as_echo "$ac_cv_func_fork_works" >&6; }
10017 else
10018 ac_cv_func_fork_works=$ac_cv_func_fork
10020 if test "x$ac_cv_func_fork_works" = xcross; then
10021 case $host in
10022 *-*-amigaos* | *-*-msdosdjgpp*)
10023 # Override, as these systems have only a dummy fork() stub
10024 ac_cv_func_fork_works=no
10027 ac_cv_func_fork_works=yes
10029 esac
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10031 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10033 ac_cv_func_vfork_works=$ac_cv_func_vfork
10034 if test "x$ac_cv_func_vfork" = xyes; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10036 $as_echo_n "checking for working vfork... " >&6; }
10037 if test "${ac_cv_func_vfork_works+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 if test "$cross_compiling" = yes; then :
10041 ac_cv_func_vfork_works=cross
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 /* Thanks to Paul Eggert for this test. */
10046 $ac_includes_default
10047 #include <sys/wait.h>
10048 #ifdef HAVE_VFORK_H
10049 # include <vfork.h>
10050 #endif
10051 /* On some sparc systems, changes by the child to local and incoming
10052 argument registers are propagated back to the parent. The compiler
10053 is told about this with #include <vfork.h>, but some compilers
10054 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10055 static variable whose address is put into a register that is
10056 clobbered by the vfork. */
10057 static void
10058 #ifdef __cplusplus
10059 sparc_address_test (int arg)
10060 # else
10061 sparc_address_test (arg) int arg;
10062 #endif
10064 static pid_t child;
10065 if (!child) {
10066 child = vfork ();
10067 if (child < 0) {
10068 perror ("vfork");
10069 _exit(2);
10071 if (!child) {
10072 arg = getpid();
10073 write(-1, "", 0);
10074 _exit (arg);
10080 main ()
10082 pid_t parent = getpid ();
10083 pid_t child;
10085 sparc_address_test (0);
10087 child = vfork ();
10089 if (child == 0) {
10090 /* Here is another test for sparc vfork register problems. This
10091 test uses lots of local variables, at least as many local
10092 variables as main has allocated so far including compiler
10093 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10094 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10095 reuse the register of parent for one of the local variables,
10096 since it will think that parent can't possibly be used any more
10097 in this routine. Assigning to the local variable will thus
10098 munge parent in the parent process. */
10099 pid_t
10100 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10101 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10102 /* Convince the compiler that p..p7 are live; otherwise, it might
10103 use the same hardware register for all 8 local variables. */
10104 if (p != p1 || p != p2 || p != p3 || p != p4
10105 || p != p5 || p != p6 || p != p7)
10106 _exit(1);
10108 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10109 from child file descriptors. If the child closes a descriptor
10110 before it execs or exits, this munges the parent's descriptor
10111 as well. Test for this by closing stdout in the child. */
10112 _exit(close(fileno(stdout)) != 0);
10113 } else {
10114 int status;
10115 struct stat st;
10117 while (wait(&status) != child)
10119 return (
10120 /* Was there some problem with vforking? */
10121 child < 0
10123 /* Did the child fail? (This shouldn't happen.) */
10124 || status
10126 /* Did the vfork/compiler bug occur? */
10127 || parent != getpid()
10129 /* Did the file descriptor bug occur? */
10130 || fstat(fileno(stdout), &st) != 0
10134 _ACEOF
10135 if ac_fn_cxx_try_run "$LINENO"; then :
10136 ac_cv_func_vfork_works=yes
10137 else
10138 ac_cv_func_vfork_works=no
10140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10141 conftest.$ac_objext conftest.beam conftest.$ac_ext
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10146 $as_echo "$ac_cv_func_vfork_works" >&6; }
10149 if test "x$ac_cv_func_fork_works" = xcross; then
10150 ac_cv_func_vfork_works=$ac_cv_func_vfork
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10152 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10155 if test "x$ac_cv_func_vfork_works" = xyes; then
10157 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10159 else
10161 $as_echo "#define vfork fork" >>confdefs.h
10164 if test "x$ac_cv_func_fork_works" = xyes; then
10166 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10172 if test "X$prefix" = "XNONE"; then
10173 acl_final_prefix="$ac_default_prefix"
10174 else
10175 acl_final_prefix="$prefix"
10177 if test "X$exec_prefix" = "XNONE"; then
10178 acl_final_exec_prefix='${prefix}'
10179 else
10180 acl_final_exec_prefix="$exec_prefix"
10182 acl_save_prefix="$prefix"
10183 prefix="$acl_final_prefix"
10184 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10185 prefix="$acl_save_prefix"
10188 # Check whether --with-gnu-ld was given.
10189 if test "${with_gnu_ld+set}" = set; then :
10190 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10191 else
10192 with_gnu_ld=no
10195 # Prepare PATH_SEPARATOR.
10196 # The user is always right.
10197 if test "${PATH_SEPARATOR+set}" != set; then
10198 echo "#! /bin/sh" >conf$$.sh
10199 echo "exit 0" >>conf$$.sh
10200 chmod +x conf$$.sh
10201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10202 PATH_SEPARATOR=';'
10203 else
10204 PATH_SEPARATOR=:
10206 rm -f conf$$.sh
10208 ac_prog=ld
10209 if test "$GCC" = yes; then
10210 # Check if gcc -print-prog-name=ld gives a path.
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10212 $as_echo_n "checking for ld used by GCC... " >&6; }
10213 case $host in
10214 *-*-mingw*)
10215 # gcc leaves a trailing carriage return which upsets mingw
10216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10219 esac
10220 case $ac_prog in
10221 # Accept absolute paths.
10222 [\\/]* | [A-Za-z]:[\\/]*)
10223 re_direlt='/[^/][^/]*/\.\./'
10224 # Canonicalize the path of ld
10225 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10227 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10228 done
10229 test -z "$LD" && LD="$ac_prog"
10232 # If it fails, then pretend we aren't using GCC.
10233 ac_prog=ld
10236 # If it is relative, then search for the first ld in PATH.
10237 with_gnu_ld=unknown
10239 esac
10240 elif test "$with_gnu_ld" = yes; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10242 $as_echo_n "checking for GNU ld... " >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10245 $as_echo_n "checking for non-GNU ld... " >&6; }
10247 if test "${acl_cv_path_LD+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 if test -z "$LD"; then
10251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10252 for ac_dir in $PATH; do
10253 test -z "$ac_dir" && ac_dir=.
10254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10255 acl_cv_path_LD="$ac_dir/$ac_prog"
10256 # Check to see if the program is GNU ld. I'd rather use --version,
10257 # but apparently some GNU ld's only accept -v.
10258 # Break only if it was the GNU/non-GNU ld that we prefer.
10259 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10260 test "$with_gnu_ld" != no && break
10261 else
10262 test "$with_gnu_ld" != yes && break
10265 done
10266 IFS="$ac_save_ifs"
10267 else
10268 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10272 LD="$acl_cv_path_LD"
10273 if test -n "$LD"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10275 $as_echo "$LD" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10280 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10283 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10287 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10288 acl_cv_prog_gnu_ld=yes
10289 else
10290 acl_cv_prog_gnu_ld=no
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10294 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10295 with_gnu_ld=$acl_cv_prog_gnu_ld
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10300 $as_echo_n "checking for shared library run path origin... " >&6; }
10301 if test "${acl_cv_rpath+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10305 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10306 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10307 . ./conftest.sh
10308 rm -f ./conftest.sh
10309 acl_cv_rpath=done
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10313 $as_echo "$acl_cv_rpath" >&6; }
10314 wl="$acl_cv_wl"
10315 libext="$acl_cv_libext"
10316 shlibext="$acl_cv_shlibext"
10317 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10318 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10319 hardcode_direct="$acl_cv_hardcode_direct"
10320 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10321 # Check whether --enable-rpath was given.
10322 if test "${enable_rpath+set}" = set; then :
10323 enableval=$enable_rpath; :
10324 else
10325 enable_rpath=yes
10335 use_additional=yes
10337 acl_save_prefix="$prefix"
10338 prefix="$acl_final_prefix"
10339 acl_save_exec_prefix="$exec_prefix"
10340 exec_prefix="$acl_final_exec_prefix"
10342 eval additional_includedir=\"$includedir\"
10343 eval additional_libdir=\"$libdir\"
10345 exec_prefix="$acl_save_exec_prefix"
10346 prefix="$acl_save_prefix"
10349 # Check whether --with-libiconv-prefix was given.
10350 if test "${with_libiconv_prefix+set}" = set; then :
10351 withval=$with_libiconv_prefix;
10352 if test "X$withval" = "Xno"; then
10353 use_additional=no
10354 else
10355 if test "X$withval" = "X"; then
10357 acl_save_prefix="$prefix"
10358 prefix="$acl_final_prefix"
10359 acl_save_exec_prefix="$exec_prefix"
10360 exec_prefix="$acl_final_exec_prefix"
10362 eval additional_includedir=\"$includedir\"
10363 eval additional_libdir=\"$libdir\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
10368 else
10369 additional_includedir="$withval/include"
10370 additional_libdir="$withval/lib"
10376 LIBICONV=
10377 LTLIBICONV=
10378 INCICONV=
10379 rpathdirs=
10380 ltrpathdirs=
10381 names_already_handled=
10382 names_next_round='iconv '
10383 while test -n "$names_next_round"; do
10384 names_this_round="$names_next_round"
10385 names_next_round=
10386 for name in $names_this_round; do
10387 already_handled=
10388 for n in $names_already_handled; do
10389 if test "$n" = "$name"; then
10390 already_handled=yes
10391 break
10393 done
10394 if test -z "$already_handled"; then
10395 names_already_handled="$names_already_handled $name"
10396 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10397 eval value=\"\$HAVE_LIB$uppername\"
10398 if test -n "$value"; then
10399 if test "$value" = yes; then
10400 eval value=\"\$LIB$uppername\"
10401 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10402 eval value=\"\$LTLIB$uppername\"
10403 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10404 else
10407 else
10408 found_dir=
10409 found_la=
10410 found_so=
10411 found_a=
10412 if test $use_additional = yes; then
10413 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10414 found_dir="$additional_libdir"
10415 found_so="$additional_libdir/lib$name.$shlibext"
10416 if test -f "$additional_libdir/lib$name.la"; then
10417 found_la="$additional_libdir/lib$name.la"
10419 else
10420 if test -f "$additional_libdir/lib$name.$libext"; then
10421 found_dir="$additional_libdir"
10422 found_a="$additional_libdir/lib$name.$libext"
10423 if test -f "$additional_libdir/lib$name.la"; then
10424 found_la="$additional_libdir/lib$name.la"
10429 if test "X$found_dir" = "X"; then
10430 for x in $LDFLAGS $LTLIBICONV; do
10432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10436 eval x=\"$x\"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10440 case "$x" in
10441 -L*)
10442 dir=`echo "X$x" | sed -e 's/^X-L//'`
10443 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10444 found_dir="$dir"
10445 found_so="$dir/lib$name.$shlibext"
10446 if test -f "$dir/lib$name.la"; then
10447 found_la="$dir/lib$name.la"
10449 else
10450 if test -f "$dir/lib$name.$libext"; then
10451 found_dir="$dir"
10452 found_a="$dir/lib$name.$libext"
10453 if test -f "$dir/lib$name.la"; then
10454 found_la="$dir/lib$name.la"
10459 esac
10460 if test "X$found_dir" != "X"; then
10461 break
10463 done
10465 if test "X$found_dir" != "X"; then
10466 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10467 if test "X$found_so" != "X"; then
10468 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10470 else
10471 haveit=
10472 for x in $ltrpathdirs; do
10473 if test "X$x" = "X$found_dir"; then
10474 haveit=yes
10475 break
10477 done
10478 if test -z "$haveit"; then
10479 ltrpathdirs="$ltrpathdirs $found_dir"
10481 if test "$hardcode_direct" = yes; then
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10483 else
10484 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10486 haveit=
10487 for x in $rpathdirs; do
10488 if test "X$x" = "X$found_dir"; then
10489 haveit=yes
10490 break
10492 done
10493 if test -z "$haveit"; then
10494 rpathdirs="$rpathdirs $found_dir"
10496 else
10497 haveit=
10498 for x in $LDFLAGS $LIBICONV; do
10500 acl_save_prefix="$prefix"
10501 prefix="$acl_final_prefix"
10502 acl_save_exec_prefix="$exec_prefix"
10503 exec_prefix="$acl_final_exec_prefix"
10504 eval x=\"$x\"
10505 exec_prefix="$acl_save_exec_prefix"
10506 prefix="$acl_save_prefix"
10508 if test "X$x" = "X-L$found_dir"; then
10509 haveit=yes
10510 break
10512 done
10513 if test -z "$haveit"; then
10514 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10516 if test "$hardcode_minus_L" != no; then
10517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10518 else
10519 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10524 else
10525 if test "X$found_a" != "X"; then
10526 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10527 else
10528 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10531 additional_includedir=
10532 case "$found_dir" in
10533 */lib | */lib/)
10534 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10535 additional_includedir="$basedir/include"
10537 esac
10538 if test "X$additional_includedir" != "X"; then
10539 if test "X$additional_includedir" != "X/usr/include"; then
10540 haveit=
10541 if test "X$additional_includedir" = "X/usr/local/include"; then
10542 if test -n "$GCC"; then
10543 case $host_os in
10544 linux*) haveit=yes;;
10545 esac
10548 if test -z "$haveit"; then
10549 for x in $CPPFLAGS $INCICONV; do
10551 acl_save_prefix="$prefix"
10552 prefix="$acl_final_prefix"
10553 acl_save_exec_prefix="$exec_prefix"
10554 exec_prefix="$acl_final_exec_prefix"
10555 eval x=\"$x\"
10556 exec_prefix="$acl_save_exec_prefix"
10557 prefix="$acl_save_prefix"
10559 if test "X$x" = "X-I$additional_includedir"; then
10560 haveit=yes
10561 break
10563 done
10564 if test -z "$haveit"; then
10565 if test -d "$additional_includedir"; then
10566 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10572 if test -n "$found_la"; then
10573 save_libdir="$libdir"
10574 case "$found_la" in
10575 */* | *\\*) . "$found_la" ;;
10576 *) . "./$found_la" ;;
10577 esac
10578 libdir="$save_libdir"
10579 for dep in $dependency_libs; do
10580 case "$dep" in
10581 -L*)
10582 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10583 if test "X$additional_libdir" != "X/usr/lib"; then
10584 haveit=
10585 if test "X$additional_libdir" = "X/usr/local/lib"; then
10586 if test -n "$GCC"; then
10587 case $host_os in
10588 linux*) haveit=yes;;
10589 esac
10592 if test -z "$haveit"; then
10593 haveit=
10594 for x in $LDFLAGS $LIBICONV; do
10596 acl_save_prefix="$prefix"
10597 prefix="$acl_final_prefix"
10598 acl_save_exec_prefix="$exec_prefix"
10599 exec_prefix="$acl_final_exec_prefix"
10600 eval x=\"$x\"
10601 exec_prefix="$acl_save_exec_prefix"
10602 prefix="$acl_save_prefix"
10604 if test "X$x" = "X-L$additional_libdir"; then
10605 haveit=yes
10606 break
10608 done
10609 if test -z "$haveit"; then
10610 if test -d "$additional_libdir"; then
10611 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10614 haveit=
10615 for x in $LDFLAGS $LTLIBICONV; do
10617 acl_save_prefix="$prefix"
10618 prefix="$acl_final_prefix"
10619 acl_save_exec_prefix="$exec_prefix"
10620 exec_prefix="$acl_final_exec_prefix"
10621 eval x=\"$x\"
10622 exec_prefix="$acl_save_exec_prefix"
10623 prefix="$acl_save_prefix"
10625 if test "X$x" = "X-L$additional_libdir"; then
10626 haveit=yes
10627 break
10629 done
10630 if test -z "$haveit"; then
10631 if test -d "$additional_libdir"; then
10632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10638 -R*)
10639 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10640 if test "$enable_rpath" != no; then
10641 haveit=
10642 for x in $rpathdirs; do
10643 if test "X$x" = "X$dir"; then
10644 haveit=yes
10645 break
10647 done
10648 if test -z "$haveit"; then
10649 rpathdirs="$rpathdirs $dir"
10651 haveit=
10652 for x in $ltrpathdirs; do
10653 if test "X$x" = "X$dir"; then
10654 haveit=yes
10655 break
10657 done
10658 if test -z "$haveit"; then
10659 ltrpathdirs="$ltrpathdirs $dir"
10663 -l*)
10664 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10666 *.la)
10667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10670 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10673 esac
10674 done
10676 else
10677 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10682 done
10683 done
10684 if test "X$rpathdirs" != "X"; then
10685 if test -n "$hardcode_libdir_separator"; then
10686 alldirs=
10687 for found_dir in $rpathdirs; do
10688 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10689 done
10690 acl_save_libdir="$libdir"
10691 libdir="$alldirs"
10692 eval flag=\"$hardcode_libdir_flag_spec\"
10693 libdir="$acl_save_libdir"
10694 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10695 else
10696 for found_dir in $rpathdirs; do
10697 acl_save_libdir="$libdir"
10698 libdir="$found_dir"
10699 eval flag=\"$hardcode_libdir_flag_spec\"
10700 libdir="$acl_save_libdir"
10701 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10702 done
10705 if test "X$ltrpathdirs" != "X"; then
10706 for found_dir in $ltrpathdirs; do
10707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10708 done
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10718 $as_echo_n "checking for iconv... " >&6; }
10719 if test "${am_cv_func_iconv+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10723 am_cv_func_iconv="no, consider installing GNU libiconv"
10724 am_cv_lib_iconv=no
10725 am_save_CPPFLAGS="$CPPFLAGS"
10726 CPPFLAGS="$CPPFLAGS $INCICONV"
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #include <stdlib.h>
10730 #include <iconv.h>
10732 main ()
10734 iconv_t cd = iconv_open("","");
10735 iconv(cd,NULL,NULL,NULL,NULL);
10736 iconv_close(cd);
10738 return 0;
10740 _ACEOF
10741 if ac_fn_cxx_try_link "$LINENO"; then :
10742 am_cv_func_iconv=yes
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 CPPFLAGS="$am_save_CPPFLAGS"
10748 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10749 for _libs in .libs _libs; do
10750 am_save_CPPFLAGS="$CPPFLAGS"
10751 am_save_LIBS="$LIBS"
10752 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10753 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <stdlib.h>
10757 #include <iconv.h>
10759 main ()
10761 iconv_t cd = iconv_open("","");
10762 iconv(cd,NULL,NULL,NULL,NULL);
10763 iconv_close(cd);
10765 return 0;
10767 _ACEOF
10768 if ac_fn_cxx_try_link "$LINENO"; then :
10769 INCICONV="-I../libiconv/include"
10770 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10771 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10772 am_cv_lib_iconv=yes
10773 am_cv_func_iconv=yes
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 CPPFLAGS="$am_save_CPPFLAGS"
10778 LIBS="$am_save_LIBS"
10779 if test "$am_cv_func_iconv" = "yes"; then
10780 break
10782 done
10785 if test "$am_cv_func_iconv" != yes; then
10786 am_save_CPPFLAGS="$CPPFLAGS"
10787 am_save_LIBS="$LIBS"
10788 CPPFLAGS="$LIBS $INCICONV"
10789 LIBS="$LIBS $LIBICONV"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 #include <stdlib.h>
10793 #include <iconv.h>
10795 main ()
10797 iconv_t cd = iconv_open("","");
10798 iconv(cd,NULL,NULL,NULL,NULL);
10799 iconv_close(cd);
10801 return 0;
10803 _ACEOF
10804 if ac_fn_cxx_try_link "$LINENO"; then :
10805 am_cv_lib_iconv=yes
10806 am_cv_func_iconv=yes
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 CPPFLAGS="$am_save_CPPFLAGS"
10811 LIBS="$am_save_LIBS"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10816 $as_echo "$am_cv_func_iconv" >&6; }
10817 if test "$am_cv_func_iconv" = yes; then
10819 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10822 if test "$am_cv_lib_iconv" = yes; then
10824 for element in $INCICONV; do
10825 haveit=
10826 for x in $CPPFLAGS; do
10828 acl_save_prefix="$prefix"
10829 prefix="$acl_final_prefix"
10830 acl_save_exec_prefix="$exec_prefix"
10831 exec_prefix="$acl_final_exec_prefix"
10832 eval x=\"$x\"
10833 exec_prefix="$acl_save_exec_prefix"
10834 prefix="$acl_save_prefix"
10836 if test "X$x" = "X$element"; then
10837 haveit=yes
10838 break
10840 done
10841 if test -z "$haveit"; then
10842 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10844 done
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10847 $as_echo_n "checking how to link with libiconv... " >&6; }
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10849 $as_echo "$LIBICONV" >&6; }
10850 else
10851 LIBICONV=
10852 LTLIBICONV=
10857 if test "$am_cv_func_iconv" = yes; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10859 $as_echo_n "checking for iconv declaration... " >&6; }
10860 if test "${am_cv_proto_iconv+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 #include <stdlib.h>
10868 #include <iconv.h>
10869 extern
10870 #ifdef __cplusplus
10872 #endif
10873 #if defined(__STDC__) || defined(__cplusplus)
10874 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10875 #else
10876 size_t iconv();
10877 #endif
10880 main ()
10884 return 0;
10886 _ACEOF
10887 if ac_fn_cxx_try_compile "$LINENO"; then :
10888 am_cv_proto_iconv_arg1=""
10889 else
10890 am_cv_proto_iconv_arg1="const"
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 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);"
10896 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10898 }$am_cv_proto_iconv" >&5
10899 $as_echo "${ac_t:-
10900 }$am_cv_proto_iconv" >&6; }
10902 cat >>confdefs.h <<_ACEOF
10903 #define ICONV_CONST $am_cv_proto_iconv_arg1
10904 _ACEOF
10909 # Until we have in-tree GNU iconv:
10910 LIBICONV_DEP=
10911 if test -f "$LTLIBICONV"; then
10912 LIBICONV_DEP=$LTLIBICONV
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10918 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10919 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <locale.h>
10926 main ()
10928 return LC_MESSAGES
10930 return 0;
10932 _ACEOF
10933 if ac_fn_cxx_try_link "$LINENO"; then :
10934 am_cv_val_LC_MESSAGES=yes
10935 else
10936 am_cv_val_LC_MESSAGES=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10942 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10943 if test $am_cv_val_LC_MESSAGES = yes; then
10945 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10953 if test "${am_cv_langinfo_codeset+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 #include <langinfo.h>
10960 main ()
10962 char* cs = nl_langinfo(CODESET);
10964 return 0;
10966 _ACEOF
10967 if ac_fn_cxx_try_link "$LINENO"; then :
10968 am_cv_langinfo_codeset=yes
10969 else
10970 am_cv_langinfo_codeset=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10977 $as_echo "$am_cv_langinfo_codeset" >&6; }
10978 if test $am_cv_langinfo_codeset = yes; then
10980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10985 # We will need to find libiberty.h and ansidecl.h
10986 saved_CFLAGS="$CFLAGS"
10987 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10988 saved_CXXFLAGS="$CXXFLAGS"
10989 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10991 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10992 # normal autoconf function for these. But force definition of
10993 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10994 # basename handling in libiberty.h.
10995 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10996 #undef HAVE_DECL_BASENAME
10997 #define HAVE_DECL_BASENAME 1
10998 #include \"ansidecl.h\"
10999 #include \"system.h\"
11001 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
11002 ac_have_decl=1
11003 else
11004 ac_have_decl=0
11007 cat >>confdefs.h <<_ACEOF
11008 #define HAVE_DECL_BASENAME $ac_have_decl
11009 _ACEOF
11010 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11011 #undef HAVE_DECL_BASENAME
11012 #define HAVE_DECL_BASENAME 1
11013 #include \"ansidecl.h\"
11014 #include \"system.h\"
11016 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11017 ac_have_decl=1
11018 else
11019 ac_have_decl=0
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_DECL_STRSTR $ac_have_decl
11024 _ACEOF
11027 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11028 madvise stpcpy strnlen strsignal strverscmp \
11029 strtol strtoul strtoll strtoull setenv unsetenv \
11030 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11031 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
11033 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11035 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11036 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 #undef $ac_tr_decl
11042 #define $ac_tr_decl 1
11044 #include "ansidecl.h"
11045 #include "system.h"
11048 main ()
11050 #ifndef $ac_func
11051 char *(*pfn) = (char *(*)) $ac_func ;
11052 #endif
11054 return 0;
11056 _ACEOF
11057 if ac_fn_cxx_try_compile "$LINENO"; then :
11058 eval "gcc_cv_have_decl_$ac_func=yes"
11059 else
11060 eval "gcc_cv_have_decl_$ac_func=no"
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11068 #define $ac_tr_decl 1
11069 _ACEOF
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11074 #define $ac_tr_decl 0
11075 _ACEOF
11079 done
11082 for ac_func in getrlimit setrlimit getrusage
11084 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11086 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11087 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #undef $ac_tr_decl
11093 #define $ac_tr_decl 1
11095 #include "ansidecl.h"
11096 #include "system.h"
11097 #ifdef HAVE_SYS_RESOURCE_H
11098 #include <sys/resource.h>
11099 #endif
11103 main ()
11105 #ifndef $ac_func
11106 char *(*pfn) = (char *(*)) $ac_func ;
11107 #endif
11109 return 0;
11111 _ACEOF
11112 if ac_fn_cxx_try_compile "$LINENO"; then :
11113 eval "gcc_cv_have_decl_$ac_func=yes"
11114 else
11115 eval "gcc_cv_have_decl_$ac_func=no"
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11123 #define $ac_tr_decl 1
11124 _ACEOF
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11129 #define $ac_tr_decl 0
11130 _ACEOF
11134 done
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 #include "ansidecl.h"
11141 #include "system.h"
11142 #ifdef HAVE_SYS_RESOURCE_H
11143 #include <sys/resource.h>
11144 #endif
11147 main ()
11149 rlim_t l = 0;
11151 return 0;
11153 _ACEOF
11154 if ac_fn_cxx_try_compile "$LINENO"; then :
11156 else
11158 $as_echo "#define rlim_t long" >>confdefs.h
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11164 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11165 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11166 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11167 for ac_func in ldgetname
11169 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11171 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11172 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11177 #undef $ac_tr_decl
11178 #define $ac_tr_decl 1
11180 #include "ansidecl.h"
11181 #include "system.h"
11182 #ifdef HAVE_LDFCN_H
11183 #undef FREAD
11184 #undef FWRITE
11185 #include <ldfcn.h>
11186 #endif
11190 main ()
11192 #ifndef $ac_func
11193 char *(*pfn) = (char *(*)) $ac_func ;
11194 #endif
11196 return 0;
11198 _ACEOF
11199 if ac_fn_cxx_try_compile "$LINENO"; then :
11200 eval "gcc_cv_have_decl_$ac_func=yes"
11201 else
11202 eval "gcc_cv_have_decl_$ac_func=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11210 #define $ac_tr_decl 1
11211 _ACEOF
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11216 #define $ac_tr_decl 0
11217 _ACEOF
11221 done
11224 for ac_func in times
11226 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11229 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #undef $ac_tr_decl
11235 #define $ac_tr_decl 1
11237 #include "ansidecl.h"
11238 #include "system.h"
11239 #ifdef HAVE_SYS_TIMES_H
11240 #include <sys/times.h>
11241 #endif
11245 main ()
11247 #ifndef $ac_func
11248 char *(*pfn) = (char *(*)) $ac_func ;
11249 #endif
11251 return 0;
11253 _ACEOF
11254 if ac_fn_cxx_try_compile "$LINENO"; then :
11255 eval "gcc_cv_have_decl_$ac_func=yes"
11256 else
11257 eval "gcc_cv_have_decl_$ac_func=no"
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11265 #define $ac_tr_decl 1
11266 _ACEOF
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11271 #define $ac_tr_decl 0
11272 _ACEOF
11276 done
11279 for ac_func in sigaltstack
11281 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11283 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11284 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #undef $ac_tr_decl
11290 #define $ac_tr_decl 1
11292 #include "ansidecl.h"
11293 #include "system.h"
11294 #include <signal.h>
11298 main ()
11300 #ifndef $ac_func
11301 char *(*pfn) = (char *(*)) $ac_func ;
11302 #endif
11304 return 0;
11306 _ACEOF
11307 if ac_fn_cxx_try_compile "$LINENO"; then :
11308 eval "gcc_cv_have_decl_$ac_func=yes"
11309 else
11310 eval "gcc_cv_have_decl_$ac_func=no"
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11318 #define $ac_tr_decl 1
11319 _ACEOF
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11324 #define $ac_tr_decl 0
11325 _ACEOF
11329 done
11332 # More time-related stuff.
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11334 $as_echo_n "checking for struct tms... " >&6; }
11335 if test "${ac_cv_struct_tms+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include "ansidecl.h"
11343 #include "system.h"
11344 #ifdef HAVE_SYS_TIMES_H
11345 #include <sys/times.h>
11346 #endif
11349 main ()
11351 struct tms tms;
11353 return 0;
11355 _ACEOF
11356 if ac_fn_cxx_try_compile "$LINENO"; then :
11357 ac_cv_struct_tms=yes
11358 else
11359 ac_cv_struct_tms=no
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11364 $as_echo "$ac_cv_struct_tms" >&6; }
11365 if test $ac_cv_struct_tms = yes; then
11367 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11371 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11372 # revisit after autoconf 2.50.
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11374 $as_echo_n "checking for clock_t... " >&6; }
11375 if test "${gcc_cv_type_clock_t+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #include "ansidecl.h"
11383 #include "system.h"
11386 main ()
11388 clock_t x;
11390 return 0;
11392 _ACEOF
11393 if ac_fn_cxx_try_compile "$LINENO"; then :
11394 gcc_cv_type_clock_t=yes
11395 else
11396 gcc_cv_type_clock_t=no
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11401 $as_echo "$gcc_cv_type_clock_t" >&6; }
11402 if test $gcc_cv_type_clock_t = yes; then
11404 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11408 # Check if F_SETLKW is supported by fcntl.
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11410 $as_echo_n "checking for F_SETLKW... " >&6; }
11411 if test "${ac_cv_f_setlkw+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 #include <fcntl.h>
11420 main ()
11423 struct flock fl;
11424 fl.l_whence = 0;
11425 fl.l_start = 0;
11426 fl.l_len = 0;
11427 fl.l_pid = 0;
11428 return fcntl (1, F_SETLKW, &fl);
11430 return 0;
11432 _ACEOF
11433 if ac_fn_cxx_try_compile "$LINENO"; then :
11434 ac_cv_f_setlkw=yes
11435 else
11436 ac_cv_f_setlkw=no
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11441 $as_echo "$ac_cv_f_setlkw" >&6; }
11442 if test $ac_cv_f_setlkw = yes; then
11444 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11448 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11449 CFLAGS="$saved_CFLAGS"
11450 CXXFLAGS="$saved_CXXFLAGS"
11452 # mkdir takes a single argument on some systems.
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11454 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11455 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #include <sys/types.h>
11462 #ifdef HAVE_SYS_STAT_H
11463 # include <sys/stat.h>
11464 #endif
11465 #ifdef HAVE_UNISTD_H
11466 # include <unistd.h>
11467 #endif
11468 #ifdef HAVE_DIRECT_H
11469 # include <direct.h>
11470 #endif
11472 main ()
11474 mkdir ("foo", 0);
11476 return 0;
11478 _ACEOF
11479 if ac_fn_cxx_try_compile "$LINENO"; then :
11480 gcc_cv_mkdir_takes_one_arg=no
11481 else
11482 gcc_cv_mkdir_takes_one_arg=yes
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11487 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11488 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11490 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11495 # File extensions
11496 manext='.1'
11497 objext='.o'
11501 # With Setjmp/Longjmp based exception handling.
11502 # Check whether --enable-sjlj-exceptions was given.
11503 if test "${enable_sjlj_exceptions+set}" = set; then :
11504 enableval=$enable_sjlj_exceptions; case $target in
11505 *-*-hpux10*)
11506 if test $enableval != yes; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11508 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11509 enableval=yes
11512 esac
11513 force_sjlj_exceptions=yes
11514 else
11515 case $target in
11516 *-*-hpux10*)
11517 force_sjlj_exceptions=yes
11518 enableval=yes
11520 lm32*-*-*)
11521 force_sjlj_exceptions=yes
11522 enableval=yes
11525 force_sjlj_exceptions=no
11527 esac
11530 if test $force_sjlj_exceptions = yes; then
11531 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11533 cat >>confdefs.h <<_ACEOF
11534 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11535 _ACEOF
11539 # --------------------------------------------------------
11540 # Build, host, and target specific configuration fragments
11541 # --------------------------------------------------------
11543 # Collect build-machine-specific information.
11544 . ${srcdir}/config.build || exit 1
11546 # Collect host-machine-specific information.
11547 . ${srcdir}/config.host || exit 1
11549 target_gtfiles=
11551 # Collect target-machine-specific information.
11552 . ${srcdir}/config.gcc || exit 1
11554 extra_objs="${host_extra_objs} ${extra_objs}"
11555 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11557 # Default the target-machine variables that were not explicitly set.
11558 if test x"$tm_file" = x
11559 then tm_file=$cpu_type/$cpu_type.h; fi
11561 if test x"$extra_headers" = x
11562 then extra_headers=; fi
11564 if test x$md_file = x
11565 then md_file=$cpu_type/$cpu_type.md; fi
11567 if test x$out_file = x
11568 then out_file=$cpu_type/$cpu_type.c; fi
11570 if test x"$tmake_file" = x
11571 then tmake_file=$cpu_type/t-$cpu_type
11574 # Support --enable-initfini-array.
11575 if test x$enable_initfini_array != xno; then
11576 tm_file="${tm_file} initfini-array.h"
11579 if test x"$dwarf2" = xyes
11580 then tm_file="$tm_file tm-dwarf2.h"
11583 # Say what files are being used for the output code and MD file.
11584 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11585 echo "Using \`$srcdir/config/$md_file' as machine description file."
11587 # If any of the xm_file variables contain nonexistent files, warn
11588 # about them and drop them.
11591 for x in $build_xm_file; do
11592 if test -f $srcdir/config/$x
11593 then bx="$bx $x"
11594 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11595 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11597 done
11598 build_xm_file="$bx"
11601 for x in $host_xm_file; do
11602 if test -f $srcdir/config/$x
11603 then hx="$hx $x"
11604 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11605 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11607 done
11608 host_xm_file="$hx"
11611 for x in $xm_file; do
11612 if test -f $srcdir/config/$x
11613 then tx="$tx $x"
11614 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11615 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11617 done
11618 xm_file="$tx"
11620 count=a
11621 for f in $tm_file; do
11622 count=${count}x
11623 done
11624 if test $count = ax; then
11625 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11626 else
11627 echo "Using the following target machine macro files:"
11628 for f in $tm_file; do
11629 echo " $srcdir/config/$f"
11630 done
11633 if test x$use_long_long_for_widest_fast_int = xyes; then
11635 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11639 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11641 cat >>confdefs.h <<_ACEOF
11642 #define HAVE_GNU_LD $gnu_ld_bool
11643 _ACEOF
11646 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_GNU_AS $gnu_as_bool
11650 _ACEOF
11653 count=a
11654 for f in $host_xm_file; do
11655 count=${count}x
11656 done
11657 if test $count = a; then
11659 elif test $count = ax; then
11660 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11661 else
11662 echo "Using the following host machine macro files:"
11663 for f in $host_xm_file; do
11664 echo " $srcdir/config/$f"
11665 done
11667 echo "Using ${out_host_hook_obj} for host machine hooks."
11669 if test "$host_xm_file" != "$build_xm_file"; then
11670 count=a
11671 for f in $build_xm_file; do
11672 count=${count}x
11673 done
11674 if test $count = a; then
11676 elif test $count = ax; then
11677 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11678 else
11679 echo "Using the following build machine macro files:"
11680 for f in $build_xm_file; do
11681 echo " $srcdir/config/$f"
11682 done
11686 if test -n "$configured_native_system_header_dir"; then
11687 native_system_header_dir=$configured_native_system_header_dir
11689 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11692 case ${host} in
11693 powerpc*-*-darwin*)
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11695 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11696 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 #include <sys/cdefs.h>
11703 #include <sys/signal.h>
11704 #include <ucontext.h>
11705 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11707 _ACEOF
11708 if ac_fn_cxx_try_compile "$LINENO"; then :
11709 gcc_cv_mcontext_underscores=no
11710 else
11711 gcc_cv_mcontext_underscores=yes
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11716 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11717 if test $gcc_cv_mcontext_underscores = yes; then
11719 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11723 esac
11725 # ---------
11726 # Threading
11727 # ---------
11729 # Check if a valid thread package
11730 case ${enable_threads} in
11731 "" | no)
11732 # No threads
11733 target_thread_file='single'
11735 yes)
11736 # default
11737 target_thread_file='single'
11739 aix | dce | lynx | mipssde | posix | rtems | \
11740 single | tpf | vxworks | win32)
11741 target_thread_file=${enable_threads}
11744 echo "${enable_threads} is an unknown thread package" 1>&2
11745 exit 1
11747 esac
11749 if test x${thread_file} = x; then
11750 # No thread file set by target-specific clauses in config.gcc,
11751 # so use file chosen by default logic above
11752 thread_file=${target_thread_file}
11755 # --------
11756 # UNSORTED
11757 # --------
11759 use_cxa_atexit=no
11760 if test x$enable___cxa_atexit = xyes || \
11761 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11762 if test x$host = x$target; then
11763 case $host in
11764 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11765 # keyed to flag_use_cxa_atexit
11766 *-*-mingw32*)
11767 use_cxa_atexit=yes
11769 powerpc-ibm-aix*)
11770 use_cxa_atexit=yes
11773 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11774 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11775 use_cxa_atexit=yes
11776 else
11777 echo "__cxa_atexit can't be enabled on this target"
11781 esac
11782 else
11783 # We can't check for __cxa_atexit when building a cross, so assume
11784 # it is available
11785 use_cxa_atexit=yes
11787 if test x$use_cxa_atexit = xyes; then
11789 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11794 # Look for a file containing extra machine modes.
11795 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11796 extra_modes_file='$(srcdir)'/config/${extra_modes}
11799 cat >>confdefs.h <<_ACEOF
11800 #define EXTRA_MODES_FILE "config/$extra_modes"
11801 _ACEOF
11805 # Convert extra_options into a form suitable for Makefile use.
11806 extra_opt_files=
11807 all_opt_files=
11808 for f in $extra_options; do
11809 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11810 all_opt_files="$all_opt_files $srcdir/config/$f"
11811 done
11814 # auto-host.h is the file containing items generated by autoconf and is
11815 # the first file included by config.h.
11816 # If host=build, it is correct to have bconfig include auto-host.h
11817 # as well. If host!=build, we are in error and need to do more
11818 # work to find out the build config parameters.
11819 if test x$host = x$build
11820 then
11821 build_auto=auto-host.h
11822 else
11823 # We create a subdir, then run autoconf in the subdir.
11824 # To prevent recursion we set host and build for the new
11825 # invocation of configure to the build for this invocation
11826 # of configure.
11827 tempdir=build.$$
11828 rm -rf $tempdir
11829 mkdir $tempdir
11830 cd $tempdir
11831 case ${srcdir} in
11832 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11833 *) realsrcdir=../${srcdir};;
11834 esac
11835 # Clearing GMPINC is necessary to prevent host headers being
11836 # used by the build compiler. Defining GENERATOR_FILE stops
11837 # system.h from including gmp.h.
11838 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11839 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11840 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11841 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11842 ${realsrcdir}/configure \
11843 --enable-languages=${enable_languages-all} \
11844 --target=$target_alias --host=$build_alias --build=$build_alias
11846 # We just finished tests for the build machine, so rename
11847 # the file auto-build.h in the gcc directory.
11848 mv auto-host.h ../auto-build.h
11849 cd ..
11850 rm -rf $tempdir
11851 build_auto=auto-build.h
11855 tm_file="${tm_file} defaults.h"
11856 tm_p_file="${tm_p_file} tm-preds.h"
11857 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11858 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11859 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11860 # put this back in temporarily.
11861 xm_file="auto-host.h ansidecl.h ${xm_file}"
11863 # --------
11864 # UNSORTED
11865 # --------
11867 # Compile in configure arguments.
11868 if test -f configargs.h ; then
11869 # Being re-configured.
11870 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11871 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11872 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11873 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11875 else
11876 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11879 # Double all backslashes and backslash all quotes to turn
11880 # gcc_config_arguments into a C string.
11881 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11882 $gcc_config_arguments
11884 gcc_config_arguments_str=`cat conftest.out`
11885 rm -f conftest.out
11887 cat > configargs.h <<EOF
11888 /* Generated automatically. */
11889 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11890 static const char thread_model[] = "$thread_file";
11892 static const struct {
11893 const char *name, *value;
11894 } configure_default_options[] = $configure_default_options;
11897 gcc_BASEVER=`cat $srcdir/BASE-VER`
11898 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11899 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11900 if test -f $srcdir/REVISION ; then
11901 gcc_REVISION=`cat $srcdir/REVISION`
11902 else
11903 gcc_REVISION=""
11905 cat > plugin-version.h <<EOF
11906 #include "configargs.h"
11908 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11909 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11910 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11911 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11913 static char basever[] = "$gcc_BASEVER";
11914 static char datestamp[] = "$gcc_DATESTAMP";
11915 static char devphase[] = "$gcc_DEVPHASE";
11916 static char revision[] = "$gcc_REVISION";
11918 /* FIXME plugins: We should make the version information more precise.
11919 One way to do is to add a checksum. */
11921 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11922 devphase, revision,
11923 configuration_arguments};
11926 # Determine what GCC version number to use in filesystem paths.
11928 get_gcc_base_ver="cat"
11930 # Check whether --with-gcc-major-version-only was given.
11931 if test "${with_gcc_major_version_only+set}" = set; then :
11932 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11933 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11941 # Internationalization
11942 # If we haven't got the data from the intl directory,
11943 # assume NLS is disabled.
11944 USE_NLS=no
11945 LIBINTL=
11946 LIBINTL_DEP=
11947 INCINTL=
11948 XGETTEXT=
11949 GMSGFMT=
11950 POSUB=
11952 if test -f ../intl/config.intl; then
11953 . ../intl/config.intl
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11956 $as_echo_n "checking whether NLS is requested... " >&6; }
11957 if test x"$USE_NLS" != xyes; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962 $as_echo "yes" >&6; }
11964 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11968 $as_echo_n "checking for catalogs to be installed... " >&6; }
11969 # Look for .po and .gmo files in the source directory.
11970 CATALOGS=
11971 XLINGUAS=
11972 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11973 # If there aren't any .gmo files the shell will give us the
11974 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11975 # weeded out.
11976 case "$cat" in *\**)
11977 continue;;
11978 esac
11979 # The quadruple backslash is collapsed to a double backslash
11980 # by the backticks, then collapsed again by the double quotes,
11981 # leaving us with one backslash in the sed expression (right
11982 # before the dot that mustn't act as a wildcard).
11983 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11984 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11985 # The user is allowed to set LINGUAS to a list of languages to
11986 # install catalogs for. If it's empty that means "all of them."
11987 if test "x$LINGUAS" = x; then
11988 CATALOGS="$CATALOGS $cat"
11989 XLINGUAS="$XLINGUAS $lang"
11990 else
11991 case "$LINGUAS" in *$lang*)
11992 CATALOGS="$CATALOGS $cat"
11993 XLINGUAS="$XLINGUAS $lang"
11995 esac
11997 done
11998 LINGUAS="$XLINGUAS"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12000 $as_echo "$LINGUAS" >&6; }
12003 DATADIRNAME=share
12005 INSTOBJEXT=.mo
12007 GENCAT=gencat
12009 CATOBJEXT=.gmo
12013 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12014 # -liconv on the link line twice.
12015 case "$LIBINTL" in *$LIBICONV*)
12016 LIBICONV= ;;
12017 esac
12019 # Check whether --enable-secureplt was given.
12020 if test "${enable_secureplt+set}" = set; then :
12021 enableval=$enable_secureplt;
12025 # Check whether --enable-mingw-wildcard was given.
12026 if test "${enable_mingw_wildcard+set}" = set; then :
12027 enableval=$enable_mingw_wildcard;
12028 else
12029 enable_mingw_wildcard=platform
12032 if test x"$enable_mingw_wildcard" != xplatform ; then :
12034 cat >>confdefs.h <<_ACEOF
12035 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12036 _ACEOF
12040 # Check whether --enable-leading-mingw64-underscores was given.
12041 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12042 enableval=$enable_leading_mingw64_underscores;
12045 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12047 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12051 # Check whether --enable-cld was given.
12052 if test "${enable_cld+set}" = set; then :
12053 enableval=$enable_cld;
12054 else
12055 enable_cld=no
12059 # Check whether --enable-frame-pointer was given.
12060 if test "${enable_frame_pointer+set}" = set; then :
12061 enableval=$enable_frame_pointer;
12062 else
12064 case $target_os in
12065 linux* | darwin[8912]*)
12066 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12067 # DWARF2.
12068 enable_frame_pointer=no
12071 enable_frame_pointer=yes
12073 esac
12078 # Windows32 Registry support for specifying GCC installation paths.
12079 # Check whether --enable-win32-registry was given.
12080 if test "${enable_win32_registry+set}" = set; then :
12081 enableval=$enable_win32_registry;
12085 case $host_os in
12086 win32 | pe | cygwin* | mingw32*)
12087 if test "x$enable_win32_registry" != xno; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12089 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12090 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 ac_func_search_save_LIBS=$LIBS
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 char RegOpenKeyExA ();
12105 main ()
12107 return RegOpenKeyExA ();
12109 return 0;
12111 _ACEOF
12112 for ac_lib in '' advapi32; do
12113 if test -z "$ac_lib"; then
12114 ac_res="none required"
12115 else
12116 ac_res=-l$ac_lib
12117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12119 if ac_fn_cxx_try_link "$LINENO"; then :
12120 ac_cv_search_RegOpenKeyExA=$ac_res
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext
12124 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12125 break
12127 done
12128 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12130 else
12131 ac_cv_search_RegOpenKeyExA=no
12133 rm conftest.$ac_ext
12134 LIBS=$ac_func_search_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12137 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12138 ac_res=$ac_cv_search_RegOpenKeyExA
12139 if test "$ac_res" != no; then :
12140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12142 else
12143 enable_win32_registry=no
12148 if test "x$enable_win32_registry" != xno; then
12150 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12153 if test "x$enable_win32_registry" != xyes \
12154 && test "x$enable_win32_registry" != x; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12158 _ACEOF
12163 esac
12165 # Get an absolute path to the GCC top-level source directory
12166 holddir=`${PWDCMD-pwd}`
12167 cd $srcdir
12168 topdir=`${PWDCMD-pwd}`
12169 cd $holddir
12171 # Conditionalize the makefile for this host machine.
12172 xmake_file=
12173 for f in ${host_xmake_file}
12175 if test -f ${srcdir}/config/$f
12176 then
12177 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12179 done
12181 # Conditionalize the makefile for this target machine.
12182 tmake_file_=
12183 for f in ${tmake_file}
12185 if test -f ${srcdir}/config/$f
12186 then
12187 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12189 done
12190 tmake_file="${tmake_file_}"
12192 out_object_file=`basename $out_file .c`.o
12193 common_out_object_file=`basename $common_out_file .c`.o
12195 tm_file_list="options.h"
12196 tm_include_list="options.h insn-constants.h"
12197 for f in $tm_file; do
12198 case $f in
12199 ./* )
12200 f=`echo $f | sed 's/^..//'`
12201 tm_file_list="${tm_file_list} $f"
12202 tm_include_list="${tm_include_list} $f"
12204 defaults.h )
12205 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12206 tm_include_list="${tm_include_list} $f"
12209 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12210 tm_include_list="${tm_include_list} config/$f"
12212 esac
12213 done
12215 tm_p_file_list=
12216 tm_p_include_list=
12217 for f in $tm_p_file; do
12218 case $f in
12219 tm-preds.h )
12220 tm_p_file_list="${tm_p_file_list} $f"
12221 tm_p_include_list="${tm_p_include_list} $f"
12224 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12225 tm_p_include_list="${tm_p_include_list} config/$f"
12226 esac
12227 done
12229 xm_file_list=
12230 xm_include_list=
12231 for f in $xm_file; do
12232 case $f in
12233 ansidecl.h )
12234 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12235 xm_include_list="${xm_include_list} $f"
12237 auto-host.h )
12238 xm_file_list="${xm_file_list} $f"
12239 xm_include_list="${xm_include_list} $f"
12242 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12243 xm_include_list="${xm_include_list} config/$f"
12245 esac
12246 done
12248 host_xm_file_list=
12249 host_xm_include_list=
12250 for f in $host_xm_file; do
12251 case $f in
12252 ansidecl.h )
12253 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12254 host_xm_include_list="${host_xm_include_list} $f"
12256 auto-host.h )
12257 host_xm_file_list="${host_xm_file_list} $f"
12258 host_xm_include_list="${host_xm_include_list} $f"
12261 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12262 host_xm_include_list="${host_xm_include_list} config/$f"
12264 esac
12265 done
12267 build_xm_file_list=
12268 for f in $build_xm_file; do
12269 case $f in
12270 ansidecl.h )
12271 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12272 build_xm_include_list="${build_xm_include_list} $f"
12274 auto-build.h | auto-host.h )
12275 build_xm_file_list="${build_xm_file_list} $f"
12276 build_xm_include_list="${build_xm_include_list} $f"
12279 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12280 build_xm_include_list="${build_xm_include_list} config/$f"
12282 esac
12283 done
12285 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12286 # cross-compiler which does not use the native headers and libraries.
12287 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12288 CROSS=
12289 ALL=all.internal
12290 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12291 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12293 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12294 test x$build != x$host || test "x$with_build_sysroot" != x; then
12295 if test "x$with_build_sysroot" != x; then
12296 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12297 else
12298 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12301 if test x$host != x$target
12302 then
12303 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12304 ALL=all.cross
12305 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12306 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12307 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12310 if test "x$with_build_sysroot" != "x"; then
12311 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12312 elif test "x$with_sysroot" = x; then
12313 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12314 elif test "x$with_sysroot" = xyes; then
12315 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12316 else
12317 target_header_dir="${with_sysroot}${native_system_header_dir}"
12319 else
12320 target_header_dir=${native_system_header_dir}
12323 # If this is a cross-compiler that does not
12324 # have its own set of headers then define
12325 # inhibit_libc
12327 # If this is using newlib, without having the headers available now,
12328 # then define inhibit_libc in LIBGCC2_CFLAGS.
12329 # This prevents libgcc2 from containing any code which requires libc
12330 # support.
12331 : ${inhibit_libc=false}
12332 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12333 test x$with_newlib = xyes ; } &&
12334 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12335 inhibit_libc=true
12339 # When building gcc with a cross-compiler, we need to adjust things so
12340 # that the generator programs are still built with the native compiler.
12341 # Also, we cannot run fixincludes.
12343 # These are the normal (build=host) settings:
12344 CC_FOR_BUILD='$(CC)'
12345 CXX_FOR_BUILD='$(CXX)'
12346 BUILD_CFLAGS='$(ALL_CFLAGS)'
12347 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12348 BUILD_LDFLAGS='$(LDFLAGS)'
12349 STMP_FIXINC=stmp-fixinc
12351 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12352 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12354 # And these apply if build != host, or we are generating coverage data
12355 if test x$build != x$host || test "x$coverage_flags" != x
12356 then
12357 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12358 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12359 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12361 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12362 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12363 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12364 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12369 # Expand extra_headers to include complete path.
12370 # This substitutes for lots of t-* files.
12371 extra_headers_list=
12372 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12373 for file in ${extra_headers} ; do
12374 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12375 done
12377 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12378 if test x"$use_gcc_tgmath" = xyes
12379 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12382 # Define collect2 in Makefile.
12383 case $host_can_use_collect2 in
12384 no) collect2= ;;
12385 *) collect2='collect2$(exeext)' ;;
12386 esac
12389 # Add a definition of USE_COLLECT2 if system wants one.
12390 case $use_collect2 in
12391 no) use_collect2= ;;
12392 "") ;;
12394 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12395 xm_defines="${xm_defines} USE_COLLECT2"
12396 case $host_can_use_collect2 in
12398 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12400 esac
12402 esac
12405 cat >>confdefs.h <<_ACEOF
12406 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12407 _ACEOF
12410 # ---------------------------
12411 # Assembler & linker features
12412 # ---------------------------
12414 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12415 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12416 # However when ld-new is first executed from the build tree, libtool will
12417 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12418 # to the build tree. While doing this we need to use the previous-stage
12419 # linker, or we have an infinite loop. The presence of a shell script as
12420 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12421 # the gcc/collect-ld script. So we need to know how libtool works, or
12422 # exec-tool will fail.
12425 case `pwd` in
12426 *\ * | *\ *)
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12428 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12429 esac
12433 macro_version='2.2.7a'
12434 macro_revision='1.3134'
12448 ltmain="$ac_aux_dir/ltmain.sh"
12450 # Backslashify metacharacters that are still active within
12451 # double-quoted strings.
12452 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12454 # Same as above, but do not quote variable references.
12455 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12457 # Sed substitution to delay expansion of an escaped shell variable in a
12458 # double_quote_subst'ed string.
12459 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12461 # Sed substitution to delay expansion of an escaped single quote.
12462 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12464 # Sed substitution to avoid accidental globbing in evaled expressions
12465 no_glob_subst='s/\*/\\\*/g'
12467 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12468 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12469 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12472 $as_echo_n "checking how to print strings... " >&6; }
12473 # Test print first, because it will be a builtin if present.
12474 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12475 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12476 ECHO='print -r --'
12477 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12478 ECHO='printf %s\n'
12479 else
12480 # Use this function as a fallback that always works.
12481 func_fallback_echo ()
12483 eval 'cat <<_LTECHO_EOF
12485 _LTECHO_EOF'
12487 ECHO='func_fallback_echo'
12490 # func_echo_all arg...
12491 # Invoke $ECHO with all args, space-separated.
12492 func_echo_all ()
12494 $ECHO ""
12497 case "$ECHO" in
12498 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12499 $as_echo "printf" >&6; } ;;
12500 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12501 $as_echo "print -r" >&6; } ;;
12502 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12503 $as_echo "cat" >&6; } ;;
12504 esac
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12520 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12521 if test "${ac_cv_path_SED+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12525 for ac_i in 1 2 3 4 5 6 7; do
12526 ac_script="$ac_script$as_nl$ac_script"
12527 done
12528 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12529 { ac_script=; unset ac_script;}
12530 if test -z "$SED"; then
12531 ac_path_SED_found=false
12532 # Loop through the user's path and test for each of PROGNAME-LIST
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_prog in sed gsed; do
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12541 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12542 # Check for GNU ac_path_SED and select it if it is found.
12543 # Check for GNU $ac_path_SED
12544 case `"$ac_path_SED" --version 2>&1` in
12545 *GNU*)
12546 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12548 ac_count=0
12549 $as_echo_n 0123456789 >"conftest.in"
12550 while :
12552 cat "conftest.in" "conftest.in" >"conftest.tmp"
12553 mv "conftest.tmp" "conftest.in"
12554 cp "conftest.in" "conftest.nl"
12555 $as_echo '' >> "conftest.nl"
12556 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12558 as_fn_arith $ac_count + 1 && ac_count=$as_val
12559 if test $ac_count -gt ${ac_path_SED_max-0}; then
12560 # Best one so far, save it but keep looking for a better one
12561 ac_cv_path_SED="$ac_path_SED"
12562 ac_path_SED_max=$ac_count
12564 # 10*(2^10) chars as input seems more than enough
12565 test $ac_count -gt 10 && break
12566 done
12567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12568 esac
12570 $ac_path_SED_found && break 3
12571 done
12572 done
12573 done
12574 IFS=$as_save_IFS
12575 if test -z "$ac_cv_path_SED"; then
12576 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12578 else
12579 ac_cv_path_SED=$SED
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12584 $as_echo "$ac_cv_path_SED" >&6; }
12585 SED="$ac_cv_path_SED"
12586 rm -f conftest.sed
12588 test -z "$SED" && SED=sed
12589 Xsed="$SED -e 1s/^X//"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12602 $as_echo_n "checking for fgrep... " >&6; }
12603 if test "${ac_cv_path_FGREP+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12607 then ac_cv_path_FGREP="$GREP -F"
12608 else
12609 if test -z "$FGREP"; then
12610 ac_path_FGREP_found=false
12611 # Loop through the user's path and test for each of PROGNAME-LIST
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_prog in fgrep; do
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12620 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12621 # Check for GNU ac_path_FGREP and select it if it is found.
12622 # Check for GNU $ac_path_FGREP
12623 case `"$ac_path_FGREP" --version 2>&1` in
12624 *GNU*)
12625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12627 ac_count=0
12628 $as_echo_n 0123456789 >"conftest.in"
12629 while :
12631 cat "conftest.in" "conftest.in" >"conftest.tmp"
12632 mv "conftest.tmp" "conftest.in"
12633 cp "conftest.in" "conftest.nl"
12634 $as_echo 'FGREP' >> "conftest.nl"
12635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12637 as_fn_arith $ac_count + 1 && ac_count=$as_val
12638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12639 # Best one so far, save it but keep looking for a better one
12640 ac_cv_path_FGREP="$ac_path_FGREP"
12641 ac_path_FGREP_max=$ac_count
12643 # 10*(2^10) chars as input seems more than enough
12644 test $ac_count -gt 10 && break
12645 done
12646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12647 esac
12649 $ac_path_FGREP_found && break 3
12650 done
12651 done
12652 done
12653 IFS=$as_save_IFS
12654 if test -z "$ac_cv_path_FGREP"; then
12655 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12657 else
12658 ac_cv_path_FGREP=$FGREP
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12664 $as_echo "$ac_cv_path_FGREP" >&6; }
12665 FGREP="$ac_cv_path_FGREP"
12668 test -z "$GREP" && GREP=grep
12688 # Check whether --with-gnu-ld was given.
12689 if test "${with_gnu_ld+set}" = set; then :
12690 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12691 else
12692 with_gnu_ld=no
12695 ac_prog=ld
12696 if test "$GCC" = yes; then
12697 # Check if gcc -print-prog-name=ld gives a path.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12699 $as_echo_n "checking for ld used by $CC... " >&6; }
12700 case $host in
12701 *-*-mingw*)
12702 # gcc leaves a trailing carriage return which upsets mingw
12703 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12705 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12706 esac
12707 case $ac_prog in
12708 # Accept absolute paths.
12709 [\\/]* | ?:[\\/]*)
12710 re_direlt='/[^/][^/]*/\.\./'
12711 # Canonicalize the pathname of ld
12712 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12713 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12714 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12715 done
12716 test -z "$LD" && LD="$ac_prog"
12719 # If it fails, then pretend we aren't using GCC.
12720 ac_prog=ld
12723 # If it is relative, then search for the first ld in PATH.
12724 with_gnu_ld=unknown
12726 esac
12727 elif test "$with_gnu_ld" = yes; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12729 $as_echo_n "checking for GNU ld... " >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12732 $as_echo_n "checking for non-GNU ld... " >&6; }
12734 if test "${lt_cv_path_LD+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 if test -z "$LD"; then
12738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12739 for ac_dir in $PATH; do
12740 IFS="$lt_save_ifs"
12741 test -z "$ac_dir" && ac_dir=.
12742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12743 lt_cv_path_LD="$ac_dir/$ac_prog"
12744 # Check to see if the program is GNU ld. I'd rather use --version,
12745 # but apparently some variants of GNU ld only accept -v.
12746 # Break only if it was the GNU/non-GNU ld that we prefer.
12747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12748 *GNU* | *'with BFD'*)
12749 test "$with_gnu_ld" != no && break
12752 test "$with_gnu_ld" != yes && break
12754 esac
12756 done
12757 IFS="$lt_save_ifs"
12758 else
12759 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12763 LD="$lt_cv_path_LD"
12764 if test -n "$LD"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12766 $as_echo "$LD" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12771 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12774 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12778 case `$LD -v 2>&1 </dev/null` in
12779 *GNU* | *'with BFD'*)
12780 lt_cv_prog_gnu_ld=yes
12783 lt_cv_prog_gnu_ld=no
12785 esac
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12789 with_gnu_ld=$lt_cv_prog_gnu_ld
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12800 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12801 if test "${lt_cv_path_NM+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test -n "$NM"; then
12805 # Let the user override the test.
12806 lt_cv_path_NM="$NM"
12807 else
12808 lt_nm_to_check="${ac_tool_prefix}nm"
12809 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12810 lt_nm_to_check="$lt_nm_to_check nm"
12812 for lt_tmp_nm in $lt_nm_to_check; do
12813 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12814 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12815 IFS="$lt_save_ifs"
12816 test -z "$ac_dir" && ac_dir=.
12817 tmp_nm="$ac_dir/$lt_tmp_nm"
12818 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12819 # Check to see if the nm accepts a BSD-compat flag.
12820 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12821 # nm: unknown option "B" ignored
12822 # Tru64's nm complains that /dev/null is an invalid object file
12823 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12824 */dev/null* | *'Invalid file or object type'*)
12825 lt_cv_path_NM="$tmp_nm -B"
12826 break
12829 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12830 */dev/null*)
12831 lt_cv_path_NM="$tmp_nm -p"
12832 break
12835 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12836 continue # so that we can try to find one that supports BSD flags
12838 esac
12840 esac
12842 done
12843 IFS="$lt_save_ifs"
12844 done
12845 : ${lt_cv_path_NM=no}
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12849 $as_echo "$lt_cv_path_NM" >&6; }
12850 if test "$lt_cv_path_NM" != "no"; then
12851 NM="$lt_cv_path_NM"
12852 else
12853 # Didn't find any BSD compatible name lister, look for dumpbin.
12854 if test -n "$DUMPBIN"; then :
12855 # Let the user override the test.
12856 else
12857 if test -n "$ac_tool_prefix"; then
12858 for ac_prog in dumpbin "link -dump"
12860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863 $as_echo_n "checking for $ac_word... " >&6; }
12864 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 if test -n "$DUMPBIN"; then
12868 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12869 else
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12877 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 break 2
12881 done
12882 done
12883 IFS=$as_save_IFS
12887 DUMPBIN=$ac_cv_prog_DUMPBIN
12888 if test -n "$DUMPBIN"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12890 $as_echo "$DUMPBIN" >&6; }
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12897 test -n "$DUMPBIN" && break
12898 done
12900 if test -z "$DUMPBIN"; then
12901 ac_ct_DUMPBIN=$DUMPBIN
12902 for ac_prog in dumpbin "link -dump"
12904 # Extract the first word of "$ac_prog", so it can be a program name with args.
12905 set dummy $ac_prog; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -n "$ac_ct_DUMPBIN"; then
12912 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12925 done
12926 done
12927 IFS=$as_save_IFS
12931 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12932 if test -n "$ac_ct_DUMPBIN"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12934 $as_echo "$ac_ct_DUMPBIN" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12941 test -n "$ac_ct_DUMPBIN" && break
12942 done
12944 if test "x$ac_ct_DUMPBIN" = x; then
12945 DUMPBIN=":"
12946 else
12947 case $cross_compiling:$ac_tool_warned in
12948 yes:)
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12951 ac_tool_warned=yes ;;
12952 esac
12953 DUMPBIN=$ac_ct_DUMPBIN
12957 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12958 *COFF*)
12959 DUMPBIN="$DUMPBIN -symbols"
12962 DUMPBIN=:
12964 esac
12967 if test "$DUMPBIN" != ":"; then
12968 NM="$DUMPBIN"
12971 test -z "$NM" && NM=nm
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12979 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12980 if test "${lt_cv_nm_interface+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 lt_cv_nm_interface="BSD nm"
12984 echo "int some_variable = 0;" > conftest.$ac_ext
12985 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12986 (eval "$ac_compile" 2>conftest.err)
12987 cat conftest.err >&5
12988 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12989 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12990 cat conftest.err >&5
12991 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12992 cat conftest.out >&5
12993 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12994 lt_cv_nm_interface="MS dumpbin"
12996 rm -f conftest*
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12999 $as_echo "$lt_cv_nm_interface" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13002 $as_echo_n "checking whether ln -s works... " >&6; }
13003 LN_S=$as_ln_s
13004 if test "$LN_S" = "ln -s"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13006 $as_echo "yes" >&6; }
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13009 $as_echo "no, using $LN_S" >&6; }
13012 # find the maximum length of command line arguments
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13019 teststring="ABCD"
13021 case $build_os in
13022 msdosdjgpp*)
13023 # On DJGPP, this test can blow up pretty badly due to problems in libc
13024 # (any single argument exceeding 2000 bytes causes a buffer overrun
13025 # during glob expansion). Even if it were fixed, the result of this
13026 # check would be larger than it should be.
13027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13030 gnu*)
13031 # Under GNU Hurd, this test is not required because there is
13032 # no limit to the length of command line arguments.
13033 # Libtool will interpret -1 as no limit whatsoever
13034 lt_cv_sys_max_cmd_len=-1;
13037 cygwin* | mingw* | cegcc*)
13038 # On Win9x/ME, this test blows up -- it succeeds, but takes
13039 # about 5 minutes as the teststring grows exponentially.
13040 # Worse, since 9x/ME are not pre-emptively multitasking,
13041 # you end up with a "frozen" computer, even though with patience
13042 # the test eventually succeeds (with a max line length of 256k).
13043 # Instead, let's just punt: use the minimum linelength reported by
13044 # all of the supported platforms: 8192 (on NT/2K/XP).
13045 lt_cv_sys_max_cmd_len=8192;
13048 mint*)
13049 # On MiNT this can take a long time and run out of memory.
13050 lt_cv_sys_max_cmd_len=8192;
13053 amigaos*)
13054 # On AmigaOS with pdksh, this test takes hours, literally.
13055 # So we just punt and use a minimum line length of 8192.
13056 lt_cv_sys_max_cmd_len=8192;
13059 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13060 # This has been around since 386BSD, at least. Likely further.
13061 if test -x /sbin/sysctl; then
13062 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13063 elif test -x /usr/sbin/sysctl; then
13064 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13065 else
13066 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13068 # And add a safety zone
13069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13073 interix*)
13074 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13075 lt_cv_sys_max_cmd_len=196608
13078 osf*)
13079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13081 # nice to cause kernel panics so lets avoid the loop below.
13082 # First set a reasonable default.
13083 lt_cv_sys_max_cmd_len=16384
13085 if test -x /sbin/sysconfig; then
13086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13087 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13088 esac
13091 sco3.2v5*)
13092 lt_cv_sys_max_cmd_len=102400
13094 sysv5* | sco5v6* | sysv4.2uw2*)
13095 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13096 if test -n "$kargmax"; then
13097 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13098 else
13099 lt_cv_sys_max_cmd_len=32768
13103 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13104 if test -n "$lt_cv_sys_max_cmd_len"; then
13105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13107 else
13108 # Make teststring a little bigger before we do anything with it.
13109 # a 1K string should be a reasonable start.
13110 for i in 1 2 3 4 5 6 7 8 ; do
13111 teststring=$teststring$teststring
13112 done
13113 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13114 # If test is not a shell built-in, we'll probably end up computing a
13115 # maximum length that is only half of the actual maximum length, but
13116 # we can't tell.
13117 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13118 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13119 test $i != 17 # 1/2 MB should be enough
13121 i=`expr $i + 1`
13122 teststring=$teststring$teststring
13123 done
13124 # Only check the string length outside the loop.
13125 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13126 teststring=
13127 # Add a significant safety factor because C++ compilers can tack on
13128 # massive amounts of additional arguments before passing them to the
13129 # linker. It appears as though 1/2 is a usable value.
13130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13133 esac
13137 if test -n $lt_cv_sys_max_cmd_len ; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13139 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13142 $as_echo "none" >&6; }
13144 max_cmd_len=$lt_cv_sys_max_cmd_len
13151 : ${CP="cp -f"}
13152 : ${MV="mv -f"}
13153 : ${RM="rm -f"}
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13156 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13157 # Try some XSI features
13158 xsi_shell=no
13159 ( _lt_dummy="a/b/c"
13160 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13161 = c,a/b,, \
13162 && eval 'test $(( 1 + 1 )) -eq 2 \
13163 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13164 && xsi_shell=yes
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13166 $as_echo "$xsi_shell" >&6; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13170 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13171 lt_shell_append=no
13172 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13173 >/dev/null 2>&1 \
13174 && lt_shell_append=yes
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13176 $as_echo "$lt_shell_append" >&6; }
13179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13180 lt_unset=unset
13181 else
13182 lt_unset=false
13189 # test EBCDIC or ASCII
13190 case `echo X|tr X '\101'` in
13191 A) # ASCII based system
13192 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13193 lt_SP2NL='tr \040 \012'
13194 lt_NL2SP='tr \015\012 \040\040'
13196 *) # EBCDIC based system
13197 lt_SP2NL='tr \100 \n'
13198 lt_NL2SP='tr \r\n \100\100'
13200 esac
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13211 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13212 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 lt_cv_ld_reload_flag='-r'
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13218 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13219 reload_flag=$lt_cv_ld_reload_flag
13220 case $reload_flag in
13221 "" | " "*) ;;
13222 *) reload_flag=" $reload_flag" ;;
13223 esac
13224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13225 case $host_os in
13226 darwin*)
13227 if test "$GCC" = yes; then
13228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13229 else
13230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13233 esac
13243 if test -n "$ac_tool_prefix"; then
13244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13245 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247 $as_echo_n "checking for $ac_word... " >&6; }
13248 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 if test -n "$OBJDUMP"; then
13252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13253 else
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13265 done
13266 done
13267 IFS=$as_save_IFS
13271 OBJDUMP=$ac_cv_prog_OBJDUMP
13272 if test -n "$OBJDUMP"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13274 $as_echo "$OBJDUMP" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13282 if test -z "$ac_cv_prog_OBJDUMP"; then
13283 ac_ct_OBJDUMP=$OBJDUMP
13284 # Extract the first word of "objdump", so it can be a program name with args.
13285 set dummy objdump; ac_word=$2
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287 $as_echo_n "checking for $ac_word... " >&6; }
13288 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 if test -n "$ac_ct_OBJDUMP"; then
13292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13293 else
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13301 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 break 2
13305 done
13306 done
13307 IFS=$as_save_IFS
13311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13312 if test -n "$ac_ct_OBJDUMP"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13314 $as_echo "$ac_ct_OBJDUMP" >&6; }
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13320 if test "x$ac_ct_OBJDUMP" = x; then
13321 OBJDUMP="false"
13322 else
13323 case $cross_compiling:$ac_tool_warned in
13324 yes:)
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13327 ac_tool_warned=yes ;;
13328 esac
13329 OBJDUMP=$ac_ct_OBJDUMP
13331 else
13332 OBJDUMP="$ac_cv_prog_OBJDUMP"
13335 test -z "$OBJDUMP" && OBJDUMP=objdump
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13346 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13347 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 lt_cv_file_magic_cmd='$MAGIC_CMD'
13351 lt_cv_file_magic_test_file=
13352 lt_cv_deplibs_check_method='unknown'
13353 # Need to set the preceding variable on all platforms that support
13354 # interlibrary dependencies.
13355 # 'none' -- dependencies not supported.
13356 # `unknown' -- same as none, but documents that we really don't know.
13357 # 'pass_all' -- all dependencies passed with no checks.
13358 # 'test_compile' -- check by making test program.
13359 # 'file_magic [[regex]]' -- check by looking for files in library path
13360 # which responds to the $file_magic_cmd with a given extended regex.
13361 # If you have `file' or equivalent on your system and you're not sure
13362 # whether `pass_all' will *always* work, you probably want this one.
13364 case $host_os in
13365 aix[4-9]*)
13366 lt_cv_deplibs_check_method=pass_all
13369 beos*)
13370 lt_cv_deplibs_check_method=pass_all
13373 bsdi[45]*)
13374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13375 lt_cv_file_magic_cmd='/usr/bin/file -L'
13376 lt_cv_file_magic_test_file=/shlib/libc.so
13379 cygwin*)
13380 # func_win32_libid is a shell function defined in ltmain.sh
13381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13382 lt_cv_file_magic_cmd='func_win32_libid'
13385 mingw* | pw32*)
13386 # Base MSYS/MinGW do not provide the 'file' command needed by
13387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13388 # unless we find 'file', for example because we are cross-compiling.
13389 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13390 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13392 lt_cv_file_magic_cmd='func_win32_libid'
13393 else
13394 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13395 lt_cv_file_magic_cmd='$OBJDUMP -f'
13399 cegcc*)
13400 # use the weaker test based on 'objdump'. See mingw*.
13401 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13402 lt_cv_file_magic_cmd='$OBJDUMP -f'
13405 darwin* | rhapsody*)
13406 lt_cv_deplibs_check_method=pass_all
13409 freebsd* | dragonfly*)
13410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13411 case $host_cpu in
13412 i*86 )
13413 # Not sure whether the presence of OpenBSD here was a mistake.
13414 # Let's accept both of them until this is cleared up.
13415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13416 lt_cv_file_magic_cmd=/usr/bin/file
13417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13419 esac
13420 else
13421 lt_cv_deplibs_check_method=pass_all
13425 gnu*)
13426 lt_cv_deplibs_check_method=pass_all
13429 haiku*)
13430 lt_cv_deplibs_check_method=pass_all
13433 hpux10.20* | hpux11*)
13434 lt_cv_file_magic_cmd=/usr/bin/file
13435 case $host_cpu in
13436 ia64*)
13437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13440 hppa*64*)
13441 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]'
13442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13448 esac
13451 interix[3-9]*)
13452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13456 irix5* | irix6* | nonstopux*)
13457 case $LD in
13458 *-32|*"-32 ") libmagic=32-bit;;
13459 *-n32|*"-n32 ") libmagic=N32;;
13460 *-64|*"-64 ") libmagic=64-bit;;
13461 *) libmagic=never-match;;
13462 esac
13463 lt_cv_deplibs_check_method=pass_all
13466 # This must be Linux ELF.
13467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13468 lt_cv_deplibs_check_method=pass_all
13471 netbsd*)
13472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13474 else
13475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13479 newos6*)
13480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13481 lt_cv_file_magic_cmd=/usr/bin/file
13482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13485 *nto* | *qnx*)
13486 lt_cv_deplibs_check_method=pass_all
13489 openbsd*)
13490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13492 else
13493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13497 osf3* | osf4* | osf5*)
13498 lt_cv_deplibs_check_method=pass_all
13501 rdos*)
13502 lt_cv_deplibs_check_method=pass_all
13505 solaris*)
13506 lt_cv_deplibs_check_method=pass_all
13509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13510 lt_cv_deplibs_check_method=pass_all
13513 sysv4 | sysv4.3*)
13514 case $host_vendor in
13515 motorola)
13516 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]'
13517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13519 ncr)
13520 lt_cv_deplibs_check_method=pass_all
13522 sequent)
13523 lt_cv_file_magic_cmd='/bin/file'
13524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13526 sni)
13527 lt_cv_file_magic_cmd='/bin/file'
13528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13529 lt_cv_file_magic_test_file=/lib/libc.so
13531 siemens)
13532 lt_cv_deplibs_check_method=pass_all
13535 lt_cv_deplibs_check_method=pass_all
13537 esac
13540 tpf*)
13541 lt_cv_deplibs_check_method=pass_all
13543 esac
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13547 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13548 file_magic_cmd=$lt_cv_file_magic_cmd
13549 deplibs_check_method=$lt_cv_deplibs_check_method
13550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13563 if test -n "$ac_tool_prefix"; then
13564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13565 set dummy ${ac_tool_prefix}ar; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567 $as_echo_n "checking for $ac_word... " >&6; }
13568 if test "${ac_cv_prog_AR+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 if test -n "$AR"; then
13572 ac_cv_prog_AR="$AR" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_prog_AR="${ac_tool_prefix}ar"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13585 done
13586 done
13587 IFS=$as_save_IFS
13591 AR=$ac_cv_prog_AR
13592 if test -n "$AR"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13594 $as_echo "$AR" >&6; }
13595 else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13602 if test -z "$ac_cv_prog_AR"; then
13603 ac_ct_AR=$AR
13604 # Extract the first word of "ar", so it can be a program name with args.
13605 set dummy ar; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 if test -n "$ac_ct_AR"; then
13612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13617 IFS=$as_save_IFS
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_ac_ct_AR="ar"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13623 break 2
13625 done
13626 done
13627 IFS=$as_save_IFS
13631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13632 if test -n "$ac_ct_AR"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13634 $as_echo "$ac_ct_AR" >&6; }
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13640 if test "x$ac_ct_AR" = x; then
13641 AR="false"
13642 else
13643 case $cross_compiling:$ac_tool_warned in
13644 yes:)
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13647 ac_tool_warned=yes ;;
13648 esac
13649 AR=$ac_ct_AR
13651 else
13652 AR="$ac_cv_prog_AR"
13655 test -z "$AR" && AR=ar
13656 test -z "$AR_FLAGS" && AR_FLAGS=cru
13668 if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13670 set dummy ${ac_tool_prefix}strip; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if test "${ac_cv_prog_STRIP+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 if test -n "$STRIP"; then
13677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13690 done
13691 done
13692 IFS=$as_save_IFS
13696 STRIP=$ac_cv_prog_STRIP
13697 if test -n "$STRIP"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13699 $as_echo "$STRIP" >&6; }
13700 else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13707 if test -z "$ac_cv_prog_STRIP"; then
13708 ac_ct_STRIP=$STRIP
13709 # Extract the first word of "strip", so it can be a program name with args.
13710 set dummy strip; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712 $as_echo_n "checking for $ac_word... " >&6; }
13713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 if test -n "$ac_ct_STRIP"; then
13717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13726 ac_cv_prog_ac_ct_STRIP="strip"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13730 done
13731 done
13732 IFS=$as_save_IFS
13736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13737 if test -n "$ac_ct_STRIP"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13739 $as_echo "$ac_ct_STRIP" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13745 if test "x$ac_ct_STRIP" = x; then
13746 STRIP=":"
13747 else
13748 case $cross_compiling:$ac_tool_warned in
13749 yes:)
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752 ac_tool_warned=yes ;;
13753 esac
13754 STRIP=$ac_ct_STRIP
13756 else
13757 STRIP="$ac_cv_prog_STRIP"
13760 test -z "$STRIP" && STRIP=:
13767 if test -n "$ac_tool_prefix"; then
13768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771 $as_echo_n "checking for $ac_word... " >&6; }
13772 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 if test -n "$RANLIB"; then
13776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13777 else
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 break 2
13789 done
13790 done
13791 IFS=$as_save_IFS
13795 RANLIB=$ac_cv_prog_RANLIB
13796 if test -n "$RANLIB"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13798 $as_echo "$RANLIB" >&6; }
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13806 if test -z "$ac_cv_prog_RANLIB"; then
13807 ac_ct_RANLIB=$RANLIB
13808 # Extract the first word of "ranlib", so it can be a program name with args.
13809 set dummy ranlib; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 if test -n "$ac_ct_RANLIB"; then
13816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825 ac_cv_prog_ac_ct_RANLIB="ranlib"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13829 done
13830 done
13831 IFS=$as_save_IFS
13835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13836 if test -n "$ac_ct_RANLIB"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13838 $as_echo "$ac_ct_RANLIB" >&6; }
13839 else
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13844 if test "x$ac_ct_RANLIB" = x; then
13845 RANLIB=":"
13846 else
13847 case $cross_compiling:$ac_tool_warned in
13848 yes:)
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13851 ac_tool_warned=yes ;;
13852 esac
13853 RANLIB=$ac_ct_RANLIB
13855 else
13856 RANLIB="$ac_cv_prog_RANLIB"
13859 test -z "$RANLIB" && RANLIB=:
13866 # Determine commands to create old-style static archives.
13867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13868 old_postinstall_cmds='chmod 644 $oldlib'
13869 old_postuninstall_cmds=
13871 if test -n "$RANLIB"; then
13872 case $host_os in
13873 openbsd*)
13874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13877 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13879 esac
13880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13883 case $host_os in
13884 darwin*)
13885 lock_old_archive_extraction=yes ;;
13887 lock_old_archive_extraction=no ;;
13888 esac
13928 # If no C compiler was specified, use CC.
13929 LTCC=${LTCC-"$CC"}
13931 # If no C compiler flags were specified, use CFLAGS.
13932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13934 # Allow CC to be a program name with arguments.
13935 compiler=$CC
13938 # Check for command to grab the raw symbol name followed by C symbol from nm.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13940 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13945 # These are sane defaults that work on at least a few old systems.
13946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13948 # Character class describing NM global symbol codes.
13949 symcode='[BCDEGRST]'
13951 # Regexp to match symbols that can be accessed directly from C.
13952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13954 # Define system-specific variables.
13955 case $host_os in
13956 aix*)
13957 symcode='[BCDT]'
13959 cygwin* | mingw* | pw32* | cegcc*)
13960 symcode='[ABCDGISTW]'
13962 hpux*)
13963 if test "$host_cpu" = ia64; then
13964 symcode='[ABCDEGRST]'
13967 irix* | nonstopux*)
13968 symcode='[BCDEGRST]'
13970 osf*)
13971 symcode='[BCDEGQRST]'
13973 solaris*)
13974 symcode='[BDRT]'
13976 sco3.2v5*)
13977 symcode='[DT]'
13979 sysv4.2uw2*)
13980 symcode='[DT]'
13982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13983 symcode='[ABDT]'
13985 sysv4)
13986 symcode='[DFNSTU]'
13988 esac
13990 # If we're using GNU nm, then use its standard symbol codes.
13991 case `$NM -V 2>&1` in
13992 *GNU* | *'with BFD'*)
13993 symcode='[ABCDGIRSTW]' ;;
13994 esac
13996 # Transform an extracted symbol line into a proper C declaration.
13997 # Some systems (esp. on ia64) link data and code symbols differently,
13998 # so use this general approach.
13999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14001 # Transform an extracted symbol line into symbol name and symbol address
14002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14003 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'"
14005 # Handle CRLF in mingw tool chain
14006 opt_cr=
14007 case $build_os in
14008 mingw*)
14009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14011 esac
14013 # Try without a prefix underscore, then with it.
14014 for ac_symprfx in "" "_"; do
14016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14017 symxfrm="\\1 $ac_symprfx\\2 \\2"
14019 # Write the raw and C identifiers.
14020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14021 # Fake it for dumpbin and say T for any non-static function
14022 # and D for any global variable.
14023 # Also find C++ and __fastcall symbols from MSVC++,
14024 # which start with @ or ?.
14025 lt_cv_sys_global_symbol_pipe="$AWK '"\
14026 " {last_section=section; section=\$ 3};"\
14027 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14028 " \$ 0!~/External *\|/{next};"\
14029 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14030 " {if(hide[section]) next};"\
14031 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14032 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14033 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14034 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14035 " ' prfx=^$ac_symprfx"
14036 else
14037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14040 # Check to see that the pipe works correctly.
14041 pipe_works=no
14043 rm -f conftest*
14044 cat > conftest.$ac_ext <<_LT_EOF
14045 #ifdef __cplusplus
14046 extern "C" {
14047 #endif
14048 char nm_test_var;
14049 void nm_test_func(void);
14050 void nm_test_func(void){}
14051 #ifdef __cplusplus
14053 #endif
14054 int main(){nm_test_var='a';nm_test_func();return(0);}
14055 _LT_EOF
14057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14058 (eval $ac_compile) 2>&5
14059 ac_status=$?
14060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061 test $ac_status = 0; }; then
14062 # Now try to grab the symbols.
14063 nlist=conftest.nm
14064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14066 ac_status=$?
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068 test $ac_status = 0; } && test -s "$nlist"; then
14069 # Try sorting and uniquifying the output.
14070 if sort "$nlist" | uniq > "$nlist"T; then
14071 mv -f "$nlist"T "$nlist"
14072 else
14073 rm -f "$nlist"T
14076 # Make sure that we snagged all the symbols we need.
14077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14079 cat <<_LT_EOF > conftest.$ac_ext
14080 #ifdef __cplusplus
14081 extern "C" {
14082 #endif
14084 _LT_EOF
14085 # Now generate the symbol file.
14086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14088 cat <<_LT_EOF >> conftest.$ac_ext
14090 /* The mapping between symbol names and symbols. */
14091 const struct {
14092 const char *name;
14093 void *address;
14095 lt__PROGRAM__LTX_preloaded_symbols[] =
14097 { "@PROGRAM@", (void *) 0 },
14098 _LT_EOF
14099 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14100 cat <<\_LT_EOF >> conftest.$ac_ext
14101 {0, (void *) 0}
14104 /* This works around a problem in FreeBSD linker */
14105 #ifdef FREEBSD_WORKAROUND
14106 static const void *lt_preloaded_setup() {
14107 return lt__PROGRAM__LTX_preloaded_symbols;
14109 #endif
14111 #ifdef __cplusplus
14113 #endif
14114 _LT_EOF
14115 # Now try linking the two files.
14116 mv conftest.$ac_objext conftstm.$ac_objext
14117 lt_save_LIBS="$LIBS"
14118 lt_save_CFLAGS="$CFLAGS"
14119 LIBS="conftstm.$ac_objext"
14120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14122 (eval $ac_link) 2>&5
14123 ac_status=$?
14124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14126 pipe_works=yes
14128 LIBS="$lt_save_LIBS"
14129 CFLAGS="$lt_save_CFLAGS"
14130 else
14131 echo "cannot find nm_test_func in $nlist" >&5
14133 else
14134 echo "cannot find nm_test_var in $nlist" >&5
14136 else
14137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14139 else
14140 echo "$progname: failed program was:" >&5
14141 cat conftest.$ac_ext >&5
14143 rm -rf conftest* conftst*
14145 # Do not use the global_symbol_pipe unless it works.
14146 if test "$pipe_works" = yes; then
14147 break
14148 else
14149 lt_cv_sys_global_symbol_pipe=
14151 done
14155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14156 lt_cv_sys_global_symbol_to_cdecl=
14158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14160 $as_echo "failed" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14163 $as_echo "ok" >&6; }
14187 # Check whether --enable-libtool-lock was given.
14188 if test "${enable_libtool_lock+set}" = set; then :
14189 enableval=$enable_libtool_lock;
14192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14194 # Some flags need to be propagated to the compiler or linker for good
14195 # libtool support.
14196 case $host in
14197 ia64-*-hpux*)
14198 # Find out which ABI we are using.
14199 echo 'int i;' > conftest.$ac_ext
14200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14201 (eval $ac_compile) 2>&5
14202 ac_status=$?
14203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14204 test $ac_status = 0; }; then
14205 case `/usr/bin/file conftest.$ac_objext` in
14206 *ELF-32*)
14207 HPUX_IA64_MODE="32"
14209 *ELF-64*)
14210 HPUX_IA64_MODE="64"
14212 esac
14214 rm -rf conftest*
14216 *-*-irix6*)
14217 # Find out which ABI we are using.
14218 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14220 (eval $ac_compile) 2>&5
14221 ac_status=$?
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }; then
14224 if test "$lt_cv_prog_gnu_ld" = yes; then
14225 case `/usr/bin/file conftest.$ac_objext` in
14226 *32-bit*)
14227 LD="${LD-ld} -melf32bsmip"
14229 *N32*)
14230 LD="${LD-ld} -melf32bmipn32"
14232 *64-bit*)
14233 LD="${LD-ld} -melf64bmip"
14235 esac
14236 else
14237 case `/usr/bin/file conftest.$ac_objext` in
14238 *32-bit*)
14239 LD="${LD-ld} -32"
14241 *N32*)
14242 LD="${LD-ld} -n32"
14244 *64-bit*)
14245 LD="${LD-ld} -64"
14247 esac
14250 rm -rf conftest*
14253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14255 # Find out which ABI we are using.
14256 echo 'int i;' > conftest.$ac_ext
14257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14258 (eval $ac_compile) 2>&5
14259 ac_status=$?
14260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14261 test $ac_status = 0; }; then
14262 case `/usr/bin/file conftest.o` in
14263 *32-bit*)
14264 case $host in
14265 x86_64-*kfreebsd*-gnu)
14266 LD="${LD-ld} -m elf_i386_fbsd"
14268 x86_64-*linux*)
14269 case `/usr/bin/file conftest.o` in
14270 *x86-64*)
14271 LD="${LD-ld} -m elf32_x86_64"
14274 LD="${LD-ld} -m elf_i386"
14276 esac
14278 powerpc64le-*linux*)
14279 LD="${LD-ld} -m elf32lppclinux"
14281 powerpc64-*linux*)
14282 LD="${LD-ld} -m elf32ppclinux"
14284 s390x-*linux*)
14285 LD="${LD-ld} -m elf_s390"
14287 sparc64-*linux*)
14288 LD="${LD-ld} -m elf32_sparc"
14290 esac
14292 *64-bit*)
14293 case $host in
14294 x86_64-*kfreebsd*-gnu)
14295 LD="${LD-ld} -m elf_x86_64_fbsd"
14297 x86_64-*linux*)
14298 LD="${LD-ld} -m elf_x86_64"
14300 powerpcle-*linux*)
14301 LD="${LD-ld} -m elf64lppc"
14303 powerpc-*linux*)
14304 LD="${LD-ld} -m elf64ppc"
14306 s390*-*linux*|s390*-*tpf*)
14307 LD="${LD-ld} -m elf64_s390"
14309 sparc*-*linux*)
14310 LD="${LD-ld} -m elf64_sparc"
14312 esac
14314 esac
14316 rm -rf conftest*
14319 *-*-sco3.2v5*)
14320 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14321 SAVE_CFLAGS="$CFLAGS"
14322 CFLAGS="$CFLAGS -belf"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14324 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14325 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 ac_ext=c
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14338 main ()
14342 return 0;
14344 _ACEOF
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 lt_cv_cc_needs_belf=yes
14347 else
14348 lt_cv_cc_needs_belf=no
14350 rm -f core conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
14352 ac_ext=c
14353 ac_cpp='$CPP $CPPFLAGS'
14354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14360 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14361 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14363 CFLAGS="$SAVE_CFLAGS"
14366 sparc*-*solaris*)
14367 # Find out which ABI we are using.
14368 echo 'int i;' > conftest.$ac_ext
14369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14370 (eval $ac_compile) 2>&5
14371 ac_status=$?
14372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14373 test $ac_status = 0; }; then
14374 case `/usr/bin/file conftest.o` in
14375 *64-bit*)
14376 case $lt_cv_prog_gnu_ld in
14377 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14380 LD="${LD-ld} -64"
14383 esac
14385 esac
14387 rm -rf conftest*
14389 esac
14391 need_locks="$enable_libtool_lock"
14394 case $host_os in
14395 rhapsody* | darwin*)
14396 if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14400 $as_echo_n "checking for $ac_word... " >&6; }
14401 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 if test -n "$DSYMUTIL"; then
14405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14406 else
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14410 IFS=$as_save_IFS
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14416 break 2
14418 done
14419 done
14420 IFS=$as_save_IFS
14424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14425 if test -n "$DSYMUTIL"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14427 $as_echo "$DSYMUTIL" >&6; }
14428 else
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14435 if test -z "$ac_cv_prog_DSYMUTIL"; then
14436 ac_ct_DSYMUTIL=$DSYMUTIL
14437 # Extract the first word of "dsymutil", so it can be a program name with args.
14438 set dummy dsymutil; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 if test -n "$ac_ct_DSYMUTIL"; then
14445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14458 done
14459 done
14460 IFS=$as_save_IFS
14464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14465 if test -n "$ac_ct_DSYMUTIL"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14468 else
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470 $as_echo "no" >&6; }
14473 if test "x$ac_ct_DSYMUTIL" = x; then
14474 DSYMUTIL=":"
14475 else
14476 case $cross_compiling:$ac_tool_warned in
14477 yes:)
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14480 ac_tool_warned=yes ;;
14481 esac
14482 DSYMUTIL=$ac_ct_DSYMUTIL
14484 else
14485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14488 if test -n "$ac_tool_prefix"; then
14489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492 $as_echo_n "checking for $ac_word... " >&6; }
14493 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 if test -n "$NMEDIT"; then
14497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14498 else
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 break 2
14510 done
14511 done
14512 IFS=$as_save_IFS
14516 NMEDIT=$ac_cv_prog_NMEDIT
14517 if test -n "$NMEDIT"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14519 $as_echo "$NMEDIT" >&6; }
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14527 if test -z "$ac_cv_prog_NMEDIT"; then
14528 ac_ct_NMEDIT=$NMEDIT
14529 # Extract the first word of "nmedit", so it can be a program name with args.
14530 set dummy nmedit; ac_word=$2
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14532 $as_echo_n "checking for $ac_word... " >&6; }
14533 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 if test -n "$ac_ct_NMEDIT"; then
14537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14538 else
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14542 IFS=$as_save_IFS
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14546 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14548 break 2
14550 done
14551 done
14552 IFS=$as_save_IFS
14556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14557 if test -n "$ac_ct_NMEDIT"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14559 $as_echo "$ac_ct_NMEDIT" >&6; }
14560 else
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 $as_echo "no" >&6; }
14565 if test "x$ac_ct_NMEDIT" = x; then
14566 NMEDIT=":"
14567 else
14568 case $cross_compiling:$ac_tool_warned in
14569 yes:)
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14572 ac_tool_warned=yes ;;
14573 esac
14574 NMEDIT=$ac_ct_NMEDIT
14576 else
14577 NMEDIT="$ac_cv_prog_NMEDIT"
14580 if test -n "$ac_tool_prefix"; then
14581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 $as_echo_n "checking for $ac_word... " >&6; }
14585 if test "${ac_cv_prog_LIPO+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 if test -n "$LIPO"; then
14589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14590 else
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14594 IFS=$as_save_IFS
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 break 2
14602 done
14603 done
14604 IFS=$as_save_IFS
14608 LIPO=$ac_cv_prog_LIPO
14609 if test -n "$LIPO"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14611 $as_echo "$LIPO" >&6; }
14612 else
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14619 if test -z "$ac_cv_prog_LIPO"; then
14620 ac_ct_LIPO=$LIPO
14621 # Extract the first word of "lipo", so it can be a program name with args.
14622 set dummy lipo; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624 $as_echo_n "checking for $ac_word... " >&6; }
14625 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 if test -n "$ac_ct_LIPO"; then
14629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14630 else
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14634 IFS=$as_save_IFS
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14638 ac_cv_prog_ac_ct_LIPO="lipo"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14640 break 2
14642 done
14643 done
14644 IFS=$as_save_IFS
14648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14649 if test -n "$ac_ct_LIPO"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14651 $as_echo "$ac_ct_LIPO" >&6; }
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14657 if test "x$ac_ct_LIPO" = x; then
14658 LIPO=":"
14659 else
14660 case $cross_compiling:$ac_tool_warned in
14661 yes:)
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14664 ac_tool_warned=yes ;;
14665 esac
14666 LIPO=$ac_ct_LIPO
14668 else
14669 LIPO="$ac_cv_prog_LIPO"
14672 if test -n "$ac_tool_prefix"; then
14673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14674 set dummy ${ac_tool_prefix}otool; ac_word=$2
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676 $as_echo_n "checking for $ac_word... " >&6; }
14677 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 if test -n "$OTOOL"; then
14681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14682 else
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14686 IFS=$as_save_IFS
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692 break 2
14694 done
14695 done
14696 IFS=$as_save_IFS
14700 OTOOL=$ac_cv_prog_OTOOL
14701 if test -n "$OTOOL"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14703 $as_echo "$OTOOL" >&6; }
14704 else
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14711 if test -z "$ac_cv_prog_OTOOL"; then
14712 ac_ct_OTOOL=$OTOOL
14713 # Extract the first word of "otool", so it can be a program name with args.
14714 set dummy otool; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 $as_echo_n "checking for $ac_word... " >&6; }
14717 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 if test -n "$ac_ct_OTOOL"; then
14721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14722 else
14723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724 for as_dir in $PATH
14726 IFS=$as_save_IFS
14727 test -z "$as_dir" && as_dir=.
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14730 ac_cv_prog_ac_ct_OTOOL="otool"
14731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14732 break 2
14734 done
14735 done
14736 IFS=$as_save_IFS
14740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14741 if test -n "$ac_ct_OTOOL"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14743 $as_echo "$ac_ct_OTOOL" >&6; }
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14749 if test "x$ac_ct_OTOOL" = x; then
14750 OTOOL=":"
14751 else
14752 case $cross_compiling:$ac_tool_warned in
14753 yes:)
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14756 ac_tool_warned=yes ;;
14757 esac
14758 OTOOL=$ac_ct_OTOOL
14760 else
14761 OTOOL="$ac_cv_prog_OTOOL"
14764 if test -n "$ac_tool_prefix"; then
14765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768 $as_echo_n "checking for $ac_word... " >&6; }
14769 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 if test -n "$OTOOL64"; then
14773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14774 else
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14778 IFS=$as_save_IFS
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14784 break 2
14786 done
14787 done
14788 IFS=$as_save_IFS
14792 OTOOL64=$ac_cv_prog_OTOOL64
14793 if test -n "$OTOOL64"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14795 $as_echo "$OTOOL64" >&6; }
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 $as_echo "no" >&6; }
14803 if test -z "$ac_cv_prog_OTOOL64"; then
14804 ac_ct_OTOOL64=$OTOOL64
14805 # Extract the first word of "otool64", so it can be a program name with args.
14806 set dummy otool64; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808 $as_echo_n "checking for $ac_word... " >&6; }
14809 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 if test -n "$ac_ct_OTOOL64"; then
14813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14814 else
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14822 ac_cv_prog_ac_ct_OTOOL64="otool64"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14826 done
14827 done
14828 IFS=$as_save_IFS
14832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14833 if test -n "$ac_ct_OTOOL64"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14835 $as_echo "$ac_ct_OTOOL64" >&6; }
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14841 if test "x$ac_ct_OTOOL64" = x; then
14842 OTOOL64=":"
14843 else
14844 case $cross_compiling:$ac_tool_warned in
14845 yes:)
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14848 ac_tool_warned=yes ;;
14849 esac
14850 OTOOL64=$ac_ct_OTOOL64
14852 else
14853 OTOOL64="$ac_cv_prog_OTOOL64"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14883 $as_echo_n "checking for -single_module linker flag... " >&6; }
14884 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 lt_cv_apple_cc_single_mod=no
14888 if test -z "${LT_MULTI_MODULE}"; then
14889 # By default we will add the -single_module flag. You can override
14890 # by either setting the environment variable LT_MULTI_MODULE
14891 # non-empty at configure time, or by adding -multi_module to the
14892 # link flags.
14893 rm -rf libconftest.dylib*
14894 echo "int foo(void){return 1;}" > conftest.c
14895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14896 -dynamiclib -Wl,-single_module conftest.c" >&5
14897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14899 _lt_result=$?
14900 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14901 lt_cv_apple_cc_single_mod=yes
14902 else
14903 cat conftest.err >&5
14905 rm -rf libconftest.dylib*
14906 rm -f conftest.*
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14910 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14912 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14913 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 lt_cv_ld_exported_symbols_list=no
14917 save_LDFLAGS=$LDFLAGS
14918 echo "_main" > conftest.sym
14919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14924 main ()
14928 return 0;
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 lt_cv_ld_exported_symbols_list=yes
14933 else
14934 lt_cv_ld_exported_symbols_list=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LDFLAGS="$save_LDFLAGS"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14942 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14944 $as_echo_n "checking for -force_load linker flag... " >&6; }
14945 if test "${lt_cv_ld_force_load+set}" = set; then :
14946 $as_echo_n "(cached) " >&6
14947 else
14948 lt_cv_ld_force_load=no
14949 cat > conftest.c << _LT_EOF
14950 int forced_loaded() { return 2;}
14951 _LT_EOF
14952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14954 echo "$AR cru libconftest.a conftest.o" >&5
14955 $AR cru libconftest.a conftest.o 2>&5
14956 cat > conftest.c << _LT_EOF
14957 int main() { return 0;}
14958 _LT_EOF
14959 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14960 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14961 _lt_result=$?
14962 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14963 lt_cv_ld_force_load=yes
14964 else
14965 cat conftest.err >&5
14967 rm -f conftest.err libconftest.a conftest conftest.c
14968 rm -rf conftest.dSYM
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14972 $as_echo "$lt_cv_ld_force_load" >&6; }
14973 case $host_os in
14974 rhapsody* | darwin1.[012])
14975 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14976 darwin1.*)
14977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14978 darwin*) # darwin 5.x on
14979 # if running on 10.5 or later, the deployment target defaults
14980 # to the OS version, if on x86, and 10.4, the deployment
14981 # target defaults to 10.4. Don't you love it?
14982 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14983 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14985 10.[012][,.]*)
14986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14987 10.*)
14988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14989 esac
14991 esac
14992 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14993 _lt_dar_single_mod='$single_module'
14995 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14996 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14997 else
14998 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15000 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15001 _lt_dsymutil='~$DSYMUTIL $lib || :'
15002 else
15003 _lt_dsymutil=
15006 esac
15009 for ac_header in dlfcn.h
15010 do :
15011 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15012 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15013 cat >>confdefs.h <<_ACEOF
15014 #define HAVE_DLFCN_H 1
15015 _ACEOF
15018 done
15024 # Set options
15028 enable_dlopen=no
15031 enable_win32_dll=no
15034 # Check whether --enable-shared was given.
15035 if test "${enable_shared+set}" = set; then :
15036 enableval=$enable_shared; p=${PACKAGE-default}
15037 case $enableval in
15038 yes) enable_shared=yes ;;
15039 no) enable_shared=no ;;
15041 enable_shared=no
15042 # Look at the argument we got. We use all the common list separators.
15043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15044 for pkg in $enableval; do
15045 IFS="$lt_save_ifs"
15046 if test "X$pkg" = "X$p"; then
15047 enable_shared=yes
15049 done
15050 IFS="$lt_save_ifs"
15052 esac
15053 else
15054 enable_shared=yes
15065 # Check whether --enable-static was given.
15066 if test "${enable_static+set}" = set; then :
15067 enableval=$enable_static; p=${PACKAGE-default}
15068 case $enableval in
15069 yes) enable_static=yes ;;
15070 no) enable_static=no ;;
15072 enable_static=no
15073 # Look at the argument we got. We use all the common list separators.
15074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15075 for pkg in $enableval; do
15076 IFS="$lt_save_ifs"
15077 if test "X$pkg" = "X$p"; then
15078 enable_static=yes
15080 done
15081 IFS="$lt_save_ifs"
15083 esac
15084 else
15085 enable_static=yes
15097 # Check whether --with-pic was given.
15098 if test "${with_pic+set}" = set; then :
15099 withval=$with_pic; pic_mode="$withval"
15100 else
15101 pic_mode=default
15105 test -z "$pic_mode" && pic_mode=default
15113 # Check whether --enable-fast-install was given.
15114 if test "${enable_fast_install+set}" = set; then :
15115 enableval=$enable_fast_install; p=${PACKAGE-default}
15116 case $enableval in
15117 yes) enable_fast_install=yes ;;
15118 no) enable_fast_install=no ;;
15120 enable_fast_install=no
15121 # Look at the argument we got. We use all the common list separators.
15122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15123 for pkg in $enableval; do
15124 IFS="$lt_save_ifs"
15125 if test "X$pkg" = "X$p"; then
15126 enable_fast_install=yes
15128 done
15129 IFS="$lt_save_ifs"
15131 esac
15132 else
15133 enable_fast_install=yes
15146 # This can be used to rebuild libtool when needed
15147 LIBTOOL_DEPS="$ltmain"
15149 # Always use our own libtool.
15150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15177 test -z "$LN_S" && LN_S="ln -s"
15192 if test -n "${ZSH_VERSION+set}" ; then
15193 setopt NO_GLOB_SUBST
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15197 $as_echo_n "checking for objdir... " >&6; }
15198 if test "${lt_cv_objdir+set}" = set; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 rm -f .libs 2>/dev/null
15202 mkdir .libs 2>/dev/null
15203 if test -d .libs; then
15204 lt_cv_objdir=.libs
15205 else
15206 # MS-DOS does not allow filenames that begin with a dot.
15207 lt_cv_objdir=_libs
15209 rmdir .libs 2>/dev/null
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15212 $as_echo "$lt_cv_objdir" >&6; }
15213 objdir=$lt_cv_objdir
15219 cat >>confdefs.h <<_ACEOF
15220 #define LT_OBJDIR "$lt_cv_objdir/"
15221 _ACEOF
15226 case $host_os in
15227 aix3*)
15228 # AIX sometimes has problems with the GCC collect2 program. For some
15229 # reason, if we set the COLLECT_NAMES environment variable, the problems
15230 # vanish in a puff of smoke.
15231 if test "X${COLLECT_NAMES+set}" != Xset; then
15232 COLLECT_NAMES=
15233 export COLLECT_NAMES
15236 esac
15238 # Global variables:
15239 ofile=libtool
15240 can_build_shared=yes
15242 # All known linkers require a `.a' archive for static linking (except MSVC,
15243 # which needs '.lib').
15244 libext=a
15246 with_gnu_ld="$lt_cv_prog_gnu_ld"
15248 old_CC="$CC"
15249 old_CFLAGS="$CFLAGS"
15251 # Set sane defaults for various variables
15252 test -z "$CC" && CC=cc
15253 test -z "$LTCC" && LTCC=$CC
15254 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15255 test -z "$LD" && LD=ld
15256 test -z "$ac_objext" && ac_objext=o
15258 for cc_temp in $compiler""; do
15259 case $cc_temp in
15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15262 \-*) ;;
15263 *) break;;
15264 esac
15265 done
15266 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15269 # Only perform the check for file, if the check method requires it
15270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15271 case $deplibs_check_method in
15272 file_magic*)
15273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15275 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 case $MAGIC_CMD in
15280 [\\/*] | ?:[\\/]*)
15281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15284 lt_save_MAGIC_CMD="$MAGIC_CMD"
15285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15287 for ac_dir in $ac_dummy; do
15288 IFS="$lt_save_ifs"
15289 test -z "$ac_dir" && ac_dir=.
15290 if test -f $ac_dir/${ac_tool_prefix}file; then
15291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15292 if test -n "$file_magic_test_file"; then
15293 case $deplibs_check_method in
15294 "file_magic "*)
15295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15298 $EGREP "$file_magic_regex" > /dev/null; then
15300 else
15301 cat <<_LT_EOF 1>&2
15303 *** Warning: the command libtool uses to detect shared libraries,
15304 *** $file_magic_cmd, produces output that libtool cannot recognize.
15305 *** The result is that libtool may fail to recognize shared libraries
15306 *** as such. This will affect the creation of libtool libraries that
15307 *** depend on shared libraries, but programs linked with such libtool
15308 *** libraries will work regardless of this problem. Nevertheless, you
15309 *** may want to report the problem to your system manager and/or to
15310 *** bug-libtool@gnu.org
15312 _LT_EOF
15313 fi ;;
15314 esac
15316 break
15318 done
15319 IFS="$lt_save_ifs"
15320 MAGIC_CMD="$lt_save_MAGIC_CMD"
15322 esac
15325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15326 if test -n "$MAGIC_CMD"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15328 $as_echo "$MAGIC_CMD" >&6; }
15329 else
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15331 $as_echo "no" >&6; }
15338 if test -z "$lt_cv_path_MAGIC_CMD"; then
15339 if test -n "$ac_tool_prefix"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15341 $as_echo_n "checking for file... " >&6; }
15342 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 case $MAGIC_CMD in
15346 [\\/*] | ?:[\\/]*)
15347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15350 lt_save_MAGIC_CMD="$MAGIC_CMD"
15351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15353 for ac_dir in $ac_dummy; do
15354 IFS="$lt_save_ifs"
15355 test -z "$ac_dir" && ac_dir=.
15356 if test -f $ac_dir/file; then
15357 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15358 if test -n "$file_magic_test_file"; then
15359 case $deplibs_check_method in
15360 "file_magic "*)
15361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15364 $EGREP "$file_magic_regex" > /dev/null; then
15366 else
15367 cat <<_LT_EOF 1>&2
15369 *** Warning: the command libtool uses to detect shared libraries,
15370 *** $file_magic_cmd, produces output that libtool cannot recognize.
15371 *** The result is that libtool may fail to recognize shared libraries
15372 *** as such. This will affect the creation of libtool libraries that
15373 *** depend on shared libraries, but programs linked with such libtool
15374 *** libraries will work regardless of this problem. Nevertheless, you
15375 *** may want to report the problem to your system manager and/or to
15376 *** bug-libtool@gnu.org
15378 _LT_EOF
15379 fi ;;
15380 esac
15382 break
15384 done
15385 IFS="$lt_save_ifs"
15386 MAGIC_CMD="$lt_save_MAGIC_CMD"
15388 esac
15391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15392 if test -n "$MAGIC_CMD"; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15394 $as_echo "$MAGIC_CMD" >&6; }
15395 else
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15397 $as_echo "no" >&6; }
15401 else
15402 MAGIC_CMD=:
15408 esac
15410 # Use C for the default configuration in the libtool script
15412 lt_save_CC="$CC"
15413 ac_ext=c
15414 ac_cpp='$CPP $CPPFLAGS'
15415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15420 # Source file extension for C test sources.
15421 ac_ext=c
15423 # Object file extension for compiled C test sources.
15424 objext=o
15425 objext=$objext
15427 # Code to be used in simple compile tests
15428 lt_simple_compile_test_code="int some_variable = 0;"
15430 # Code to be used in simple link tests
15431 lt_simple_link_test_code='int main(){return(0);}'
15439 # If no C compiler was specified, use CC.
15440 LTCC=${LTCC-"$CC"}
15442 # If no C compiler flags were specified, use CFLAGS.
15443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15445 # Allow CC to be a program name with arguments.
15446 compiler=$CC
15448 # Save the default compiler, since it gets overwritten when the other
15449 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15450 compiler_DEFAULT=$CC
15452 # save warnings/boilerplate of simple test code
15453 ac_outfile=conftest.$ac_objext
15454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456 _lt_compiler_boilerplate=`cat conftest.err`
15457 $RM conftest*
15459 ac_outfile=conftest.$ac_objext
15460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462 _lt_linker_boilerplate=`cat conftest.err`
15463 $RM -r conftest*
15466 ## CAVEAT EMPTOR:
15467 ## There is no encapsulation within the following macros, do not change
15468 ## the running order or otherwise move them around unless you know exactly
15469 ## what you are doing...
15470 if test -n "$compiler"; then
15472 lt_prog_compiler_no_builtin_flag=
15474 if test "$GCC" = yes; then
15475 case $cc_basename in
15476 nvcc*)
15477 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15479 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15480 esac
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15483 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15484 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 lt_cv_prog_compiler_rtti_exceptions=no
15488 ac_outfile=conftest.$ac_objext
15489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15490 lt_compiler_flag="-fno-rtti -fno-exceptions"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 # The option is referenced via a variable to avoid confusing sed.
15496 lt_compile=`echo "$ac_compile" | $SED \
15497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15499 -e 's:$: $lt_compiler_flag:'`
15500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15501 (eval "$lt_compile" 2>conftest.err)
15502 ac_status=$?
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 if (exit $ac_status) && test -s "$ac_outfile"; then
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings other than the usual output.
15508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15511 lt_cv_prog_compiler_rtti_exceptions=yes
15514 $RM conftest*
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15518 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15520 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15521 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15522 else
15533 lt_prog_compiler_wl=
15534 lt_prog_compiler_pic=
15535 lt_prog_compiler_static=
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15540 if test "$GCC" = yes; then
15541 lt_prog_compiler_wl='-Wl,'
15542 lt_prog_compiler_static='-static'
15544 case $host_os in
15545 aix*)
15546 # All AIX code is PIC.
15547 if test "$host_cpu" = ia64; then
15548 # AIX 5 now supports IA64 processor
15549 lt_prog_compiler_static='-Bstatic'
15551 lt_prog_compiler_pic='-fPIC'
15554 amigaos*)
15555 case $host_cpu in
15556 powerpc)
15557 # see comment about AmigaOS4 .so support
15558 lt_prog_compiler_pic='-fPIC'
15560 m68k)
15561 # FIXME: we need at least 68020 code to build shared libraries, but
15562 # adding the `-m68020' flag to GCC prevents building anything better,
15563 # like `-m68040'.
15564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15566 esac
15569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15570 # PIC is the default for these OSes.
15573 mingw* | cygwin* | pw32* | os2* | cegcc*)
15574 # This hack is so that the source file can tell whether it is being
15575 # built for inclusion in a dll (and should export symbols for example).
15576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15577 # (--disable-auto-import) libraries
15578 lt_prog_compiler_pic='-DDLL_EXPORT'
15581 darwin* | rhapsody*)
15582 # PIC is the default on this platform
15583 # Common symbols not allowed in MH_DYLIB files
15584 lt_prog_compiler_pic='-fno-common'
15587 haiku*)
15588 # PIC is the default for Haiku.
15589 # The "-static" flag exists, but is broken.
15590 lt_prog_compiler_static=
15593 hpux*)
15594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15596 # sets the default TLS model and affects inlining.
15597 case $host_cpu in
15598 hppa*64*)
15599 # +Z the default
15602 lt_prog_compiler_pic='-fPIC'
15604 esac
15607 interix[3-9]*)
15608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15609 # Instead, we relocate shared libraries at runtime.
15612 msdosdjgpp*)
15613 # Just because we use GCC doesn't mean we suddenly get shared libraries
15614 # on systems that don't support them.
15615 lt_prog_compiler_can_build_shared=no
15616 enable_shared=no
15619 *nto* | *qnx*)
15620 # QNX uses GNU C++, but need to define -shared option too, otherwise
15621 # it will coredump.
15622 lt_prog_compiler_pic='-fPIC -shared'
15625 sysv4*MP*)
15626 if test -d /usr/nec; then
15627 lt_prog_compiler_pic=-Kconform_pic
15632 lt_prog_compiler_pic='-fPIC'
15634 esac
15636 case $cc_basename in
15637 nvcc*) # Cuda Compiler Driver 2.2
15638 lt_prog_compiler_wl='-Xlinker '
15639 lt_prog_compiler_pic='-Xcompiler -fPIC'
15641 esac
15642 else
15643 # PORTME Check for flag to pass linker flags through the system compiler.
15644 case $host_os in
15645 aix*)
15646 lt_prog_compiler_wl='-Wl,'
15647 if test "$host_cpu" = ia64; then
15648 # AIX 5 now supports IA64 processor
15649 lt_prog_compiler_static='-Bstatic'
15650 else
15651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15655 mingw* | cygwin* | pw32* | os2* | cegcc*)
15656 # This hack is so that the source file can tell whether it is being
15657 # built for inclusion in a dll (and should export symbols for example).
15658 lt_prog_compiler_pic='-DDLL_EXPORT'
15661 hpux9* | hpux10* | hpux11*)
15662 lt_prog_compiler_wl='-Wl,'
15663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15664 # not for PA HP-UX.
15665 case $host_cpu in
15666 hppa*64*|ia64*)
15667 # +Z the default
15670 lt_prog_compiler_pic='+Z'
15672 esac
15673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15674 lt_prog_compiler_static='${wl}-a ${wl}archive'
15677 irix5* | irix6* | nonstopux*)
15678 lt_prog_compiler_wl='-Wl,'
15679 # PIC (with -KPIC) is the default.
15680 lt_prog_compiler_static='-non_shared'
15683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15684 case $cc_basename in
15685 # old Intel for x86_64 which still supported -KPIC.
15686 ecc*)
15687 lt_prog_compiler_wl='-Wl,'
15688 lt_prog_compiler_pic='-KPIC'
15689 lt_prog_compiler_static='-static'
15691 # icc used to be incompatible with GCC.
15692 # ICC 10 doesn't accept -KPIC any more.
15693 icc* | ifort*)
15694 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_pic='-fPIC'
15696 lt_prog_compiler_static='-static'
15698 # Lahey Fortran 8.1.
15699 lf95*)
15700 lt_prog_compiler_wl='-Wl,'
15701 lt_prog_compiler_pic='--shared'
15702 lt_prog_compiler_static='--static'
15704 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15705 # Portland Group compilers (*not* the Pentium gcc compiler,
15706 # which looks to be a dead project)
15707 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-fpic'
15709 lt_prog_compiler_static='-Bstatic'
15711 ccc*)
15712 lt_prog_compiler_wl='-Wl,'
15713 # All Alpha code is PIC.
15714 lt_prog_compiler_static='-non_shared'
15716 xl* | bgxl* | bgf* | mpixl*)
15717 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_pic='-qpic'
15720 lt_prog_compiler_static='-qstaticlink'
15723 case `$CC -V 2>&1 | sed 5q` in
15724 *Sun\ F* | *Sun*Fortran*)
15725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15728 lt_prog_compiler_wl=''
15730 *Sun\ C*)
15731 # Sun C 5.9
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15734 lt_prog_compiler_wl='-Wl,'
15736 esac
15738 esac
15741 newsos6)
15742 lt_prog_compiler_pic='-KPIC'
15743 lt_prog_compiler_static='-Bstatic'
15746 *nto* | *qnx*)
15747 # QNX uses GNU C++, but need to define -shared option too, otherwise
15748 # it will coredump.
15749 lt_prog_compiler_pic='-fPIC -shared'
15752 osf3* | osf4* | osf5*)
15753 lt_prog_compiler_wl='-Wl,'
15754 # All OSF/1 code is PIC.
15755 lt_prog_compiler_static='-non_shared'
15758 rdos*)
15759 lt_prog_compiler_static='-non_shared'
15762 solaris*)
15763 lt_prog_compiler_pic='-KPIC'
15764 lt_prog_compiler_static='-Bstatic'
15765 case $cc_basename in
15766 f77* | f90* | f95*)
15767 lt_prog_compiler_wl='-Qoption ld ';;
15769 lt_prog_compiler_wl='-Wl,';;
15770 esac
15773 sunos4*)
15774 lt_prog_compiler_wl='-Qoption ld '
15775 lt_prog_compiler_pic='-PIC'
15776 lt_prog_compiler_static='-Bstatic'
15779 sysv4 | sysv4.2uw2* | sysv4.3*)
15780 lt_prog_compiler_wl='-Wl,'
15781 lt_prog_compiler_pic='-KPIC'
15782 lt_prog_compiler_static='-Bstatic'
15785 sysv4*MP*)
15786 if test -d /usr/nec ;then
15787 lt_prog_compiler_pic='-Kconform_pic'
15788 lt_prog_compiler_static='-Bstatic'
15792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15793 lt_prog_compiler_wl='-Wl,'
15794 lt_prog_compiler_pic='-KPIC'
15795 lt_prog_compiler_static='-Bstatic'
15798 unicos*)
15799 lt_prog_compiler_wl='-Wl,'
15800 lt_prog_compiler_can_build_shared=no
15803 uts4*)
15804 lt_prog_compiler_pic='-pic'
15805 lt_prog_compiler_static='-Bstatic'
15809 lt_prog_compiler_can_build_shared=no
15811 esac
15814 case $host_os in
15815 # For platforms which do not support PIC, -DPIC is meaningless:
15816 *djgpp*)
15817 lt_prog_compiler_pic=
15820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15822 esac
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15824 $as_echo "$lt_prog_compiler_pic" >&6; }
15832 # Check to make sure the PIC flag actually works.
15834 if test -n "$lt_prog_compiler_pic"; then
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 lt_cv_prog_compiler_pic_works=no
15841 ac_outfile=conftest.$ac_objext
15842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15844 # Insert the option either (1) after the last *FLAGS variable, or
15845 # (2) before a word containing "conftest.", or (3) at the end.
15846 # Note that $ac_compile itself does not contain backslashes and begins
15847 # with a dollar sign (not a hyphen), so the echo should work correctly.
15848 # The option is referenced via a variable to avoid confusing sed.
15849 lt_compile=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>conftest.err)
15855 ac_status=$?
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 if (exit $ac_status) && test -s "$ac_outfile"; then
15859 # The compiler can only warn and ignore the option if not recognized
15860 # So say no if there are warnings other than the usual output.
15861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15864 lt_cv_prog_compiler_pic_works=yes
15867 $RM conftest*
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15874 case $lt_prog_compiler_pic in
15875 "" | " "*) ;;
15876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15877 esac
15878 else
15879 lt_prog_compiler_pic=
15880 lt_prog_compiler_can_build_shared=no
15891 # Check to make sure the static flag actually works.
15893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15896 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899 lt_cv_prog_compiler_static_works=no
15900 save_LDFLAGS="$LDFLAGS"
15901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15904 # The linker can only warn and ignore the option if not recognized
15905 # So say no if there are warnings
15906 if test -s conftest.err; then
15907 # Append any errors to the config.log.
15908 cat conftest.err 1>&5
15909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15911 if diff conftest.exp conftest.er2 >/dev/null; then
15912 lt_cv_prog_compiler_static_works=yes
15914 else
15915 lt_cv_prog_compiler_static_works=yes
15918 $RM -r conftest*
15919 LDFLAGS="$save_LDFLAGS"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15927 else
15928 lt_prog_compiler_static=
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 lt_cv_prog_compiler_c_o=no
15943 $RM -r conftest 2>/dev/null
15944 mkdir conftest
15945 cd conftest
15946 mkdir out
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15949 lt_compiler_flag="-o out/conftest2.$ac_objext"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>out/conftest.err)
15960 ac_status=$?
15961 cat out/conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15964 then
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings
15967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_c_o=yes
15973 chmod u+w . 2>&5
15974 $RM conftest*
15975 # SGI C++ compiler will create directory out/ii_files/ for
15976 # template instantiation
15977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15978 $RM out/* && rmdir out
15979 cd ..
15980 $RM -r conftest
15981 $RM conftest*
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15997 lt_cv_prog_compiler_c_o=no
15998 $RM -r conftest 2>/dev/null
15999 mkdir conftest
16000 cd conftest
16001 mkdir out
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16004 lt_compiler_flag="-o out/conftest2.$ac_objext"
16005 # Insert the option either (1) after the last *FLAGS variable, or
16006 # (2) before a word containing "conftest.", or (3) at the end.
16007 # Note that $ac_compile itself does not contain backslashes and begins
16008 # with a dollar sign (not a hyphen), so the echo should work correctly.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>out/conftest.err)
16015 ac_status=$?
16016 cat out/conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16019 then
16020 # The compiler can only warn and ignore the option if not recognized
16021 # So say no if there are warnings
16022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16025 lt_cv_prog_compiler_c_o=yes
16028 chmod u+w . 2>&5
16029 $RM conftest*
16030 # SGI C++ compiler will create directory out/ii_files/ for
16031 # template instantiation
16032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16033 $RM out/* && rmdir out
16034 cd ..
16035 $RM -r conftest
16036 $RM conftest*
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16045 hard_links="nottested"
16046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16047 # do not overwrite the value of need_locks provided by the user
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16049 $as_echo_n "checking if we can lock with hard links... " >&6; }
16050 hard_links=yes
16051 $RM conftest*
16052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16053 touch conftest.a
16054 ln conftest.a conftest.b 2>&5 || hard_links=no
16055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16057 $as_echo "$hard_links" >&6; }
16058 if test "$hard_links" = no; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16061 need_locks=warn
16063 else
16064 need_locks=no
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16075 runpath_var=
16076 allow_undefined_flag=
16077 always_export_symbols=no
16078 archive_cmds=
16079 archive_expsym_cmds=
16080 compiler_needs_object=no
16081 enable_shared_with_static_runtimes=no
16082 export_dynamic_flag_spec=
16083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16084 hardcode_automatic=no
16085 hardcode_direct=no
16086 hardcode_direct_absolute=no
16087 hardcode_libdir_flag_spec=
16088 hardcode_libdir_flag_spec_ld=
16089 hardcode_libdir_separator=
16090 hardcode_minus_L=no
16091 hardcode_shlibpath_var=unsupported
16092 inherit_rpath=no
16093 link_all_deplibs=unknown
16094 module_cmds=
16095 module_expsym_cmds=
16096 old_archive_from_new_cmds=
16097 old_archive_from_expsyms_cmds=
16098 thread_safe_flag_spec=
16099 whole_archive_flag_spec=
16100 # include_expsyms should be a list of space-separated symbols to be *always*
16101 # included in the symbol list
16102 include_expsyms=
16103 # exclude_expsyms can be an extended regexp of symbols to exclude
16104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16106 # as well as any symbol that contains `d'.
16107 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16109 # platforms (ab)use it in PIC code, but their linkers get confused if
16110 # the symbol is explicitly referenced. Since portable code cannot
16111 # rely on this symbol name, it's probably fine to never include it in
16112 # preloaded symbol tables.
16113 # Exclude shared library initialization/finalization symbols.
16114 extract_expsyms_cmds=
16116 case $host_os in
16117 cygwin* | mingw* | pw32* | cegcc*)
16118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16119 # When not using gcc, we currently assume that we are using
16120 # Microsoft Visual C++.
16121 if test "$GCC" != yes; then
16122 with_gnu_ld=no
16125 interix*)
16126 # we just hope/assume this is gcc and not c89 (= MSVC++)
16127 with_gnu_ld=yes
16129 openbsd*)
16130 with_gnu_ld=no
16132 esac
16134 ld_shlibs=yes
16136 # On some targets, GNU ld is compatible enough with the native linker
16137 # that we're better off using the native interface for both.
16138 lt_use_gnu_ld_interface=no
16139 if test "$with_gnu_ld" = yes; then
16140 case $host_os in
16141 aix*)
16142 # The AIX port of GNU ld has always aspired to compatibility
16143 # with the native linker. However, as the warning in the GNU ld
16144 # block says, versions before 2.19.5* couldn't really create working
16145 # shared libraries, regardless of the interface used.
16146 case `$LD -v 2>&1` in
16147 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16148 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16149 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16151 lt_use_gnu_ld_interface=yes
16153 esac
16156 lt_use_gnu_ld_interface=yes
16158 esac
16161 if test "$lt_use_gnu_ld_interface" = yes; then
16162 # If archive_cmds runs LD, not CC, wlarc should be empty
16163 wlarc='${wl}'
16165 # Set some defaults for GNU ld with shared library support. These
16166 # are reset later if shared libraries are not supported. Putting them
16167 # here allows them to be overridden if necessary.
16168 runpath_var=LD_RUN_PATH
16169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16170 export_dynamic_flag_spec='${wl}--export-dynamic'
16171 # ancient GNU ld didn't support --whole-archive et. al.
16172 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16174 else
16175 whole_archive_flag_spec=
16177 supports_anon_versioning=no
16178 case `$LD -v 2>&1` in
16179 *GNU\ gold*) supports_anon_versioning=yes ;;
16180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16183 *\ 2.11.*) ;; # other 2.11 versions
16184 *) supports_anon_versioning=yes ;;
16185 esac
16187 # See if GNU ld supports shared libraries.
16188 case $host_os in
16189 aix[3-9]*)
16190 # On AIX/PPC, the GNU linker is very broken
16191 if test "$host_cpu" != ia64; then
16192 ld_shlibs=no
16193 cat <<_LT_EOF 1>&2
16195 *** Warning: the GNU linker, at least up to release 2.19, is reported
16196 *** to be unable to reliably create shared libraries on AIX.
16197 *** Therefore, libtool is disabling shared libraries support. If you
16198 *** really care for shared libraries, you may want to install binutils
16199 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16200 *** You will then need to restart the configuration process.
16202 _LT_EOF
16206 amigaos*)
16207 case $host_cpu in
16208 powerpc)
16209 # see comment about AmigaOS4 .so support
16210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 archive_expsym_cmds=''
16213 m68k)
16214 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)'
16215 hardcode_libdir_flag_spec='-L$libdir'
16216 hardcode_minus_L=yes
16218 esac
16221 beos*)
16222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16223 allow_undefined_flag=unsupported
16224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16225 # support --undefined. This deserves some investigation. FIXME
16226 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227 else
16228 ld_shlibs=no
16232 cygwin* | mingw* | pw32* | cegcc*)
16233 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16234 # as there is no search path for DLLs.
16235 hardcode_libdir_flag_spec='-L$libdir'
16236 export_dynamic_flag_spec='${wl}--export-all-symbols'
16237 allow_undefined_flag=unsupported
16238 always_export_symbols=no
16239 enable_shared_with_static_runtimes=yes
16240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16242 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16244 # If the export-symbols file already is a .def file (1st line
16245 # is EXPORTS), use it as is; otherwise, prepend...
16246 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16247 cp $export_symbols $output_objdir/$soname.def;
16248 else
16249 echo EXPORTS > $output_objdir/$soname.def;
16250 cat $export_symbols >> $output_objdir/$soname.def;
16252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16253 else
16254 ld_shlibs=no
16258 haiku*)
16259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260 link_all_deplibs=yes
16263 interix[3-9]*)
16264 hardcode_direct=no
16265 hardcode_shlibpath_var=no
16266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16267 export_dynamic_flag_spec='${wl}-E'
16268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16269 # Instead, shared libraries are loaded at an image base (0x10000000 by
16270 # default) and relocated if they conflict, which is a slow very memory
16271 # consuming and fragmenting process. To avoid this, we pick a random,
16272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16275 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'
16278 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16279 tmp_diet=no
16280 if test "$host_os" = linux-dietlibc; then
16281 case $cc_basename in
16282 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16283 esac
16285 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16286 && test "$tmp_diet" = no
16287 then
16288 tmp_addflag=' $pic_flag'
16289 tmp_sharedflag='-shared'
16290 case $cc_basename,$host_cpu in
16291 pgcc*) # Portland Group C compiler
16292 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'
16293 tmp_addflag=' $pic_flag'
16295 pgf77* | pgf90* | pgf95* | pgfortran*)
16296 # Portland Group f77 and f90 compilers
16297 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'
16298 tmp_addflag=' $pic_flag -Mnomain' ;;
16299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16300 tmp_addflag=' -i_dynamic' ;;
16301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16302 tmp_addflag=' -i_dynamic -nofor_main' ;;
16303 ifc* | ifort*) # Intel Fortran compiler
16304 tmp_addflag=' -nofor_main' ;;
16305 lf95*) # Lahey Fortran 8.1
16306 whole_archive_flag_spec=
16307 tmp_sharedflag='--shared' ;;
16308 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16309 tmp_sharedflag='-qmkshrobj'
16310 tmp_addflag= ;;
16311 nvcc*) # Cuda Compiler Driver 2.2
16312 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'
16313 compiler_needs_object=yes
16315 esac
16316 case `$CC -V 2>&1 | sed 5q` in
16317 *Sun\ C*) # Sun C 5.9
16318 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'
16319 compiler_needs_object=yes
16320 tmp_sharedflag='-G' ;;
16321 *Sun\ F*) # Sun Fortran 8.3
16322 tmp_sharedflag='-G' ;;
16323 esac
16324 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16326 if test "x$supports_anon_versioning" = xyes; then
16327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16329 echo "local: *; };" >> $output_objdir/$libname.ver~
16330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16333 case $cc_basename in
16334 xlf* | bgf* | bgxlf* | mpixlf*)
16335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16337 hardcode_libdir_flag_spec=
16338 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16339 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16340 if test "x$supports_anon_versioning" = xyes; then
16341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16343 echo "local: *; };" >> $output_objdir/$libname.ver~
16344 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16347 esac
16348 else
16349 ld_shlibs=no
16353 netbsd*)
16354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16356 wlarc=
16357 else
16358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16363 solaris*)
16364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16365 ld_shlibs=no
16366 cat <<_LT_EOF 1>&2
16368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16369 *** create shared libraries on Solaris systems. Therefore, libtool
16370 *** is disabling shared libraries support. We urge you to upgrade GNU
16371 *** binutils to release 2.9.1 or newer. Another option is to modify
16372 *** your PATH or compiler configuration so that the native linker is
16373 *** used, and then restart.
16375 _LT_EOF
16376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16379 else
16380 ld_shlibs=no
16384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16385 case `$LD -v 2>&1` in
16386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16387 ld_shlibs=no
16388 cat <<_LT_EOF 1>&2
16390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16391 *** reliably create shared libraries on SCO systems. Therefore, libtool
16392 *** is disabling shared libraries support. We urge you to upgrade GNU
16393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16394 *** your PATH or compiler configuration so that the native linker is
16395 *** used, and then restart.
16397 _LT_EOF
16400 # For security reasons, it is highly recommended that you always
16401 # use absolute paths for naming shared libraries, and exclude the
16402 # DT_RUNPATH tag from executables and libraries. But doing so
16403 # requires that you compile everything twice, which is a pain.
16404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16408 else
16409 ld_shlibs=no
16412 esac
16415 sunos4*)
16416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16417 wlarc=
16418 hardcode_direct=yes
16419 hardcode_shlibpath_var=no
16423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16426 else
16427 ld_shlibs=no
16430 esac
16432 if test "$ld_shlibs" = no; then
16433 runpath_var=
16434 hardcode_libdir_flag_spec=
16435 export_dynamic_flag_spec=
16436 whole_archive_flag_spec=
16438 else
16439 # PORTME fill in a description of your system's linker (not GNU ld)
16440 case $host_os in
16441 aix3*)
16442 allow_undefined_flag=unsupported
16443 always_export_symbols=yes
16444 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'
16445 # Note: this linker hardcodes the directories in LIBPATH if there
16446 # are no directories specified by -L.
16447 hardcode_minus_L=yes
16448 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16449 # Neither direct hardcoding nor static linking is supported with a
16450 # broken collect2.
16451 hardcode_direct=unsupported
16455 aix[4-9]*)
16456 if test "$host_cpu" = ia64; then
16457 # On IA64, the linker does run time linking by default, so we don't
16458 # have to do anything special.
16459 aix_use_runtimelinking=no
16460 exp_sym_flag='-Bexport'
16461 no_entry_flag=""
16462 else
16463 # If we're using GNU nm, then we don't want the "-C" option.
16464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16465 # Also, AIX nm treats weak defined symbols like other global
16466 # defined symbols, whereas GNU nm marks them as "W".
16467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16468 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'
16469 else
16470 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'
16472 aix_use_runtimelinking=no
16474 # Test if we are trying to use run time linking or normal
16475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16476 # need to do runtime linking.
16477 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16478 for ld_flag in $LDFLAGS; do
16479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16480 aix_use_runtimelinking=yes
16481 break
16483 done
16485 esac
16487 exp_sym_flag='-bexport'
16488 no_entry_flag='-bnoentry'
16491 # When large executables or shared objects are built, AIX ld can
16492 # have problems creating the table of contents. If linking a library
16493 # or program results in "error TOC overflow" add -mminimal-toc to
16494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16497 archive_cmds=''
16498 hardcode_direct=yes
16499 hardcode_direct_absolute=yes
16500 hardcode_libdir_separator=':'
16501 link_all_deplibs=yes
16502 file_list_spec='${wl}-f,'
16504 if test "$GCC" = yes; then
16505 case $host_os in aix4.[012]|aix4.[012].*)
16506 # We only want to do this on AIX 4.2 and lower, the check
16507 # below for broken collect2 doesn't work under 4.3+
16508 collect2name=`${CC} -print-prog-name=collect2`
16509 if test -f "$collect2name" &&
16510 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16511 then
16512 # We have reworked collect2
16514 else
16515 # We have old collect2
16516 hardcode_direct=unsupported
16517 # It fails to find uninstalled libraries when the uninstalled
16518 # path is not listed in the libpath. Setting hardcode_minus_L
16519 # to unsupported forces relinking
16520 hardcode_minus_L=yes
16521 hardcode_libdir_flag_spec='-L$libdir'
16522 hardcode_libdir_separator=
16525 esac
16526 shared_flag='-shared'
16527 if test "$aix_use_runtimelinking" = yes; then
16528 shared_flag="$shared_flag "'${wl}-G'
16530 else
16531 # not using gcc
16532 if test "$host_cpu" = ia64; then
16533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16534 # chokes on -Wl,-G. The following line is correct:
16535 shared_flag='-G'
16536 else
16537 if test "$aix_use_runtimelinking" = yes; then
16538 shared_flag='${wl}-G'
16539 else
16540 shared_flag='${wl}-bM:SRE'
16545 export_dynamic_flag_spec='${wl}-bexpall'
16546 # It seems that -bexpall does not export symbols beginning with
16547 # underscore (_), so it is better to generate a list of symbols to export.
16548 always_export_symbols=yes
16549 if test "$aix_use_runtimelinking" = yes; then
16550 # Warning - without using the other runtime loading flags (-brtl),
16551 # -berok will link without error, but may produce a broken library.
16552 allow_undefined_flag='-berok'
16553 # Determine the default libpath from the value encoded in an
16554 # empty executable.
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16559 main ()
16563 return 0;
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16568 lt_aix_libpath_sed='
16569 /Import File Strings/,/^$/ {
16570 /^0/ {
16571 s/^0 *\(.*\)$/\1/
16575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16576 # Check for a 64-bit object if we didn't find anything.
16577 if test -z "$aix_libpath"; then
16578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16586 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"
16587 else
16588 if test "$host_cpu" = ia64; then
16589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16590 allow_undefined_flag="-z nodefs"
16591 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"
16592 else
16593 # Determine the default libpath from the value encoded in an
16594 # empty executable.
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16599 main ()
16603 return 0;
16605 _ACEOF
16606 if ac_fn_c_try_link "$LINENO"; then :
16608 lt_aix_libpath_sed='
16609 /Import File Strings/,/^$/ {
16610 /^0/ {
16611 s/^0 *\(.*\)$/\1/
16615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16616 # Check for a 64-bit object if we didn't find anything.
16617 if test -z "$aix_libpath"; then
16618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16626 # Warning - without using the other run time loading flags,
16627 # -berok will link without error, but may produce a broken library.
16628 no_undefined_flag=' ${wl}-bernotok'
16629 allow_undefined_flag=' ${wl}-berok'
16630 if test "$with_gnu_ld" = yes; then
16631 # We only use this code for GNU lds that support --whole-archive.
16632 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16633 else
16634 # Exported symbols can be pulled into shared objects from archives
16635 whole_archive_flag_spec='$convenience'
16637 archive_cmds_need_lc=yes
16638 # This is similar to how AIX traditionally builds its shared libraries.
16639 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'
16644 amigaos*)
16645 case $host_cpu in
16646 powerpc)
16647 # see comment about AmigaOS4 .so support
16648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16649 archive_expsym_cmds=''
16651 m68k)
16652 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)'
16653 hardcode_libdir_flag_spec='-L$libdir'
16654 hardcode_minus_L=yes
16656 esac
16659 bsdi[45]*)
16660 export_dynamic_flag_spec=-rdynamic
16663 cygwin* | mingw* | pw32* | cegcc*)
16664 # When not using gcc, we currently assume that we are using
16665 # Microsoft Visual C++.
16666 # hardcode_libdir_flag_spec is actually meaningless, as there is
16667 # no search path for DLLs.
16668 hardcode_libdir_flag_spec=' '
16669 allow_undefined_flag=unsupported
16670 # Tell ltmain to make .lib files, not .a files.
16671 libext=lib
16672 # Tell ltmain to make .dll files, not .so files.
16673 shrext_cmds=".dll"
16674 # FIXME: Setting linknames here is a bad hack.
16675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16676 # The linker will automatically build a .lib file if we build a DLL.
16677 old_archive_from_new_cmds='true'
16678 # FIXME: Should let the user specify the lib program.
16679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16680 fix_srcfile_path='`cygpath -w "$srcfile"`'
16681 enable_shared_with_static_runtimes=yes
16684 darwin* | rhapsody*)
16687 archive_cmds_need_lc=no
16688 hardcode_direct=no
16689 hardcode_automatic=yes
16690 hardcode_shlibpath_var=unsupported
16691 if test "$lt_cv_ld_force_load" = "yes"; then
16692 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\"`'
16693 else
16694 whole_archive_flag_spec=''
16696 link_all_deplibs=yes
16697 allow_undefined_flag="$_lt_dar_allow_undefined"
16698 case $cc_basename in
16699 ifort*) _lt_dar_can_shared=yes ;;
16700 *) _lt_dar_can_shared=$GCC ;;
16701 esac
16702 if test "$_lt_dar_can_shared" = "yes"; then
16703 output_verbose_link_cmd=func_echo_all
16704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16706 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}"
16707 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}"
16709 else
16710 ld_shlibs=no
16715 dgux*)
16716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec='-L$libdir'
16718 hardcode_shlibpath_var=no
16721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16722 # support. Future versions do this automatically, but an explicit c++rt0.o
16723 # does not break anything, and helps significantly (at the cost of a little
16724 # extra space).
16725 freebsd2.2*)
16726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16727 hardcode_libdir_flag_spec='-R$libdir'
16728 hardcode_direct=yes
16729 hardcode_shlibpath_var=no
16732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16733 freebsd2.*)
16734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct=yes
16736 hardcode_minus_L=yes
16737 hardcode_shlibpath_var=no
16740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16741 freebsd* | dragonfly*)
16742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16743 hardcode_libdir_flag_spec='-R$libdir'
16744 hardcode_direct=yes
16745 hardcode_shlibpath_var=no
16748 hpux9*)
16749 if test "$GCC" = yes; then
16750 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'
16751 else
16752 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'
16754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16755 hardcode_libdir_separator=:
16756 hardcode_direct=yes
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L=yes
16761 export_dynamic_flag_spec='${wl}-E'
16764 hpux10*)
16765 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16767 else
16768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16770 if test "$with_gnu_ld" = no; then
16771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16772 hardcode_libdir_flag_spec_ld='+b $libdir'
16773 hardcode_libdir_separator=:
16774 hardcode_direct=yes
16775 hardcode_direct_absolute=yes
16776 export_dynamic_flag_spec='${wl}-E'
16777 # hardcode_minus_L: Not really in the search PATH,
16778 # but as the default location of the library.
16779 hardcode_minus_L=yes
16783 hpux11*)
16784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16785 case $host_cpu in
16786 hppa*64*)
16787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789 ia64*)
16790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16795 esac
16796 else
16797 case $host_cpu in
16798 hppa*64*)
16799 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16801 ia64*)
16802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16806 # Older versions of the 11.00 compiler do not understand -b yet
16807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16809 $as_echo_n "checking if $CC understands -b... " >&6; }
16810 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813 lt_cv_prog_compiler__b=no
16814 save_LDFLAGS="$LDFLAGS"
16815 LDFLAGS="$LDFLAGS -b"
16816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16818 # The linker can only warn and ignore the option if not recognized
16819 # So say no if there are warnings
16820 if test -s conftest.err; then
16821 # Append any errors to the config.log.
16822 cat conftest.err 1>&5
16823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16825 if diff conftest.exp conftest.er2 >/dev/null; then
16826 lt_cv_prog_compiler__b=yes
16828 else
16829 lt_cv_prog_compiler__b=yes
16832 $RM -r conftest*
16833 LDFLAGS="$save_LDFLAGS"
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16839 if test x"$lt_cv_prog_compiler__b" = xyes; then
16840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16841 else
16842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16846 esac
16848 if test "$with_gnu_ld" = no; then
16849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16850 hardcode_libdir_separator=:
16852 case $host_cpu in
16853 hppa*64*|ia64*)
16854 hardcode_direct=no
16855 hardcode_shlibpath_var=no
16858 hardcode_direct=yes
16859 hardcode_direct_absolute=yes
16860 export_dynamic_flag_spec='${wl}-E'
16862 # hardcode_minus_L: Not really in the search PATH,
16863 # but as the default location of the library.
16864 hardcode_minus_L=yes
16866 esac
16870 irix5* | irix6* | nonstopux*)
16871 if test "$GCC" = yes; then
16872 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'
16873 # Try to use the -exported_symbol ld option, if it does not
16874 # work, assume that -exports_file does not work either and
16875 # implicitly export all symbols.
16876 save_LDFLAGS="$LDFLAGS"
16877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 int foo(void) {}
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 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'
16886 rm -f core conftest.err conftest.$ac_objext \
16887 conftest$ac_exeext conftest.$ac_ext
16888 LDFLAGS="$save_LDFLAGS"
16889 else
16890 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'
16891 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'
16893 archive_cmds_need_lc='no'
16894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator=:
16896 inherit_rpath=yes
16897 link_all_deplibs=yes
16900 netbsd*)
16901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16903 else
16904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16906 hardcode_libdir_flag_spec='-R$libdir'
16907 hardcode_direct=yes
16908 hardcode_shlibpath_var=no
16911 newsos6)
16912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16913 hardcode_direct=yes
16914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16915 hardcode_libdir_separator=:
16916 hardcode_shlibpath_var=no
16919 *nto* | *qnx*)
16922 openbsd*)
16923 if test -f /usr/libexec/ld.so; then
16924 hardcode_direct=yes
16925 hardcode_shlibpath_var=no
16926 hardcode_direct_absolute=yes
16927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16931 export_dynamic_flag_spec='${wl}-E'
16932 else
16933 case $host_os in
16934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_libdir_flag_spec='-R$libdir'
16939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16942 esac
16944 else
16945 ld_shlibs=no
16949 os2*)
16950 hardcode_libdir_flag_spec='-L$libdir'
16951 hardcode_minus_L=yes
16952 allow_undefined_flag=unsupported
16953 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'
16954 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16957 osf3*)
16958 if test "$GCC" = yes; then
16959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16960 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'
16961 else
16962 allow_undefined_flag=' -expect_unresolved \*'
16963 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'
16965 archive_cmds_need_lc='no'
16966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16967 hardcode_libdir_separator=:
16970 osf4* | osf5*) # as osf3* with the addition of -msym flag
16971 if test "$GCC" = yes; then
16972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16973 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'
16974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16975 else
16976 allow_undefined_flag=' -expect_unresolved \*'
16977 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'
16978 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~
16979 $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'
16981 # Both c and cxx compiler support -rpath directly
16982 hardcode_libdir_flag_spec='-rpath $libdir'
16984 archive_cmds_need_lc='no'
16985 hardcode_libdir_separator=:
16988 solaris*)
16989 no_undefined_flag=' -z defs'
16990 if test "$GCC" = yes; then
16991 wlarc='${wl}'
16992 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16995 else
16996 case `$CC -V 2>&1` in
16997 *"Compilers 5.0"*)
16998 wlarc=''
16999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17004 wlarc='${wl}'
17005 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17009 esac
17011 hardcode_libdir_flag_spec='-R$libdir'
17012 hardcode_shlibpath_var=no
17013 case $host_os in
17014 solaris2.[0-5] | solaris2.[0-5].*) ;;
17016 # The compiler driver will combine and reorder linker options,
17017 # but understands `-z linker_flag'. GCC discards it without `$wl',
17018 # but is careful enough not to reorder.
17019 # Supported since Solaris 2.6 (maybe 2.5.1?)
17020 if test "$GCC" = yes; then
17021 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17022 else
17023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17026 esac
17027 link_all_deplibs=yes
17030 sunos4*)
17031 if test "x$host_vendor" = xsequent; then
17032 # Use $CC to link under sequent, because it throws in some extra .o
17033 # files that make .init and .fini sections work.
17034 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17035 else
17036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17038 hardcode_libdir_flag_spec='-L$libdir'
17039 hardcode_direct=yes
17040 hardcode_minus_L=yes
17041 hardcode_shlibpath_var=no
17044 sysv4)
17045 case $host_vendor in
17046 sni)
17047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_direct=yes # is this really true???
17050 siemens)
17051 ## LD is ld it makes a PLAMLIB
17052 ## CC just makes a GrossModule.
17053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17054 reload_cmds='$CC -r -o $output$reload_objs'
17055 hardcode_direct=no
17057 motorola)
17058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17061 esac
17062 runpath_var='LD_RUN_PATH'
17063 hardcode_shlibpath_var=no
17066 sysv4.3*)
17067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 hardcode_shlibpath_var=no
17069 export_dynamic_flag_spec='-Bexport'
17072 sysv4*MP*)
17073 if test -d /usr/nec; then
17074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075 hardcode_shlibpath_var=no
17076 runpath_var=LD_RUN_PATH
17077 hardcode_runpath_var=yes
17078 ld_shlibs=yes
17082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17083 no_undefined_flag='${wl}-z,text'
17084 archive_cmds_need_lc=no
17085 hardcode_shlibpath_var=no
17086 runpath_var='LD_RUN_PATH'
17088 if test "$GCC" = yes; then
17089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17091 else
17092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 sysv5* | sco3.2v5* | sco5v6*)
17098 # Note: We can NOT use -z defs as we might desire, because we do not
17099 # link with -lc, and that would cause any symbols used from libc to
17100 # always be unresolved, which means just about no library would
17101 # ever link correctly. If we're not using GNU ld we use -z text
17102 # though, which does catch some bad symbols but isn't as heavy-handed
17103 # as -z defs.
17104 no_undefined_flag='${wl}-z,text'
17105 allow_undefined_flag='${wl}-z,nodefs'
17106 archive_cmds_need_lc=no
17107 hardcode_shlibpath_var=no
17108 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17109 hardcode_libdir_separator=':'
17110 link_all_deplibs=yes
17111 export_dynamic_flag_spec='${wl}-Bexport'
17112 runpath_var='LD_RUN_PATH'
17114 if test "$GCC" = yes; then
17115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17117 else
17118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 uts4*)
17124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_libdir_flag_spec='-L$libdir'
17126 hardcode_shlibpath_var=no
17130 ld_shlibs=no
17132 esac
17134 if test x$host_vendor = xsni; then
17135 case $host in
17136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17137 export_dynamic_flag_spec='${wl}-Blargedynsym'
17139 esac
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17144 $as_echo "$ld_shlibs" >&6; }
17145 test "$ld_shlibs" = no && can_build_shared=no
17147 with_gnu_ld=$with_gnu_ld
17164 # Do we need to explicitly link libc?
17166 case "x$archive_cmds_need_lc" in
17167 x|xyes)
17168 # Assume -lc should be added
17169 archive_cmds_need_lc=yes
17171 if test "$enable_shared" = yes && test "$GCC" = yes; then
17172 case $archive_cmds in
17173 *'~'*)
17174 # FIXME: we may have to deal with multi-command sequences.
17176 '$CC '*)
17177 # Test whether the compiler implicitly links with -lc since on some
17178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17179 # to ld, don't add -lc before -lgcc.
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17182 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17183 $as_echo_n "(cached) " >&6
17184 else
17185 $RM conftest*
17186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17189 (eval $ac_compile) 2>&5
17190 ac_status=$?
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; } 2>conftest.err; then
17193 soname=conftest
17194 lib=conftest
17195 libobjs=conftest.$ac_objext
17196 deplibs=
17197 wl=$lt_prog_compiler_wl
17198 pic_flag=$lt_prog_compiler_pic
17199 compiler_flags=-v
17200 linker_flags=-v
17201 verstring=
17202 output_objdir=.
17203 libname=conftest
17204 lt_save_allow_undefined_flag=$allow_undefined_flag
17205 allow_undefined_flag=
17206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17207 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17208 ac_status=$?
17209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17210 test $ac_status = 0; }
17211 then
17212 lt_cv_archive_cmds_need_lc=no
17213 else
17214 lt_cv_archive_cmds_need_lc=yes
17216 allow_undefined_flag=$lt_save_allow_undefined_flag
17217 else
17218 cat conftest.err 1>&5
17220 $RM conftest*
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17225 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17227 esac
17230 esac
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17391 if test "$GCC" = yes; then
17392 case $host_os in
17393 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17394 *) lt_awk_arg="/^libraries:/" ;;
17395 esac
17396 case $host_os in
17397 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17398 *) lt_sed_strip_eq="s,=/,/,g" ;;
17399 esac
17400 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17401 case $lt_search_path_spec in
17402 *\;*)
17403 # if the path contains ";" then we assume it to be the separator
17404 # otherwise default to the standard path separator (i.e. ":") - it is
17405 # assumed that no part of a normal pathname contains ";" but that should
17406 # okay in the real world where ";" in dirpaths is itself problematic.
17407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17412 esac
17413 # Ok, now we have the path, separated by spaces, we can step through it
17414 # and add multilib dir if necessary.
17415 lt_tmp_lt_search_path_spec=
17416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17417 for lt_sys_path in $lt_search_path_spec; do
17418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17420 else
17421 test -d "$lt_sys_path" && \
17422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17424 done
17425 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17426 BEGIN {RS=" "; FS="/|\n";} {
17427 lt_foo="";
17428 lt_count=0;
17429 for (lt_i = NF; lt_i > 0; lt_i--) {
17430 if ($lt_i != "" && $lt_i != ".") {
17431 if ($lt_i == "..") {
17432 lt_count++;
17433 } else {
17434 if (lt_count == 0) {
17435 lt_foo="/" $lt_i lt_foo;
17436 } else {
17437 lt_count--;
17442 if (lt_foo != "") { lt_freq[lt_foo]++; }
17443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17445 # AWK program above erroneously prepends '/' to C:/dos/paths
17446 # for these hosts.
17447 case $host_os in
17448 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17449 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17450 esac
17451 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17452 else
17453 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17455 library_names_spec=
17456 libname_spec='lib$name'
17457 soname_spec=
17458 shrext_cmds=".so"
17459 postinstall_cmds=
17460 postuninstall_cmds=
17461 finish_cmds=
17462 finish_eval=
17463 shlibpath_var=
17464 shlibpath_overrides_runpath=unknown
17465 version_type=none
17466 dynamic_linker="$host_os ld.so"
17467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17468 need_lib_prefix=unknown
17469 hardcode_into_libs=no
17471 # when you set need_version to no, make sure it does not cause -set_version
17472 # flags to be left without arguments
17473 need_version=unknown
17475 case $host_os in
17476 aix3*)
17477 version_type=linux
17478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17479 shlibpath_var=LIBPATH
17481 # AIX 3 has no versioning support, so we append a major version to the name.
17482 soname_spec='${libname}${release}${shared_ext}$major'
17485 aix[4-9]*)
17486 version_type=linux
17487 need_lib_prefix=no
17488 need_version=no
17489 hardcode_into_libs=yes
17490 if test "$host_cpu" = ia64; then
17491 # AIX 5 supports IA64
17492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 else
17495 # With GCC up to 2.95.x, collect2 would create an import file
17496 # for dependence libraries. The import file would start with
17497 # the line `#! .'. This would cause the generated library to
17498 # depend on `.', always an invalid library. This was fixed in
17499 # development snapshots of GCC prior to 3.0.
17500 case $host_os in
17501 aix4 | aix4.[01] | aix4.[01].*)
17502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17503 echo ' yes '
17504 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17506 else
17507 can_build_shared=no
17510 esac
17511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17512 # soname into executable. Probably we can add versioning support to
17513 # collect2, so additional links can be useful in future.
17514 if test "$aix_use_runtimelinking" = yes; then
17515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17516 # instead of lib<name>.a to let people know that these are not
17517 # typical AIX shared libraries.
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 else
17520 # We preserve .a as extension for shared libraries through AIX4.2
17521 # and later when we are not doing run time linking.
17522 library_names_spec='${libname}${release}.a $libname.a'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LIBPATH
17529 amigaos*)
17530 case $host_cpu in
17531 powerpc)
17532 # Since July 2007 AmigaOS4 officially supports .so libraries.
17533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536 m68k)
17537 library_names_spec='$libname.ixlibrary $libname.a'
17538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17539 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'
17541 esac
17544 beos*)
17545 library_names_spec='${libname}${shared_ext}'
17546 dynamic_linker="$host_os ld.so"
17547 shlibpath_var=LIBRARY_PATH
17550 bsdi[45]*)
17551 version_type=linux
17552 need_version=no
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17559 # the default ld.so.conf also contains /usr/contrib/lib and
17560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17561 # libtool to hard-code these into programs
17564 cygwin* | mingw* | pw32* | cegcc*)
17565 version_type=windows
17566 shrext_cmds=".dll"
17567 need_version=no
17568 need_lib_prefix=no
17570 case $GCC,$host_os in
17571 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17572 library_names_spec='$libname.dll.a'
17573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17574 postinstall_cmds='base_file=`basename \${file}`~
17575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17576 dldir=$destdir/`dirname \$dlpath`~
17577 test -d \$dldir || mkdir -p \$dldir~
17578 $install_prog $dir/$dlname \$dldir/$dlname~
17579 chmod a+x \$dldir/$dlname~
17580 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17581 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17584 dlpath=$dir/\$dldll~
17585 $RM \$dlpath'
17586 shlibpath_overrides_runpath=yes
17588 case $host_os in
17589 cygwin*)
17590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17595 mingw* | cegcc*)
17596 # MinGW DLLs use traditional 'lib' prefix
17597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17599 pw32*)
17600 # pw32 DLLs use 'pw' prefix rather than 'lib'
17601 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17603 esac
17607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17609 esac
17610 dynamic_linker='Win32 ld.exe'
17611 # FIXME: first we should search . and the directory the executable is in
17612 shlibpath_var=PATH
17615 darwin* | rhapsody*)
17616 dynamic_linker="$host_os dyld"
17617 version_type=darwin
17618 need_lib_prefix=no
17619 need_version=no
17620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17621 soname_spec='${libname}${release}${major}$shared_ext'
17622 shlibpath_overrides_runpath=yes
17623 shlibpath_var=DYLD_LIBRARY_PATH
17624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17630 dgux*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17639 freebsd* | dragonfly*)
17640 # DragonFly does not have aout. When/if they implement a new
17641 # versioning mechanism, adjust this.
17642 if test -x /usr/bin/objformat; then
17643 objformat=`/usr/bin/objformat`
17644 else
17645 case $host_os in
17646 freebsd[23].*) objformat=aout ;;
17647 *) objformat=elf ;;
17648 esac
17650 version_type=freebsd-$objformat
17651 case $version_type in
17652 freebsd-elf*)
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17654 need_version=no
17655 need_lib_prefix=no
17657 freebsd-*)
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17659 need_version=yes
17661 esac
17662 shlibpath_var=LD_LIBRARY_PATH
17663 case $host_os in
17664 freebsd2.*)
17665 shlibpath_overrides_runpath=yes
17667 freebsd3.[01]* | freebsdelf3.[01]*)
17668 shlibpath_overrides_runpath=yes
17669 hardcode_into_libs=yes
17671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17673 shlibpath_overrides_runpath=no
17674 hardcode_into_libs=yes
17676 *) # from 4.6 on, and DragonFly
17677 shlibpath_overrides_runpath=yes
17678 hardcode_into_libs=yes
17680 esac
17683 gnu*)
17684 version_type=linux
17685 need_lib_prefix=no
17686 need_version=no
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 hardcode_into_libs=yes
17693 haiku*)
17694 version_type=linux
17695 need_lib_prefix=no
17696 need_version=no
17697 dynamic_linker="$host_os runtime_loader"
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 shlibpath_var=LIBRARY_PATH
17701 shlibpath_overrides_runpath=yes
17702 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17703 hardcode_into_libs=yes
17706 hpux9* | hpux10* | hpux11*)
17707 # Give a soname corresponding to the major version so that dld.sl refuses to
17708 # link against other versions.
17709 version_type=sunos
17710 need_lib_prefix=no
17711 need_version=no
17712 case $host_cpu in
17713 ia64*)
17714 shrext_cmds='.so'
17715 hardcode_into_libs=yes
17716 dynamic_linker="$host_os dld.so"
17717 shlibpath_var=LD_LIBRARY_PATH
17718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 if test "X$HPUX_IA64_MODE" = X32; then
17722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17723 else
17724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17728 hppa*64*)
17729 shrext_cmds='.sl'
17730 hardcode_into_libs=yes
17731 dynamic_linker="$host_os dld.sl"
17732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 soname_spec='${libname}${release}${shared_ext}$major'
17736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17740 shrext_cmds='.sl'
17741 dynamic_linker="$host_os dld.sl"
17742 shlibpath_var=SHLIB_PATH
17743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17747 esac
17748 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17749 postinstall_cmds='chmod 555 $lib'
17750 # or fails outright, so override atomically:
17751 install_override_mode=555
17754 interix[3-9]*)
17755 version_type=linux
17756 need_lib_prefix=no
17757 need_version=no
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17759 soname_spec='${libname}${release}${shared_ext}$major'
17760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=no
17763 hardcode_into_libs=yes
17766 irix5* | irix6* | nonstopux*)
17767 case $host_os in
17768 nonstopux*) version_type=nonstopux ;;
17770 if test "$lt_cv_prog_gnu_ld" = yes; then
17771 version_type=linux
17772 else
17773 version_type=irix
17774 fi ;;
17775 esac
17776 need_lib_prefix=no
17777 need_version=no
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17780 case $host_os in
17781 irix5* | nonstopux*)
17782 libsuff= shlibsuff=
17785 case $LD in # libtool.m4 will add one of these switches to LD
17786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17787 libsuff= shlibsuff= libmagic=32-bit;;
17788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17789 libsuff=32 shlibsuff=N32 libmagic=N32;;
17790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17792 *) libsuff= shlibsuff= libmagic=never-match;;
17793 esac
17795 esac
17796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17797 shlibpath_overrides_runpath=no
17798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17800 hardcode_into_libs=yes
17803 # No shared lib support for Linux oldld, aout, or coff.
17804 linux*oldld* | linux*aout* | linux*coff*)
17805 dynamic_linker=no
17808 # This must be Linux ELF.
17809 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17810 version_type=linux
17811 need_lib_prefix=no
17812 need_version=no
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec='${libname}${release}${shared_ext}$major'
17815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17816 shlibpath_var=LD_LIBRARY_PATH
17817 shlibpath_overrides_runpath=no
17819 # Some binutils ld are patched to set DT_RUNPATH
17820 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 lt_cv_shlibpath_overrides_runpath=no
17824 save_LDFLAGS=$LDFLAGS
17825 save_libdir=$libdir
17826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17832 main ()
17836 return 0;
17838 _ACEOF
17839 if ac_fn_c_try_link "$LINENO"; then :
17840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17841 lt_cv_shlibpath_overrides_runpath=yes
17844 rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17846 LDFLAGS=$save_LDFLAGS
17847 libdir=$save_libdir
17851 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17853 # This implies no fast_install, which is unacceptable.
17854 # Some rework will be needed to allow for fast_install
17855 # before this can be enabled.
17856 hardcode_into_libs=yes
17858 # Append ld.so.conf contents to the search path
17859 if test -f /etc/ld.so.conf; then
17860 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' ' '`
17861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17864 # We used to test for /lib/ld.so.1 and disable shared libraries on
17865 # powerpc, because MkLinux only supported shared libraries with the
17866 # GNU dynamic linker. Since this was broken with cross compilers,
17867 # most powerpc-linux boxes support dynamic linking these days and
17868 # people can always --disable-shared, the test was removed, and we
17869 # assume the GNU/Linux dynamic linker is in use.
17870 dynamic_linker='GNU/Linux ld.so'
17873 netbsd*)
17874 version_type=sunos
17875 need_lib_prefix=no
17876 need_version=no
17877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17880 dynamic_linker='NetBSD (a.out) ld.so'
17881 else
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17883 soname_spec='${libname}${release}${shared_ext}$major'
17884 dynamic_linker='NetBSD ld.elf_so'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=yes
17888 hardcode_into_libs=yes
17891 newsos6)
17892 version_type=linux
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=yes
17898 *nto* | *qnx*)
17899 version_type=qnx
17900 need_lib_prefix=no
17901 need_version=no
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec='${libname}${release}${shared_ext}$major'
17904 shlibpath_var=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath=no
17906 hardcode_into_libs=yes
17907 dynamic_linker='ldqnx.so'
17910 openbsd*)
17911 version_type=sunos
17912 sys_lib_dlsearch_path_spec="/usr/lib"
17913 need_lib_prefix=no
17914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17915 case $host_os in
17916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17917 *) need_version=no ;;
17918 esac
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17923 case $host_os in
17924 openbsd2.[89] | openbsd2.[89].*)
17925 shlibpath_overrides_runpath=no
17928 shlibpath_overrides_runpath=yes
17930 esac
17931 else
17932 shlibpath_overrides_runpath=yes
17936 os2*)
17937 libname_spec='$name'
17938 shrext_cmds=".dll"
17939 need_lib_prefix=no
17940 library_names_spec='$libname${shared_ext} $libname.a'
17941 dynamic_linker='OS/2 ld.exe'
17942 shlibpath_var=LIBPATH
17945 osf3* | osf4* | osf5*)
17946 version_type=osf
17947 need_lib_prefix=no
17948 need_version=no
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17956 rdos*)
17957 dynamic_linker=no
17960 solaris*)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=yes
17968 hardcode_into_libs=yes
17969 # ldd complains unless libraries are executable
17970 postinstall_cmds='chmod +x $lib'
17973 sunos4*)
17974 version_type=sunos
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes
17979 if test "$with_gnu_ld" = yes; then
17980 need_lib_prefix=no
17982 need_version=yes
17985 sysv4 | sysv4.3*)
17986 version_type=linux
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LD_LIBRARY_PATH
17990 case $host_vendor in
17991 sni)
17992 shlibpath_overrides_runpath=no
17993 need_lib_prefix=no
17994 runpath_var=LD_RUN_PATH
17996 siemens)
17997 need_lib_prefix=no
17999 motorola)
18000 need_lib_prefix=no
18001 need_version=no
18002 shlibpath_overrides_runpath=no
18003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18005 esac
18008 sysv4*MP*)
18009 if test -d /usr/nec ;then
18010 version_type=linux
18011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18012 soname_spec='$libname${shared_ext}.$major'
18013 shlibpath_var=LD_LIBRARY_PATH
18017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18018 version_type=freebsd-elf
18019 need_lib_prefix=no
18020 need_version=no
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath=yes
18025 hardcode_into_libs=yes
18026 if test "$with_gnu_ld" = yes; then
18027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18028 else
18029 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18030 case $host_os in
18031 sco3.2v5*)
18032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18034 esac
18036 sys_lib_dlsearch_path_spec='/usr/lib'
18039 tpf*)
18040 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18041 version_type=linux
18042 need_lib_prefix=no
18043 need_version=no
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=no
18047 hardcode_into_libs=yes
18050 uts4*)
18051 version_type=linux
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 shlibpath_var=LD_LIBRARY_PATH
18058 dynamic_linker=no
18060 esac
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18062 $as_echo "$dynamic_linker" >&6; }
18063 test "$dynamic_linker" = no && can_build_shared=no
18065 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18066 if test "$GCC" = yes; then
18067 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18070 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18071 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18073 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18074 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18170 hardcode_action=
18171 if test -n "$hardcode_libdir_flag_spec" ||
18172 test -n "$runpath_var" ||
18173 test "X$hardcode_automatic" = "Xyes" ; then
18175 # We can hardcode non-existent directories.
18176 if test "$hardcode_direct" != no &&
18177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18178 # have to relink, otherwise we might link with an installed library
18179 # when we should be linking with a yet-to-be-installed one
18180 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18181 test "$hardcode_minus_L" != no; then
18182 # Linking always hardcodes the temporary library directory.
18183 hardcode_action=relink
18184 else
18185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18186 hardcode_action=immediate
18188 else
18189 # We cannot hardcode anything, or else we can only hardcode existing
18190 # directories.
18191 hardcode_action=unsupported
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18194 $as_echo "$hardcode_action" >&6; }
18196 if test "$hardcode_action" = relink ||
18197 test "$inherit_rpath" = yes; then
18198 # Fast installation is not supported
18199 enable_fast_install=no
18200 elif test "$shlibpath_overrides_runpath" = yes ||
18201 test "$enable_shared" = no; then
18202 # Fast installation is not necessary
18203 enable_fast_install=needless
18211 if test "x$enable_dlopen" != xyes; then
18212 enable_dlopen=unknown
18213 enable_dlopen_self=unknown
18214 enable_dlopen_self_static=unknown
18215 else
18216 lt_cv_dlopen=no
18217 lt_cv_dlopen_libs=
18219 case $host_os in
18220 beos*)
18221 lt_cv_dlopen="load_add_on"
18222 lt_cv_dlopen_libs=
18223 lt_cv_dlopen_self=yes
18226 mingw* | pw32* | cegcc*)
18227 lt_cv_dlopen="LoadLibrary"
18228 lt_cv_dlopen_libs=
18231 cygwin*)
18232 lt_cv_dlopen="dlopen"
18233 lt_cv_dlopen_libs=
18236 darwin*)
18237 # if libdl is installed we need to link against it
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18242 else
18243 ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-ldl $LIBS"
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char dlopen ();
18256 main ()
18258 return dlopen ();
18260 return 0;
18262 _ACEOF
18263 if ac_fn_c_try_link "$LINENO"; then :
18264 ac_cv_lib_dl_dlopen=yes
18265 else
18266 ac_cv_lib_dl_dlopen=no
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18274 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18276 else
18278 lt_cv_dlopen="dyld"
18279 lt_cv_dlopen_libs=
18280 lt_cv_dlopen_self=yes
18287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18288 if test "x$ac_cv_func_shl_load" = x""yes; then :
18289 lt_cv_dlopen="shl_load"
18290 else
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18293 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18294 $as_echo_n "(cached) " >&6
18295 else
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-ldld $LIBS"
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char shl_load ();
18309 main ()
18311 return shl_load ();
18313 return 0;
18315 _ACEOF
18316 if ac_fn_c_try_link "$LINENO"; then :
18317 ac_cv_lib_dld_shl_load=yes
18318 else
18319 ac_cv_lib_dld_shl_load=no
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18327 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18328 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18329 else
18330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18331 if test "x$ac_cv_func_dlopen" = x""yes; then :
18332 lt_cv_dlopen="dlopen"
18333 else
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18338 else
18339 ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-ldl $LIBS"
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18347 #ifdef __cplusplus
18348 extern "C"
18349 #endif
18350 char dlopen ();
18352 main ()
18354 return dlopen ();
18356 return 0;
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 ac_cv_lib_dl_dlopen=yes
18361 else
18362 ac_cv_lib_dl_dlopen=no
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18370 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18372 else
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18375 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18376 $as_echo_n "(cached) " >&6
18377 else
18378 ac_check_lib_save_LIBS=$LIBS
18379 LIBS="-lsvld $LIBS"
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18383 /* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18386 #ifdef __cplusplus
18387 extern "C"
18388 #endif
18389 char dlopen ();
18391 main ()
18393 return dlopen ();
18395 return 0;
18397 _ACEOF
18398 if ac_fn_c_try_link "$LINENO"; then :
18399 ac_cv_lib_svld_dlopen=yes
18400 else
18401 ac_cv_lib_svld_dlopen=no
18403 rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18409 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18411 else
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18415 $as_echo_n "(cached) " >&6
18416 else
18417 ac_check_lib_save_LIBS=$LIBS
18418 LIBS="-ldld $LIBS"
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char dld_link ();
18430 main ()
18432 return dld_link ();
18434 return 0;
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"; then :
18438 ac_cv_lib_dld_dld_link=yes
18439 else
18440 ac_cv_lib_dld_dld_link=no
18442 rm -f core conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18444 LIBS=$ac_check_lib_save_LIBS
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18447 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18448 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18449 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18468 esac
18470 if test "x$lt_cv_dlopen" != xno; then
18471 enable_dlopen=yes
18472 else
18473 enable_dlopen=no
18476 case $lt_cv_dlopen in
18477 dlopen)
18478 save_CPPFLAGS="$CPPFLAGS"
18479 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18481 save_LDFLAGS="$LDFLAGS"
18482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18484 save_LIBS="$LIBS"
18485 LIBS="$lt_cv_dlopen_libs $LIBS"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18488 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18489 if test "${lt_cv_dlopen_self+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 if test "$cross_compiling" = yes; then :
18493 lt_cv_dlopen_self=cross
18494 else
18495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496 lt_status=$lt_dlunknown
18497 cat > conftest.$ac_ext <<_LT_EOF
18498 #line 18498 "configure"
18499 #include "confdefs.h"
18501 #if HAVE_DLFCN_H
18502 #include <dlfcn.h>
18503 #endif
18505 #include <stdio.h>
18507 #ifdef RTLD_GLOBAL
18508 # define LT_DLGLOBAL RTLD_GLOBAL
18509 #else
18510 # ifdef DL_GLOBAL
18511 # define LT_DLGLOBAL DL_GLOBAL
18512 # else
18513 # define LT_DLGLOBAL 0
18514 # endif
18515 #endif
18517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518 find out it does not work in some platform. */
18519 #ifndef LT_DLLAZY_OR_NOW
18520 # ifdef RTLD_LAZY
18521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18522 # else
18523 # ifdef DL_LAZY
18524 # define LT_DLLAZY_OR_NOW DL_LAZY
18525 # else
18526 # ifdef RTLD_NOW
18527 # define LT_DLLAZY_OR_NOW RTLD_NOW
18528 # else
18529 # ifdef DL_NOW
18530 # define LT_DLLAZY_OR_NOW DL_NOW
18531 # else
18532 # define LT_DLLAZY_OR_NOW 0
18533 # endif
18534 # endif
18535 # endif
18536 # endif
18537 #endif
18539 /* When -fvisbility=hidden is used, assume the code has been annotated
18540 correspondingly for the symbols needed. */
18541 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18542 void fnord () __attribute__((visibility("default")));
18543 #endif
18545 void fnord () { int i=42; }
18546 int main ()
18548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18549 int status = $lt_dlunknown;
18551 if (self)
18553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18554 else
18556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18557 else puts (dlerror ());
18559 /* dlclose (self); */
18561 else
18562 puts (dlerror ());
18564 return status;
18566 _LT_EOF
18567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18568 (eval $ac_link) 2>&5
18569 ac_status=$?
18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18572 (./conftest; exit; ) >&5 2>/dev/null
18573 lt_status=$?
18574 case x$lt_status in
18575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18578 esac
18579 else :
18580 # compilation failed
18581 lt_cv_dlopen_self=no
18584 rm -fr conftest*
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18589 $as_echo "$lt_cv_dlopen_self" >&6; }
18591 if test "x$lt_cv_dlopen_self" = xyes; then
18592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598 if test "$cross_compiling" = yes; then :
18599 lt_cv_dlopen_self_static=cross
18600 else
18601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18602 lt_status=$lt_dlunknown
18603 cat > conftest.$ac_ext <<_LT_EOF
18604 #line 18604 "configure"
18605 #include "confdefs.h"
18607 #if HAVE_DLFCN_H
18608 #include <dlfcn.h>
18609 #endif
18611 #include <stdio.h>
18613 #ifdef RTLD_GLOBAL
18614 # define LT_DLGLOBAL RTLD_GLOBAL
18615 #else
18616 # ifdef DL_GLOBAL
18617 # define LT_DLGLOBAL DL_GLOBAL
18618 # else
18619 # define LT_DLGLOBAL 0
18620 # endif
18621 #endif
18623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18624 find out it does not work in some platform. */
18625 #ifndef LT_DLLAZY_OR_NOW
18626 # ifdef RTLD_LAZY
18627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18628 # else
18629 # ifdef DL_LAZY
18630 # define LT_DLLAZY_OR_NOW DL_LAZY
18631 # else
18632 # ifdef RTLD_NOW
18633 # define LT_DLLAZY_OR_NOW RTLD_NOW
18634 # else
18635 # ifdef DL_NOW
18636 # define LT_DLLAZY_OR_NOW DL_NOW
18637 # else
18638 # define LT_DLLAZY_OR_NOW 0
18639 # endif
18640 # endif
18641 # endif
18642 # endif
18643 #endif
18645 /* When -fvisbility=hidden is used, assume the code has been annotated
18646 correspondingly for the symbols needed. */
18647 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18648 void fnord () __attribute__((visibility("default")));
18649 #endif
18651 void fnord () { int i=42; }
18652 int main ()
18654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18655 int status = $lt_dlunknown;
18657 if (self)
18659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18660 else
18662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18663 else puts (dlerror ());
18665 /* dlclose (self); */
18667 else
18668 puts (dlerror ());
18670 return status;
18672 _LT_EOF
18673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18674 (eval $ac_link) 2>&5
18675 ac_status=$?
18676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18677 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18678 (./conftest; exit; ) >&5 2>/dev/null
18679 lt_status=$?
18680 case x$lt_status in
18681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18684 esac
18685 else :
18686 # compilation failed
18687 lt_cv_dlopen_self_static=no
18690 rm -fr conftest*
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18695 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18698 CPPFLAGS="$save_CPPFLAGS"
18699 LDFLAGS="$save_LDFLAGS"
18700 LIBS="$save_LIBS"
18702 esac
18704 case $lt_cv_dlopen_self in
18705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18706 *) enable_dlopen_self=unknown ;;
18707 esac
18709 case $lt_cv_dlopen_self_static in
18710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18711 *) enable_dlopen_self_static=unknown ;;
18712 esac
18731 striplib=
18732 old_striplib=
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18734 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18735 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18737 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739 $as_echo "yes" >&6; }
18740 else
18741 # FIXME - insert some real tests, host_os isn't really good enough
18742 case $host_os in
18743 darwin*)
18744 if test -n "$STRIP" ; then
18745 striplib="$STRIP -x"
18746 old_striplib="$STRIP -S"
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18748 $as_echo "yes" >&6; }
18749 else
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751 $as_echo "no" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18758 esac
18772 # Report which library types will actually be built
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18774 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18776 $as_echo "$can_build_shared" >&6; }
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18779 $as_echo_n "checking whether to build shared libraries... " >&6; }
18780 test "$can_build_shared" = "no" && enable_shared=no
18782 # On AIX, shared libraries and static libraries use the same namespace, and
18783 # are all built from PIC.
18784 case $host_os in
18785 aix3*)
18786 test "$enable_shared" = yes && enable_static=no
18787 if test -n "$RANLIB"; then
18788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18789 postinstall_cmds='$RANLIB $lib'
18793 aix[4-9]*)
18794 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18795 test "$enable_shared" = yes && enable_static=no
18798 esac
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18800 $as_echo "$enable_shared" >&6; }
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18803 $as_echo_n "checking whether to build static libraries... " >&6; }
18804 # Make sure either enable_shared or enable_static is yes.
18805 test "$enable_shared" = yes || enable_static=yes
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18807 $as_echo "$enable_static" >&6; }
18813 ac_ext=cpp
18814 ac_cpp='$CXXCPP $CPPFLAGS'
18815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18819 CC="$lt_save_CC"
18821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18822 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18823 (test "X$CXX" != "Xg++"))) ; then
18824 ac_ext=cpp
18825 ac_cpp='$CXXCPP $CPPFLAGS'
18826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18830 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18831 if test -z "$CXXCPP"; then
18832 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835 # Double quotes because CXXCPP needs to be expanded
18836 for CXXCPP in "$CXX -E" "/lib/cpp"
18838 ac_preproc_ok=false
18839 for ac_cxx_preproc_warn_flag in '' yes
18841 # Use a header file that comes with gcc, so configuring glibc
18842 # with a fresh cross-compiler works.
18843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 # <limits.h> exists even on freestanding compilers.
18845 # On the NeXT, cc -E runs the code through the compiler's parser,
18846 # not just through cpp. "Syntax error" is here to catch this case.
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849 #ifdef __STDC__
18850 # include <limits.h>
18851 #else
18852 # include <assert.h>
18853 #endif
18854 Syntax error
18855 _ACEOF
18856 if ac_fn_cxx_try_cpp "$LINENO"; then :
18858 else
18859 # Broken: fails on valid input.
18860 continue
18862 rm -f conftest.err conftest.$ac_ext
18864 # OK, works on sane cases. Now check whether nonexistent headers
18865 # can be detected and how.
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18868 #include <ac_nonexistent.h>
18869 _ACEOF
18870 if ac_fn_cxx_try_cpp "$LINENO"; then :
18871 # Broken: success on invalid input.
18872 continue
18873 else
18874 # Passes both tests.
18875 ac_preproc_ok=:
18876 break
18878 rm -f conftest.err conftest.$ac_ext
18880 done
18881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18882 rm -f conftest.err conftest.$ac_ext
18883 if $ac_preproc_ok; then :
18884 break
18887 done
18888 ac_cv_prog_CXXCPP=$CXXCPP
18891 CXXCPP=$ac_cv_prog_CXXCPP
18892 else
18893 ac_cv_prog_CXXCPP=$CXXCPP
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18896 $as_echo "$CXXCPP" >&6; }
18897 ac_preproc_ok=false
18898 for ac_cxx_preproc_warn_flag in '' yes
18900 # Use a header file that comes with gcc, so configuring glibc
18901 # with a fresh cross-compiler works.
18902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903 # <limits.h> exists even on freestanding compilers.
18904 # On the NeXT, cc -E runs the code through the compiler's parser,
18905 # not just through cpp. "Syntax error" is here to catch this case.
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18908 #ifdef __STDC__
18909 # include <limits.h>
18910 #else
18911 # include <assert.h>
18912 #endif
18913 Syntax error
18914 _ACEOF
18915 if ac_fn_cxx_try_cpp "$LINENO"; then :
18917 else
18918 # Broken: fails on valid input.
18919 continue
18921 rm -f conftest.err conftest.$ac_ext
18923 # OK, works on sane cases. Now check whether nonexistent headers
18924 # can be detected and how.
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <ac_nonexistent.h>
18928 _ACEOF
18929 if ac_fn_cxx_try_cpp "$LINENO"; then :
18930 # Broken: success on invalid input.
18931 continue
18932 else
18933 # Passes both tests.
18934 ac_preproc_ok=:
18935 break
18937 rm -f conftest.err conftest.$ac_ext
18939 done
18940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18941 rm -f conftest.err conftest.$ac_ext
18942 if $ac_preproc_ok; then :
18944 else
18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18947 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18948 See \`config.log' for more details." "$LINENO" 5; }
18951 ac_ext=cpp
18952 ac_cpp='$CXXCPP $CPPFLAGS'
18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18957 else
18958 _lt_caught_CXX_error=yes
18961 ac_ext=cpp
18962 ac_cpp='$CXXCPP $CPPFLAGS'
18963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18967 archive_cmds_need_lc_CXX=no
18968 allow_undefined_flag_CXX=
18969 always_export_symbols_CXX=no
18970 archive_expsym_cmds_CXX=
18971 compiler_needs_object_CXX=no
18972 export_dynamic_flag_spec_CXX=
18973 hardcode_direct_CXX=no
18974 hardcode_direct_absolute_CXX=no
18975 hardcode_libdir_flag_spec_CXX=
18976 hardcode_libdir_flag_spec_ld_CXX=
18977 hardcode_libdir_separator_CXX=
18978 hardcode_minus_L_CXX=no
18979 hardcode_shlibpath_var_CXX=unsupported
18980 hardcode_automatic_CXX=no
18981 inherit_rpath_CXX=no
18982 module_cmds_CXX=
18983 module_expsym_cmds_CXX=
18984 link_all_deplibs_CXX=unknown
18985 old_archive_cmds_CXX=$old_archive_cmds
18986 reload_flag_CXX=$reload_flag
18987 reload_cmds_CXX=$reload_cmds
18988 no_undefined_flag_CXX=
18989 whole_archive_flag_spec_CXX=
18990 enable_shared_with_static_runtimes_CXX=no
18992 # Source file extension for C++ test sources.
18993 ac_ext=cpp
18995 # Object file extension for compiled C++ test sources.
18996 objext=o
18997 objext_CXX=$objext
18999 # No sense in running all these tests if we already determined that
19000 # the CXX compiler isn't working. Some variables (like enable_shared)
19001 # are currently assumed to apply to all compilers on this platform,
19002 # and will be corrupted by setting them based on a non-working compiler.
19003 if test "$_lt_caught_CXX_error" != yes; then
19004 # Code to be used in simple compile tests
19005 lt_simple_compile_test_code="int some_variable = 0;"
19007 # Code to be used in simple link tests
19008 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19017 # If no C compiler was specified, use CC.
19018 LTCC=${LTCC-"$CC"}
19020 # If no C compiler flags were specified, use CFLAGS.
19021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19023 # Allow CC to be a program name with arguments.
19024 compiler=$CC
19027 # save warnings/boilerplate of simple test code
19028 ac_outfile=conftest.$ac_objext
19029 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19031 _lt_compiler_boilerplate=`cat conftest.err`
19032 $RM conftest*
19034 ac_outfile=conftest.$ac_objext
19035 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19037 _lt_linker_boilerplate=`cat conftest.err`
19038 $RM -r conftest*
19041 # Allow CC to be a program name with arguments.
19042 lt_save_CC=$CC
19043 lt_save_LD=$LD
19044 lt_save_GCC=$GCC
19045 GCC=$GXX
19046 lt_save_with_gnu_ld=$with_gnu_ld
19047 lt_save_path_LD=$lt_cv_path_LD
19048 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19049 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19050 else
19051 $as_unset lt_cv_prog_gnu_ld
19053 if test -n "${lt_cv_path_LDCXX+set}"; then
19054 lt_cv_path_LD=$lt_cv_path_LDCXX
19055 else
19056 $as_unset lt_cv_path_LD
19058 test -z "${LDCXX+set}" || LD=$LDCXX
19059 CC=${CXX-"c++"}
19060 compiler=$CC
19061 compiler_CXX=$CC
19062 for cc_temp in $compiler""; do
19063 case $cc_temp in
19064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19066 \-*) ;;
19067 *) break;;
19068 esac
19069 done
19070 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19073 if test -n "$compiler"; then
19074 # We don't want -fno-exception when compiling C++ code, so set the
19075 # no_builtin_flag separately
19076 if test "$GXX" = yes; then
19077 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19078 else
19079 lt_prog_compiler_no_builtin_flag_CXX=
19082 if test "$GXX" = yes; then
19083 # Set up default GNU C++ configuration
19087 # Check whether --with-gnu-ld was given.
19088 if test "${with_gnu_ld+set}" = set; then :
19089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19090 else
19091 with_gnu_ld=no
19094 ac_prog=ld
19095 if test "$GCC" = yes; then
19096 # Check if gcc -print-prog-name=ld gives a path.
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19098 $as_echo_n "checking for ld used by $CC... " >&6; }
19099 case $host in
19100 *-*-mingw*)
19101 # gcc leaves a trailing carriage return which upsets mingw
19102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19105 esac
19106 case $ac_prog in
19107 # Accept absolute paths.
19108 [\\/]* | ?:[\\/]*)
19109 re_direlt='/[^/][^/]*/\.\./'
19110 # Canonicalize the pathname of ld
19111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19114 done
19115 test -z "$LD" && LD="$ac_prog"
19118 # If it fails, then pretend we aren't using GCC.
19119 ac_prog=ld
19122 # If it is relative, then search for the first ld in PATH.
19123 with_gnu_ld=unknown
19125 esac
19126 elif test "$with_gnu_ld" = yes; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19128 $as_echo_n "checking for GNU ld... " >&6; }
19129 else
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19131 $as_echo_n "checking for non-GNU ld... " >&6; }
19133 if test "${lt_cv_path_LD+set}" = set; then :
19134 $as_echo_n "(cached) " >&6
19135 else
19136 if test -z "$LD"; then
19137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19138 for ac_dir in $PATH; do
19139 IFS="$lt_save_ifs"
19140 test -z "$ac_dir" && ac_dir=.
19141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19142 lt_cv_path_LD="$ac_dir/$ac_prog"
19143 # Check to see if the program is GNU ld. I'd rather use --version,
19144 # but apparently some variants of GNU ld only accept -v.
19145 # Break only if it was the GNU/non-GNU ld that we prefer.
19146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19147 *GNU* | *'with BFD'*)
19148 test "$with_gnu_ld" != no && break
19151 test "$with_gnu_ld" != yes && break
19153 esac
19155 done
19156 IFS="$lt_save_ifs"
19157 else
19158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19162 LD="$lt_cv_path_LD"
19163 if test -n "$LD"; then
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19165 $as_echo "$LD" >&6; }
19166 else
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19174 $as_echo_n "(cached) " >&6
19175 else
19176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19177 case `$LD -v 2>&1 </dev/null` in
19178 *GNU* | *'with BFD'*)
19179 lt_cv_prog_gnu_ld=yes
19182 lt_cv_prog_gnu_ld=no
19184 esac
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19188 with_gnu_ld=$lt_cv_prog_gnu_ld
19196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19197 # archiving commands below assume that GNU ld is being used.
19198 if test "$with_gnu_ld" = yes; then
19199 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19200 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'
19202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205 # If archive_cmds runs LD, not CC, wlarc should be empty
19206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19207 # investigate it a little bit more. (MM)
19208 wlarc='${wl}'
19210 # ancient GNU ld didn't support --whole-archive et. al.
19211 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19212 $GREP 'no-whole-archive' > /dev/null; then
19213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19214 else
19215 whole_archive_flag_spec_CXX=
19217 else
19218 with_gnu_ld=no
19219 wlarc=
19221 # A generic and very simple default shared library creation
19222 # command for GNU C++ for the case where it uses the native
19223 # linker, instead of GNU ld. If possible, this setting should
19224 # overridden to take advantage of the native linker features on
19225 # the platform it is being used on.
19226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19234 else
19235 GXX=no
19236 with_gnu_ld=no
19237 wlarc=
19240 # PORTME: fill in a description of your system's C++ link characteristics
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19243 ld_shlibs_CXX=yes
19244 case $host_os in
19245 aix3*)
19246 # FIXME: insert proper C++ library support
19247 ld_shlibs_CXX=no
19249 aix[4-9]*)
19250 if test "$host_cpu" = ia64; then
19251 # On IA64, the linker does run time linking by default, so we don't
19252 # have to do anything special.
19253 aix_use_runtimelinking=no
19254 exp_sym_flag='-Bexport'
19255 no_entry_flag=""
19256 else
19257 aix_use_runtimelinking=no
19259 # Test if we are trying to use run time linking or normal
19260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19261 # need to do runtime linking.
19262 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19263 for ld_flag in $LDFLAGS; do
19264 case $ld_flag in
19265 *-brtl*)
19266 aix_use_runtimelinking=yes
19267 break
19269 esac
19270 done
19272 esac
19274 exp_sym_flag='-bexport'
19275 no_entry_flag='-bnoentry'
19278 # When large executables or shared objects are built, AIX ld can
19279 # have problems creating the table of contents. If linking a library
19280 # or program results in "error TOC overflow" add -mminimal-toc to
19281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19284 archive_cmds_CXX=''
19285 hardcode_direct_CXX=yes
19286 hardcode_direct_absolute_CXX=yes
19287 hardcode_libdir_separator_CXX=':'
19288 link_all_deplibs_CXX=yes
19289 file_list_spec_CXX='${wl}-f,'
19291 if test "$GXX" = yes; then
19292 case $host_os in aix4.[012]|aix4.[012].*)
19293 # We only want to do this on AIX 4.2 and lower, the check
19294 # below for broken collect2 doesn't work under 4.3+
19295 collect2name=`${CC} -print-prog-name=collect2`
19296 if test -f "$collect2name" &&
19297 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19298 then
19299 # We have reworked collect2
19301 else
19302 # We have old collect2
19303 hardcode_direct_CXX=unsupported
19304 # It fails to find uninstalled libraries when the uninstalled
19305 # path is not listed in the libpath. Setting hardcode_minus_L
19306 # to unsupported forces relinking
19307 hardcode_minus_L_CXX=yes
19308 hardcode_libdir_flag_spec_CXX='-L$libdir'
19309 hardcode_libdir_separator_CXX=
19311 esac
19312 shared_flag='-shared'
19313 if test "$aix_use_runtimelinking" = yes; then
19314 shared_flag="$shared_flag "'${wl}-G'
19316 else
19317 # not using gcc
19318 if test "$host_cpu" = ia64; then
19319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19320 # chokes on -Wl,-G. The following line is correct:
19321 shared_flag='-G'
19322 else
19323 if test "$aix_use_runtimelinking" = yes; then
19324 shared_flag='${wl}-G'
19325 else
19326 shared_flag='${wl}-bM:SRE'
19331 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19332 # It seems that -bexpall does not export symbols beginning with
19333 # underscore (_), so it is better to generate a list of symbols to
19334 # export.
19335 always_export_symbols_CXX=yes
19336 if test "$aix_use_runtimelinking" = yes; then
19337 # Warning - without using the other runtime loading flags (-brtl),
19338 # -berok will link without error, but may produce a broken library.
19339 allow_undefined_flag_CXX='-berok'
19340 # Determine the default libpath from the value encoded in an empty
19341 # executable.
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19346 main ()
19350 return 0;
19352 _ACEOF
19353 if ac_fn_cxx_try_link "$LINENO"; then :
19355 lt_aix_libpath_sed='
19356 /Import File Strings/,/^$/ {
19357 /^0/ {
19358 s/^0 *\(.*\)$/\1/
19362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19363 # Check for a 64-bit object if we didn't find anything.
19364 if test -z "$aix_libpath"; then
19365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19372 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19374 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"
19375 else
19376 if test "$host_cpu" = ia64; then
19377 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19378 allow_undefined_flag_CXX="-z nodefs"
19379 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"
19380 else
19381 # Determine the default libpath from the value encoded in an
19382 # empty executable.
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19387 main ()
19391 return 0;
19393 _ACEOF
19394 if ac_fn_cxx_try_link "$LINENO"; then :
19396 lt_aix_libpath_sed='
19397 /Import File Strings/,/^$/ {
19398 /^0/ {
19399 s/^0 *\(.*\)$/\1/
19403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19404 # Check for a 64-bit object if we didn't find anything.
19405 if test -z "$aix_libpath"; then
19406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19409 rm -f core conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19413 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19414 # Warning - without using the other run time loading flags,
19415 # -berok will link without error, but may produce a broken library.
19416 no_undefined_flag_CXX=' ${wl}-bernotok'
19417 allow_undefined_flag_CXX=' ${wl}-berok'
19418 if test "$with_gnu_ld" = yes; then
19419 # We only use this code for GNU lds that support --whole-archive.
19420 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19421 else
19422 # Exported symbols can be pulled into shared objects from archives
19423 whole_archive_flag_spec_CXX='$convenience'
19425 archive_cmds_need_lc_CXX=yes
19426 # This is similar to how AIX traditionally builds its shared
19427 # libraries.
19428 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'
19433 beos*)
19434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19435 allow_undefined_flag_CXX=unsupported
19436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19437 # support --undefined. This deserves some investigation. FIXME
19438 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 else
19440 ld_shlibs_CXX=no
19444 chorus*)
19445 case $cc_basename in
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19450 esac
19453 cygwin* | mingw* | pw32* | cegcc*)
19454 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19455 # as there is no search path for DLLs.
19456 hardcode_libdir_flag_spec_CXX='-L$libdir'
19457 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19458 allow_undefined_flag_CXX=unsupported
19459 always_export_symbols_CXX=no
19460 enable_shared_with_static_runtimes_CXX=yes
19462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19463 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'
19464 # If the export-symbols file already is a .def file (1st line
19465 # is EXPORTS), use it as is; otherwise, prepend...
19466 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19467 cp $export_symbols $output_objdir/$soname.def;
19468 else
19469 echo EXPORTS > $output_objdir/$soname.def;
19470 cat $export_symbols >> $output_objdir/$soname.def;
19472 $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'
19473 else
19474 ld_shlibs_CXX=no
19477 darwin* | rhapsody*)
19480 archive_cmds_need_lc_CXX=no
19481 hardcode_direct_CXX=no
19482 hardcode_automatic_CXX=yes
19483 hardcode_shlibpath_var_CXX=unsupported
19484 if test "$lt_cv_ld_force_load" = "yes"; then
19485 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\"`'
19486 else
19487 whole_archive_flag_spec_CXX=''
19489 link_all_deplibs_CXX=yes
19490 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19491 case $cc_basename in
19492 ifort*) _lt_dar_can_shared=yes ;;
19493 *) _lt_dar_can_shared=$GCC ;;
19494 esac
19495 if test "$_lt_dar_can_shared" = "yes"; then
19496 output_verbose_link_cmd=func_echo_all
19497 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}"
19498 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19499 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}"
19500 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}"
19501 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19502 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}"
19503 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}"
19506 else
19507 ld_shlibs_CXX=no
19512 dgux*)
19513 case $cc_basename in
19514 ec++*)
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19518 ghcx*)
19519 # Green Hills C++ Compiler
19520 # FIXME: insert proper C++ library support
19521 ld_shlibs_CXX=no
19524 # FIXME: insert proper C++ library support
19525 ld_shlibs_CXX=no
19527 esac
19530 freebsd2.*)
19531 # C++ shared libraries reported to be fairly broken before
19532 # switch to ELF
19533 ld_shlibs_CXX=no
19536 freebsd-elf*)
19537 archive_cmds_need_lc_CXX=no
19540 freebsd* | dragonfly*)
19541 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19542 # conventions
19543 ld_shlibs_CXX=yes
19546 gnu*)
19549 haiku*)
19550 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19551 link_all_deplibs_CXX=yes
19554 hpux9*)
19555 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19556 hardcode_libdir_separator_CXX=:
19557 export_dynamic_flag_spec_CXX='${wl}-E'
19558 hardcode_direct_CXX=yes
19559 hardcode_minus_L_CXX=yes # Not in the search PATH,
19560 # but as the default
19561 # location of the library.
19563 case $cc_basename in
19564 CC*)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19568 aCC*)
19569 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'
19570 # Commands to make compiler produce verbose output that lists
19571 # what "hidden" libraries, object files and flags are used when
19572 # linking a shared library.
19574 # There doesn't appear to be a way to prevent this compiler from
19575 # explicitly linking system object files so we need to strip them
19576 # from the output so that they don't get included in the library
19577 # dependencies.
19578 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"'
19581 if test "$GXX" = yes; then
19582 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'
19583 else
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19588 esac
19591 hpux10*|hpux11*)
19592 if test $with_gnu_ld = no; then
19593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19594 hardcode_libdir_separator_CXX=:
19596 case $host_cpu in
19597 hppa*64*|ia64*)
19600 export_dynamic_flag_spec_CXX='${wl}-E'
19602 esac
19604 case $host_cpu in
19605 hppa*64*|ia64*)
19606 hardcode_direct_CXX=no
19607 hardcode_shlibpath_var_CXX=no
19610 hardcode_direct_CXX=yes
19611 hardcode_direct_absolute_CXX=yes
19612 hardcode_minus_L_CXX=yes # Not in the search PATH,
19613 # but as the default
19614 # location of the library.
19616 esac
19618 case $cc_basename in
19619 CC*)
19620 # FIXME: insert proper C++ library support
19621 ld_shlibs_CXX=no
19623 aCC*)
19624 case $host_cpu in
19625 hppa*64*)
19626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19628 ia64*)
19629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19632 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19634 esac
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19639 # There doesn't appear to be a way to prevent this compiler from
19640 # explicitly linking system object files so we need to strip them
19641 # from the output so that they don't get included in the library
19642 # dependencies.
19643 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"'
19646 if test "$GXX" = yes; then
19647 if test $with_gnu_ld = no; then
19648 case $host_cpu in
19649 hppa*64*)
19650 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19652 ia64*)
19653 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19656 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'
19658 esac
19660 else
19661 # FIXME: insert proper C++ library support
19662 ld_shlibs_CXX=no
19665 esac
19668 interix[3-9]*)
19669 hardcode_direct_CXX=no
19670 hardcode_shlibpath_var_CXX=no
19671 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19672 export_dynamic_flag_spec_CXX='${wl}-E'
19673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19674 # Instead, shared libraries are loaded at an image base (0x10000000 by
19675 # default) and relocated if they conflict, which is a slow very memory
19676 # consuming and fragmenting process. To avoid this, we pick a random,
19677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19679 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'
19680 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'
19682 irix5* | irix6*)
19683 case $cc_basename in
19684 CC*)
19685 # SGI C++
19686 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'
19688 # Archives containing C++ object files must be created using
19689 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19690 # necessary to make sure instantiated templates are included
19691 # in the archive.
19692 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19695 if test "$GXX" = yes; then
19696 if test "$with_gnu_ld" = no; then
19697 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'
19698 else
19699 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'
19702 link_all_deplibs_CXX=yes
19704 esac
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19706 hardcode_libdir_separator_CXX=:
19707 inherit_rpath_CXX=yes
19710 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19711 case $cc_basename in
19712 KCC*)
19713 # Kuck and Associates, Inc. (KAI) C++ Compiler
19715 # KCC will only create a shared library if the output file
19716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19717 # to its proper name (with version) after linking.
19718 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'
19719 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'
19720 # Commands to make compiler produce verbose output that lists
19721 # what "hidden" libraries, object files and flags are used when
19722 # linking a shared library.
19724 # There doesn't appear to be a way to prevent this compiler from
19725 # explicitly linking system object files so we need to strip them
19726 # from the output so that they don't get included in the library
19727 # dependencies.
19728 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"'
19730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19733 # Archives containing C++ object files must be created using
19734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19737 icpc* | ecpc* )
19738 # Intel C++
19739 with_gnu_ld=yes
19740 # version 8.0 and above of icpc choke on multiply defined symbols
19741 # if we add $predep_objects and $postdep_objects, however 7.1 and
19742 # earlier do not add the objects themselves.
19743 case `$CC -V 2>&1` in
19744 *"Version 7."*)
19745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19746 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'
19748 *) # Version 8.0 or newer
19749 tmp_idyn=
19750 case $host_cpu in
19751 ia64*) tmp_idyn=' -i_dynamic';;
19752 esac
19753 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19754 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'
19756 esac
19757 archive_cmds_need_lc_CXX=no
19758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19760 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19762 pgCC* | pgcpp*)
19763 # Portland Group C++ compiler
19764 case `$CC -V` in
19765 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19766 prelink_cmds_CXX='tpldir=Template.dir~
19767 rm -rf $tpldir~
19768 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19769 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19770 old_archive_cmds_CXX='tpldir=Template.dir~
19771 rm -rf $tpldir~
19772 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19773 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19774 $RANLIB $oldlib'
19775 archive_cmds_CXX='tpldir=Template.dir~
19776 rm -rf $tpldir~
19777 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19778 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19779 archive_expsym_cmds_CXX='tpldir=Template.dir~
19780 rm -rf $tpldir~
19781 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19782 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19784 *) # Version 6 and above use weak symbols
19785 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19786 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'
19788 esac
19790 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19792 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'
19794 cxx*)
19795 # Compaq C++
19796 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19797 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'
19799 runpath_var=LD_RUN_PATH
19800 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19801 hardcode_libdir_separator_CXX=:
19803 # Commands to make compiler produce verbose output that lists
19804 # what "hidden" libraries, object files and flags are used when
19805 # linking a shared library.
19807 # There doesn't appear to be a way to prevent this compiler from
19808 # explicitly linking system object files so we need to strip them
19809 # from the output so that they don't get included in the library
19810 # dependencies.
19811 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'
19813 xl* | mpixl* | bgxl*)
19814 # IBM XL 8.0 on PPC, with GNU ld
19815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19817 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19818 if test "x$supports_anon_versioning" = xyes; then
19819 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19821 echo "local: *; };" >> $output_objdir/$libname.ver~
19822 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19826 case `$CC -V 2>&1 | sed 5q` in
19827 *Sun\ C*)
19828 # Sun C++ 5.9
19829 no_undefined_flag_CXX=' -zdefs'
19830 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19831 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'
19832 hardcode_libdir_flag_spec_CXX='-R$libdir'
19833 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'
19834 compiler_needs_object_CXX=yes
19836 # Not sure whether something based on
19837 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19838 # would be better.
19839 output_verbose_link_cmd='func_echo_all'
19841 # Archives containing C++ object files must be created using
19842 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19843 # necessary to make sure instantiated templates are included
19844 # in the archive.
19845 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19847 esac
19849 esac
19852 lynxos*)
19853 # FIXME: insert proper C++ library support
19854 ld_shlibs_CXX=no
19857 m88k*)
19858 # FIXME: insert proper C++ library support
19859 ld_shlibs_CXX=no
19862 mvs*)
19863 case $cc_basename in
19864 cxx*)
19865 # FIXME: insert proper C++ library support
19866 ld_shlibs_CXX=no
19869 # FIXME: insert proper C++ library support
19870 ld_shlibs_CXX=no
19872 esac
19875 netbsd*)
19876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19877 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19878 wlarc=
19879 hardcode_libdir_flag_spec_CXX='-R$libdir'
19880 hardcode_direct_CXX=yes
19881 hardcode_shlibpath_var_CXX=no
19883 # Workaround some broken pre-1.5 toolchains
19884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19887 *nto* | *qnx*)
19888 ld_shlibs_CXX=yes
19891 openbsd2*)
19892 # C++ shared libraries are fairly broken
19893 ld_shlibs_CXX=no
19896 openbsd*)
19897 if test -f /usr/libexec/ld.so; then
19898 hardcode_direct_CXX=yes
19899 hardcode_shlibpath_var_CXX=no
19900 hardcode_direct_absolute_CXX=yes
19901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19904 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19905 export_dynamic_flag_spec_CXX='${wl}-E'
19906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19908 output_verbose_link_cmd=func_echo_all
19909 else
19910 ld_shlibs_CXX=no
19914 osf3* | osf4* | osf5*)
19915 case $cc_basename in
19916 KCC*)
19917 # Kuck and Associates, Inc. (KAI) C++ Compiler
19919 # KCC will only create a shared library if the output file
19920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19921 # to its proper name (with version) after linking.
19922 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'
19924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19925 hardcode_libdir_separator_CXX=:
19927 # Archives containing C++ object files must be created using
19928 # the KAI C++ compiler.
19929 case $host in
19930 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19931 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19932 esac
19934 RCC*)
19935 # Rational C++ 2.4.1
19936 # FIXME: insert proper C++ library support
19937 ld_shlibs_CXX=no
19939 cxx*)
19940 case $host in
19941 osf3*)
19942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19943 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'
19944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19947 allow_undefined_flag_CXX=' -expect_unresolved \*'
19948 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'
19949 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19950 echo "-hidden">> $lib.exp~
19951 $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~
19952 $RM $lib.exp'
19953 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19955 esac
19957 hardcode_libdir_separator_CXX=:
19959 # Commands to make compiler produce verbose output that lists
19960 # what "hidden" libraries, object files and flags are used when
19961 # linking a shared library.
19963 # There doesn't appear to be a way to prevent this compiler from
19964 # explicitly linking system object files so we need to strip them
19965 # from the output so that they don't get included in the library
19966 # dependencies.
19967 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"'
19970 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19971 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19972 case $host in
19973 osf3*)
19974 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'
19977 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'
19979 esac
19981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19982 hardcode_libdir_separator_CXX=:
19984 # Commands to make compiler produce verbose output that lists
19985 # what "hidden" libraries, object files and flags are used when
19986 # linking a shared library.
19987 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19989 else
19990 # FIXME: insert proper C++ library support
19991 ld_shlibs_CXX=no
19994 esac
19997 psos*)
19998 # FIXME: insert proper C++ library support
19999 ld_shlibs_CXX=no
20002 sunos4*)
20003 case $cc_basename in
20004 CC*)
20005 # Sun C++ 4.x
20006 # FIXME: insert proper C++ library support
20007 ld_shlibs_CXX=no
20009 lcc*)
20010 # Lucid
20011 # FIXME: insert proper C++ library support
20012 ld_shlibs_CXX=no
20015 # FIXME: insert proper C++ library support
20016 ld_shlibs_CXX=no
20018 esac
20021 solaris*)
20022 case $cc_basename in
20023 CC*)
20024 # Sun C++ 4.2, 5.x and Centerline C++
20025 archive_cmds_need_lc_CXX=yes
20026 no_undefined_flag_CXX=' -zdefs'
20027 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20028 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20029 $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'
20031 hardcode_libdir_flag_spec_CXX='-R$libdir'
20032 hardcode_shlibpath_var_CXX=no
20033 case $host_os in
20034 solaris2.[0-5] | solaris2.[0-5].*) ;;
20036 # The compiler driver will combine and reorder linker options,
20037 # but understands `-z linker_flag'.
20038 # Supported since Solaris 2.6 (maybe 2.5.1?)
20039 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20041 esac
20042 link_all_deplibs_CXX=yes
20044 output_verbose_link_cmd='func_echo_all'
20046 # Archives containing C++ object files must be created using
20047 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20048 # necessary to make sure instantiated templates are included
20049 # in the archive.
20050 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20052 gcx*)
20053 # Green Hills C++ Compiler
20054 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20056 # The C++ compiler must be used to create the archive.
20057 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20060 # GNU C++ compiler with Solaris linker
20061 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20062 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20063 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20064 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20065 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20066 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20068 # Commands to make compiler produce verbose output that lists
20069 # what "hidden" libraries, object files and flags are used when
20070 # linking a shared library.
20071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20072 else
20073 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20074 # platform.
20075 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20076 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20077 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20079 # Commands to make compiler produce verbose output that lists
20080 # what "hidden" libraries, object files and flags are used when
20081 # linking a shared library.
20082 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20085 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20086 case $host_os in
20087 solaris2.[0-5] | solaris2.[0-5].*) ;;
20089 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20091 esac
20094 esac
20097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20098 no_undefined_flag_CXX='${wl}-z,text'
20099 archive_cmds_need_lc_CXX=no
20100 hardcode_shlibpath_var_CXX=no
20101 runpath_var='LD_RUN_PATH'
20103 case $cc_basename in
20104 CC*)
20105 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20106 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20110 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20112 esac
20115 sysv5* | sco3.2v5* | sco5v6*)
20116 # Note: We can NOT use -z defs as we might desire, because we do not
20117 # link with -lc, and that would cause any symbols used from libc to
20118 # always be unresolved, which means just about no library would
20119 # ever link correctly. If we're not using GNU ld we use -z text
20120 # though, which does catch some bad symbols but isn't as heavy-handed
20121 # as -z defs.
20122 no_undefined_flag_CXX='${wl}-z,text'
20123 allow_undefined_flag_CXX='${wl}-z,nodefs'
20124 archive_cmds_need_lc_CXX=no
20125 hardcode_shlibpath_var_CXX=no
20126 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20127 hardcode_libdir_separator_CXX=':'
20128 link_all_deplibs_CXX=yes
20129 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20130 runpath_var='LD_RUN_PATH'
20132 case $cc_basename in
20133 CC*)
20134 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20135 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20136 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20137 '"$old_archive_cmds_CXX"
20138 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20139 '"$reload_cmds_CXX"
20142 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20143 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20145 esac
20148 tandem*)
20149 case $cc_basename in
20150 NCC*)
20151 # NonStop-UX NCC 3.20
20152 # FIXME: insert proper C++ library support
20153 ld_shlibs_CXX=no
20156 # FIXME: insert proper C++ library support
20157 ld_shlibs_CXX=no
20159 esac
20162 vxworks*)
20163 # FIXME: insert proper C++ library support
20164 ld_shlibs_CXX=no
20168 # FIXME: insert proper C++ library support
20169 ld_shlibs_CXX=no
20171 esac
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20174 $as_echo "$ld_shlibs_CXX" >&6; }
20175 test "$ld_shlibs_CXX" = no && can_build_shared=no
20177 GCC_CXX="$GXX"
20178 LD_CXX="$LD"
20180 ## CAVEAT EMPTOR:
20181 ## There is no encapsulation within the following macros, do not change
20182 ## the running order or otherwise move them around unless you know exactly
20183 ## what you are doing...
20184 # Dependencies to place before and after the object being linked:
20185 predep_objects_CXX=
20186 postdep_objects_CXX=
20187 predeps_CXX=
20188 postdeps_CXX=
20189 compiler_lib_search_path_CXX=
20191 cat > conftest.$ac_ext <<_LT_EOF
20192 class Foo
20194 public:
20195 Foo (void) { a = 0; }
20196 private:
20197 int a;
20199 _LT_EOF
20201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20202 (eval $ac_compile) 2>&5
20203 ac_status=$?
20204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20205 test $ac_status = 0; }; then
20206 # Parse the compiler output and extract the necessary
20207 # objects, libraries and library flags.
20209 # Sentinel used to keep track of whether or not we are before
20210 # the conftest object file.
20211 pre_test_object_deps_done=no
20213 for p in `eval "$output_verbose_link_cmd"`; do
20214 case $p in
20216 -L* | -R* | -l*)
20217 # Some compilers place space between "-{L,R}" and the path.
20218 # Remove the space.
20219 if test $p = "-L" ||
20220 test $p = "-R"; then
20221 prev=$p
20222 continue
20223 else
20224 prev=
20227 if test "$pre_test_object_deps_done" = no; then
20228 case $p in
20229 -L* | -R*)
20230 # Internal compiler library paths should come after those
20231 # provided the user. The postdeps already come after the
20232 # user supplied libs so there is no need to process them.
20233 if test -z "$compiler_lib_search_path_CXX"; then
20234 compiler_lib_search_path_CXX="${prev}${p}"
20235 else
20236 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20239 # The "-l" case would never come before the object being
20240 # linked, so don't bother handling this case.
20241 esac
20242 else
20243 if test -z "$postdeps_CXX"; then
20244 postdeps_CXX="${prev}${p}"
20245 else
20246 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20251 *.$objext)
20252 # This assumes that the test object file only shows up
20253 # once in the compiler output.
20254 if test "$p" = "conftest.$objext"; then
20255 pre_test_object_deps_done=yes
20256 continue
20259 if test "$pre_test_object_deps_done" = no; then
20260 if test -z "$predep_objects_CXX"; then
20261 predep_objects_CXX="$p"
20262 else
20263 predep_objects_CXX="$predep_objects_CXX $p"
20265 else
20266 if test -z "$postdep_objects_CXX"; then
20267 postdep_objects_CXX="$p"
20268 else
20269 postdep_objects_CXX="$postdep_objects_CXX $p"
20274 *) ;; # Ignore the rest.
20276 esac
20277 done
20279 # Clean up.
20280 rm -f a.out a.exe
20281 else
20282 echo "libtool.m4: error: problem compiling CXX test program"
20285 $RM -f confest.$objext
20287 # PORTME: override above test on systems where it is broken
20288 case $host_os in
20289 interix[3-9]*)
20290 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20291 # hack all around it, let's just trust "g++" to DTRT.
20292 predep_objects_CXX=
20293 postdep_objects_CXX=
20294 postdeps_CXX=
20297 linux*)
20298 case `$CC -V 2>&1 | sed 5q` in
20299 *Sun\ C*)
20300 # Sun C++ 5.9
20302 # The more standards-conforming stlport4 library is
20303 # incompatible with the Cstd library. Avoid specifying
20304 # it if it's in CXXFLAGS. Ignore libCrun as
20305 # -library=stlport4 depends on it.
20306 case " $CXX $CXXFLAGS " in
20307 *" -library=stlport4 "*)
20308 solaris_use_stlport4=yes
20310 esac
20312 if test "$solaris_use_stlport4" != yes; then
20313 postdeps_CXX='-library=Cstd -library=Crun'
20316 esac
20319 solaris*)
20320 case $cc_basename in
20321 CC*)
20322 # The more standards-conforming stlport4 library is
20323 # incompatible with the Cstd library. Avoid specifying
20324 # it if it's in CXXFLAGS. Ignore libCrun as
20325 # -library=stlport4 depends on it.
20326 case " $CXX $CXXFLAGS " in
20327 *" -library=stlport4 "*)
20328 solaris_use_stlport4=yes
20330 esac
20332 # Adding this requires a known-good setup of shared libraries for
20333 # Sun compiler versions before 5.6, else PIC objects from an old
20334 # archive will be linked into the output, leading to subtle bugs.
20335 if test "$solaris_use_stlport4" != yes; then
20336 postdeps_CXX='-library=Cstd -library=Crun'
20339 esac
20341 esac
20344 case " $postdeps_CXX " in
20345 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20346 esac
20347 compiler_lib_search_dirs_CXX=
20348 if test -n "${compiler_lib_search_path_CXX}"; then
20349 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20382 lt_prog_compiler_wl_CXX=
20383 lt_prog_compiler_pic_CXX=
20384 lt_prog_compiler_static_CXX=
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20389 # C++ specific cases for pic, static, wl, etc.
20390 if test "$GXX" = yes; then
20391 lt_prog_compiler_wl_CXX='-Wl,'
20392 lt_prog_compiler_static_CXX='-static'
20394 case $host_os in
20395 aix*)
20396 # All AIX code is PIC.
20397 if test "$host_cpu" = ia64; then
20398 # AIX 5 now supports IA64 processor
20399 lt_prog_compiler_static_CXX='-Bstatic'
20401 lt_prog_compiler_pic_CXX='-fPIC'
20404 amigaos*)
20405 case $host_cpu in
20406 powerpc)
20407 # see comment about AmigaOS4 .so support
20408 lt_prog_compiler_pic_CXX='-fPIC'
20410 m68k)
20411 # FIXME: we need at least 68020 code to build shared libraries, but
20412 # adding the `-m68020' flag to GCC prevents building anything better,
20413 # like `-m68040'.
20414 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20416 esac
20419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20420 # PIC is the default for these OSes.
20422 mingw* | cygwin* | os2* | pw32* | cegcc*)
20423 # This hack is so that the source file can tell whether it is being
20424 # built for inclusion in a dll (and should export symbols for example).
20425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20426 # (--disable-auto-import) libraries
20427 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20429 darwin* | rhapsody*)
20430 # PIC is the default on this platform
20431 # Common symbols not allowed in MH_DYLIB files
20432 lt_prog_compiler_pic_CXX='-fno-common'
20434 *djgpp*)
20435 # DJGPP does not support shared libraries at all
20436 lt_prog_compiler_pic_CXX=
20438 haiku*)
20439 # PIC is the default for Haiku.
20440 # The "-static" flag exists, but is broken.
20441 lt_prog_compiler_static_CXX=
20443 interix[3-9]*)
20444 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20445 # Instead, we relocate shared libraries at runtime.
20447 sysv4*MP*)
20448 if test -d /usr/nec; then
20449 lt_prog_compiler_pic_CXX=-Kconform_pic
20452 hpux*)
20453 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20454 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20455 # sets the default TLS model and affects inlining.
20456 case $host_cpu in
20457 hppa*64*)
20460 lt_prog_compiler_pic_CXX='-fPIC'
20462 esac
20464 *qnx* | *nto*)
20465 # QNX uses GNU C++, but need to define -shared option too, otherwise
20466 # it will coredump.
20467 lt_prog_compiler_pic_CXX='-fPIC -shared'
20470 lt_prog_compiler_pic_CXX='-fPIC'
20472 esac
20473 else
20474 case $host_os in
20475 aix[4-9]*)
20476 # All AIX code is PIC.
20477 if test "$host_cpu" = ia64; then
20478 # AIX 5 now supports IA64 processor
20479 lt_prog_compiler_static_CXX='-Bstatic'
20480 else
20481 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20484 chorus*)
20485 case $cc_basename in
20486 cxch68*)
20487 # Green Hills C++ Compiler
20488 # _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"
20490 esac
20492 dgux*)
20493 case $cc_basename in
20494 ec++*)
20495 lt_prog_compiler_pic_CXX='-KPIC'
20497 ghcx*)
20498 # Green Hills C++ Compiler
20499 lt_prog_compiler_pic_CXX='-pic'
20503 esac
20505 freebsd* | dragonfly*)
20506 # FreeBSD uses GNU C++
20508 hpux9* | hpux10* | hpux11*)
20509 case $cc_basename in
20510 CC*)
20511 lt_prog_compiler_wl_CXX='-Wl,'
20512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20513 if test "$host_cpu" != ia64; then
20514 lt_prog_compiler_pic_CXX='+Z'
20517 aCC*)
20518 lt_prog_compiler_wl_CXX='-Wl,'
20519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20520 case $host_cpu in
20521 hppa*64*|ia64*)
20522 # +Z the default
20525 lt_prog_compiler_pic_CXX='+Z'
20527 esac
20531 esac
20533 interix*)
20534 # This is c89, which is MS Visual C++ (no shared libs)
20535 # Anyone wants to do a port?
20537 irix5* | irix6* | nonstopux*)
20538 case $cc_basename in
20539 CC*)
20540 lt_prog_compiler_wl_CXX='-Wl,'
20541 lt_prog_compiler_static_CXX='-non_shared'
20542 # CC pic flag -KPIC is the default.
20546 esac
20548 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20549 case $cc_basename in
20550 KCC*)
20551 # KAI C++ Compiler
20552 lt_prog_compiler_wl_CXX='--backend -Wl,'
20553 lt_prog_compiler_pic_CXX='-fPIC'
20555 ecpc* )
20556 # old Intel C++ for x86_64 which still supported -KPIC.
20557 lt_prog_compiler_wl_CXX='-Wl,'
20558 lt_prog_compiler_pic_CXX='-KPIC'
20559 lt_prog_compiler_static_CXX='-static'
20561 icpc* )
20562 # Intel C++, used to be incompatible with GCC.
20563 # ICC 10 doesn't accept -KPIC any more.
20564 lt_prog_compiler_wl_CXX='-Wl,'
20565 lt_prog_compiler_pic_CXX='-fPIC'
20566 lt_prog_compiler_static_CXX='-static'
20568 pgCC* | pgcpp*)
20569 # Portland Group C++ compiler
20570 lt_prog_compiler_wl_CXX='-Wl,'
20571 lt_prog_compiler_pic_CXX='-fpic'
20572 lt_prog_compiler_static_CXX='-Bstatic'
20574 cxx*)
20575 # Compaq C++
20576 # Make sure the PIC flag is empty. It appears that all Alpha
20577 # Linux and Compaq Tru64 Unix objects are PIC.
20578 lt_prog_compiler_pic_CXX=
20579 lt_prog_compiler_static_CXX='-non_shared'
20581 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20582 # IBM XL 8.0, 9.0 on PPC and BlueGene
20583 lt_prog_compiler_wl_CXX='-Wl,'
20584 lt_prog_compiler_pic_CXX='-qpic'
20585 lt_prog_compiler_static_CXX='-qstaticlink'
20588 case `$CC -V 2>&1 | sed 5q` in
20589 *Sun\ C*)
20590 # Sun C++ 5.9
20591 lt_prog_compiler_pic_CXX='-KPIC'
20592 lt_prog_compiler_static_CXX='-Bstatic'
20593 lt_prog_compiler_wl_CXX='-Qoption ld '
20595 esac
20597 esac
20599 lynxos*)
20601 m88k*)
20603 mvs*)
20604 case $cc_basename in
20605 cxx*)
20606 lt_prog_compiler_pic_CXX='-W c,exportall'
20610 esac
20612 netbsd*)
20614 *qnx* | *nto*)
20615 # QNX uses GNU C++, but need to define -shared option too, otherwise
20616 # it will coredump.
20617 lt_prog_compiler_pic_CXX='-fPIC -shared'
20619 osf3* | osf4* | osf5*)
20620 case $cc_basename in
20621 KCC*)
20622 lt_prog_compiler_wl_CXX='--backend -Wl,'
20624 RCC*)
20625 # Rational C++ 2.4.1
20626 lt_prog_compiler_pic_CXX='-pic'
20628 cxx*)
20629 # Digital/Compaq C++
20630 lt_prog_compiler_wl_CXX='-Wl,'
20631 # Make sure the PIC flag is empty. It appears that all Alpha
20632 # Linux and Compaq Tru64 Unix objects are PIC.
20633 lt_prog_compiler_pic_CXX=
20634 lt_prog_compiler_static_CXX='-non_shared'
20638 esac
20640 psos*)
20642 solaris*)
20643 case $cc_basename in
20644 CC*)
20645 # Sun C++ 4.2, 5.x and Centerline C++
20646 lt_prog_compiler_pic_CXX='-KPIC'
20647 lt_prog_compiler_static_CXX='-Bstatic'
20648 lt_prog_compiler_wl_CXX='-Qoption ld '
20650 gcx*)
20651 # Green Hills C++ Compiler
20652 lt_prog_compiler_pic_CXX='-PIC'
20656 esac
20658 sunos4*)
20659 case $cc_basename in
20660 CC*)
20661 # Sun C++ 4.x
20662 lt_prog_compiler_pic_CXX='-pic'
20663 lt_prog_compiler_static_CXX='-Bstatic'
20665 lcc*)
20666 # Lucid
20667 lt_prog_compiler_pic_CXX='-pic'
20671 esac
20673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20674 case $cc_basename in
20675 CC*)
20676 lt_prog_compiler_wl_CXX='-Wl,'
20677 lt_prog_compiler_pic_CXX='-KPIC'
20678 lt_prog_compiler_static_CXX='-Bstatic'
20680 esac
20682 tandem*)
20683 case $cc_basename in
20684 NCC*)
20685 # NonStop-UX NCC 3.20
20686 lt_prog_compiler_pic_CXX='-KPIC'
20690 esac
20692 vxworks*)
20695 lt_prog_compiler_can_build_shared_CXX=no
20697 esac
20700 case $host_os in
20701 # For platforms which do not support PIC, -DPIC is meaningless:
20702 *djgpp*)
20703 lt_prog_compiler_pic_CXX=
20706 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20708 esac
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20710 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20715 # Check to make sure the PIC flag actually works.
20717 if test -n "$lt_prog_compiler_pic_CXX"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20720 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20721 $as_echo_n "(cached) " >&6
20722 else
20723 lt_cv_prog_compiler_pic_works_CXX=no
20724 ac_outfile=conftest.$ac_objext
20725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20726 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20727 # Insert the option either (1) after the last *FLAGS variable, or
20728 # (2) before a word containing "conftest.", or (3) at the end.
20729 # Note that $ac_compile itself does not contain backslashes and begins
20730 # with a dollar sign (not a hyphen), so the echo should work correctly.
20731 # The option is referenced via a variable to avoid confusing sed.
20732 lt_compile=`echo "$ac_compile" | $SED \
20733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20735 -e 's:$: $lt_compiler_flag:'`
20736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20737 (eval "$lt_compile" 2>conftest.err)
20738 ac_status=$?
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 if (exit $ac_status) && test -s "$ac_outfile"; then
20742 # The compiler can only warn and ignore the option if not recognized
20743 # So say no if there are warnings other than the usual output.
20744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20747 lt_cv_prog_compiler_pic_works_CXX=yes
20750 $RM conftest*
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20754 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20756 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20757 case $lt_prog_compiler_pic_CXX in
20758 "" | " "*) ;;
20759 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20760 esac
20761 else
20762 lt_prog_compiler_pic_CXX=
20763 lt_prog_compiler_can_build_shared_CXX=no
20771 # Check to make sure the static flag actually works.
20773 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20776 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20777 $as_echo_n "(cached) " >&6
20778 else
20779 lt_cv_prog_compiler_static_works_CXX=no
20780 save_LDFLAGS="$LDFLAGS"
20781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20784 # The linker can only warn and ignore the option if not recognized
20785 # So say no if there are warnings
20786 if test -s conftest.err; then
20787 # Append any errors to the config.log.
20788 cat conftest.err 1>&5
20789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20791 if diff conftest.exp conftest.er2 >/dev/null; then
20792 lt_cv_prog_compiler_static_works_CXX=yes
20794 else
20795 lt_cv_prog_compiler_static_works_CXX=yes
20798 $RM -r conftest*
20799 LDFLAGS="$save_LDFLAGS"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20803 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20805 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20807 else
20808 lt_prog_compiler_static_CXX=
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20816 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20817 $as_echo_n "(cached) " >&6
20818 else
20819 lt_cv_prog_compiler_c_o_CXX=no
20820 $RM -r conftest 2>/dev/null
20821 mkdir conftest
20822 cd conftest
20823 mkdir out
20824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20826 lt_compiler_flag="-o out/conftest2.$ac_objext"
20827 # Insert the option either (1) after the last *FLAGS variable, or
20828 # (2) before a word containing "conftest.", or (3) at the end.
20829 # Note that $ac_compile itself does not contain backslashes and begins
20830 # with a dollar sign (not a hyphen), so the echo should work correctly.
20831 lt_compile=`echo "$ac_compile" | $SED \
20832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20834 -e 's:$: $lt_compiler_flag:'`
20835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20836 (eval "$lt_compile" 2>out/conftest.err)
20837 ac_status=$?
20838 cat out/conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20841 then
20842 # The compiler can only warn and ignore the option if not recognized
20843 # So say no if there are warnings
20844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20847 lt_cv_prog_compiler_c_o_CXX=yes
20850 chmod u+w . 2>&5
20851 $RM conftest*
20852 # SGI C++ compiler will create directory out/ii_files/ for
20853 # template instantiation
20854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20855 $RM out/* && rmdir out
20856 cd ..
20857 $RM -r conftest
20858 $RM conftest*
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20862 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20870 else
20871 lt_cv_prog_compiler_c_o_CXX=no
20872 $RM -r conftest 2>/dev/null
20873 mkdir conftest
20874 cd conftest
20875 mkdir out
20876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20878 lt_compiler_flag="-o out/conftest2.$ac_objext"
20879 # Insert the option either (1) after the last *FLAGS variable, or
20880 # (2) before a word containing "conftest.", or (3) at the end.
20881 # Note that $ac_compile itself does not contain backslashes and begins
20882 # with a dollar sign (not a hyphen), so the echo should work correctly.
20883 lt_compile=`echo "$ac_compile" | $SED \
20884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20886 -e 's:$: $lt_compiler_flag:'`
20887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20888 (eval "$lt_compile" 2>out/conftest.err)
20889 ac_status=$?
20890 cat out/conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20893 then
20894 # The compiler can only warn and ignore the option if not recognized
20895 # So say no if there are warnings
20896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20899 lt_cv_prog_compiler_c_o_CXX=yes
20902 chmod u+w . 2>&5
20903 $RM conftest*
20904 # SGI C++ compiler will create directory out/ii_files/ for
20905 # template instantiation
20906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20907 $RM out/* && rmdir out
20908 cd ..
20909 $RM -r conftest
20910 $RM conftest*
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20919 hard_links="nottested"
20920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20921 # do not overwrite the value of need_locks provided by the user
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20923 $as_echo_n "checking if we can lock with hard links... " >&6; }
20924 hard_links=yes
20925 $RM conftest*
20926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20927 touch conftest.a
20928 ln conftest.a conftest.b 2>&5 || hard_links=no
20929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20931 $as_echo "$hard_links" >&6; }
20932 if test "$hard_links" = no; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20935 need_locks=warn
20937 else
20938 need_locks=no
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20947 case $host_os in
20948 aix[4-9]*)
20949 # If we're using GNU nm, then we don't want the "-C" option.
20950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20951 # Also, AIX nm treats weak defined symbols like other global defined
20952 # symbols, whereas GNU nm marks them as "W".
20953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20954 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'
20955 else
20956 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'
20959 pw32*)
20960 export_symbols_cmds_CXX="$ltdll_cmds"
20962 cygwin* | mingw* | cegcc*)
20963 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'
20966 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20968 esac
20969 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20972 $as_echo "$ld_shlibs_CXX" >&6; }
20973 test "$ld_shlibs_CXX" = no && can_build_shared=no
20975 with_gnu_ld_CXX=$with_gnu_ld
20983 # Do we need to explicitly link libc?
20985 case "x$archive_cmds_need_lc_CXX" in
20986 x|xyes)
20987 # Assume -lc should be added
20988 archive_cmds_need_lc_CXX=yes
20990 if test "$enable_shared" = yes && test "$GCC" = yes; then
20991 case $archive_cmds_CXX in
20992 *'~'*)
20993 # FIXME: we may have to deal with multi-command sequences.
20995 '$CC '*)
20996 # Test whether the compiler implicitly links with -lc since on some
20997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20998 # to ld, don't add -lc before -lgcc.
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21000 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21001 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21002 $as_echo_n "(cached) " >&6
21003 else
21004 $RM conftest*
21005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21008 (eval $ac_compile) 2>&5
21009 ac_status=$?
21010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21011 test $ac_status = 0; } 2>conftest.err; then
21012 soname=conftest
21013 lib=conftest
21014 libobjs=conftest.$ac_objext
21015 deplibs=
21016 wl=$lt_prog_compiler_wl_CXX
21017 pic_flag=$lt_prog_compiler_pic_CXX
21018 compiler_flags=-v
21019 linker_flags=-v
21020 verstring=
21021 output_objdir=.
21022 libname=conftest
21023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21024 allow_undefined_flag_CXX=
21025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21027 ac_status=$?
21028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21029 test $ac_status = 0; }
21030 then
21031 lt_cv_archive_cmds_need_lc_CXX=no
21032 else
21033 lt_cv_archive_cmds_need_lc_CXX=yes
21035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21036 else
21037 cat conftest.err 1>&5
21039 $RM conftest*
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21043 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21044 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21046 esac
21049 esac
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21115 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21117 library_names_spec=
21118 libname_spec='lib$name'
21119 soname_spec=
21120 shrext_cmds=".so"
21121 postinstall_cmds=
21122 postuninstall_cmds=
21123 finish_cmds=
21124 finish_eval=
21125 shlibpath_var=
21126 shlibpath_overrides_runpath=unknown
21127 version_type=none
21128 dynamic_linker="$host_os ld.so"
21129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21130 need_lib_prefix=unknown
21131 hardcode_into_libs=no
21133 # when you set need_version to no, make sure it does not cause -set_version
21134 # flags to be left without arguments
21135 need_version=unknown
21137 case $host_os in
21138 aix3*)
21139 version_type=linux
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21141 shlibpath_var=LIBPATH
21143 # AIX 3 has no versioning support, so we append a major version to the name.
21144 soname_spec='${libname}${release}${shared_ext}$major'
21147 aix[4-9]*)
21148 version_type=linux
21149 need_lib_prefix=no
21150 need_version=no
21151 hardcode_into_libs=yes
21152 if test "$host_cpu" = ia64; then
21153 # AIX 5 supports IA64
21154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21155 shlibpath_var=LD_LIBRARY_PATH
21156 else
21157 # With GCC up to 2.95.x, collect2 would create an import file
21158 # for dependence libraries. The import file would start with
21159 # the line `#! .'. This would cause the generated library to
21160 # depend on `.', always an invalid library. This was fixed in
21161 # development snapshots of GCC prior to 3.0.
21162 case $host_os in
21163 aix4 | aix4.[01] | aix4.[01].*)
21164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21165 echo ' yes '
21166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21168 else
21169 can_build_shared=no
21172 esac
21173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21174 # soname into executable. Probably we can add versioning support to
21175 # collect2, so additional links can be useful in future.
21176 if test "$aix_use_runtimelinking" = yes; then
21177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21178 # instead of lib<name>.a to let people know that these are not
21179 # typical AIX shared libraries.
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 else
21182 # We preserve .a as extension for shared libraries through AIX4.2
21183 # and later when we are not doing run time linking.
21184 library_names_spec='${libname}${release}.a $libname.a'
21185 soname_spec='${libname}${release}${shared_ext}$major'
21187 shlibpath_var=LIBPATH
21191 amigaos*)
21192 case $host_cpu in
21193 powerpc)
21194 # Since July 2007 AmigaOS4 officially supports .so libraries.
21195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198 m68k)
21199 library_names_spec='$libname.ixlibrary $libname.a'
21200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21201 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'
21203 esac
21206 beos*)
21207 library_names_spec='${libname}${shared_ext}'
21208 dynamic_linker="$host_os ld.so"
21209 shlibpath_var=LIBRARY_PATH
21212 bsdi[45]*)
21213 version_type=linux
21214 need_version=no
21215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec='${libname}${release}${shared_ext}$major'
21217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21218 shlibpath_var=LD_LIBRARY_PATH
21219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21221 # the default ld.so.conf also contains /usr/contrib/lib and
21222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21223 # libtool to hard-code these into programs
21226 cygwin* | mingw* | pw32* | cegcc*)
21227 version_type=windows
21228 shrext_cmds=".dll"
21229 need_version=no
21230 need_lib_prefix=no
21232 case $GCC,$host_os in
21233 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21234 library_names_spec='$libname.dll.a'
21235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21236 postinstall_cmds='base_file=`basename \${file}`~
21237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21238 dldir=$destdir/`dirname \$dlpath`~
21239 test -d \$dldir || mkdir -p \$dldir~
21240 $install_prog $dir/$dlname \$dldir/$dlname~
21241 chmod a+x \$dldir/$dlname~
21242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21246 dlpath=$dir/\$dldll~
21247 $RM \$dlpath'
21248 shlibpath_overrides_runpath=yes
21250 case $host_os in
21251 cygwin*)
21252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21256 mingw* | cegcc*)
21257 # MinGW DLLs use traditional 'lib' prefix
21258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21260 pw32*)
21261 # pw32 DLLs use 'pw' prefix rather than 'lib'
21262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21264 esac
21268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21270 esac
21271 dynamic_linker='Win32 ld.exe'
21272 # FIXME: first we should search . and the directory the executable is in
21273 shlibpath_var=PATH
21276 darwin* | rhapsody*)
21277 dynamic_linker="$host_os dyld"
21278 version_type=darwin
21279 need_lib_prefix=no
21280 need_version=no
21281 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21282 soname_spec='${libname}${release}${major}$shared_ext'
21283 shlibpath_overrides_runpath=yes
21284 shlibpath_var=DYLD_LIBRARY_PATH
21285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21290 dgux*)
21291 version_type=linux
21292 need_lib_prefix=no
21293 need_version=no
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21295 soname_spec='${libname}${release}${shared_ext}$major'
21296 shlibpath_var=LD_LIBRARY_PATH
21299 freebsd* | dragonfly*)
21300 # DragonFly does not have aout. When/if they implement a new
21301 # versioning mechanism, adjust this.
21302 if test -x /usr/bin/objformat; then
21303 objformat=`/usr/bin/objformat`
21304 else
21305 case $host_os in
21306 freebsd[23].*) objformat=aout ;;
21307 *) objformat=elf ;;
21308 esac
21310 version_type=freebsd-$objformat
21311 case $version_type in
21312 freebsd-elf*)
21313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21314 need_version=no
21315 need_lib_prefix=no
21317 freebsd-*)
21318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21319 need_version=yes
21321 esac
21322 shlibpath_var=LD_LIBRARY_PATH
21323 case $host_os in
21324 freebsd2.*)
21325 shlibpath_overrides_runpath=yes
21327 freebsd3.[01]* | freebsdelf3.[01]*)
21328 shlibpath_overrides_runpath=yes
21329 hardcode_into_libs=yes
21331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21333 shlibpath_overrides_runpath=no
21334 hardcode_into_libs=yes
21336 *) # from 4.6 on, and DragonFly
21337 shlibpath_overrides_runpath=yes
21338 hardcode_into_libs=yes
21340 esac
21343 gnu*)
21344 version_type=linux
21345 need_lib_prefix=no
21346 need_version=no
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21348 soname_spec='${libname}${release}${shared_ext}$major'
21349 shlibpath_var=LD_LIBRARY_PATH
21350 hardcode_into_libs=yes
21353 haiku*)
21354 version_type=linux
21355 need_lib_prefix=no
21356 need_version=no
21357 dynamic_linker="$host_os runtime_loader"
21358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21359 soname_spec='${libname}${release}${shared_ext}$major'
21360 shlibpath_var=LIBRARY_PATH
21361 shlibpath_overrides_runpath=yes
21362 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21363 hardcode_into_libs=yes
21366 hpux9* | hpux10* | hpux11*)
21367 # Give a soname corresponding to the major version so that dld.sl refuses to
21368 # link against other versions.
21369 version_type=sunos
21370 need_lib_prefix=no
21371 need_version=no
21372 case $host_cpu in
21373 ia64*)
21374 shrext_cmds='.so'
21375 hardcode_into_libs=yes
21376 dynamic_linker="$host_os dld.so"
21377 shlibpath_var=LD_LIBRARY_PATH
21378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21380 soname_spec='${libname}${release}${shared_ext}$major'
21381 if test "X$HPUX_IA64_MODE" = X32; then
21382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21383 else
21384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21388 hppa*64*)
21389 shrext_cmds='.sl'
21390 hardcode_into_libs=yes
21391 dynamic_linker="$host_os dld.sl"
21392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21395 soname_spec='${libname}${release}${shared_ext}$major'
21396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21400 shrext_cmds='.sl'
21401 dynamic_linker="$host_os dld.sl"
21402 shlibpath_var=SHLIB_PATH
21403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21405 soname_spec='${libname}${release}${shared_ext}$major'
21407 esac
21408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21409 postinstall_cmds='chmod 555 $lib'
21410 # or fails outright, so override atomically:
21411 install_override_mode=555
21414 interix[3-9]*)
21415 version_type=linux
21416 need_lib_prefix=no
21417 need_version=no
21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21419 soname_spec='${libname}${release}${shared_ext}$major'
21420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21421 shlibpath_var=LD_LIBRARY_PATH
21422 shlibpath_overrides_runpath=no
21423 hardcode_into_libs=yes
21426 irix5* | irix6* | nonstopux*)
21427 case $host_os in
21428 nonstopux*) version_type=nonstopux ;;
21430 if test "$lt_cv_prog_gnu_ld" = yes; then
21431 version_type=linux
21432 else
21433 version_type=irix
21434 fi ;;
21435 esac
21436 need_lib_prefix=no
21437 need_version=no
21438 soname_spec='${libname}${release}${shared_ext}$major'
21439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21440 case $host_os in
21441 irix5* | nonstopux*)
21442 libsuff= shlibsuff=
21445 case $LD in # libtool.m4 will add one of these switches to LD
21446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21447 libsuff= shlibsuff= libmagic=32-bit;;
21448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21449 libsuff=32 shlibsuff=N32 libmagic=N32;;
21450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21452 *) libsuff= shlibsuff= libmagic=never-match;;
21453 esac
21455 esac
21456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21457 shlibpath_overrides_runpath=no
21458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21460 hardcode_into_libs=yes
21463 # No shared lib support for Linux oldld, aout, or coff.
21464 linux*oldld* | linux*aout* | linux*coff*)
21465 dynamic_linker=no
21468 # This must be Linux ELF.
21469 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21470 version_type=linux
21471 need_lib_prefix=no
21472 need_version=no
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec='${libname}${release}${shared_ext}$major'
21475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21476 shlibpath_var=LD_LIBRARY_PATH
21477 shlibpath_overrides_runpath=no
21479 # Some binutils ld are patched to set DT_RUNPATH
21480 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483 lt_cv_shlibpath_overrides_runpath=no
21484 save_LDFLAGS=$LDFLAGS
21485 save_libdir=$libdir
21486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21492 main ()
21496 return 0;
21498 _ACEOF
21499 if ac_fn_cxx_try_link "$LINENO"; then :
21500 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21501 lt_cv_shlibpath_overrides_runpath=yes
21504 rm -f core conftest.err conftest.$ac_objext \
21505 conftest$ac_exeext conftest.$ac_ext
21506 LDFLAGS=$save_LDFLAGS
21507 libdir=$save_libdir
21511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21513 # This implies no fast_install, which is unacceptable.
21514 # Some rework will be needed to allow for fast_install
21515 # before this can be enabled.
21516 hardcode_into_libs=yes
21518 # Append ld.so.conf contents to the search path
21519 if test -f /etc/ld.so.conf; then
21520 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' ' '`
21521 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21524 # We used to test for /lib/ld.so.1 and disable shared libraries on
21525 # powerpc, because MkLinux only supported shared libraries with the
21526 # GNU dynamic linker. Since this was broken with cross compilers,
21527 # most powerpc-linux boxes support dynamic linking these days and
21528 # people can always --disable-shared, the test was removed, and we
21529 # assume the GNU/Linux dynamic linker is in use.
21530 dynamic_linker='GNU/Linux ld.so'
21533 netbsd*)
21534 version_type=sunos
21535 need_lib_prefix=no
21536 need_version=no
21537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21540 dynamic_linker='NetBSD (a.out) ld.so'
21541 else
21542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21543 soname_spec='${libname}${release}${shared_ext}$major'
21544 dynamic_linker='NetBSD ld.elf_so'
21546 shlibpath_var=LD_LIBRARY_PATH
21547 shlibpath_overrides_runpath=yes
21548 hardcode_into_libs=yes
21551 newsos6)
21552 version_type=linux
21553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554 shlibpath_var=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath=yes
21558 *nto* | *qnx*)
21559 version_type=qnx
21560 need_lib_prefix=no
21561 need_version=no
21562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21563 soname_spec='${libname}${release}${shared_ext}$major'
21564 shlibpath_var=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath=no
21566 hardcode_into_libs=yes
21567 dynamic_linker='ldqnx.so'
21570 openbsd*)
21571 version_type=sunos
21572 sys_lib_dlsearch_path_spec="/usr/lib"
21573 need_lib_prefix=no
21574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21575 case $host_os in
21576 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21577 *) need_version=no ;;
21578 esac
21579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21581 shlibpath_var=LD_LIBRARY_PATH
21582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21583 case $host_os in
21584 openbsd2.[89] | openbsd2.[89].*)
21585 shlibpath_overrides_runpath=no
21588 shlibpath_overrides_runpath=yes
21590 esac
21591 else
21592 shlibpath_overrides_runpath=yes
21596 os2*)
21597 libname_spec='$name'
21598 shrext_cmds=".dll"
21599 need_lib_prefix=no
21600 library_names_spec='$libname${shared_ext} $libname.a'
21601 dynamic_linker='OS/2 ld.exe'
21602 shlibpath_var=LIBPATH
21605 osf3* | osf4* | osf5*)
21606 version_type=osf
21607 need_lib_prefix=no
21608 need_version=no
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21611 shlibpath_var=LD_LIBRARY_PATH
21612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21616 rdos*)
21617 dynamic_linker=no
21620 solaris*)
21621 version_type=linux
21622 need_lib_prefix=no
21623 need_version=no
21624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625 soname_spec='${libname}${release}${shared_ext}$major'
21626 shlibpath_var=LD_LIBRARY_PATH
21627 shlibpath_overrides_runpath=yes
21628 hardcode_into_libs=yes
21629 # ldd complains unless libraries are executable
21630 postinstall_cmds='chmod +x $lib'
21633 sunos4*)
21634 version_type=sunos
21635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21637 shlibpath_var=LD_LIBRARY_PATH
21638 shlibpath_overrides_runpath=yes
21639 if test "$with_gnu_ld" = yes; then
21640 need_lib_prefix=no
21642 need_version=yes
21645 sysv4 | sysv4.3*)
21646 version_type=linux
21647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21648 soname_spec='${libname}${release}${shared_ext}$major'
21649 shlibpath_var=LD_LIBRARY_PATH
21650 case $host_vendor in
21651 sni)
21652 shlibpath_overrides_runpath=no
21653 need_lib_prefix=no
21654 runpath_var=LD_RUN_PATH
21656 siemens)
21657 need_lib_prefix=no
21659 motorola)
21660 need_lib_prefix=no
21661 need_version=no
21662 shlibpath_overrides_runpath=no
21663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21665 esac
21668 sysv4*MP*)
21669 if test -d /usr/nec ;then
21670 version_type=linux
21671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21672 soname_spec='$libname${shared_ext}.$major'
21673 shlibpath_var=LD_LIBRARY_PATH
21677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21678 version_type=freebsd-elf
21679 need_lib_prefix=no
21680 need_version=no
21681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21682 soname_spec='${libname}${release}${shared_ext}$major'
21683 shlibpath_var=LD_LIBRARY_PATH
21684 shlibpath_overrides_runpath=yes
21685 hardcode_into_libs=yes
21686 if test "$with_gnu_ld" = yes; then
21687 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21688 else
21689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21690 case $host_os in
21691 sco3.2v5*)
21692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21694 esac
21696 sys_lib_dlsearch_path_spec='/usr/lib'
21699 tpf*)
21700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21701 version_type=linux
21702 need_lib_prefix=no
21703 need_version=no
21704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705 shlibpath_var=LD_LIBRARY_PATH
21706 shlibpath_overrides_runpath=no
21707 hardcode_into_libs=yes
21710 uts4*)
21711 version_type=linux
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21713 soname_spec='${libname}${release}${shared_ext}$major'
21714 shlibpath_var=LD_LIBRARY_PATH
21718 dynamic_linker=no
21720 esac
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21722 $as_echo "$dynamic_linker" >&6; }
21723 test "$dynamic_linker" = no && can_build_shared=no
21725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21726 if test "$GCC" = yes; then
21727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21730 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21731 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21733 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21734 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21776 hardcode_action_CXX=
21777 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21778 test -n "$runpath_var_CXX" ||
21779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21781 # We can hardcode non-existent directories.
21782 if test "$hardcode_direct_CXX" != no &&
21783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21784 # have to relink, otherwise we might link with an installed library
21785 # when we should be linking with a yet-to-be-installed one
21786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21787 test "$hardcode_minus_L_CXX" != no; then
21788 # Linking always hardcodes the temporary library directory.
21789 hardcode_action_CXX=relink
21790 else
21791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21792 hardcode_action_CXX=immediate
21794 else
21795 # We cannot hardcode anything, or else we can only hardcode existing
21796 # directories.
21797 hardcode_action_CXX=unsupported
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21800 $as_echo "$hardcode_action_CXX" >&6; }
21802 if test "$hardcode_action_CXX" = relink ||
21803 test "$inherit_rpath_CXX" = yes; then
21804 # Fast installation is not supported
21805 enable_fast_install=no
21806 elif test "$shlibpath_overrides_runpath" = yes ||
21807 test "$enable_shared" = no; then
21808 # Fast installation is not necessary
21809 enable_fast_install=needless
21818 fi # test -n "$compiler"
21820 CC=$lt_save_CC
21821 LDCXX=$LD
21822 LD=$lt_save_LD
21823 GCC=$lt_save_GCC
21824 with_gnu_ld=$lt_save_with_gnu_ld
21825 lt_cv_path_LDCXX=$lt_cv_path_LD
21826 lt_cv_path_LD=$lt_save_path_LD
21827 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21828 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21829 fi # test "$_lt_caught_CXX_error" != yes
21831 ac_ext=cpp
21832 ac_cpp='$CXXCPP $CPPFLAGS'
21833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21852 # Only expand once:
21858 # Identify the assembler which will work hand-in-glove with the newly
21859 # built GCC, so that we can examine its features. This is the assembler
21860 # which will be driven by the driver program.
21862 # If build != host, and we aren't building gas in-tree, we identify a
21863 # build->target assembler and hope that it will have the same features
21864 # as the host->target assembler we'll be using.
21865 gcc_cv_gas_major_version=
21866 gcc_cv_gas_minor_version=
21867 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21869 if test "${gcc_cv_as+set}" = set; then :
21871 else
21873 if test -x "$DEFAULT_ASSEMBLER"; then
21874 gcc_cv_as="$DEFAULT_ASSEMBLER"
21875 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21876 && test -f ../gas/Makefile \
21877 && test x$build = x$host; then
21878 gcc_cv_as=../gas/as-new$build_exeext
21879 elif test -x as$build_exeext; then
21880 # Build using assembler in the current directory.
21881 gcc_cv_as=./as$build_exeext
21882 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21883 gcc_cv_as="$AS_FOR_TARGET"
21884 else
21885 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21886 set dummy $AS_FOR_TARGET; ac_word=$2
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21888 $as_echo_n "checking for $ac_word... " >&6; }
21889 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21891 else
21892 case $gcc_cv_as in
21893 [\\/]* | ?:[\\/]*)
21894 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21898 for as_dir in $PATH
21900 IFS=$as_save_IFS
21901 test -z "$as_dir" && as_dir=.
21902 for ac_exec_ext in '' $ac_executable_extensions; do
21903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21904 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21906 break 2
21908 done
21909 done
21910 IFS=$as_save_IFS
21913 esac
21915 gcc_cv_as=$ac_cv_path_gcc_cv_as
21916 if test -n "$gcc_cv_as"; then
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21918 $as_echo "$gcc_cv_as" >&6; }
21919 else
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921 $as_echo "no" >&6; }
21928 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21930 case "$ORIGINAL_AS_FOR_TARGET" in
21931 ./as | ./as$build_exeext) ;;
21932 *) ac_config_files="$ac_config_files as:exec-tool.in"
21934 esac
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21937 $as_echo_n "checking what assembler to use... " >&6; }
21938 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21939 # Single tree build which includes gas. We want to prefer it
21940 # over whatever linker top-level may have detected, since
21941 # we'll use what we're building after installation anyway.
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21943 $as_echo "newly built gas" >&6; }
21944 in_tree_gas=yes
21945 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21946 for f in $gcc_cv_as_bfd_srcdir/configure \
21947 $gcc_cv_as_gas_srcdir/configure \
21948 $gcc_cv_as_gas_srcdir/configure.ac \
21949 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21950 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21951 if test x$gcc_cv_gas_version != x; then
21952 break
21954 done
21955 case $gcc_cv_gas_version in
21956 VERSION=[0-9]*) ;;
21957 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21958 esac
21959 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21960 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21961 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21962 case $gcc_cv_gas_patch_version in
21963 "") gcc_cv_gas_patch_version="0" ;;
21964 esac
21965 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21966 + $gcc_cv_gas_minor_version \) \* 1000 \
21967 + $gcc_cv_gas_patch_version`
21969 in_tree_gas_is_elf=no
21970 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21971 || (grep 'obj_format = multi' ../gas/Makefile \
21972 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21973 then
21974 in_tree_gas_is_elf=yes
21976 else
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21978 $as_echo "$gcc_cv_as" >&6; }
21979 in_tree_gas=no
21982 default_ld=
21983 # Check whether --enable-ld was given.
21984 if test "${enable_ld+set}" = set; then :
21985 enableval=$enable_ld; case "${enableval}" in
21987 default_ld=ld.gold
21989 esac
21993 install_gold_as_default=no
21994 # Check whether --enable-gold was given.
21995 if test "${enable_gold+set}" = set; then :
21996 enableval=$enable_gold; case "${enableval}" in
21997 default)
21998 install_gold_as_default=yes
22000 yes)
22001 if test x${default_ld} != x; then
22002 install_gold_as_default=yes
22008 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
22010 esac
22014 # Identify the linker which will work hand-in-glove with the newly
22015 # built GCC, so that we can examine its features. This is the linker
22016 # which will be driven by the driver program.
22018 # If build != host, and we aren't building gas in-tree, we identify a
22019 # build->target linker and hope that it will have the same features
22020 # as the host->target linker we'll be using.
22021 gcc_cv_gld_major_version=
22022 gcc_cv_gld_minor_version=
22023 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22024 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22025 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22027 if test "${gcc_cv_ld+set}" = set; then :
22029 else
22031 if test -x "$DEFAULT_LINKER"; then
22032 gcc_cv_ld="$DEFAULT_LINKER"
22033 elif test $install_gold_as_default = yes \
22034 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22035 && test -f ../gold/Makefile \
22036 && test x$build = x$host; then
22037 gcc_cv_ld=../gold/ld-new$build_exeext
22038 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22039 && test -f ../ld/Makefile \
22040 && test x$build = x$host; then
22041 gcc_cv_ld=../ld/ld-new$build_exeext
22042 elif test -x collect-ld$build_exeext; then
22043 # Build using linker in the current directory.
22044 gcc_cv_ld=./collect-ld$build_exeext
22045 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22046 gcc_cv_ld="$LD_FOR_TARGET"
22047 else
22048 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22049 set dummy $LD_FOR_TARGET; ac_word=$2
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22051 $as_echo_n "checking for $ac_word... " >&6; }
22052 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22053 $as_echo_n "(cached) " >&6
22054 else
22055 case $gcc_cv_ld in
22056 [\\/]* | ?:[\\/]*)
22057 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22061 for as_dir in $PATH
22063 IFS=$as_save_IFS
22064 test -z "$as_dir" && as_dir=.
22065 for ac_exec_ext in '' $ac_executable_extensions; do
22066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22067 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22069 break 2
22071 done
22072 done
22073 IFS=$as_save_IFS
22076 esac
22078 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22079 if test -n "$gcc_cv_ld"; then
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22081 $as_echo "$gcc_cv_ld" >&6; }
22082 else
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22091 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22092 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22093 # if the PLUGIN_LD is set ld-new, just have it as ld
22094 # as that is the installed named.
22095 if test x$PLUGIN_LD_SUFFIX = xld-new \
22096 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22097 PLUGIN_LD_SUFFIX=ld
22100 # Check whether --with-plugin-ld was given.
22101 if test "${with_plugin_ld+set}" = set; then :
22102 withval=$with_plugin_ld; if test x"$withval" != x; then
22103 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22104 PLUGIN_LD_SUFFIX="$withval"
22110 cat >>confdefs.h <<_ACEOF
22111 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22112 _ACEOF
22115 # Check to see if we are using gold instead of ld
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22117 $as_echo_n "checking whether we are using gold... " >&6; }
22118 ld_is_gold=no
22119 if test x$gcc_cv_ld != x; then
22120 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22121 | grep "GNU gold" > /dev/null; then
22122 ld_is_gold=yes
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22126 $as_echo "$ld_is_gold" >&6; }
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22129 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22130 # Check to see if default ld is not gold, but gold is
22131 # available and has support for split stack. If gcc was configured
22132 # with gold then no checking is done.
22134 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22136 # For platforms other than powerpc64*, enable as appropriate.
22138 gold_non_default=no
22139 ld_gold=`which ${gcc_cv_ld}.gold`
22140 # Make sure this gold has minimal split stack support
22141 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22142 ld_vers=`$ld_gold --version | sed 1q`
22143 gold_vers=`echo $ld_vers | sed -n \
22144 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22145 case $target in
22146 # check that the gold version contains the complete split stack support
22147 # on powerpc64 big and little endian
22148 powerpc64*-*-*)
22149 case "$gold_vers" in
22150 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22152 *) gold_non_default=no
22154 esac
22156 esac
22158 if test $gold_non_default = yes; then
22160 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22165 $as_echo "$gold_non_default" >&6; }
22167 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22169 case "$ORIGINAL_LD_FOR_TARGET" in
22170 ./collect-ld | ./collect-ld$build_exeext) ;;
22171 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22173 esac
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22176 $as_echo_n "checking what linker to use... " >&6; }
22177 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22178 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22179 # Single tree build which includes ld. We want to prefer it
22180 # over whatever linker top-level may have detected, since
22181 # we'll use what we're building after installation anyway.
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22183 $as_echo "newly built ld" >&6; }
22184 in_tree_ld=yes
22185 in_tree_ld_is_elf=no
22186 if (grep 'EMUL = .*elf' ../ld/Makefile \
22187 || grep 'EMUL = .*linux' ../ld/Makefile \
22188 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22189 in_tree_ld_is_elf=yes
22190 elif test "$ld_is_gold" = yes; then
22191 in_tree_ld_is_elf=yes
22193 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
22195 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22196 if test x$gcc_cv_gld_version != x; then
22197 break
22199 done
22200 case $gcc_cv_gld_version in
22201 VERSION=[0-9]*) ;;
22202 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22203 esac
22204 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22205 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22206 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22207 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22208 else
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22210 $as_echo "$gcc_cv_ld" >&6; }
22211 in_tree_ld=no
22212 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22213 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22214 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22220 # Figure out what nm we will be using.
22221 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22222 if test "${gcc_cv_nm+set}" = set; then :
22224 else
22226 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22227 && test -f ../binutils/Makefile \
22228 && test x$build = x$host; then
22229 gcc_cv_nm=../binutils/nm-new$build_exeext
22230 elif test -x nm$build_exeext; then
22231 gcc_cv_nm=./nm$build_exeext
22232 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22233 gcc_cv_nm="$NM_FOR_TARGET"
22234 else
22235 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22236 set dummy $NM_FOR_TARGET; ac_word=$2
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22238 $as_echo_n "checking for $ac_word... " >&6; }
22239 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22241 else
22242 case $gcc_cv_nm in
22243 [\\/]* | ?:[\\/]*)
22244 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22250 IFS=$as_save_IFS
22251 test -z "$as_dir" && as_dir=.
22252 for ac_exec_ext in '' $ac_executable_extensions; do
22253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22254 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22256 break 2
22258 done
22259 done
22260 IFS=$as_save_IFS
22263 esac
22265 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22266 if test -n "$gcc_cv_nm"; then
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22268 $as_echo "$gcc_cv_nm" >&6; }
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 $as_echo "no" >&6; }
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22279 $as_echo_n "checking what nm to use... " >&6; }
22280 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22281 # Single tree build which includes binutils.
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22283 $as_echo "newly built nm" >&6; }
22284 in_tree_nm=yes
22285 else
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22287 $as_echo "$gcc_cv_nm" >&6; }
22288 in_tree_nm=no
22291 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22293 case "$ORIGINAL_NM_FOR_TARGET" in
22294 ./nm | ./nm$build_exeext) ;;
22295 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22297 esac
22300 # Figure out what objdump we will be using.
22301 if test "${gcc_cv_objdump+set}" = set; then :
22303 else
22305 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22306 && test -f ../binutils/Makefile \
22307 && test x$build = x$host; then
22308 # Single tree build which includes binutils.
22309 gcc_cv_objdump=../binutils/objdump$build_exeext
22310 elif test -x objdump$build_exeext; then
22311 gcc_cv_objdump=./objdump$build_exeext
22312 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22313 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22314 else
22315 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22316 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22318 $as_echo_n "checking for $ac_word... " >&6; }
22319 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22321 else
22322 case $gcc_cv_objdump in
22323 [\\/]* | ?:[\\/]*)
22324 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22330 IFS=$as_save_IFS
22331 test -z "$as_dir" && as_dir=.
22332 for ac_exec_ext in '' $ac_executable_extensions; do
22333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22334 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 break 2
22338 done
22339 done
22340 IFS=$as_save_IFS
22343 esac
22345 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22346 if test -n "$gcc_cv_objdump"; then
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22348 $as_echo "$gcc_cv_objdump" >&6; }
22349 else
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22359 $as_echo_n "checking what objdump to use... " >&6; }
22360 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22361 # Single tree build which includes binutils.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22363 $as_echo "newly built objdump" >&6; }
22364 elif test x$gcc_cv_objdump = x; then
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22366 $as_echo "not found" >&6; }
22367 else
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22369 $as_echo "$gcc_cv_objdump" >&6; }
22372 # Figure out what readelf we will be using.
22373 if test "${gcc_cv_readelf+set}" = set; then :
22375 else
22377 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22378 && test -f ../binutils/Makefile \
22379 && test x$build = x$host; then
22380 # Single tree build which includes binutils.
22381 gcc_cv_readelf=../binutils/readelf$build_exeext
22382 elif test -x readelf$build_exeext; then
22383 gcc_cv_readelf=./readelf$build_exeext
22384 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22385 gcc_cv_readelf="$READELF_FOR_TARGET"
22386 else
22387 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22388 set dummy $READELF_FOR_TARGET; ac_word=$2
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22390 $as_echo_n "checking for $ac_word... " >&6; }
22391 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
22393 else
22394 case $gcc_cv_readelf in
22395 [\\/]* | ?:[\\/]*)
22396 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22400 for as_dir in $PATH
22402 IFS=$as_save_IFS
22403 test -z "$as_dir" && as_dir=.
22404 for ac_exec_ext in '' $ac_executable_extensions; do
22405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22406 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22408 break 2
22410 done
22411 done
22412 IFS=$as_save_IFS
22415 esac
22417 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22418 if test -n "$gcc_cv_readelf"; then
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22420 $as_echo "$gcc_cv_readelf" >&6; }
22421 else
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423 $as_echo "no" >&6; }
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22431 $as_echo_n "checking what readelf to use... " >&6; }
22432 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22433 # Single tree build which includes binutils.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22435 $as_echo "newly built readelf" >&6; }
22436 elif test x$gcc_cv_readelf = x; then
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22438 $as_echo "not found" >&6; }
22439 else
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22441 $as_echo "$gcc_cv_readelf" >&6; }
22444 # Figure out what assembler alignment features are present.
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22446 $as_echo_n "checking assembler flags... " >&6; }
22447 if test "${gcc_cv_as_flags+set}" = set; then :
22448 $as_echo_n "(cached) " >&6
22449 else
22450 case "$target" in
22451 i[34567]86-*-linux*)
22452 gcc_cv_as_flags=--32
22454 x86_64-*-linux-gnux32)
22455 gcc_cv_as_flags=--x32
22457 x86_64-*-linux*)
22458 gcc_cv_as_flags=--64
22460 powerpc*-*-darwin*)
22461 gcc_cv_as_flags="-arch ppc"
22464 gcc_cv_as_flags=" "
22466 esac
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22469 $as_echo "$gcc_cv_as_flags" >&6; }
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22472 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22473 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_balign_and_p2align=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22479 then gcc_cv_as_balign_and_p2align=yes
22481 elif test x$gcc_cv_as != x; then
22482 $as_echo '.balign 4
22483 .p2align 2' > conftest.s
22484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489 test $ac_status = 0; }; }
22490 then
22491 gcc_cv_as_balign_and_p2align=yes
22492 else
22493 echo "configure: failed program was" >&5
22494 cat conftest.s >&5
22496 rm -f conftest.o conftest.s
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22500 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22501 if test $gcc_cv_as_balign_and_p2align = yes; then
22503 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22509 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22510 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 gcc_cv_as_max_skip_p2align=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22516 then gcc_cv_as_max_skip_p2align=yes
22518 elif test x$gcc_cv_as != x; then
22519 $as_echo '.p2align 4,,7' > conftest.s
22520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22526 then
22527 gcc_cv_as_max_skip_p2align=yes
22528 else
22529 echo "configure: failed program was" >&5
22530 cat conftest.s >&5
22532 rm -f conftest.o conftest.s
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22536 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22537 if test $gcc_cv_as_max_skip_p2align = yes; then
22539 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22545 $as_echo_n "checking assembler for .literal16... " >&6; }
22546 if test "${gcc_cv_as_literal16+set}" = set; then :
22547 $as_echo_n "(cached) " >&6
22548 else
22549 gcc_cv_as_literal16=no
22550 if test $in_tree_gas = yes; then
22551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22552 then gcc_cv_as_literal16=yes
22554 elif test x$gcc_cv_as != x; then
22555 $as_echo '.literal16' > conftest.s
22556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22562 then
22563 gcc_cv_as_literal16=yes
22564 else
22565 echo "configure: failed program was" >&5
22566 cat conftest.s >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22572 $as_echo "$gcc_cv_as_literal16" >&6; }
22573 if test $gcc_cv_as_literal16 = yes; then
22575 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22581 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22582 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22583 $as_echo_n "(cached) " >&6
22584 else
22585 gcc_cv_as_subsection_m1=no
22586 if test $in_tree_gas = yes; then
22587 if test $in_tree_gas_is_elf = yes \
22588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22589 then gcc_cv_as_subsection_m1=yes
22591 elif test x$gcc_cv_as != x; then
22592 $as_echo 'conftest_label1: .word 0
22593 .subsection -1
22594 conftest_label2: .word 0
22595 .previous' > conftest.s
22596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22601 test $ac_status = 0; }; }
22602 then
22603 if test x$gcc_cv_nm != x; then
22604 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22605 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22606 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22607 then :
22608 else gcc_cv_as_subsection_m1=yes
22610 rm -f conftest.nm1 conftest.nm2
22612 else
22613 echo "configure: failed program was" >&5
22614 cat conftest.s >&5
22616 rm -f conftest.o conftest.s
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22620 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22621 if test $gcc_cv_as_subsection_m1 = yes; then
22623 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22629 $as_echo_n "checking assembler for .weak... " >&6; }
22630 if test "${gcc_cv_as_weak+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22632 else
22633 gcc_cv_as_weak=no
22634 if test $in_tree_gas = yes; then
22635 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22636 then gcc_cv_as_weak=yes
22638 elif test x$gcc_cv_as != x; then
22639 $as_echo ' .weak foobar' > conftest.s
22640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645 test $ac_status = 0; }; }
22646 then
22647 gcc_cv_as_weak=yes
22648 else
22649 echo "configure: failed program was" >&5
22650 cat conftest.s >&5
22652 rm -f conftest.o conftest.s
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22656 $as_echo "$gcc_cv_as_weak" >&6; }
22657 if test $gcc_cv_as_weak = yes; then
22659 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22665 $as_echo_n "checking assembler for .weakref... " >&6; }
22666 if test "${gcc_cv_as_weakref+set}" = set; then :
22667 $as_echo_n "(cached) " >&6
22668 else
22669 gcc_cv_as_weakref=no
22670 if test $in_tree_gas = yes; then
22671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22672 then gcc_cv_as_weakref=yes
22674 elif test x$gcc_cv_as != x; then
22675 $as_echo ' .weakref foobar, barfnot' > conftest.s
22676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }
22682 then
22683 gcc_cv_as_weakref=yes
22684 else
22685 echo "configure: failed program was" >&5
22686 cat conftest.s >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22692 $as_echo "$gcc_cv_as_weakref" >&6; }
22693 if test $gcc_cv_as_weakref = yes; then
22695 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22701 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22702 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22704 else
22705 gcc_cv_as_nsubspa_comdat=no
22706 if test $in_tree_gas = yes; then
22707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22708 then gcc_cv_as_nsubspa_comdat=yes
22710 elif test x$gcc_cv_as != x; then
22711 $as_echo ' .SPACE $TEXT$
22712 .NSUBSPA $CODE$,COMDAT' > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22720 gcc_cv_as_nsubspa_comdat=yes
22721 else
22722 echo "configure: failed program was" >&5
22723 cat conftest.s >&5
22725 rm -f conftest.o conftest.s
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22729 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22730 if test $gcc_cv_as_nsubspa_comdat = yes; then
22732 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22737 # .hidden needs to be supported in both the assembler and the linker,
22738 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22739 # This is irritatingly difficult to feature test for; we have to check the
22740 # date string after the version number. If we've got an in-tree
22741 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22742 # to be safe.
22743 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22744 case "${target}" in
22745 *-*-aix*)
22746 conftest_s=' .globl foobar,hidden'
22749 conftest_s=' .hidden foobar
22750 foobar:'
22752 esac
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22754 $as_echo_n "checking assembler for .hidden... " >&6; }
22755 if test "${gcc_cv_as_hidden+set}" = set; then :
22756 $as_echo_n "(cached) " >&6
22757 else
22758 gcc_cv_as_hidden=no
22759 if test $in_tree_gas = yes; then
22760 if test $in_tree_gas_is_elf = yes \
22761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22762 then gcc_cv_as_hidden=yes
22764 elif test x$gcc_cv_as != x; then
22765 $as_echo "$conftest_s" > conftest.s
22766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22771 test $ac_status = 0; }; }
22772 then
22773 gcc_cv_as_hidden=yes
22774 else
22775 echo "configure: failed program was" >&5
22776 cat conftest.s >&5
22778 rm -f conftest.o conftest.s
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22782 $as_echo "$gcc_cv_as_hidden" >&6; }
22785 case "${target}" in
22786 *-*-darwin*)
22787 # Darwin as has some visibility support, though with a different syntax.
22788 gcc_cv_as_hidden=yes
22790 esac
22792 # gnu_indirect_function type is an extension proposed at
22793 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22794 # selection of function implementation
22795 # Check whether --enable-gnu-indirect-function was given.
22796 if test "${enable_gnu_indirect_function+set}" = set; then :
22797 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22798 yes | no) ;;
22799 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22800 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22801 esac
22802 else
22803 enable_gnu_indirect_function="$default_gnu_indirect_function"
22807 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22809 cat >>confdefs.h <<_ACEOF
22810 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22811 _ACEOF
22815 if test $in_tree_ld != yes ; then
22816 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22817 if echo "$ld_ver" | grep GNU > /dev/null; then
22818 if test x"$ld_is_gold" = xyes; then
22819 # GNU gold --version looks like this:
22821 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22823 # We extract the binutils version which is more familiar and specific
22824 # than the gold version.
22825 ld_vers=`echo $ld_ver | sed -n \
22826 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22827 else
22828 # GNU ld --version looks like this:
22830 # GNU ld (GNU Binutils) 2.21.51.20110225
22831 ld_vers=`echo $ld_ver | sed -n \
22832 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22834 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'`
22835 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22836 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22837 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22838 else
22839 case "${target}" in
22840 *-*-solaris2*)
22841 # Solaris 2 ld -V output looks like this for a regular version:
22843 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22845 # but test versions add stuff at the end:
22847 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22849 # In Solaris 11.4, this was changed to
22851 # ld: Solaris ELF Utilities: 11.4-1.3123
22853 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22854 # numbers can be used in ld.so.1 feature checks even if a different
22855 # linker is configured.
22856 ld_ver=`$gcc_cv_ld -V 2>&1`
22857 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22858 ld_vers=`echo $ld_ver | sed -n \
22859 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22860 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22861 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22864 esac
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22869 $as_echo_n "checking linker for .hidden support... " >&6; }
22870 if test "${gcc_cv_ld_hidden+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 if test $in_tree_ld = yes ; then
22874 gcc_cv_ld_hidden=no
22875 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 \
22876 && test $in_tree_ld_is_elf = yes; then
22877 gcc_cv_ld_hidden=yes
22879 else
22880 gcc_cv_ld_hidden=yes
22881 if test x"$ld_is_gold" = xyes; then
22883 elif echo "$ld_ver" | grep GNU > /dev/null; then
22884 case "${target}" in
22885 mmix-knuth-mmixware)
22886 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22887 gcc_cv_ld_hidden=no
22889 esac
22890 if test 0"$ld_date" -lt 20020404; then
22891 if test -n "$ld_date"; then
22892 # If there was date string, but was earlier than 2002-04-04, fail
22893 gcc_cv_ld_hidden=no
22894 elif test -z "$ld_vers"; then
22895 # If there was no date string nor ld version number, something is wrong
22896 gcc_cv_ld_hidden=no
22897 else
22898 test -z "$ld_vers_patch" && ld_vers_patch=0
22899 if test "$ld_vers_major" -lt 2; then
22900 gcc_cv_ld_hidden=no
22901 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22902 gcc_cv_ld_hidden="no"
22903 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22904 gcc_cv_ld_hidden=no
22908 else
22909 case "${target}" in
22910 *-*-aix[789]*)
22911 gcc_cv_ld_hidden=yes
22913 *-*-darwin*)
22914 # Darwin ld has some visibility support.
22915 gcc_cv_ld_hidden=yes
22917 hppa64*-*-hpux* | ia64*-*-hpux*)
22918 gcc_cv_ld_hidden=yes
22920 *-*-solaris2.1[0-9]*)
22921 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22922 # .symbolic was only added in Solaris 9 12/02.
22923 gcc_cv_ld_hidden=yes
22926 gcc_cv_ld_hidden=no
22928 esac
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22933 $as_echo "$gcc_cv_ld_hidden" >&6; }
22934 libgcc_visibility=no
22937 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22938 libgcc_visibility=yes
22940 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22945 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22946 gcc_cv_ld_ro_rw_mix=unknown
22947 if test $in_tree_ld = yes ; then
22948 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 \
22949 && test $in_tree_ld_is_elf = yes; then
22950 gcc_cv_ld_ro_rw_mix=read-write
22952 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22953 echo '.section myfoosect, "a"' > conftest1.s
22954 echo '.section myfoosect, "aw"' > conftest2.s
22955 echo '.byte 1' >> conftest2.s
22956 echo '.section myfoosect, "a"' > conftest3.s
22957 echo '.byte 0' >> conftest3.s
22958 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22959 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22960 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22961 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22962 conftest2.o conftest3.o > /dev/null 2>&1; then
22963 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22964 | sed -e '/myfoosect/!d' -e N`
22965 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22966 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22967 gcc_cv_ld_ro_rw_mix=read-only
22968 else
22969 gcc_cv_ld_ro_rw_mix=read-write
22973 rm -f conftest.* conftest[123].*
22975 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22977 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22981 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22983 # Check whether --enable-initfini-array was given.
22984 if test "${enable_initfini_array+set}" = set; then :
22985 enableval=$enable_initfini_array;
22986 else
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22989 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22990 if test "${gcc_cv_initfini_array+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22994 case "${target}" in
22995 ia64-*)
22996 if test "$cross_compiling" = yes; then :
22997 gcc_cv_initfini_array=no
22998 else
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23002 #ifndef __ELF__
23003 #error Not an ELF OS
23004 #endif
23005 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23006 if it can be used. */
23007 static int x = -1;
23008 int main (void) { return x; }
23009 int foo (void) { x = 0; }
23010 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23012 _ACEOF
23013 if ac_fn_cxx_try_run "$LINENO"; then :
23014 gcc_cv_initfini_array=yes
23015 else
23016 gcc_cv_initfini_array=no
23018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23019 conftest.$ac_objext conftest.beam conftest.$ac_ext
23023 gcc_cv_initfini_array=no
23024 if test $in_tree_ld = yes ; then
23025 if test "$gcc_cv_gld_major_version" -eq 2 \
23026 -a "$gcc_cv_gld_minor_version" -ge 22 \
23027 -o "$gcc_cv_gld_major_version" -gt 2 \
23028 && test $in_tree_ld_is_elf = yes; then
23029 gcc_cv_initfini_array=yes
23031 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23032 case $target:$gas in
23033 *:yes)
23034 sh_flags='"a"'
23035 sh_type='%progbits'
23037 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23038 sh_flags='"a"'
23039 sh_type='@progbits'
23041 sparc*-*-solaris2*:no)
23042 sh_flags='#alloc'
23043 sh_type='#progbits'
23044 sh_quote='"'
23046 esac
23047 case "$target:$gnu_ld" in
23048 *:yes)
23049 cat > conftest.s <<EOF
23050 .section .dtors,$sh_flags,$sh_type
23051 .balign 4
23052 .byte 'A', 'A', 'A', 'A'
23053 .section .ctors,$sh_flags,$sh_type
23054 .balign 4
23055 .byte 'B', 'B', 'B', 'B'
23056 .section .fini_array.65530,$sh_flags,$sh_type
23057 .balign 4
23058 .byte 'C', 'C', 'C', 'C'
23059 .section .init_array.65530,$sh_flags,$sh_type
23060 .balign 4
23061 .byte 'D', 'D', 'D', 'D'
23062 .section .dtors.64528,$sh_flags,$sh_type
23063 .balign 4
23064 .byte 'E', 'E', 'E', 'E'
23065 .section .ctors.64528,$sh_flags,$sh_type
23066 .balign 4
23067 .byte 'F', 'F', 'F', 'F'
23068 .section .fini_array.01005,$sh_flags,$sh_type
23069 .balign 4
23070 .byte 'G', 'G', 'G', 'G'
23071 .section .init_array.01005,$sh_flags,$sh_type
23072 .balign 4
23073 .byte 'H', 'H', 'H', 'H'
23074 .text
23075 .globl _start
23076 _start:
23078 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23079 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23080 && $gcc_cv_objdump -s -j .init_array conftest \
23081 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23082 && $gcc_cv_objdump -s -j .fini_array conftest \
23083 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23084 gcc_cv_initfini_array=yes
23087 *-*-solaris2*:no)
23088 # When Solaris ld added constructor priority support, it was
23089 # decided to only handle .init_array.N/.fini_array.N since
23090 # there was no need for backwards compatibility with
23091 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23092 # sections with correct execution order resp. to
23093 # .init_array/.fini_array, while gld merges them into
23094 # .init_array/.fini_array.
23095 cat > conftest.s <<EOF
23096 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23097 .align 4
23098 .byte 'C', 'C', 'C', 'C'
23099 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23100 .align 4
23101 .byte 'D', 'D', 'D', 'D'
23102 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23103 .align 4
23104 .byte 'G', 'G', 'G', 'G'
23105 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23106 .align 4
23107 .byte 'H', 'H', 'H', 'H'
23108 .text
23109 .globl _start
23110 _start:
23112 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23113 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23114 && $gcc_cv_objdump -s -j .init_array conftest \
23115 | grep HHHHDDDD > /dev/null 2>&1 \
23116 && $gcc_cv_objdump -s -j .fini_array conftest \
23117 | grep GGGGCCCC > /dev/null 2>&1; then
23118 gcc_cv_initfini_array=yes
23121 esac
23122 rm -f conftest conftest.*
23124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h. */
23127 #ifndef __ELF__
23128 # error Not an ELF OS
23129 #endif
23130 #include <stdlib.h>
23131 #if defined __GLIBC_PREREQ
23132 # if __GLIBC_PREREQ (2, 4)
23133 # else
23134 # error GLIBC 2.4 required
23135 # endif
23136 #else
23137 # if defined __sun__ && defined __svr4__
23138 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23139 # else
23140 # error The C library not known to support .init_array/.fini_array
23141 # endif
23142 #endif
23144 _ACEOF
23145 if ac_fn_cxx_try_cpp "$LINENO"; then :
23147 else
23148 gcc_cv_initfini_array=no
23150 rm -f conftest.err conftest.$ac_ext;;
23151 esac
23152 else
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23154 $as_echo_n "checking cross compile... guessing... " >&6; }
23155 gcc_cv_initfini_array=no
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23159 $as_echo "$gcc_cv_initfini_array" >&6; }
23160 enable_initfini_array=$gcc_cv_initfini_array
23165 cat >>confdefs.h <<_ACEOF
23166 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23167 _ACEOF
23171 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23173 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23174 if test "${gcc_cv_as_leb128+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23177 gcc_cv_as_leb128=no
23178 if test $in_tree_gas = yes; then
23179 if test $in_tree_gas_is_elf = yes \
23180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23181 then gcc_cv_as_leb128=yes
23183 elif test x$gcc_cv_as != x; then
23184 $as_echo ' .data
23185 .uleb128 L2 - L1
23187 .uleb128 1280
23188 .sleb128 -1010
23189 L2:' > conftest.s
23190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23195 test $ac_status = 0; }; }
23196 then
23197 # GAS versions before 2.11 do not support uleb128,
23198 # despite appearing to.
23199 # ??? There exists an elf-specific test that will crash
23200 # the assembler. Perhaps it's better to figure out whether
23201 # arbitrary sections are supported and try the test.
23202 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23203 if echo "$as_ver" | grep GNU > /dev/null; then
23204 as_vers=`echo $as_ver | sed -n \
23205 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23206 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23207 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23208 if test $as_major -eq 2 && test $as_minor -lt 11
23209 then :
23210 else gcc_cv_as_leb128=yes
23213 else
23214 echo "configure: failed program was" >&5
23215 cat conftest.s >&5
23217 rm -f conftest.o conftest.s
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23221 $as_echo "$gcc_cv_as_leb128" >&6; }
23222 if test $gcc_cv_as_leb128 = yes; then
23224 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23227 if test $gcc_cv_as_leb128 != yes; then
23229 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23233 # Determine if an .eh_frame section is read-only.
23234 gcc_fn_eh_frame_ro () {
23235 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23236 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23237 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23240 # Check if we have assembler support for unwind directives.
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23242 $as_echo_n "checking assembler for cfi directives... " >&6; }
23243 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23244 $as_echo_n "(cached) " >&6
23245 else
23246 gcc_cv_as_cfi_directive=no
23247 if test x$gcc_cv_as != x; then
23248 $as_echo ' .text
23249 .cfi_startproc
23250 .cfi_offset 0, 0
23251 .cfi_same_value 1
23252 .cfi_def_cfa 1, 2
23253 .cfi_escape 1, 2, 3, 4, 5
23254 .cfi_endproc' > conftest.s
23255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23260 test $ac_status = 0; }; }
23261 then
23262 case "$target" in
23263 *-*-solaris*)
23264 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23265 # read-only and read-write sections, we need to make sure that the
23266 # assembler used emits read-write .eh_frame sections.
23267 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23268 gcc_cv_as_cfi_directive=yes
23269 elif test "x$gcc_cv_objdump" = x; then
23270 # No objdump, err on the side of caution.
23271 gcc_cv_as_cfi_directive=no
23272 else
23273 if test x$gas = xyes; then
23274 as_32_opt="--32"
23275 as_64_opt="--64"
23276 else
23277 as_32_opt="-m32"
23278 as_64_opt="-m64"
23280 case "$target" in
23281 sparc*-*-solaris2.*)
23282 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23283 if gcc_fn_eh_frame_ro $as_32_opt \
23284 || gcc_fn_eh_frame_ro $as_64_opt; then
23285 gcc_cv_as_cfi_directive=no
23286 else
23287 gcc_cv_as_cfi_directive=yes
23290 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23291 # On Solaris/x86, make sure that GCC and assembler agree on using
23292 # read-only .eh_frame sections for 64-bit.
23293 if gcc_fn_eh_frame_ro $as_32_opt; then
23294 gcc_cv_as_cfi_directive=no
23295 elif gcc_fn_eh_frame_ro $as_64_opt; then
23296 gcc_cv_as_cfi_directive=yes
23297 else
23298 gcc_cv_as_cfi_directive=no
23301 esac
23304 *-*-*)
23305 gcc_cv_as_cfi_directive=yes
23307 esac
23308 else
23309 echo "configure: failed program was" >&5
23310 cat conftest.s >&5
23312 rm -f conftest.o conftest.s
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23316 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23319 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23321 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23322 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23323 $as_echo_n "(cached) " >&6
23324 else
23325 gcc_cv_as_cfi_advance_working=no
23326 if test x$gcc_cv_as != x; then
23327 $as_echo ' .text
23328 .cfi_startproc
23329 .cfi_adjust_cfa_offset 64
23330 .skip 75040, 0
23331 .cfi_adjust_cfa_offset 128
23332 .cfi_endproc' > conftest.s
23333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23338 test $ac_status = 0; }; }
23339 then
23341 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23342 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23343 gcc_cv_as_cfi_advance_working=yes
23346 else
23347 echo "configure: failed program was" >&5
23348 cat conftest.s >&5
23350 rm -f conftest.o conftest.s
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23354 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23357 else
23358 # no objdump, err on the side of caution
23359 gcc_cv_as_cfi_advance_working=no
23363 cat >>confdefs.h <<_ACEOF
23364 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23365 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23366 _ACEOF
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23371 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23372 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23374 else
23375 gcc_cv_as_cfi_personality_directive=no
23376 if test x$gcc_cv_as != x; then
23377 $as_echo ' .text
23378 .cfi_startproc
23379 .cfi_personality 0, symbol
23380 .cfi_endproc' > conftest.s
23381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23387 then
23388 gcc_cv_as_cfi_personality_directive=yes
23389 else
23390 echo "configure: failed program was" >&5
23391 cat conftest.s >&5
23393 rm -f conftest.o conftest.s
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23397 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23403 then echo 1; else echo 0; fi`
23404 _ACEOF
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23408 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23409 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23410 $as_echo_n "(cached) " >&6
23411 else
23412 gcc_cv_as_cfi_sections_directive=no
23413 if test x$gcc_cv_as != x; then
23414 $as_echo ' .text
23415 .cfi_sections .debug_frame, .eh_frame
23416 .cfi_startproc
23417 .cfi_endproc' > conftest.s
23418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }
23424 then
23425 case $target_os in
23426 win32 | pe | cygwin* | mingw32*)
23427 # Need to check that we generated the correct relocation for the
23428 # .debug_frame section. This was fixed for binutils 2.21.
23429 gcc_cv_as_cfi_sections_directive=no
23430 if test "x$gcc_cv_objdump" != x; then
23431 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23432 grep secrel > /dev/null; then
23433 gcc_cv_as_cfi_sections_directive=yes
23438 gcc_cv_as_cfi_sections_directive=yes
23440 esac
23441 else
23442 echo "configure: failed program was" >&5
23443 cat conftest.s >&5
23445 rm -f conftest.o conftest.s
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23449 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23454 cat >>confdefs.h <<_ACEOF
23455 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23456 then echo 1; else echo 0; fi`
23457 _ACEOF
23460 # GAS versions up to and including 2.11.0 may mis-optimize
23461 # .eh_frame data.
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23463 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23464 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23465 $as_echo_n "(cached) " >&6
23466 else
23467 gcc_cv_as_eh_frame=no
23468 if test $in_tree_gas = yes; then
23469 if test $in_tree_gas_is_elf = yes \
23470 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23471 then gcc_cv_as_eh_frame=yes
23473 elif test x$gcc_cv_as != x; then
23474 $as_echo ' .text
23475 .LFB1:
23476 .4byte 0
23477 .L1:
23478 .4byte 0
23479 .LFE1:
23480 .section .eh_frame,"aw",@progbits
23481 __FRAME_BEGIN__:
23482 .4byte .LECIE1-.LSCIE1
23483 .LSCIE1:
23484 .4byte 0x0
23485 .byte 0x1
23486 .ascii "z\0"
23487 .byte 0x1
23488 .byte 0x78
23489 .byte 0x1a
23490 .byte 0x0
23491 .byte 0x4
23492 .4byte 1
23493 .p2align 1
23494 .LECIE1:
23495 .LSFDE1:
23496 .4byte .LEFDE1-.LASFDE1
23497 .LASFDE1:
23498 .4byte .LASFDE1-__FRAME_BEGIN__
23499 .4byte .LFB1
23500 .4byte .LFE1-.LFB1
23501 .byte 0x4
23502 .4byte .LFE1-.LFB1
23503 .byte 0x4
23504 .4byte .L1-.LFB1
23505 .LEFDE1:' > conftest.s
23506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511 test $ac_status = 0; }; }
23512 then
23513 cat > conftest.lit <<EOF
23514 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23515 0010 01000000 12000000 18000000 00000000 ................
23516 0020 08000000 04080000 0044 .........D
23518 cat > conftest.big <<EOF
23519 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23520 0010 00000001 00000012 00000018 00000000 ................
23521 0020 00000008 04000000 0844 .........D
23523 # If the assembler didn't choke, and we can objdump,
23524 # and we got the correct data, then succeed.
23525 # The text in the here-document typically retains its unix-style line
23526 # endings, while the output of objdump will use host line endings.
23527 # Therefore, use diff -b for the comparisons.
23528 if test x$gcc_cv_objdump != x \
23529 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23530 | tail -3 > conftest.got \
23531 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23532 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23533 then
23534 gcc_cv_as_eh_frame=yes
23535 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }; then
23541 gcc_cv_as_eh_frame=buggy
23542 else
23543 # Uh oh, what do we do now?
23544 gcc_cv_as_eh_frame=no
23546 else
23547 echo "configure: failed program was" >&5
23548 cat conftest.s >&5
23550 rm -f conftest.o conftest.s
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23554 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23558 if test $gcc_cv_as_eh_frame = buggy; then
23560 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23564 # Test if the assembler supports the section flag 'e' or #exclude for
23565 # specifying an excluded section.
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23567 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23568 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 gcc_cv_as_section_exclude_e=no
23572 if test $in_tree_gas = yes; then
23573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23574 then gcc_cv_as_section_exclude_e=yes
23576 elif test x$gcc_cv_as != x; then
23577 $as_echo '.section foo1,"e"
23578 .byte 0,0,0,0' > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23585 then
23586 gcc_cv_as_section_exclude_e=yes
23587 else
23588 echo "configure: failed program was" >&5
23589 cat conftest.s >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23595 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23598 if test $gcc_cv_as_section_exclude_e = no; then
23599 case "${target}" in
23600 # Solaris as uses #exclude instead.
23601 *-*-solaris2*)
23602 case "${target}" in
23603 sparc*-*-solaris2*)
23604 conftest_s='.section "foo1", #exclude'
23606 i?86-*-solaris2* | x86_64-*-solaris2*)
23607 conftest_s='.section foo1, #exclude'
23609 esac
23611 esac
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23613 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23614 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_section_exclude_hash=no
23618 if test x$gcc_cv_as != x; then
23619 $as_echo "$conftest_s
23620 .byte 0,0,0,0" > conftest.s
23621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23627 then
23628 gcc_cv_as_section_exclude_hash=yes
23629 else
23630 echo "configure: failed program was" >&5
23631 cat conftest.s >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23637 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23642 cat >>confdefs.h <<_ACEOF
23643 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23644 _ACEOF
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23648 $as_echo_n "checking assembler for section merging support... " >&6; }
23649 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23651 else
23652 gcc_cv_as_shf_merge=no
23653 if test $in_tree_gas = yes; then
23654 if test $in_tree_gas_is_elf = yes \
23655 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23656 then gcc_cv_as_shf_merge=yes
23658 elif test x$gcc_cv_as != x; then
23659 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23662 (eval $ac_try) 2>&5
23663 ac_status=$?
23664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23665 test $ac_status = 0; }; }
23666 then
23667 gcc_cv_as_shf_merge=yes
23668 else
23669 echo "configure: failed program was" >&5
23670 cat conftest.s >&5
23672 rm -f conftest.o conftest.s
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23676 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23679 if test $gcc_cv_as_shf_merge = no; then
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23681 $as_echo_n "checking assembler for section merging support... " >&6; }
23682 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 gcc_cv_as_shf_merge=no
23686 if test $in_tree_gas = yes; then
23687 if test $in_tree_gas_is_elf = yes \
23688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23689 then gcc_cv_as_shf_merge=yes
23691 elif test x$gcc_cv_as != x; then
23692 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23695 (eval $ac_try) 2>&5
23696 ac_status=$?
23697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23698 test $ac_status = 0; }; }
23699 then
23700 gcc_cv_as_shf_merge=yes
23701 else
23702 echo "configure: failed program was" >&5
23703 cat conftest.s >&5
23705 rm -f conftest.o conftest.s
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23709 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23713 case "$target" in
23714 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23715 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23716 if test x"$gnu_ld" = xno; then
23717 gcc_cv_as_shf_merge=no
23720 esac
23722 cat >>confdefs.h <<_ACEOF
23723 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23724 _ACEOF
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23728 $as_echo_n "checking assembler for stabs directive... " >&6; }
23729 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23730 $as_echo_n "(cached) " >&6
23731 else
23732 gcc_cv_as_stabs_directive=no
23733 if test x$gcc_cv_as != x; then
23734 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23741 then
23742 gcc_cv_as_stabs_directive=yes
23743 else
23744 echo "configure: failed program was" >&5
23745 cat conftest.s >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23751 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23752 if test $gcc_cv_as_stabs_directive = yes; then
23754 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23760 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23761 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 gcc_cv_as_comdat_group=no
23765 if test $in_tree_gas = yes; then
23766 if test $in_tree_gas_is_elf = yes \
23767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23768 then gcc_cv_as_comdat_group=yes
23770 elif test x$gcc_cv_as != x; then
23771 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23774 (eval $ac_try) 2>&5
23775 ac_status=$?
23776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23777 test $ac_status = 0; }; }
23778 then
23779 gcc_cv_as_comdat_group=yes
23780 else
23781 echo "configure: failed program was" >&5
23782 cat conftest.s >&5
23784 rm -f conftest.o conftest.s
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23788 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23791 if test $gcc_cv_as_comdat_group = yes; then
23792 gcc_cv_as_comdat_group_percent=no
23793 gcc_cv_as_comdat_group_group=no
23794 else
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23796 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_comdat_group_percent=no
23801 if test $in_tree_gas = yes; then
23802 if test $in_tree_gas_is_elf = yes \
23803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23804 then gcc_cv_as_comdat_group_percent=yes
23806 elif test x$gcc_cv_as != x; then
23807 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23813 test $ac_status = 0; }; }
23814 then
23815 gcc_cv_as_comdat_group_percent=yes
23816 else
23817 echo "configure: failed program was" >&5
23818 cat conftest.s >&5
23820 rm -f conftest.o conftest.s
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23824 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23827 if test $gcc_cv_as_comdat_group_percent = yes; then
23828 gcc_cv_as_comdat_group_group=no
23829 else
23830 case "${target}" in
23831 # Sun as uses a completely different syntax.
23832 *-*-solaris2*)
23833 case "${target}" in
23834 sparc*-*-solaris2*)
23835 conftest_s='
23836 .group foo,".text%foo",#comdat
23837 .section ".text%foo", #alloc,#execinstr,#progbits
23838 .globl foo
23839 foo:
23842 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23843 conftest_s='
23844 .group foo,.text%foo,#comdat
23845 .section .text%foo, "ax", @progbits
23846 .globl foo
23847 foo:
23850 esac
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23852 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23853 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_comdat_group_group=no
23857 if test x$gcc_cv_as != x; then
23858 $as_echo "$conftest_s" > 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_comdat_group_group=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_comdat_group_group" >&5
23875 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23879 esac
23880 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23881 gcc_cv_as_comdat_group_group=no
23885 if test x"$ld_is_gold" = xyes; then
23886 comdat_group=yes
23887 elif test $in_tree_ld = yes ; then
23888 comdat_group=no
23889 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 \
23890 && test $in_tree_ld_is_elf = yes; then
23891 comdat_group=yes
23893 elif echo "$ld_ver" | grep GNU > /dev/null; then
23894 comdat_group=yes
23895 if test 0"$ld_date" -lt 20050308; then
23896 if test -n "$ld_date"; then
23897 # If there was date string, but was earlier than 2005-03-08, fail
23898 comdat_group=no
23899 elif test "$ld_vers_major" -lt 2; then
23900 comdat_group=no
23901 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23902 comdat_group=no
23905 else
23906 case "${target}" in
23907 *-*-solaris2.1[1-9]*)
23908 comdat_group=no
23909 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23910 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23911 # version 1.688.
23913 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23914 # least ld version 1.2267.
23915 if test "$ld_vers_major" -gt 1; then
23916 comdat_group=yes
23917 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23918 comdat_group=yes
23919 elif test "$ld_vers_minor" -ge 2267; then
23920 comdat_group=yes
23924 # Assume linkers other than GNU ld don't support COMDAT group.
23925 comdat_group=no
23927 esac
23929 # Allow overriding the automatic COMDAT group tests above.
23930 # Check whether --enable-comdat was given.
23931 if test "${enable_comdat+set}" = set; then :
23932 enableval=$enable_comdat; comdat_group="$enable_comdat"
23935 if test $comdat_group = no; then
23936 gcc_cv_as_comdat_group=no
23937 gcc_cv_as_comdat_group_percent=no
23938 gcc_cv_as_comdat_group_group=no
23941 cat >>confdefs.h <<_ACEOF
23942 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23943 || test $gcc_cv_as_comdat_group_percent = yes \
23944 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23945 _ACEOF
23948 # Restrict this test to Solaris/x86: other targets define this statically.
23949 case "${target}" in
23950 i?86-*-solaris2* | x86_64-*-solaris2*)
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23952 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23953 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23954 hidden_linkonce=yes
23955 else
23956 case "${target}" in
23957 # Full support for hidden thunks in linkonce sections only appeared in
23958 # Solaris 11/OpenSolaris.
23959 *-*-solaris2.1[1-9]*)
23960 hidden_linkonce=yes
23963 hidden_linkonce=no
23965 esac
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23968 $as_echo "$hidden_linkonce" >&6; }
23970 cat >>confdefs.h <<_ACEOF
23971 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23972 _ACEOF
23975 esac
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
23978 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
23979 if test "${gcc_cv_as_is_stmt+set}" = set; then :
23980 $as_echo_n "(cached) " >&6
23981 else
23982 gcc_cv_as_is_stmt=no
23983 if test $in_tree_gas = yes; then
23984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
23985 then gcc_cv_as_is_stmt=yes
23987 elif test x$gcc_cv_as != x; then
23988 $as_echo ' .text
23989 .file 1 "conf.c"
23990 .loc 1 1 0 is_stmt 1' > conftest.s
23991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23997 then
23998 gcc_cv_as_is_stmt=yes
23999 else
24000 echo "configure: failed program was" >&5
24001 cat conftest.s >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24007 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24008 if test $gcc_cv_as_is_stmt = yes; then
24010 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24016 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24017 if test "${gcc_cv_as_discriminator+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
24019 else
24020 gcc_cv_as_discriminator=no
24021 if test $in_tree_gas = yes; then
24022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24023 then gcc_cv_as_discriminator=yes
24025 elif test x$gcc_cv_as != x; then
24026 $as_echo ' .text
24027 .file 1 "conf.c"
24028 .loc 1 1 0 discriminator 1' > conftest.s
24029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24035 then
24036 gcc_cv_as_discriminator=yes
24037 else
24038 echo "configure: failed program was" >&5
24039 cat conftest.s >&5
24041 rm -f conftest.o conftest.s
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24045 $as_echo "$gcc_cv_as_discriminator" >&6; }
24046 if test $gcc_cv_as_discriminator = yes; then
24048 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24053 # Thread-local storage - the check is heavily parameterized.
24054 conftest_s=
24055 tls_first_major=
24056 tls_first_minor=
24057 tls_as_opt=
24058 case "$target" in
24059 alpha*-*-*)
24060 conftest_s='
24061 .section ".tdata","awT",@progbits
24062 foo: .long 25
24063 .text
24064 ldq $27,__tls_get_addr($29) !literal!1
24065 lda $16,foo($29) !tlsgd!1
24066 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24067 ldq $27,__tls_get_addr($29) !literal!2
24068 lda $16,foo($29) !tlsldm!2
24069 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24070 ldq $1,foo($29) !gotdtprel
24071 ldah $2,foo($29) !dtprelhi
24072 lda $3,foo($2) !dtprello
24073 lda $4,foo($29) !dtprel
24074 ldq $1,foo($29) !gottprel
24075 ldah $2,foo($29) !tprelhi
24076 lda $3,foo($2) !tprello
24077 lda $4,foo($29) !tprel'
24078 tls_first_major=2
24079 tls_first_minor=13
24080 tls_as_opt=--fatal-warnings
24082 arc*-*-*)
24083 conftest_s='
24084 add_s r0,r0, @foo@tpoff'
24085 tls_first_major=2
24086 tls_first_minor=23
24088 cris-*-*|crisv32-*-*)
24089 conftest_s='
24090 .section ".tdata","awT",@progbits
24091 x: .long 25
24092 .text
24093 move.d x:IE,$r10
24094 nop'
24095 tls_first_major=2
24096 tls_first_minor=20
24097 tls_as_opt=--fatal-warnings
24099 frv*-*-*)
24100 conftest_s='
24101 .section ".tdata","awT",@progbits
24102 x: .long 25
24103 .text
24104 call #gettlsoff(x)'
24105 tls_first_major=2
24106 tls_first_minor=14
24108 hppa*-*-linux*)
24109 conftest_s='
24110 t1: .reg %r20
24111 t2: .reg %r21
24112 gp: .reg %r19
24113 .section ".tdata","awT",@progbits
24114 foo: .long 25
24115 .text
24116 .align 4
24117 addil LT%foo-$tls_gdidx$,gp
24118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24119 b __tls_get_addr
24121 addil LT%foo-$tls_ldidx$,gp
24122 b __tls_get_addr
24123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24124 addil LR%foo-$tls_dtpoff$,%ret0
24125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24126 mfctl %cr27,%t1
24127 addil LT%foo-$tls_ieoff$,gp
24128 ldw RT%foo-$tls_ieoff$(%r1),%t2
24129 add %t1,%t2,%t3
24130 mfctl %cr27,%t1
24131 addil LR%foo-$tls_leoff$,%t1
24132 ldo RR%foo-$tls_leoff$(%r1),%t2'
24133 tls_first_major=2
24134 tls_first_minor=15
24135 tls_as_opt=--fatal-warnings
24137 arm*-*-*)
24138 conftest_s='
24139 .section ".tdata","awT",%progbits
24140 foo: .long 25
24141 .text
24142 .word foo(gottpoff)
24143 .word foo(tpoff)
24144 .word foo(tlsgd)
24145 .word foo(tlsldm)
24146 .word foo(tlsldo)'
24147 tls_first_major=2
24148 tls_first_minor=17
24150 i[34567]86-*-* | x86_64-*-*)
24151 case "$target" in
24152 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24153 on_solaris=yes
24156 on_solaris=no
24158 esac
24159 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24160 conftest_s='
24161 .section .tdata,"awt",@progbits'
24162 tls_first_major=0
24163 tls_first_minor=0
24164 tls_section_flag=t
24166 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24168 else
24169 conftest_s='
24170 .section ".tdata","awT",@progbits'
24171 tls_first_major=2
24172 tls_first_minor=14
24173 tls_section_flag=T
24174 tls_as_opt="--fatal-warnings"
24176 case "$target" in
24177 i[34567]86-*-*)
24178 conftest_s="$conftest_s
24179 foo: .long 25
24180 .text
24181 movl %gs:0, %eax
24182 leal foo@tlsgd(,%ebx,1), %eax
24183 leal foo@tlsldm(%ebx), %eax
24184 leal foo@dtpoff(%eax), %edx
24185 movl foo@gottpoff(%ebx), %eax
24186 subl foo@gottpoff(%ebx), %eax
24187 addl foo@gotntpoff(%ebx), %eax
24188 movl foo@indntpoff, %eax
24189 movl \$foo@tpoff, %eax
24190 subl \$foo@tpoff, %eax
24191 leal foo@ntpoff(%ecx), %eax"
24193 x86_64-*-*)
24194 if test x$on_solaris = xyes; then
24195 case $gas_flag in
24196 yes) tls_as_opt="$tls_as_opt --64" ;;
24197 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24198 esac
24200 conftest_s="$conftest_s
24201 foo: .long 25
24202 .text
24203 movq %fs:0, %rax
24204 leaq foo@tlsgd(%rip), %rdi
24205 leaq foo@tlsld(%rip), %rdi
24206 leaq foo@dtpoff(%rax), %rdx
24207 movq foo@gottpoff(%rip), %rax
24208 movq \$foo@tpoff, %rax"
24210 esac
24212 ia64-*-*)
24213 conftest_s='
24214 .section ".tdata","awT",@progbits
24215 foo: data8 25
24216 .text
24217 addl r16 = @ltoff(@dtpmod(foo#)), gp
24218 addl r17 = @ltoff(@dtprel(foo#)), gp
24219 addl r18 = @ltoff(@tprel(foo#)), gp
24220 addl r19 = @dtprel(foo#), gp
24221 adds r21 = @dtprel(foo#), r13
24222 movl r23 = @dtprel(foo#)
24223 addl r20 = @tprel(foo#), gp
24224 adds r22 = @tprel(foo#), r13
24225 movl r24 = @tprel(foo#)'
24226 tls_first_major=2
24227 tls_first_minor=13
24228 tls_as_opt=--fatal-warnings
24230 microblaze*-*-*)
24231 conftest_s='
24232 .section .tdata,"awT",@progbits
24234 .word 2
24235 .text
24236 addik r5,r20,x@TLSGD
24237 addik r5,r20,x@TLSLDM'
24238 tls_first_major=2
24239 tls_first_minor=20
24240 tls_as_opt='--fatal-warnings'
24242 mips*-*-*)
24243 conftest_s='
24244 .section .tdata,"awT",@progbits
24246 .word 2
24247 .text
24248 addiu $4, $28, %tlsgd(x)
24249 addiu $4, $28, %tlsldm(x)
24250 lui $4, %dtprel_hi(x)
24251 addiu $4, $4, %dtprel_lo(x)
24252 lw $4, %gottprel(x)($28)
24253 lui $4, %tprel_hi(x)
24254 addiu $4, $4, %tprel_lo(x)'
24255 tls_first_major=2
24256 tls_first_minor=16
24257 tls_as_opt='-32 --fatal-warnings'
24259 m68k-*-*)
24260 conftest_s='
24261 .section .tdata,"awT",@progbits
24263 .word 2
24264 .text
24265 foo:
24266 move.l x@TLSGD(%a5),%a0
24267 move.l x@TLSLDM(%a5),%a0
24268 move.l x@TLSLDO(%a5),%a0
24269 move.l x@TLSIE(%a5),%a0
24270 move.l x@TLSLE(%a5),%a0'
24271 tls_first_major=2
24272 tls_first_minor=19
24273 tls_as_opt='--fatal-warnings'
24275 nios2-*-*)
24276 conftest_s='
24277 .section ".tdata","awT",@progbits'
24278 tls_first_major=2
24279 tls_first_minor=23
24280 tls_as_opt="--fatal-warnings"
24282 aarch64*-*-*)
24283 conftest_s='
24284 .section ".tdata","awT",%progbits
24285 foo: .long 25
24286 .text
24287 adrp x0, :tlsgd:x
24288 add x0, x0, #:tlsgd_lo12:x
24289 bl __tls_get_addr
24290 nop'
24291 tls_first_major=2
24292 tls_first_minor=20
24293 tls_as_opt='--fatal-warnings'
24295 powerpc-ibm-aix*)
24296 conftest_s='
24297 .extern __get_tpointer
24298 .toc
24299 LC..1:
24300 .tc a[TC],a[TL]@le
24301 .csect .text[PR]
24302 .tlstest:
24303 lwz 9,LC..1(2)
24304 bla __get_tpointer
24305 lwzx 3,9,3
24306 .globl a
24307 .csect a[TL],4
24309 .space 4'
24310 tls_first_major=0
24311 tls_first_minor=0
24313 powerpc64*-*-*)
24314 conftest_s='
24315 .section ".tdata","awT",@progbits
24316 .align 3
24317 ld0: .space 8
24318 ld1: .space 8
24319 x1: .space 8
24320 x2: .space 8
24321 x3: .space 8
24322 .text
24323 addi 3,2,ld0@got@tlsgd
24324 bl .__tls_get_addr
24326 addi 3,2,ld1@toc
24327 bl .__tls_get_addr
24329 addi 3,2,x1@got@tlsld
24330 bl .__tls_get_addr
24332 addi 9,3,x1@dtprel
24333 bl .__tls_get_addr
24335 addis 9,3,x2@dtprel@ha
24336 addi 9,9,x2@dtprel@l
24337 bl .__tls_get_addr
24339 ld 9,x3@got@dtprel(2)
24340 add 9,9,3
24341 bl .__tls_get_addr
24342 nop'
24343 tls_first_major=2
24344 tls_first_minor=14
24345 tls_as_opt="-a64 --fatal-warnings"
24347 powerpc*-*-*)
24348 conftest_s='
24349 .section ".tdata","awT",@progbits
24350 .align 2
24351 ld0: .space 4
24352 ld1: .space 4
24353 x1: .space 4
24354 x2: .space 4
24355 x3: .space 4
24356 .text
24357 addi 3,31,ld0@got@tlsgd
24358 bl __tls_get_addr
24359 addi 3,31,x1@got@tlsld
24360 bl __tls_get_addr
24361 addi 9,3,x1@dtprel
24362 addis 9,3,x2@dtprel@ha
24363 addi 9,9,x2@dtprel@l
24364 lwz 9,x3@got@tprel(31)
24365 add 9,9,x@tls
24366 addi 9,2,x1@tprel
24367 addis 9,2,x2@tprel@ha
24368 addi 9,9,x2@tprel@l'
24369 tls_first_major=2
24370 tls_first_minor=14
24371 tls_as_opt="-a32 --fatal-warnings"
24373 riscv*-*-*)
24374 conftest_s='
24375 .section .tdata,"awT",@progbits
24376 x: .word 2
24377 .text
24378 la.tls.gd a0,x
24379 call __tls_get_addr'
24380 tls_first_major=2
24381 tls_first_minor=21
24382 tls_as_opt='--fatal-warnings'
24384 s390-*-*)
24385 conftest_s='
24386 .section ".tdata","awT",@progbits
24387 foo: .long 25
24388 .text
24389 .long foo@TLSGD
24390 .long foo@TLSLDM
24391 .long foo@DTPOFF
24392 .long foo@NTPOFF
24393 .long foo@GOTNTPOFF
24394 .long foo@INDNTPOFF
24395 l %r1,foo@GOTNTPOFF(%r12)
24396 l %r1,0(%r1):tls_load:foo
24397 bas %r14,0(%r1,%r13):tls_gdcall:foo
24398 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24399 tls_first_major=2
24400 tls_first_minor=14
24401 tls_as_opt="-m31 --fatal-warnings"
24403 s390x-*-*)
24404 conftest_s='
24405 .section ".tdata","awT",@progbits
24406 foo: .long 25
24407 .text
24408 .quad foo@TLSGD
24409 .quad foo@TLSLDM
24410 .quad foo@DTPOFF
24411 .quad foo@NTPOFF
24412 .quad foo@GOTNTPOFF
24413 lg %r1,foo@GOTNTPOFF(%r12)
24414 larl %r1,foo@INDNTPOFF
24415 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24416 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24417 tls_first_major=2
24418 tls_first_minor=14
24419 tls_as_opt="-m64 -Aesame --fatal-warnings"
24421 sh-*-* | sh[123456789lbe]*-*-*)
24422 conftest_s='
24423 .section ".tdata","awT",@progbits
24424 foo: .long 25
24425 .text
24426 .long foo@TLSGD
24427 .long foo@TLSLDM
24428 .long foo@DTPOFF
24429 .long foo@GOTTPOFF
24430 .long foo@TPOFF'
24431 tls_first_major=2
24432 tls_first_minor=13
24433 tls_as_opt=--fatal-warnings
24435 sparc*-*-*)
24436 case "$target" in
24437 sparc*-sun-solaris2.*)
24438 on_solaris=yes
24441 on_solaris=no
24443 esac
24444 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24445 conftest_s='
24446 .section ".tdata",#alloc,#write,#tls'
24447 tls_first_major=0
24448 tls_first_minor=0
24449 else
24450 conftest_s='
24451 .section ".tdata","awT",@progbits'
24452 tls_first_major=2
24453 tls_first_minor=14
24454 tls_as_opt="-32 --fatal-warnings"
24456 conftest_s="$conftest_s
24457 foo: .long 25
24458 .text
24459 sethi %tgd_hi22(foo), %o0
24460 add %o0, %tgd_lo10(foo), %o1
24461 add %l7, %o1, %o0, %tgd_add(foo)
24462 call __tls_get_addr, %tgd_call(foo)
24463 sethi %tldm_hi22(foo), %l1
24464 add %l1, %tldm_lo10(foo), %l2
24465 add %l7, %l2, %o0, %tldm_add(foo)
24466 call __tls_get_addr, %tldm_call(foo)
24467 sethi %tldo_hix22(foo), %l3
24468 xor %l3, %tldo_lox10(foo), %l4
24469 add %o0, %l4, %l5, %tldo_add(foo)
24470 sethi %tie_hi22(foo), %o3
24471 add %o3, %tie_lo10(foo), %o3
24472 ld [%l7 + %o3], %o2, %tie_ld(foo)
24473 add %g7, %o2, %o4, %tie_add(foo)
24474 sethi %tle_hix22(foo), %l1
24475 xor %l1, %tle_lox10(foo), %o5
24476 ld [%g7 + %o5], %o1"
24478 tilepro*-*-*)
24479 conftest_s='
24480 .section ".tdata","awT",@progbits
24481 foo: .long 25
24482 .text
24483 addli r0, zero, tls_gd(foo)
24484 auli r0, zero, tls_gd_ha16(foo)
24485 addli r0, r0, tls_gd_lo16(foo)
24486 jal __tls_get_addr
24487 addli r0, zero, tls_ie(foo)
24488 auli r0, r0, tls_ie_ha16(foo)
24489 addli r0, r0, tls_ie_lo16(foo)'
24490 tls_first_major=2
24491 tls_first_minor=22
24492 tls_as_opt="--fatal-warnings"
24494 tilegx*-*-*)
24495 conftest_s='
24496 .section ".tdata","awT",@progbits
24497 foo: .long 25
24498 .text
24499 shl16insli r0, zero, hw0_last_tls_gd(foo)
24500 shl16insli r0, zero, hw1_last_tls_gd(foo)
24501 shl16insli r0, r0, hw0_tls_gd(foo)
24502 jal __tls_get_addr
24503 shl16insli r0, zero, hw1_last_tls_ie(foo)
24504 shl16insli r0, r0, hw0_tls_ie(foo)'
24505 tls_first_major=2
24506 tls_first_minor=22
24507 tls_as_opt="--fatal-warnings"
24509 xtensa*-*-*)
24510 conftest_s='
24511 .section ".tdata","awT",@progbits
24512 foo: .long 25
24513 .text
24514 movi a8, foo@TLSFUNC
24515 movi a10, foo@TLSARG
24516 callx8.tls a8, foo@TLSCALL'
24517 tls_first_major=2
24518 tls_first_minor=19
24520 esac
24521 set_have_as_tls=no
24522 if test "x$enable_tls" = xno ; then
24523 : # TLS explicitly disabled.
24524 elif test "x$enable_tls" = xyes ; then
24525 set_have_as_tls=yes # TLS explicitly enabled.
24526 elif test -z "$tls_first_major"; then
24527 : # If we don't have a check, assume no support.
24528 else
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24530 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24531 if test "${gcc_cv_as_tls+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24533 else
24534 gcc_cv_as_tls=no
24535 if test $in_tree_gas = yes; then
24536 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24537 then gcc_cv_as_tls=yes
24539 elif test x$gcc_cv_as != x; then
24540 $as_echo "$conftest_s" > conftest.s
24541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24547 then
24548 gcc_cv_as_tls=yes
24549 else
24550 echo "configure: failed program was" >&5
24551 cat conftest.s >&5
24553 rm -f conftest.o conftest.s
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24557 $as_echo "$gcc_cv_as_tls" >&6; }
24558 if test $gcc_cv_as_tls = yes; then
24559 set_have_as_tls=yes
24563 if test $set_have_as_tls = yes ; then
24565 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24569 # Target-specific assembler checks.
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24572 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24573 gcc_cv_ld_static_dynamic=no
24574 gcc_cv_ld_static_option='-Bstatic'
24575 gcc_cv_ld_dynamic_option='-Bdynamic'
24576 if test $in_tree_ld = yes ; then
24577 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
24578 gcc_cv_ld_static_dynamic=yes
24580 elif test x$gcc_cv_ld != x; then
24581 # Check if linker supports -Bstatic/-Bdynamic option
24582 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24583 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24584 gcc_cv_ld_static_dynamic=yes
24585 else
24586 case "$target" in
24587 # AIX ld uses -b flags
24588 *-*-aix4.[23]* | *-*-aix[5-9]*)
24589 gcc_cv_ld_static_dynamic=yes
24590 gcc_cv_ld_static_option="-bstatic"
24591 gcc_cv_ld_dynamic_option="-bdynamic"
24593 # HP-UX ld uses -a flags to select between shared and archive.
24594 *-*-hpux*)
24595 if test x"$gnu_ld" = xno; then
24596 gcc_cv_ld_static_dynamic=yes
24597 gcc_cv_ld_static_option="-aarchive_shared"
24598 gcc_cv_ld_dynamic_option="-adefault"
24601 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24602 *-*-solaris2*)
24603 gcc_cv_ld_static_dynamic=yes
24605 esac
24608 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24610 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24613 cat >>confdefs.h <<_ACEOF
24614 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24615 _ACEOF
24618 cat >>confdefs.h <<_ACEOF
24619 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24620 _ACEOF
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24624 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24627 $as_echo_n "checking linker --version-script option... " >&6; }
24628 gcc_cv_ld_version_script=no
24629 ld_version_script_option=''
24630 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24631 gcc_cv_ld_version_script=yes
24632 ld_version_script_option='--version-script'
24633 elif test x$gcc_cv_ld != x; then
24634 case "$target" in
24635 # Solaris 2 ld always supports -M. It also supports a subset of
24636 # --version-script since Solaris 11.4, but requires
24637 # -z gnu-version-script-compat to activate.
24638 *-*-solaris2*)
24639 gcc_cv_ld_version_script=yes
24640 ld_version_script_option='-M'
24642 esac
24644 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24646 $as_echo "$gcc_cv_ld_version_script" >&6; }
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24650 $as_echo_n "checking linker soname option... " >&6; }
24651 gcc_cv_ld_soname=no
24652 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24653 gcc_cv_ld_soname=yes
24654 ld_soname_option='-soname'
24655 elif test x$gcc_cv_ld != x; then
24656 case "$target" in
24657 *-*-darwin*)
24658 gcc_cv_ld_soname=yes
24659 ld_soname_option='-install_name'
24661 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24662 # ld compatiblity since some Solaris 10 update.
24663 *-*-solaris2*)
24664 gcc_cv_ld_soname=yes
24665 ld_soname_option='-h'
24667 esac
24669 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24671 $as_echo "$gcc_cv_ld_soname" >&6; }
24674 if test x"$demangler_in_ld" = xyes; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24676 $as_echo_n "checking linker --demangle support... " >&6; }
24677 gcc_cv_ld_demangle=no
24678 if test $in_tree_ld = yes; then
24679 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 \
24680 gcc_cv_ld_demangle=yes
24682 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24683 # Check if the GNU linker supports --demangle option
24684 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24685 gcc_cv_ld_demangle=yes
24688 if test x"$gcc_cv_ld_demangle" = xyes; then
24690 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24694 $as_echo "$gcc_cv_ld_demangle" >&6; }
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24698 $as_echo_n "checking linker plugin support... " >&6; }
24699 gcc_cv_lto_plugin=0
24700 if test -f liblto_plugin.la; then
24701 save_ld_ver="$ld_ver"
24702 save_ld_vers_major="$ld_vers_major"
24703 save_ld_vers_minor="$ld_vers_minor"
24704 save_ld_is_gold="$ld_is_gold"
24706 ld_is_gold=no
24708 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24709 ld_ver="GNU ld"
24710 # FIXME: ld_is_gold?
24711 ld_vers_major="$gcc_cv_gld_major_version"
24712 ld_vers_minor="$gcc_cv_gld_minor_version"
24713 else
24714 # Determine plugin linker version.
24715 # FIXME: Partial duplicate from above, generalize.
24716 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24717 if echo "$ld_ver" | grep GNU > /dev/null; then
24718 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24719 ld_is_gold=yes
24720 ld_vers=`echo $ld_ver | sed -n \
24721 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24722 else
24723 ld_vers=`echo $ld_ver | sed -n \
24724 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24726 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24727 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24731 # Determine plugin support.
24732 if echo "$ld_ver" | grep GNU > /dev/null; then
24733 # Require GNU ld or gold 2.21+ for plugin support by default.
24734 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24735 gcc_cv_lto_plugin=2
24736 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24737 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24738 gcc_cv_lto_plugin=1
24742 ld_ver="$save_ld_ver"
24743 ld_vers_major="$save_ld_vers_major"
24744 ld_vers_minor="$save_ld_vers_minor"
24745 ld_is_gold="$save_ld_is_gold"
24748 cat >>confdefs.h <<_ACEOF
24749 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24750 _ACEOF
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24753 $as_echo "$gcc_cv_lto_plugin" >&6; }
24755 # Target OS-specific assembler checks.
24757 case "$target_os" in
24758 darwin*)
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24760 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24761 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_mmacosx_version_min=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo '.text' > conftest.s
24767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772 test $ac_status = 0; }; }
24773 then
24774 gcc_cv_as_mmacosx_version_min=yes
24775 else
24776 echo "configure: failed program was" >&5
24777 cat conftest.s >&5
24779 rm -f conftest.o conftest.s
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24783 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24784 if test $gcc_cv_as_mmacosx_version_min = yes; then
24786 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24791 esac
24793 # Target CPU-specific assembler checks.
24795 case "$target" in
24796 aarch64*-*-*)
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24798 $as_echo_n "checking assembler for -mabi option... " >&6; }
24799 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24800 $as_echo_n "(cached) " >&6
24801 else
24802 gcc_cv_as_aarch64_mabi=no
24803 if test x$gcc_cv_as != x; then
24804 $as_echo '.text' > conftest.s
24805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24808 ac_status=$?
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24811 then
24812 gcc_cv_as_aarch64_mabi=yes
24813 else
24814 echo "configure: failed program was" >&5
24815 cat conftest.s >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24821 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24824 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24826 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24828 else
24829 if test x$with_abi = xilp32; then
24830 as_fn_error "Assembler does not support -mabi=ilp32.\
24831 Upgrade the Assembler." "$LINENO" 5
24833 if test x"$with_multilib_list" = xdefault; then
24834 TM_MULTILIB_CONFIG=lp64
24835 else
24836 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24837 for aarch64_multilib in ${aarch64_multilibs}; do
24838 case ${aarch64_multilib} in
24839 ilp32)
24840 as_fn_error "Assembler does not support -mabi=ilp32.\
24841 Upgrade the Assembler." "$LINENO" 5
24845 esac
24846 done
24849 # Check if we have binutils support for relocations types needed by -fpic
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24851 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24852 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gcc_cv_as_aarch64_picreloc=no
24856 if test x$gcc_cv_as != x; then
24857 $as_echo '
24858 .text
24859 ldr x0, [x2, #:gotpage_lo15:globalsym]
24860 ' > conftest.s
24861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24867 then
24868 gcc_cv_as_aarch64_picreloc=yes
24869 else
24870 echo "configure: failed program was" >&5
24871 cat conftest.s >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24877 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24878 if test $gcc_cv_as_aarch64_picreloc = yes; then
24880 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24884 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24885 # Check whether --enable-fix-cortex-a53-835769 was given.
24886 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24887 enableval=$enable_fix_cortex_a53_835769;
24888 case $enableval in
24889 yes)
24890 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24895 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24896 Valid choices are 'yes' and 'no'." "$LINENO" 5
24899 esac
24903 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24904 # Check whether --enable-fix-cortex-a53-843419 was given.
24905 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24906 enableval=$enable_fix_cortex_a53_843419;
24907 case $enableval in
24908 yes)
24909 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24914 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24915 Valid choices are 'yes' and 'no'." "$LINENO" 5
24918 esac
24924 # All TARGET_ABI_OSF targets.
24925 alpha*-*-linux* | alpha*-*-*bsd*)
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24927 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24928 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 gcc_cv_as_alpha_explicit_relocs=no
24932 if test $in_tree_gas = yes; then
24933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24934 then gcc_cv_as_alpha_explicit_relocs=yes
24936 elif test x$gcc_cv_as != x; then
24937 $as_echo ' .set nomacro
24938 .text
24939 extbl $3, $2, $3 !lituse_bytoff!1
24940 ldq $2, a($29) !literal!1
24941 ldq $4, b($29) !literal!2
24942 ldq_u $3, 0($2) !lituse_base!1
24943 ldq $27, f($29) !literal!5
24944 jsr $26, ($27), f !lituse_jsr!5
24945 ldah $29, 0($26) !gpdisp!3
24946 lda $0, c($29) !gprel
24947 ldah $1, d($29) !gprelhigh
24948 lda $1, d($1) !gprellow
24949 lda $29, 0($29) !gpdisp!3' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_alpha_explicit_relocs=yes
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24966 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24967 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24969 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24974 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24975 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_alpha_jsrdirect_relocs=no
24979 if test $in_tree_gas = yes; then
24980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24981 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24983 elif test x$gcc_cv_as != x; then
24984 $as_echo ' .set nomacro
24985 .text
24986 ldq $27, a($29) !literal!1
24987 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24994 then
24995 gcc_cv_as_alpha_jsrdirect_relocs=yes
24996 else
24997 echo "configure: failed program was" >&5
24998 cat conftest.s >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25004 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25005 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25007 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25013 avr-*-*)
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25015 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25016 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25017 $as_echo_n "(cached) " >&6
25018 else
25019 gcc_cv_as_avr_mlink_relax=no
25020 if test x$gcc_cv_as != x; then
25021 $as_echo '.text' > conftest.s
25022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25024 (eval $ac_try) 2>&5
25025 ac_status=$?
25026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25027 test $ac_status = 0; }; }
25028 then
25029 gcc_cv_as_avr_mlink_relax=yes
25030 else
25031 echo "configure: failed program was" >&5
25032 cat conftest.s >&5
25034 rm -f conftest.o conftest.s
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25038 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25039 if test $gcc_cv_as_avr_mlink_relax = yes; then
25041 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25047 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25048 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25049 $as_echo_n "(cached) " >&6
25050 else
25051 gcc_cv_as_avr_mrmw=no
25052 if test x$gcc_cv_as != x; then
25053 $as_echo '.text' > conftest.s
25054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25060 then
25061 gcc_cv_as_avr_mrmw=yes
25062 else
25063 echo "configure: failed program was" >&5
25064 cat conftest.s >&5
25066 rm -f conftest.o conftest.s
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25070 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25071 if test $gcc_cv_as_avr_mrmw = yes; then
25073 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25079 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25080 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25081 $as_echo_n "(cached) " >&6
25082 else
25083 gcc_cv_as_avr_mgccisr=no
25084 if test x$gcc_cv_as != x; then
25085 $as_echo '.text
25086 __gcc_isr 1
25087 __gcc_isr 2
25088 __gcc_isr 0,r24
25089 ' > conftest.s
25090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25092 (eval $ac_try) 2>&5
25093 ac_status=$?
25094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25095 test $ac_status = 0; }; }
25096 then
25097 gcc_cv_as_avr_mgccisr=yes
25098 else
25099 echo "configure: failed program was" >&5
25100 cat conftest.s >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25106 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25107 if test $gcc_cv_as_avr_mgccisr = yes; then
25109 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25114 # Check how default linker description file implements .rodata for
25115 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25116 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25118 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25119 cat > conftest.s <<EOF
25120 .section .rodata,"a",@progbits
25121 .global xxvaryy
25122 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25123 xxvaryy:
25124 .word 1
25126 rm -f conftest.nm
25127 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25139 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25145 if test -s conftest.nm
25146 then
25147 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25149 $as_echo "yes" >&6; }
25151 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25153 else
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25155 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25156 echo "$as_me: nm output was" >&5
25157 cat conftest.nm >&5
25158 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25159 { $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
25160 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25162 else
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25164 $as_echo "test failed" >&6; }
25165 echo "$as_me: failed program was" >&5
25166 cat conftest.s >&5
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25168 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25170 rm -f conftest.s conftest.o conftest.elf conftest.nm
25173 cris-*-*)
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25175 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25176 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25178 else
25179 gcc_cv_as_cris_no_mul_bug=no
25180 if test $in_tree_gas = yes; then
25181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25182 then gcc_cv_as_cris_no_mul_bug=yes
25184 elif test x$gcc_cv_as != x; then
25185 $as_echo '.text' > conftest.s
25186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25192 then
25193 gcc_cv_as_cris_no_mul_bug=yes
25194 else
25195 echo "configure: failed program was" >&5
25196 cat conftest.s >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25202 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25203 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25205 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25211 sparc*-*-*)
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25213 $as_echo_n "checking assembler for .register... " >&6; }
25214 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25216 else
25217 gcc_cv_as_sparc_register_op=no
25218 if test x$gcc_cv_as != x; then
25219 $as_echo '.register %g2, #scratch' > conftest.s
25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25226 then
25227 gcc_cv_as_sparc_register_op=yes
25228 else
25229 echo "configure: failed program was" >&5
25230 cat conftest.s >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25236 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25237 if test $gcc_cv_as_sparc_register_op = yes; then
25239 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25245 $as_echo_n "checking assembler for -relax option... " >&6; }
25246 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_sparc_relax=no
25250 if test x$gcc_cv_as != x; then
25251 $as_echo '.text' > conftest.s
25252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25258 then
25259 gcc_cv_as_sparc_relax=yes
25260 else
25261 echo "configure: failed program was" >&5
25262 cat conftest.s >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25268 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25269 if test $gcc_cv_as_sparc_relax = yes; then
25271 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25277 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25278 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 gcc_cv_as_sparc_gotdata_op=no
25282 if test x$gcc_cv_as != x; then
25283 $as_echo '.text
25284 .align 4
25285 foo:
25287 bar:
25288 sethi %gdop_hix22(foo), %g1
25289 xor %g1, %gdop_lox10(foo), %g1
25290 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25297 then
25298 if test x$gcc_cv_ld != x \
25299 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25300 if test x$gcc_cv_objdump != x; then
25301 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25302 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25303 gcc_cv_as_sparc_gotdata_op=no
25304 else
25305 gcc_cv_as_sparc_gotdata_op=yes
25309 rm -f conftest
25310 else
25311 echo "configure: failed program was" >&5
25312 cat conftest.s >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25318 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25319 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25321 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25327 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25328 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25330 else
25331 gcc_cv_as_sparc_ua_pcrel=no
25332 if test x$gcc_cv_as != x; then
25333 $as_echo '.text
25334 foo:
25336 .data
25337 .align 4
25338 .byte 0
25339 .uaword %r_disp32(foo)' > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 if test x$gcc_cv_ld != x \
25348 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25349 gcc_cv_as_sparc_ua_pcrel=yes
25351 rm -f conftest
25352 else
25353 echo "configure: failed program was" >&5
25354 cat conftest.s >&5
25356 rm -f conftest.o conftest.s
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25360 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25361 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25363 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25367 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25368 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25370 else
25371 gcc_cv_as_sparc_ua_pcrel_hidden=no
25372 if test x$gcc_cv_as != x; then
25373 $as_echo '.data
25374 .align 4
25375 .byte 0x31
25376 .uaword %r_disp32(foo)
25377 .byte 0x32, 0x33, 0x34
25378 .global foo
25379 .hidden foo
25380 foo:
25381 .skip 4' > conftest.s
25382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387 test $ac_status = 0; }; }
25388 then
25389 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25390 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25391 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25392 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25393 if $gcc_cv_objdump -R conftest 2> /dev/null \
25394 | grep 'DISP32' > /dev/null 2>&1; then
25396 else
25397 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25400 rm -f conftest
25401 else
25402 echo "configure: failed program was" >&5
25403 cat conftest.s >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25409 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25410 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25412 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25418 # unaligned pcrel relocs
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25421 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25422 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25424 else
25425 gcc_cv_as_sparc_offsetable_lo10=no
25426 if test x$gcc_cv_as != x; then
25427 $as_echo '.text
25428 or %g1, %lo(ab) + 12, %g1
25429 or %g1, %lo(ab + 12), %g1' > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 if test x$gcc_cv_objdump != x \
25438 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25439 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25440 gcc_cv_as_sparc_offsetable_lo10=yes
25442 else
25443 echo "configure: failed program was" >&5
25444 cat conftest.s >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25450 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25451 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25453 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25459 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25460 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25462 else
25463 gcc_cv_as_sparc_fmaf=no
25464 if test x$gcc_cv_as != x; then
25465 $as_echo '.text
25466 .register %g2, #scratch
25467 .register %g3, #scratch
25468 .align 4
25469 fmaddd %f0, %f2, %f4, %f6
25470 addxccc %g1, %g2, %g3
25471 fsrl32 %f2, %f4, %f8
25472 fnaddd %f10, %f12, %f14' > conftest.s
25473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25479 then
25480 gcc_cv_as_sparc_fmaf=yes
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25489 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25490 if test $gcc_cv_as_sparc_fmaf = yes; then
25492 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25498 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25499 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25501 else
25502 gcc_cv_as_sparc_sparc4=no
25503 if test x$gcc_cv_as != x; then
25504 $as_echo '.text
25505 .register %g2, #scratch
25506 .register %g3, #scratch
25507 .align 4
25508 cxbe %g2, %g3, 1f
25509 1: cwbneg %g2, %g3, 1f
25510 1: sha1
25512 aes_kexpand0 %f4, %f6, %f8
25513 des_round %f38, %f40, %f42, %f44
25514 camellia_f %f54, %f56, %f58, %f60
25515 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25522 then
25523 gcc_cv_as_sparc_sparc4=yes
25524 else
25525 echo "configure: failed program was" >&5
25526 cat conftest.s >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25532 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25533 if test $gcc_cv_as_sparc_sparc4 = yes; then
25535 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25541 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25542 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25544 else
25545 gcc_cv_as_sparc_sparc5=no
25546 if test x$gcc_cv_as != x; then
25547 $as_echo '.text
25548 .register %g2, #scratch
25549 .register %g3, #scratch
25550 .align 4
25551 subxc %g1, %g2, %g3
25552 fpadd8 %f0, %f2, %f4' > conftest.s
25553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25556 ac_status=$?
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25559 then
25560 gcc_cv_as_sparc_sparc5=yes
25561 else
25562 echo "configure: failed program was" >&5
25563 cat conftest.s >&5
25565 rm -f conftest.o conftest.s
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25569 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25570 if test $gcc_cv_as_sparc_sparc5 = yes; then
25572 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25578 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25579 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 gcc_cv_as_sparc_sparc6=no
25583 if test x$gcc_cv_as != x; then
25584 $as_echo '.text
25585 .register %g2, #scratch
25586 .register %g3, #scratch
25587 .align 4
25588 rd %entropy, %g1
25589 fpsll64x %f0, %f2, %f4' > conftest.s
25590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25596 then
25597 gcc_cv_as_sparc_sparc6=yes
25598 else
25599 echo "configure: failed program was" >&5
25600 cat conftest.s >&5
25602 rm -f conftest.o conftest.s
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25606 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25607 if test $gcc_cv_as_sparc_sparc6 = yes; then
25609 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25615 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25616 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25618 else
25619 gcc_cv_as_sparc_leon=no
25620 if test x$gcc_cv_as != x; then
25621 $as_echo '.text
25622 .register %g2, #scratch
25623 .register %g3, #scratch
25624 .align 4
25625 smac %g2, %g3, %g1
25626 umac %g2, %g3, %g1
25627 casa [%g2] 0xb, %g3, %g1' > conftest.s
25628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25634 then
25635 gcc_cv_as_sparc_leon=yes
25636 else
25637 echo "configure: failed program was" >&5
25638 cat conftest.s >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25644 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25645 if test $gcc_cv_as_sparc_leon = yes; then
25647 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25653 i[34567]86-*-* | x86_64-*-*)
25654 case $target_os in
25655 cygwin*)
25656 # Full C++ conformance when using a shared libstdc++-v3 requires some
25657 # support from the Cygwin DLL, which in more recent versions exports
25658 # wrappers to aid in interposing and redirecting operators new, delete,
25659 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25660 # are configuring for a version of Cygwin that exports the wrappers.
25661 if test x$host = x$target && test x$host_cpu = xi686; then
25662 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25663 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25664 gcc_ac_cygwin_dll_wrappers=yes
25665 else
25666 gcc_ac_cygwin_dll_wrappers=no
25669 else
25670 # Can't check presence of libc functions during cross-compile, so
25671 # we just have to assume we're building for an up-to-date target.
25672 gcc_ac_cygwin_dll_wrappers=yes
25675 cat >>confdefs.h <<_ACEOF
25676 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25677 _ACEOF
25679 esac
25680 case $target_os in
25681 cygwin* | pe | mingw32*)
25682 # Recent binutils allows the three-operand form of ".comm" on PE. This
25683 # definition is used unconditionally to initialise the default state of
25684 # the target option variable that governs usage of the feature.
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25686 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25687 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 gcc_cv_as_comm_has_align=no
25691 if test $in_tree_gas = yes; then
25692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25693 then gcc_cv_as_comm_has_align=yes
25695 elif test x$gcc_cv_as != x; then
25696 $as_echo '.comm foo,1,32' > conftest.s
25697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25703 then
25704 gcc_cv_as_comm_has_align=yes
25705 else
25706 echo "configure: failed program was" >&5
25707 cat conftest.s >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25713 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25717 cat >>confdefs.h <<_ACEOF
25718 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25719 _ACEOF
25721 # Used for DWARF 2 in PE
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25723 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25724 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25725 $as_echo_n "(cached) " >&6
25726 else
25727 gcc_cv_as_ix86_pe_secrel32=no
25728 if test $in_tree_gas = yes; then
25729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25730 then gcc_cv_as_ix86_pe_secrel32=yes
25732 elif test x$gcc_cv_as != x; then
25733 $as_echo '.text
25734 foo: nop
25735 .data
25736 .secrel32 foo' > conftest.s
25737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742 test $ac_status = 0; }; }
25743 then
25744 if test x$gcc_cv_ld != x \
25745 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25746 gcc_cv_as_ix86_pe_secrel32=yes
25748 rm -f conftest
25749 else
25750 echo "configure: failed program was" >&5
25751 cat conftest.s >&5
25753 rm -f conftest.o conftest.s
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25757 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25758 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25760 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25764 # Test if the assembler supports the extended form of the .section
25765 # directive that specifies section alignment. LTO support uses this,
25766 # but normally only after installation, so we warn but don't fail the
25767 # configure if LTO is enabled but the assembler does not support it.
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25769 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25770 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25771 $as_echo_n "(cached) " >&6
25772 else
25773 gcc_cv_as_section_has_align=no
25774 if test $in_tree_gas = yes; then
25775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25776 then gcc_cv_as_section_has_align=yes
25778 elif test x$gcc_cv_as != x; then
25779 $as_echo '.section lto_test,"dr0"' > conftest.s
25780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }
25786 then
25787 gcc_cv_as_section_has_align=yes
25788 else
25789 echo "configure: failed program was" >&5
25790 cat conftest.s >&5
25792 rm -f conftest.o conftest.s
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25796 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25799 if test x$gcc_cv_as_section_has_align != xyes; then
25800 case ",$enable_languages," in
25801 *,lto,*)
25802 { $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
25803 $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;}
25805 esac
25808 esac
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25811 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25812 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25814 else
25815 gcc_cv_as_ix86_xbrace_comment=no
25816 if test x$gcc_cv_as != x; then
25817 $as_echo '.text' > conftest.s
25818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823 test $ac_status = 0; }; }
25824 then
25825 gcc_cv_as_ix86_xbrace_comment=yes
25826 else
25827 echo "configure: failed program was" >&5
25828 cat conftest.s >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25834 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25835 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25837 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25843 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25844 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25845 $as_echo_n "(cached) " >&6
25846 else
25847 gcc_cv_as_ix86_filds=no
25848 if test x$gcc_cv_as != x; then
25849 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; }
25856 then
25857 gcc_cv_as_ix86_filds=yes
25858 else
25859 echo "configure: failed program was" >&5
25860 cat conftest.s >&5
25862 rm -f conftest.o conftest.s
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25866 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25867 if test $gcc_cv_as_ix86_filds = yes; then
25869 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25875 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25876 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25877 $as_echo_n "(cached) " >&6
25878 else
25879 gcc_cv_as_ix86_fildq=no
25880 if test x$gcc_cv_as != x; then
25881 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25888 then
25889 gcc_cv_as_ix86_fildq=yes
25890 else
25891 echo "configure: failed program was" >&5
25892 cat conftest.s >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25898 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25899 if test $gcc_cv_as_ix86_fildq = yes; then
25901 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25907 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25908 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_ix86_cmov_sun_syntax=no
25912 if test x$gcc_cv_as != x; then
25913 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25917 ac_status=$?
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25920 then
25921 gcc_cv_as_ix86_cmov_sun_syntax=yes
25922 else
25923 echo "configure: failed program was" >&5
25924 cat conftest.s >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25930 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25931 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25933 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25939 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25940 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25941 $as_echo_n "(cached) " >&6
25942 else
25943 gcc_cv_as_ix86_ffreep=no
25944 if test x$gcc_cv_as != x; then
25945 $as_echo 'ffreep %st(1)' > conftest.s
25946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25952 then
25953 gcc_cv_as_ix86_ffreep=yes
25954 else
25955 echo "configure: failed program was" >&5
25956 cat conftest.s >&5
25958 rm -f conftest.o conftest.s
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25962 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25963 if test $gcc_cv_as_ix86_ffreep = yes; then
25965 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25971 $as_echo_n "checking assembler for .quad directive... " >&6; }
25972 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_ix86_quad=no
25976 if test x$gcc_cv_as != x; then
25977 $as_echo '.quad 0' > conftest.s
25978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25984 then
25985 gcc_cv_as_ix86_quad=yes
25986 else
25987 echo "configure: failed program was" >&5
25988 cat conftest.s >&5
25990 rm -f conftest.o conftest.s
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25994 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25995 if test $gcc_cv_as_ix86_quad = yes; then
25997 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26003 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26004 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26005 $as_echo_n "(cached) " >&6
26006 else
26007 gcc_cv_as_ix86_sahf=no
26008 if test x$gcc_cv_as != x; then
26009 $as_echo '.code64
26010 sahf' > conftest.s
26011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016 test $ac_status = 0; }; }
26017 then
26018 gcc_cv_as_ix86_sahf=yes
26019 else
26020 echo "configure: failed program was" >&5
26021 cat conftest.s >&5
26023 rm -f conftest.o conftest.s
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26027 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26028 if test $gcc_cv_as_ix86_sahf = yes; then
26030 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26036 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26037 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26039 else
26040 gcc_cv_as_ix86_interunit_movq=no
26041 if test x$gcc_cv_as != x; then
26042 $as_echo '.code64
26043 movq %mm0, %rax
26044 movq %rax, %xmm0' > conftest.s
26045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050 test $ac_status = 0; }; }
26051 then
26052 gcc_cv_as_ix86_interunit_movq=yes
26053 else
26054 echo "configure: failed program was" >&5
26055 cat conftest.s >&5
26057 rm -f conftest.o conftest.s
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26061 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26065 cat >>confdefs.h <<_ACEOF
26066 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26067 _ACEOF
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26071 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26072 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26073 $as_echo_n "(cached) " >&6
26074 else
26075 gcc_cv_as_ix86_hle=no
26076 if test x$gcc_cv_as != x; then
26077 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_ix86_hle=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26094 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26095 if test $gcc_cv_as_ix86_hle = yes; then
26097 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26103 $as_echo_n "checking assembler for swap suffix... " >&6; }
26104 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_ix86_swap=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo 'movl.s %esp, %ebp' > conftest.s
26110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26115 test $ac_status = 0; }; }
26116 then
26117 gcc_cv_as_ix86_swap=yes
26118 else
26119 echo "configure: failed program was" >&5
26120 cat conftest.s >&5
26122 rm -f conftest.o conftest.s
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26126 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26127 if test $gcc_cv_as_ix86_swap = yes; then
26129 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26135 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26136 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26137 $as_echo_n "(cached) " >&6
26138 else
26139 gcc_cv_as_ix86_diff_sect_delta=no
26140 if test x$gcc_cv_as != x; then
26141 $as_echo '.section .rodata
26142 .L1:
26143 .long .L2-.L1
26144 .long .L3-.L1
26145 .text
26146 .L3: nop
26147 .L2: nop' > conftest.s
26148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153 test $ac_status = 0; }; }
26154 then
26155 gcc_cv_as_ix86_diff_sect_delta=yes
26156 else
26157 echo "configure: failed program was" >&5
26158 cat conftest.s >&5
26160 rm -f conftest.o conftest.s
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26164 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26165 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26167 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26173 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26174 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26176 else
26177 gcc_cv_as_ix86_rep_lock_prefix=no
26178 if test x$gcc_cv_as != x; then
26179 $as_echo 'rep movsl
26180 rep ret
26181 rep nop
26182 rep bsf %ecx, %eax
26183 rep bsr %ecx, %eax
26184 lock addl %edi, (%eax,%esi)
26185 lock orl $0, (%esp)' > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_ix86_rep_lock_prefix=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26202 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26203 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26205 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26211 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26212 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26213 $as_echo_n "(cached) " >&6
26214 else
26215 gcc_cv_as_ix86_ud2=no
26216 if test x$gcc_cv_as != x; then
26217 $as_echo 'ud2' > conftest.s
26218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26220 (eval $ac_try) 2>&5
26221 ac_status=$?
26222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26223 test $ac_status = 0; }; }
26224 then
26225 gcc_cv_as_ix86_ud2=yes
26226 else
26227 echo "configure: failed program was" >&5
26228 cat conftest.s >&5
26230 rm -f conftest.o conftest.s
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26234 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26235 if test $gcc_cv_as_ix86_ud2 = yes; then
26237 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26242 # Enforce 32-bit output with gas and gld.
26243 if test x$gas = xyes; then
26244 as_ix86_gas_32_opt="--32"
26246 if echo "$ld_ver" | grep GNU > /dev/null; then
26247 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26248 ld_ix86_gld_32_opt="-melf_i386_sol2"
26249 else
26250 ld_ix86_gld_32_opt="-melf_i386"
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26255 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26256 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26258 else
26259 gcc_cv_as_ix86_tlsgdplt=no
26260 if test x$gcc_cv_as != x; then
26261 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26265 ac_status=$?
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }
26268 then
26269 if test x$gcc_cv_ld != x \
26270 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26271 gcc_cv_as_ix86_tlsgdplt=yes
26273 rm -f conftest
26274 else
26275 echo "configure: failed program was" >&5
26276 cat conftest.s >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26282 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26283 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26285 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26290 conftest_s='
26291 .section .tdata,"aw'$tls_section_flag'",@progbits
26292 tls_ld:
26293 .section .text,"ax",@progbits
26294 call tls_ld@tlsldmplt'
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26297 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26298 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26299 $as_echo_n "(cached) " >&6
26300 else
26301 gcc_cv_as_ix86_tlsldmplt=no
26302 if test x$gcc_cv_as != x; then
26303 $as_echo "$conftest_s" > conftest.s
26304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26310 then
26311 if test x$gcc_cv_ld != x \
26312 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26313 gcc_cv_as_ix86_tlsldmplt=yes
26315 rm -f conftest
26316 else
26317 echo "configure: failed program was" >&5
26318 cat conftest.s >&5
26320 rm -f conftest.o conftest.s
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26324 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26328 cat >>confdefs.h <<_ACEOF
26329 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26330 _ACEOF
26333 conftest_s='
26334 .section .text,"ax",@progbits
26335 .globl _start
26336 .type _start, @function
26337 _start:
26338 leal value@tlsldm(%ebx), %eax
26339 call ___tls_get_addr@plt
26341 .section .tdata,"aw'$tls_section_flag'",@progbits
26342 .type value, @object
26343 value:'
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26345 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26346 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_as_ix86_tlsldm=no
26350 if test x$gcc_cv_as != x; then
26351 $as_echo "$conftest_s" > conftest.s
26352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; }
26358 then
26359 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26360 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26361 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26362 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26363 gcc_cv_as_ix86_tlsldm=yes
26366 rm -f conftest
26367 else
26368 echo "configure: failed program was" >&5
26369 cat conftest.s >&5
26371 rm -f conftest.o conftest.s
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26375 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26379 cat >>confdefs.h <<_ACEOF
26380 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26381 _ACEOF
26384 conftest_s='
26385 .data
26386 bar:
26387 .byte 1
26388 .text
26389 .global _start
26390 _start:
26391 cmpl $0, bar@GOT
26392 jmp *_start@GOT'
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26394 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26395 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26396 $as_echo_n "(cached) " >&6
26397 else
26398 gcc_cv_as_ix86_got32x=no
26399 if test x$gcc_cv_as != x; then
26400 $as_echo "$conftest_s" > conftest.s
26401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26406 test $ac_status = 0; }; }
26407 then
26408 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26409 && test x$gcc_cv_readelf != x \
26410 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26411 | grep R_386_GOT32X > /dev/null 2>&1 \
26412 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26413 if $gcc_cv_objdump -dw conftest 2>&1 \
26414 | grep 0xffffff > /dev/null 2>&1; then
26415 gcc_cv_as_ix86_got32x=no
26416 else
26417 gcc_cv_as_ix86_got32x=yes
26420 rm -f conftest
26421 else
26422 echo "configure: failed program was" >&5
26423 cat conftest.s >&5
26425 rm -f conftest.o conftest.s
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26429 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26433 cat >>confdefs.h <<_ACEOF
26434 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26435 _ACEOF
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26439 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26440 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26441 $as_echo_n "(cached) " >&6
26442 else
26443 gcc_cv_as_ix86_gotoff_in_data=no
26444 if test $in_tree_gas = yes; then
26445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26446 then gcc_cv_as_ix86_gotoff_in_data=yes
26448 elif test x$gcc_cv_as != x; then
26449 $as_echo ' .text
26450 .L0:
26452 .data
26453 .long .L0@GOTOFF' > conftest.s
26454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26456 (eval $ac_try) 2>&5
26457 ac_status=$?
26458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26459 test $ac_status = 0; }; }
26460 then
26461 gcc_cv_as_ix86_gotoff_in_data=yes
26462 else
26463 echo "configure: failed program was" >&5
26464 cat conftest.s >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26470 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26474 cat >>confdefs.h <<_ACEOF
26475 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26476 _ACEOF
26479 conftest_s='
26480 .section .text,"ax",@progbits
26481 .globl _start
26482 .type _start, @function
26483 _start:
26484 leal ld@tlsldm(%ecx), %eax
26485 call *___tls_get_addr@GOT(%ecx)
26486 leal gd@tlsgd(%ecx), %eax
26487 call *___tls_get_addr@GOT(%ecx)
26489 .section .tdata,"aw'$tls_section_flag'",@progbits
26490 .type ld, @object
26492 .byte 0
26493 .globl gd
26494 .type gd, @object
26496 .byte 0'
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26498 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26499 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26501 else
26502 gcc_cv_as_ix86_tls_get_addr_via_got=no
26503 if test x$gcc_cv_as != x; then
26504 $as_echo "$conftest_s" > conftest.s
26505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26507 (eval $ac_try) 2>&5
26508 ac_status=$?
26509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26510 test $ac_status = 0; }; }
26511 then
26512 if test x$gcc_cv_ld != x \
26513 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26514 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26516 rm -f conftest
26517 else
26518 echo "configure: failed program was" >&5
26519 cat conftest.s >&5
26521 rm -f conftest.o conftest.s
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26525 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26529 cat >>confdefs.h <<_ACEOF
26530 #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`
26531 _ACEOF
26535 ia64*-*-*)
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26537 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26538 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26539 $as_echo_n "(cached) " >&6
26540 else
26541 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26542 if test $in_tree_gas = yes; then
26543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26544 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26546 elif test x$gcc_cv_as != x; then
26547 $as_echo ' .text
26548 addl r15 = @ltoffx(x#), gp
26550 ld8.mov r16 = [r15], x#' > 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_ia64_ltoffx_ldxmov_relocs=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_ia64_ltoffx_ldxmov_relocs" >&5
26567 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26568 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26570 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26577 powerpc*-*-*)
26579 case $target in
26580 *-*-darwin*)
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26582 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26583 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26584 $as_echo_n "(cached) " >&6
26585 else
26586 gcc_cv_as_machine_directive=no
26587 if test x$gcc_cv_as != x; then
26588 $as_echo ' .machine ppc7400' > conftest.s
26589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591 (eval $ac_try) 2>&5
26592 ac_status=$?
26593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594 test $ac_status = 0; }; }
26595 then
26596 gcc_cv_as_machine_directive=yes
26597 else
26598 echo "configure: failed program was" >&5
26599 cat conftest.s >&5
26601 rm -f conftest.o conftest.s
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26605 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26608 if test x$gcc_cv_as_machine_directive != xyes; then
26609 echo "*** This target requires an assembler supporting \".machine\"" >&2
26610 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26611 test x$build = x$target && exit 1
26614 esac
26616 case $target in
26617 *-*-aix*) conftest_s=' .machine "pwr5"
26618 .csect .text[PR]
26619 mfcr 3,128';;
26620 *-*-darwin*) conftest_s=' .text
26621 mfcr r3,128';;
26622 *) conftest_s=' .machine power4
26623 .text
26624 mfcr 3,128';;
26625 esac
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26628 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26629 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26630 $as_echo_n "(cached) " >&6
26631 else
26632 gcc_cv_as_powerpc_mfcrf=no
26633 if test $in_tree_gas = yes; then
26634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26635 then gcc_cv_as_powerpc_mfcrf=yes
26637 elif test x$gcc_cv_as != x; then
26638 $as_echo "$conftest_s" > conftest.s
26639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26645 then
26646 gcc_cv_as_powerpc_mfcrf=yes
26647 else
26648 echo "configure: failed program was" >&5
26649 cat conftest.s >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26655 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26656 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26658 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26663 case $target in
26664 *-*-aix*) conftest_s=' .csect .text[PR]
26665 LCF..0:
26666 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26667 *-*-darwin*)
26668 conftest_s=' .text
26669 LCF0:
26670 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26671 *) conftest_s=' .text
26672 .LCF0:
26673 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26674 esac
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26677 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26678 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26680 else
26681 gcc_cv_as_powerpc_rel16=no
26682 if test $in_tree_gas = yes; then
26683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26684 then gcc_cv_as_powerpc_rel16=yes
26686 elif test x$gcc_cv_as != x; then
26687 $as_echo "$conftest_s" > conftest.s
26688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26694 then
26695 gcc_cv_as_powerpc_rel16=yes
26696 else
26697 echo "configure: failed program was" >&5
26698 cat conftest.s >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26704 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26705 if test $gcc_cv_as_powerpc_rel16 = yes; then
26707 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26712 case $target in
26713 *-*-aix*) conftest_s=' .machine "pwr7"
26714 .csect .text[PR]
26715 lxvd2x 1,2,3';;
26716 *) conftest_s=' .machine power7
26717 .text
26718 lxvd2x 1,2,3';;
26719 esac
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26722 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26723 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26725 else
26726 gcc_cv_as_powerpc_vsx=no
26727 if test $in_tree_gas = yes; then
26728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26729 then gcc_cv_as_powerpc_vsx=yes
26731 elif test x$gcc_cv_as != x; then
26732 $as_echo "$conftest_s" > conftest.s
26733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26739 then
26740 gcc_cv_as_powerpc_vsx=yes
26741 else
26742 echo "configure: failed program was" >&5
26743 cat conftest.s >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26749 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26750 if test $gcc_cv_as_powerpc_vsx = yes; then
26752 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26758 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26759 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26760 $as_echo_n "(cached) " >&6
26761 else
26762 gcc_cv_as_powerpc_gnu_attribute=no
26763 if test $in_tree_gas = yes; then
26764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26765 then gcc_cv_as_powerpc_gnu_attribute=yes
26767 elif test x$gcc_cv_as != x; then
26768 $as_echo '.gnu_attribute 4,1' > conftest.s
26769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26771 (eval $ac_try) 2>&5
26772 ac_status=$?
26773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; }
26775 then
26776 gcc_cv_as_powerpc_gnu_attribute=yes
26777 else
26778 echo "configure: failed program was" >&5
26779 cat conftest.s >&5
26781 rm -f conftest.o conftest.s
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26785 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26786 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26788 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26794 $as_echo_n "checking assembler for tls marker support... " >&6; }
26795 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26796 $as_echo_n "(cached) " >&6
26797 else
26798 gcc_cv_as_powerpc_tls_markers=no
26799 if test $in_tree_gas = yes; then
26800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26801 then gcc_cv_as_powerpc_tls_markers=yes
26803 elif test x$gcc_cv_as != x; then
26804 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26811 then
26812 gcc_cv_as_powerpc_tls_markers=yes
26813 else
26814 echo "configure: failed program was" >&5
26815 cat conftest.s >&5
26817 rm -f conftest.o conftest.s
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26821 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26822 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26824 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26830 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26831 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_as_powerpc_entry_markers=no
26835 if test $in_tree_gas = yes; then
26836 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26837 then gcc_cv_as_powerpc_entry_markers=yes
26839 elif test x$gcc_cv_as != x; then
26840 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }
26847 then
26848 gcc_cv_as_powerpc_entry_markers=yes
26849 else
26850 echo "configure: failed program was" >&5
26851 cat conftest.s >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26857 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26858 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26860 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26865 case $target in
26866 *-*-aix*)
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26868 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26869 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26871 else
26872 gcc_cv_as_aix_ref=no
26873 if test $in_tree_gas = yes; then
26874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26875 then gcc_cv_as_aix_ref=yes
26877 elif test x$gcc_cv_as != x; then
26878 $as_echo ' .csect stuff[rw]
26879 stuff:
26880 .long 1
26881 .extern sym
26882 .ref sym
26883 ' > conftest.s
26884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }
26890 then
26891 gcc_cv_as_aix_ref=yes
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26900 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26901 if test $gcc_cv_as_aix_ref = yes; then
26903 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26909 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26910 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_as_aix_dwloc=no
26914 if test $in_tree_gas = yes; then
26915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26916 then gcc_cv_as_aix_dwloc=yes
26918 elif test x$gcc_cv_as != x; then
26919 $as_echo ' .dwsect 0xA0000
26920 Lframe..0:
26921 .vbyte 4,Lframe..0
26922 ' > conftest.s
26923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26929 then
26930 gcc_cv_as_aix_dwloc=yes
26931 else
26932 echo "configure: failed program was" >&5
26933 cat conftest.s >&5
26935 rm -f conftest.o conftest.s
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26939 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26940 if test $gcc_cv_as_aix_dwloc = yes; then
26942 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26947 esac
26950 mips*-*-*)
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26952 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26953 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 gcc_cv_as_mips_explicit_relocs=no
26957 if test $in_tree_gas = yes; then
26958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26959 then gcc_cv_as_mips_explicit_relocs=yes
26961 elif test x$gcc_cv_as != x; then
26962 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26969 then
26970 gcc_cv_as_mips_explicit_relocs=yes
26971 else
26972 echo "configure: failed program was" >&5
26973 cat conftest.s >&5
26975 rm -f conftest.o conftest.s
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26979 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26980 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26981 if test x$target_cpu_default = x
26982 then target_cpu_default=MASK_EXPLICIT_RELOCS
26983 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26989 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26990 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26991 $as_echo_n "(cached) " >&6
26992 else
26993 gcc_cv_as_mips_no_shared=no
26994 if test $in_tree_gas = yes; then
26995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26996 then gcc_cv_as_mips_no_shared=yes
26998 elif test x$gcc_cv_as != x; then
26999 $as_echo 'nop' > conftest.s
27000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27005 test $ac_status = 0; }; }
27006 then
27007 gcc_cv_as_mips_no_shared=yes
27008 else
27009 echo "configure: failed program was" >&5
27010 cat conftest.s >&5
27012 rm -f conftest.o conftest.s
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27016 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27017 if test $gcc_cv_as_mips_no_shared = yes; then
27019 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27025 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27026 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27027 $as_echo_n "(cached) " >&6
27028 else
27029 gcc_cv_as_mips_gnu_attribute=no
27030 if test $in_tree_gas = yes; then
27031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27032 then gcc_cv_as_mips_gnu_attribute=yes
27034 elif test x$gcc_cv_as != x; then
27035 $as_echo '.gnu_attribute 4,1' > conftest.s
27036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27041 test $ac_status = 0; }; }
27042 then
27043 gcc_cv_as_mips_gnu_attribute=yes
27044 else
27045 echo "configure: failed program was" >&5
27046 cat conftest.s >&5
27048 rm -f conftest.o conftest.s
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27052 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27053 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27055 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27061 $as_echo_n "checking assembler for .module support... " >&6; }
27062 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27063 $as_echo_n "(cached) " >&6
27064 else
27065 gcc_cv_as_mips_dot_module=no
27066 if test x$gcc_cv_as != x; then
27067 $as_echo '.module mips2
27068 .module fp=xx' > conftest.s
27069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; }
27075 then
27076 gcc_cv_as_mips_dot_module=yes
27077 else
27078 echo "configure: failed program was" >&5
27079 cat conftest.s >&5
27081 rm -f conftest.o conftest.s
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27085 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27086 if test $gcc_cv_as_mips_dot_module = yes; then
27088 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27092 if test x$gcc_cv_as_mips_dot_module = xno \
27093 && test x$with_fp_32 != x; then
27094 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27098 $as_echo_n "checking assembler for .micromips support... " >&6; }
27099 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27100 $as_echo_n "(cached) " >&6
27101 else
27102 gcc_cv_as_micromips_support=no
27103 if test x$gcc_cv_as != x; then
27104 $as_echo '.set micromips' > conftest.s
27105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27110 test $ac_status = 0; }; }
27111 then
27112 gcc_cv_as_micromips_support=yes
27113 else
27114 echo "configure: failed program was" >&5
27115 cat conftest.s >&5
27117 rm -f conftest.o conftest.s
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27121 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27122 if test $gcc_cv_as_micromips_support = yes; then
27124 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27130 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27131 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27132 $as_echo_n "(cached) " >&6
27133 else
27134 gcc_cv_as_mips_dtprelword=no
27135 if test $in_tree_gas = yes; then
27136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27137 then gcc_cv_as_mips_dtprelword=yes
27139 elif test x$gcc_cv_as != x; then
27140 $as_echo '.section .tdata,"awT",@progbits
27142 .word 2
27143 .text
27144 .dtprelword x+0x8000' > conftest.s
27145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27150 test $ac_status = 0; }; }
27151 then
27152 gcc_cv_as_mips_dtprelword=yes
27153 else
27154 echo "configure: failed program was" >&5
27155 cat conftest.s >&5
27157 rm -f conftest.o conftest.s
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27161 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27162 if test $gcc_cv_as_mips_dtprelword = yes; then
27164 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27170 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27171 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27172 $as_echo_n "(cached) " >&6
27173 else
27174 gcc_cv_as_mips_dspr1_mult=no
27175 if test x$gcc_cv_as != x; then
27176 $as_echo ' .set mips32r2
27177 .set nodspr2
27178 .set dsp
27179 madd $ac3,$4,$5
27180 maddu $ac3,$4,$5
27181 msub $ac3,$4,$5
27182 msubu $ac3,$4,$5
27183 mult $ac3,$4,$5
27184 multu $ac3,$4,$5' > conftest.s
27185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27191 then
27192 gcc_cv_as_mips_dspr1_mult=yes
27193 else
27194 echo "configure: failed program was" >&5
27195 cat conftest.s >&5
27197 rm -f conftest.o conftest.s
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27201 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27202 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27204 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27210 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27211 gcc_cv_as_ld_jalr_reloc=no
27212 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27213 if test $in_tree_ld = yes ; then
27214 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 \
27215 && test $in_tree_ld_is_elf = yes; then
27216 gcc_cv_as_ld_jalr_reloc=yes
27218 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27219 echo ' .ent x' > conftest.s
27220 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27221 echo ' lw $25,%call16(y)($28)' >> conftest.s
27222 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27223 echo '1: jalr $25' >> conftest.s
27224 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27225 echo '1: jalr $25' >> conftest.s
27226 echo ' .end x' >> conftest.s
27227 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27228 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27229 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27230 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27231 gcc_cv_as_ld_jalr_reloc=yes
27234 rm -f conftest.*
27237 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27238 if test x$target_cpu_default = x; then
27239 target_cpu_default=MASK_RELAX_PIC_CALLS
27240 else
27241 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27245 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27248 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27249 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27251 else
27252 gcc_cv_ld_mips_personality_relaxation=no
27253 if test $in_tree_ld = yes ; then
27254 if test "$gcc_cv_gld_major_version" -eq 2 \
27255 -a "$gcc_cv_gld_minor_version" -ge 21 \
27256 -o "$gcc_cv_gld_major_version" -gt 2; then
27257 gcc_cv_ld_mips_personality_relaxation=yes
27259 elif test x$gcc_cv_as != x \
27260 -a x$gcc_cv_ld != x \
27261 -a x$gcc_cv_readelf != x ; then
27262 cat > conftest.s <<EOF
27263 .cfi_startproc
27264 .cfi_personality 0x80,indirect_ptr
27265 .ent test
27266 test:
27268 .end test
27269 .cfi_endproc
27271 .section .data,"aw",@progbits
27272 indirect_ptr:
27273 .dc.a personality
27275 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27276 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27277 if $gcc_cv_readelf -d conftest 2>&1 \
27278 | grep TEXTREL > /dev/null 2>&1; then
27280 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27281 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27283 else
27284 gcc_cv_ld_mips_personality_relaxation=yes
27288 rm -f conftest.s conftest.o conftest
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27291 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27292 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27294 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27299 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27300 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27301 $as_echo_n "(cached) " >&6
27302 else
27303 gcc_cv_as_mips_nan=no
27304 if test x$gcc_cv_as != x; then
27305 $as_echo '' > conftest.s
27306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27311 test $ac_status = 0; }; }
27312 then
27313 gcc_cv_as_mips_nan=yes
27314 else
27315 echo "configure: failed program was" >&5
27316 cat conftest.s >&5
27318 rm -f conftest.o conftest.s
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27322 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27323 if test $gcc_cv_as_mips_nan = yes; then
27325 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27329 if test x$gcc_cv_as_mips_nan = xno \
27330 && test x$with_nan != x; then
27331 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27334 s390*-*-*)
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27336 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27337 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27338 $as_echo_n "(cached) " >&6
27339 else
27340 gcc_cv_as_s390_gnu_attribute=no
27341 if test $in_tree_gas = yes; then
27342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27343 then gcc_cv_as_s390_gnu_attribute=yes
27345 elif test x$gcc_cv_as != x; then
27346 $as_echo '.gnu_attribute 8,1' > conftest.s
27347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27353 then
27354 gcc_cv_as_s390_gnu_attribute=yes
27355 else
27356 echo "configure: failed program was" >&5
27357 cat conftest.s >&5
27359 rm -f conftest.o conftest.s
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27363 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27364 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27366 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27371 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27372 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27373 $as_echo_n "(cached) " >&6
27374 else
27375 gcc_cv_as_s390_machine_machinemode=no
27376 if test $in_tree_gas = yes; then
27377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27378 then gcc_cv_as_s390_machine_machinemode=yes
27380 elif test x$gcc_cv_as != x; then
27381 $as_echo ' .machinemode push
27382 .machinemode pop
27383 .machine push
27384 .machine pop' > conftest.s
27385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27391 then
27392 gcc_cv_as_s390_machine_machinemode=yes
27393 else
27394 echo "configure: failed program was" >&5
27395 cat conftest.s >&5
27397 rm -f conftest.o conftest.s
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27401 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27402 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27404 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27409 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27410 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27411 $as_echo_n "(cached) " >&6
27412 else
27413 gcc_cv_as_s390_architecture_modifiers=no
27414 if test $in_tree_gas = yes; then
27415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27416 then gcc_cv_as_s390_architecture_modifiers=yes
27418 elif test x$gcc_cv_as != x; then
27419 $as_echo ' .machine z13+vx ' > conftest.s
27420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27425 test $ac_status = 0; }; }
27426 then
27427 gcc_cv_as_s390_architecture_modifiers=yes
27428 else
27429 echo "configure: failed program was" >&5
27430 cat conftest.s >&5
27432 rm -f conftest.o conftest.s
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27436 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27437 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27439 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27444 esac
27446 # Mips and HP-UX need the GNU assembler.
27447 # Linux on IA64 might be able to use the Intel assembler.
27449 case "$target" in
27450 mips*-*-* | *-*-hpux* )
27451 if test x$gas_flag = xyes \
27452 || test x"$host" != x"$build" \
27453 || test ! -x "$gcc_cv_as" \
27454 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27456 else
27457 echo "*** This configuration requires the GNU assembler" >&2
27458 exit 1
27461 esac
27463 # ??? Not all targets support dwarf2 debug_line, even within a version
27464 # of gas. Moreover, we need to emit a valid instruction to trigger any
27465 # info to the output file. So, as supported targets are added to gas 2.11,
27466 # add some instruction here to (also) show we expect this might work.
27467 # ??? Once 2.11 is released, probably need to add first known working
27468 # version to the per-target configury.
27469 case "$cpu_type" in
27470 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27471 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27472 | tilegx | tilepro | visium | xstormy16 | xtensa)
27473 insn="nop"
27475 ia64 | s390)
27476 insn="nop 0"
27478 mmix)
27479 insn="swym 0"
27481 esac
27482 if test x"$insn" != x; then
27483 conftest_s="\
27484 .file 1 \"conftest.s\"
27485 .loc 1 3 0
27486 $insn"
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27488 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27489 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27490 $as_echo_n "(cached) " >&6
27491 else
27492 gcc_cv_as_dwarf2_debug_line=no
27493 if test $in_tree_gas = yes; then
27494 if test $in_tree_gas_is_elf = yes \
27495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27496 then gcc_cv_as_dwarf2_debug_line=yes
27498 elif test x$gcc_cv_as != x; then
27499 $as_echo "$conftest_s" > conftest.s
27500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27503 ac_status=$?
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; }
27506 then
27507 if test x$gcc_cv_objdump != x \
27508 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27509 | grep debug_line > /dev/null 2>&1; then
27510 gcc_cv_as_dwarf2_debug_line=yes
27512 else
27513 echo "configure: failed program was" >&5
27514 cat conftest.s >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27520 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27524 # The .debug_line file table must be in the exact order that
27525 # we specified the files, since these indices are also used
27526 # by DW_AT_decl_file. Approximate this test by testing if
27527 # the assembler bitches if the same index is assigned twice.
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27529 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27530 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27531 $as_echo_n "(cached) " >&6
27532 else
27533 gcc_cv_as_dwarf2_file_buggy=no
27534 if test x$gcc_cv_as != x; then
27535 $as_echo ' .file 1 "foo.s"
27536 .file 1 "bar.s"' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 gcc_cv_as_dwarf2_file_buggy=yes
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27553 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27557 if test $gcc_cv_as_dwarf2_debug_line = yes \
27558 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27560 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27563 if test $gcc_cv_as_leb128 = yes; then
27564 conftest_s="\
27565 .file 1 \"conftest.s\"
27566 .loc 1 3 0 view .LVU1
27567 $insn
27568 .data
27569 .uleb128 .LVU1
27570 .uleb128 .LVU1
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27573 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27574 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27575 $as_echo_n "(cached) " >&6
27576 else
27577 gcc_cv_as_dwarf2_debug_view=no
27578 if test $in_tree_gas = yes; then
27579 if test $in_tree_gas_is_elf = yes \
27580 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27581 then gcc_cv_as_dwarf2_debug_view=yes
27583 elif test x$gcc_cv_as != x; then
27584 $as_echo "$conftest_s" > conftest.s
27585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27590 test $ac_status = 0; }; }
27591 then
27592 gcc_cv_as_dwarf2_debug_view=yes
27593 else
27594 echo "configure: failed program was" >&5
27595 cat conftest.s >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27601 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27602 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27604 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27612 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27613 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27614 $as_echo_n "(cached) " >&6
27615 else
27616 gcc_cv_as_gdwarf2_flag=no
27617 if test $in_tree_gas = yes; then
27618 if test $in_tree_gas_is_elf = yes \
27619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27620 then gcc_cv_as_gdwarf2_flag=yes
27622 elif test x$gcc_cv_as != x; then
27623 $as_echo "$insn" > conftest.s
27624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27629 test $ac_status = 0; }; }
27630 then
27631 gcc_cv_as_gdwarf2_flag=yes
27632 else
27633 echo "configure: failed program was" >&5
27634 cat conftest.s >&5
27636 rm -f conftest.o conftest.s
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27640 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27641 if test $gcc_cv_as_gdwarf2_flag = yes; then
27643 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27649 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27650 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27651 $as_echo_n "(cached) " >&6
27652 else
27653 gcc_cv_as_gstabs_flag=no
27654 if test $in_tree_gas = yes; then
27655 if test $in_tree_gas_is_elf = yes \
27656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27657 then gcc_cv_as_gstabs_flag=yes
27659 elif test x$gcc_cv_as != x; then
27660 $as_echo "$insn" > conftest.s
27661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27663 (eval $ac_try) 2>&5
27664 ac_status=$?
27665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27666 test $ac_status = 0; }; }
27667 then
27668 gcc_cv_as_gstabs_flag=yes
27669 else
27670 echo "configure: failed program was" >&5
27671 cat conftest.s >&5
27673 rm -f conftest.o conftest.s
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27677 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27678 if test $gcc_cv_as_gstabs_flag = yes; then
27680 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27686 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27687 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27688 $as_echo_n "(cached) " >&6
27689 else
27690 gcc_cv_as_debug_prefix_map_flag=no
27691 if test $in_tree_gas = yes; then
27692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27693 then gcc_cv_as_debug_prefix_map_flag=yes
27695 elif test x$gcc_cv_as != x; then
27696 $as_echo "$insn" > conftest.s
27697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }
27703 then
27704 gcc_cv_as_debug_prefix_map_flag=yes
27705 else
27706 echo "configure: failed program was" >&5
27707 cat conftest.s >&5
27709 rm -f conftest.o conftest.s
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27713 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27714 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27716 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27723 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27724 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27725 $as_echo_n "(cached) " >&6
27726 else
27727 gcc_cv_as_compress_debug=no
27728 if test x$gcc_cv_as != x; then
27729 $as_echo '' > conftest.s
27730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27735 test $ac_status = 0; }; }
27736 then
27737 # gas compiled without zlib cannot compress debug sections and warns
27738 # about it, but still exits successfully. So check for this, too.
27739 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27740 then
27741 gcc_cv_as_compress_debug=0
27742 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27743 # defaulting to the ELF gABI format.
27744 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27745 then
27746 gcc_cv_as_compress_debug=2
27747 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27748 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27749 # Before binutils 2.26, gas only supported --compress-debug-options and
27750 # emitted the traditional GNU format.
27751 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27752 then
27753 gcc_cv_as_compress_debug=1
27754 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27755 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27756 else
27757 gcc_cv_as_compress_debug=0
27759 else
27760 echo "configure: failed program was" >&5
27761 cat conftest.s >&5
27763 rm -f conftest.o conftest.s
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27767 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27771 cat >>confdefs.h <<_ACEOF
27772 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27773 _ACEOF
27776 cat >>confdefs.h <<_ACEOF
27777 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27778 _ACEOF
27781 cat >>confdefs.h <<_ACEOF
27782 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27783 _ACEOF
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27787 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27788 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27789 $as_echo_n "(cached) " >&6
27790 else
27791 gcc_cv_as_lcomm_with_alignment=no
27792 if test x$gcc_cv_as != x; then
27793 $as_echo '.lcomm bar,4,16' > conftest.s
27794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799 test $ac_status = 0; }; }
27800 then
27801 gcc_cv_as_lcomm_with_alignment=yes
27802 else
27803 echo "configure: failed program was" >&5
27804 cat conftest.s >&5
27806 rm -f conftest.o conftest.s
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27810 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27811 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27813 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27818 if test x$with_sysroot = x && test x$host = x$target \
27819 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27820 && test "$prefix" != "NONE"; then
27822 cat >>confdefs.h <<_ACEOF
27823 #define PREFIX_INCLUDE_DIR "$prefix/include"
27824 _ACEOF
27828 # Determine the version of glibc, if any, used on the target.
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27830 $as_echo_n "checking for target glibc version... " >&6; }
27832 # Check whether --with-glibc-version was given.
27833 if test "${with_glibc_version+set}" = set; then :
27834 withval=$with_glibc_version;
27835 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27836 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27837 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27838 else
27839 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27841 else
27843 glibc_version_major=0
27844 glibc_version_minor=0
27845 if test -f $target_header_dir/features.h \
27846 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27847 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27848 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27849 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27854 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27856 cat >>confdefs.h <<_ACEOF
27857 #define TARGET_GLIBC_MAJOR $glibc_version_major
27858 _ACEOF
27861 cat >>confdefs.h <<_ACEOF
27862 #define TARGET_GLIBC_MINOR $glibc_version_minor
27863 _ACEOF
27866 # Check whether --enable-gnu-unique-object was given.
27867 if test "${enable_gnu_unique_object+set}" = set; then :
27868 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27869 yes | no) ;;
27870 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27871 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27872 esac
27873 else
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27875 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27876 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27877 $as_echo_n "(cached) " >&6
27878 else
27879 gcc_cv_as_gnu_unique_object=no
27880 if test $in_tree_gas = yes; then
27881 if test $in_tree_gas_is_elf = yes \
27882 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27883 then gcc_cv_as_gnu_unique_object=yes
27885 elif test x$gcc_cv_as != x; then
27886 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27892 test $ac_status = 0; }; }
27893 then
27894 gcc_cv_as_gnu_unique_object=yes
27895 else
27896 echo "configure: failed program was" >&5
27897 cat conftest.s >&5
27899 rm -f conftest.o conftest.s
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27903 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27904 if test $gcc_cv_as_gnu_unique_object = yes; then
27905 # We need to unquote above to to use the definition from config.gcc.
27906 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27908 if test $glibc_version_major -gt 2 \
27909 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27910 enable_gnu_unique_object=yes
27917 if test x$enable_gnu_unique_object = xyes; then
27919 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27924 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27925 if test "${gcc_cv_as_line_zero+set}" = set; then :
27926 $as_echo_n "(cached) " >&6
27927 else
27928 gcc_cv_as_line_zero=no
27929 if test $in_tree_gas = yes; then
27930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27931 then gcc_cv_as_line_zero=yes
27933 elif test "x$gcc_cv_as" != x; then
27934 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27935 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; } &&
27941 test "x`cat conftest.out`" = x
27942 then
27943 gcc_cv_as_line_zero=yes
27944 else
27945 echo "configure: failed program was" >&5
27946 cat conftest.s >&5
27947 echo "configure: error output was" >&5
27948 cat conftest.out >&5
27950 rm -f conftest.o conftest.s conftest.out
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27954 $as_echo "$gcc_cv_as_line_zero" >&6; }
27955 if test "x$gcc_cv_as_line_zero" = xyes; then
27957 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27962 $as_echo_n "checking support for thin archives... " >&6; }
27963 thin_archive_support=no
27964 echo 'int main (void) { return 0; }' > conftest.c
27965 if ($AR --version | sed 1q | grep "GNU ar" \
27966 && $CC $CFLAGS -c conftest.c \
27967 && $AR rcT conftest.a conftest.o \
27968 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27969 thin_archive_support=yes
27971 rm -f conftest.c conftest.o conftest.a conftest
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27973 $as_echo "$thin_archive_support" >&6; }
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27977 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27978 gcc_cv_ld_eh_frame_hdr=no
27979 if test $in_tree_ld = yes ; then
27980 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 \
27981 && test $in_tree_ld_is_elf = yes; then
27982 gcc_cv_ld_eh_frame_hdr=yes
27984 elif test x$gcc_cv_ld != x; then
27985 if echo "$ld_ver" | grep GNU > /dev/null; then
27986 # Check if linker supports --eh-frame-hdr option
27987 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
27988 gcc_cv_ld_eh_frame_hdr=yes
27990 else
27991 case "$target" in
27992 *-*-solaris2*)
27993 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27994 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27995 gcc_cv_ld_eh_frame_hdr=yes
27998 esac
28002 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28004 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28008 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28011 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28012 gcc_cv_ld_eh_frame_ciev3=no
28013 if test $in_tree_ld = yes ; then
28014 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 \
28015 && test $in_tree_ld_is_elf = yes; then
28016 gcc_cv_ld_eh_frame_ciev3=yes
28018 elif test x$gcc_cv_ld != x; then
28019 if echo "$ld_ver" | grep GNU > /dev/null; then
28020 gcc_cv_ld_eh_frame_ciev3=yes
28021 if test 0"$ld_date" -lt 20040513; then
28022 if test -n "$ld_date"; then
28023 # If there was date string, but was earlier than 2004-05-13, fail
28024 gcc_cv_ld_eh_frame_ciev3=no
28025 elif test "$ld_vers_major" -lt 2; then
28026 gcc_cv_ld_eh_frame_ciev3=no
28027 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28028 gcc_cv_ld_eh_frame_ciev3=no
28031 else
28032 case "$target" in
28033 *-*-solaris2*)
28034 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28035 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28036 gcc_cv_ld_eh_frame_ciev3=yes
28039 esac
28043 cat >>confdefs.h <<_ACEOF
28044 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28045 _ACEOF
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28048 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28051 $as_echo_n "checking linker position independent executable support... " >&6; }
28052 gcc_cv_ld_pie=no
28053 if test $in_tree_ld = yes ; then
28054 case "$target" in
28055 # Full PIE support on Solaris was only introduced in gld 2.26.
28056 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28057 *) gcc_gld_pie_min_version=15 ;;
28058 esac
28059 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 \
28060 && test $in_tree_ld_is_elf = yes; then
28061 gcc_cv_ld_pie=yes
28063 elif test x$gcc_cv_ld != x; then
28064 # Check if linker supports -pie option
28065 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28066 gcc_cv_ld_pie=yes
28067 case "$target" in
28068 *-*-solaris2*)
28069 if echo "$ld_ver" | grep GNU > /dev/null \
28070 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28071 gcc_cv_ld_pie=no
28074 esac
28075 else
28076 case "$target" in
28077 *-*-solaris2.1[1-9]*)
28078 # Solaris 11.3 added PIE support.
28079 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28080 gcc_cv_ld_pie=yes
28083 esac
28086 if test x"$gcc_cv_ld_pie" = xyes; then
28088 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28092 $as_echo "$gcc_cv_ld_pie" >&6; }
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28095 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28096 gcc_cv_ld_pie_copyreloc=no
28097 if test $gcc_cv_ld_pie = yes ; then
28098 if test $in_tree_ld = yes ; then
28099 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
28100 gcc_cv_ld_pie_copyreloc=yes
28102 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28103 # Check if linker supports -pie option with copy reloc
28104 case "$target" in
28105 i?86-*-linux* | x86_64-*-linux*)
28106 cat > conftest1.s <<EOF
28107 .globl a_glob
28108 .data
28109 .type a_glob, @object
28110 .size a_glob, 4
28111 a_glob:
28112 .long 2
28114 cat > conftest2.s <<EOF
28115 .text
28116 .globl main
28117 .type main, @function
28118 main:
28119 movl %eax, a_glob(%rip)
28120 .size main, .-main
28121 .globl ptr
28122 .section .data.rel,"aw",@progbits
28123 .type ptr, @object
28124 ptr:
28125 .quad a_glob
28127 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28128 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28129 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28130 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28131 gcc_cv_ld_pie_copyreloc=yes
28133 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28135 esac
28139 cat >>confdefs.h <<_ACEOF
28140 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28141 _ACEOF
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28144 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28147 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28148 gcc_cv_ld_eh_gc_sections=no
28149 if test $in_tree_ld = yes ; then
28150 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 \
28151 && test $in_tree_ld_is_elf = yes; then
28152 gcc_cv_ld_eh_gc_sections=yes
28154 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28155 cat > conftest.s <<EOF
28156 .section .text
28157 .globl _start
28158 .type _start, @function
28159 _start:
28160 .long foo
28161 .size _start, .-_start
28162 .section .text.foo,"ax",@progbits
28163 .type foo, @function
28164 foo:
28165 .long 0
28166 .size foo, .-foo
28167 .section .gcc_except_table.foo,"a",@progbits
28168 .L0:
28169 .long 0
28170 .section .eh_frame,"a",@progbits
28171 .long .L0
28173 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28174 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28175 | grep "gc-sections option ignored" > /dev/null; then
28176 gcc_cv_ld_eh_gc_sections=no
28177 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28178 | grep gcc_except_table > /dev/null; then
28179 gcc_cv_ld_eh_gc_sections=yes
28180 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28181 if test x$gcc_cv_as_comdat_group != xyes; then
28182 gcc_cv_ld_eh_gc_sections=no
28183 cat > conftest.s <<EOF
28184 .section .text
28185 .globl _start
28186 .type _start, @function
28187 _start:
28188 .long foo
28189 .size _start, .-_start
28190 .section .gnu.linkonce.t.foo,"ax",@progbits
28191 .type foo, @function
28192 foo:
28193 .long 0
28194 .size foo, .-foo
28195 .section .gcc_except_table.foo,"a",@progbits
28196 .L0:
28197 .long 0
28198 .section .eh_frame,"a",@progbits
28199 .long .L0
28201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28202 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28203 | grep "gc-sections option ignored" > /dev/null; then
28204 gcc_cv_ld_eh_gc_sections=no
28205 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28206 | grep gcc_except_table > /dev/null; then
28207 gcc_cv_ld_eh_gc_sections=yes
28213 rm -f conftest.s conftest.o conftest
28215 case "$target" in
28216 hppa*-*-linux*)
28217 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28218 gcc_cv_ld_eh_gc_sections=no
28220 esac
28221 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28223 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28227 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28230 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28231 gcc_cv_ld_eh_gc_sections_bug=no
28232 if test $in_tree_ld = yes ; then
28233 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 \
28234 && test $in_tree_ld_is_elf = yes; then
28235 gcc_cv_ld_eh_gc_sections_bug=yes
28237 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
28238 gcc_cv_ld_eh_gc_sections_bug=yes
28239 cat > conftest.s <<EOF
28240 .section .text
28241 .globl _start
28242 .type _start, @function
28243 _start:
28244 .long foo
28245 .size _start, .-_start
28246 .section .text.startup.foo,"ax",@progbits
28247 .type foo, @function
28248 foo:
28249 .long 0
28250 .size foo, .-foo
28251 .section .gcc_except_table.foo,"a",@progbits
28252 .L0:
28253 .long 0
28254 .section .eh_frame,"a",@progbits
28255 .long .L0
28257 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28258 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28259 | grep "gc-sections option ignored" > /dev/null; then
28261 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28262 | grep gcc_except_table > /dev/null; then
28263 gcc_cv_ld_eh_gc_sections_bug=no
28266 rm -f conftest.s conftest.o conftest
28268 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28270 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28274 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28277 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28278 # gold/gld support compressed debug sections since binutils 2.19/2.21
28279 # In binutils 2.26, gld gained support for the ELF gABI format.
28280 if test $in_tree_ld = yes ; then
28281 gcc_cv_ld_compress_debug=0
28282 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 \
28283 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28284 gcc_cv_ld_compress_debug=2
28285 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28286 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 \
28287 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28288 gcc_cv_ld_compress_debug=3
28289 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28290 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 \
28291 && test $in_tree_ld_is_elf = yes; then
28292 gcc_cv_ld_compress_debug=1
28294 elif echo "$ld_ver" | grep GNU > /dev/null; then
28295 if test "$ld_vers_major" -lt 2 \
28296 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28297 gcc_cv_ld_compress_debug=0
28298 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28299 gcc_cv_ld_compress_debug=1
28300 else
28301 gcc_cv_ld_compress_debug=3
28302 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28304 if test $ld_is_gold = yes; then
28305 gcc_cv_ld_compress_debug=2
28306 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28308 else
28309 case "${target}" in
28310 *-*-solaris2*)
28311 # Introduced in Solaris 11.2.
28312 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28313 gcc_cv_ld_compress_debug=3
28314 gcc_cv_ld_compress_debug_option="-z compress-sections"
28315 else
28316 gcc_cv_ld_compress_debug=0
28320 # Assume linkers other than GNU ld don't support compessed debug
28321 # sections.
28322 gcc_cv_ld_compress_debug=0
28324 esac
28327 cat >>confdefs.h <<_ACEOF
28328 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28329 _ACEOF
28332 cat >>confdefs.h <<_ACEOF
28333 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28334 _ACEOF
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28337 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28339 if test x"$ld64_flag" = x"yes"; then
28341 # Set defaults for possibly untestable items.
28342 gcc_cv_ld64_export_dynamic=0
28344 if test "$build" = "$host"; then
28345 darwin_try_test=1
28346 else
28347 darwin_try_test=0
28350 # On Darwin, because of FAT library support, it is often possible to execute
28351 # exes from compatible archs even when the host differs from the build system.
28352 case "$build","$host" in
28353 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28354 darwin_try_test=1;;
28355 *) ;;
28356 esac
28358 # If the configurer specified a minimum ld64 version to be supported, then use
28359 # that to determine feature support.
28360 if test x"${gcc_cv_ld64_version}" != x; then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28362 $as_echo_n "checking ld64 specified version... " >&6; }
28363 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28365 $as_echo "$gcc_cv_ld64_major" >&6; }
28366 if test "$gcc_cv_ld64_major" -ge 236; then
28367 gcc_cv_ld64_export_dynamic=1
28369 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28370 # If the version was not specified, try to find it.
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28372 $as_echo_n "checking linker version... " >&6; }
28373 if test x"${gcc_cv_ld64_version}" = x; then
28374 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28377 $as_echo "$gcc_cv_ld64_version" >&6; }
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28380 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28381 gcc_cv_ld64_export_dynamic=1
28382 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28383 gcc_cv_ld64_export_dynamic=0
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28386 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28389 if test x"${gcc_cv_ld64_version}" != x; then
28391 cat >>confdefs.h <<_ACEOF
28392 #define LD64_VERSION "${gcc_cv_ld64_version}"
28393 _ACEOF
28398 cat >>confdefs.h <<_ACEOF
28399 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28400 _ACEOF
28404 # --------
28405 # UNSORTED
28406 # --------
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28409 $as_echo_n "checking linker --as-needed support... " >&6; }
28410 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28411 $as_echo_n "(cached) " >&6
28412 else
28413 gcc_cv_ld_as_needed=no
28414 gcc_cv_ld_as_needed_option='--as-needed'
28415 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28416 if test $in_tree_ld = yes ; then
28417 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 \
28418 && test $in_tree_ld_is_elf = yes; then
28419 gcc_cv_ld_as_needed=yes
28420 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28421 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28422 gcc_cv_ld_no_as_needed_option='--pop-state'
28425 elif test x$gcc_cv_ld != x; then
28426 # Check if linker supports --as-needed and --no-as-needed options
28427 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28428 gcc_cv_ld_as_needed=yes
28429 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28430 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28431 && echo "$ld_ver" | grep GNU > /dev/null \
28432 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28433 # Use these options only when both ld.bfd and ld.gold support
28434 # --push-state/--pop-state, which unfortunately wasn't added
28435 # at the same time.
28436 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28437 gcc_cv_ld_no_as_needed_option='--pop-state'
28440 case "$target:$gnu_ld" in
28441 *-*-solaris2*:no)
28442 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28443 # forms.
28444 gcc_cv_ld_as_needed=yes
28445 gcc_cv_ld_as_needed_option="-z ignore"
28446 gcc_cv_ld_no_as_needed_option="-z record"
28448 esac
28450 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28451 # dl_iterate_phdr, i.e. since Solaris 11.
28452 case "$target" in
28453 *-*-solaris2.1[1-9]*)
28454 case "$target" in
28455 i?86-*-* | x86_64-*-*)
28456 if echo "$ld_ver" | grep GNU > /dev/null; then
28457 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28458 gcc_cv_ld_as_needed=no
28461 esac
28463 *-*-solaris2*)
28464 gcc_cv_ld_as_needed=no
28466 esac
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28470 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28471 if test x"$gcc_cv_ld_as_needed" = xyes; then
28473 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28476 cat >>confdefs.h <<_ACEOF
28477 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28478 _ACEOF
28481 cat >>confdefs.h <<_ACEOF
28482 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28483 _ACEOF
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28488 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28489 saved_LDFLAGS="$LDFLAGS"
28490 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28491 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28493 /* end confdefs.h. */
28494 int main(void) {return 0;}
28495 _ACEOF
28496 if ac_fn_cxx_try_link "$LINENO"; then :
28497 gcc_cv_ld_clearcap=yes; break
28498 else
28499 gcc_cv_ld_clearcap=no
28501 rm -f core conftest.err conftest.$ac_objext \
28502 conftest$ac_exeext conftest.$ac_ext
28503 done
28504 LDFLAGS="$saved_LDFLAGS"
28505 if test "x$gcc_cv_ld_clearcap" = xyes; then
28507 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28509 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28513 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28515 case "$target" in
28516 powerpc*-*-*)
28517 case "$target" in
28518 *le-*-linux*)
28519 emul_name="-melf32lppc"
28522 emul_name="-melf32ppc"
28524 esac
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28526 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28527 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28528 $as_echo_n "(cached) " >&6
28529 else
28530 gcc_cv_ld_ppc_attr=no
28531 if test x"$ld_is_gold" = xyes; then
28532 gcc_cv_ld_ppc_attr=yes
28533 elif test $in_tree_ld = yes ; then
28534 if test "$gcc_cv_gld_major_version" -eq 2 \
28535 -a "$gcc_cv_gld_minor_version" -ge 28 \
28536 -o "$gcc_cv_gld_major_version" -gt 2; then
28537 gcc_cv_ld_ppc_attr=yes
28539 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28540 # check that merging the long double .gnu_attribute doesn't warn
28541 cat > conftest1.s <<EOF
28542 .gnu_attribute 4,1
28544 cat > conftest2.s <<EOF
28545 .gnu_attribute 4,9
28547 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28548 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28549 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28550 && test ! -s conftest.err; then
28551 gcc_cv_ld_ppc_attr=yes
28553 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28558 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28559 if test x$gcc_cv_ld_ppc_attr = xyes; then
28561 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28565 esac
28567 case "$target:$tm_file" in
28568 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28569 case "$target" in
28570 *le-*-linux*)
28571 emul_name="-melf64lppc"
28573 *-*-linux*)
28574 emul_name="-melf64ppc"
28576 *-*-freebsd*)
28577 emul_name="-melf64ppc_fbsd"
28579 esac
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28581 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28582 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28583 $as_echo_n "(cached) " >&6
28584 else
28585 gcc_cv_ld_no_dot_syms=no
28586 if test x"$ld_is_gold" = xyes; then
28587 gcc_cv_ld_no_dot_syms=yes
28588 elif test $in_tree_ld = yes ; then
28589 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
28590 gcc_cv_ld_no_dot_syms=yes
28592 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28593 cat > conftest1.s <<EOF
28594 .text
28595 bl .foo
28597 cat > conftest2.s <<EOF
28598 .section ".opd","aw"
28599 .align 3
28600 .globl foo
28601 .type foo,@function
28602 foo:
28603 .quad .LEfoo,.TOC.@tocbase,0
28604 .text
28605 .LEfoo:
28607 .size foo,.-.LEfoo
28609 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28610 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28611 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28612 gcc_cv_ld_no_dot_syms=yes
28614 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28619 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28620 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28622 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28627 $as_echo_n "checking linker large toc support... " >&6; }
28628 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28629 $as_echo_n "(cached) " >&6
28630 else
28631 gcc_cv_ld_large_toc=no
28632 if test x"$ld_is_gold" = xyes; then
28633 gcc_cv_ld_large_toc=yes
28634 elif test $in_tree_ld = yes ; then
28635 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
28636 gcc_cv_ld_large_toc=yes
28638 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28639 cat > conftest.s <<EOF
28640 .section ".tbss","awT",@nobits
28641 .align 3
28642 ie0: .space 8
28643 .global _start
28644 .text
28645 _start:
28646 addis 9,13,ie0@got@tprel@ha
28647 ld 9,ie0@got@tprel@l(9)
28649 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28650 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28651 gcc_cv_ld_large_toc=yes
28653 rm -f conftest conftest.o conftest.s
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28658 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28659 if test x"$gcc_cv_ld_large_toc" = xyes; then
28661 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28666 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28667 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28668 $as_echo_n "(cached) " >&6
28669 else
28670 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28671 cat > conftest.s <<EOF
28672 .global _start
28673 .text
28674 _start:
28675 addis 9,2,x@got@ha
28676 .section .data.rel.ro,"aw",@progbits
28677 .p2align 16
28678 .space 32768
28679 x: .quad .TOC.
28681 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28682 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28683 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)) }'`
28685 rm -f conftest conftest.o conftest.s
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28690 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28691 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28693 cat >>confdefs.h <<_ACEOF
28694 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28695 _ACEOF
28699 esac
28701 case "$target" in
28702 *-*-aix*)
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28704 $as_echo_n "checking linker large toc support... " >&6; }
28705 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28706 $as_echo_n "(cached) " >&6
28707 else
28708 gcc_cv_ld_large_toc=no
28709 if test x$gcc_cv_as != x ; then
28710 cat > conftest.s <<EOF
28711 .toc
28712 LC..1:
28713 .tc a[TC],a[RW]
28714 .extern a[RW]
28715 .csect .text[PR]
28716 .largetoctest:
28717 addis 9,LC..1@u(2)
28718 ld 3,LC..1@l(9)
28720 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28721 gcc_cv_ld_large_toc=yes
28723 rm -f conftest conftest.o conftest.s
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28728 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28729 if test x"$gcc_cv_ld_large_toc" = xyes; then
28731 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28735 esac
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28738 $as_echo_n "checking linker --build-id support... " >&6; }
28739 if test "${gcc_cv_ld_buildid+set}" = set; then :
28740 $as_echo_n "(cached) " >&6
28741 else
28742 gcc_cv_ld_buildid=no
28743 if test $in_tree_ld = yes ; then
28744 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28745 "$gcc_cv_gld_minor_version" -ge 18 -o \
28746 "$gcc_cv_gld_major_version" -gt 2 \
28747 && test $in_tree_ld_is_elf = yes; then
28748 gcc_cv_ld_buildid=yes
28750 elif test x$gcc_cv_ld != x; then
28751 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28752 gcc_cv_ld_buildid=yes
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28757 $as_echo "$gcc_cv_ld_buildid" >&6; }
28758 if test x"$gcc_cv_ld_buildid" = xyes; then
28760 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28764 # Check whether --enable-linker-build-id was given.
28765 if test "${enable_linker_build_id+set}" = set; then :
28766 enableval=$enable_linker_build_id;
28767 else
28768 enable_linker_build_id=no
28772 if test x"$enable_linker_build_id" = xyes; then
28773 if test x"$gcc_cv_ld_buildid" = xyes; then
28775 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28777 else
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28779 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28783 # In binutils 2.21, GNU ld gained support for new emulations fully
28784 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28786 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28787 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28788 $as_echo_n "(cached) " >&6
28789 else
28790 gcc_cv_ld_sol2_emulation=no
28791 if test $in_tree_ld = yes ; then
28792 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28793 "$gcc_cv_gld_minor_version" -ge 21 -o \
28794 "$gcc_cv_gld_major_version" -gt 2 \
28795 && test $in_tree_ld_is_elf = yes; then
28796 gcc_cv_ld_sol2_emulation=yes
28798 elif test x$gcc_cv_ld != x; then
28799 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28800 grep _sol2 > /dev/null; then
28801 gcc_cv_ld_sol2_emulation=yes
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28806 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28807 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28809 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28814 $as_echo_n "checking linker --sysroot support... " >&6; }
28815 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28816 $as_echo_n "(cached) " >&6
28817 else
28818 gcc_cv_ld_sysroot=no
28819 if test $in_tree_ld = yes ; then
28820 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
28821 gcc_cv_ld_sysroot=yes
28823 elif test x$gcc_cv_ld != x; then
28824 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28825 gcc_cv_ld_sysroot=yes
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28830 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28831 if test x"$gcc_cv_ld_sysroot" = xyes; then
28833 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28837 case $target in
28838 *-*-solaris2*)
28839 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28841 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28842 if test "${gcc_cv_solaris_crts+set}" = set; then :
28843 $as_echo_n "(cached) " >&6
28844 else
28845 gcc_cv_solaris_crts=no
28846 if test x$host != x$target; then
28847 if test "x$with_sysroot" = xyes; then
28848 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28849 else
28850 target_sysroot="${with_sysroot}"
28853 target_libdir="$target_sysroot/usr/lib"
28854 # At the time they were added, gcrt1.o became a symlink for backwards
28855 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28856 case $target in
28857 i?86-*-solaris2* | x86_64-*-solaris2*)
28858 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28860 sparc*-*-solaris2*)
28861 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28863 esac
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28866 $as_echo "$gcc_cv_solaris_crts" >&6; }
28868 esac
28869 if test x$gcc_cv_solaris_crts = xyes; then
28871 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28875 # Check whether --enable-libssp was given.
28876 if test "${enable_libssp+set}" = set; then :
28877 enableval=$enable_libssp; case "${enableval}" in
28878 yes|no)
28881 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
28883 esac
28887 # Test for stack protector support in target C library.
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28889 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28890 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28891 $as_echo_n "(cached) " >&6
28892 else
28893 gcc_cv_libc_provides_ssp=no
28894 if test "x$enable_libssp" = "xno"; then
28895 gcc_cv_libc_provides_ssp=yes
28896 elif test "x$enable_libssp" = "xyes"; then
28897 gcc_cv_libc_provides_ssp=no
28898 else
28899 case "$target" in
28900 *-*-musl*)
28901 # All versions of musl provide stack protector
28902 gcc_cv_libc_provides_ssp=yes;;
28903 *-*-linux* | *-*-kfreebsd*-gnu)
28904 # glibc 2.4 and later provides __stack_chk_fail and
28905 # either __stack_chk_guard, or TLS access to stack guard canary.
28907 if test $glibc_version_major -gt 2 \
28908 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28909 gcc_cv_libc_provides_ssp=yes
28910 else
28912 if test -f $target_header_dir/features.h \
28913 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28914 $target_header_dir/features.h > /dev/null; then
28915 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28916 $target_header_dir/features.h > /dev/null && \
28917 test -f $target_header_dir/bits/uClibc_config.h && \
28918 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28919 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28920 gcc_cv_libc_provides_ssp=yes
28922 # all versions of Bionic support stack protector
28923 elif test -f $target_header_dir/sys/cdefs.h \
28924 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28925 $target_header_dir/sys/cdefs.h > /dev/null; then
28926 gcc_cv_libc_provides_ssp=yes
28930 *-*-gnu*)
28931 # Avoid complicated tests (see
28932 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28933 # simply assert that glibc does provide this, which is true for all
28934 # realistically usable GNU/Hurd configurations.
28935 # All supported versions of musl provide it as well
28936 gcc_cv_libc_provides_ssp=yes;;
28937 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28938 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28939 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28940 gcc_cv_libc_provides_ssp=yes
28941 else
28942 echo "no __stack_chk_fail on this target"
28946 *) gcc_cv_libc_provides_ssp=no ;;
28947 esac
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28951 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28953 if test x$gcc_cv_libc_provides_ssp = xyes; then
28955 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28959 # Check whether --enable-default-ssp was given.
28960 # Check whether --enable-default-ssp was given.
28961 if test "${enable_default_ssp+set}" = set; then :
28962 enableval=$enable_default_ssp;
28963 if test x$gcc_cv_libc_provides_ssp = xyes; then
28964 case "$target" in
28965 ia64*-*-*) enable_default_ssp=no ;;
28966 *) enable_default_ssp=$enableval ;;
28967 esac
28968 else
28969 enable_default_ssp=no
28971 else
28972 enable_default_ssp=no
28975 if test x$enable_default_ssp = xyes ; then
28977 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28982 # Test for <sys/sdt.h> on the target.
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28985 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28986 have_sys_sdt_h=no
28987 if test -f $target_header_dir/sys/sdt.h; then
28988 have_sys_sdt_h=yes
28990 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28994 $as_echo "$have_sys_sdt_h" >&6; }
28996 # Check if TFmode long double should be used by default or not.
28997 # Some glibc targets used DFmode long double, but with glibc 2.4
28998 # and later they can use TFmode.
28999 case "$target" in
29000 powerpc*-*-linux* | \
29001 sparc*-*-linux* | \
29002 s390*-*-linux* | \
29003 alpha*-*-linux*)
29005 # Check whether --with-long-double-128 was given.
29006 if test "${with_long_double_128+set}" = set; then :
29007 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29008 else
29010 if test $glibc_version_major -gt 2 \
29011 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29012 gcc_cv_target_ldbl128=yes
29013 else
29015 gcc_cv_target_ldbl128=no
29016 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29017 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29018 && gcc_cv_target_ldbl128=yes
29024 esac
29025 if test x$gcc_cv_target_ldbl128 = xyes; then
29027 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29031 # Check if TFmode long double target should use the IBM extended double or IEEE
29032 # 128-bit floating point formats if long doubles are 128-bits long. The long
29033 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29034 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29035 # libgcc.
29037 # Check whether --with-long-double-format was given.
29038 if test "${with_long_double_format+set}" = set; then :
29039 withval=$with_long_double_format;
29040 case "$target:$with_long_double_format" in
29041 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29044 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29045 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29046 case "$with_cpu" in
29047 power7 | power8 | power9 | power1*)
29051 as_fn_error "Configuration option --with-long-double-format is only \
29052 supported if the default cpu is power7 or newer" "$LINENO" 5
29053 with_long_double_format=""
29055 esac
29057 xpowerpc64*-*-linux*:*)
29058 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29059 with_long_double_format=""
29062 as_fn_error "Configure option --with-long-double-format is only supported \
29063 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29064 with_long_double_format=""
29066 esac
29070 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29071 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29072 gcc_cv_libc_provides_hwcap_in_tcb=no
29073 case "$target" in
29074 powerpc*-*-linux*)
29076 if test $glibc_version_major -gt 2 \
29077 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29078 gcc_cv_libc_provides_hwcap_in_tcb=yes
29081 esac
29082 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29084 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29089 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29090 gcc_cv_target_dl_iterate_phdr=unknown
29091 case "$target" in
29092 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29093 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29094 # libdl there, both complicating its use and breaking compatibility
29095 # between Solaris 10 updates.
29096 *-*-solaris2.1[1-9]*)
29097 # <link.h> needs both a dl_iterate_phdr declaration and support for
29098 # compilation with largefile support.
29099 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29100 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29101 gcc_cv_target_dl_iterate_phdr=yes
29102 else
29103 gcc_cv_target_dl_iterate_phdr=no
29106 *-*-dragonfly* | *-*-freebsd*)
29107 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29108 gcc_cv_target_dl_iterate_phdr=yes
29109 else
29110 gcc_cv_target_dl_iterate_phdr=no
29113 *-linux-musl*)
29114 gcc_cv_target_dl_iterate_phdr=yes
29116 esac
29118 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29120 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29124 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29126 # We no longer support different GC mechanisms. Emit an error if
29127 # the user configures with --with-gc.
29129 # Check whether --with-gc was given.
29130 if test "${with_gc+set}" = set; then :
29131 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29135 # Libraries to use on the host. This will normally be set by the top
29136 # level Makefile. Here we simply capture the value for our Makefile.
29137 if test -z "${HOST_LIBS+set}"; then
29138 HOST_LIBS=
29142 # Use the system's zlib library.
29144 # Use the system's zlib library.
29145 zlibdir="-L\$(top_builddir)/../zlib"
29146 zlibinc="-I\$(top_srcdir)/../zlib"
29148 # Check whether --with-system-zlib was given.
29149 if test "${with_system_zlib+set}" = set; then :
29150 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29151 zlibdir=
29152 zlibinc=
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29163 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29164 # Check whether --enable-maintainer-mode was given.
29165 if test "${enable_maintainer_mode+set}" = set; then :
29166 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29167 else
29168 maintainer_mode=no
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29173 $as_echo "$maintainer_mode" >&6; }
29175 if test "$maintainer_mode" = "yes"; then
29176 MAINT=''
29177 else
29178 MAINT='#'
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29183 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29184 # Check whether --enable-link-mutex was given.
29185 if test "${enable_link_mutex+set}" = set; then :
29186 enableval=$enable_link_mutex; do_link_mutex=$enableval
29187 else
29188 do_link_mutex=no
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29192 $as_echo "$do_link_mutex" >&6; }
29194 if test "$do_link_mutex" = "yes"; then
29195 DO_LINK_MUTEX=true
29196 else
29197 DO_LINK_MUTEX=false
29201 # --------------
29202 # Language hooks
29203 # --------------
29205 # Make empty files to contain the specs and options for each language.
29206 # Then add #include lines to for a compiler that has specs and/or options.
29208 subdirs=
29209 lang_opt_files=
29210 lang_specs_files=
29211 lang_tree_files=
29212 # These (without "all_") are set in each config-lang.in.
29213 # `language' must be a single word so is spelled singularly.
29214 all_languages=
29215 all_compilers=
29216 all_outputs='Makefile'
29217 # List of language makefile fragments.
29218 all_lang_makefrags=
29219 # Additional files for gengtype
29220 all_gtfiles="$target_gtfiles"
29222 # These are the languages that are set in --enable-languages,
29223 # and are available in the GCC tree.
29224 all_selected_languages=
29226 # Add the language fragments.
29227 # Languages are added via two mechanisms. Some information must be
29228 # recorded in makefile variables, these are defined in config-lang.in.
29229 # We accumulate them and plug them into the main Makefile.
29230 # The other mechanism is a set of hooks for each of the main targets
29231 # like `clean', `install', etc.
29233 language_hooks="Make-hooks"
29235 for lang in ${srcdir}/*/config-lang.in
29237 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29239 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29240 if test "x$lang_alias" = x
29241 then
29242 echo "$lang doesn't set \$language." 1>&2
29243 exit 1
29245 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29246 subdirs="$subdirs $subdir"
29248 # $gcc_subdir is where the gcc integration files are to be found
29249 # for a language, both for internal compiler purposes (compiler
29250 # sources implementing front-end to GCC tree converters), and for
29251 # build infrastructure purposes (Make-lang.in, etc.)
29253 # This will be <subdir> (relative to $srcdir) if a line like
29254 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29255 # is found in <langdir>/config-lang.in, and will remain <langdir>
29256 # otherwise.
29258 # Except for the language alias (fetched above), the regular
29259 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29260 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29261 # only this and the language alias.
29263 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29264 if [ "$gcc_subdir" = "" ]; then
29265 gcc_subdir="$subdir"
29268 case ",$enable_languages," in
29269 *,$lang_alias,*)
29270 all_selected_languages="$all_selected_languages $lang_alias"
29271 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29272 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29275 esac
29277 language=
29278 boot_language=
29279 compilers=
29280 outputs=
29281 gtfiles=
29282 subdir_requires=
29283 . ${srcdir}/$gcc_subdir/config-lang.in
29284 if test "x$language" = x
29285 then
29286 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29287 exit 1
29290 ok=:
29291 case ",$enable_languages," in
29292 *,$lang_alias,*) ;;
29294 for i in $subdir_requires; do
29295 test -f "${srcdir}/$i/config-lang.in" && continue
29296 ok=false
29297 break
29298 done
29300 esac
29301 $ok || continue
29303 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29304 if test -f $srcdir/$gcc_subdir/lang.opt; then
29305 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29306 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29308 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29309 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29311 all_languages="$all_languages $language"
29312 all_compilers="$all_compilers $compilers"
29313 all_outputs="$all_outputs $outputs"
29314 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29315 case ",$enable_languages," in
29316 *,lto,*)
29318 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29320 enable_lto=yes
29323 *) ;;
29324 esac
29325 done
29327 check_languages=
29328 for language in $all_selected_languages
29330 check_languages="$check_languages check-$language"
29331 done
29333 # We link each language in with a set of hooks, reached indirectly via
29334 # lang.${target}. Only do so for selected languages.
29336 rm -f Make-hooks
29337 touch Make-hooks
29338 target_list="all.cross start.encap rest.encap tags \
29339 install-common install-man install-info install-pdf install-html dvi \
29340 pdf html uninstall info man srcextra srcman srcinfo \
29341 mostlyclean clean distclean maintainer-clean install-plugin"
29343 for t in $target_list
29346 for lang in $all_selected_languages
29348 x="$x $lang.$t"
29349 done
29350 echo "lang.$t: $x" >> Make-hooks
29351 done
29353 # --------
29354 # Option include files
29355 # --------
29357 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29358 option_includes="option-includes.mk"
29361 # --------
29362 # UNSORTED
29363 # --------
29365 # Create .gdbinit.
29367 echo "dir ." > .gdbinit
29368 echo "dir ${srcdir}" >> .gdbinit
29369 if test x$gdb_needs_out_file_path = xyes
29370 then
29371 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29373 if test "x$subdirs" != x; then
29374 for s in $subdirs
29376 echo "dir ${srcdir}/$s" >> .gdbinit
29377 done
29379 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29380 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29382 # Put a breakpoint on __asan_report_error to help with debugging buffer
29383 # overflow.
29384 case "$CFLAGS" in
29385 *-fsanitize=address*)
29386 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29388 esac
29390 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29394 # Find a directory in which to install a shared libgcc.
29396 # Check whether --enable-version-specific-runtime-libs was given.
29397 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29398 enableval=$enable_version_specific_runtime_libs;
29402 # Substitute configuration variables
29465 # Echo link setup.
29466 if test x${build} = x${host} ; then
29467 if test x${host} = x${target} ; then
29468 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29469 else
29470 echo "Links are now set up to build a cross-compiler" 1>&2
29471 echo " from ${host} to ${target}." 1>&2
29473 else
29474 if test x${host} = x${target} ; then
29475 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29476 echo " for ${target}." 1>&2
29477 else
29478 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29479 echo " from ${host} to ${target}." 1>&2
29488 if test "x${ISLLIBS}" != "x" ; then
29490 $as_echo "#define HAVE_isl 1" >>confdefs.h
29494 # Check for plugin support
29495 # Check whether --enable-plugin was given.
29496 if test "${enable_plugin+set}" = set; then :
29497 enableval=$enable_plugin; enable_plugin=$enableval
29498 else
29499 enable_plugin=yes; default_plugin=yes
29503 pluginlibs=
29504 plugin_check=yes
29506 case "${host}" in
29507 *-*-mingw*)
29508 # Since plugin support under MinGW is not as straightforward as on
29509 # other platforms (e.g., we have to link import library, etc), we
29510 # only enable it if explicitly requested.
29511 if test x"$default_plugin" = x"yes"; then
29512 enable_plugin=no
29513 elif test x"$enable_plugin" = x"yes"; then
29514 # Use make's target variable to derive import library name.
29515 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29516 plugin_check=no
29519 *-*-darwin*)
29520 if test x$build = x$host; then
29521 export_sym_check="nm${exeext} -g"
29522 elif test x$host = x$target; then
29523 export_sym_check="$gcc_cv_nm -g"
29524 else
29525 export_sym_check=
29529 if test x$build = x$host; then
29530 export_sym_check="objdump${exeext} -T"
29531 elif test x$host = x$target; then
29532 export_sym_check="$gcc_cv_objdump -T"
29533 else
29534 export_sym_check=
29537 esac
29539 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29542 $as_echo_n "checking for exported symbols... " >&6; }
29543 if test "x$export_sym_check" != x; then
29544 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29545 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29546 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29547 : # No need to use a flag
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549 $as_echo "yes" >&6; }
29550 else
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29552 $as_echo "yes" >&6; }
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29554 $as_echo_n "checking for -rdynamic... " >&6; }
29555 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29556 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29557 plugin_rdynamic=yes
29558 pluginlibs="-rdynamic"
29559 else
29560 plugin_rdynamic=no
29561 enable_plugin=no
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29564 $as_echo "$plugin_rdynamic" >&6; }
29566 else
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29568 $as_echo "unable to check" >&6; }
29571 # Check -ldl
29572 saved_LIBS="$LIBS"
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29574 $as_echo_n "checking for library containing dlopen... " >&6; }
29575 if test "${ac_cv_search_dlopen+set}" = set; then :
29576 $as_echo_n "(cached) " >&6
29577 else
29578 ac_func_search_save_LIBS=$LIBS
29579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29580 /* end confdefs.h. */
29582 /* Override any GCC internal prototype to avoid an error.
29583 Use char because int might match the return type of a GCC
29584 builtin and then its argument prototype would still apply. */
29585 #ifdef __cplusplus
29586 extern "C"
29587 #endif
29588 char dlopen ();
29590 main ()
29592 return dlopen ();
29594 return 0;
29596 _ACEOF
29597 for ac_lib in '' dl; do
29598 if test -z "$ac_lib"; then
29599 ac_res="none required"
29600 else
29601 ac_res=-l$ac_lib
29602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29604 if ac_fn_cxx_try_link "$LINENO"; then :
29605 ac_cv_search_dlopen=$ac_res
29607 rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext
29609 if test "${ac_cv_search_dlopen+set}" = set; then :
29610 break
29612 done
29613 if test "${ac_cv_search_dlopen+set}" = set; then :
29615 else
29616 ac_cv_search_dlopen=no
29618 rm conftest.$ac_ext
29619 LIBS=$ac_func_search_save_LIBS
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29622 $as_echo "$ac_cv_search_dlopen" >&6; }
29623 ac_res=$ac_cv_search_dlopen
29624 if test "$ac_res" != no; then :
29625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29629 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29630 pluginlibs="$pluginlibs -ldl"
29632 LIBS="$saved_LIBS"
29634 # Check that we can build shared objects with -fPIC -shared
29635 saved_LDFLAGS="$LDFLAGS"
29636 saved_CFLAGS="$CFLAGS"
29637 case "${host}" in
29638 *-*-darwin*)
29639 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29640 CFLAGS="$CFLAGS -fPIC"
29641 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29644 CFLAGS="$CFLAGS -fPIC"
29645 LDFLAGS="$LDFLAGS -fPIC -shared"
29647 esac
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29649 $as_echo_n "checking for -fPIC -shared... " >&6; }
29650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29651 /* end confdefs.h. */
29652 extern int X;
29654 main ()
29656 return X == 0;
29658 return 0;
29660 _ACEOF
29661 if ac_fn_cxx_try_link "$LINENO"; then :
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29663 $as_echo "yes" >&6; }; have_pic_shared=yes
29664 else
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29666 $as_echo "no" >&6; }; have_pic_shared=no
29668 rm -f core conftest.err conftest.$ac_objext \
29669 conftest$ac_exeext conftest.$ac_ext
29670 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29671 pluginlibs=
29672 enable_plugin=no
29674 LDFLAGS="$saved_LDFLAGS"
29675 CFLAGS="$saved_CFLAGS"
29677 # If plugin support had been requested but not available, fail.
29678 if test x"$enable_plugin" = x"no" ; then
29679 if test x"$default_plugin" != x"yes"; then
29680 as_fn_error "
29681 Building GCC with plugin support requires a host that supports
29682 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29689 if test x"$enable_plugin" = x"yes"; then
29691 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29696 # Enable --enable-host-shared
29697 # Check whether --enable-host-shared was given.
29698 if test "${enable_host_shared+set}" = set; then :
29699 enableval=$enable_host_shared; PICFLAG=-fPIC
29700 else
29701 PICFLAG=
29708 # Check whether --enable-libquadmath-support was given.
29709 if test "${enable_libquadmath_support+set}" = set; then :
29710 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29711 else
29712 ENABLE_LIBQUADMATH_SUPPORT=yes
29715 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29717 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29722 # Specify what hash style to use by default.
29724 # Check whether --with-linker-hash-style was given.
29725 if test "${with_linker_hash_style+set}" = set; then :
29726 withval=$with_linker_hash_style; case x"$withval" in
29727 xsysv)
29728 LINKER_HASH_STYLE=sysv
29730 xgnu)
29731 LINKER_HASH_STYLE=gnu
29733 xboth)
29734 LINKER_HASH_STYLE=both
29737 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29739 esac
29740 else
29741 LINKER_HASH_STYLE=''
29744 if test x"${LINKER_HASH_STYLE}" != x; then
29746 cat >>confdefs.h <<_ACEOF
29747 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29748 _ACEOF
29752 # Specify what should be the default of -fdiagnostics-color option.
29754 # Check whether --with-diagnostics-color was given.
29755 if test "${with_diagnostics_color+set}" = set; then :
29756 withval=$with_diagnostics_color; case x"$withval" in
29757 xnever)
29758 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29760 xauto)
29761 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29763 xauto-if-env)
29764 DIAGNOSTICS_COLOR_DEFAULT=-1
29766 xalways)
29767 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29770 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29772 esac
29773 else
29774 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29778 cat >>confdefs.h <<_ACEOF
29779 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29780 _ACEOF
29783 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29784 # of jit/jit-playback.c.
29785 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29786 echo "gcc_driver_version: ${gcc_driver_version}"
29787 cat > gcc-driver-name.h <<EOF
29788 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29791 # Check whether --enable-default-pie was given.
29792 # Check whether --enable-default-pie was given.
29793 if test "${enable_default_pie+set}" = set; then :
29794 enableval=$enable_default_pie; enable_default_pie=$enableval
29795 else
29796 enable_default_pie=no
29799 if test x$enable_default_pie = xyes ; then
29801 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29806 # Check if -fno-PIE works.
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29808 $as_echo_n "checking for -fno-PIE option... " >&6; }
29809 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29810 $as_echo_n "(cached) " >&6
29811 else
29812 saved_CXXFLAGS="$CXXFLAGS"
29813 CXXFLAGS="$CXXFLAGS -fno-PIE"
29814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29815 /* end confdefs.h. */
29816 int main(void) {return 0;}
29817 _ACEOF
29818 if ac_fn_cxx_try_compile "$LINENO"; then :
29819 gcc_cv_c_no_fpie=yes
29820 else
29821 gcc_cv_c_no_fpie=no
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 CXXFLAGS="$saved_CXXFLAGS"
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29827 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29828 if test "$gcc_cv_c_no_fpie" = "yes"; then
29829 NO_PIE_CFLAGS="-fno-PIE"
29833 # Check if -no-pie works.
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29835 $as_echo_n "checking for -no-pie option... " >&6; }
29836 if test "${gcc_cv_no_pie+set}" = set; then :
29837 $as_echo_n "(cached) " >&6
29838 else
29839 saved_LDFLAGS="$LDFLAGS"
29840 LDFLAGS="$LDFLAGS -no-pie"
29841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29842 /* end confdefs.h. */
29843 int main(void) {return 0;}
29844 _ACEOF
29845 if ac_fn_cxx_try_link "$LINENO"; then :
29846 gcc_cv_no_pie=yes
29847 else
29848 gcc_cv_no_pie=no
29850 rm -f core conftest.err conftest.$ac_objext \
29851 conftest$ac_exeext conftest.$ac_ext
29852 LDFLAGS="$saved_LDFLAGS"
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29855 $as_echo "$gcc_cv_no_pie" >&6; }
29856 if test "$gcc_cv_no_pie" = "yes"; then
29857 NO_PIE_FLAG="-no-pie"
29861 # Check linker supports '-z bndplt'
29862 ld_bndplt_support=no
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29864 $as_echo_n "checking linker -z bndplt option... " >&6; }
29865 if test x"$ld_is_gold" = xno; then
29866 if test $in_tree_ld = yes ; then
29867 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
29868 ld_bndplt_support=yes
29870 elif test x$gcc_cv_ld != x; then
29871 # Check if linker supports -a bndplt option
29872 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29873 ld_bndplt_support=yes
29877 if test x"$ld_bndplt_support" = xyes; then
29879 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29883 $as_echo "$ld_bndplt_support" >&6; }
29885 # Check linker supports '--push-state'/'--pop-state'
29886 ld_pushpopstate_support=no
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29888 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29889 if test x"$ld_is_gold" = xno; then
29890 if test $in_tree_ld = yes ; then
29891 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
29892 ld_pushpopstate_support=yes
29894 elif test x$gcc_cv_ld != x; then
29895 # Check if linker supports --push-state/--pop-state options
29896 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29897 ld_pushpopstate_support=yes
29901 if test x"$ld_pushpopstate_support" = xyes; then
29903 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29907 $as_echo "$ld_pushpopstate_support" >&6; }
29909 # Configure the subdirectories
29910 # AC_CONFIG_SUBDIRS($subdirs)
29912 # Create the Makefile
29913 # and configure language subdirectories
29914 ac_config_files="$ac_config_files $all_outputs"
29917 ac_config_commands="$ac_config_commands default"
29919 cat >confcache <<\_ACEOF
29920 # This file is a shell script that caches the results of configure
29921 # tests run on this system so they can be shared between configure
29922 # scripts and configure runs, see configure's option --config-cache.
29923 # It is not useful on other systems. If it contains results you don't
29924 # want to keep, you may remove or edit it.
29926 # config.status only pays attention to the cache file if you give it
29927 # the --recheck option to rerun configure.
29929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29931 # following values.
29933 _ACEOF
29935 # The following way of writing the cache mishandles newlines in values,
29936 # but we know of no workaround that is simple, portable, and efficient.
29937 # So, we kill variables containing newlines.
29938 # Ultrix sh set writes to stderr and can't be redirected directly,
29939 # and sets the high bit in the cache file unless we assign to the vars.
29941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29942 eval ac_val=\$$ac_var
29943 case $ac_val in #(
29944 *${as_nl}*)
29945 case $ac_var in #(
29946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29948 esac
29949 case $ac_var in #(
29950 _ | IFS | as_nl) ;; #(
29951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29952 *) { eval $ac_var=; unset $ac_var;} ;;
29953 esac ;;
29954 esac
29955 done
29957 (set) 2>&1 |
29958 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29959 *${as_nl}ac_space=\ *)
29960 # `set' does not quote correctly, so add quotes: double-quote
29961 # substitution turns \\\\ into \\, and sed turns \\ into \.
29962 sed -n \
29963 "s/'/'\\\\''/g;
29964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29965 ;; #(
29967 # `set' quotes correctly as required by POSIX, so do not add quotes.
29968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29970 esac |
29971 sort
29973 sed '
29974 /^ac_cv_env_/b end
29975 t clear
29976 :clear
29977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29978 t end
29979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29980 :end' >>confcache
29981 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29982 if test -w "$cache_file"; then
29983 test "x$cache_file" != "x/dev/null" &&
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29985 $as_echo "$as_me: updating cache $cache_file" >&6;}
29986 cat confcache >$cache_file
29987 else
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29992 rm -f confcache
29994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29995 # Let make expand exec_prefix.
29996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29998 DEFS=-DHAVE_CONFIG_H
30000 ac_libobjs=
30001 ac_ltlibobjs=
30002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30003 # 1. Remove the extension, and $U if already installed.
30004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30007 # will be set to the directory where LIBOBJS objects are built.
30008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30010 done
30011 LIBOBJS=$ac_libobjs
30013 LTLIBOBJS=$ac_ltlibobjs
30018 : ${CONFIG_STATUS=./config.status}
30019 ac_write_fail=0
30020 ac_clean_files_save=$ac_clean_files
30021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30024 as_write_fail=0
30025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30026 #! $SHELL
30027 # Generated by $as_me.
30028 # Run this file to recreate the current configuration.
30029 # Compiler output produced by configure, useful for debugging
30030 # configure, is in config.log if it exists.
30032 debug=false
30033 ac_cs_recheck=false
30034 ac_cs_silent=false
30036 SHELL=\${CONFIG_SHELL-$SHELL}
30037 export SHELL
30038 _ASEOF
30039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30040 ## -------------------- ##
30041 ## M4sh Initialization. ##
30042 ## -------------------- ##
30044 # Be more Bourne compatible
30045 DUALCASE=1; export DUALCASE # for MKS sh
30046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30047 emulate sh
30048 NULLCMD=:
30049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30050 # is contrary to our usage. Disable this feature.
30051 alias -g '${1+"$@"}'='"$@"'
30052 setopt NO_GLOB_SUBST
30053 else
30054 case `(set -o) 2>/dev/null` in #(
30055 *posix*) :
30056 set -o posix ;; #(
30057 *) :
30059 esac
30063 as_nl='
30065 export as_nl
30066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30070 # Prefer a ksh shell builtin over an external printf program on Solaris,
30071 # but without wasting forks for bash or zsh.
30072 if test -z "$BASH_VERSION$ZSH_VERSION" \
30073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30074 as_echo='print -r --'
30075 as_echo_n='print -rn --'
30076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30077 as_echo='printf %s\n'
30078 as_echo_n='printf %s'
30079 else
30080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30082 as_echo_n='/usr/ucb/echo -n'
30083 else
30084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30085 as_echo_n_body='eval
30086 arg=$1;
30087 case $arg in #(
30088 *"$as_nl"*)
30089 expr "X$arg" : "X\\(.*\\)$as_nl";
30090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30091 esac;
30092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30094 export as_echo_n_body
30095 as_echo_n='sh -c $as_echo_n_body as_echo'
30097 export as_echo_body
30098 as_echo='sh -c $as_echo_body as_echo'
30101 # The user is always right.
30102 if test "${PATH_SEPARATOR+set}" != set; then
30103 PATH_SEPARATOR=:
30104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30106 PATH_SEPARATOR=';'
30111 # IFS
30112 # We need space, tab and new line, in precisely that order. Quoting is
30113 # there to prevent editors from complaining about space-tab.
30114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30115 # splitting by setting IFS to empty value.)
30116 IFS=" "" $as_nl"
30118 # Find who we are. Look in the path if we contain no directory separator.
30119 case $0 in #((
30120 *[\\/]* ) as_myself=$0 ;;
30121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30122 for as_dir in $PATH
30124 IFS=$as_save_IFS
30125 test -z "$as_dir" && as_dir=.
30126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30127 done
30128 IFS=$as_save_IFS
30131 esac
30132 # We did not find ourselves, most probably we were run as `sh COMMAND'
30133 # in which case we are not to be found in the path.
30134 if test "x$as_myself" = x; then
30135 as_myself=$0
30137 if test ! -f "$as_myself"; then
30138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30139 exit 1
30142 # Unset variables that we do not need and which cause bugs (e.g. in
30143 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30144 # suppresses any "Segmentation fault" message there. '((' could
30145 # trigger a bug in pdksh 5.2.14.
30146 for as_var in BASH_ENV ENV MAIL MAILPATH
30147 do eval test x\${$as_var+set} = xset \
30148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30149 done
30150 PS1='$ '
30151 PS2='> '
30152 PS4='+ '
30154 # NLS nuisances.
30155 LC_ALL=C
30156 export LC_ALL
30157 LANGUAGE=C
30158 export LANGUAGE
30160 # CDPATH.
30161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30164 # as_fn_error ERROR [LINENO LOG_FD]
30165 # ---------------------------------
30166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30168 # script with status $?, using 1 if that was 0.
30169 as_fn_error ()
30171 as_status=$?; test $as_status -eq 0 && as_status=1
30172 if test "$3"; then
30173 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30174 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30176 $as_echo "$as_me: error: $1" >&2
30177 as_fn_exit $as_status
30178 } # as_fn_error
30181 # as_fn_set_status STATUS
30182 # -----------------------
30183 # Set $? to STATUS, without forking.
30184 as_fn_set_status ()
30186 return $1
30187 } # as_fn_set_status
30189 # as_fn_exit STATUS
30190 # -----------------
30191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30192 as_fn_exit ()
30194 set +e
30195 as_fn_set_status $1
30196 exit $1
30197 } # as_fn_exit
30199 # as_fn_unset VAR
30200 # ---------------
30201 # Portably unset VAR.
30202 as_fn_unset ()
30204 { eval $1=; unset $1;}
30206 as_unset=as_fn_unset
30207 # as_fn_append VAR VALUE
30208 # ----------------------
30209 # Append the text in VALUE to the end of the definition contained in VAR. Take
30210 # advantage of any shell optimizations that allow amortized linear growth over
30211 # repeated appends, instead of the typical quadratic growth present in naive
30212 # implementations.
30213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30214 eval 'as_fn_append ()
30216 eval $1+=\$2
30218 else
30219 as_fn_append ()
30221 eval $1=\$$1\$2
30223 fi # as_fn_append
30225 # as_fn_arith ARG...
30226 # ------------------
30227 # Perform arithmetic evaluation on the ARGs, and store the result in the
30228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30229 # must be portable across $(()) and expr.
30230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30231 eval 'as_fn_arith ()
30233 as_val=$(( $* ))
30235 else
30236 as_fn_arith ()
30238 as_val=`expr "$@" || test $? -eq 1`
30240 fi # as_fn_arith
30243 if expr a : '\(a\)' >/dev/null 2>&1 &&
30244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30245 as_expr=expr
30246 else
30247 as_expr=false
30250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30251 as_basename=basename
30252 else
30253 as_basename=false
30256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30257 as_dirname=dirname
30258 else
30259 as_dirname=false
30262 as_me=`$as_basename -- "$0" ||
30263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30264 X"$0" : 'X\(//\)$' \| \
30265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30266 $as_echo X/"$0" |
30267 sed '/^.*\/\([^/][^/]*\)\/*$/{
30268 s//\1/
30271 /^X\/\(\/\/\)$/{
30272 s//\1/
30275 /^X\/\(\/\).*/{
30276 s//\1/
30279 s/.*/./; q'`
30281 # Avoid depending upon Character Ranges.
30282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30285 as_cr_digits='0123456789'
30286 as_cr_alnum=$as_cr_Letters$as_cr_digits
30288 ECHO_C= ECHO_N= ECHO_T=
30289 case `echo -n x` in #(((((
30290 -n*)
30291 case `echo 'xy\c'` in
30292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30293 xy) ECHO_C='\c';;
30294 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30295 ECHO_T=' ';;
30296 esac;;
30298 ECHO_N='-n';;
30299 esac
30301 rm -f conf$$ conf$$.exe conf$$.file
30302 if test -d conf$$.dir; then
30303 rm -f conf$$.dir/conf$$.file
30304 else
30305 rm -f conf$$.dir
30306 mkdir conf$$.dir 2>/dev/null
30308 if (echo >conf$$.file) 2>/dev/null; then
30309 if ln -s conf$$.file conf$$ 2>/dev/null; then
30310 as_ln_s='ln -s'
30311 # ... but there are two gotchas:
30312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30314 # In both cases, we have to default to `cp -p'.
30315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30316 as_ln_s='cp -p'
30317 elif ln conf$$.file conf$$ 2>/dev/null; then
30318 as_ln_s=ln
30319 else
30320 as_ln_s='cp -p'
30322 else
30323 as_ln_s='cp -p'
30325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30326 rmdir conf$$.dir 2>/dev/null
30329 # as_fn_mkdir_p
30330 # -------------
30331 # Create "$as_dir" as a directory, including parents if necessary.
30332 as_fn_mkdir_p ()
30335 case $as_dir in #(
30336 -*) as_dir=./$as_dir;;
30337 esac
30338 test -d "$as_dir" || eval $as_mkdir_p || {
30339 as_dirs=
30340 while :; do
30341 case $as_dir in #(
30342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30343 *) as_qdir=$as_dir;;
30344 esac
30345 as_dirs="'$as_qdir' $as_dirs"
30346 as_dir=`$as_dirname -- "$as_dir" ||
30347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30348 X"$as_dir" : 'X\(//\)[^/]' \| \
30349 X"$as_dir" : 'X\(//\)$' \| \
30350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30351 $as_echo X"$as_dir" |
30352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30353 s//\1/
30356 /^X\(\/\/\)[^/].*/{
30357 s//\1/
30360 /^X\(\/\/\)$/{
30361 s//\1/
30364 /^X\(\/\).*/{
30365 s//\1/
30368 s/.*/./; q'`
30369 test -d "$as_dir" && break
30370 done
30371 test -z "$as_dirs" || eval "mkdir $as_dirs"
30372 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30375 } # as_fn_mkdir_p
30376 if mkdir -p . 2>/dev/null; then
30377 as_mkdir_p='mkdir -p "$as_dir"'
30378 else
30379 test -d ./-p && rmdir ./-p
30380 as_mkdir_p=false
30383 if test -x / >/dev/null 2>&1; then
30384 as_test_x='test -x'
30385 else
30386 if ls -dL / >/dev/null 2>&1; then
30387 as_ls_L_option=L
30388 else
30389 as_ls_L_option=
30391 as_test_x='
30392 eval sh -c '\''
30393 if test -d "$1"; then
30394 test -d "$1/.";
30395 else
30396 case $1 in #(
30397 -*)set "./$1";;
30398 esac;
30399 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30400 ???[sx]*):;;*)false;;esac;fi
30401 '\'' sh
30404 as_executable_p=$as_test_x
30406 # Sed expression to map a string onto a valid CPP name.
30407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30409 # Sed expression to map a string onto a valid variable name.
30410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30413 exec 6>&1
30414 ## ----------------------------------- ##
30415 ## Main body of $CONFIG_STATUS script. ##
30416 ## ----------------------------------- ##
30417 _ASEOF
30418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30421 # Save the log message, to keep $0 and so on meaningful, and to
30422 # report actual input values of CONFIG_FILES etc. instead of their
30423 # values after options handling.
30424 ac_log="
30425 This file was extended by $as_me, which was
30426 generated by GNU Autoconf 2.64. Invocation command line was
30428 CONFIG_FILES = $CONFIG_FILES
30429 CONFIG_HEADERS = $CONFIG_HEADERS
30430 CONFIG_LINKS = $CONFIG_LINKS
30431 CONFIG_COMMANDS = $CONFIG_COMMANDS
30432 $ $0 $@
30434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30437 _ACEOF
30439 case $ac_config_files in *"
30440 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30441 esac
30443 case $ac_config_headers in *"
30444 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30445 esac
30448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30449 # Files that config.status was made for.
30450 config_files="$ac_config_files"
30451 config_headers="$ac_config_headers"
30452 config_links="$ac_config_links"
30453 config_commands="$ac_config_commands"
30455 _ACEOF
30457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30458 ac_cs_usage="\
30459 \`$as_me' instantiates files and other configuration actions
30460 from templates according to the current configuration. Unless the files
30461 and actions are specified as TAGs, all are instantiated by default.
30463 Usage: $0 [OPTION]... [TAG]...
30465 -h, --help print this help, then exit
30466 -V, --version print version number and configuration settings, then exit
30467 -q, --quiet, --silent
30468 do not print progress messages
30469 -d, --debug don't remove temporary files
30470 --recheck update $as_me by reconfiguring in the same conditions
30471 --file=FILE[:TEMPLATE]
30472 instantiate the configuration file FILE
30473 --header=FILE[:TEMPLATE]
30474 instantiate the configuration header FILE
30476 Configuration files:
30477 $config_files
30479 Configuration headers:
30480 $config_headers
30482 Configuration links:
30483 $config_links
30485 Configuration commands:
30486 $config_commands
30488 Report bugs to the package provider."
30490 _ACEOF
30491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30492 ac_cs_version="\\
30493 config.status
30494 configured by $0, generated by GNU Autoconf 2.64,
30495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30497 Copyright (C) 2009 Free Software Foundation, Inc.
30498 This config.status script is free software; the Free Software Foundation
30499 gives unlimited permission to copy, distribute and modify it."
30501 ac_pwd='$ac_pwd'
30502 srcdir='$srcdir'
30503 AWK='$AWK'
30504 test -n "\$AWK" || AWK=awk
30505 _ACEOF
30507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30508 # The default lists apply if the user does not specify any file.
30509 ac_need_defaults=:
30510 while test $# != 0
30512 case $1 in
30513 --*=*)
30514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30516 ac_shift=:
30519 ac_option=$1
30520 ac_optarg=$2
30521 ac_shift=shift
30523 esac
30525 case $ac_option in
30526 # Handling of the options.
30527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30528 ac_cs_recheck=: ;;
30529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30530 $as_echo "$ac_cs_version"; exit ;;
30531 --debug | --debu | --deb | --de | --d | -d )
30532 debug=: ;;
30533 --file | --fil | --fi | --f )
30534 $ac_shift
30535 case $ac_optarg in
30536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30537 esac
30538 as_fn_append CONFIG_FILES " '$ac_optarg'"
30539 ac_need_defaults=false;;
30540 --header | --heade | --head | --hea )
30541 $ac_shift
30542 case $ac_optarg in
30543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30544 esac
30545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30546 ac_need_defaults=false;;
30547 --he | --h)
30548 # Conflict between --help and --header
30549 as_fn_error "ambiguous option: \`$1'
30550 Try \`$0 --help' for more information.";;
30551 --help | --hel | -h )
30552 $as_echo "$ac_cs_usage"; exit ;;
30553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30555 ac_cs_silent=: ;;
30557 # This is an error.
30558 -*) as_fn_error "unrecognized option: \`$1'
30559 Try \`$0 --help' for more information." ;;
30561 *) as_fn_append ac_config_targets " $1"
30562 ac_need_defaults=false ;;
30564 esac
30565 shift
30566 done
30568 ac_configure_extra_args=
30570 if $ac_cs_silent; then
30571 exec 6>/dev/null
30572 ac_configure_extra_args="$ac_configure_extra_args --silent"
30575 _ACEOF
30576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30577 if \$ac_cs_recheck; then
30578 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30579 shift
30580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30581 CONFIG_SHELL='$SHELL'
30582 export CONFIG_SHELL
30583 exec "\$@"
30586 _ACEOF
30587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30588 exec 5>>config.log
30590 echo
30591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30592 ## Running $as_me. ##
30593 _ASBOX
30594 $as_echo "$ac_log"
30595 } >&5
30597 _ACEOF
30598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30600 # INIT-COMMANDS
30602 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30603 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30604 subdirs='$subdirs'
30606 _ACEOF
30608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30610 # Handling of arguments.
30611 for ac_config_target in $ac_config_targets
30613 case $ac_config_target in
30614 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30615 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30616 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30617 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30618 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30619 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30620 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30621 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30622 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30624 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30625 esac
30626 done
30629 # If the user did not use the arguments to specify the items to instantiate,
30630 # then the envvar interface is used. Set only those that are not.
30631 # We use the long form for the default assignment because of an extremely
30632 # bizarre bug on SunOS 4.1.3.
30633 if $ac_need_defaults; then
30634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30636 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30640 # Have a temporary directory for convenience. Make it in the build tree
30641 # simply because there is no reason against having it here, and in addition,
30642 # creating and moving files from /tmp can sometimes cause problems.
30643 # Hook for its removal unless debugging.
30644 # Note that there is a small window in which the directory will not be cleaned:
30645 # after its creation but before its name has been assigned to `$tmp'.
30646 $debug ||
30648 tmp=
30649 trap 'exit_status=$?
30650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30652 trap 'as_fn_exit 1' 1 2 13 15
30654 # Create a (secure) tmp directory for tmp files.
30657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30658 test -n "$tmp" && test -d "$tmp"
30659 } ||
30661 tmp=./conf$$-$RANDOM
30662 (umask 077 && mkdir "$tmp")
30663 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30665 # Set up the scripts for CONFIG_FILES section.
30666 # No need to generate them if there are no CONFIG_FILES.
30667 # This happens for instance with `./config.status config.h'.
30668 if test -n "$CONFIG_FILES"; then
30670 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30671 ac_cs_awk_getline=:
30672 ac_cs_awk_pipe_init=
30673 ac_cs_awk_read_file='
30674 while ((getline aline < (F[key])) > 0)
30675 print(aline)
30676 close(F[key])'
30677 ac_cs_awk_pipe_fini=
30678 else
30679 ac_cs_awk_getline=false
30680 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30681 ac_cs_awk_read_file='
30682 print "|#_!!_#|"
30683 print "cat " F[key] " &&"
30684 '$ac_cs_awk_pipe_init
30685 # The final `:' finishes the AND list.
30686 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30688 ac_cr=`echo X | tr X '\015'`
30689 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30690 # But we know of no other shell where ac_cr would be empty at this
30691 # point, so we can use a bashism as a fallback.
30692 if test "x$ac_cr" = x; then
30693 eval ac_cr=\$\'\\r\'
30695 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30697 ac_cs_awk_cr='\r'
30698 else
30699 ac_cs_awk_cr=$ac_cr
30702 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30703 _ACEOF
30705 # Create commands to substitute file output variables.
30707 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30708 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30709 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30710 echo "_ACAWK" &&
30711 echo "_ACEOF"
30712 } >conf$$files.sh &&
30713 . ./conf$$files.sh ||
30714 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30715 rm -f conf$$files.sh
30718 echo "cat >conf$$subs.awk <<_ACEOF" &&
30719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30720 echo "_ACEOF"
30721 } >conf$$subs.sh ||
30722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30723 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30724 ac_delim='%!_!# '
30725 for ac_last_try in false false false false false :; do
30726 . ./conf$$subs.sh ||
30727 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30729 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30730 if test $ac_delim_n = $ac_delim_num; then
30731 break
30732 elif $ac_last_try; then
30733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30734 else
30735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30737 done
30738 rm -f conf$$subs.sh
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30741 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30742 _ACEOF
30743 sed -n '
30745 s/^/S["/; s/!.*/"]=/
30748 s/^[^!]*!//
30749 :repl
30750 t repl
30751 s/'"$ac_delim"'$//
30752 t delim
30755 s/\(.\{148\}\).*/\1/
30756 t more1
30757 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30760 b repl
30761 :more1
30762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30765 s/.\{148\}//
30766 t nl
30767 :delim
30769 s/\(.\{148\}\).*/\1/
30770 t more2
30771 s/["\\]/\\&/g; s/^/"/; s/$/"/
30774 :more2
30775 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30778 s/.\{148\}//
30779 t delim
30780 ' <conf$$subs.awk | sed '
30781 /^[^""]/{
30783 s/\n//
30785 ' >>$CONFIG_STATUS || ac_write_fail=1
30786 rm -f conf$$subs.awk
30787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30788 _ACAWK
30789 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30790 for (key in S) S_is_set[key] = 1
30791 FS = "\a"
30792 \$ac_cs_awk_pipe_init
30795 line = $ 0
30796 nfields = split(line, field, "@")
30797 substed = 0
30798 len = length(field[1])
30799 for (i = 2; i < nfields; i++) {
30800 key = field[i]
30801 keylen = length(key)
30802 if (S_is_set[key]) {
30803 value = S[key]
30804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30805 len += length(value) + length(field[++i])
30806 substed = 1
30807 } else
30808 len += 1 + keylen
30810 if (nfields == 3 && !substed) {
30811 key = field[2]
30812 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30813 \$ac_cs_awk_read_file
30814 next
30817 print line
30819 \$ac_cs_awk_pipe_fini
30820 _ACAWK
30821 _ACEOF
30822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30823 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30824 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30825 else
30827 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30828 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30829 _ACEOF
30831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30833 # trailing colons and then remove the whole line if VPATH becomes empty
30834 # (actually we leave an empty line to preserve line numbers).
30835 if test "x$srcdir" = x.; then
30836 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30837 s/:*\$(srcdir):*/:/
30838 s/:*\${srcdir}:*/:/
30839 s/:*@srcdir@:*/:/
30840 s/^\([^=]*=[ ]*\):*/\1/
30841 s/:*$//
30842 s/^[^=]*=[ ]*$//
30846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30847 fi # test -n "$CONFIG_FILES"
30849 # Set up the scripts for CONFIG_HEADERS section.
30850 # No need to generate them if there are no CONFIG_HEADERS.
30851 # This happens for instance with `./config.status Makefile'.
30852 if test -n "$CONFIG_HEADERS"; then
30853 cat >"$tmp/defines.awk" <<\_ACAWK ||
30854 BEGIN {
30855 _ACEOF
30857 # Transform confdefs.h into an awk script `defines.awk', embedded as
30858 # here-document in config.status, that substitutes the proper values into
30859 # config.h.in to produce config.h.
30861 # Create a delimiter string that does not exist in confdefs.h, to ease
30862 # handling of long lines.
30863 ac_delim='%!_!# '
30864 for ac_last_try in false false :; do
30865 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30866 if test -z "$ac_t"; then
30867 break
30868 elif $ac_last_try; then
30869 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30870 else
30871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30873 done
30875 # For the awk script, D is an array of macro values keyed by name,
30876 # likewise P contains macro parameters if any. Preserve backslash
30877 # newline sequences.
30879 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30880 sed -n '
30881 s/.\{148\}/&'"$ac_delim"'/g
30882 t rset
30883 :rset
30884 s/^[ ]*#[ ]*define[ ][ ]*/ /
30885 t def
30887 :def
30888 s/\\$//
30889 t bsnl
30890 s/["\\]/\\&/g
30891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30892 D["\1"]=" \3"/p
30893 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30895 :bsnl
30896 s/["\\]/\\&/g
30897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30898 D["\1"]=" \3\\\\\\n"\\/p
30899 t cont
30900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30901 t cont
30903 :cont
30905 s/.\{148\}/&'"$ac_delim"'/g
30906 t clear
30907 :clear
30908 s/\\$//
30909 t bsnlc
30910 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30912 :bsnlc
30913 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30914 b cont
30915 ' <confdefs.h | sed '
30916 s/'"$ac_delim"'/"\\\
30917 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30920 for (key in D) D_is_set[key] = 1
30921 FS = "\a"
30923 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30924 line = \$ 0
30925 split(line, arg, " ")
30926 if (arg[1] == "#") {
30927 defundef = arg[2]
30928 mac1 = arg[3]
30929 } else {
30930 defundef = substr(arg[1], 2)
30931 mac1 = arg[2]
30933 split(mac1, mac2, "(") #)
30934 macro = mac2[1]
30935 prefix = substr(line, 1, index(line, defundef) - 1)
30936 if (D_is_set[macro]) {
30937 # Preserve the white space surrounding the "#".
30938 print prefix "define", macro P[macro] D[macro]
30939 next
30940 } else {
30941 # Replace #undef with comments. This is necessary, for example,
30942 # in the case of _POSIX_SOURCE, which is predefined and required
30943 # on some systems where configure will not decide to define it.
30944 if (defundef == "undef") {
30945 print "/*", prefix defundef, macro, "*/"
30946 next
30950 { print }
30951 _ACAWK
30952 _ACEOF
30953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30954 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30955 fi # test -n "$CONFIG_HEADERS"
30958 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30959 shift
30960 for ac_tag
30962 case $ac_tag in
30963 :[FHLC]) ac_mode=$ac_tag; continue;;
30964 esac
30965 case $ac_mode$ac_tag in
30966 :[FHL]*:*);;
30967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30968 :[FH]-) ac_tag=-:-;;
30969 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30970 esac
30971 ac_save_IFS=$IFS
30972 IFS=:
30973 set x $ac_tag
30974 IFS=$ac_save_IFS
30975 shift
30976 ac_file=$1
30977 shift
30979 case $ac_mode in
30980 :L) ac_source=$1;;
30981 :[FH])
30982 ac_file_inputs=
30983 for ac_f
30985 case $ac_f in
30986 -) ac_f="$tmp/stdin";;
30987 *) # Look for the file first in the build tree, then in the source tree
30988 # (if the path is not absolute). The absolute path cannot be DOS-style,
30989 # because $ac_f cannot contain `:'.
30990 test -f "$ac_f" ||
30991 case $ac_f in
30992 [\\/$]*) false;;
30993 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30994 esac ||
30995 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30996 esac
30997 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30998 as_fn_append ac_file_inputs " '$ac_f'"
30999 done
31001 # Let's still pretend it is `configure' which instantiates (i.e., don't
31002 # use $as_me), people would be surprised to read:
31003 # /* config.h. Generated by config.status. */
31004 configure_input='Generated from '`
31005 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31006 `' by configure.'
31007 if test x"$ac_file" != x-; then
31008 configure_input="$ac_file. $configure_input"
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31010 $as_echo "$as_me: creating $ac_file" >&6;}
31012 # Neutralize special characters interpreted by sed in replacement strings.
31013 case $configure_input in #(
31014 *\&* | *\|* | *\\* )
31015 ac_sed_conf_input=`$as_echo "$configure_input" |
31016 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31017 *) ac_sed_conf_input=$configure_input;;
31018 esac
31020 case $ac_tag in
31021 *:-:* | *:-) cat >"$tmp/stdin" \
31022 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31023 esac
31025 esac
31027 ac_dir=`$as_dirname -- "$ac_file" ||
31028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31029 X"$ac_file" : 'X\(//\)[^/]' \| \
31030 X"$ac_file" : 'X\(//\)$' \| \
31031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31032 $as_echo X"$ac_file" |
31033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31034 s//\1/
31037 /^X\(\/\/\)[^/].*/{
31038 s//\1/
31041 /^X\(\/\/\)$/{
31042 s//\1/
31045 /^X\(\/\).*/{
31046 s//\1/
31049 s/.*/./; q'`
31050 as_dir="$ac_dir"; as_fn_mkdir_p
31051 ac_builddir=.
31053 case "$ac_dir" in
31054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31056 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31057 # A ".." for each directory in $ac_dir_suffix.
31058 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31059 case $ac_top_builddir_sub in
31060 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31061 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31062 esac ;;
31063 esac
31064 ac_abs_top_builddir=$ac_pwd
31065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31066 # for backward compatibility:
31067 ac_top_builddir=$ac_top_build_prefix
31069 case $srcdir in
31070 .) # We are building in place.
31071 ac_srcdir=.
31072 ac_top_srcdir=$ac_top_builddir_sub
31073 ac_abs_top_srcdir=$ac_pwd ;;
31074 [\\/]* | ?:[\\/]* ) # Absolute name.
31075 ac_srcdir=$srcdir$ac_dir_suffix;
31076 ac_top_srcdir=$srcdir
31077 ac_abs_top_srcdir=$srcdir ;;
31078 *) # Relative name.
31079 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31080 ac_top_srcdir=$ac_top_build_prefix$srcdir
31081 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31082 esac
31083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31086 case $ac_mode in
31089 # CONFIG_FILE
31092 _ACEOF
31094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31095 # If the template does not know about datarootdir, expand it.
31096 # FIXME: This hack should be removed a few years after 2.60.
31097 ac_datarootdir_hack=; ac_datarootdir_seen=
31098 ac_sed_dataroot='
31099 /datarootdir/ {
31103 /@datadir@/p
31104 /@docdir@/p
31105 /@infodir@/p
31106 /@localedir@/p
31107 /@mandir@/p'
31108 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31109 *datarootdir*) ac_datarootdir_seen=yes;;
31110 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31112 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31113 _ACEOF
31114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31115 ac_datarootdir_hack='
31116 s&@datadir@&$datadir&g
31117 s&@docdir@&$docdir&g
31118 s&@infodir@&$infodir&g
31119 s&@localedir@&$localedir&g
31120 s&@mandir@&$mandir&g
31121 s&\\\${datarootdir}&$datarootdir&g' ;;
31122 esac
31123 _ACEOF
31125 # Neutralize VPATH when `$srcdir' = `.'.
31126 # Shell code in configure.ac might set extrasub.
31127 # FIXME: do we really want to maintain this feature?
31128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31129 ac_sed_extra="$ac_vpsub
31130 $extrasub
31131 _ACEOF
31132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31135 s|@configure_input@|$ac_sed_conf_input|;t t
31136 s&@top_builddir@&$ac_top_builddir_sub&;t t
31137 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31138 s&@srcdir@&$ac_srcdir&;t t
31139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31140 s&@top_srcdir@&$ac_top_srcdir&;t t
31141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31142 s&@builddir@&$ac_builddir&;t t
31143 s&@abs_builddir@&$ac_abs_builddir&;t t
31144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31145 $ac_datarootdir_hack
31147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31148 if $ac_cs_awk_getline; then
31149 $AWK -f "$tmp/subs.awk"
31150 else
31151 $AWK -f "$tmp/subs.awk" | $SHELL
31152 fi >$tmp/out \
31153 || as_fn_error "could not create $ac_file" "$LINENO" 5
31155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31159 which seems to be undefined. Please make sure it is defined." >&5
31160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31161 which seems to be undefined. Please make sure it is defined." >&2;}
31163 rm -f "$tmp/stdin"
31164 case $ac_file in
31165 -) cat "$tmp/out" && rm -f "$tmp/out";;
31166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31167 esac \
31168 || as_fn_error "could not create $ac_file" "$LINENO" 5
31172 # CONFIG_HEADER
31174 if test x"$ac_file" != x-; then
31176 $as_echo "/* $configure_input */" \
31177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31178 } >"$tmp/config.h" \
31179 || as_fn_error "could not create $ac_file" "$LINENO" 5
31180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31183 else
31184 rm -f "$ac_file"
31185 mv "$tmp/config.h" "$ac_file" \
31186 || as_fn_error "could not create $ac_file" "$LINENO" 5
31188 else
31189 $as_echo "/* $configure_input */" \
31190 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31191 || as_fn_error "could not create -" "$LINENO" 5
31196 # CONFIG_LINK
31199 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31201 else
31202 # Prefer the file from the source tree if names are identical.
31203 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31204 ac_source=$srcdir/$ac_source
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31208 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31210 if test ! -r "$ac_source"; then
31211 as_fn_error "$ac_source: file not found" "$LINENO" 5
31213 rm -f "$ac_file"
31215 # Try a relative symlink, then a hard link, then a copy.
31216 case $srcdir in
31217 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31218 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31219 esac
31220 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31221 ln "$ac_source" "$ac_file" 2>/dev/null ||
31222 cp -p "$ac_source" "$ac_file" ||
31223 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31227 $as_echo "$as_me: executing $ac_file commands" >&6;}
31229 esac
31232 case $ac_file$ac_mode in
31233 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31234 "gccdepdir":C)
31235 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31236 for lang in $subdirs c-family common
31238 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31239 done ;;
31240 "as":F) chmod +x as ;;
31241 "collect-ld":F) chmod +x collect-ld ;;
31242 "nm":F) chmod +x nm ;;
31243 "default":C)
31244 case ${CONFIG_HEADERS} in
31245 *auto-host.h:config.in*)
31246 echo > cstamp-h ;;
31247 esac
31248 # Make sure all the subdirs exist.
31249 for d in $subdirs doc build common c-family
31251 test -d $d || mkdir $d
31252 done
31255 esac
31256 done # for ac_tag
31259 as_fn_exit 0
31260 _ACEOF
31261 ac_clean_files=$ac_clean_files_save
31263 test $ac_write_fail = 0 ||
31264 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31267 # configure is writing to config.log, and then calls config.status.
31268 # config.status does its own redirection, appending to config.log.
31269 # Unfortunately, on DOS this fails, as config.log is still kept open
31270 # by configure, so config.status won't be able to write to it; its
31271 # output is simply discarded. So we exec the FD to /dev/null,
31272 # effectively closing config.log, so it can be properly (re)opened and
31273 # appended to by config.status. When coming back to configure, we
31274 # need to make the FD available again.
31275 if test "$no_create" != yes; then
31276 ac_cs_success=:
31277 ac_config_status_args=
31278 test "$silent" = yes &&
31279 ac_config_status_args="$ac_config_status_args --quiet"
31280 exec 5>/dev/null
31281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31282 exec 5>>config.log
31283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31284 # would make configure fail if this is the last instruction.
31285 $ac_cs_success || as_fn_exit $?
31287 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31289 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}